/* Scoped subtask workspace. No operational status or global theme changes. */
.st-list,.st-editor,.st-toolbar,.st-task-tabs,.st-task-summary,.st-task-heading{
  --st-bg:#fff;
  --st-soft:#f6f8f7;
  --st-line:#e2e8e5;
  --st-ink:#22342d;
  --st-muted:#627269;
  --st-accent:#24634d;
  --st-focus:#3b8266;
  color:var(--st-ink);
}
.st-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 12px}
.st-toolbar h3{margin:0;font-size:18px;letter-spacing:-.02em}
.st-toolbar p,.st-task-summary p{margin:5px 0 0;font-size:13px;line-height:1.5;color:var(--st-muted)}
.st-toolbar .st-actions{flex:none}
.st-task-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0}
.st-task-summary h3{margin:0;font-size:18px;line-height:1.4}
.st-task-tabs{display:flex;gap:20px;margin:0 0 20px;border-bottom:1px solid var(--st-line);overflow:auto;scrollbar-width:thin}
.st-task-tabs button{position:relative;flex:none;min-height:46px;padding:11px 2px;border:0;background:none;color:var(--st-muted);font-weight:650;white-space:nowrap}
.st-task-tabs button[aria-selected="true"]{color:var(--st-accent)}
.st-task-tabs button[aria-selected="true"]::after{position:absolute;right:0;bottom:0;left:0;height:2px;background:currentColor;content:""}
.st-task-heading{margin:8px 0 18px}
.st-task-heading h2{margin:0;font-size:22px;font-weight:650;letter-spacing:-.025em;line-height:1.4;overflow-wrap:break-word}
.st-task-heading p{margin:6px 0 0;font-size:13px;color:var(--st-muted)}
.st-list{padding:0;margin:20px 0;background:var(--st-bg);border:1px solid var(--st-line);border-radius:12px;list-style:none;overflow:hidden}
.st-list-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;border-bottom:1px solid var(--st-line)}
.st-list-header h3{margin:0;font-size:18px;font-weight:650;letter-spacing:-.02em}
.st-list-header p{margin:6px 0 0;color:var(--st-muted);font-size:13px;line-height:1.5}
.st-list-header>button{flex:none;min-height:44px;border-radius:8px;background:var(--st-accent);font-size:14px;font-weight:650}
.st-list-header>button:hover{background:#1b503d}
.st-rows{padding:0;margin:0;list-style:none}
.st-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;align-items:start;padding:18px 20px;border-bottom:1px solid var(--st-line);min-width:0}
.st-row:not(:has(.st-ordinal)){grid-template-columns:minmax(0,1fr) auto}
.st-row:last-child{border-bottom:0}
.st-row:focus-within{background:var(--st-soft)}
.st-order,.st-ordinal{display:grid;place-items:center;min-height:32px;font-size:13px;font-weight:650;color:var(--st-muted);font-variant-numeric:tabular-nums}
.st-row-main,.st-content{min-width:0}
.st-title,.st-content>strong{display:block;margin:3px 0 6px;font-size:15px;font-weight:650;line-height:1.5;color:var(--st-ink);overflow-wrap:break-word;word-break:normal;text-align:left}
.st-row>button{min-height:44px;border-radius:8px;font-size:14px;font-weight:600;white-space:nowrap}
button.st-title{width:100%;padding:0;border:0;background:none;text-decoration:none}
button.st-title:hover{text-decoration:underline;text-underline-offset:3px}
.st-meta{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;margin:0;font-size:13px;line-height:1.5;color:var(--st-muted)}
.st-meta>span{display:inline-flex;align-items:center;gap:5px}
.st-meta svg{width:15px;height:15px;flex:none}
.st-row .st-requirements{display:flex;gap:5px 12px;flex-wrap:wrap;margin-top:8px;font-size:12px;line-height:1.5;color:var(--st-muted)}
.st-row .st-requirements .is-required{color:var(--st-accent);font-weight:650}
.st-row .st-requirements .is-required::before{display:inline-block;width:5px;height:5px;margin:0 6px 2px 0;border-radius:50%;background:currentColor;content:""}
.st-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.st-actions button,.st-toolbar>button{min-height:44px;padding:9px 13px;border:1px solid var(--st-line);border-radius:8px;background:var(--st-bg);color:var(--st-ink);font-size:14px;font-weight:600;line-height:1.3}
.st-actions .st-icon-button{display:grid;place-items:center;width:44px;padding:0}
.st-actions button:hover:not(:disabled){background:var(--st-soft);border-color:#bdcbc3}
.st-actions button:disabled{opacity:.45;cursor:not-allowed}
.st-actions .primary,.st-toolbar>.primary{background:var(--st-accent);border-color:var(--st-accent);color:#fff}
.st-actions .primary:hover:not(:disabled),.st-toolbar>.primary:hover:not(:disabled){background:#1b503d}
.st-list .st-empty{margin:0;padding:32px 24px;color:var(--st-muted);font-size:14px;line-height:1.5;text-align:center}
.st-editor-overlay{position:fixed;inset:0;z-index:140;display:flex;align-items:stretch;justify-content:flex-end;background:rgb(20 34 28 / 38%);overscroll-behavior:contain;animation:st-backdrop-in 160ms ease-out}
.st-editor-overlay[hidden]{display:none}
.st-editor{width:min(560px,100%);height:100vh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0;overflow:hidden;background:var(--st-bg);box-shadow:-14px 0 44px rgb(20 34 28 / 12%);animation:st-drawer-in 190ms ease-out}
.st-editor>form{display:grid;grid-template-rows:minmax(0,1fr) auto;min-width:0;min-height:0;margin:0}
.st-editor-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--st-line)}
.st-editor-header h2{margin:0;font-size:21px;letter-spacing:-.025em;line-height:1.3}
.st-editor-header p{margin:5px 0 0;max-width:390px;color:var(--st-muted);font-size:13px;line-height:1.4;overflow-wrap:break-word}
.st-editor-header p:first-child{margin:0 0 5px}
.st-editor-header button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;border:1px solid var(--st-line);border-radius:10px;background:var(--st-bg);color:var(--st-ink);font-size:25px}
.st-editor-header button:hover{background:var(--st-soft)}
.st-editor-body{min-height:0;min-width:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:24px;scroll-padding:20px}
.st-editor-body>*:first-child{margin-top:0}
.st-editor-body :is(.st-requirements,.st-requirement-controls){display:grid;grid-template-columns:1fr;gap:10px;min-width:0;margin:0 0 24px;padding:0 0 24px;border:0;border-bottom:1px solid var(--st-line)}
.st-editor :is(.st-requirements,.st-requirement-controls) legend{padding:0 0 12px;color:var(--st-ink);font-size:14px;font-weight:650}
.st-editor :is(.st-requirements,.st-requirement-controls) label{display:flex;align-items:center;gap:12px;min-height:48px;margin:0;padding:10px 12px;border:1px solid var(--st-line);border-radius:8px;background:var(--st-bg);font-size:14px;font-weight:600;line-height:1.45;cursor:pointer}
.st-editor :is(.st-requirements,.st-requirement-controls) label:has(input:checked){border-color:#a3c4b2;background:#eff7f2}
.st-requirement-controls p{margin:2px 0 0;font-size:12px;line-height:1.6;color:var(--st-muted)}
.st-editor input[type="checkbox"],.st-editor input[type="radio"]{width:20px;height:20px;min-height:20px;flex:none;margin:0;padding:0;accent-color:var(--st-accent)}
.st-editor .st-requirements label small{display:block;font-weight:400;font-size:12px;color:var(--st-muted)}
.st-editor .st-field,.st-editor-body>.stack>label,.st-editor-body>label,.st-form-grid>label{display:grid;gap:7px;min-width:0;margin:0 0 18px;font-size:13px;font-weight:650;color:var(--st-ink)}
.st-editor input:not([type="checkbox"]):not([type="radio"]),.st-editor select,.st-editor textarea{display:block;width:100%;min-width:0;min-height:46px;padding:11px 12px;border:1px solid #cfd9d3;border-radius:8px;background:var(--st-bg);color:var(--st-ink);font-size:16px;font-weight:400;line-height:1.45}
.st-editor textarea{min-height:116px;resize:vertical}
.st-editor :is(input,select,textarea)[aria-invalid="true"]{border-color:#ac3b32;box-shadow:0 0 0 1px #ac3b32}
.st-grid,.st-form-grid{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px}
.st-editor .st-help{display:block;margin:5px 0 0;color:var(--st-muted);font-size:12px;font-weight:400;line-height:1.6}
.st-editor .st-description{font-size:13px;line-height:1.6;color:var(--st-muted)}
.st-scope{display:grid;gap:10px;min-width:0;margin:24px 0 0;padding:18px;background:var(--st-soft);border:1px solid var(--st-line);border-radius:10px}
.st-scope legend{padding:0 5px;font-size:14px;font-weight:650}
.st-scope>label{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:4px 0;font-size:13px;font-weight:550;line-height:1.55;cursor:pointer}
.st-scope>label>input{margin-top:2px!important}
.st-scope small{display:block;font-size:12px;font-weight:400;color:var(--st-muted);line-height:1.55}
.st-scope p{margin:0;font-size:12px;line-height:1.6;color:var(--st-muted)}
.st-scope>label:has(input:disabled){opacity:.6;cursor:not-allowed}
.st-impact{margin:4px 0 0;padding:12px;background:var(--st-bg);border:1px solid var(--st-line);border-radius:8px;font-size:13px;line-height:1.55}
.st-impact h3{margin:0 0 8px;font-size:15px;font-weight:650}
.st-impact strong{display:block;margin-bottom:3px;font-size:14px}
.st-impact ul{margin:8px 0;padding-left:19px}
.st-impact p{margin:6px 0}
.st-editor .st-error,.st-editor [data-st-error]{margin:16px 0;padding:12px;border:1px solid #ebc9c5;border-radius:8px;background:#fff4f2;color:#8d3028;font-size:13px;line-height:1.5}
.st-discard{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:18px 0 0;padding:14px;border:1px solid #e7d0ac;border-radius:10px;background:#fff9ed;color:#6a4921}
.st-discard p{flex-basis:100%;margin:0 0 5px;font-size:14px;font-weight:650;line-height:1.5}
.st-discard button{min-height:44px;padding:9px 12px;border-radius:8px;font-size:13px}
.st-editor .st-success{margin:16px 0;padding:12px;border:1px solid #bbd7c7;border-radius:8px;background:#f0f8f3;color:#21543c;font-size:13px;line-height:1.5}
.st-editor-footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:16px 24px max(16px,env(safe-area-inset-bottom));background:var(--st-bg);border-top:1px solid var(--st-line)}
.st-editor-footer>.st-actions{width:100%}
.st-editor-footer button{min-width:104px;min-height:46px;border-radius:8px;font-size:14px}
.st-editor-footer .primary{background:var(--st-accent);color:#fff}
.st-editor-footer small{margin-right:auto;font-size:12px;color:var(--st-muted);line-height:1.5}
.st-editor :is(button,a,input,select,textarea):focus-visible,.st-list :is(button,a):focus-visible,.st-task-tabs button:focus-visible,.st-toolbar button:focus-visible{outline:3px solid var(--st-focus);outline-offset:3px}
.st-editor [hidden]{display:none!important}
body:has(.st-editor-overlay:not([hidden])){overflow:hidden}
body:has(.st-editor-overlay:not([hidden])) .mobile-nav,body:has(.st-editor-overlay:not([hidden])) .quick-add{visibility:hidden}
@keyframes st-backdrop-in{from{background:rgb(20 34 28 / 0%)}to{background:rgb(20 34 28 / 38%)}}
@keyframes st-drawer-in{from{transform:translateX(28px);opacity:.5}to{transform:translateX(0);opacity:1}}
@media(max-width:640px){
  .st-toolbar{align-items:flex-start;gap:12px;margin-top:20px;flex-wrap:wrap}
  .st-toolbar h3{font-size:17px}
  .st-toolbar .st-actions{justify-content:flex-start}
  .st-task-summary{align-items:flex-start;flex-wrap:wrap}
  .st-task-heading h2{font-size:20px}
  .st-list-header{align-items:flex-start;gap:14px;flex-wrap:wrap;padding:16px}
  .st-list-header>button{flex-basis:100%;width:100%}
  .st-row{grid-template-columns:24px minmax(0,1fr);gap:7px 10px;padding:16px}
  .st-row>.st-actions{grid-column:2;justify-content:flex-start;margin-top:4px}
  .st-row:has(.st-ordinal)>button{grid-column:2;justify-self:start;margin-top:4px}
  .st-row:not(:has(.st-ordinal)){grid-template-columns:minmax(0,1fr);gap:8px}
  .st-row:not(:has(.st-ordinal))>button{justify-self:start}
  .st-title{margin-top:2px;font-size:15px}
  .st-row .st-requirements{gap:4px 10px}
  .st-editor-overlay{background:var(--st-bg,#fff)}
  .st-editor{width:100%;box-shadow:none;animation-duration:140ms}
  .st-editor-header{padding:calc(14px + env(safe-area-inset-top)) 16px 14px}
  .st-editor-header h2{font-size:20px}
  .st-editor-header p{font-size:12px}
  .st-editor-body{padding:20px 16px;scrollbar-gutter:auto}
  .st-editor-footer{padding:12px 16px max(12px,env(safe-area-inset-bottom));gap:8px;flex-wrap:wrap}
  .st-editor-footer>.st-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .st-editor-footer>button{flex:1}
  .st-editor-footer small{width:100%;margin:0 0 2px}
  .st-grid,.st-form-grid{grid-template-columns:88px minmax(0,1fr);gap:10px}
  .st-scope{padding:14px}
}
@media(max-width:360px){.st-grid,.st-form-grid{grid-template-columns:1fr;gap:0}.st-row{padding:14px 12px}.st-row .st-actions{gap:4px}.st-actions button{padding:9px 10px}.st-discard button{flex:1 1 100%}}
@media(prefers-reduced-motion:reduce){.st-editor-overlay,.st-editor{animation:none}.st-editor *,.st-list *{transition:none!important}}
[data-theme="dark"] :is(.st-list,.st-editor,.st-toolbar,.st-task-tabs,.st-task-summary,.st-task-heading){--st-bg:#23302c;--st-soft:#1b2621;--st-line:#3a4942;--st-ink:#eff5f1;--st-muted:#b6c5bb;--st-accent:#a0d4b5;--st-focus:#c3e8cf}
[data-theme="dark"] .st-editor :is(.st-requirements,.st-requirement-controls) label:has(input:checked){background:#293f32;border-color:#648370}
[data-theme="dark"] .st-editor :is(input,select,textarea){border-color:#526459}
[data-theme="dark"] :is(.st-editor-footer,.st-actions,.st-toolbar,.st-list-header) .primary{background:#a0d4b5;border-color:#a0d4b5;color:#142a1d}
[data-theme="dark"] :is(.st-editor-footer,.st-actions,.st-toolbar,.st-list-header) .primary:hover:not(:disabled){background:#b8e2c8}
[data-theme="dark"] .st-editor .st-error,[data-theme="dark"] .st-editor [data-st-error]{background:#3c2524;border-color:#85504a;color:#ffc1b9}
[data-theme="dark"] .st-discard{background:#392e1c;border-color:#786039;color:#f0d6b2}
[data-theme="dark"] .st-editor .st-success{background:#213a2c;border-color:#557963;color:#b8e2c8}
@media print{.st-editor-overlay{display:none!important}}
