/* Personal dashboard: scoped independently of the public site and agent monitor. */
body[data-site="dashboard"][data-dashboard-workspace="true"] {
  --dw-paper: #f5f2ea;
  --dw-sheet: #fcfaf5;
  --dw-ink: #263e32;
  --dw-muted: #657267;
  --dw-rule: #d8ddcf;
  --dw-soft: #e8eddf;
  --dw-rust: #a14b31;
  color: var(--dw-ink);
  background: var(--dw-paper);
}
body[data-site="dashboard"] .dashboard-workspace {
  display: block;
  width: min(100%, 1220px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 44px 100px;
  color: var(--dw-ink);
  font: 400 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
.dashboard-workspace *, .dashboard-workspace *::before, .dashboard-workspace *::after { box-sizing: border-box; }
.dashboard-workspace [hidden] { display: none !important; }
.dashboard-workspace :is(h1, h2, h3, p) { margin: 0; }
.dashboard-workspace :is(button, input, textarea) { font: inherit; letter-spacing: inherit; }
.dashboard-workspace :is(button, a, summary, input, textarea):focus-visible { outline: 2px solid var(--dw-rust); outline-offset: 4px; }
.dashboard-workspace button { cursor: pointer; }
.dashboard-workspace button:disabled { cursor: wait; opacity: .6; }
.dashboard-workspace a { color: inherit; }
.dashboard-workspace summary { cursor: pointer; min-height: 44px; padding: 11px 0; font-size: 13px; font-weight: 500; }
.dashboard-workspace input, .dashboard-workspace textarea {
  width: 100%; min-width: 0; color: var(--dw-ink); background: var(--dw-sheet);
  border: 1px solid var(--dw-rule); border-radius: 7px; padding: 11px 12px;
}
.dashboard-workspace input { min-height: 44px; }
.dashboard-workspace input::placeholder, .dashboard-workspace textarea::placeholder { color: var(--dw-muted); opacity: .85; }
.dashboard-workspace textarea { resize: vertical; line-height: 1.6; }
.dashboard-workspace .dw-header { margin-bottom: 28px; }
.dashboard-workspace .dw-chrome { display: flex; align-items: center; gap: 18px; min-height: 78px; }
.dashboard-workspace .dw-mark { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; font: 400 34px/1 Georgia, serif; letter-spacing: -2px; text-decoration: none; padding-bottom: 7px; }
.dashboard-workspace .dw-date { font-size: 13px; color: var(--dw-muted); }
.dashboard-workspace .dw-chrome > button { margin-left: auto; }
.dashboard-workspace .dw-nav { display: flex; gap: 10px; border-bottom: 1px solid var(--dw-rule); }
.dashboard-workspace .dw-nav-button { color: var(--dw-muted); background: transparent; padding: 10px 15px 13px; border: 0; border-bottom: 2px solid transparent; min-height: 47px; font-size: 14px; }
.dashboard-workspace .dw-nav-button:first-child { padding-left: 0; padding-right: 20px; }
.dashboard-workspace .dw-nav-button[aria-current="page"] { color: var(--dw-ink); border-color: var(--dw-ink); font-weight: 600; }
.dashboard-workspace .dw-nav-button:hover { color: var(--dw-rust); }
.dashboard-workspace .dw-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin: 0 0 23px; }
.dashboard-workspace .dw-heading h1 { font: 400 37px/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.9px; }
.dashboard-workspace .dw-heading h1:focus { outline: none; }
.dashboard-workspace .dw-heading-note { color: var(--dw-muted); font-size: 13px; }
.dashboard-workspace .dw-layout { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(240px, 1fr); gap: 44px; align-items: start; }
.dashboard-workspace .dw-primary-column { min-width: 0; }
.dashboard-workspace .dw-list { border-top: 1px solid var(--dw-rule); }
.dashboard-workspace .dw-item { border-bottom: 1px solid var(--dw-rule); padding: 21px 0 8px; min-width: 0; }
.dashboard-workspace .dw-item-core { display: flex; gap: 22px; align-items: flex-start; justify-content: space-between; }
.dashboard-workspace .dw-item-copy { flex: 1; min-width: 0; position: relative; }
.dashboard-workspace .dw-number { color: var(--dw-rust); font: 500 11px/1.3 ui-monospace, monospace; display: block; margin-bottom: 8px; }
.dashboard-workspace .dw-item-title { font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: -.2px; overflow-wrap: anywhere; }
.dashboard-workspace .dw-item-detail { margin-top: 6px; color: var(--dw-muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dashboard-workspace .dw-item-action { margin-top: 7px; color: var(--dw-ink); font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.dashboard-workspace .dw-item-time { color: var(--dw-rust); margin-top: 8px; font-size: 12px; }
.dashboard-workspace .dw-pending { display: inline-block; color: var(--dw-rust); font-size: 12px; margin-top: 6px; }
.dashboard-workspace .dw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dashboard-workspace .dw-item-core > .dw-actions { flex-shrink: 0; max-width: 215px; justify-content: flex-end; }
.dashboard-workspace .dw-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--dw-rule); border-radius: 7px;
  color: var(--dw-ink); background: transparent; font-size: 13px; font-weight: 500;
  text-decoration: none; white-space: normal;
}
.dashboard-workspace .dw-button:hover { background: var(--dw-soft); }
.dashboard-workspace .dw-primary { color: var(--dw-sheet); background: var(--dw-ink); border-color: var(--dw-ink); }
.dashboard-workspace .dw-primary:hover { background: #365541; }
.dashboard-workspace .dw-quiet { border-color: transparent; color: var(--dw-muted); }
.dashboard-workspace .dw-more { min-width: 44px; padding: 8px 10px; letter-spacing: 1px; border-color: transparent; color: var(--dw-muted); }
.dashboard-workspace .dw-text-link { border-color: transparent; padding-left: 0; margin-top: 9px; }
.dashboard-workspace .dw-context > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--dw-muted); font-size: 12px; }
.dashboard-workspace .dw-context > summary::-webkit-details-marker { display: none; }
.dashboard-workspace .dw-context > summary::after { content: "+"; color: var(--dw-muted); }
.dashboard-workspace .dw-context[open] > summary::after { content: "−"; }
.dashboard-workspace .dw-evidence { padding: 16px 18px; margin: 0 0 13px; border-left: 2px solid var(--dw-rule); background: var(--dw-sheet); font-size: 14px; overflow-wrap: anywhere; }
.dashboard-workspace .dw-evidence p + p, .dashboard-workspace .dw-evidence > * + * { margin-top: 10px; }
.dashboard-workspace .dw-evidence .card-markdown { font-size: inherit; line-height: 1.6; margin: 12px 0; }
.dashboard-workspace .dw-evidence .card-markdown p { color: inherit; font-size: inherit; }
.dashboard-workspace .dw-evidence .card-markdown :is(ul, ol) { padding-left: 20px; }
.dashboard-workspace .dw-evidence .card-markdown li + li { margin-top: 6px; }
.dashboard-workspace .dw-evidence .card-markdown-heading { display: block; margin-top: 12px; font-size: 14px; }
.dashboard-workspace .dw-source-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--dw-ink); text-underline-offset: 3px; }
.dashboard-workspace .dw-next-step { font-weight: 500; }
.dashboard-workspace .dw-meta { color: var(--dw-muted); font-size: 12px; line-height: 1.55; }
.dashboard-workspace .dw-warning { color: var(--dw-rust); }
.dashboard-workspace .dw-section { margin-top: 35px; }
.dashboard-workspace .dw-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dashboard-workspace .dw-section-heading h2 { font-size: 16px; font-weight: 600; }
.dashboard-workspace .dw-section-heading > button { margin: -10px 0; }
.dashboard-workspace .dw-sidebar { border-left: 1px solid var(--dw-rule); padding-left: 28px; }
.dashboard-workspace .dw-sidebar .dw-section:first-child { margin-top: 0; }
.dashboard-workspace .dw-sidebar > details { margin-top: 22px; border-top: 1px solid var(--dw-rule); }
.dashboard-workspace .dw-capture { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 750px; }
.dashboard-workspace .dw-capture-extra { grid-column: 1/-1; }
.dashboard-workspace .dw-capture-extra summary { min-height: 44px; padding: 10px 0; color: var(--dw-muted); font-size: 12px; }
.dashboard-workspace .dw-sidebar .dw-capture { grid-template-columns: 1fr; }
.dashboard-workspace .dw-sidebar .dw-capture button { justify-self: start; }
.dashboard-workspace .dw-scratchpad { margin-top: 24px; max-width: 750px; }
.dashboard-workspace .dw-scratchpad .dw-meta { margin-top: 6px; min-height: 20px; }
.dashboard-workspace .dw-health { margin-top: 25px; }
.dashboard-workspace .dw-health-row { padding: 10px 0; display: grid; gap: 4px; font-size: 12px; border-bottom: 1px solid var(--dw-rule); }
.dashboard-workspace .dw-health-row strong { font-weight: 500; }
.dashboard-workspace .dw-health-row span { color: var(--dw-muted); }
.dashboard-workspace .dw-routine-group { padding: 10px 0; }
.dashboard-workspace .dw-routine-group h3 { font-size: 13px; font-weight: 500; margin-bottom: 7px; }
.dashboard-workspace .dw-routine { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; cursor: pointer; }
.dashboard-workspace .dw-routine input { width: 18px; min-height: 18px; height: 18px; accent-color: var(--dw-ink); }
.dashboard-workspace .dw-routine input:checked + span { text-decoration: line-through; color: var(--dw-muted); }
.dashboard-workspace .dw-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: -3px 0 18px; }
.dashboard-workspace .dw-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.dashboard-workspace .dw-filter { min-height: 44px; padding: 8px 11px; color: var(--dw-muted); background: transparent; border: 1px solid transparent; border-radius: 7px; font-size: 13px; }
.dashboard-workspace .dw-filter[aria-pressed="true"] { color: var(--dw-ink); background: var(--dw-soft); border-color: var(--dw-rule); }
.dashboard-workspace .dw-search { width: 220px; }
.dashboard-workspace .dw-closed .dw-item-title { color: var(--dw-muted); }
.dashboard-workspace .dw-item[data-status="done"] .dw-item-title, .dashboard-workspace .dw-item[data-status="completed"] .dw-item-title { text-decoration: line-through; text-decoration-thickness: 1px; }
.dashboard-workspace .dw-ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 18px; }
.dashboard-workspace .dw-idea { border: 1px solid var(--dw-rule); border-radius: 10px; padding: 24px 24px 10px; background: var(--dw-sheet); }
.dashboard-workspace .dw-idea .dw-item-core { flex-direction: column; gap: 18px; }
.dashboard-workspace .dw-idea .dw-item-title { font: 400 25px/1.2 Georgia, serif; letter-spacing: -.4px; }
.dashboard-workspace .dw-idea .dw-item-detail { -webkit-line-clamp: 3; margin-top: 12px; }
.dashboard-workspace .dw-idea .dw-item-core > .dw-actions { justify-content: flex-start; max-width: none; }
.dashboard-workspace .dw-idea .dw-evidence { padding: 10px 0 10px 12px; }
.dashboard-workspace .dw-collection { margin-top: 30px; border-top: 1px solid var(--dw-rule); }
.dashboard-workspace .dw-collection > summary { padding: 18px 0; font-size: 16px; }
.dashboard-workspace .dw-empty { padding: 24px 0; color: var(--dw-muted); font-size: 14px; border-top: 1px solid var(--dw-rule); }
.dashboard-workspace .dw-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 10px 14px; margin-bottom: 24px; border: 1px solid #d9c8b8; border-radius: 7px; background: #f3eadd; font-size: 13px; }
.dashboard-workspace .dw-notice > span { flex: 1; min-width: 160px; }
.dashboard-workspace .dw-toast { position: fixed; z-index: 1100; bottom: max(22px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(650px, calc(100vw - 36px)); padding: 10px 12px 10px 20px; background: var(--dw-ink); color: var(--dw-sheet); border-radius: 10px; box-shadow: 0 5px 24px #17251d25; font-size: 13px; }
.dashboard-workspace .dw-toast > span { min-width: 0; overflow-wrap: anywhere; }
.dashboard-workspace .dw-toast .dw-button { color: var(--dw-sheet); border-color: #ffffff44; flex-shrink: 0; }
.dashboard-workspace .dw-toast .dw-button:hover { background: #ffffff16; }
.dashboard-workspace .dw-toast .dw-toast-close { border-color: transparent; min-width: 44px; font-size: 20px; }
.dashboard-workspace .dw-dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 25px; color: var(--dw-ink); background: var(--dw-sheet); border: 1px solid var(--dw-rule); border-radius: 12px; box-shadow: 0 15px 70px #10271c30; }
.dashboard-workspace .dw-dialog::backdrop { background: #172a2159; backdrop-filter: blur(3px); }
.dashboard-workspace .dw-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dashboard-workspace .dw-dialog-heading h2 { font: 400 25px/1.25 Georgia, serif; overflow-wrap: anywhere; }
.dashboard-workspace .dw-dialog-heading > button { margin: -8px -10px 0 0; flex-shrink: 0; }
.dashboard-workspace .dw-form { display: grid; gap: 18px; }
.dashboard-workspace .dw-field { display: grid; gap: 8px; font-size: 13px; }
.dashboard-workspace .dw-form > button { justify-self: start; }
.dashboard-workspace .dw-options { display: flex; flex-wrap: wrap; gap: 9px; }
.dashboard-workspace .dw-ratings { display: flex; flex-wrap: wrap; gap: 7px; width: 100%; padding-top: 19px; margin-top: 10px; border-top: 1px solid var(--dw-rule); }
.dashboard-workspace .dw-ratings > p { width: 100%; margin-bottom: 3px; }
.dashboard-workspace .dw-ratings button[aria-pressed="true"] { background: var(--dw-soft); border-color: var(--dw-ink); }
@media (max-width: 1050px) {
  .dashboard-workspace .dw-layout { gap: 28px; grid-template-columns: minmax(0, 1fr) 245px; }
  .dashboard-workspace .dw-sidebar { padding-left: 22px; }
  .dashboard-workspace .dw-item-core { flex-wrap: wrap; gap: 12px; }
  .dashboard-workspace .dw-item-copy { flex-basis: 100%; }
  .dashboard-workspace .dw-item-core > .dw-actions { justify-content: flex-start; max-width: none; }
}
@media (max-width: 740px) {
  body[data-site="dashboard"] .dashboard-workspace { padding: 0 20px 110px; }
  .dashboard-workspace .dw-header { margin-bottom: 22px; }
  .dashboard-workspace .dw-chrome { min-height: 65px; gap: 12px; }
  .dashboard-workspace .dw-date { font-size: 12px; }
  .dashboard-workspace .dw-mark { font-size: 31px; }
  .dashboard-workspace .dw-nav { gap: 0; justify-content: space-between; }
  .dashboard-workspace .dw-nav-button { padding: 10px 12px; font-size: 13px; }
  .dashboard-workspace .dw-nav-button:first-child { padding-right: 14px; }
  .dashboard-workspace .dw-nav-button:last-child { padding-right: 0; }
  .dashboard-workspace .dw-heading { margin-bottom: 20px; gap: 10px; }
  .dashboard-workspace .dw-heading h1 { font-size: 32px; }
  .dashboard-workspace .dw-heading-note { font-size: 12px; }
  .dashboard-workspace .dw-layout { grid-template-columns: 1fr; gap: 24px; }
  .dashboard-workspace .dw-sidebar { border-left: 0; border-top: 1px solid var(--dw-rule); padding: 25px 0 0; }
  .dashboard-workspace .dw-item { padding-top: 17px; }
  .dashboard-workspace .dw-item-title { font-size: 17px; }
  .dashboard-workspace .dw-item-detail { font-size: 14px; }
  .dashboard-workspace .dw-item-core { gap: 10px; }
  .dashboard-workspace .dw-number { display: none; }
  .dashboard-workspace .dw-button { padding: 8px 13px; }
  .dashboard-workspace .dw-chrome .dw-button { padding-right: 0; }
  .dashboard-workspace .dw-sidebar .dw-capture { grid-template-columns: minmax(0, 1fr) auto; }
  .dashboard-workspace .dw-search { width: 100%; }
  .dashboard-workspace .dw-filters { gap: 1px; }
  .dashboard-workspace .dw-filter { padding: 8px 9px; }
  .dashboard-workspace .dw-ideas { grid-template-columns: 1fr; }
  .dashboard-workspace .dw-idea { padding: 21px 21px 9px; }
  .dashboard-workspace .dw-idea .dw-number { display: none; }
  .dashboard-workspace .dw-dialog { padding: 22px; }
  .dashboard-workspace input, .dashboard-workspace textarea { font-size: 16px; }
  .dashboard-workspace .dw-toast { gap: 7px; padding-left: 14px; max-width: calc(100vw - 24px); }
  .dashboard-workspace .dw-toast > span { max-width: 40ch; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-workspace * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
