:root{color-scheme:light;--bg:#f4f6f3;--panel:#fff;--ink:#172821;--muted:#53645a;--border:#dce4dd;--green:#185641;--dark:#102f24;--lime:#def4a4;--danger:#a92931;--radius:16px;--shadow:0 14px 32px #102f240a;font:16px/1.5 "Segoe UI Variable","Segoe UI",system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg)}a{color:var(--green);text-underline-offset:3px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.65;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #567e5b;outline-offset:2px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.13;letter-spacing:-.035em}h1{font-size:2.65rem;font-weight:750}h2{font-size:1.45rem;font-weight:730}h3{font-size:1.08rem;font-weight:700}small,.quiet{color:var(--muted);font-size:.875rem}.shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{display:flex;flex-direction:column;gap:29px;padding:26px 17px;position:sticky;top:0;height:100vh;background:#fafbf9;border-right:1px solid var(--border)}.brand{display:flex;gap:10px;align-items:center;color:#142c20;text-decoration:none;min-width:0}.brand-text{display:grid;font-weight:750;font-size:.97rem;line-height:1.2;letter-spacing:-.03em}.brand-text small{font-weight:550;margin-top:3px;letter-spacing:0}.mark{display:grid;place-items:center;background:#234735;color:#e8f6c2;height:42px;width:42px;border-radius:12px;flex:none}.tomato{display:block;position:relative;width:21px;height:16px;background:#fb6b58;border-radius:56% 46% 50% 50%;transform:rotate(-8deg);box-shadow:inset -4px -3px #ba442f44}.tomato:before{content:"";position:absolute;left:7px;top:-4px;width:9px;height:7px;background:#c6f086;clip-path:polygon(44% 0,57% 34%,100% 20%,72% 71%,62% 100%,45% 68%,0 59%,35% 36%)}.nav-group{display:grid;gap:5px}.nav-group .nav-label{padding:0 11px;margin-bottom:3px}.nav-link{display:flex;align-items:center;gap:11px;text-decoration:none;color:#42574a;padding:9px 11px;border-radius:9px;font-size:.93rem;font-weight:600}.nav-link:hover,.nav-link[aria-current=page]{color:#194f3b;background:#e6eee5}.nav-link[aria-current=page]{font-weight:750}.glyph{width:19px;text-align:center;flex:none;font-size:1.1rem;line-height:1}.sidebar-footer{margin-top:auto;padding:12px 4px 0;border-top:1px solid var(--border);display:flex;align-items:center;gap:9px;min-width:0}.avatar{width:36px;height:36px;border-radius:50%;background:#dcebd9;color:#20523c;display:grid;place-items:center;font-size:.83rem;font-weight:800;flex:none}.identity{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:700;font-size:.9rem;flex:1}.identity small{display:block;font-weight:500}.main{min-width:0;padding:30px clamp(21px,4vw,58px) 60px}.workspace{max-width:1200px;margin-inline:auto}.mast{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.crumb{color:var(--muted);font-size:.88rem;font-weight:650}.pagehead{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:end;margin-bottom:21px}.pagehead p,.body-copy{margin-top:7px;color:var(--muted)}.toolbar,.actions,.row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.button{border:1px solid #cbd8cd;background:var(--panel);color:#264737;padding:9px 13px;border-radius:8px;text-decoration:none;font-size:.9rem;font-weight:700;white-space:nowrap;display:inline-block;line-height:1.4}.button:hover{background:#edf3ec}.button.primary{background:var(--green);color:#fff;border-color:var(--green)}.button.primary:hover{background:#104432}.button.quiet-button{padding:7px 9px;background:transparent}.button.warn{color:var(--danger)}.hero{background:var(--dark);color:white;border-radius:var(--radius);padding:30px 32px;position:relative;overflow:hidden;margin-bottom:16px;min-height:198px;display:flex;align-items:center}.hero>*{z-index:1}.hero::before,.hero::after{content:"";position:absolute;z-index:0;right:-7%;top:-115px;width:460px;height:410px;border-radius:47%;transform:rotate(-23deg);pointer-events:none}.hero::before{background:repeating-radial-gradient(ellipse at center,#b2e3953b 0 1px,transparent 2px 25px);mask-image:linear-gradient(105deg,transparent 12%,#000 74%)}.hero::after{right:8%;top:19px;width:175px;height:175px;background:#456b43;filter:blur(46px);opacity:.44}.hero h2{font-size:clamp(1.75rem,3vw,2.45rem);max-width:630px}.hero .quiet{color:#daf0de;margin-top:8px;max-width:520px;font-size:.98rem}.hero .actions{margin-top:18px}.hero .button{background:var(--lime);color:#222e1c;border-color:var(--lime)}.hero .button:hover{background:#eff9ce}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}.stat{display:grid;gap:3px;text-decoration:none;border:1px solid var(--border);border-radius:12px;padding:14px 16px;background:#fff;color:var(--muted);box-shadow:var(--shadow)}.stat:hover{border-color:#8caa90}.stat strong{font-size:1.7rem;color:var(--ink);line-height:1.1}.board{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:17px;align-items:start}.panel{padding:19px;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}.panel+.panel,.stack{margin-top:15px}.board>.panel{margin-top:0}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.panel-title h2{font-size:1.22rem}.list{display:grid;gap:10px}.list-card{border:1px solid var(--border);border-radius:10px;padding:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--ink);text-decoration:none;min-width:0}.list-card:hover{border-color:#9eb79f;background:#fbfcfa}.list-card p{margin-top:4px}.list-card>div:first-child{min-width:0}.tile{display:grid;place-items:center;flex:none;width:37px;height:37px;border-radius:9px;background:#e9efde;color:#305a40;font-size:1rem;font-weight:800}.tile.alt{background:#e3edf0;color:#315e72}.pill{display:inline-flex;align-items:center;width:fit-content;line-height:1.35;white-space:nowrap;border-radius:6px;background:#edf0e9;color:#435545;font-weight:700;font-size:.875rem;padding:3px 7px;letter-spacing:.005em}.pill.testing,.pill.ready,.pill.active{background:#e0efdb;color:#215138}.pill.reopened,.pill.critical,.pill.high{background:#fbe8e7;color:#883239}.pill.retired,.pill.archived,.pill.disabled{background:#efefed;color:#595e58}.pill.verified,.pill.released{background:#ddefe7;color:#235949}.pill.in-progress{background:#e9edf7;color:#3c4d76}.pill.planned,.pill.draft{background:#f0eed8;color:#615721}.table-wrap{overflow:auto}.table{border-collapse:collapse;width:100%;text-align:left;font-size:.94rem}.table th{background:#f3f6f1;color:#53645a;font-weight:700}.table td,.table th{padding:11px 12px;border-bottom:1px solid #edf1eb;vertical-align:top}.table td:last-child,.table th:last-child{min-width:82px}.table tbody tr:last-child td{border-bottom:0}.query{min-width:min(100%,265px)}.toolbar{margin-bottom:15px}.empty{border:1px dashed #cbd8cb;border-radius:12px;background:#fbfcfa;padding:19px;color:#526052;font-size:.94rem}.empty strong{display:block;color:var(--ink);margin-bottom:4px}.form{display:grid;gap:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:grid;gap:4px;font-size:.9rem;font-weight:650;color:#31483b}.field small{font-weight:400}input,select,textarea{width:100%;border:1px solid #bccbbe;border-radius:7px;padding:8px 10px;background:#fff;color:var(--ink);min-height:40px}textarea{resize:vertical;min-height:80px}select{appearance:none;padding-right:28px;background-image:linear-gradient(45deg,transparent 50%,#476152 50%),linear-gradient(135deg,#476152 50%,transparent 50%);background-position:calc(100% - 15px) 17px,calc(100% - 10px) 17px;background-size:5px 5px;background-repeat:no-repeat}input[type=checkbox]{width:auto;min-height:auto}.inline-field{display:flex;gap:8px;align-items:center}.form-message{color:var(--danger);min-height:1.35em;font-size:.89rem}.definition{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,1.7fr);gap:8px 13px;margin:0;font-size:.9rem;overflow-wrap:anywhere}.definition dt{font-weight:650;color:#506254}.definition dd{margin:0}.details{white-space:pre-wrap;overflow-wrap:anywhere}.issue-block{margin-block:14px}.timeline{padding:0;list-style:none;display:grid;gap:9px;margin-bottom:0}.timeline li{border-left:2px solid #cbdcc8;padding:7px 0 7px 10px}.attachments{display:flex;gap:9px;flex-wrap:wrap}.attachments img{width:105px;height:78px;object-fit:cover;border:1px solid var(--border);border-radius:7px}.launch-frame{width:100%;min-height:520px;border:1px solid var(--border);border-radius:10px;background:white;margin-top:12px}.login-page{min-height:100vh;display:grid;place-items:center;padding:23px}.login-box{width:min(100%,460px);padding:26px 30px;background:#fff;border:1px solid var(--border);border-radius:20px;box-shadow:0 18px 45px #102f2414}.login-box .brand{margin-bottom:26px}.login-box h1{font-size:1.95rem;margin-bottom:7px}.login-box .form{margin-top:23px}.loading{padding:48px}.modal-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:15px}dialog{border:1px solid #b4c6b5;border-radius:14px;background:var(--panel);color:var(--ink);padding:20px;width:min(92vw,565px);box-shadow:0 20px 70px #15241855;max-height:91vh;overflow:auto}dialog::backdrop{background:#10241868}.modal-head .button{padding:5px 9px}.toast:not(:empty),#toast:not(:empty){position:fixed;bottom:16px;right:16px;z-index:4;padding:10px 15px;background:#234a37;color:white;border-radius:8px;max-width:min(380px,calc(100% - 32px));box-shadow:0 8px 30px #102f2446}#toast.problem{background:#82343b}code{overflow-wrap:anywhere}
@media(max-width:1050px){.main{padding-inline:24px}.shell{grid-template-columns:197px minmax(0,1fr)}.sidebar{padding-inline:12px}}@media(max-width:830px){.board{grid-template-columns:1fr}.board>.panel{margin:0}.stats{grid-template-columns:repeat(2,1fr)}h1{font-size:2.1rem}}@media(max-width:625px){.shell{display:block}.sidebar{position:static;height:auto;gap:11px;padding:13px;border-right:0;border-bottom:1px solid var(--border)}.nav-group{display:flex;flex-wrap:wrap;gap:3px}.nav-group .nav-label{display:none}.nav-link{padding:6px 8px;font-size:.86rem}.glyph{width:auto}.sidebar-footer{display:none}.main{padding:17px 12px 28px}.mast{margin-bottom:12px}.hero{min-height:188px;padding:21px}.hero::before{right:-60%}.form-grid{grid-template-columns:1fr}.launch-frame{min-height:360px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}

.playtest {
  margin-top: 20px;
}
.playtest-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.playtest-toolbar .primary {
  min-height: 44px;
  padding-inline: 18px;
}
.playtest-devices {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}
.playtest-dimensions {
  color: var(--muted);
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
  min-width: 10ch;
  padding-block: 9px;
}
.playtest-message {
  margin-bottom: 8px;
}
.playtest-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: clamp(240px, 65vh, 840px);
  height: clamp(240px, 65dvh, 840px);
  overflow: hidden;
  border-radius: 12px;
  background: #101a17;
  color: #edf4ed;
}
.playtest-fit {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.playtest-slot {
  position: relative;
  flex: none;
}
.playtest-slot .launch-frame {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #101a17;
  transform-origin: top left;
}
.playtest-placeholder {
  padding: 16px;
  text-align: center;
}
.playtest-exit {
  display: none;
}
.playtest-stage:is(:fullscreen, :-webkit-full-screen, .game-view) {
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.playtest-stage:is(:fullscreen, :-webkit-full-screen, .game-view) .playtest-exit {
  display: flex;
  justify-content: flex-end;
  padding: 4px 8px;
}
.playtest-exit .button {
  min-height: 44px;
  border-color: transparent;
  background: transparent;
  color: #edf4ed;
}
.playtest-exit .button:hover {
  background: #263b32;
}
.playtest-stage.game-view {
  position: fixed;
  inset: 0;
  height: 100dvh;
  z-index: 20;
}
body.playtest-focus {
  overflow: hidden;
}
.playtest-focus :is(.sidebar, .mast, .pagehead, .board, .playtest-toolbar, .playtest-message) {
  visibility: hidden;
}

.build-group { display: grid; gap: 8px; }
.version-history { border-top: 1px solid var(--border); }
.version-history summary { cursor: pointer; padding: 10px 0; font-weight: 650; }
.version-history .list { padding-bottom: 6px; }
