/* Notes Metric for the browser. Same tokens as the iPhone app; system fonts only, nothing external. */
:root {
  --navy: #060F24; --fuchsia: #FF00B8; --recording: #DB2938;
  --bg: #F2F2F7; --surface: #FFFFFF; --raised: #F2F2F7; --text: #0B0B0F; --muted: #6E6E76; --line: rgba(0,0,0,.08);
  --radius: 22px; --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #000; --surface: #1C1C1E; --raised: #2C2C2E; --text: #F5F5F7; --muted: #9A9AA3; --line: rgba(255,255,255,.1); }
}
:root[data-theme="dark"] { --bg: #000; --surface: #1C1C1E; --raised: #2C2C2E; --text: #F5F5F7; --muted: #9A9AA3; --line: rgba(255,255,255,.1); }
:root[data-theme="light"] { --bg: #F2F2F7; --surface: #FFFFFF; --raised: #F2F2F7; --text: #0B0B0F; --muted: #6E6E76; --line: rgba(0,0,0,.08); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
button, input { font: inherit; color: inherit; }
a { color: var(--fuchsia); text-decoration: none; }
.app { display: grid; grid-template-columns: 300px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #F5F5F7; border-right: 1px solid rgba(255,255,255,.06); padding: 28px 18px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.sidebar .muted, .sidebar .brand-sub, .sidebar .eyebrow { color: rgba(245,245,247,.62); }
.sidebar a { color: inherit; }
.brand { display: flex; align-items: center; padding: 6px 6px 0; text-decoration: none; }
.brand-wordmark { height: 30px; width: auto; display: block; }
.brand-sub { padding: 0 6px; font-size: 13px; margin-top: -12px; }
.brand-name { font-weight: 700; font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nav a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; color: #F5F5F7; font-weight: 500; }
.nav a.on { background: rgba(255,0,184,.18); font-weight: 600; }
.nav .ico { width: 22px; text-align: center; color: rgba(245,245,247,.55); }
.nav a.on .ico { color: var(--fuchsia); }
.side-section { display: flex; flex-direction: column; gap: 6px; padding: 0 6px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }
.side-action { background: none; border: 0; text-align: left; padding: 8px 6px; border-radius: 10px; cursor: pointer; color: #F5F5F7; }
.side-action:hover { background: rgba(255,255,255,.08); }
.side-foot { margin-top: auto; padding: 0 6px; font-size: 13px; }
.main { padding: var(--gutter); max-width: 760px; width: 100%; margin: 0 auto; padding-bottom: 120px; }
.bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.bar h2 { margin: 0; font-size: 24px; }
.bar-brand { display: flex; align-items: center; gap: 12px; }
.bar-brand img { border-radius: 11px; }
.bar-title { font-weight: 700; font-size: 20px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); cursor: pointer; font-size: 18px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.hero h1 { font-size: 34px; line-height: 1.12; margin: 10px 0 12px; letter-spacing: -.01em; }
.lead { color: var(--muted); margin: 0 0 18px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.eyebrow.fuchsia { color: var(--fuchsia); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.btn { border: 0; background: var(--raised); color: var(--text); padding: 10px 16px; border-radius: 14px; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--fuchsia); color: #fff; }
.btn.danger { background: rgba(219,41,56,.12); color: var(--recording); }
.btn.quiet { background: none; color: var(--muted); }
.btn.big { padding: 14px 22px; font-size: 17px; border-radius: 18px; }
.btn:disabled { opacity: .5; cursor: default; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.tile { text-align: left; background: var(--surface); border: 0; border-radius: 20px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.tile b { margin-top: 8px; }
.tile span:last-child { color: var(--muted); font-size: 13px; min-height: 2.6em; }
.tile-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,0,184,.10); color: var(--fuchsia); font-size: 18px; }
.tile-ico.orange { background: rgba(255,149,0,.12); color: #E58A00; }
.tile-ico.indigo { background: rgba(88,86,214,.12); color: #5856D6; }
.tile-ico.teal { background: rgba(48,176,199,.12); color: #1E9FB4; }
.slots { width: 100%; display: flex; align-items: center; gap: 14px; background: none; border: 0; text-align: left; padding: 6px 4px; margin-bottom: 18px; cursor: pointer; }
.slot-meter { display: inline-flex; gap: 4px; }
.slot-meter i { width: 8px; height: 26px; border-radius: 3px; background: rgba(120,120,128,.2); display: block; }
.slot-meter i.on { background: var(--fuchsia); }
.chev { margin-left: auto; color: var(--muted); }
.row-head { display: flex; align-items: baseline; justify-content: space-between; }
.list { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.meeting { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 20px; padding: 16px; border: 0; text-align: left; width: 100%; cursor: pointer; color: var(--text); }
.meeting .glyph { width: 44px; height: 48px; border-radius: 14px; background: rgba(255,0,184,.09); color: var(--fuchsia); display: grid; place-items: center; font-size: 18px; flex: none; }
.meeting b { display: block; }
.meeting .meta { color: var(--muted); font-size: 13px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.search input { flex: 1; border: 0; background: none; outline: none; }
.segmented { display: flex; background: var(--raised); border-radius: 12px; padding: 3px; margin-bottom: 16px; }
.segmented button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 10px; cursor: pointer; }
.segmented button.on { background: var(--surface); font-weight: 600; }
.slot-boxes { display: flex; gap: 10px; margin: 14px 0; }
.slot-boxes i { flex: 1; height: 50px; border-radius: 12px; background: rgba(255,0,184,.08); display: grid; place-items: center; color: var(--fuchsia); font-style: normal; }
.slot-boxes i.on { background: var(--fuchsia); color: #fff; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv:last-of-type { border-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-size: 14px; }
.field input, .field select { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); color: var(--text); }
.check { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
h3 { margin: 0 0 6px; }
.detail-head h1 { font-size: 28px; line-height: 1.15; margin: 8px 0; letter-spacing: -.01em; }
.hint { color: var(--fuchsia); font-size: 13px; font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; }
audio { width: 100%; margin: 8px 0; }
.points { list-style: none; padding: 0; margin: 0; }
.points li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.points li:last-child { border-bottom: 0; }
.points .dot { color: var(--fuchsia); font-size: 8px; line-height: 2.6; }
.chip { font-size: 12px; font-weight: 600; color: var(--fuchsia); background: rgba(255,0,184,.10); border: 0; border-radius: 999px; padding: 3px 9px; cursor: pointer; white-space: nowrap; }
.tag { font-size: 12px; color: var(--muted); background: var(--raised); border-radius: 999px; padding: 3px 9px; }
.action-row { display: flex; gap: 12px; align-items: flex-start; }
.tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--muted); background: none; cursor: pointer; flex: none; margin-top: 2px; }
.tick.on { background: var(--fuchsia); border-color: var(--fuchsia); }
.done { text-decoration: line-through; color: var(--muted); }
textarea { width: 100%; min-height: 140px; border-radius: 14px; border: 1px solid var(--line); background: var(--raised); padding: 12px; font: inherit; resize: vertical; }
.segs { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow: auto; }
.seg { display: flex; gap: 10px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--text); padding: 4px 0; }
.seg .t { color: var(--fuchsia); font-variant-numeric: tabular-nums; font-size: 13px; width: 52px; flex: none; }
.status { display: flex; align-items: center; gap: 12px; }
.progress { flex: 1; height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--fuchsia); width: 0; transition: width .3s; }
.recbar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(720px, calc(100% - 24px)); background: var(--surface); border: 1px solid rgba(219,41,56,.3); border-radius: 22px; padding: 10px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.18); z-index: 20; }
.recbar[hidden] { display: none; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--recording); animation: pulse .9s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: .35; } }
.levels { display: flex; gap: 3px; align-items: center; height: 18px; }
.levels i { width: 4px; border-radius: 2px; background: var(--fuchsia); min-height: 3px; }
.backdrop { display: none; }
.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 14px; z-index: 30; max-width: min(600px, 90%); }
.warn { background: rgba(255,149,0,.12); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 25; left: 0; top: 0; width: 300px; transform: translateX(-100%); transition: transform .3s; }
  .sidebar.open { transform: none; }
  .backdrop.on { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 24; }
  .menu-btn { display: grid; place-items: center; }
  .hero h1 { font-size: 30px; }
}

.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.tags .tag.on { background: var(--fuchsia); color: #fff; }
.tags .tag { cursor: pointer; border: 0; }
.speaker { color: var(--muted); font-weight: 600; font-size: 12px; display: block; }
@media print {
  .sidebar, .backdrop, .recbar, .bar, .btn, .chip, audio, .no-print { display: none !important; }
  .app { display: block; } .main { max-width: none; padding: 0; } .card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  body { background: #fff; color: #000; }
}
