:root {
  color-scheme: light;
  --milk: #fff9f6;
  --rose: #994461;
  --rose-hover: #873753;
  --ink: #41232f;
  --muted: #775763;
  --line: #ead6dd;
  --blush: #f4dce3;
  --panel: #fff9f8e6;
  --shell-top: #f9eaed;
  --nav-surface: #fff9f7;
  --green: #386857;
  --green-wash: #e8f0e9;
  --amber: #865a2f;
  --amber-wash: #f7ebdc;
  --blue: #4c627c;
  --blue-wash: #eaf0f6;
  --danger: #9b4150;
  --danger-wash: #fae6e8;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  --bottom: env(safe-area-inset-bottom, 0px);
  --top: env(safe-area-inset-top, 0px);
  --viewport-height:100vh;
  --app-height:var(--keyboard-height,var(--viewport-height));
  --usable-bottom:var(--bottom);
}

@supports (height:100dvh) { :root { --viewport-height:100dvh; } }
:root[data-keyboard-open] { --usable-bottom:0px; }
html[data-ios-standalone] { --top: max(8px,env(safe-area-inset-top, 0px)); }
*, *::before, *::after { box-sizing:border-box; }
[hidden] { display:none !important; }
html:not([data-shell-ready]) main:has(.screen:target) .screen:not(:target) { display:none; }
html:not([data-shell-ready]) .screen:target { display:block !important; }
html, body { height:100%; overflow:hidden; overscroll-behavior:none; }
html { -webkit-text-size-adjust:100%; background-color:var(--shell-top); }
body {
  position:fixed; inset:0; margin:0; color:var(--ink); background:#f1e3e8; font:15px/1.45 var(--ui);
  -webkit-user-select:none; user-select:none;
  -webkit-touch-callout:none; -webkit-tap-highlight-color:transparent;
}
body * { -webkit-user-select:inherit; user-select:inherit; }
textarea, input:not([type]), input:is([type=text],[type=search],[type=number],[type=tel],[type=email],[type=url],[type=password]),
[contenteditable]:not([contenteditable=false]) {
  /* Keep iOS from zooming on focus while allowing system zoom and larger editor fonts. */
  font-size:max(16px,var(--editor-font-size,1em)) !important;
  -webkit-user-select:text; user-select:text; -webkit-touch-callout:default;
}
[data-copyable] {
  -webkit-user-select:text; user-select:text; -webkit-touch-callout:default;
}
@media (max-width:480px) {
  body { background:linear-gradient(var(--shell-top),var(--nav-surface)) var(--shell-top); }
}
button, input { font:inherit; }
button { color:inherit; cursor:pointer; }
button:disabled { opacity:.48; cursor:default; }
button:enabled:active, summary:active { filter:brightness(.96); }
:is(button, input, textarea, a, summary):focus-visible { outline:2px solid var(--rose); outline-offset:3px; }
#main:focus { outline:2px solid var(--rose); outline-offset:-2px; }
html[data-pointer-focus] :is(#main, dialog, button, a, summary, input[type=checkbox], input[type=range]):focus { outline:none; }
h1, h2, h3, p { margin:0; }
.num { font-variant-numeric:tabular-nums lining-nums; font-feature-settings:"tnum","lnum"; letter-spacing:-.025em; }
[data-icon] { display:inline-grid; place-items:center; flex:none; vertical-align:middle; }
[data-icon] > svg { width:1.2em; height:1.2em; display:block; }

.phone-shell {
  --content-left:max(19px,env(safe-area-inset-left,0px));
  --content-right:max(19px,env(safe-area-inset-right,0px));
  margin:auto; width:min(100%,480px);
  height:var(--app-height);
  position:relative; top:var(--keyboard-top,0px);
  display:grid; grid-template-rows:auto auto minmax(0,1fr) auto;
  overflow:hidden;
  background:linear-gradient(var(--shell-top),#f9eaed00 max(105px,calc(var(--top) + 54px))),
             radial-gradient(ellipse at 93% 2%, #f0d9e1 0%, transparent 43%),
             linear-gradient(145deg,#fffbf8 0%,#fcf0f2 50%,#f8e9ee 100%);
  padding-top:var(--top);
}
.masthead, #mobile-update { margin-inline:var(--content-left) var(--content-right); }
.masthead { grid-row:1; min-height:50px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #b273882d; }
#mobile-update { grid-row:2; }
#main { grid-row:3; min-width:0; min-height:0; overflow-x:hidden; overflow-y:auto; overscroll-behavior:none; padding-inline:var(--content-left) var(--content-right); scroll-padding-block:8px; }
.masthead img { display:block; width:124px; height:auto; }
.connection-tag, .live-tag, .status-pill { display:inline-flex; align-items:center; justify-content:center; gap:7px; border-radius:999px; font-size:.77rem; font-weight:650; white-space:nowrap; }
.connection-tag { border:1px solid #fff9f5cf; background:#fff9f5b9; min-height:36px; padding:0 11px; color:#475f53; }
.connection-tag b { font-weight:650; }
.connection-tag span, .live-tag i { width:6px; height:6px; border-radius:50%; background:#6e9b84; flex:none; }
.connection-tag[data-status=offline] { color:var(--amber); }
.connection-tag[data-status=offline] span { background:#b48555; }
.page-title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:8px 0 5px; }
.page-title h1 { font:600 clamp(1.21rem,5.2vw,1.46rem)/1.19 var(--serif); letter-spacing:.025em; color:#4d2936; }
.page-title h1:focus { outline:0; }
.live-tag { padding:4px 10px; background:#f3f0e7; color:#426452; }
.live-tag[data-status=offline] { color:var(--muted); background:#f0e1e7; }
.live-tag[data-status=offline] i { background:#ab8997; }
.panel { border:1px solid #fffafa; border-radius:22px; background:var(--panel); box-shadow:0 3px 13px #8545600a; }
.timer { position:relative; isolation:isolate; overflow:hidden; padding:11px 13px 11px; background:linear-gradient(155deg,#fffcf8 8%,#fff5f5 54%,#fae8ef); }
.timer::before { content:""; position:absolute; left:-17%; right:-17%; height:125px; bottom:-88px; z-index:-1; border-radius:49% 49% 0 0; background:#eed0dc6b; }
.timer-meta { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.timer-meta h2 { display:flex; align-items:center; gap:7px; color:#773c53; font-size:.875rem; font-weight:650; }
.timer-meta h2 [data-icon] { color:var(--rose); }
.timer-meta > span { color:#80445b; font-size:.76rem; font-weight:600; padding:3px 9px; border-radius:999px; background:#f3dfe8; }
.timer-value { text-align:center; font-weight:550; font-size:clamp(2.65rem,13.8vw,4.15rem); line-height:1.15; margin:7px 0 11px; color:#602c43; letter-spacing:-.055em; }
.timer-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.timer-actions .btn { min-height:44px; font-size:.83rem; font-weight:600; border-radius:10px; padding:6px 8px; }
.timer-actions .btn.primary { background:#9e566f; box-shadow:none; }
.btn { border:1px solid transparent; padding:9px 10px; border-radius:12px; min-height:44px; display:inline-flex; justify-content:center; align-items:center; gap:7px; font-size:.875rem; font-weight:650; line-height:1.25; }
.btn.primary { background:var(--rose); color:#fffaf9; box-shadow:inset 0 1px 0 #cd7c95; }
.btn.secondary { background:#fff9f8dc; color:#80435a; border-color:#e7c8d5; }
.btn:active:not(:disabled) { transform:translateY(1px); }
.btn.wide { width:100%; margin-top:10px; }
.offline-notice { gap:8px; align-items:center; display:flex; color:#734528; background:#fff3e3; border:1px solid #ebd8c1; border-radius:12px; padding:9px 11px; margin-bottom:10px; font-size:.8125rem; }

.metrics { display:grid; grid-template-columns:.9fr 1.2fr 1fr; margin-top:8px; padding:9px 3px; border-radius:18px; text-align:center; background:#fff9f8c7; }
.metrics div + div { border-left:1px solid var(--line); }
.metrics span, .usage span { display:block; color:var(--muted); font-size:.75rem; }
.metrics strong { display:block; font-size:clamp(.96rem,5vw,1.24rem); font-weight:650; margin-top:2px; white-space:nowrap; }
.metrics .money { color:#873e58; }
.voice { margin-top:10px; padding:11px 12px 2px; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.section-head h2 { display:flex; align-items:center; gap:8px; font-size:1rem; font-weight:680; }
.heading-icon { color:var(--rose); }
.status-pill { color:var(--muted); background:#f1e4e9; min-height:24px; padding:2px 8px; }
.status-pill.good, .good.status-pill { color:var(--green); background:var(--green-wash); }
.status-pill.wait, .wait.status-pill { color:var(--amber); background:var(--amber-wash); }
.status-pill.alert, .alert.status-pill { color:var(--danger); background:var(--danger-wash); }
.now-playing { margin:8px 0 5px; display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:9px; align-items:center; }
.play-illustration { display:grid; place-items:center; width:36px; height:36px; color:var(--rose); background:#f6e1e9; border-radius:10px; font-size:1.13rem; }
.play-label { min-width:0; }
.play-label span { display:block; color:var(--muted); font-size:.72rem; }
.play-label strong { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:.86rem; font-weight:650; }
#playing-time { font-size:.76rem; color:var(--muted); white-space:nowrap; }
.play-progress { height:3px; overflow:hidden; background:#f0dce5; border-radius:3px; }
.play-progress span { display:block; height:100%; width:38%; background:#b16883; border-radius:3px; }
.voice-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin-top:5px; }
.voice-actions button { background:none; border:0; color:#803c57; font-weight:650; font-size:.79rem; min-height:44px; padding:7px 2px; display:flex; justify-content:center; align-items:center; gap:6px; border-radius:10px; }
.voice-actions button:active:not(:disabled) { background:#f0d4e0; }
.latest-heading { margin:10px 0 2px; }
.text-btn { border:0; padding:5px 0 5px 8px; background:none; color:var(--rose); display:flex; align-items:center; gap:2px; min-height:35px; font-size:.79rem; font-weight:650; }
.latest-item { padding:3px 10px; border:1px solid #fff8f7; border-radius:14px; background:#fff8f6bf; }

.tabbar {
  grid-row:4; position:relative; z-index:5; min-width:0;
  padding:6px max(12px,env(safe-area-inset-right,0px)) calc(7px + var(--usable-bottom)) max(12px,env(safe-area-inset-left,0px));
  display:grid; grid-template-columns:repeat(4,1fr); gap:4px;
  background:var(--nav-surface); box-shadow:0 -4px 19px #73425413; border-top:1px solid #eedce4;
}
html[data-ios-standalone] .tabbar {
  padding-top:2px;
  padding-bottom:max(0px,calc(var(--usable-bottom) - var(--tabbar-native-bottom,0px)));
}
.tabbar [data-page] { appearance:none; border:0; padding:0; background:none; position:relative; isolation:isolate; border-radius:12px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:3px; min-height:50px; color:#755865; font-size:.74rem; font-weight:600; }
.tabbar [data-icon] { font-size:1.04rem; }
.tabbar [aria-current=page] { color:#8e3f5d; }
.tabbar [aria-current=page]::before { content:""; position:absolute; inset:4px 10px; border-radius:11px; background:#f6e6ed; z-index:-1; }
html[data-ios-standalone] .tabbar [data-page] { min-height:44px; justify-content:flex-end; padding-bottom:1px; }
html[data-ios-standalone] .tabbar [aria-current=page]::before { inset-block:2px; }
.tabbar [data-page]:active { background:#fbf0f3; }
#mobile-update { margin-block:6px; }
#mobile-update-retry { color:var(--rose); }

.section-note { color:#765461; background:#fff7f4; padding:9px 10px; border-radius:12px; font-size:.83rem; margin-bottom:12px; }
.segments { display:flex; gap:4px; background:#f1dce5; border:1px solid #e7d0da; border-radius:13px; padding:4px; }
.segments button { border:0; display:flex; align-items:center; justify-content:center; gap:7px; color:#744557; font-size:.88rem; min-height:39px; flex:1; border-radius:9px; background:transparent; }
.segments button[aria-pressed=true] { background:#fff9f7; color:#793952; box-shadow:0 1px 3px #73395215; font-weight:650; }
#queue-count { color:var(--muted); }
.filters { display:flex; flex-wrap:wrap; gap:5px; margin:6px 0 5px; }
.filters button { padding:6px 9px; line-height:1; min-height:37px; border:1px solid transparent; background:transparent; color:#744d60; border-radius:999px; font-size:.79rem; }
.filters button[aria-pressed=true] { background:#fff9f7; border-color:#e6c9d7; color:#853953; font-weight:650; }
.event-list { padding:1px 12px; border-radius:18px; }
.event-row, .list-row { min-width:0; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:8px; align-items:center; padding:7px 0; }
.event-row + .event-row, .list-row + .list-row { border-top:1px solid #ecdce2; }
.row-icon, .event-icon { width:33px; height:33px; border-radius:9px; background:#f5e3eb; color:#994f6e; display:grid; place-items:center; }
.row-icon > svg, .event-icon > svg { width:18px; height:18px; }
.event-icon.gift { color:#9a6740; background:#f8eddf; }
.event-icon.entry { color:var(--green); background:var(--green-wash); }
.event-icon.voice { color:#655877; background:#eee8f5; }
.event-row strong, .list-row strong { display:block; font-size:.87rem; font-weight:650; overflow-wrap:anywhere; }
.event-row p, .list-row small { display:block; color:var(--muted); font-size:.84rem; margin-top:2px; overflow-wrap:anywhere; }
.event-row time, .secondary-text { color:var(--muted); font-size:.76rem; white-space:nowrap; }
.event-row time { align-self:start; margin-top:2px; max-width:85px; text-align:right; white-space:normal; font-size:.70rem; }
.latest-item .event-row { padding:7px 0; }
.list-panel { margin-top:8px; padding:8px 11px; border-radius:17px; }
.list-panel > .section-head { min-height:29px; margin-bottom:4px; }
.list-panel .list-row { min-height:44px; }
#alert-history { border-top:1px solid var(--line); margin-top:3px; }
#alert-history summary { color:var(--rose); min-height:44px; padding:11px 0; cursor:pointer; }
#alert-history summary .secondary-text { margin-inline-start:5px; }
.alert-row { align-items:start; }
.alert-row .status-pill { align-self:start; }
.alert-row .alert-ended { grid-column:2/-1; margin-top:-4px; }
.mobile-build { margin:0 0 3px 41px; }
#recover-binding { margin-bottom:6px; }
.recovery-label { display:block; margin:10px 0 4px; font-size:.86rem; }
.recovery-code { width:100%; min-height:42px; padding:8px 10px; color:var(--ink); background:var(--milk); border:1px solid var(--line); border-radius:9px; font-size:16px; }
#operation-timing { margin-top:4px; border-top:1px solid var(--line); }
#operation-timing summary { min-height:44px; color:var(--rose); padding:11px 0; cursor:pointer; }
#op-total { margin-left:5px; }
.timing-steps { margin:0; color:var(--muted); font-size:.78rem; }
.timing-steps div { display:flex; justify-content:space-between; gap:8px; padding:2px 0; }
.timing-steps dd { margin:0; text-align:right; font-variant-numeric:tabular-nums; }
.timing-note { margin-top:4px; }
.row-button { width:100%; min-height:44px; text-align:left; border:0; background:none; }
@media (hover:hover) {
  .btn.primary:hover:not(:disabled) { background:var(--rose-hover); }
  .btn.secondary:hover:not(:disabled) { background:#f9e6ed; }
  .voice-actions button:hover:not(:disabled) { background:#f8e8ee; }
  .tabbar [data-page]:hover:not([aria-current]) { background:#fbf0f3; }
  .row-button:hover { color:var(--rose); }
}
.empty { color:var(--muted); text-align:center; font-size:.85rem; padding:18px 8px; }
.monitor-summary { display:flex; align-items:center; gap:12px; padding:10px 11px; color:#3b6655; background:linear-gradient(120deg,#f7f9f0,#edf2e9); border-color:#fbfcf4; }
.monitor-summary > [data-icon] { width:39px; height:39px; border-radius:10px; font-size:1.14rem; background:#e2eee2; }
.monitor-summary h2 { font-size:1rem; }
.monitor-summary p { font-size:.80rem; margin-top:3px; color:#5e6b60; }
.monitor-summary[data-status=offline] { color:var(--amber); background:#fcf1e3; }
.monitor-summary[data-status=offline] > [data-icon] { background:#f4e4cf; }
.usage { display:grid; grid-template-columns:1fr 1fr; padding:8px 0 2px; }
.usage div + div { border-left:1px solid var(--line); padding-left:13px; }
.usage strong { display:block; font-size:1.2rem; font-weight:650; color:#70364e; }
.switch { appearance:none; width:40px; height:26px; margin:0; border:1px solid #d6b9c5; border-radius:99px; cursor:pointer; background:#ebd9e1; position:relative; }
.switch::before { content:""; position:absolute; left:3px; top:3px; width:18px; height:18px; border-radius:50%; background:white; box-shadow:0 1px 3px #6c365c26; }
.switch:checked { background:#a45470; border-color:#a45470; }
.switch:checked::before { left:17px; }

.sheet { border:1px solid #fffdfa; border-radius:23px; width:min(410px,calc(100% - 28px)); max-height:calc(var(--app-height) - 20px - var(--top) - var(--usable-bottom)); overflow-y:auto; overscroll-behavior:none; scroll-padding-block:12px; margin:auto auto calc(14px + var(--usable-bottom) + var(--keyboard-bottom,0px)); background:linear-gradient(145deg,#fffaf6,#fbedf0); color:var(--ink); padding:0; box-shadow:0 18px 55px #50293643; }
.sheet::backdrop { background:#4c243a58; }
.sheet form { padding:16px; }
.sheet header { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.sheet h2 { font:650 1.33rem/1.3 var(--serif); }
.icon-btn { display:grid; place-items:center; background:#f4e3eb; border:0; border-radius:12px; width:40px; height:40px; color:#7c4056; }
.sheet p, .sheet li { color:#6c4c5b; font-size:.895rem; }
.sheet p + p { margin-top:8px; }
.sheet ol { margin:7px 0 0; padding-left:1.3em; }
.sheet li + li { margin-top:7px; }
.sheet footer { display:flex; gap:9px; margin-top:15px; }
.sheet footer > button { flex:1; }
[data-keyboard-open] :is(#main, .sheet) { overflow-anchor:none; }
[data-keyboard-open] [data-keyboard-dock] {
  position:sticky; bottom:0; z-index:1; background:var(--milk);
}
[data-keyboard-open] :is(textarea, [contenteditable]):focus {
  max-block-size:var(--keyboard-editor-height, none); overflow-y:auto;
}
.adjust-buttons { display:grid; grid-template-columns:repeat(2,1fr); gap:7px; margin:12px 0; }
.adjust-buttons button[aria-pressed=true] { background:#f5dbe7; border-color:#c784a0; color:#71354e; }
.adjust-preview { display:flex; align-items:center; justify-content:space-between; padding:9px 10px; border-radius:9px; background:#f3e4ed; }
.adjust-preview strong { font-size:1.15rem; }
.pair-code { display:block; letter-spacing:.22em; font-size:1.32rem; margin-block:7px; color:#793952; }
.list-panel button:focus-visible { outline-offset:1px; }
.toast { position:fixed; z-index:12; bottom:calc(70px + var(--usable-bottom) + var(--keyboard-bottom,0px)); left:50%; transform:translateX(-50%); max-width:calc(100% - 34px); width:max-content; background:#642d46; color:#fffaf6; box-shadow:0 5px 14px #552d4333; border-radius:13px; padding:10px 15px; font-size:.87rem; pointer-events:none; }

@media (min-width:600px) {
  .phone-shell { box-shadow:0 0 75px #6a3b581a; }
}
@media (max-width:345px) {
  .phone-shell { --content-left:max(13px,env(safe-area-inset-left,0px)); --content-right:max(13px,env(safe-area-inset-right,0px)); }
  .voice { padding-inline:10px; }
  .voice-actions button { gap:3px; }
  .play-label strong { font-size:.79rem; }
  .filters { gap:2px; }
  .filters button { padding-inline:7px; }
}
@media (prefers-reduced-motion:no-preference) {
  .btn, .filters button, .tabbar [data-page], .voice-actions button { transition:background-color .16s, color .16s; }
  .switch::before { transition:left .14s; }
}

.tabbar { grid-template-columns:repeat(5,minmax(0,1fr)); }
.tabbar [data-page] { white-space:nowrap; }
.tabbar [aria-current=page]::before { inset-inline:4px; }

.record-title { margin:16px 0 12px; }
.record-tabs { margin-bottom:13px; }
.record-tabs button { font-size:.85rem; min-height:44px; white-space:nowrap; }
.recorder { padding:13px 15px 15px; background:linear-gradient(158deg,#fffdf9,#fff7f7 58%,#faeaf0); }
.record-meta { display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--muted); font-size:.75rem; }
.record-state { display:inline-flex; align-items:center; gap:7px; color:#754157; font-weight:650; }
.record-state i { width:7px; height:7px; border-radius:50%; background:#b58499; }
.recorder[data-phase=recording] .record-state i { background:#aa365a; box-shadow:0 0 0 3px #ac3d5b17; }
.record-time { text-align:center; font-size:clamp(2.55rem,11vw,3.15rem); line-height:1.11; font-weight:590; color:#7d3c54; margin:12px 0 8px; }
.record-wave { position:relative; height:104px; overflow:hidden; border-radius:12px; background:#f3dfe78a; }
.record-wave canvas { display:block; width:100%; height:100%; }
.record-wave input { position:absolute; inset:0; margin:0; width:100%; height:100%; opacity:0; cursor:ew-resize; }
.record-wave:focus-within { outline:2px solid var(--rose); outline-offset:2px; }
.wave-times { display:flex; justify-content:space-between; font-size:.72rem; color:#775563; margin-top:4px; }
.capture-controls { display:grid; justify-items:center; gap:5px; color:#743e55; font-size:.8rem; font-weight:650; margin-top:9px; }
#record-toggle { display:grid; place-items:center; width:61px; height:61px; color:#fffaf8; background:#974563; border:4px solid #fff8f8; box-shadow:0 0 0 1px #c38a9e; border-radius:50%; font-size:1.34rem; }
#record-toggle:active { background:#79354e; }
.recorder[data-phase=recording] #record-toggle { background:#a43d59; }
.record-edits { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; margin:12px 0 0; }
.record-edits button { display:flex; align-items:center; justify-content:center; gap:4px; padding:0 3px; min-height:44px; border:0; border-radius:10px; background:transparent; color:#744257; font-size:.78rem; font-weight:650; white-space:nowrap; }
.record-edits button:active, .record-edits .record-edit-play { background:#f2dee7; }
#record-original { width:100%; margin-top:8px; }

.record-prompt { padding:1px 3px 10px 12px; margin:0 1px 12px; border-left:2px solid #c991a6; }
.record-prompt-meta { display:flex; align-items:center; justify-content:space-between; gap:5px; color:#80475e; font-size:.76rem; font-weight:650; }
.record-prompt-meta .text-btn { min-height:32px; padding-block:0; }
.record-prompt p { overflow-wrap:anywhere; font-size:.97rem; font-weight:570; }
.record-prompt small { display:block; margin-top:4px; font-size:.75rem; color:var(--muted); }
.record-fields { display:grid; gap:8px; margin-top:11px; }
.record-fields label { display:grid; gap:4px; min-width:0; color:#71495b; font-size:.81rem; font-weight:600; }
.record-fields input, .record-fields textarea { display:block; width:100%; min-width:0; min-height:43px; padding:8px 10px; border:1px solid #dfbdca; border-radius:10px; background:#fffbfa; color:var(--ink); font:400 16px/1.45 var(--ui); }
.record-fields textarea { resize:vertical; }
.record-fields textarea:focus-visible { outline:2px solid var(--rose); outline-offset:2px; }
.record-save { display:flex; justify-content:flex-end; }
.record-save .btn { min-height:44px; padding-inline:18px; }
.record-hint, .record-preview-note { text-align:center; color:var(--muted); font-size:.75rem; margin:10px 0 0; }
.record-preview-note { margin-top:20px; }

.record-list-head { display:flex; min-height:44px; align-items:center; justify-content:space-between; gap:8px; margin:-4px 0 6px; color:#734b5c; }
.record-list-count, .record-switch { font-size:.79rem; }
.record-sync { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; column-gap:8px; margin:-2px 0 9px; padding:4px 0 4px 11px; color:#734b5c; font-size:.77rem; }
.record-sync small { margin-inline-start:8px; color:var(--muted); }
.record-sync p, .record-sync progress { grid-column:1/-1; }
.record-sync progress { width:100%; height:5px; accent-color:var(--rose); margin:5px 0; }
.record-switch { display:flex; align-items:center; gap:8px; min-height:44px; white-space:nowrap; cursor:pointer; }
.record-list { padding:0 11px; border-radius:17px; }
.record-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; padding:9px 0; }
.record-row + .record-row { border-top:1px solid var(--line); }
.record-row-main { display:grid; min-width:0; gap:3px; }
.record-row-main strong { font-size:.9rem; overflow-wrap:anywhere; }
.record-row-main p { font-size:.83rem; color:#6d4757; overflow-wrap:anywhere; }
.record-row-meta { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; font-size:.73rem; color:var(--muted); }
.record-row-meta [data-tone=good] { color:var(--green); }
.record-row-meta [data-tone=wait] { color:var(--amber); }
.record-row-meta [data-tone=error] { color:var(--danger); }
.record-row-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:3px; align-items:center; max-width:148px; }
.record-row-actions button { border:0; border-radius:9px; background:transparent; padding:0 7px; min-width:42px; min-height:44px; color:var(--rose); font-size:.79rem; font-weight:650; white-space:nowrap; }
.record-row-actions button:active { background:#f4e2ea; }
.record-row-actions button[data-record-action=script] { background:#f4e4eb; padding-inline:10px; }

@media (max-width:360px) {
  .tabbar [data-page] { font-size:.69rem; }
  .recorder { padding-inline:11px; }
  .record-row { gap:3px; }
  .record-row-actions button { padding-inline:4px; }
}
@media (prefers-reduced-motion:no-preference) {
  #record-toggle, .record-row-actions button, .record-edits button { transition:background-color .16s; }
}
