/* Shared system: styles.css; feature layout: command.css */
.command-context{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-3);margin:0 0 20px;color:var(--muted,#6d6879);font-size:12px;margin-bottom:16px}
.command-context .btn{margin-left:auto}
.command-layout{display:grid;grid-template-columns:minmax(210px,250px) minmax(0,1fr);gap:18px;align-items:start}
.command-queue{position:sticky;top:20px;max-height:calc(100vh - 100px);overflow:auto;padding:2px}
.command-queue h2{font-size:16px;margin:0 0 12px}
.command-queue h2 small{font-weight:400;color:#777}
.command-queue-item{display:flex;flex-direction:column;text-align:left;gap:5px;width:100%;padding:12px;margin-bottom:8px;border:1px solid var(--line);background:#fff;border-radius:10px;color:#332c40;cursor:pointer;transition:border-color 160ms,background 160ms}
.command-queue-item:hover{border-color:#9e83c4}
.command-queue-item.selected{background:#f5f0fc;border-color:#7651aa;box-shadow:inset 3px 0 #7141af}
.command-queue-item strong{font-size:13px}
.command-queue-item span{font-size:12px;line-height:1.5}
.command-queue-item small{font-size:12px;line-height:1.5}
.draft-indicator{color:#69439b;font-weight:700}
.command-focus{padding:20px;background:#fff;border:1px solid var(--line);border-radius:12px;min-width:0}
.command-focus-title{display:flex;justify-content:space-between;align-items:start;gap:var(--space-3)}
.command-focus h2{font-size:19px;margin:6px 0 10px}
.command-focus h3{font-size:14px;margin:0 0 12px}
.command-focus section{margin-top:18px;padding-top:16px;border-top:1px solid #eeebf2}
.command-focus p{line-height:1.65}
.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}
.command-focus textarea{display:block;width:100%;min-height:72px;margin:8px 0 12px;border-color:var(--control-line);font-size:14px}
.command-check{padding:8px 0;border-bottom:1px solid #eeebf2}
.command-check:last-of-type{margin-bottom:14px}
.command-issue{display:flex;flex-direction:column;align-items:start;gap:var(--space-2);padding:12px 0}
.command-issue p{margin:0}
.command-summary-group{margin:22px 0}
.command-summary-group h3{font-size:14px}
.command-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.command-metric{border:1px solid #e4e0eb;border-radius:10px;background:#fff;min-width:0;padding:12px 14px}
.command-metric summary{cursor:pointer;display:grid;grid-template-columns:1fr auto;gap:var(--space-2);align-items:center;font-size:12px}
.command-metric summary strong{font-size:20px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.command-metric summary small{font-size:12px;color:var(--muted)}
.command-metric[open]{grid-column:1/-1}
.command-metric .table-wrap{max-height:320px;overflow:auto}
.command-missing{margin:18px 0;font-size:12px}
.command-missing summary{cursor:pointer}
.command-date{display:flex;gap:var(--space-3);align-items:end;margin:18px 0}
.command-date label{display:grid;gap:6px;font-size:12px}
.command-priorities{display:grid;gap:0}
.command-priorities>article{padding:14px 0;border-bottom:1px solid #eeebf2}
.command-priorities>article:last-child{border-bottom:0}
.command-priority-head{display:flex;gap:var(--space-3);align-items:center}
.command-priority-head h3{font-size:14px;margin:5px 0}
.command-priority-head small{color:var(--muted);font-size:12px}
.command-rank{width:27px;height:27px;border-radius:var(--control-radius);background:#e8f5f1;color:var(--teal);display:grid;place-items:center;font-size:12px;font-weight:700}
.command-priorities details{font-size:12px;margin:8px 0}
.command-priorities summary{cursor:pointer;min-height:32px;padding:5px 0}
.command-priorities p{font-size:12px;line-height:1.6;margin:8px 0}
@media(max-width:800px){.command-layout{grid-template-columns:1fr;gap:var(--space-4)}
.command-queue{position:static;max-height:245px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2)}
.command-queue h2{grid-column:1/-1}
.command-queue-item{margin:0}
.command-focus{padding:16px}
.command-focus-title{flex-direction:column}
.command-focus h2{font-size:18px}
.command-metrics{grid-template-columns:1fr}
.command-context .btn{margin-left:0}
.command-priorities .row-actions{flex-wrap:wrap}
.command-context{gap:var(--space-2)}
}
@media(prefers-reduced-motion:reduce){.command-queue-item{transition:none}
}
.command-execution{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.command-execution>section{min-width:0}
.command-check .check-row{padding:5px 0;border:0;font-size:13px}
.command-check .btn{margin-top:6px}
.command-execution .row-actions{justify-content:flex-start}
.command-priorities .row-actions{justify-content:flex-start}
.command-focus>section:first-of-type p{margin:7px 0}
@media(max-width:1100px){.command-execution{grid-template-columns:1fr}
.command-metrics{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){.command-metrics{grid-template-columns:1fr}
.command-focus textarea{font-size:16px}
.command-queue-item strong{font-size:13px}
.command-queue-item small{font-size:12px}
}

.command-queue-switch{min-width:0;position:sticky;top:20px}.command-queue-switch>summary{font-size:14px;font-weight:700;cursor:pointer;min-height:var(--touch-height);padding:8px 0;margin-bottom:6px}.command-queue-switch .command-queue{position:static}.command-queue-switch:not([open]){background:white;border:1px solid var(--line);border-radius:8px;padding:0 12px}
@media(max-width:800px){.command-queue-switch{position:static}.command-queue-switch>summary{margin-bottom:0}}
