:root {
  --page: #313131;
  --sidebar: #282828;
  --surface: #3d3d3d;
  --surface-dark: #363636;
  --border: #484846;
  --text: #d8d7d2;
  --body-text: #b4b3ae;
  --muted: #858580;
  --faint: #666662;
  --pink: #d465dd;
  --reef-purple: #6f45f4;
  --reef-purple-rgb: 111, 69, 244;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; }
body { margin: 0; overflow: hidden; background: var(--page); color: var(--text); font-family: Arial, Helvetica, sans-serif; font-size: 12px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { border: 0; color: inherit; font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [contenteditable]:focus-visible { outline: 1px solid #a7a65f; outline-offset: 2px; }

/* Shared compact CSS icons */
.icon-search { width: 10px; height: 10px; position: relative; display: inline-block; flex: 0 0 auto; border: 1px solid #898984; border-radius: 50%; opacity: .9; }
.icon-search::after { content: ""; position: absolute; width: 4px; height: 1px; right: -3px; bottom: -1px; background: #898984; transform: rotate(45deg); }
.icon-home { width: 11px; height: 9px; position: relative; display: inline-block; border: 1px solid #8d8d88; border-top: 0; border-radius: 2px; }
.icon-home::before { content: ""; position: absolute; width: 7px; height: 7px; left: 1px; top: -4px; border-left: 1px solid #8d8d88; border-top: 1px solid #8d8d88; transform: rotate(45deg); }
.icon-calendar { width: 10px; height: 9px; display: inline-block; margin-right: 4px; border: 1px solid #858580; border-radius: 2px; }
.icon-calendar::before { content: ""; display: block; margin-top: 2px; border-top: 1px solid #858580; }
.icon-people { width: 12px; height: 10px; position: relative; display: inline-block; margin-right: 4px; }
.icon-people::before, .icon-people::after { content: ""; position: absolute; width: 4px; height: 4px; top: 0; border: 1px solid #858580; border-radius: 50%; }
.icon-people::before { left: 0; } .icon-people::after { right: 0; }
.icon-folder { width: 11px; height: 8px; display: inline-block; position: relative; margin-right: 4px; border: 1px solid #858580; border-radius: 2px; }
.icon-folder::before { content: ""; position: absolute; left: 0; top: -3px; width: 5px; height: 3px; border: 1px solid #858580; border-bottom: 0; border-radius: 2px 2px 0 0; }

/* Home */
.home-page { display: flex; background: var(--page); }
.sidebar { width: 145px; flex: 0 0 145px; height: 100vh; position: relative; padding: 12px 6px 7px; background: var(--sidebar); }
.sidebar-brand { height: 48px; display: flex; align-items: center; gap: 7px; padding: 0 7px; margin-bottom: 5px; }
.sidebar-brand img { width: 29px; height: 29px; flex: 0 0 29px; object-fit: contain; }
.sidebar-brand-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sidebar-brand-copy strong { color: #e3e2dd; font-size: 13px; font-weight: 600; line-height: 15px; letter-spacing: -.2px; }
.sidebar-brand-copy small { color: #83837e; font-size: 7px; line-height: 9px; white-space: nowrap; }
.brand-mark { height: 35px; display: grid; place-items: center; opacity: .7; }
.brand-mark > span { width: 12px; height: 10px; border: 1px solid #8d8d87; border-radius: 4px; position: relative; }
.brand-mark > span::after { content: ""; position: absolute; left: 4px; top: 2px; width: 2px; height: 4px; border-left: 1px solid #8d8d87; border-right: 1px solid #8d8d87; }
.search-control { height: 25px; display: flex; align-items: center; gap: 6px; padding: 0 7px; color: #969691; }
.search-control input { width: 80px; min-width: 0; padding: 0; outline: 0; background: transparent; font-size: 10px; }
.search-control input::placeholder { color: #8e8e89; }
.search-control kbd { margin-left: auto; color: #777772; font: 8px Arial, sans-serif; }
.home-link { height: 29px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: 7px; color: #aaa9a4; font-size: 10px; }
.home-link:hover { background: #323232; color: #d0cfca; }
.home-link.active { background: #383837; color: #deddd8; }
.settings-link { width: 100%; margin-top: 2px; background: transparent; text-align: left; }
.home-nav-icon { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-new-note { position: absolute; right: 6px; bottom: 49px; left: 6px; height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid #3e3e3c; border-radius: 10px; background: #30302f; color: #c7c6c1; font-size: 9px; text-align: left; }
.sidebar-new-note > span[aria-hidden="true"] { color: #989893; font-size: 14px; line-height: 1; }
.sidebar-new-note-label { font-size: 9px; line-height: 1; }
.sidebar-new-note:hover { background: #363635; }
.sidebar-new-note:disabled { cursor: wait; opacity: .6; }
.sidebar-new-note.loading span { animation: recording-pulse 1s ease-in-out infinite; }
.recording-status-pill { position: absolute; left: 6px; right: 6px; bottom: 8px; min-height: 34px; display: flex; align-items: center; gap: 7px; padding: 7px 8px; border: 1px solid #3e3e3c; border-radius: 10px; background: #30302f; color: #777772; }
.recording-status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #5c5c58; }
.recording-status-label { min-width: 0; flex: 1; overflow: hidden; font-size: 8px; line-height: 11px; text-overflow: ellipsis; white-space: nowrap; }
.recording-status-label:not([href]) { cursor: default; }
.recording-status-pill[data-state="recording"] { border-color: rgba(var(--reef-purple-rgb),.34); color: #c1c0bb; }
.recording-status-pill[data-state="recording"] .recording-status-dot, .recording-toggle[data-state="recording"] .recording-status-dot { background: var(--reef-purple); box-shadow: 0 0 0 3px rgba(var(--reef-purple-rgb),.16); animation: recording-pulse 1.1s ease-in-out infinite; }
.recording-status-pill button { width: 9px; height: 9px; flex: 0 0 9px; padding: 0; border-radius: 2px; background: #aaa9a4; }
.recording-status-pill button:disabled { cursor: wait; opacity: .55; }
.home-workspace { position: relative; height: 100vh; flex: 1; min-width: 0; overflow: hidden; background: var(--page); }
.home-actions { height: 38px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; }
.new-note-link { height: 25px; display: flex; align-items: center; gap: 5px; padding: 0 11px; border: 1px solid #4b4b48; border-radius: 9px; background: #323232; color: #dad9d4; font-size: 10px; }
.new-note-link span { color: #989893; font-size: 13px; }
.new-note-link:hover { background: #393938; }
.new-note-link:disabled { cursor: wait; opacity: .65; }
.new-note-link.loading span { animation: recording-pulse 1s ease-in-out infinite; }
.home-column { width: 467px; margin: 16px auto 0; }
.coming-title-row { height: 31px; display: flex; align-items: flex-start; justify-content: space-between; padding: 0 6px; }
.coming-title-row h1 { margin: 0; color: #d5d3ce; font: 500 21px/24px Arial, Helvetica, sans-serif; letter-spacing: -.25px; }
.day-arrows { display: flex; gap: 2px; padding-top: 1px; }
.day-arrows button { width: 18px; height: 18px; padding: 0; background: transparent; color: #63635f; font-size: 16px; }
.calendar-card { height: 198px; display: grid; grid-template-columns: 111px 1fr; grid-template-rows: 147px 35px; padding: 11px 14px 5px; border: 1px solid rgba(255,255,255,.035); border-radius: 15px; background: var(--surface); overflow: hidden; }
.calendar-date { display: flex; align-items: flex-start; gap: 8px; }
.calendar-date strong { color: #e1dfda; font: 400 22px/25px Georgia, "Times New Roman", serif; }
.calendar-date > span { display: flex; flex-direction: column; padding-top: 2px; color: #b0afaa; font-size: 8px; line-height: 10px; }
.calendar-date b { font-weight: 600; }
.calendar-date b i { width: 3px; height: 3px; display: inline-block; margin: 0 0 1px 3px; border-radius: 50%; background: #e06958; }
.agenda { display: flex; flex-direction: column; gap: 7px; }
.agenda > div { min-height: 28px; display: flex; gap: 10px; }
.agenda > div > i { width: 2px; height: 22px; flex: 0 0 auto; border-radius: 2px; background: var(--pink); }
.agenda > div > span { display: flex; flex-direction: column; margin-top: -2px; }
.agenda b { color: #e0dfda; font-size: 11px; font-weight: 500; line-height: 14px; }
.agenda small { color: #999893; font-size: 8px; line-height: 10px; }
.date-fourteen { padding-top: 1px; }
.agenda-fourteen { padding-top: 1px; }
.notes { padding: 17px 6px 0; }
.meetings-list { max-height: calc(100vh - 112px); overflow-y: auto; scrollbar-width: none; }
.meetings-list::-webkit-scrollbar { display: none; }
.meetings-empty { min-height: 142px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed #484846; border-radius: 14px; color: #858580; text-align: center; }
.meetings-empty b { color: #aaa9a4; font-size: 11px; font-weight: 500; }
.meetings-empty span { font-size: 9px; }
.note-group { margin: 0 0 19px; }
.note-group h2 { margin: 0 0 5px; color: #8d8c87; font-size: 9px; font-weight: 600; line-height: 12px; }
.note-row { height: 36px; display: flex; align-items: center; border-radius: 7px; }
.note-row:hover { background: rgba(255,255,255,.035); }
.note-row-link { min-width: 0; height: 100%; display: flex; flex: 1; align-items: center; gap: 10px; padding: 2px 5px 2px 0; }
.doc-thumb, .photo-thumb, .colored-thumb { width: 21px; height: 21px; flex: 0 0 21px; display: grid; place-items: center; border-radius: 5px; }
.doc-thumb { background: #595955; }
.doc-thumb span { width: 7px; height: 9px; position: relative; border: 1px solid #b2b1ac; border-radius: 1px; }
.doc-thumb span::after { content: ""; position: absolute; top: -1px; right: -1px; width: 3px; height: 3px; background: #595955; border-left: 1px solid #b2b1ac; border-bottom: 1px solid #b2b1ac; }
.photo-thumb { background: radial-gradient(circle at 30% 27%, #d8c579 0 16%, transparent 18%), radial-gradient(circle at 70% 62%, #b16c70 0 23%, transparent 25%), linear-gradient(135deg,#576c37,#6d4f3e); }
.colored-thumb { background: #67621c; }
.note-name { min-width: 0; display: flex; flex-direction: column; line-height: 13px; }
.note-name b { overflow: hidden; color: #d7d6d1; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.note-name small { overflow: hidden; color: #878681; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.note-row time { margin-left: auto; color: #969590; font-size: 8px; white-space: nowrap; }
.delete-meeting-button { margin: 0 5px 0 2px; padding: 4px 6px; border-radius: 5px; background: transparent; color: #858580; font-size: 8px; opacity: .65; transition: background-color .15s ease, color .15s ease, opacity .15s ease; }
.note-row:hover .delete-meeting-button, .delete-meeting-button:focus-visible { opacity: 1; }
.delete-meeting-button:hover { background: rgba(184, 87, 79, .14); color: #d39b96; }
.delete-meeting-button:disabled { cursor: wait; opacity: .55; }
.note-row[hidden], .note-group[hidden] { display: none; }
.clipped-row { opacity: .82; }
.no-results { padding: 30px 0; color: #8c8b86; text-align: center; }
.meeting-error { color: #d39b96; line-height: 16px; }
.home-ask-bar { position: absolute; left: 50%; bottom: 14px; width: 502px; height: 43px; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; padding: 0 9px 0 15px; border: 1px solid #464644; border-radius: 23px; background: var(--surface); color: #9c9b96; font-size: 10px; box-shadow: 0 0 0 5px rgba(43,43,43,.33); }
.home-ask-bar b, .detail-ask b { padding: 7px 10px; border-radius: 14px; background: #454543; color: #b9b8b3; font-size: 9px; font-weight: 500; }
.tiny-box { width: 10px; height: 10px; display: inline-block; margin-right: 5px; vertical-align: -2px; border: 1px solid #8c8b86; border-radius: 3px; }

/* Note pages */
.note-page { background: #050505; }
.note-workspace { position: relative; height: 100vh; margin: 0; overflow: hidden; background: var(--page); }
.back-chip { position: absolute; z-index: 5; top: 8px; left: 65px; width: 34px; height: 22px; display: flex; align-items: center; justify-content: center; gap: 3px; border: 1px solid #454542; border-radius: 12px; color: #888782; font-size: 12px; }
.back-chip .icon-home { transform: scale(.72); }
.note-shell { width: 500px; margin: 0 auto; }
.blank-shell { height: calc(100% - 94px); padding: 40px 24px 0; }
.note-title { width: 100%; display: block; padding: 0; outline: 0; background: transparent; color: #d2d0cb; font: 500 20px/28px Arial, Helvetica, sans-serif; letter-spacing: -.25px; }
.note-title:focus, .note-title:focus-visible { outline: 0; }
.blank-metadata { height: 29px; display: flex; align-items: center; gap: 5px; color: #92918c; font-size: 9px; }
.blank-metadata > span { display: inline-flex; align-items: center; }
.blank-metadata button { width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 1px solid #424240; border-radius: 50%; background: transparent; }
.blank-metadata button .icon-folder { margin: 0; transform: scale(.75); }
.blank-body { width: 100%; height: calc(100% - 57px); resize: none; padding: 3px 0; outline: 0; background: transparent; color: var(--body-text); font: 11px/18px Arial, sans-serif; }
.blank-body::placeholder { color: #75746f; }
.bottom-dock { position: absolute; z-index: 4; left: 50%; bottom: 19px; transform: translateX(-50%); display: flex; gap: 7px; }
.blank-dock { width: 500px; padding-left: 0; }
.recorder-pill { width: 72px; height: 43px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #484845; border-radius: 22px; background: var(--surface); color: #92918c; }
.green-dots { color: var(--reef-purple); letter-spacing: -1px; }
.caret { width: 5px; height: 5px; border-right: 1px solid #92918c; border-bottom: 1px solid #92918c; transform: rotate(45deg) translateY(-2px); }
.recorder-pill b { width: 9px; height: 9px; margin-left: 5px; border-radius: 2px; background: #aaa9a4; }
.ask-field { height: 43px; flex: 1; display: flex; align-items: center; padding: 0 15px; border: 1px solid #474744; border-radius: 22px; background: var(--surface); color: #aaa9a4; font-size: 10px; }

/* Full session page */
.session-page { display: flex; }
.session-workspace { flex: 1; min-width: 0; display: flex; flex-direction: row; }
.session-note-pane { position: relative; min-width: 320px; flex: 1 1 auto; height: 100%; overflow: hidden; }
.session-note-header { width: min(500px, calc(100% - 48px)); height: 100%; padding: 39px 0 76px; }
.session-notes { width: 100%; height: calc(100% - 31px); display: block; resize: none; padding: 3px 0; outline: 0; background: transparent; color: var(--body-text); caret-color: #e3e2dd; cursor: text; font: 11px/18px Arial, sans-serif; }
.session-notes::placeholder { color: #74736f; }
.session-notes:focus, .session-notes:focus-visible { outline: 0; }
.session-card { width: 0; height: 100%; min-width: 0; flex: 0 0 0; position: relative; display: none; flex-direction: column; overflow: hidden; border-left: 1px solid #474744; background: var(--surface-dark); }
.session-card.open { width: min(360px, 28vw); min-width: 260px; flex-basis: min(360px, 28vw); display: flex; }
.panel-resize-handle { position: absolute; z-index: 9; top: 0; bottom: 0; left: 0; width: 8px; cursor: col-resize; touch-action: none; }
.panel-resize-handle::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: transparent; transition: background-color .15s ease, box-shadow .15s ease; }
.panel-resize-handle:hover::after, .panel-resize-handle:focus-visible::after, .session-card.resizing .panel-resize-handle::after { background: #858580; box-shadow: 0 0 0 2px rgba(133,133,128,.12); }
.panel-resize-handle:focus-visible { outline: 0; }
.session-card > header { height: 45px; flex: 0 0 45px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.055); color: #92918c; }
.session-card > header > div { display: flex; align-items: center; gap: 11px; }
.session-card button, .session-card header a { padding: 0; background: transparent; color: #92918c; }
.session-card-title { color: #aaa9a4; font-size: 10px; }
.icon-copy { width: 8px; height: 10px; display: inline-block; border: 1px solid #92918c; border-radius: 2px; box-shadow: 2px 2px 0 -1px var(--surface), 3px 3px 0 -1px #92918c; }
.copy-transcript[data-copied="true"] .icon-copy { border-color: var(--reef-purple); box-shadow: 2px 2px 0 -1px var(--surface), 3px 3px 0 -1px var(--reef-purple); }
.transcript-lines { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; overflow-y: auto; padding: 15px 10px 8px 14px; scrollbar-width: none; }
.transcript-lines::-webkit-scrollbar { display: none; }
.transcript-message { width: fit-content; max-width: 86%; margin: 0; padding: 7px 8px; border-radius: 7px; background: #30302f; color: #c7c6c1; font-size: 9px; line-height: 14px; }
.transcript-message.partial { color: #aaa9a4; }
.transcript-placeholder { margin: 0 auto; align-self: center; color: #85847f; font-size: 9px; text-align: center; }
.transcript-error { color: #d39b96; }
.session-card > footer { height: 52px; flex: 0 0 52px; display: flex; align-items: center; gap: 7px; padding: 0 15px; border-top: 1px solid rgba(255,255,255,.045); color: #92918c; font-size: 9px; }
.recording-toggle { width: 58px; height: 44px; display: inline-flex; flex: 0 0 58px; align-items: center; justify-content: center; gap: 9px; padding: 0; border: 1px solid #484845; border-radius: 22px; background: var(--surface); color: #aaa9a4; box-shadow: 0 0 0 5px rgba(43,43,43,.2); transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.recording-toggle:hover, .recording-toggle:focus-visible { border-color: #686864; background: #424240; }
.recording-toggle[data-state="recording"], .recording-toggle[data-state="starting"] { border-color: rgba(var(--reef-purple-rgb),.42); box-shadow: 0 0 0 4px rgba(var(--reef-purple-rgb),.12), 0 7px 18px rgba(0,0,0,.16); }
.recording-toggle[data-state="recording"] .stop-square, .recording-toggle[data-state="starting"] .stop-square { display: block; }
.recording-toggle[data-state="recording"] .resume-triangle, .recording-toggle[data-state="starting"] .resume-triangle { display: none; }
.resume-triangle { width: 0; height: 0; display: block; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid #aaa9a4; }
.stop-square { width: 9px; height: 9px; display: none; border-radius: 2px; background: #d0cfca; }
.share-meeting-audio { padding: 5px 8px !important; border: 1px solid #50504d !important; border-radius: 12px; color: #b8b7b2 !important; font-size: 8px !important; }
.share-meeting-audio:hover { border-color: #686862 !important; color: #d3d2cd !important; }
.session-card > footer div { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.transcription-state { min-width: 50px; color: #85847f; text-align: right; }
@keyframes recording-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.session-panel-launcher { position: absolute; z-index: 7; left: 50%; bottom: 18px; display: flex; gap: 8px; transform: translateX(-50%); }
.panel-launcher-button { min-width: 132px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid #484845; border-radius: 22px; background: var(--surface); color: #aaa9a4; font-size: 10px; font-weight: 500; text-align: center; box-shadow: 0 0 0 5px rgba(43,43,43,.2); transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
.panel-launcher-button:hover, .panel-launcher-button:focus-visible { border-color: #686864; color: #deddd8; }
.panel-launcher-button.active { border-color: #d7d7d4; background: #d7d7d4; color: #343432; box-shadow: 0 0 0 4px rgba(215,215,212,.11), 0 7px 18px rgba(0,0,0,.18); }
.chat-messages { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 12px 10px; scrollbar-width: none; }
.chat-messages::-webkit-scrollbar { display: none; }
.chat-placeholder { margin: 0; position: relative; top: 42%; color: #85847f; font-size: 9px; text-align: center; }
.user-message { width: fit-content; max-width: 90%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 42px auto; padding: 7px 10px; border-radius: 8px; background: #313130; color: #cfcec9; font-size: 10px; }
.message-flow-badge { padding: 3px 6px; border: 1px solid #5a5a55; border-radius: 9px; color: #c9c8c3; font-size: 8px; line-height: 10px; white-space: nowrap; }
.assistant-message { margin: 0 0 22px; color: #dbdad5; font-size: 11px; line-height: 1.45; }
.assistant-content { width: 100%; }
.assistant-content p { margin: 0 0 10px; }
.assistant-content p:last-child, .assistant-content > :last-child { margin-bottom: 0; }
.assistant-content h3, .assistant-content h4, .assistant-content h5 { margin: 0 0 8px; color: #efeee9; font-size: 11px; font-weight: 600; line-height: 1.4; }
.assistant-content ol, .assistant-content ul { margin: 0 0 12px; padding-left: 19px; }
.assistant-content li { margin: 0 0 7px; padding-left: 2px; }
.assistant-content li:last-child { margin-bottom: 0; }
.assistant-content li > ul, .assistant-content li > ol { margin: 6px 0 2px; padding-left: 17px; }
.assistant-content strong { color: #f0efea; font-weight: 600; }
.assistant-content em { color: #c7c6c1; }
.assistant-content code { padding: 1px 4px; border-radius: 4px; background: #2e2e2d; color: #deddd8; font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.assistant-message.pending { color: #92918c; animation: recording-pulse 1.1s ease-in-out infinite; }
.assistant-message.chat-error { color: #d39b96; }
.say-more { padding: 5px 9px !important; border: 1px solid #50504d !important; border-radius: 13px; color: #c2c1bc !important; font-size: 9px !important; }
.flow-suggestions { min-height: 35px; display: flex; flex: 0 0 auto; align-items: flex-end; gap: 6px; overflow-x: auto; padding: 6px 8px 0; scrollbar-width: none; }
.flow-suggestions[hidden] { display: none; }
.flow-suggestions::-webkit-scrollbar { display: none; }
.session-card .flow-suggestion { min-width: max-content; height: 24px; padding: 0 9px; border: 1px solid #50504d; border-radius: 12px; background: #3a3a38; color: #aaa9a4; font-size: 8px; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.session-card .flow-suggestion:hover { border-color: #686864; color: #d2d1cc; }
.session-card .flow-suggestion.active { border-color: #d7d7d4; background: #d7d7d4; color: #343432; }
.chat-entry { height: 43px; flex: 0 0 43px; margin: 8px 7px 9px; display: flex; align-items: center; gap: 11px; padding: 0 7px 0 12px; border: 1px solid #50504d; border-radius: 22px; box-shadow: none; }
.chat-entry input { flex: 1; min-width: 0; padding: 0; outline: 0; background: transparent; color: #dddcd7; font-size: 10px; }
.chat-entry input::placeholder { color: #aaa9a4; }
.chat-entry > button { width: 28px; height: 28px; display: grid; flex: 0 0 28px; place-items: center; padding: 0 !important; border-radius: 50%; background: #d7d7d4; color: #3f3f3d !important; font-size: 19px; line-height: 1; }
.chat-entry > button:hover { background: #e4e4e1; }
.ai-note { position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%); margin: 0; color: #6d6c68; font-size: 7px; white-space: nowrap; }

/* Existing note */
.existing-toolbar { height: 40px; position: relative; }
.existing-toolbar .back-chip { top: 8px; }
.current-note-pill { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); height: 25px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #464643; border-radius: 13px; color: #d0cfca; font-size: 10px; }
.current-note-pill b { color: #979691; font-size: 14px; font-weight: 400; }
.share-actions { position: absolute; right: 8px; top: 6px; display: flex; align-items: center; gap: 8px; }
.share-actions button { height: 26px; background: transparent; color: #a09f9a; }
.share-button { padding: 0 10px !important; border-radius: 13px; background: #f0f0eb !important; color: #484844 !important; font-size: 10px; }
.lock-icon { width: 8px; height: 7px; display: inline-block; position: relative; margin-right: 5px; border: 1px solid #5c5b57; border-radius: 2px; }
.lock-icon::before { content: ""; position: absolute; width: 4px; height: 4px; left: 1px; top: -5px; border: 1px solid #5c5b57; border-bottom: 0; border-radius: 4px 4px 0 0; }
.link-button { width: 25px; border: 1px solid #4d4d49 !important; border-radius: 50%; font-size: 17px !important; }
.existing-note { width: 450px; height: calc(100% - 101px); margin: 0 auto; overflow: hidden; }
.existing-note h1 { margin: 4px 0 2px; outline: 0; color: #eeeae3; font: 500 21px/28px Arial, Helvetica, sans-serif; letter-spacing: -.25px; }
.rich-metadata { height: 26px; display: flex; gap: 5px; align-items: center; margin-left: -4px; }
.rich-metadata button { height: 22px; display: flex; align-items: center; padding: 0 8px; border-radius: 12px; background: #292928; color: #999893; font-size: 9px; white-space: nowrap; }
.rich-metadata button:first-child { padding: 0 7px; }
.rich-body { height: calc(100% - 56px); padding-top: 13px; overflow: hidden; outline: 0; color: #b8b7b2; font-size: 12px; line-height: 20px; }
.rich-body h2 { margin: 0; color: #bbb9b4; font-size: 12px; font-weight: 500; line-height: 21px; }
.rich-body h2:not(:first-child) { margin-top: 18px; }
.rich-body h2 span { margin-left: -14px; margin-right: 5px; color: #777671; font-weight: 400; }
.rich-body ul { margin: 0; padding-left: 13px; list-style-position: outside; }
.rich-body ul ul { padding-left: 14px; list-style-type: circle; }
.rich-body li::marker { color: #8b8a85; font-size: 8px; }
.existing-dock { width: 500px; }
.audio-button { width: 44px; height: 43px; position: relative; display: flex; align-items: center; justify-content: center; gap: 2px; border: 1px solid #494946; border-radius: 22px; background: var(--surface); }
.audio-button span { width: 2px; border-radius: 2px; background: #aaa9a4; }
.audio-button span:nth-child(1) { height: 13px; }.audio-button span:nth-child(2) { height: 20px; }.audio-button span:nth-child(3) { height: 10px; }
.audio-button i { margin-left: 4px; color: #8a8984; font-style: normal; }
.detail-ask { justify-content: space-between; }

/* Settings */
.settings-workspace { height: 100vh; flex: 1; min-width: 0; overflow-y: auto; background: var(--page); scrollbar-width: none; }
.settings-workspace::-webkit-scrollbar { display: none; }
.settings-shell { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0; }
.settings-tabs { display: flex; gap: 3px; margin: 0 0 28px; padding: 3px; border: 1px solid #454543; border-radius: 10px; background: #2d2d2c; width: fit-content; }
.settings-tabs a { min-width: 76px; padding: 7px 14px; border-radius: 7px; color: #8f8e89; font-size: 9px; text-align: center; }
.settings-tabs a:hover { color: #cfcec9; }
.settings-tabs a.active { background: #414140; color: #deddd8; }
[data-settings-page][hidden] { display: none; }
.settings-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 24px; }
.settings-header h1 { margin: 0 0 6px; color: #e1e0db; font-size: 22px; font-weight: 500; letter-spacing: -.25px; }
.settings-header p { margin: 0; color: #858580; font-size: 10px; }
.new-flow-button { height: 31px; display: flex; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid #4b4b48; border-radius: 9px; background: #363635; color: #d5d4cf; font-size: 9px; white-space: nowrap; }
.new-flow-button:hover { background: #3e3e3c; }
.new-flow-button span { color: #9a9994; font-size: 14px; }
.flow-settings-layout { min-height: 430px; display: grid; grid-template-columns: 230px minmax(0, 1fr); border: 1px solid #454543; border-radius: 14px; overflow: hidden; background: #343433; }
.settings-flow-list { display: flex; flex-direction: column; gap: 3px; padding: 8px; border-right: 1px solid #454543; overflow-y: auto; }
.settings-flow-item { width: 100%; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 8px; background: transparent; color: #aaa9a4; text-align: left; }
.settings-flow-item:hover { background: #3a3a39; }
.settings-flow-item.active { background: #414140; }
.settings-flow-item strong { color: #d5d4cf; font-size: 10px; font-weight: 500; }
.settings-flow-item span { overflow: hidden; color: #858580; font-size: 8px; line-height: 12px; text-overflow: ellipsis; white-space: nowrap; }
.settings-placeholder { margin: auto; padding: 18px; color: #858580; font-size: 9px; line-height: 14px; text-align: center; }
.settings-placeholder.error { color: #d39b96; }
.flow-editor { min-width: 0; display: flex; flex-direction: column; padding: 20px; }
.flow-editor[hidden] { display: none; }
.flow-editor label { margin: 0 0 7px; color: #aaa9a4; font-size: 9px; }
.flow-editor input, .flow-editor textarea { width: 100%; border: 1px solid #4b4b48; border-radius: 8px; outline: 0; background: #30302f; color: #deddd8; caret-color: #e3e2dd; font: 10px/16px Arial, sans-serif; }
.flow-editor input { height: 35px; margin-bottom: 17px; padding: 0 10px; }
.flow-editor textarea { min-height: 230px; flex: 1 1 auto; resize: vertical; padding: 10px; }
.flow-editor input:focus, .flow-editor textarea:focus { border-color: #696963; }
.flow-editor-hint { margin: 9px 0 0; color: #777772; font-size: 8px; line-height: 12px; }
.flow-editor-status { min-height: 16px; margin: 7px 0 0; color: #92918c; font-size: 8px; }
.flow-editor-status.error { color: #d39b96; }
.flow-editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 9px; }
.flow-editor-actions button { height: 29px; padding: 0 10px; border-radius: 8px; font-size: 9px; }
.delete-flow-button { margin-right: auto; background: transparent; color: #b88985; }
.cancel-flow-button { background: transparent; color: #aaa9a4; }
.save-flow-button { background: #deddd8; color: #343432; }
.flow-editor-actions button:hover { filter: brightness(1.08); }
.flow-editor-actions button:disabled { cursor: wait; opacity: .6; }
.flow-editor-empty { display: grid; place-items: center; padding: 24px; color: #858580; font-size: 9px; text-align: center; }
.flow-editor-empty[hidden] { display: none; }
.general-settings-card { padding: 22px; border: 1px solid #454543; border-radius: 14px; background: #343433; }
.general-settings-card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.general-settings-card legend { padding: 0; color: #d8d7d2; font-size: 11px; font-weight: 500; }
.settings-field-description { margin: 6px 0 15px; color: #858580; font-size: 9px; }
.provider-option { min-height: 70px; display: flex; align-items: center; gap: 12px; margin-top: 9px; padding: 14px; border: 1px solid #4b4b48; border-radius: 11px; background: #30302f; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.provider-option:hover { border-color: #60605b; }
.provider-option:has(input:checked) { border-color: rgba(var(--reef-purple-rgb),.7); background: rgba(var(--reef-purple-rgb),.08); box-shadow: inset 0 0 0 1px rgba(var(--reef-purple-rgb),.16); }
.provider-option input { width: 14px; height: 14px; flex: 0 0 14px; accent-color: var(--reef-purple); }
.provider-option-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 5px; }
.provider-option-copy strong { color: #deddd8; font-size: 10px; font-weight: 500; }
.provider-option-copy small { color: #858580; font-size: 8px; line-height: 12px; }
.provider-tag { padding: 4px 7px; border: 1px solid #51514d; border-radius: 9px; color: #8f8e89; font-size: 7px; text-transform: uppercase; letter-spacing: .4px; }
.provider-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; padding: 14px; border-radius: 10px; background: #2f2f2e; }
.provider-details > div { display: flex; flex-direction: column; gap: 4px; }
.provider-details .api-key-field { grid-column: 1 / -1; gap: 7px; margin-bottom: 4px; padding-bottom: 14px; border-bottom: 1px solid #41413f; }
.api-key-field label { color: #aaa9a4; font-size: 9px; }
.api-key-input-row { display: flex; align-items: center; gap: 7px; }
.api-key-input-row input { height: 35px; min-width: 0; flex: 1; padding: 0 10px; border: 1px solid #4b4b48; border-radius: 8px; outline: 0; background: #292928; color: #deddd8; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.api-key-input-row input:focus { border-color: #696963; }
.api-key-input-row button { height: 31px; padding: 0 9px; border-radius: 7px; background: #3b3b39; color: #aaa9a4; font-size: 8px; }
.api-key-input-row button:hover { background: #454542; color: #d5d4cf; }
.api-key-input-row button:disabled { cursor: not-allowed; opacity: .45; }
.api-key-input-row #clear-openai-key { color: #b88985; }
.provider-details span { color: #777772; font-size: 7px; text-transform: uppercase; letter-spacing: .4px; }
.provider-details strong { color: #d5d4cf; font: 500 9px/13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.provider-details small { color: #777772; font-size: 8px; line-height: 12px; }
.openai-key-status { grid-column: 1 / -1; margin: 3px 0 0; padding-top: 10px; border-top: 1px solid #41413f; color: #9b9a95; font-size: 8px; }
.openai-key-status.error { color: #d39b96; }
.settings-account-section { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 14px; border: 1px solid #4b4b48; border-radius: 10px; background: #2f2f2e; }
.settings-account-section.general-settings-card { margin-top: 0; }
.settings-account-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.settings-account-copy small { color: #777772; font-size: 7px; text-transform: uppercase; letter-spacing: .4px; }
.settings-account-copy strong { overflow: hidden; color: #d5d4cf; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.settings-logout-button { height: 31px; flex: 0 0 auto; padding: 0 11px; border: 1px solid #565651; border-radius: 8px; background: #3b3b39; color: #d5d4cf; font-size: 9px; }
.settings-logout-button:hover { background: #454542; }
.settings-logout-button:disabled { cursor: wait; opacity: .6; }
.general-settings-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.general-settings-actions .flow-editor-status { min-height: 0; flex: 1; margin: 0; }
.general-settings-actions button { height: 31px; padding: 0 12px; border-radius: 8px; font-size: 9px; }
.general-settings-actions button:disabled { cursor: wait; opacity: .6; }
@media (max-width: 1280px) and (min-width: 821px) {
  .sidebar { width: 132px; flex-basis: 132px; }
  .session-note-pane { min-width: clamp(240px, 28vw, 300px); }
  .session-workspace:has(#transcript-panel.open):has(#chat-panel.open) .session-note-pane { flex: 0 0 clamp(240px, 28vw, 300px); }
  .session-workspace:has(#transcript-panel.open):has(#chat-panel.open) .session-card.open { width: calc((100% - clamp(240px, 28vw, 300px)) / 2) !important; min-width: 0; flex: 0 0 calc((100% - clamp(240px, 28vw, 300px)) / 2) !important; }
  .session-workspace:not(:has(#transcript-panel.open):has(#chat-panel.open)) .session-card.open { width: min(340px, 34vw) !important; min-width: 230px; flex-basis: min(340px, 34vw) !important; }
  .session-note-header { width: calc(100% - 32px); }
  .session-panel-launcher { width: min(338px, calc(100% - 16px)); }
  .panel-launcher-button { min-width: 0; flex: 1; padding-inline: 10px; }
  .panel-resize-handle { display: none; }
}

@media (max-width: 820px) {
  .sidebar { width: 132px; flex-basis: 132px; }
  .session-workspace { flex-wrap: wrap; align-content: flex-start; }
  .session-note-pane { width: 100%; min-width: 0; flex: 0 0 100%; }
  .session-workspace:has(.session-card.open) .session-note-pane { height: 44%; flex-basis: 100%; }
  .session-workspace:has(.session-card.open) .session-card.open { width: 100% !important; height: 56%; min-width: 0; flex: 0 0 100% !important; border-top: 1px solid #474744; }
  .session-workspace:has(#transcript-panel.open):has(#chat-panel.open) .session-card.open { width: 50% !important; flex-basis: 50% !important; }
  .session-note-header { width: calc(100% - 32px); padding-top: 26px; padding-bottom: 64px; }
  .session-panel-launcher { width: min(338px, calc(100% - 16px)); bottom: 10px; }
  .panel-launcher-button { min-width: 0; flex: 1; padding-inline: 8px; }
  .panel-resize-handle { display: none; }
}

@media (max-width: 700px) {
  body { overflow: hidden; }
  .home-page { display: block; }
  .sidebar { width: 100%; height: 52px; display: flex; align-items: center; gap: 5px; padding: 7px 10px; }
  .sidebar-brand { width: 28px; height: auto; margin: 0 4px 0 0; padding: 0; }
  .sidebar-brand img { width: 28px; height: 28px; flex-basis: 28px; }
  .sidebar-brand-copy { display: none; }
  .brand-mark { display: none; }
  .search-control { flex: 1; max-width: 260px; border-radius: 7px; background: #343434; }
  .search-control input { width: 100%; }
  .home-link { width: 34px; flex: 0 0 34px; justify-content: center; padding: 0; }
  .home-link > span { display: none; }
  .settings-link { margin-top: 0; }
  .sidebar-new-note { position: static; width: 36px; flex: 0 0 36px; justify-content: center; margin-left: auto; padding: 0; }
  .sidebar-new-note-label { display: none; }
  .recording-status-pill { position: static; width: auto; min-width: 34px; max-width: 185px; min-height: 34px; flex: 1 1 120px; margin-left: 0; }
  .home-workspace { height: calc(100dvh - 52px); min-height: 0; }
  .settings-workspace { height: calc(100dvh - 52px); }
  .settings-shell { width: calc(100% - 22px); padding: 24px 0; }
  .settings-header { padding-bottom: 16px; }
  .settings-tabs { margin-bottom: 18px; }
  .flow-settings-layout { min-height: 0; display: block; overflow: visible; border: 0; background: transparent; }
  .settings-flow-list { max-height: 176px; margin-bottom: 10px; border: 1px solid #454543; border-radius: 12px; background: #343433; }
  .flow-editor { min-height: 390px; padding: 15px; border: 1px solid #454543; border-radius: 12px; background: #343433; }
  .flow-editor textarea { min-height: 180px; }
  .flow-editor-empty { min-height: 180px; border: 1px solid #454543; border-radius: 12px; background: #343433; }
  .general-settings-card { padding: 15px; }
  .provider-details { grid-template-columns: 1fr; }
  .openai-key-status { grid-column: 1; }
  .home-column { width: calc(100% - 22px); max-width: 467px; }
  .meetings-list { max-height: calc(100dvh - 164px); }
  .calendar-card { grid-template-columns: 85px 1fr; }
  .home-ask-bar { width: calc(100% - 28px); }
  .note-workspace { height: 100dvh; }
  .session-page { display: block; }
  .session-page .note-workspace { height: calc(100dvh - 52px); }
  .back-chip { left: 10px; }
  .note-shell { width: calc(100% - 32px); }
  .blank-shell { padding-inline: 0; }
  .blank-dock, .existing-dock { width: calc(100% - 24px); }
  .session-note-pane { min-width: 0; }
  .session-note-header { width: calc(100% - 32px); padding-inline: 0; }
  .current-note-pill { display: none; }
  .share-actions { right: 8px; }
  .existing-note { width: calc(100% - 36px); }
  .rich-metadata { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* Account access */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 28px 18px;
  background: #f6f5f8;
}

.auth-card {
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid #e3e0e7;
  border-radius: 20px;
  background: #fff;
  color: #000;
  box-shadow: 0 28px 90px rgba(31, 22, 42, .12);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.auth-brand img { width: 32px; height: 32px; object-fit: contain; }
.auth-brand span { display: flex; flex-direction: column; line-height: 1.05; }
.auth-brand strong { font-size: 17px; }
.auth-brand small { margin-top: 4px; color: #000; font-size: 10px; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: #f0edf3;
}

.auth-tabs button {
  border: 0;
  border-radius: 8px;
  padding: 9px;
  color: #000;
  background: transparent;
  font-weight: 700;
}

.auth-tabs button.active {
  color: #000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 17, 32, .08);
}

.auth-card form h1 { margin: 25px 0 6px; font-size: 26px; letter-spacing: -.035em; }
.auth-card form > p:not(.auth-status) { margin: 0 0 20px; color: #000; font-size: 14px; }
.auth-card label { display: grid; gap: 6px; margin: 14px 0; color: #000; font-size: 13px; font-weight: 750; }

.auth-card input {
  width: 100%;
  border: 1px solid #d9d5de;
  border-radius: 10px;
  padding: 11px 12px;
  color: #000;
  background: #fff;
  outline: none;
}

.auth-card input:focus { border-color: #76569e; box-shadow: 0 0 0 3px rgba(118, 86, 158, .13); }
.auth-status { min-height: 20px; margin: 8px 0 0; color: #000; font-size: 13px; }

.auth-submit {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  background: #17131c;
  font-weight: 750;
}

.auth-submit:disabled { cursor: wait; opacity: .62; }

.settings-tabs[hidden] { display: none; }
