:root {
  --ink: #15231d;
  --muted: #65716c;
  --paper: #f5f3ed;
  --white: #fffefa;
  --line: #dedfd8;
  --green: #175c45;
  --green-dark: #0d4231;
  --mint: #b9decf;
  --peach: #f0b994;
  --yellow: #e8cc76;
  --lilac: #c7bedc;
  --danger: #a13b2d;
  --shadow: 0 18px 60px rgba(24, 43, 34, .09);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.workspace-body { height: 100vh; height: 100dvh; overflow: hidden; }
.workspace-body main { height: calc(100vh - 58px); height: calc(100dvh - 58px); overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.topbar { height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding: 0 3vw; background: rgba(245, 243, 237, .94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); }
.topbar-left { min-width: 0; display: flex; align-items: center; gap: 24px; }
.topbar-center { justify-self: center; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: Georgia, serif; font-weight: 700; font-size: 21px; letter-spacing: -.6px; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px 8px 8px 2px; background: var(--green); color: white; font: 700 15px/1 Georgia, serif; }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.topbar-actions form { display: flex; align-items: center; margin: 0; }
.nav-link { height: 34px; display: inline-flex; align-items: center; padding: 0; font-size: 13px; line-height: 1; font-weight: 650; color: #4f5b56; }
.nav-link:hover { color: var(--green); }
.button-reset { background: none; border: 0; padding: 0; cursor: pointer; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: white; font-weight: 750; font-size: 13px; }
.account-menu { position: relative; }
.avatar-button { width: 38px; height: 38px; padding: 2px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; }
.avatar-button:hover, .avatar-button[aria-expanded="true"], .avatar-button:focus-visible { background: #dfe9e3; outline: 0; }
.account-menu-panel { width: 238px; position: absolute; top: calc(100% + 9px); right: 0; z-index: 60; padding: 14px; border: 1px solid #d8dbd4; border-radius: 13px; background: var(--white); box-shadow: 0 18px 44px rgba(21,35,29,.16); }
.account-menu-identity { display: flex; flex-direction: column; padding: 2px 3px 12px; }
.account-menu-identity strong { font-size: 13px; }
.account-menu-identity span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.account-menu-stats { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 9px; border: 1px solid #e1e3dd; border-radius: 9px; background: #f3f4ef; }
.account-menu-stats > span { min-width: 0; padding: 10px; display: flex; flex-direction: column; }
.account-menu-stats > span + span { border-left: 1px solid #dfe1db; }
.account-menu-stats strong { color: var(--green); font-size: 16px; line-height: 1; }
.account-menu-stats small { margin-top: 4px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.account-menu-links { padding-top: 6px; border-top: 1px solid var(--line); }
.account-menu-links form { display: block; }
.account-menu-link { width: 100%; min-height: 34px; padding: 0 8px; border-radius: 7px; display: flex; align-items: center; gap: 9px; color: #4e5a54; font-size: 11px; font-weight: 650; cursor: pointer; }
.account-menu-link:hover, .account-menu-link:focus-visible { background: #eaf0ec; color: var(--green); outline: 0; }
.account-menu-link > span:first-child { width: 15px; text-align: center; }

.page-shell { max-width: 1240px; margin: 0 auto; padding: 70px 32px 100px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
h1 { font-size: clamp(42px, 5vw, 68px); line-height: .98; margin-bottom: 20px; }
h2 { font-size: 31px; line-height: 1.08; }
.muted { color: var(--muted); }
.hero-copy { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 620px; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.dashboard-page .hero-row h1 { margin-bottom: 0; }

.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.mode-grid form { min-width: 0; }
.mode-card { width: 100%; min-height: 0; aspect-ratio: 1; padding: 23px; border: 0; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; text-align: left; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; }
.mode-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mode-partner { background: var(--mint); }
.mode-one-to-one { background: var(--peach); }
.mode-interview { background: var(--yellow); }
.mode-general { background: var(--lilac); }
.mode-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mode-icon { width: 48px; height: 48px; display: grid; place-items: center; background: rgba(255,255,255,.42); border-radius: 15px; font-size: 24px; }
.mode-arrow { font-size: 20px; opacity: .65; transition: transform .2s; }
.mode-card:hover .mode-arrow { transform: translate(3px, -3px); }
.mode-content { display: flex; flex-direction: column; align-items: flex-start; }
.mode-content .eyebrow { color: rgba(21,35,29,.58); margin-bottom: 8px; }
.mode-content strong { font-family: Georgia, serif; font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 9px; }
.mode-content > span:last-child { min-height: 38px; font-size: 13px; line-height: 1.45; color: rgba(21,35,29,.67); }

.recent-section { margin-top: 78px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading h2 { margin: 0; }
.section-heading > span { font-size: 12px; }
.library-toolbar { display: grid; grid-template-columns: minmax(210px, 1fr) 170px 150px auto; gap: 10px; align-items: end; margin-bottom: 14px; }
.library-search { height: 39px; padding: 0 12px; border: 1px solid #d4d6cf; border-radius: 9px; background: rgba(255,255,255,.48); display: flex; align-items: center; gap: 8px; color: var(--muted); }
.library-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,92,69,.07); }
.library-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.filter-field { display: grid; gap: 4px; color: #727c77; text-transform: uppercase; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.filter-field select { width: 100%; height: 39px; padding: 0 30px 0 10px; border: 1px solid #d4d6cf; border-radius: 9px; background: rgba(255,255,255,.48); color: var(--ink); outline: 0; text-transform: none; font-size: 11px; letter-spacing: 0; }
.filter-field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,92,69,.07); }
.delete-selected { height: 39px; padding: 0 12px; border: 1px solid #dfc8c3; border-radius: 9px; background: #f5e8e5; color: var(--danger); display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font-size: 10px; font-weight: 750; cursor: pointer; }
.delete-selected:disabled { opacity: .38; cursor: not-allowed; }
.meeting-list { border-top: 1px solid var(--line); }
.meeting-list-header, .meeting-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 30px; align-items: center; gap: 11px; }
.meeting-columns, .meeting-row-link { min-width: 0; display: grid; grid-template-columns: minmax(220px, 1.45fr) minmax(110px, .7fr) 78px 70px minmax(172px, .9fr) 86px 20px; align-items: center; gap: 16px; }
.meeting-list-header { min-height: 38px; border-bottom: 1px solid var(--line); color: #7b847f; text-transform: uppercase; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.meeting-row { border-bottom: 1px solid var(--line); transition: background .2s; }
.meeting-row:hover { background: rgba(255,255,255,.48); }
.meeting-row-link { min-height: 70px; }
.row-selector { width: 24px; height: 24px; display: grid; place-items: center; cursor: pointer; }
.row-selector input { position: absolute; opacity: 0; pointer-events: none; }
.row-selector span { width: 14px; height: 14px; border: 1px solid #b9bfba; border-radius: 4px; background: rgba(255,255,255,.62); display: grid; place-items: center; }
.row-selector input:checked + span { border-color: var(--green); background: var(--green); }
.row-selector input:checked + span::after { content: ""; width: 6px; height: 3px; border-left: 1.5px solid white; border-bottom: 1.5px solid white; transform: rotate(-45deg) translateY(-1px); }
.row-selector input:focus-visible + span { box-shadow: 0 0 0 3px rgba(23,92,69,.12); }
.delete-note { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #7c8580; display: grid; place-items: center; cursor: pointer; }
.delete-note:hover { background: #f3e1de; color: var(--danger); }
.bin-icon { width: 14px; height: 15px; position: relative; display: inline-block; }
.bin-icon::before { content: ""; position: absolute; left: 3px; top: 4px; width: 8px; height: 9px; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 2px 2px; }
.bin-icon::after { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 1.5px; border-radius: 2px; background: currentColor; box-shadow: 3px -2px 0 -0.25px currentColor; }
.meeting-mode-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.mode-dot-partner { background: #609f86; }
.mode-dot-one-to-one { background: #c67b4d; }
.mode-dot-interview { background: #b18e24; }
.mode-dot-general { background: #796b9c; }
.meeting-main { min-width: 0; display: flex; align-items: center; gap: 14px; }
.meeting-main strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.meeting-category, .meeting-duration, .meeting-speakers, .meeting-date { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.status-chip { justify-self: start; padding: 5px 9px; border-radius: 99px; background: #e7e7e1; color: #5e6863; text-transform: capitalize; font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.status-complete { background: #dbece3; color: #267150; }
.status-processing { background: #f3e6ba; color: #7e6514; }
.status-error { background: #f2dcd8; color: var(--danger); }
.row-arrow { color: var(--muted); }
.filter-empty { padding: 34px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 12px; }
.empty-state { padding: 55px; text-align: center; border: 1px dashed #ced1c8; border-radius: 18px; color: var(--muted); }
.empty-state span { font-size: 25px; color: var(--green); }
.empty-state p { margin: 8px 0 0; }

.login-body { background: var(--white); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.12fr .88fr; }
.login-brand-pane { min-height: 100vh; background: var(--green-dark); color: #f9f5e9; padding: 48px 6vw; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-brand-pane::after { content: ""; width: 420px; height: 420px; position: absolute; right: -180px; bottom: -160px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 130px rgba(255,255,255,.02); }
.brand-light { color: white; }
.brand-mark-light { background: var(--paper); color: var(--green); }
.login-statement { max-width: 660px; position: relative; z-index: 1; }
.login-statement h1 { font-size: clamp(48px, 5.5vw, 82px); margin: 0 0 28px; }
.login-statement > p:last-child { max-width: 500px; color: rgba(255,255,255,.63); font-size: 17px; line-height: 1.65; }
.eyebrow.light { color: #95c7b4; }
.sound-wave { display: flex; align-items: center; gap: 8px; height: 100px; position: relative; z-index: 1; }
.sound-wave span { display: block; width: 3px; border-radius: 9px; background: rgba(185,222,207,.52); }
.login-form-pane { display: grid; place-items: center; padding: 50px 7vw; }
.login-card { width: min(100%, 420px); display: grid; }
.login-card h2 { font-size: 42px; margin-bottom: 9px; }
.login-card > div:first-child { margin-bottom: 30px; }
.login-card .muted { font-size: 14px; }
.field-label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #59645f; }
.login-card .field-label { margin: 0 0 8px; }
.text-input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #cfd2cb; border-radius: 9px; background: var(--white); outline: none; color: var(--ink); text-transform: none; letter-spacing: 0; }
.text-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,92,69,.1); }
.login-card > .text-input { margin-bottom: 20px; }
.password-field { position: relative; margin-bottom: 20px; }
.password-field .text-input { padding-right: 48px; }
.password-toggle { width: 40px; height: 40px; padding: 0; position: absolute; top: 4px; right: 4px; border: 0; border-radius: 7px; background: transparent; color: #69746f; display: grid; place-items: center; cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { background: #edf1ec; color: var(--green); outline: 0; }
.eye-icon { width: 18px; height: 12px; border: 1.5px solid currentColor; border-radius: 70% 15%; position: relative; display: block; transform: rotate(45deg); }
.eye-icon::before { content: ""; width: 5px; height: 5px; position: absolute; top: 2px; left: 5px; border-radius: 50%; background: currentColor; }
.password-toggle[aria-pressed="true"] .eye-icon::after { content: ""; width: 22px; height: 1.5px; position: absolute; top: 5px; left: -3px; border-radius: 2px; background: currentColor; box-shadow: 0 0 0 2px var(--white); }
@keyframes login-autofill { from { opacity: .99; } to { opacity: 1; } }
.login-card input:-webkit-autofill { animation: login-autofill .01s both; }
.button { border: 0; border-radius: 9px; padding: 12px 18px; font-weight: 750; font-size: 13px; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: 12px; transition: background .2s, transform .2s, opacity .2s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .42; cursor: not-allowed; }
.button-primary { background: var(--green); color: white; }
.button-primary:hover:not(:disabled) { background: var(--green-dark); }
.button-secondary { background: var(--white); border: 1px solid #cfd2cb; color: var(--ink); }
.button-large { min-height: 51px; margin-top: 7px; }
.button-full { width: 100%; }
.alert { border-radius: 9px; padding: 12px 14px; font-size: 13px; margin-bottom: 19px; }
.alert-error { background: #f7e7e4; color: var(--danger); border: 1px solid #eecfc9; }
.alert-success { background: #e3f0e9; color: #246c4c; border: 1px solid #c9e3d7; }

.note-navigation { display: flex; align-items: center; gap: 8px; }
.note-navigation form { margin: 0; }
.new-note-button { min-height: 32px; padding: 0 11px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: white; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11px; font-weight: 750; cursor: pointer; }
.new-note-button:hover { background: var(--green-dark); border-color: var(--green-dark); color: white; }
.page-heading { margin: 55px 0 45px; }
.settings-page { max-width: 1050px; }
.settings-form { border-top: 0; }
.settings-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.settings-section h2 { margin: 5px 0 10px; }
.settings-section p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.settings-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.integration-badge { display: inline-block; padding: 5px 8px; border-radius: 5px; background: var(--yellow); text-transform: uppercase; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.form-actions { display: flex; justify-content: flex-end; padding-top: 28px; }
.settings-form-actions { padding: 0 0 22px; border-bottom: 1px solid var(--line); }

.workspace { width: 100%; height: 100%; max-width: 1540px; margin: 0 auto; }
.workspace-mode { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.workspace-grid { height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(300px, 3fr) minmax(0, 7fr); }
.capture-panel { min-height: 0; overflow-y: auto; background: #e9e8e1; border-right: 1px solid var(--line); padding: 24px clamp(20px, 2.3vw, 36px) 32px; }
.capture-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.capture-header .eyebrow { margin: 0; }
.capture-header > p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.capture-methods { display: grid; gap: 11px; }
.capture-methods.capture-locked { opacity: .48; }
.capture-methods.capture-locked .capture-method { background: rgba(255,255,255,.18); }
.capture-methods.capture-locked .record-button, .capture-methods.capture-locked .drop-zone { cursor: not-allowed; pointer-events: none; }
.capture-method { padding: 10px; border: 1px solid #d2d3cc; border-radius: 14px; background: rgba(255,255,255,.32); }
.capture-method-label { display: block; margin: 0 2px 8px; color: #707975; text-transform: uppercase; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.recorder-card { min-height: 128px; padding: 13px 22px 26px; background: var(--green-dark); color: white; border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.recorder-card::before { content: ""; position: absolute; inset: -40% -20%; background: radial-gradient(circle, rgba(185,222,207,.11), transparent 50%); }
.recorder-orbit { width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1; }
.record-button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--peach); cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(240,185,148,.2); transition: transform .2s; }
.record-button:hover { transform: scale(1.04); }
.record-button span { width: 12px; height: 12px; border-radius: 50%; background: #853f2d; }
.recording .record-button { animation: pulse 1.6s infinite; }
.recording .record-button span { border-radius: 3px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240,185,148,.35); } 70% { box-shadow: 0 0 0 18px rgba(240,185,148,0); } 100% { box-shadow: 0 0 0 0 rgba(240,185,148,0); } }
.recorder-card strong { position: relative; z-index: 1; margin-top: 8px; font-size: 12px; }
.recorder-card time { position: relative; z-index: 1; margin-top: 2px; color: rgba(255,255,255,.57); font-variant-numeric: tabular-nums; font-size: 10px; }
#visualizer { width: calc(100% - 32px); height: 25px; position: absolute; bottom: 4px; opacity: .48; }
.drop-zone { min-height: 70px; border: 1px dashed #bfc4bc; border-radius: 10px; background: rgba(255,255,255,.52); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: border-color .2s, background .2s; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--green); background: rgba(255,255,255,.7); }
.drop-icon { font-size: 16px; color: var(--green); margin-bottom: 3px; }
.drop-zone strong { font-size: 12px; }
.drop-zone small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.transcribe-section { margin-top: 17px; padding-top: 15px; border-top: 1px solid #cfd1ca; }
.audio-ready { display: flex; align-items: center; justify-content: space-between; padding: 11px; margin: 0 0 10px; border-radius: 11px; background: var(--white); border: 1px solid var(--line); }
.audio-ready > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.audio-ready > div > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.audio-ready strong { max-width: 250px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.audio-ready small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.audio-file-icon { width: 31px; height: 31px; border-radius: 8px; background: #dcebe4; color: var(--green); display: grid; place-items: center; }
.icon-button { border: 0; background: none; color: #76807b; cursor: pointer; font-size: 19px; }
.audio-playback-row { display: flex; align-items: center; gap: 7px; margin: 10px 0; }
.audio-player { display: block; min-width: 0; flex: 1; height: 34px; margin: 0; }
.audio-download-button { width: 34px; height: 34px; flex: none; border: 1px solid #cfd4ce; border-radius: 50%; background: var(--white); color: var(--green); display: grid; place-items: center; }
.audio-download-button:hover, .audio-download-button:focus-visible { border-color: var(--green); background: #e7f0eb; outline: 0; }
.download-icon { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.progress-card { padding: 15px; margin-top: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 11px; }
.progress-copy { display: flex; justify-content: space-between; font-size: 11px; }
.progress-copy span { font-variant-numeric: tabular-nums; color: var(--green); }
.progress-track { height: 5px; margin: 11px 0 9px; border-radius: 99px; background: #e4e6e0; overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .5s ease; }
.progress-card small { color: var(--muted); font-size: 9px; }
.capture-result { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 11px; border: 1px solid #c8e0d3; border-radius: 10px; background: #e6f1eb; color: #246c4c; }
.capture-result > span { width: 25px; height: 25px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #cde4d8; font-size: 12px; font-weight: 800; }
.capture-result > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.capture-result strong { font-size: 10px; }
.capture-result small { color: #527164; font-size: 9px; }
.capture-result-error { border-color: #e8cbc5; background: #f4e5e2; color: var(--danger); }
.capture-result-error > span { background: #ead0ca; }
.capture-result-error small { color: #805c54; }

.notes-panel { min-width: 0; min-height: 0; overflow: hidden; background: var(--white); padding: 24px clamp(28px, 3.5vw, 54px) 28px; display: flex; flex-direction: column; }
.notes-header { padding-bottom: 16px; }
.notes-header, .meeting-details, .tabs { flex: none; }
.notes-title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 18px; }
.notes-title-actions { display: flex; align-items: center; gap: 6px; }
.title-input { width: 100%; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: 500 clamp(29px, 3vw, 40px)/1.05 Georgia, serif; letter-spacing: -.035em; }
.title-input::placeholder { color: var(--ink); opacity: 1; }
.title-input:focus { box-shadow: inset 0 -1px var(--green); }
.save-indicator { min-width: 76px; margin-top: 7px; padding: 5px 8px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #68736e; background: #f0f0eb; font-size: 9px; font-weight: 750; white-space: nowrap; }
.save-indicator-dot { width: 6px; height: 6px; border-radius: 50%; background: #87918c; }
.save-indicator.is-saving .save-indicator-dot { background: #b48d28; animation: save-pulse 1s infinite; }
.save-indicator.is-saved .save-indicator-dot { background: #31815e; }
.save-indicator.is-dirty .save-indicator-dot { background: #9a7a2a; }
.save-indicator.is-error { color: var(--danger); background: #f4e5e2; }
.save-indicator.is-error .save-indicator-dot { background: var(--danger); }
.delete-current-note { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #75807a; display: grid; place-items: center; cursor: pointer; }
.delete-current-note:hover, .delete-current-note:focus-visible { background: #f3e1de; color: var(--danger); outline: 0; }
.delete-current-note:disabled { opacity: .4; cursor: wait; }
@keyframes save-pulse { 50% { opacity: .32; } }
.notes-meta { display: flex; gap: 8px; margin-top: 6px; color: var(--muted); text-transform: uppercase; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.meeting-details { display: flex; flex-wrap: wrap; gap: 10px; padding: 11px 0 15px; border-top: 1px solid #e5e5df; }
.speaker-name-fields { display: contents; }
.speaker-count-field { max-width: 82px; }
.compact-field { flex: 1; min-width: 140px; color: #707a75; text-transform: uppercase; letter-spacing: .08em; font-size: 8px; font-weight: 750; }
.compact-field input { width: 100%; display: block; border: 0; border-bottom: 1px solid #dddeda; background: transparent; outline: 0; padding: 7px 0; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 12px; }
.compact-field input:focus { border-color: var(--green); }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: none; padding: 10px 0; color: #77807c; font-size: 11px; font-weight: 750; cursor: pointer; position: relative; }
.tab:focus { outline: 0; }
.tab:focus-visible { border-radius: 5px; background: #edf3ef; color: var(--green); box-shadow: 0 0 0 3px #edf3ef; }
.tab.active { color: var(--ink); }
.tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--green); }
.spark { color: #b18323; }
.tab-panel { display: none; padding-top: 20px; }
.tab-panel.active { min-height: 0; flex: 1; display: block; overflow-y: auto; }
#summary-panel.active { display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr); gap: 7px; overflow: hidden; }
.tab-panel[data-panel="notes"].active { display: flex; flex-direction: column; overflow: hidden; }
.panel-empty { min-height: 235px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--muted); }
.panel-empty h2 { color: var(--ink); margin: 13px 0 8px; font-size: 25px; }
.panel-empty p { max-width: 340px; font-size: 12px; line-height: 1.55; }
.empty-glyph { font-size: 38px; color: #8aac9d; }
.transcript { display: grid; gap: 16px; }
.transcript-segment { display: grid; grid-template-columns: 31px 1fr; gap: 11px; }
.speaker-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-size: 11px; font-weight: 800; }
.speaker-tone-1 .speaker-avatar { background: #dcebe4; color: #176047; }
.speaker-tone-2 .speaker-avatar { background: #f2e4d9; color: #8e5132; }
.speaker-tone-3 .speaker-avatar { background: #e7e1f0; color: #665584; }
.speaker-tone-4 .speaker-avatar { background: #f2e9c8; color: #816817; }
.speaker-tone-5 .speaker-avatar { background: #dfe9ef; color: #3d687e; }
.speaker-tone-6 .speaker-avatar { background: #f0dfe4; color: #855064; }
.transcript-speaker-line { min-height: 18px; display: flex; align-items: baseline; gap: 9px; }
.transcript-segment strong { font-size: 11px; }
.segment-timing { color: #89928e; font-size: 9px; font-variant-numeric: tabular-nums; }
.transcript-segment p { margin: 3px 0 0; color: #48534e; font-size: 13px; line-height: 1.5; }
.summary-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 14px; }
.summary-toolbar .eyebrow { margin: 0; }
.instruction-input, .summary-editor, .notes-editor { width: 100%; border: 1px solid #d6d8d1; border-radius: 10px; background: #fbfaf6; outline: 0; resize: vertical; color: var(--ink); line-height: 1.6; }
.instruction-input:focus, .summary-editor:focus, .notes-editor:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,92,69,.08); }
.notes-editor:focus { box-shadow: none; }
.instruction-input { min-height: 58px; margin: 7px 0 12px; padding: 10px; font-size: 12px; }
#summary-panel.active .summary-toolbar, #summary-panel.active .instruction-input { margin: 0; }
.editor-toolbar { min-height: 37px; padding: 0 4px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; font-weight: 750; letter-spacing: .08em; }
.editor-actions { display: flex; align-items: center; gap: 3px; }
.editor-action-divider { width: 1px; height: 18px; margin: 0 3px; background: var(--line); }
.text-button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 7px 8px; font-size: 10px; }
.text-button:focus { outline: 0; }
.text-button:focus-visible { border-radius: 5px; background: #e7efea; color: var(--green); }
.text-button.active { color: var(--green); }
.editor-tool { height: 30px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: 10px; font-weight: 700; cursor: pointer; }
.editor-tool:focus { outline: 0; }
.editor-tool:hover, .editor-tool:focus-visible { color: var(--green); box-shadow: inset 0 -2px var(--green); }
.editor-tool.active { background: #e8f0eb; color: var(--green); }
.editor-tool-icon, .clipboard-icon { width: 15px; height: 15px; flex: none; display: grid; place-items: center; font-size: 15px; line-height: 1; }
.preview-icon { border: 1.5px solid currentColor; border-radius: 70% 15%; position: relative; transform: rotate(45deg) scale(.78); }
.preview-icon::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.copy-summary.is-copied { background: #dcece3; color: #267150; }
.clipboard-icon { position: relative; transform: scale(.82); }
.clipboard-icon::before { content: ""; width: 9px; height: 11px; position: absolute; left: 3px; top: 2px; border: 1.5px solid currentColor; border-radius: 2px; }
.clipboard-icon::after { content: ""; width: 5px; height: 3px; position: absolute; left: 5px; top: 0; border: 1.5px solid currentColor; border-radius: 2px; background: var(--white); }
.summary-editor { width: 100%; height: 100%; min-height: 0; margin: 0; border: 1px solid #d2dfd7; border-radius: 10px; background: #f0f5f2; padding: 16px; resize: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.summary-editor:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,92,69,.08); }
.markdown-preview { height: 100%; min-height: 0; margin: 0; padding: 16px; overflow-y: auto; border: 1px solid #d2dfd7; border-radius: 10px; background: #f0f5f2; color: #35413c; font-size: 13px; line-height: 1.65; }
.markdown-preview h1 { font-size: 29px; }
.markdown-preview h2 { font-size: 22px; margin-top: 25px; }
.markdown-preview h3 { font: 700 15px/1.3 inherit; margin-top: 21px; }
.markdown-preview a { color: var(--green); text-decoration: underline; }
body.summary-focus { overflow: hidden; }
body.summary-focus #summary-panel { position: fixed; inset: 58px 0 0; z-index: 35; display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr); overflow: hidden; padding: 22px clamp(24px, 6vw, 90px); background: var(--white); }
.notes-intro .eyebrow { margin-bottom: 7px; }
.notes-intro h2 { margin-bottom: 6px; font-size: 26px; }
.notes-intro > p:last-child { color: var(--muted); font-size: 12px; }
.notes-editor { min-height: 0; flex: 1; margin: 8px 0 0; padding: 14px; resize: none; font-size: 13px; }
.trello-callout { display: flex; gap: 13px; margin: 0 0 16px; padding: 14px; background: #f1ecdc; border-radius: 10px; }
.trello-callout > span { color: #8c6d17; font-size: 22px; }
.trello-callout strong { font-size: 11px; }
.trello-callout p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.hidden { display: none !important; }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: grid; gap: 9px; }
.toast { max-width: 340px; padding: 12px 15px; background: var(--ink); color: white; border-radius: 9px; box-shadow: var(--shadow); font-size: 12px; animation: toast-in .25s ease; }
.toast.error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1040px) {
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .library-toolbar { grid-template-columns: minmax(190px, 1fr) 150px 135px auto; }
  .meeting-columns, .meeting-row-link { grid-template-columns: minmax(180px, 1fr) minmax(105px, .65fr) 72px minmax(155px, .85fr) 82px 20px; gap: 13px; }
  .meeting-columns > span:nth-child(4), .meeting-speakers { display: none; }
  .workspace-grid { grid-template-columns: minmax(300px, 3fr) minmax(0, 7fr); }
  .capture-panel { padding: 24px 26px 32px; }
  .notes-panel { padding: 27px 30px 50px; }
}

@media (max-width: 760px) {
  .workspace-body { height: auto; overflow: auto; }
  .workspace-body main { height: auto; overflow: visible; }
  .topbar { grid-template-columns: 1fr auto; padding: 0 20px; }
  .topbar-left { gap: 13px; }
  .new-note-form { display: none; }
  .topbar-center { display: none; }
  .topbar-actions { gap: 6px; }
  .page-shell { padding: 45px 20px 75px; }
  .hero-row { align-items: flex-start; flex-direction: column; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 210px; aspect-ratio: auto; }
  .library-toolbar { grid-template-columns: 1fr 1fr; }
  .library-search, .delete-selected { grid-column: 1 / -1; }
  .meeting-list-header { display: none; }
  .meeting-row { grid-template-columns: 24px minmax(0, 1fr) 30px; gap: 9px; min-height: 65px; }
  .meeting-row-link { grid-template-columns: minmax(0, 1fr) auto 20px; gap: 12px; min-height: 65px; }
  .meeting-category, .meeting-duration, .meeting-speakers, .meeting-date { display: none; }
  .login-shell { grid-template-columns: 1fr; }
  .login-brand-pane { min-height: 43vh; padding: 30px 28px; }
  .login-statement h1 { font-size: 42px; margin-top: 42px; }
  .login-statement > p:last-child, .sound-wave { display: none; }
  .login-form-pane { padding: 50px 28px; }
  .settings-section { grid-template-columns: 1fr; gap: 18px; }
  .settings-fields { grid-template-columns: 1fr; }
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-grid { height: auto; min-height: calc(100vh - 58px); }
  .capture-panel { overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); padding: 27px 20px 35px; }
  .notes-panel { overflow: visible; padding: 30px 20px 50px; display: block; }
  .tab-panel.active { overflow: visible; }
  #summary-panel.active { display: block; }
  .summary-editor, .markdown-preview { height: auto; min-height: 320px; margin-top: 10px; }
  .notes-editor { min-height: 330px; resize: vertical; }
  .editor-toolbar { align-items: flex-start; gap: 8px; }
  .editor-actions { flex-wrap: wrap; justify-content: flex-end; }
  .summary-toolbar { align-items: flex-start; }
}
