/* JD private AI workspace (signed-in JD tab). Native page, no enclosing card.
   Theme tokens only; mono theme keeps its own bubble/composer rules. */
.jd-ws{width:min(100%,960px);margin-inline:auto;display:flex;flex-direction:column;min-width:0}

/* Header */
.jd-ws-head.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:18px 28px;margin:0;padding:0 0 22px;border-bottom:1px solid var(--text)}
.jd-ws-intro{min-width:0;flex:1 1 420px}
.jd-ws-kicker{margin:0 0 12px;font-size:.6875rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--muted)}
.jd-ws-title{margin:0;font-weight:600;font-size:clamp(1.9rem,1.3rem + 2.4vw,3rem);line-height:1.02;letter-spacing:-.04em;text-wrap:balance}
.jd-ws-title em{font-family:var(--serif,Georgia,serif);font-style:italic;font-weight:400;letter-spacing:-.015em}
.jd-ws-meta{margin:10px 0 0}
.jd-ws-lead{margin:8px 0 0;max-width:62ch;font-size:.95rem;line-height:1.55;color:var(--text-2)}
.jd-ws-actions{display:flex;flex-wrap:wrap;gap:8px;flex:none}
.jd-ws-actions .btn{min-height:44px}
.jd-ws-actions .jd-ws-quiet{background:transparent;border-color:transparent;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}

/* Mode bar */
.jd-ws-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;padding:14px 0;border-bottom:1px solid var(--border)}
.jd-ws-modes.modes{margin:0;gap:6px}
.jd-ws-modes .mode{min-height:44px}
.jd-ws-hint.small{margin:0;flex:1 1 220px;font-size:.85rem;color:var(--text-2);line-height:1.4}
.jd-ws-about{flex:1 1 100%;font-size:.85rem;color:var(--text-2)}
.jd-ws-about summary{display:inline-flex;align-items:center;min-height:36px;cursor:pointer;font-weight:600;color:var(--text);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;list-style:none}
.jd-ws-about summary::-webkit-details-marker{display:none}
.jd-ws-about summary::after{content:"+";margin-inline-start:8px;text-decoration:none;color:var(--muted)}
.jd-ws-about[open] summary::after{content:"\2212"}
.jd-ws-about summary:focus-visible{outline:2px solid var(--ring,var(--text));outline-offset:2px;border-radius:4px}
.jd-ws-about dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px 28px;margin:10px 0 4px}
.jd-ws-about dl>div{padding-top:10px;border-top:1px solid var(--border)}
.jd-ws-about dt{font-weight:600;color:var(--text);margin-bottom:2px}
.jd-ws-about dd{margin:0;line-height:1.5}

/* Conversation as page region: no card shell */
.jd-ws .jd-ws-conversation.jd-conversation{width:100%;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
.jd-ws .jd-ws-conversation .jd-conversation-head{width:min(100%,900px);margin-inline:auto;padding:12px 4px;min-height:52px;border:0;border-bottom:1px solid var(--border);background:transparent}
.jd-ws .jd-ws-conversation .jd-timeline{width:min(100%,900px);margin-inline:auto;min-height:clamp(160px,22dvh,260px);max-height:min(54dvh,600px);padding:20px 4px 24px}
.jd-ws .jd-ws-conversation>.jd-box{width:min(100%,900px);margin:8px auto 0}
.jd-ws-private{flex:1;min-width:0;font-size:.75rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jd-ws .jd-row2 .jd-send{margin-inline-start:auto}
.jd-ws .jd-connect-note{border-radius:0;border-inline:0;box-shadow:none}

@media (max-width:767px){
  .jd-ws-head.page-head{padding-bottom:16px;gap:14px}
  .jd-ws-intro{flex-basis:100%}
  .jd-ws-actions{width:100%}
  .jd-ws-actions .btn{flex:1 1 auto}
  .jd-ws-modes.modes{flex-wrap:nowrap;overflow-x:auto;width:100%;scrollbar-width:none;padding-bottom:2px}
  .jd-ws-modes.modes::-webkit-scrollbar{display:none}
  .jd-ws-modes .mode{flex:none}
  .jd-ws-hint.small{flex-basis:100%}
  .jd-ws .jd-ws-conversation .jd-timeline{min-height:140px;max-height:min(50dvh,520px);padding-inline:2px}
  /* Keep the mobile transcript unobstructed. The inherited sticky composer
     otherwise lifts over messages beneath this page's introductory header. */
  body.in-app #view-app .jd-ws .jd-ws-conversation>.jd-box{position:relative;bottom:auto;width:100%;margin:12px auto 0}
}
@media (max-width:420px){.jd-ws-private{display:none}}
