@import url("https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&display=swap");
/* ==========================================================================
   The Desk · the clock and the notes, inline in the welcome under the clock · notes · matter bar.
   Square, ordered, one accent (#4be3ff); the Clock's world is clock faces turning, the Notes' a notepad.
   Wizard cards reuse the member card's .mc-step (members.css).
   ========================================================================== */
:root { --dk-ink: #eef4ff; --dk-muted: #8ea2bf; --dk-line: rgba(140, 180, 230, .18); --dk-accent: #4be3ff; --dk-ok: #34d399; --dk-warn: #fbbf24; --dk-hard: #ff5d73; --dk-review: #a78bfa;
  --dk-mono: ui-monospace, SFMono-Regular, Menlo, monospace; --dk-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.desk-kicker { font: 700 10px/1 var(--dk-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dk-muted); }

/* ---------- the bar on the welcome: snug under the toolbar ---------- */
.welcome { padding-top: 10px !important; }
.welcome-admin { display: grid; grid-template-columns: 52px 52px minmax(0, 1fr); gap: 8px; align-items: stretch; width: 100%; max-width: 440px; margin: 0 auto 14px; }
.welcome-admin .matter-switch { min-width: 0; margin: 0; }
.welcome-tool { position: relative; appearance: none; cursor: pointer; display: grid; place-items: center; min-height: 52px; border-radius: 12px; border: 1px solid rgba(140, 220, 255, .22); background: linear-gradient(180deg, rgba(16, 28, 50, .94), rgba(7, 12, 24, .97)); color: #9fd7ff; text-decoration: none; transition: box-shadow .3s ease, border-color .3s ease, color .3s ease, background .3s ease; }
.welcome-tool svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.welcome-tool:hover { border-color: rgba(160, 230, 255, .45); }
.welcome-tool.is-on { background: linear-gradient(180deg, rgba(75, 227, 255, .22), rgba(16, 28, 50, .95)); color: #fff; border-color: rgba(75, 227, 255, .6); }
.welcome-tool.is-live { color: #4be3ff; border-color: rgba(75, 227, 255, .7); box-shadow: 0 0 0 1px rgba(75, 227, 255, .25), 0 0 26px rgba(75, 227, 255, .35), inset 0 0 18px rgba(75, 227, 255, .12); animation: welcome-tool-glow 2.4s ease-in-out infinite; }
@keyframes welcome-tool-glow { 50% { box-shadow: 0 0 0 1px rgba(75, 227, 255, .4), 0 0 40px rgba(75, 227, 255, .5), inset 0 0 22px rgba(75, 227, 255, .18); } }
.welcome-tool.is-live::after { content: ""; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: #4be3ff; box-shadow: 0 0 8px #4be3ff; }
.welcome-home { display: grid; align-content: center; justify-items: start; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(140, 220, 255, .22); background: linear-gradient(180deg, rgba(16, 28, 50, .94), rgba(7, 12, 24, .97)); color: #fff; text-decoration: none; }
.welcome-home b { font: 600 15px/1.2 var(--dk-serif); }

/* the welcome with the Desk open: the bar stays, everything else gives way, the panel fills to the composer */
.welcome.is-desk > :not(.welcome-admin):not(.desk-panel) { display: none !important; }
.welcome.is-desk { justify-content: flex-start !important; align-content: flex-start !important; }
.desk-panel { position: relative; isolation: isolate; width: 100%; max-width: 680px; margin: 0 auto; flex: 1 1 auto; min-height: 0; text-align: left; color: var(--dk-ink);
  border-radius: 14px; border: 1px solid var(--dk-line); background: linear-gradient(180deg, #0c1526, #070b14); overflow: hidden; animation: desk-open .32s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes desk-open { from { opacity: 0; transform: translateY(8px); } }
.desk-panel[hidden] { display: none !important; }
.desk-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: .55; }
.desk-scene svg { width: 100%; height: 100%; display: block; }
.desk-scene .dk-hand { transform-box: fill-box; transform-origin: 50% 100%; animation: dk-turn linear infinite; }
@keyframes dk-turn { to { transform: rotate(360deg); } }
.desk-scene.is-notes { opacity: .9; background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(140, 180, 230, .09) 31px 32px); }
.desk-scene.is-notes::before { content: ""; position: absolute; top: 0; bottom: 0; left: 56px; width: 1px; background: rgba(255, 93, 115, .28); }
.desk-bar, .desk-body, .desk-signin, .desk-error { position: relative; z-index: 1; }
.desk-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 14px 16px 10px; border-bottom: 1px solid var(--dk-line); background: rgba(6, 10, 20, .55); backdrop-filter: blur(6px); }
.desk-title { margin: 0; font: 600 22px/1 var(--dk-serif); color: #fff; }
.desk-matter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; min-width: 0; justify-self: end; max-width: 320px; width: 100%; }
.desk-matter select { min-width: 0; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--dk-line); background: rgba(255, 255, 255, .06); color: var(--dk-ink); font: 600 13px/1.2 system-ui, sans-serif; }
.desk-matter select option { color: #13233f; }
.desk-all { display: inline-flex; gap: 5px; align-items: center; font: 600 10.5px/1 var(--dk-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dk-muted); white-space: nowrap; }
.desk-all input { accent-color: var(--dk-accent); }
.desk-body { padding: 14px 16px 22px; display: grid; gap: 14px; max-height: calc(var(--viewport-height, 100dvh) - 310px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.desk-alone .desk-body { max-height: none; }
.desk-signin { margin: 20px; text-align: center; color: var(--dk-muted); }
.desk-error { margin: 0 16px 12px; color: #fca5a5; font-size: 13px; }
.desk-empty { color: var(--dk-muted); font-size: 13.5px; padding: 10px 0; margin: 0; }
.desk-link { appearance: none; border: 0; background: transparent; color: var(--dk-accent); font: 700 11px/1 var(--dk-mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; padding: 6px 0; }
.desk-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--dk-line); }
.desk-row-head:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.desk-row-head h3 { margin: 0; font: 600 19px/1.1 var(--dk-serif); color: #fff; }
.desk-btn { appearance: none; cursor: pointer; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--dk-line); background: rgba(255, 255, 255, .06); color: var(--dk-ink); font: 600 13.5px/1 system-ui, sans-serif; }
.desk-btn-primary { background: var(--dk-accent); color: #04121c; border-color: transparent; }
.desk-btn:disabled { opacity: .5; cursor: default; }
.desk-actions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.desk-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.desk-wide { grid-column: 1 / -1; }
.desk-field { display: grid; gap: 5px; min-width: 0; }
.desk-field > span { font: 700 10px/1 var(--dk-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dk-muted); }
.desk-field input, .desk-field select, .desk-field textarea, .desk-quick input, .desk-note-add textarea { width: 100%; box-sizing: border-box; min-width: 0; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--dk-line); background: rgba(255, 255, 255, .05); color: var(--dk-ink); font: 15px/1.35 system-ui, sans-serif; outline: none; }
.desk-field input:focus, .desk-field select:focus, .desk-field textarea:focus, .desk-quick input:focus, .desk-note-add textarea:focus { border-color: rgba(75, 227, 255, .6); box-shadow: 0 0 0 3px rgba(75, 227, 255, .14); }
.desk-field select option { color: #13233f; }
.desk-check { display: inline-flex; gap: 8px; align-items: center; align-self: end; padding: 11px 0; font: 600 13px/1 system-ui; color: var(--dk-muted); }
.desk-check input { accent-color: var(--dk-accent); }
.desk-chip { display: inline-block; padding: 3px 7px; border-radius: 6px; font: 700 10px/1 var(--dk-mono); letter-spacing: .1em; text-transform: uppercase; background: rgba(75, 227, 255, .12); color: var(--dk-accent); margin-right: 6px; vertical-align: 1px; }

/* ---------- the clock ---------- */
.desk-timer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; border-radius: 12px; border: 1px solid var(--dk-line); background: rgba(6, 10, 20, .5); }
.desk-timer.is-live { border-color: rgba(75, 227, 255, .5); box-shadow: 0 0 0 1px rgba(75, 227, 255, .2), 0 0 40px rgba(75, 227, 255, .18); }
.desk-timer-time { display: grid; gap: 6px; min-width: 0; }
.desk-timer-time b { font: 500 clamp(34px, 9vw, 52px)/1 var(--dk-mono); letter-spacing: .04em; font-variant-numeric: tabular-nums; color: #fff; }
.desk-timer.is-live .desk-timer-time b { color: var(--dk-accent); text-shadow: 0 0 24px rgba(75, 227, 255, .45); }
.desk-go { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 14px 18px; border-radius: 10px; font: 700 14px/1 system-ui, sans-serif; color: #04121c; background: var(--dk-accent); box-shadow: 0 10px 26px rgba(75, 227, 255, .3); }
.desk-timer.is-live .desk-go { background: var(--dk-hard); color: #fff; box-shadow: 0 10px 26px rgba(255, 93, 115, .3); }
.desk-go svg { width: 18px; height: 18px; } .desk-go svg path { fill: currentColor; }
.desk-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.desk-act { appearance: none; cursor: pointer; display: grid; gap: 4px; justify-items: start; padding: 10px 11px; border-radius: 10px; border: 1px solid var(--dk-line); background: rgba(255, 255, 255, .04); color: var(--dk-ink); text-align: left; transition: border-color .2s ease, background .2s ease; }
.desk-act b { font: 600 13.5px/1.1 system-ui, sans-serif; }
.desk-act small { font: 600 11px/1 var(--dk-mono); color: var(--dk-muted); }
.desk-act:hover { border-color: rgba(75, 227, 255, .45); }
.desk-act.is-on { background: rgba(75, 227, 255, .16); border-color: var(--dk-accent); box-shadow: inset 0 0 0 1px rgba(75, 227, 255, .3); }
.desk-act.is-on small { color: var(--dk-accent); }
.desk-work { margin: 0; font-size: 12.5px; color: var(--dk-muted); line-height: 1.45; overflow-wrap: anywhere; }
.desk-entries { display: grid; gap: 6px; }
.desk-day { font: 700 10px/1 var(--dk-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dk-muted); margin: 8px 0 2px; }
.desk-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; width: 100%; text-align: left; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--dk-line); background: rgba(255, 255, 255, .04); color: var(--dk-ink); cursor: pointer; }
.desk-entry:hover { background: rgba(255, 255, 255, .07); }
.desk-entry b { font: 600 15px/1.3 system-ui, sans-serif; overflow-wrap: anywhere; }
.desk-entry small { display: block; color: var(--dk-muted); font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; }
.desk-entry .desk-dur { font: 600 15px/1.3 var(--dk-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.desk-entry .desk-amt { font: 600 12px/1 var(--dk-mono); color: var(--dk-ok); text-align: right; }
.desk-edit { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; border-radius: 10px; border: 1px solid var(--dk-line); background: rgba(0, 0, 0, .25); }
.desk-bill { display: grid; gap: 4px; }
.desk-bill-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--dk-line); font-size: 14px; background: rgba(6, 10, 20, .4); }
.desk-bill-row b { font-weight: 600; overflow-wrap: anywhere; }
.desk-bill-row .desk-dur { font: 600 13px/1 var(--dk-mono); color: var(--dk-muted); }
.desk-bill-row .desk-amt { font: 600 14px/1 var(--dk-mono); color: var(--dk-ok); }
.desk-bill-total { border-color: rgba(52, 211, 153, .35); }

/* the wizards (setup, a task): glass cards from the member card, one under the other */
.desk-wizard { display: grid; gap: 14px; justify-items: stretch; }
.desk-wizard .mc-step { width: 100%; opacity: 1; transform: none; filter: none; padding: 20px; }
.desk-wizard .mc-q { font-size: clamp(22px, 4vw, 28px); }
.desk-wizard .mc-options { margin-top: 14px; }
.desk-wizard .mc-option { padding: 12px 14px; font-size: 14px; }
.desk-wizard .mc-option small { display: block; font-weight: 500; color: var(--mc-muted); font-size: 12px; margin-top: 2px; }
.desk-rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.desk-rate { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .7); color: var(--mc-ink); }
.desk-rate b { font: 600 14px/1.2 system-ui; }
.desk-rate small { display: block; color: var(--mc-muted); font-size: 11.5px; }
.desk-rate input { width: 100%; box-sizing: border-box; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(19, 35, 63, .14); background: #fff; color: var(--mc-ink); font: 600 14px/1 var(--dk-mono); text-align: right; }
.desk-wizard .mc-field input, .desk-wizard .mc-field select, .desk-wizard .mc-field textarea { border-radius: 10px; }
.desk-wizard .mc-fields { margin-top: 14px; }
.desk-deadlines { display: grid; gap: 6px; margin-top: 10px; }
.desk-deadline { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .7); color: var(--mc-ink); }
.desk-deadline input[type=datetime-local] { padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(19, 35, 63, .14); background: #fff; color: var(--mc-ink); font: 14px system-ui; min-width: 0; width: 100%; box-sizing: border-box; }
.desk-hard { display: inline-flex; gap: 2px; border: 1px solid rgba(19, 35, 63, .14); border-radius: 10px; overflow: hidden; }
.desk-hard button { appearance: none; border: 0; background: #fff; color: var(--mc-muted); padding: 8px 10px; font: 700 10px/1 var(--dk-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.desk-hard button[aria-pressed="true"] { background: var(--mc-ink); color: #fff; }
.desk-subs { display: grid; gap: 6px; margin-top: 10px; }
.desk-subs input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(19, 35, 63, .14); background: #fff; color: var(--mc-ink); font: 14px system-ui; }
.desk-wizard .mc-btn { border-radius: 10px; }
.desk-wizard-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- the notes: tasks first ---------- */
.desk-quick { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.desk-tasks { display: grid; gap: 4px; }
.desk-task { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--dk-line); background: rgba(6, 10, 20, .5); }
.desk-task.is-child { margin-left: 32px; position: relative; background: rgba(6, 10, 20, .35); }
.desk-task.is-child::before { content: ""; position: absolute; left: -17px; top: -6px; bottom: 50%; width: 12px; border-left: 1px solid var(--dk-line); border-bottom: 1px solid var(--dk-line); border-bottom-left-radius: 8px; }
.desk-task.is-done .desk-task-title { color: var(--dk-muted); text-decoration: line-through; }
.desk-twist { appearance: none; border: 0; background: transparent; color: var(--dk-muted); width: 22px; height: 22px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.desk-twist svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .2s ease; }
.desk-twist[aria-expanded="true"] svg { transform: rotate(90deg); }
.desk-twist.is-leaf { visibility: hidden; }
.desk-task-main { display: grid; gap: 3px; min-width: 0; text-align: left; background: transparent; border: 0; color: inherit; padding: 0; cursor: pointer; }
.desk-task-title { font: 500 15px/1.3 system-ui, sans-serif; overflow-wrap: anywhere; }
.desk-task-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font: 600 10.5px/1 var(--dk-mono); color: var(--dk-muted); letter-spacing: .04em; }
.desk-due { padding: 3px 6px; border-radius: 6px; border: 1px solid currentColor; }
.desk-due.is-hard { color: var(--dk-hard); } .desk-due.is-soft { color: var(--dk-warn); } .desk-due.is-past { background: rgba(255, 93, 115, .18); }
.desk-status { appearance: none; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--dk-line); background: transparent; display: grid; place-items: center; color: transparent; transition: background .2s ease, border-color .2s ease; }
.desk-status svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.desk-status[data-status="pending"] { background: var(--dk-warn); border-color: var(--dk-warn); color: #3a2a00; }
.desk-status[data-status="review1"] { background: rgba(167, 139, 250, .35); border-color: var(--dk-review); color: #fff; }
.desk-status[data-status="review2"] { background: var(--dk-review); border-color: var(--dk-review); color: #fff; }
.desk-status[data-status="done"] { background: var(--dk-ok); border-color: var(--dk-ok); color: #052e1b; }
.desk-legend { display: flex; gap: 10px; flex-wrap: wrap; font: 600 10px/1 var(--dk-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dk-muted); }
.desk-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--dk-line); }
.desk-task-edit { grid-column: 1 / -1; display: grid; gap: 10px; padding: 12px; border-radius: 10px; border: 1px solid var(--dk-line); background: rgba(0, 0, 0, .25); }
.desk-x { appearance: none; border: 0; background: transparent; color: var(--dk-muted); font-size: 16px; cursor: pointer; padding: 2px 6px; }
.desk-note-tools { display: flex; gap: 6px; }
.desk-tool { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--dk-line); background: rgba(255, 255, 255, .05); color: var(--dk-ink); font: 600 12px/1 system-ui; cursor: pointer; }
.desk-tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.desk-tool.is-rec { border-color: var(--dk-hard); color: var(--dk-hard); }
.desk-note-add { display: grid; gap: 8px; }
.desk-rec { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--dk-mono); color: var(--dk-hard); }
.desk-rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--dk-hard); animation: desk-blink 1s ease-in-out infinite; }
@keyframes desk-blink { 50% { opacity: .3; } }
.desk-notes { display: grid; gap: 6px; }
.desk-topic { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 0 2px; }
.desk-topic b { font: 600 16px/1.1 var(--dk-serif); color: #fff; }
.desk-topic small { font: 700 10px/1 var(--dk-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dk-muted); }
.desk-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--dk-line); background: rgba(6, 10, 20, .5); }
.desk-note time { font: 600 10.5px/1 var(--dk-mono); color: var(--dk-muted); letter-spacing: .06em; }
.desk-note p { grid-column: 1; margin: 0; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.desk-note b { grid-column: 1; font: 600 14.5px/1.3 system-ui; overflow-wrap: anywhere; }
.desk-note audio { grid-column: 1 / -1; width: 100%; height: 36px; }
.desk-note a { color: var(--dk-accent); font-size: 13.5px; }
.desk-note .desk-x { grid-column: 2; grid-row: 1; }

/* the standalone page */
.desk-standalone #main { padding: calc(env(safe-area-inset-top, 0px) + 64px) 12px 24px; max-width: 720px; margin: 0 auto; }
.desk-alone { min-height: auto; display: grid; gap: 0; text-align: center; }
.desk-alone .welcome-admin { grid-template-columns: 52px 52px minmax(0, 1fr); }
@media (max-width: 420px) { .desk-fields, .desk-rates { grid-template-columns: 1fr; } .desk-bar { grid-template-columns: auto minmax(0, 1fr); } .desk-setup { grid-column: 1 / -1; justify-self: start; } .desk-matter { max-width: none; } }

/* the composer in Desk mode: plain. The documents + and Send stay; model, Web, Xiao and files step aside. */
.chat-home.desk-open #webButton, .chat-home.desk-open .composer-intelligence, .chat-home.desk-open #chatComposer .file-button, .chat-home.desk-open #chatComposer [data-file-button],
.chat-home.desk-open #composerBoost, .chat-home.desk-open #fileModeButton, .chat-home.desk-open #intelligenceButton { display: none !important; }
.chat-home.desk-open #chatComposer { border-color: rgba(75, 227, 255, .45); box-shadow: 0 0 22px rgba(75, 227, 255, .08); }
.desk-said { position: relative; z-index: 1; margin: 0; padding: 8px 16px; font: 600 12.5px/1.3 var(--dk-mono); color: var(--dk-accent); border-bottom: 1px solid var(--dk-line); background: rgba(75, 227, 255, .06); }
.desk-said[hidden] { display: none; }

/* ---------- the clock, v3: a big face you tap ---------- */
.desk-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: center; padding: 6px 0 4px; }
@media (min-width: 560px) { .desk-stage { grid-template-columns: 220px minmax(0, 1fr); align-items: center; justify-items: start; } }
.desk-face { position: relative; appearance: none; border: 0; background: transparent; width: min(220px, 60vw); aspect-ratio: 1; cursor: pointer; padding: 0; color: inherit; border-radius: 50%; transition: transform .25s var(--mc-ease), filter .3s ease; }
.desk-face:active { transform: scale(.97); }
.desk-face svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
.desk-face.is-live svg { filter: drop-shadow(0 0 28px rgba(75, 227, 255, .35)); }
.desk-face-digits { position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; pointer-events: none; }
.desk-face-digits b { font: 500 clamp(18px, 5vw, 24px)/1 var(--dk-mono); letter-spacing: .04em; font-variant-numeric: tabular-nums; color: #fff; }
.desk-face.is-live .desk-face-digits b { color: var(--dk-accent); text-shadow: 0 0 18px rgba(75, 227, 255, .5); }
.desk-face-digits small { font: 700 9px/1 var(--dk-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dk-muted); }
.desk-stage-side { display: grid; gap: 10px; width: 100%; min-width: 0; }
.desk-stage-what { font: 600 20px/1.2 var(--dk-serif); color: #fff; overflow-wrap: anywhere; }
.desk-stage-input { width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--dk-line); background: rgba(255, 255, 255, .05); color: var(--dk-ink); font: 15px/1.35 system-ui, sans-serif; outline: none; }
.desk-stage-input:focus { border-color: rgba(75, 227, 255, .6); }
.desk-stage .desk-acts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.desk-stage .desk-act { padding: 8px 9px; }
.desk-stage .desk-act b { font-size: 12.5px; }
.desk-stage .desk-act small { font-size: 10px; }
.desk-rates-box { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid rgba(75, 227, 255, .35); background: rgba(75, 227, 255, .05); }
.desk-rates-box .desk-rate { background: rgba(255, 255, 255, .06); color: var(--dk-ink); }
.desk-rates-box .desk-rate b { color: #fff; } .desk-rates-box .desk-rate small { color: var(--dk-muted); }
.desk-rates-box .desk-rate input { background: rgba(255, 255, 255, .08); color: #fff; border-color: var(--dk-line); }
.desk-entry { grid-template-columns: minmax(0, 1fr) auto; cursor: default; }
.desk-entry-main { appearance: none; border: 0; background: transparent; color: inherit; text-align: left; padding: 0; cursor: pointer; min-width: 0; display: grid; gap: 3px; }
.desk-entry-right { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; justify-items: end; }
.desk-entry-right .desk-dur { grid-column: 1; } .desk-entry-right .desk-amt { grid-column: 1; grid-row: 2; }
.desk-run { grid-column: 2; grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(75, 227, 255, .35); background: rgba(75, 227, 255, .1); color: var(--dk-accent); display: grid; place-items: center; cursor: pointer; }
.desk-run svg { width: 16px; height: 16px; } .desk-run svg path { fill: currentColor; }
.desk-run:hover { background: rgba(75, 227, 255, .22); }

/* the task wizard as an overlay: one card at a time, like the member card */
.desk-overlay { position: fixed; inset: 0; z-index: 2147483000; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; color: inherit; display: grid; place-items: center; overflow-y: auto;
  background: rgba(3, 8, 20, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity .3s ease; }
.desk-overlay.is-open { opacity: 1; }
.desk-overlay::backdrop { background: transparent; }
.desk-overlay-stage { width: min(560px, 100%); transform: translateY(24px); transition: transform .45s var(--mc-ease); }
.desk-overlay.is-open .desk-overlay-stage { transform: none; }
.desk-overlay .mc-step { width: 100%; opacity: 1; transform: none; filter: none; }
.desk-overlay .mc-option small { display: block; font-weight: 500; color: var(--mc-muted); font-size: 12px; margin-top: 2px; }
.desk-overlay .mc-fields { margin-top: 14px; }
.desk-overlay .mc-field input, .desk-overlay .mc-field select, .desk-overlay .mc-field textarea { border-radius: 10px; }
.desk-overlay .mc-btn { border-radius: 10px; }

/* ---------- v4: plain ---------- */
.desk-panel { border: 0; background: transparent; overflow: visible; }
.desk-body { padding: 4px 0 24px; max-height: none; overflow: visible; }
.desk-alone .desk-body { padding: 0; }
.desk-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; padding: 10px 0 6px; }
@media (min-width: 560px) { .desk-stage { grid-template-columns: minmax(0, 1fr); } }
.desk-stage-tools { position: absolute; right: 4px; top: 4px; display: flex; gap: 6px; z-index: 2; }
.desk-tool-ic, .desk-ic { appearance: none; cursor: pointer; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--dk-line); background: rgba(10, 16, 32, .7); color: var(--dk-muted); display: grid; place-items: center; padding: 0; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.desk-tool-ic svg, .desk-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.desk-tool-ic:hover, .desk-ic:hover { color: #fff; border-color: rgba(75, 227, 255, .45); }
.desk-ic.is-play { color: var(--dk-accent); border-color: rgba(75, 227, 255, .35); } .desk-ic.is-play svg path { fill: currentColor; stroke: none; }
.desk-ic.is-rec { color: var(--dk-hard); border-color: var(--dk-hard); animation: desk-blink 1s ease-in-out infinite; }
.desk-face { width: min(240px, 64vw); color: #9fd7ff; }
.desk-face .desk-dial { fill: rgba(6, 10, 20, .7); stroke: rgba(140, 180, 230, .3); stroke-width: 1.5; transition: fill .3s ease, stroke .3s ease; }
.desk-face.is-live { color: #04121c; }
.desk-face.is-live .desk-dial { fill: var(--dk-accent); stroke: #fff; }
.desk-face.is-live svg { filter: drop-shadow(0 0 34px rgba(75, 227, 255, .55)); }
.desk-face:hover .desk-dial { stroke: rgba(75, 227, 255, .6); }
.desk-under { display: grid; justify-items: center; gap: 6px; text-align: center; }
.desk-timer-digits { font: 500 clamp(30px, 8vw, 40px)/1 var(--dk-mono); letter-spacing: .05em; font-variant-numeric: tabular-nums; color: #fff; }
.desk-stage.is-live .desk-timer-digits { color: var(--dk-accent); text-shadow: 0 0 22px rgba(75, 227, 255, .5); }
.desk-under-desc { font: 500 14px/1.3 system-ui, sans-serif; color: var(--dk-ink); max-width: 420px; overflow-wrap: anywhere; }
.desk-head-tools { display: flex; align-items: center; gap: 8px; }
.desk-plus { appearance: none; cursor: pointer; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--dk-accent); color: #04121c; font: 700 22px/1 system-ui; display: grid; place-items: center; padding: 0 0 2px; box-shadow: 0 8px 20px rgba(75, 227, 255, .25); }
.desk-entry-icons { grid-column: 2; grid-row: 1 / 3; display: flex; gap: 6px; align-items: center; }
.desk-entry-right { grid-template-columns: auto auto; }
.desk-entry.is-ai, .desk-task.is-ai, .desk-note.is-ai { border-color: rgba(52, 211, 153, .45); box-shadow: inset 3px 0 0 var(--dk-ok); }
.desk-ai-tag { display: inline-block; padding: 2px 6px; border-radius: 5px; font: 700 9.5px/1 var(--dk-mono); letter-spacing: .12em; background: rgba(52, 211, 153, .18); color: var(--dk-ok); }
.desk-task { grid-template-columns: 22px minmax(0, 1fr) auto auto; }
.desk-task-trash { width: 30px; height: 30px; border-color: transparent; background: transparent; }
.desk-danger { background: var(--dk-hard) !important; }
.desk-said { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(75, 227, 255, .3); background: rgba(75, 227, 255, .08); font: 600 12.5px/1.35 var(--dk-mono); color: var(--dk-accent); overflow-wrap: anywhere; }

/* v5: click a piece to edit it */
.desk-inline { width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(75, 227, 255, .6); background: rgba(255, 255, 255, .06); color: #fff; font: 15px/1.35 system-ui, sans-serif; outline: none; box-shadow: 0 0 0 3px rgba(75, 227, 255, .14); resize: vertical; }
.desk-task-title, .desk-note p, .desk-under-desc { cursor: text; border-radius: 6px; }
.desk-task-title:hover, .desk-note p:hover, .desk-under-desc:hover { background: rgba(255, 255, 255, .05); }
.desk-under-desc.is-empty { color: var(--dk-muted); font-style: italic; }
.desk-more { appearance: none; border: 0; background: transparent; color: var(--dk-muted); font: 700 10px/1 var(--dk-mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; padding: 2px 0; justify-self: start; }
.desk-more:empty { display: none; }
.desk-task-meta { cursor: pointer; }

/* v6: nothing smaller than 16px in a field (iOS zooms below that); overlays scroll from the top with a close X */
.desk-panel input, .desk-panel select, .desk-panel textarea, .desk-overlay input, .desk-overlay select, .desk-overlay textarea, .desk-inline { font-size: 16px !important; }
.desk-overlay { place-items: start center; overflow-x: hidden; padding: calc(env(safe-area-inset-top, 0px) + 16px) 12px calc(env(safe-area-inset-bottom, 0px) + 24px); }
.desk-overlay-stage { width: min(560px, 100%); margin: auto 0; box-sizing: border-box; }
.desk-overlay .mc-step { box-sizing: border-box; max-width: 100%; position: relative; padding-top: 22px; }
.desk-overlay-x { position: absolute; top: 12px; right: 12px !important; left: auto !important; margin: 0 !important; z-index: 2; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(19, 35, 63, .14); background: rgba(255, 255, 255, .85); color: #13233f; display: grid; place-items: center; cursor: pointer; padding: 0; }
.desk-overlay-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.desk-overlay .mc-step-kicker, .desk-overlay .mc-q { padding-right: 48px; }
.desk-overlay .desk-rates { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.desk-overlay .desk-rate { grid-template-columns: minmax(0, 1fr) minmax(0, 190px); padding: 8px 10px; }
.desk-rate-pick { display: grid; gap: 6px; min-width: 0; }
.desk-rate-pick select, .desk-rate-pick input { width: 100%; box-sizing: border-box; padding: 10px; border-radius: 10px; border: 1px solid rgba(19, 35, 63, .16); background: #fff; color: #13233f; font: 600 16px/1.2 system-ui, sans-serif; }

/* a task: what · due · status · remove */
.desk-task { grid-template-columns: 22px minmax(0, 1fr) auto auto auto; position: relative; }
.desk-task-title { padding: 2px 4px; margin-left: -4px; }
.desk-task select.desk-inline { padding: 8px 10px; }
.desk-due-cell { position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center; min-width: 64px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--dk-line); font: 600 12px/1 var(--dk-mono); color: var(--dk-ink); cursor: pointer; white-space: nowrap; }
.desk-due-cell.is-empty { color: var(--dk-muted); border-style: dashed; }
.desk-due-cell.is-past { color: var(--dk-hard); border-color: rgba(255, 93, 115, .5); background: rgba(255, 93, 115, .1); }
/* iOS gives a date input its own minimum width: clipped to the cell so it never lies over the status button */
.desk-due-cell input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; cursor: pointer; border: 0; padding: 0; margin: 0; font-size: 16px; }
.desk-task .desk-status, .desk-task .desk-task-trash { position: relative; z-index: 2; }
.desk-status-menu { position: absolute; z-index: 5; right: 40px; top: calc(100% - 4px); display: grid; min-width: 180px; padding: 6px; border-radius: 12px; background: rgba(10, 16, 32, .98); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 18px 44px rgba(0, 0, 0, .55); }
.desk-status-menu button { appearance: none; border: 0; background: transparent; color: var(--dk-ink); display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; font: 500 15px/1 system-ui, sans-serif; cursor: pointer; text-align: left; }
.desk-status-menu button:hover, .desk-status-menu button.is-on { background: rgba(255, 255, 255, .08); }
.desk-status-menu i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--dk-line); flex: none; }
.desk-status-menu i[data-status="pending"] { background: var(--dk-warn); border-color: var(--dk-warn); }
.desk-status-menu i[data-status="review1"] { background: rgba(167, 139, 250, .35); border-color: var(--dk-review); }
.desk-status-menu i[data-status="review2"] { background: var(--dk-review); border-color: var(--dk-review); }
.desk-status-menu i[data-status="done"] { background: var(--dk-ok); border-color: var(--dk-ok); }
.desk-overlay .mc-step > .desk-overlay-x { position: absolute !important; top: 12px; right: 12px; left: auto; }

/* v7: the + menu, the composer microphone, invoices; square throughout */
.desk-add-menu { position: absolute; z-index: 6; right: 0; top: calc(100% + 6px); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 12px; background: rgba(10, 16, 32, .98); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 18px 44px rgba(0, 0, 0, .55); animation: desk-pop .16s cubic-bezier(.22, 1, .36, 1); }
@keyframes desk-pop { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
.desk-add-menu button { appearance: none; display: grid; justify-items: center; gap: 6px; min-width: 84px; padding: 12px 10px; border-radius: 10px; border: 1px solid var(--dk-line); background: rgba(255, 255, 255, .04); color: var(--dk-ink); font: 600 14px/1 system-ui, sans-serif; cursor: pointer; }
.desk-add-menu button:hover { border-color: rgba(75, 227, 255, .5); background: rgba(75, 227, 255, .1); }
.desk-add-menu svg { width: 22px; height: 22px; fill: none; stroke: var(--dk-accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.desk-add-menu button.is-rec svg { stroke: var(--dk-hard); }
.desk-row-head, .desk-head-tools { position: relative; }
.desk-row-head > .desk-plus { margin-left: auto; }
.desk-row-head { align-items: center; }
.desk-invoice-btn { margin-left: auto; margin-right: 8px; }
.desk-composer-mic { appearance: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(75, 227, 255, .4); background: rgba(75, 227, 255, .08); color: var(--dk-accent, #4be3ff); display: grid; place-items: center; cursor: pointer; margin-left: auto; margin-right: 6px; padding: 0; }
.desk-composer-mic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.desk-composer-mic.is-rec { color: #ff5d73; border-color: #ff5d73; background: rgba(255, 93, 115, .12); animation: desk-blink 1s ease-in-out infinite; }
.desk-sub-kicker { margin-top: 20px !important; }
.desk-periods { grid-template-columns: minmax(0, 1fr) !important; }
.desk-range { grid-template-columns: 1fr 1fr; display: grid; gap: 10px; }
.desk-invoice-lines { display: grid; gap: 4px; margin-top: 14px; }
.desk-invoice-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .75); color: #13233f; }
.desk-invoice-line b { font: 600 14px/1.3 system-ui; overflow-wrap: anywhere; } .desk-invoice-line small { display: block; color: #5b6b85; font-size: 12px; }
.desk-invoice-h { font: 600 13px/1 ui-monospace, monospace; color: #5b6b85; } .desk-invoice-a { font: 700 14px/1 ui-monospace, monospace; }
.desk-invoice-line.is-total { background: #13233f; color: #fff; } .desk-invoice-line.is-total .desk-invoice-h { color: #b9c6dc; }
/* square everywhere in the Desk (the clock face stays a clock) */
.desk-panel *:not(.desk-face):not(.desk-rec i):not(.ms-badge), .desk-overlay .mc-btn, .desk-overlay .mc-option, .desk-overlay input, .desk-overlay select, .desk-overlay textarea { border-radius: 10px; }
.desk-overlay .mc-step { border-radius: 18px; }
.desk-chip, .desk-ai-tag, .desk-due { border-radius: 6px !important; }
.desk-status, .desk-ic, .desk-tool-ic, .desk-plus { border-radius: 8px !important; }
.desk-range { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
.desk-range .mc-field, .desk-overlay .mc-field { min-width: 0; }
.desk-overlay input[type="date"], .desk-overlay input[type="datetime-local"] { min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.desk-overlay .mc-options { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.desk-overlay .mc-step > * { max-width: 100%; }

/* v8: filled cards (the drawer's Members button), ticks for the bill, the period chip, the invoice page */
.desk-entry, .desk-task { border: 0 !important; background: linear-gradient(120deg, rgba(29, 143, 196, .32), rgba(63, 163, 86, .26)) !important; box-shadow: 0 8px 22px rgba(29, 143, 196, .14); color: #fff; }
.desk-entry small, .desk-task-meta { color: rgba(255, 255, 255, .78) !important; }
.desk-entry .desk-amt { color: #b7f5d2 !important; }
.desk-entry.is-billed { background: linear-gradient(120deg, rgba(29, 143, 196, .62), rgba(63, 163, 86, .55)) !important; box-shadow: 0 10px 26px rgba(29, 143, 196, .28); }
.desk-task.is-done { background: linear-gradient(120deg, rgba(29, 143, 196, .14), rgba(63, 163, 86, .12)) !important; }
.desk-task.is-child { background: linear-gradient(120deg, rgba(29, 143, 196, .2), rgba(63, 163, 86, .16)) !important; }
.desk-entry.is-ai, .desk-task.is-ai { box-shadow: inset 3px 0 0 #34d399, 0 8px 22px rgba(52, 211, 153, .16); }
.desk-entry .desk-ic, .desk-task .desk-ic { background: rgba(4, 10, 20, .35); border-color: rgba(255, 255, 255, .18); color: #fff; }
.desk-entry .desk-ic.is-play { color: #4be3ff; }
.desk-entry { grid-template-columns: 30px minmax(0, 1fr) auto !important; gap: 4px 10px; }
.desk-tick { appearance: none; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(4, 10, 20, .3); color: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; align-self: center; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.desk-tick svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.desk-tick[aria-checked="true"] { background: #fff; border-color: #fff; color: #1d8fc4; }
.desk-tick:active { transform: scale(.9); }
.desk-time-head { align-items: center; }
.desk-time-head .desk-head-tools { margin-left: auto; gap: 8px; }
.desk-period { appearance: none; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 12px; border-radius: 8px; border: 1px solid var(--dk-line); background: rgba(10, 16, 32, .7); color: var(--dk-ink); font: 600 13px/1 system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.desk-period svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.desk-invoice-btn { margin: 0 !important; }
.desk-offline { color: #fbbf24; }
.desk-invoice-view { position: fixed; inset: 0; z-index: 2147483100; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #0b1020; }
.desk-invoice-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.desk-invoice-bar .mc-backlink { margin: 0; cursor: pointer; font: 600 15px/1 system-ui, sans-serif; }
.desk-invoice-frame { width: 100%; height: 100%; border: 0; background: #fff; }
body.desk-invoice-open { overflow: hidden; }

/* skeletons: switching face or matter shows these at once */
.desk-skeleton { display: grid; gap: 10px; justify-items: stretch; padding-top: 8px; }
.desk-skeleton i { display: block; border-radius: 12px; background: linear-gradient(100deg, rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, .11) 50%, rgba(255, 255, 255, .05) 70%); background-size: 200% 100%; animation: wg-shimmer 1.1s linear infinite; }
.desk-skeleton .is-face { width: min(240px, 64vw); aspect-ratio: 1; border-radius: 50%; justify-self: center; }
.desk-skeleton .is-line { width: 50%; height: 34px; justify-self: center; }
.desk-skeleton .is-head { width: 40%; height: 26px; margin-top: 10px; }
.desk-skeleton .is-row { height: 64px; }
@keyframes wg-shimmer { to { background-position: -200% 0; } }

/* the composer is Xiao's while the Desk is open */
.chat-home.desk-open #chatComposer { border-color: rgba(255, 231, 91, .55) !important; box-shadow: 0 0 22px rgba(255, 231, 91, .12), inset 0 1px 0 rgba(255, 231, 91, .18) !important; }
.chat-home.desk-open #chatInput::placeholder { color: rgba(255, 231, 91, .55); }
.chat-home.desk-open #chatInput { color: #fff7c2; }
.desk-composer-xiao { position: absolute; z-index: 2; left: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 231, 91, .5); background: rgba(255, 231, 91, .1); color: #ffe75b; font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.desk-composer-xiao svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chat-home.desk-open #chatComposer .composer-documents { visibility: hidden; }
.chat-home.desk-open .desk-composer-mic { border-color: rgba(255, 231, 91, .45); background: rgba(255, 231, 91, .08); color: #ffe75b; }
.chat-home.desk-open #chatComposer .send-button { color: #ffe75b !important; border-color: rgba(255, 231, 91, .5) !important; }
.chat-home.desk-open #chatComposer .send-button { background: rgba(255, 231, 91, .16) !important; box-shadow: 0 0 16px rgba(255, 231, 91, .16) !important; }

/* the Desk's input: Xiao's one-line bar, fixed at the bottom; the chat composer steps aside */
.chat-home.desk-open #composerDock { display: none !important; }
.desk-xiao-dock { position: fixed; z-index: 60; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); width: min(720px, calc(100% - 24px)); transform: translateX(-50%); animation: desk-dock-in .5s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes desk-dock-in { 0% { opacity: 0; transform: translate(-50%, 8px); filter: brightness(2.2); } 25% { opacity: 1; filter: brightness(2) drop-shadow(0 0 16px rgba(255, 231, 91, .8)); } 45% { opacity: .6; } 100% { opacity: 1; transform: translate(-50%, 0); filter: none; } }
.desk-xiao-dock .wg-xiao { padding: 8px; border-radius: 18px; }
.chat-home.desk-open .welcome .desk-body { padding-bottom: 96px; }
/* hours and money: a tap opens the length */
.desk-len { appearance: none; border: 0; background: transparent; color: inherit; display: grid; justify-items: end; gap: 4px; padding: 4px 6px; margin: -4px -6px; border-radius: 8px; cursor: pointer; }
.desk-len:hover { background: rgba(255, 255, 255, .08); }
.wg-petal-option.tone-danger { border-color: rgba(255, 93, 115, .45); } .wg-petal-option.tone-danger b { color: #fca5a5; }

/* notes: yellow note paper, sleek */
.desk-note { position: relative; border: 0 !important; color: #2b2410 !important; background: linear-gradient(180deg, #fff7c2 0%, #ffef9a 100%) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 40%), repeating-linear-gradient(180deg, transparent 0 25px, rgba(180, 140, 40, .18) 25px 26px), linear-gradient(180deg, #fff7c2, #ffe98a) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 12px 26px rgba(0, 0, 0, .35), 0 2px 4px rgba(0, 0, 0, .2); border-radius: 6px 6px 14px 6px !important; padding: 14px 14px 16px 18px !important; }
.desk-note::before { content: ""; position: absolute; top: 0; bottom: 0; left: 10px; width: 1px; background: rgba(220, 80, 80, .35); }
.desk-note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; background: linear-gradient(135deg, rgba(0, 0, 0, .12) 50%, transparent 50%); border-top-left-radius: 4px; }
.desk-note time { color: #8a6d1d !important; }
.desk-note p, .desk-note b { color: #2b2410 !important; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif !important; font-size: 16px !important; line-height: 26px !important; }
.desk-note .desk-ic { background: rgba(255, 255, 255, .5) !important; border-color: rgba(120, 90, 20, .25) !important; color: #6b5414 !important; }
.desk-note a { color: #1d6fa5 !important; }
.desk-note.is-ai { box-shadow: inset 4px 0 0 #34d399, 0 12px 26px rgba(0, 0, 0, .35) !important; }

/* notes in handwriting: Kalam reads easily and sits on the ruled lines */
.desk-note p, .desk-note b { font-family: "Kalam", "Bradley Hand", "Segoe Print", cursive !important; font-size: 19px !important; line-height: 26px !important; letter-spacing: .01em; }
.desk-note b { font-weight: 700 !important; }
.desk-note .desk-inline { font-family: "Kalam", "Bradley Hand", cursive !important; font-size: 19px !important; line-height: 26px; color: #2b2410 !important; background: rgba(255, 255, 255, .55) !important; border-color: rgba(180, 140, 40, .45) !important; }

/* the Desk's Xiao bar on a shaded strip: nothing shows behind it */
.desk-xiao-dock { left: 0 !important; right: 0; bottom: 0 !important; width: auto !important; transform: none !important; padding: 18px 12px calc(env(safe-area-inset-bottom, 0px) + 12px);
  background: linear-gradient(180deg, rgba(5, 8, 16, 0), rgba(5, 8, 16, .94) 30%, rgba(5, 8, 16, .99)); animation: desk-dock-fade .45s ease both; }
.desk-xiao-dock > .wg-xiao { max-width: 720px; margin: 0 auto; animation: desk-dock-lit .55s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes desk-dock-fade { from { opacity: 0; } }
@keyframes desk-dock-lit { 0% { filter: brightness(2.2); } 25% { filter: brightness(2) drop-shadow(0 0 16px rgba(255, 231, 91, .8)); } 45% { opacity: .6; } 100% { opacity: 1; filter: none; } }
.chat-home.desk-open .welcome .desk-body { padding-bottom: 120px; }

/* the Time · Tasks · Matter bar: thinner, snug under the toolbar */
.welcome { padding-top: 4px !important; }
.welcome-admin { grid-template-columns: 44px 44px minmax(0, 1fr); gap: 6px; margin: 0 auto 10px; }
.welcome-admin .welcome-tool { min-height: 44px; border-radius: 10px; }
.welcome-admin .welcome-tool svg { width: 22px; height: 22px; }
.welcome-admin .matter-trigger { min-height: 44px !important; }
.welcome-admin .matter-name { font-size: 18px !important; }
.welcome-admin .matter-kicker { font-size: 9px !important; }
/* the profile chip on the welcome */
.welcome-profile { gap: 8px; }
.welcome-profile svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.welcome-profile svg:last-child { width: 14px; height: 14px; opacity: .7; }
.chat-home.desk-open .welcome-profile { display: none; }

/* the welcome sits right under the toolbar */
.chat-home #chatLog:has(> .welcome) { padding-top: 6px !important; }
.welcome { padding-top: 0 !important; }
/* four tools now (clock, notes, calendar, messages), then the matter */
.welcome-admin, .desk-alone .welcome-admin { grid-template-columns: repeat(4, 44px) minmax(0, 1fr); gap: 6px; }
@media (max-width: 400px) { .welcome-admin, .desk-alone .welcome-admin { grid-template-columns: repeat(4, 40px) minmax(0, 1fr); gap: 5px; } .welcome-admin .welcome-tool svg { width: 20px; height: 20px; } }
