/* ============================================================
   Developer docs (pages/docs/docs-page.mjs + docs-ui.mjs).
   fancy-v2-light for the page; the UI examples are the chat
   client's own surfaces, ported from mssgs-electron below the
   page styles (ddu-* frames, then the client classes verbatim).
   ============================================================ */

.dd{padding:0 0 40px}
.dd-wrap{max-width:900px;margin:0 auto;padding:0 24px}
.dd-wide{max-width:1080px;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}

/* ---- Hero ---- */
.dd-hero{padding:132px 24px 0}
.dd-back{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--w-mut);text-decoration:none;margin:0 0 22px}
.dd-back:hover{color:var(--w-ink)}
.dd-back i{font-size:12px}
.dd-kicker{display:block;font-size:13.5px;font-weight:700;letter-spacing:.02em;color:var(--green-700);margin:0 0 10px}
.dd-hero h1{font-size:clamp(36px,5vw,56px)!important;line-height:1.04!important;margin:0 0 16px;color:var(--w-ink)}
.dd-lead{font-size:20px;line-height:1.55;color:var(--w-ink2);margin:0 0 34px;max-width:720px}
.dd-cando-title{font-size:13px!important;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--w-mut2);margin:0 0 12px!important;font-family:var(--font-sans)!important}
.dd-cando{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dd-cando li{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border-radius:16px;background:rgba(255,255,255,.55);border:1px solid var(--w-line);box-shadow:0 8px 24px rgba(31,35,33,.05)}
.dd-cando li div{display:flex;flex-direction:column;gap:3px;min-width:0}
.dd-cando strong{font-size:15.5px;color:var(--w-ink);font-weight:650;line-height:1.35}
.dd-cando li span:not(.dd-cando-ico){font-size:14.5px;line-height:1.5;color:var(--w-mut)}
.dd-cando-ico{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:rgba(51,117,77,.12);color:var(--green-600);font-size:14px}

/* ---- The example, in its own band ---- */
.dd-example{margin-top:40px}
.dd-example-label{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--w-mut2);margin:0 0 12px}
.dd-example-caption{margin:14px auto 0;font-size:14.5px;line-height:1.55;color:var(--w-mut);max-width:760px;text-align:center}
.dd-example-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px;align-items:start}
.dd-example-col{display:flex;flex-direction:column;gap:10px;min-width:0}
.dd-example-col>p{margin:0;font-size:13px;font-weight:600;color:var(--w-mut);text-align:center}

/* ---- On this page ---- */
.dd-toc{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin-top:44px;padding-top:22px;padding-bottom:4px}
.dd-toc>span{font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--w-mut2)}
.dd-toc ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.dd-toc a{display:inline-block;padding:7px 13px;border-radius:980px;border:1px solid var(--w-line2);background:rgba(255,255,255,.6);font-size:14px;font-weight:600;color:var(--w-ink);text-decoration:none}
.dd-toc a:hover{background:var(--brand);border-color:var(--brand);color:var(--brand-contrast)}

/* Long words (Finnish compounds) and unbroken inline code must wrap, not
   widen the page on a phone. */
.dd-hero h1,.dd-sec>h2,.dh-card-title,.dd-legacy .docs-section>h2{overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}
.dd code,.dh code{overflow-wrap:anywhere}
.dd pre code{overflow-wrap:normal}

