/* Product screens. Tokens, pills, checklist rows, briefs, market cards and drafts come from the design book
   (/book/app.css = simulation/sandbox/static/app.css, rules in simulation/sandbox/DESIGN.md). Only product layout here. */
.hidden{display:none !important}
.top nav a{text-decoration:none} .top nav a.on{color:var(--fg);font-weight:600}
.pd-layout{display:flex;min-height:calc(100vh - 52px)}
.pd-work{flex:1;min-width:0;padding:20px 24px;display:flex;flex-direction:column;gap:14px}
.pd-narrow{max-width:1100px;width:100%}
.pd-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.pd-head h1{margin:0;font-size:22px}
.pd-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pd-case{display:flex;gap:18px;align-items:flex-start;flex-wrap:wrap}
.pd-main{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:14px}
.pd-side{flex:1 1 300px;max-width:380px;display:flex;flex-direction:column;gap:14px}
.card{margin:0}
.card h3{display:flex;gap:8px;align-items:center}
.viewer{position:sticky;top:0;height:100vh}
/* list rows */
.pd-row{display:flex;gap:14px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line);color:var(--fg);text-decoration:none;flex-wrap:wrap}
.pd-row:last-child{border-bottom:0} .pd-row:hover{background:var(--surface-2)}
.pd-row .st{width:150px;text-align:center} .pd-row .nm{width:240px;font-weight:600} .pd-row .ln{flex:1;color:var(--muted);min-width:200px}
.pill.big{font-size:12px;padding:3px 10px}
.pill.grey{background:var(--surface-2);color:var(--fg)}
/* messages: 4 tones, red only for real failures */
.note{border-radius:8px;padding:10px 14px;display:flex;flex-direction:column;gap:4px}
.note ul{margin:0;padding-left:20px;line-height:1.6}
.note .note-h{display:flex;gap:8px;align-items:center;font-weight:600}
.note .tag{background:var(--surface);border-radius:99px;padding:1px 9px;font-size:12px}
.note.fyi{background:var(--surface-2)} .note.you{background:var(--accent-soft)} .note.you .tag{color:var(--accent-ink)}
.note.ours{background:var(--info-soft)} .note.ours .tag{color:var(--info)} .note.bad{background:var(--bad-soft)} .note.bad .tag{color:var(--bad)}
.toast{position:fixed;right:20px;top:64px;z-index:50;max-width:420px;box-shadow:0 4px 18px rgba(0,0,0,.12)}
/* drafts */
.dr-row{display:flex;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.dr-row:last-child{border-bottom:0} .dr-row .grow{flex:1;min-width:200px}
.dr-body{padding:8px 0 12px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.dr-body label{display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--muted)}
/* settings */
.st-row{display:flex;gap:14px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.st-row:last-child{border-bottom:0} .st-row .who{width:230px;font-weight:600;overflow-wrap:anywhere} .st-row .role{width:120px}
.roles{display:grid;grid-template-columns:2fr repeat(4,minmax(0,1fr));font-size:13px}
.roles>*{padding:6px 0;border-top:1px solid var(--line)} .roles>.h{border-top:0;font-weight:600}
.roles .y{color:var(--good)} .roles .n{color:var(--muted)}
.inline-form{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:8px}
/* sign-in */
.login{display:flex;justify-content:center;padding:60px 16px}
.login .card{width:420px;max-width:100%;display:flex;flex-direction:column;gap:14px;padding:26px}
.login form{display:flex;flex-direction:column;gap:12px} .login label{display:flex;flex-direction:column;gap:5px;font-weight:600}
.login input{padding:9px;font-size:15px} .login .code{font-size:20px;letter-spacing:4px}
.login .secret{font:600 16px var(--f-mono);background:var(--surface-2);padding:8px;border-radius:6px;overflow-wrap:anywhere}
.steps-done{color:var(--muted);font-size:13px}
dialog{border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--fg);width:min(480px,92vw)}
dialog form{display:flex;flex-direction:column;gap:10px} dialog label{display:flex;flex-direction:column;gap:4px}
.q-row label{display:flex;gap:8px;align-items:flex-start}
.edit-all summary{cursor:pointer;font-weight:600}
.grid{border-collapse:collapse;width:100%;font-size:13px} .grid th,.grid td{border-bottom:1px solid var(--line);padding:4px;text-align:left;vertical-align:top}
.grid input{width:100%} td.changed input{background:var(--accent-soft)}
@media (max-width:700px){.pd-work{padding:14px 16px}.pd-row .st,.pd-row .nm{width:auto}.viewer{display:none}}
.pd-stack{display:flex;flex-direction:column;gap:14px} .pd-h1{margin:0;font-size:22px} .inline-form.flush{margin:0} .w80{width:80px} .big-t{font-size:18px}
/* J, K, M from the design book (simulation/sandbox/DESIGN.md, "Lists and decisions", "Problems first") */
.pd-row .nm{display:flex;flex-direction:column;gap:2px}
.pd-ref{font-weight:400;font-size:12px;color:var(--muted)} .pd-ref .mono{color:var(--info);font-weight:600}
.pb-hero{display:flex;gap:8px;align-items:center;font-size:16px;padding:4px 0}
.dr-row.dr-wait{border-left:3px solid var(--accent);padding-left:10px}
.draft-fold{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;margin:6px 0}
.draft-fold .grow{flex:1;min-width:200px}
/* L: the file as a plain grouped form (book classes .ms-*, .rf-row, .ready-q come from /book/app.css) */
.ms-f.ms-wide{grid-column:1/-1} .ms-f.ms-two{grid-column:span 2}
.edit-all>summary{font-size:15px}
/* N: note for the AMS copied, not confirmed yet */
.draft-fold.approved.copied{background:var(--accent-soft);border-left-color:var(--accent)}
.draft-fold.approved.copied .df-ic{color:var(--accent)}
.offscreen{position:fixed;left:-9999px;opacity:0}
/* N and O dialogs: classes from the book (/book/app.css) */
.mr-acts{display:inline-flex;gap:12px}
