:root{
--fx-primary:#2146D9;--fx-on-primary:#fff;--fx-bg:#fff;--fx-surface:#F4F6F8;--fx-text:#14181C;--fx-muted:#58626C;--fx-border:#D9DEE4;--fx-radius:2px;
--fx-font-head:"FynFox Schibsted Grotesk",system-ui,sans-serif;--fx-font-body:"FynFox Hanken Grotesk",system-ui,sans-serif;
--high:#C7261A;--medium:#955A00;--low:#4F6577;--todo:#8A949E;--doing:#2146D9;--done:#18794B;--rail:15rem}
[hidden]{display:none!important}
body{font-family:var(--fx-font-body);color:var(--fx-text);background:#fff;line-height:1.5}
h1,h2,h3{font-family:var(--fx-font-head);letter-spacing:-.03em;line-height:1.02;margin:0}
a{color:var(--fx-primary)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[contenteditable]:focus-visible{outline:2px solid var(--fx-primary);outline-offset:2px}
.sheet{display:grid;grid-template-columns:var(--rail) 1fr;min-height:100vh}
.rail{position:sticky;top:0;height:100vh;border-right:1px solid var(--fx-border);padding:1.25rem;display:flex;flex-direction:column;gap:1.75rem;background:#fff}
.titleblock{border:1px solid var(--fx-text);padding:.75rem;display:grid;gap:.4rem}
.team-logo{height:44px;width:auto;max-width:100%;object-fit:contain;object-position:left}
.team-name{font-family:var(--fx-font-head);font-weight:700;font-size:1.25rem;letter-spacing:-.02em;color:var(--fx-text);text-decoration:none}
.tb-row{display:flex;justify-content:space-between;border-top:1px solid var(--fx-border);padding-top:.3rem;font-family:"FynFox Barlow Condensed",sans-serif;letter-spacing:.08em;font-size:.85rem;color:var(--fx-muted)}
.tb-row span:last-child{color:var(--fx-text)}
.rail-nav{display:grid;gap:0;counter-reset:n;border-top:1px solid var(--fx-border)}
.rail-nav a{display:flex;align-items:baseline;gap:.75rem;padding:.7rem .25rem .7rem .6rem;border-bottom:1px solid var(--fx-border);color:var(--fx-text);text-decoration:none;border-left:3px solid transparent;transition:background .15s,padding-left .15s}
.rail-nav a::before{counter-increment:n;content:"0" counter(n);font-family:"FynFox Barlow Condensed",sans-serif;font-size:.8rem;letter-spacing:.08em;color:var(--fx-muted)}
.rail-nav a:hover{background:var(--fx-surface);padding-left:.85rem}
.rail-nav a[aria-current=page]{border-left-color:var(--fx-primary);font-weight:700;color:var(--fx-primary);background:#F1F4FE}
.rail-nav a[aria-current=page]::before{color:var(--fx-primary)}
.rail-foot{margin-top:auto;font-size:.85rem;color:var(--fx-muted);overflow-wrap:anywhere}
.menu-btn{display:none}
.page{padding:3.5rem 2rem 5rem clamp(1.5rem,6vw,6rem);max-width:80rem;border-left:0}
.page>div{animation:rise .35s ease-out both}
@keyframes rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.page-title{font-size:clamp(2.5rem,6vw,5rem);font-weight:700;overflow-wrap:anywhere}
.page-sub{color:var(--fx-muted);margin:.9rem 0 2.25rem;max-width:40rem;font-size:1.05rem}
.btn-main,.btn-line{display:inline-block;text-decoration:none;line-height:1.3;border-radius:2px;cursor:pointer;font:inherit;transition:background .15s,transform .1s}
.btn-main{background:var(--fx-primary);color:#fff;border:1px solid var(--fx-primary);padding:.6rem 1.1rem;font-weight:600}
.btn-main:hover{background:#1a38b5;border-color:#1a38b5}
.btn-line{background:#fff;color:var(--fx-text);border:1px solid var(--fx-text);padding:.5rem .9rem}
.btn-line:hover{background:var(--fx-surface)}
.btn-main:active,.btn-line:active{transform:translateY(1px)}
.btn-main[disabled],.btn-main[aria-busy=true]{opacity:.6;cursor:progress}
.fx-btn,.fx-input,.fx-select,.fx-textarea,.fx-card,.fx-badge{border-radius:2px;box-shadow:none}
.ruled{border-top:1px solid var(--fx-text)}
.ruled>*{border-bottom:1px solid var(--fx-border)}
.pri-high{border-left:3px solid var(--high)}.pri-medium{border-left:3px solid var(--medium)}.pri-low{border-left:3px solid var(--low)}
.t-high,.t-medium,.t-low{font-weight:600}
.t-high{color:var(--high)}.t-medium{color:var(--medium)}.t-low{color:var(--low)}
.st-todo{color:#5f6973}.st-doing{color:var(--doing)}.st-done{color:var(--done)}
.overdue{color:var(--high);font-size:.85rem;font-weight:600}
.avatar{width:28px;height:28px;border:1px solid var(--fx-border);border-radius:2px;object-fit:cover;display:inline-grid;place-items:center;background:#E6EBFB;color:var(--fx-primary);font-size:.7rem;font-weight:700;font-family:var(--fx-font-head);vertical-align:middle;flex:none}
.mention{color:var(--fx-primary);font-weight:600}
/* welcome page */
.sheet.guest{grid-template-columns:1fr;grid-template-rows:auto 1fr}
.sheet.guest .rail{position:static;height:auto;flex-direction:row;align-items:center;border-right:0;border-bottom:1px solid var(--fx-text);padding:1rem clamp(1.5rem,6vw,6rem)}
.sheet.guest .titleblock{border:0;padding:0;display:flex;align-items:center;gap:1.5rem;flex:1}
.sheet.guest .team-name{margin-right:auto}
.sheet.guest .tb-row{border-top:0;border-left:1px solid var(--fx-border);padding:0 0 0 1rem;gap:.6rem}
.sheet.guest .rail-foot{display:none}
.sheet.guest .page{max-width:96rem;padding-top:clamp(2rem,5vw,4.5rem);padding-right:clamp(1.5rem,6vw,6rem)}
.home-title{font-size:clamp(3rem,9.5vw,8.5rem);line-height:.92;letter-spacing:-.045em;max-width:14ch}
.home-accent{color:var(--fx-primary)}
.home-sub{font-size:clamp(1.05rem,1.4vw,1.25rem);margin:1.75rem 0 3rem;max-width:44rem}
.home-grid{display:grid;grid-template-columns:minmax(0,24rem) minmax(0,1fr);gap:clamp(2rem,5vw,5rem);align-items:start}
.home-grid>div:first-child{border:1px solid var(--fx-text);padding:1.5rem;background:#fff}
.home-board{padding:clamp(1rem,3vw,2.5rem);background-color:#FAFBFC;background-image:linear-gradient(#E9EDF1 1px,transparent 1px),linear-gradient(90deg,#E9EDF1 1px,transparent 1px);background-size:24px 24px;border:1px solid var(--fx-border)}
.mini h3{font-size:.95rem;margin-bottom:.6rem}
.mini .bay{min-height:13rem;padding:.7rem}
/* dimension line */
.dim{display:flex;align-items:center;gap:.75rem;position:relative}
.dim-line{position:relative;flex:1;height:14px}
.dim-line::before{content:"";position:absolute;left:0;right:0;top:6px;border-top:1px solid var(--fx-border)}
.dim-line::after{content:"";position:absolute;left:0;right:0;top:0;height:14px;border-left:1px solid var(--fx-text);border-right:1px solid var(--fx-text)}
.dim-fill{position:absolute;left:0;top:4px;height:5px;background:var(--dimc,var(--fx-primary));transform-origin:left;animation:draw .6s ease-out both}
.dim-limit{position:absolute;top:-1.5rem;bottom:-1.5rem;width:0;border-left:2px solid var(--high);z-index:2}
.dim-fig{font-family:"FynFox Barlow Condensed",sans-serif;letter-spacing:.05em;font-size:1.05rem;min-width:7rem;white-space:nowrap}
.dim.over{--dimc:var(--high)}
.dim.over .dim-fig{color:var(--high);font-weight:600}
@keyframes draw{from{transform:scaleX(0)}to{transform:scaleX(1)}}
/* board */
.bays{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--fx-text)}
.bay{padding:1.1rem 1rem;border-right:1px solid var(--fx-border);border-top:3px solid var(--todo);min-height:24rem;transition:background .15s}
.bay[data-status="Doing"]{border-top-color:var(--doing)}
.bay[data-status="Done"]{border-top-color:var(--done)}
.bay[data-status="Done"] .card-task>strong,.bay[data-status="Done"] .card-task>div:first-child{color:var(--fx-muted);text-decoration:line-through}
.bay:last-child{border-right:0}
.bay.drop{outline:2px dashed var(--fx-primary);outline-offset:-6px;background:#F1F4FE}
.card-task{border:1px solid var(--fx-border);background:#fff;padding:.75rem .85rem;margin-bottom:.6rem;border-radius:2px;cursor:grab;transition:border-color .15s,transform .15s}
.card-task:hover{border-top-color:var(--fx-text);border-right-color:var(--fx-text);border-bottom-color:var(--fx-text)}
.card-task.dragging{outline:1px solid var(--fx-text);outline-offset:4px;transform:translate(-2px,-2px)}
.dot{display:inline-block;width:8px;height:8px;background:var(--c,var(--todo));margin-right:.4rem}
@media (max-width:1000px){
.home-grid{grid-template-columns:1fr;gap:2rem}
}
@media (max-width:860px){
.sheet{grid-template-columns:1fr;grid-template-rows:auto 1fr}
.rail,.sheet.guest .rail{position:sticky;height:auto;z-index:20;flex-direction:row;flex-wrap:wrap;align-items:center;padding:.7rem 1rem;border-right:0;border-bottom:1px solid var(--fx-text);gap:.5rem}
.titleblock{flex:1;border:0;padding:0}.titleblock .tb-row{display:none}
.team-logo{height:36px}
.menu-btn{display:block;border:1px solid var(--fx-text);padding:.4rem .8rem}
.rail-nav,.rail-foot{display:none;width:100%}
.rail.open .rail-nav{display:grid}.rail.open .rail-foot{display:block;padding-top:.5rem}
.rail-nav a{padding-top:.85rem;padding-bottom:.85rem}
.page,.sheet.guest .page{padding:1.75rem 1rem 3.5rem}
.page-sub{margin-bottom:1.75rem}
.home-sub{margin:1.25rem 0 2rem}
.home-grid>div:first-child{padding:1.1rem}
.bays{grid-template-columns:1fr}.bay{border-right:0;border-bottom:1px solid var(--fx-border);min-height:0}
.filters{display:grid!important;grid-template-columns:1fr 1fr}
.filters .fx-field:first-child{grid-column:1/-1}
.filters .fx-input,.filters .fx-select{width:100%}
#qa .fx-field{flex:1;min-width:0}
#qa-t{min-width:0!important;width:100%}
.home-board{padding:.6rem}
.mini .bays{grid-template-columns:repeat(3,1fr)}
.mini .bay{border-right:1px solid var(--fx-border);border-bottom:0;min-height:9rem;padding:.45rem}
.mini .bay:last-child{border-right:0}
.mini h3{font-size:.85rem}
.mini .card-task{padding:.45rem .5rem;margin-bottom:.4rem}
.mini .card-task>div:first-child{font-size:.78rem!important}
.mini .avatar{width:22px;height:22px;font-size:.6rem}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}