/* ---- Content ---- */
.dd-content{padding-top:8px}
.dd-sec{padding-top:56px;scroll-margin-top:90px}
.dd-sec>h2{font-size:clamp(26px,3.2vw,34px)!important;line-height:1.15;margin:0 0 14px;color:var(--w-ink)}
.dd-sec>h3,.dd-step-body>h3{font-size:19px;font-weight:650;margin:30px 0 10px;color:var(--w-ink);font-family:var(--font-sans)}
.dd-sec>p{font-size:16.5px;line-height:1.65;color:var(--w-ink2);margin:0 0 14px}
.dd-sec>p code,.dd-list code,.dd-legend code,.dd-table code,.dd-note code,.dd-cando code,.dd-lead code,.dd-step-body>p code,.dh-pick-table code{font-family:var(--font-mono);font-size:.88em;padding:1px 6px;border-radius:6px;background:rgba(50,55,30,.07);color:var(--w-ink)}
.dd-sec>p a,.dd-list a,.dd-legend a,.dd-step-body>p a,.dd-note a,.dd-table a,.dd-lead a,.dd-cando a,.dd-example-caption a{color:var(--green-700);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.dd-list{margin:0 0 16px;padding:0 0 0 20px}
.dd-list li{font-size:16px;line-height:1.6;color:var(--w-ink2);margin:0 0 6px}

.dd-code{margin:14px 0 18px;border-radius:14px;overflow:hidden;background:#1e2024;border:1px solid #2c2e33;box-shadow:0 10px 26px rgba(22,28,24,.14)}
.dd-code-head{display:flex;align-items:center;justify-content:space-between;padding:8px 10px 8px 16px;background:#26282d;border-bottom:1px solid #2f3136}
.dd-code-label{font-family:var(--font-mono);font-size:12px;color:#9ba0a8}
.dd-copy{font:600 12px var(--font-sans);color:#cfd3d9;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:5px 10px;cursor:pointer}
.dd-copy:hover{background:rgba(255,255,255,.14);color:#fff}
.dd-code pre{margin:0;padding:16px 18px;overflow-x:auto;font-family:var(--font-mono);font-size:13.5px;line-height:1.6;color:#e3e6ea;tab-size:2}
.dd-code pre code{background:none;padding:0;color:inherit;font-size:inherit}
/* Syntax colours (pages/docs/highlight.mjs), each at least 5:1 on the #1e2024 block */
.dd .tk-key,.dd .tk-flag{color:#8cc4ff}
.dd .tk-str{color:#a5d6a0}
.dd .tk-num,.dd .tk-lit{color:#f2b37e}
.dd .tk-kw{color:#d2a8ff}
.dd .tk-fn{color:#f3d57c}
.dd .tk-var{color:#f5a3b5}
.dd .tk-punc{color:#a6adb7}
.dd .tk-com{color:#8b949e;font-style:italic}

.dd-table-wrap{margin:14px 0 20px;border-radius:14px;border:1px solid var(--w-line);background:rgba(255,255,255,.55);overflow-x:auto}
.dd-table{width:100%;border-collapse:collapse;font-size:14.5px}
.dd-table thead th{background:#f6f1e4;text-align:left;padding:11px 16px;font-size:13px;font-weight:700;color:var(--w-ink);border-bottom:1px solid var(--w-line2);white-space:nowrap}
.dd-table tbody th,.dd-table td{padding:11px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--w-line);line-height:1.5;color:var(--w-ink2)}
.dd-table tbody th{font-weight:600;color:var(--w-ink);white-space:nowrap}
.dd-table tbody tr:last-child th,.dd-table tbody tr:last-child td{border-bottom:none}

.dd-note{display:flex;gap:12px;align-items:flex-start;margin:16px 0 20px;padding:14px 16px;border-radius:14px;font-size:15px;line-height:1.55;color:var(--w-ink2);background:rgba(51,117,77,.08);border:1px solid rgba(51,117,77,.18)}
.dd-note i{margin-top:3px;color:var(--green-600)}
.dd-note strong{color:var(--w-ink)}
.dd-note-warn{background:rgba(230,150,40,.09);border-color:rgba(200,130,30,.25)}
.dd-note-warn i{color:#b8741a}

.dd-steps{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.dd-step{display:grid;grid-template-columns:36px minmax(0,1fr);gap:16px;padding:6px 0 10px}
.dd-step-body,.dd-split-a,.dd-split-b,.dd-example-col{min-width:0}
.dd-step-num{width:32px;height:32px;border-radius:50%;background:var(--brand);color:var(--brand-contrast);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px}
.dd-step-body h3{margin:3px 0 6px!important;font-size:18px!important}
.dd-step-body p{margin:0 0 6px!important;font-size:16px!important}

.dd-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start;margin:10px 0 18px}
.dd-split .dd-code{margin:0}
.dd-fig{margin:14px 0 20px}
.dd-fig figcaption{margin:10px 0 0;font-size:13.5px;color:var(--w-mut);text-align:center}

/* ---- Keep building ---- */
.dd-next{margin-top:72px}
.dd-next h2{font-size:24px!important;margin:0 0 16px;color:var(--w-ink)}
.dd-next-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dd-next-card{display:flex;align-items:center;gap:14px;padding:18px 20px;border-radius:16px;background:rgba(255,255,255,.6);border:1px solid var(--w-line);text-decoration:none;color:var(--w-ink);transition:transform var(--dur-base) var(--ease-standard),box-shadow var(--dur-base) var(--ease-standard)}
.dd-next-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(31,35,33,.09)}
.dd-next-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.dd-next-text strong{font-size:15.5px}
.dd-next-text span{font-size:14px;color:var(--w-mut);line-height:1.45}
.dd-next-card>i{color:var(--w-mut2)}


/* ---- Tags, card anatomy legend, the builder section ---- */
.dd-tag{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:6px;background:rgba(88,101,242,.12);color:#4a54c6;font-size:11.5px;font-weight:700;letter-spacing:.02em;white-space:nowrap;vertical-align:1px}
.dd-legend{counter-reset:ddl;list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.dd-legend li{counter-increment:ddl;display:grid;grid-template-columns:26px 1fr;column-gap:10px;font-size:15px;line-height:1.5;color:var(--w-ink2)}
.dd-legend li::before{content:counter(ddl);grid-row:span 2;width:24px;height:24px;border-radius:50%;background:rgba(51,117,77,.14);color:var(--green-700);font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center;margin-top:1px}
.dd-legend strong{color:var(--w-ink);font-weight:650}
.dd-builder .docs-section>h2{font-size:clamp(26px,3.2vw,34px);line-height:1.15;margin:0 0 14px;color:var(--w-ink)}
.dd-builder .docs-section>p{font-size:16.5px;line-height:1.65;color:var(--w-ink2);margin:0 0 18px}


/* ---- Status row, narrow examples ---- */
.dd-example-narrow{max-width:640px;margin:0 auto}
.dd-sdk-example{display:flex;flex-direction:column;align-items:center;gap:14px;padding:28px 20px;border-radius:18px;background:radial-gradient(120% 90% at 50% 0%,#3a3c42 0%,#2b2d31 70%);max-width:560px;margin:0 auto;box-shadow:0 26px 60px -24px rgba(20,26,22,.55)}
.dd-sdk-example .playing-details-popover{position:relative;max-width:300px}
.ddu-status-row{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:10px;background:rgba(255,255,255,.04);min-width:240px}
.ddu-status-text{display:flex;flex-direction:column;gap:1px;font-family:var(--font-sans)}
.ddu-status-text strong{color:#dfe0e2;font-size:14.5px;font-weight:600}
.ddu-status-line{color:#6fbf73;font-size:12.5px}

/* ============================================================
   .dd-legacy: the MCP, Agents and Game SDK reference, written in
   the old docs markup, dressed like the rest of these pages.
   ============================================================ */
.dd-legacy .docs-section{padding-top:56px;scroll-margin-top:90px}
.dd-legacy .docs-section>h2{font-size:clamp(26px,3.2vw,34px);line-height:1.15;margin:0 0 14px;color:var(--w-ink)}
.dd-legacy .docs-section h3{font-size:19px;font-weight:650;margin:30px 0 10px;color:var(--w-ink);font-family:var(--font-sans)}
.dd-legacy .docs-section>p,.dd-legacy .docs-section>div>p{font-size:16.5px;line-height:1.65;color:var(--w-ink2);margin:0 0 14px}
.dd-legacy .docs-section p code,.dd-legacy .docs-list code,.dd-legacy .docs-table code,.dd-legacy .docs-info-box code{font-family:var(--font-mono);font-size:.88em;padding:1px 6px;border-radius:6px;background:rgba(50,55,30,.07);color:var(--w-ink)}
.dd-legacy a{color:var(--green-700);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
/* A button in running copy (the Game SDK's "Register your game") keeps the button look. */
.dd-legacy a.btn-f{color:#fff;text-decoration:none}
.dd-legacy a.btn-f i{margin-right:8px}
.dd-legacy .docs-list{margin:0 0 16px;padding:0 0 0 20px}
.dd-legacy .docs-list li{font-size:16px;line-height:1.6;color:var(--w-ink2);margin:0 0 6px}
.dd-legacy .docs-table{width:100%;border-collapse:collapse;font-size:14.5px;margin:14px 0 20px;border-radius:14px;overflow:hidden;background:rgba(255,255,255,.55);box-shadow:0 0 0 1px var(--w-line)}
.dd-legacy .docs-table thead th{background:#f6f1e4;text-align:left;padding:11px 16px;font-size:13px;font-weight:700;color:var(--w-ink);border-bottom:1px solid var(--w-line2)}
.dd-legacy .docs-table td{padding:11px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--w-line);line-height:1.5;color:var(--w-ink2)}
.dd-legacy .docs-table tbody tr:last-child td{border-bottom:none}
.dd-legacy .docs-table td:first-child{color:var(--w-ink)}
.dd-legacy .docs-info-box{display:flex;gap:12px;align-items:flex-start;margin:16px 0 20px;padding:14px 16px;border-radius:14px;font-size:15px;line-height:1.55;color:var(--w-ink2);background:rgba(51,117,77,.08);border:1px solid rgba(51,117,77,.18)}
.dd-legacy .docs-info-box>i{margin-top:3px;color:var(--green-600)}
.dd-legacy .docs-info-box h3{margin:0 0 4px!important;font-size:15.5px!important}
.dd-legacy .docs-info-box p{margin:0 0 6px;font-size:15px;line-height:1.55;color:var(--w-ink2)}
.dd-legacy .docs-info-box p:last-child{margin:0}
.dd-legacy .docs-info-box.warning{background:rgba(230,150,40,.09);border-color:rgba(200,130,30,.25)}
.dd-legacy .docs-info-box.warning>i{color:#b8741a}
.dd-legacy .docs-info-box.tip{background:rgba(88,101,242,.07);border-color:rgba(88,101,242,.2)}
.dd-legacy .docs-info-box.tip>i{color:#4a54c6}
.dd-legacy .code-block{margin:14px 0 18px;border-radius:14px;overflow:hidden;background:#1e2024;border:1px solid #2c2e33;box-shadow:0 10px 26px rgba(22,28,24,.14)}
.dd-legacy .code-header{display:flex;align-items:center;justify-content:space-between;padding:9px 16px;background:#26282d;border-bottom:1px solid #2f3136;font-family:var(--font-mono);font-size:12px;color:#9ba0a8}
.dd-legacy .code-block pre{margin:0;padding:16px 18px;overflow-x:auto;font-family:var(--font-mono);font-size:13.5px;line-height:1.6;color:#e3e6ea}
.dd-legacy .code-block pre code{background:none;padding:0;color:inherit;font-size:inherit}
.dd-legacy .endpoint-block{margin:10px 0 16px;padding:14px 16px;border-radius:14px;background:rgba(255,255,255,.55);border:1px solid var(--w-line)}
.dd-legacy .endpoint-block p{margin:8px 0 0;font-size:15px;line-height:1.55;color:var(--w-ink2)}
.dd-legacy .endpoint-header{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dd-legacy .endpoint-header code{font-family:var(--font-mono);font-size:14px;color:var(--w-ink)}
.dd-legacy .method{display:inline-block;padding:2px 8px;border-radius:6px;font-family:var(--font-mono);font-size:11.5px;font-weight:700;letter-spacing:.03em;background:rgba(51,117,77,.14);color:var(--green-700)}
.dd-legacy .method.post{background:rgba(88,101,242,.12);color:#4a54c6}
.dd-legacy .method.put{background:rgba(230,150,40,.14);color:#9a5d0c}
.dd-legacy .method.delete{background:rgba(237,66,69,.12);color:#b8292c}
.dd-legacy .mcp-cat-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.dd-legacy .mcp-cat-head h3{margin:0!important}
.dd-legacy .mcp-gate{font-size:12.5px;font-weight:600;color:var(--w-mut2);padding:3px 9px;border-radius:980px;border:1px solid var(--w-line2)}
.dd-legacy .scope-broad td{background:rgba(230,150,40,.06)}
@media (max-width:760px){
  .dd-legacy .docs-table{display:block;overflow-x:auto}
  .dd-legacy .docs-section{padding-top:44px}
}

/* ============================================================
   Example frames (ddu-*): the channel window around the client
   pieces. Colours are the client's (#323338 chat, #2b2d31 bar).
   ============================================================ */

.ddu-stage{position:relative;display:flex;flex-direction:column;border-radius:16px;overflow:visible;background:#323338;border:1px solid #393a3f;box-shadow:0 26px 60px -24px rgba(20,26,22,.55),0 8px 22px -10px rgba(20,26,22,.35);font-family:var(--font-sans);color:#dfe0e2;text-align:left}
.ddu-stage-head{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #3f4147;font-size:15px;font-weight:600;color:#f2f3f5;border-radius:16px 16px 0 0;background:#2f3035}
.ddu-hash{color:#80848e;font-weight:700;font-size:18px;line-height:1}
.ddu-stage-body{display:flex;flex-direction:column;gap:14px;padding:16px 16px 18px}
.ddu-msg{display:flex;gap:12px;align-items:flex-start}
.ddu-msg-avatar{width:36px;height:36px;flex:0 0 36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:700;color:#fff}
.ddu-msg-body{min-width:0;flex:1}
.ddu-msg .chat-message-text-inline{padding-right:0}
.ddu-msg .chat-message-text-inline code{font-family:'Monaco','Consolas','Ubuntu Mono',monospace;font-size:13px;padding:2px 4px;border-radius:3px;background:rgba(255,255,255,.1);color:#ff6b9d}
.ddu-mention{color:#68a8da;font-weight:600}
.ddu-cardrow .action-message-container{width:100%;margin:0}
.ddu-input{position:relative;padding:0 16px 16px}
.ddu-input-bar{display:flex;align-items:center;min-height:44px;padding:0 14px;border-radius:8px;background:#383a40;font-size:15px}
.ddu-input-placeholder{color:#80848e}
.ddu-input-typed{color:#dfe0e2}
.ddu-caret{display:inline-block;width:2px;height:18px;margin-left:1px;background:#dfe0e2;animation:dduCaret 1.1s steps(1) infinite}
@keyframes dduCaret{50%{opacity:0}}
.ddu-input .trigger-picker{left:16px;right:16px}
.ddu-stage-picker .ddu-stage-body{min-height:200px}
.ddu-static{position:relative!important;z-index:auto!important}
.ddu-pressed{outline:2px solid rgba(255,255,255,.55);outline-offset:2px}
.ddu-reactions{display:flex;gap:6px;margin:6px 0 0 44px}
.ddu-reaction{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:8px;background:rgba(88,101,242,.15);border:1px solid rgba(88,101,242,.5);font-size:13px;color:#dfe0e2}
.ddu-arrow{display:flex;align-items:center;justify-content:center;color:var(--w-mut2);font-size:20px}

.ddu-term{border-radius:14px;overflow:hidden;background:#15171a;border:1px solid #26292e;box-shadow:0 18px 40px -20px rgba(20,26,22,.5);text-align:left}
.ddu-term-head{display:flex;gap:6px;padding:10px 12px;background:#1d2024}
.ddu-term-head span{width:10px;height:10px;border-radius:50%;background:#3a3d43}
.ddu-term-body{padding:14px 16px 16px;font-family:var(--font-mono);font-size:13px;line-height:1.65;color:#d6dae0;overflow-x:auto}
.ddu-term-line{white-space:pre}
.ddu-term .p{color:#6fbf73}
.ddu-term .c{color:#7d848e}
.ddu-term .s{color:#e9c46a}
.ddu-term .k{color:#8fb7ff}

/* ============================================================
   Client classes, ported from mssgs-electron verbatim.
   ============================================================ */

/* chat-view/chat-view.css */
.view-message-header{display:flex;align-items:center;gap:4px}
.view-message-header .view-message-header-name{color:#dfe0e2;font-weight:600;font-size:15px}
.view-message-header .view-message-header-time{color:#aeb0b5;font-size:11px;margin-left:6px}
.chat-message-text-inline{color:#dfe0e2;font-size:15px;line-height:1.375;word-break:break-word;overflow-wrap:anywhere}

/* chat-input/trigger-picker.css */
.trigger-picker{position:absolute;bottom:100%;left:0;right:0;border-radius:12px;margin-bottom:4px;min-width:240px;z-index:5;overflow:hidden;background:rgba(40,40,48,.55);backdrop-filter:blur(40px) saturate(1.8);-webkit-backdrop-filter:blur(40px) saturate(1.8);border:1px solid rgba(255,255,255,.12);box-shadow:0 8px 32px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.08)}
.trigger-picker-header{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid #3f4147;color:#b5bac1;font-size:14px}
.trigger-picker-header-icon{color:#508ec9;font-weight:700;font-size:16px;font-family:'Consolas','Monaco','Courier New',monospace}
.trigger-picker-header-text{font-weight:500}
.trigger-picker-list{max-height:180px;overflow-y:auto;padding:8px}
.trigger-picker-item{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:4px}
.trigger-picker-item.selected{background-color:#404249}
.trigger-match{color:#508ec9;font-weight:500;font-family:'Consolas','Monaco','Courier New',monospace;font-size:14px}
.trigger-name{color:#949ba4;font-size:13px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}

/* chat-view/agent-task-card.css (head, status, project, body) */
.agent-task-card{position:relative;display:flex;flex-direction:column;gap:7px;padding:12px 14px;border-radius:10px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
.agent-task-card.tone-active{border-color:rgba(74,124,89,.5)}
.agent-task-card.tone-attention{border-color:rgba(241,174,56,.4)}
.agent-task-card.tone-good{border-color:rgba(87,175,96,.35)}
.agent-task-card .agent-task-head{display:flex;align-items:center;gap:9px}
.agent-task-card .agent-task-avatar{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;border-radius:7px;color:#90ee90;background:rgba(74,124,89,.28);border:1px solid rgba(144,238,144,.22)}
.agent-task-card .agent-task-who{display:flex;align-items:baseline;gap:8px;min-width:0;flex:1}
.agent-task-card .agent-task-name{font-size:14px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agent-task-card .agent-task-head-right{display:flex;align-items:center;gap:6px;flex-shrink:0}
.agent-task-card .agent-task-status{padding:3px 9px;border-radius:6px;font-size:11px;font-weight:700;line-height:14px;letter-spacing:.2px;white-space:nowrap;background:rgba(255,255,255,.08);color:rgba(255,255,255,.6)}
.agent-task-card .agent-task-status.tone-active{background:rgba(74,124,89,.3);color:#a5dcb0}
.agent-task-card .agent-task-status.tone-attention{background:rgba(241,174,56,.2);color:#f1ae38}
.agent-task-card .agent-task-status.tone-good{background:rgba(87,175,96,.22);color:#6fbf73}
.agent-task-card .agent-task-project{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.agent-task-card .agent-task-project-label,.agent-task-card .agent-task-model-label{font-size:11.5px;color:rgba(255,255,255,.4)}
.agent-task-card .agent-task-project .agent-task-model-label{margin-left:6px}
.agent-task-card .agent-task-project-tag{display:inline-block;padding:1px 7px;border-radius:5px;background:rgba(88,101,242,.16);color:#a3b0f9;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;font-weight:600}
.agent-task-card .agent-task-model{display:inline-block;padding:1px 7px;border-radius:5px;border:1px solid rgba(144,238,144,.22);background:rgba(74,124,89,.16);color:#9fd3ad;font-size:11.5px;font-weight:600}
.agent-task-card .agent-task-title{margin:0;font-size:14.5px;font-weight:600;line-height:1.35;color:#fff;font-family:var(--font-sans)}
.agent-task-card .agent-task-body{font-size:13.5px;line-height:1.5;color:rgba(255,255,255,.78)}
.agent-task-card .agent-task-body-plain{white-space:pre-wrap}

/* chat-view/playing-details-popover.css */
.playing-details-popover{position:fixed;z-index:10;min-width:220px;max-width:300px;padding:14px;border-radius:14px;isolation:isolate;color:#fff;background:rgba(40,40,48,.45);backdrop-filter:blur(40px) saturate(1.8);-webkit-backdrop-filter:blur(40px) saturate(1.8);border:1px solid rgba(255,255,255,.12);box-shadow:0 8px 32px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.08)}
.playing-details-popover::before{content:'';position:absolute;inset:0;border-radius:inherit;padding:1px;background:conic-gradient(from 180deg,rgba(255,255,255,.4),rgba(255,255,255,.05),rgba(255,255,255,.3),rgba(255,255,255,.05),rgba(255,255,255,.4));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;pointer-events:none;z-index:-1}
.playing-details-popover .playing-details-head{display:flex;align-items:flex-start;gap:10px}
.playing-details-popover .playing-details-icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;color:#fff;background:linear-gradient(135deg,rgba(74,124,89,.9),rgba(90,140,105,.9));border:1px solid rgba(144,238,144,.3)}
.playing-details-popover .playing-details-titles{display:flex;flex-direction:column;gap:1px;min-width:0}
.playing-details-popover .playing-details-name{font-size:14px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.playing-details-popover .playing-details-sub{font-size:11px;line-height:1.3;color:rgba(255,255,255,.5)}
.playing-details-popover .playing-details-body{display:flex;flex-direction:column;gap:3px;margin-top:10px}
.playing-details-popover .playing-details-line{font-size:12px;line-height:1.4;color:rgba(255,255,255,.85);overflow-wrap:anywhere}
.playing-details-popover .playing-details-meta{font-size:11px;line-height:1.4;color:rgba(255,255,255,.45)}
.playing-details-popover .playing-details-actions{display:flex;gap:8px;margin-top:12px}
.playing-details-popover .playing-details-action{flex:1;padding:8px 12px;font-family:inherit;font-size:13px;font-weight:600;line-height:1.3;color:#fff;border-radius:10px;border:1px solid rgba(144,238,144,.4);background:rgba(74,124,89,.3)}
.playing-details-popover .playing-details-role{margin-top:2px}
.playing-details-popover .playing-details-role-chip{display:inline-block;padding:2px 8px;font-size:11px;font-weight:500;line-height:1.35;border-radius:8px;color:#fff;background:rgba(74,124,89,.35);border:1px solid rgba(144,238,144,.3)}


/* ============================================================
   The hub (pages/docs/hub-shared.mjs): a chooser of cards, each
   with a small example of the feature in the app.
   ============================================================ */

.dh-h2{font-size:clamp(24px,3vw,30px)!important;line-height:1.2;margin:0 0 18px;color:var(--w-ink)}
.dh-cards-wrap{margin-top:36px}
.dh-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.dh-card{display:flex;flex-direction:column;border-radius:20px;overflow:hidden;background:rgba(255,255,255,.62);border:1px solid var(--w-line);text-decoration:none;color:var(--w-ink);box-shadow:0 10px 28px rgba(31,35,33,.06);transition:transform var(--dur-base) var(--ease-standard),box-shadow var(--dur-base) var(--ease-standard)}
.dh-card:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(31,35,33,.12)}
.dh-card-pv{position:relative;height:210px;padding:22px 26px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(120% 90% at 50% 0%,#3a3c42 0%,#2b2d31 70%);border-bottom:1px solid rgba(0,0,0,.2)}
.dh-card-pv>*{width:100%;max-width:440px}
.dh-card-pv .action-message-container{margin:0}
.dh-pv-picker{position:relative}
.dh-pv-picker .trigger-picker{position:relative;bottom:auto;margin:0;background:rgba(40,40,48,.8)}
.dh-card-pv .playing-details-popover{position:relative;max-width:300px}
.dh-card-pv .playing-details-popover{margin:0 auto}
.dh-card-pv .ddu-term{box-shadow:none}
.dh-card-pv .ddu-term-body{font-size:12px}
.dh-card-text{display:flex;flex-direction:column;gap:6px;padding:18px 22px 20px}
.dh-card-title{display:flex;align-items:center;gap:10px;font-size:18.5px;font-weight:650;line-height:1.3}
.dh-card-title i{color:var(--green-600);font-size:15px}
.dh-card-desc{font-size:15px;line-height:1.55;color:var(--w-mut)}
.dh-card-meta{margin-top:4px;font-size:12.5px;font-weight:600;letter-spacing:.02em;color:var(--w-mut2)}
.dh-pick{margin-top:72px}
.dh-pick-table tbody th{white-space:normal;font-weight:500}
.dh-pick-table td a{font-weight:600;white-space:nowrap}
.dh-pick-note{font-size:15px;line-height:1.6;color:var(--w-mut);margin:4px 0 0}
@media (max-width:860px){
  .dh-cards{grid-template-columns:1fr}
  .dh-pick-table td a{white-space:normal}
}
@media (max-width:420px){
  .dh-card-pv{height:auto;min-height:170px;padding:18px 14px}
}

/* ---- Responsive ---- */
@media (max-width:760px){
  .dd-hero{padding-top:112px}
  .dd-hero h1{font-size:clamp(30px,8.6vw,40px)!important}
  .dd-lead{font-size:18px}
  .dd-cando{grid-template-columns:1fr}
  .dd-split{grid-template-columns:1fr}
  .dd-next-grid{grid-template-columns:1fr}
  .dd-sec{padding-top:44px}
  .dd-table{font-size:13.5px}
  .dd-table thead th,.dd-table tbody th,.dd-table td{padding:10px 12px}
  .dd-table tbody th{white-space:normal;overflow-wrap:anywhere}
  .ddu-stage-body{padding:14px 12px 16px}
  .ddu-input{padding:0 12px 12px}
}
@media (prefers-reduced-motion:reduce){
  .ddu-caret{animation:none}
  .dd-next-card{transition:none}
}
