:root {
  --u-paper: #f8f6f0;
  --u-card: #fffdf7;
  --u-wash: #e8ede4;
  --u-line: #c9d0c4;
  --u-mid: #95a99c;
  --u-ink: #163833;
  --u-muted: #455e56;
  --u-accent: #275c51;
  --u-button: #275c51;
  --u-navy: #082a48;
  --u-copper: #a4542a;
  --u-warmtext: #8c481d;
  --u-alert: #9d303e;
  --u-alertfill: #993746;
  --u-alertwash: #f8e7e6;
  --u-good: #27604a;
  --u-goodfill: #33664c;
  --u-goodwash: #e6efe5;
  --u-mark: #f7e1c5;
  --u-white: #fff9ec;
  --u-focus: #ad602e;
}
@media (prefers-color-scheme:dark) {
  :root {
    --u-paper: #112421;
    --u-card: #19312c;
    --u-wash: #223d34;
    --u-line: #415951;
    --u-mid: #587366;
    --u-ink: #f1f2e4;
    --u-muted: #bed0c5;
    --u-accent: #b3dbca;
    --u-button: #345e50;
    --u-navy: #103654;
    --u-copper: #92481f;
    --u-warmtext: #efad73;
    --u-alert: #ffafb0;
    --u-alertfill: #883644;
    --u-alertwash: #462a2b;
    --u-good: #b9dfbc;
    --u-goodfill: #385e49;
    --u-goodwash: #273e32;
    --u-mark: #493a28;
    --u-white: #fff9ec;
    --u-focus: #efad73;
  }
}
:root { color: var(--u-ink); background: var(--u-paper); font: 16px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 430px; min-height: 100vh; }
main { width: 100%; height: 100vh; min-height: 540px; max-width: 640px; margin: 0 auto; padding: 22px 18px 14px; display: flex; flex-direction: column; }
.app-view { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.hidden { display: none !important; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 3px; font-size: 21px; line-height: 1.15; }
h2 { margin: 0 0 10px; font-size: 18px; }
p { color: var(--u-muted); line-height: 1.45; }
.home-header, .view-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; min-height: 58px; }
.home-header { justify-content: flex-start; }
.home-header p, .view-header p { margin: 0; font-size: 14px; }
.brand-mark, .app-mark { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--u-white); font-size: 25px; font-weight: 700; }
.brand-mark, .phone-mark { background: linear-gradient(145deg,var(--u-button),var(--u-button)); }
.brand-mark { overflow: hidden; background: transparent; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.view-heading { min-width: 0; display: flex; align-items: center; gap: 10px; }
.view-heading > div:last-child { min-width: 0; }
.view-header h1 { font-size: 20px; }
.back-button, .subview-back { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--u-line); border-radius: 24px; padding: 7px 14px 7px 9px; color: var(--u-muted); background: linear-gradient(180deg,var(--u-card),var(--u-wash)); font-size: 14px; font-weight: 650; box-shadow: 0 2px 6px #223b5c12, inset 0 1px 0 #fff; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; cursor: pointer; }
.back-button:hover, .subview-back:hover { border-color: var(--u-line); background: linear-gradient(180deg,var(--u-card),var(--u-wash)); box-shadow: 0 4px 10px #223b5c1c, inset 0 1px 0 #fff; transform: translateY(-1px); }
.back-button:active, .subview-back:active { transform: translateY(0); box-shadow: inset 0 1px 3px #223b5c16; }
.back-button:focus-visible, .subview-back:focus-visible { outline: 3px solid var(--u-focus); outline-offset: 2px; }
.back-chevron { position:relative; flex:0 0 24px; width:24px; height:24px; display:grid; place-items:center; border-radius:50%; background:var(--u-wash); }
.back-chevron::after { content:""; width:7px; height:7px; margin-left:3px; border-left:2px solid var(--u-mid); border-bottom:2px solid var(--u-mid); transform:rotate(45deg); border-radius:1px; }
.app-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.app-tile { min-width: 0; min-height: 0; border: 1px solid transparent; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 8px 4px; color: var(--u-ink); font: inherit; box-shadow: none; }
.app-tile strong { max-width: 100%; overflow: visible; white-space: normal; overflow-wrap: anywhere; text-align: center; font-size: 14px; line-height: 1.12; }
.app-recordings .recordings-app-title span, .recordings-view-title span { display:block; }
.recordings-view-title { line-height:1.02; }
.tile-caption { max-width: 100%; overflow: visible; white-space: normal; overflow-wrap: anywhere; text-align: center; color: var(--u-muted); font-size: 12px; line-height: 1.2; }
.app-tile { cursor: grab; touch-action: none; }
.app-tile:active { cursor: grabbing; }
.active-tile:hover { border-color: var(--u-line); filter: brightness(.985); }
.tile-icon { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 15px; display: grid; place-items: center; color: var(--u-white); font-size: 24px; line-height: 1; font-weight: 700; box-shadow: 0 2px 5px #1b26351c, inset 0 1px 0 #ffffff55; }
.tile-icon svg { display: block; width: 28px; height: 28px; fill: none; stroke: var(--u-white); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.app-phone .tile-icon { background: linear-gradient(145deg,var(--u-button),var(--u-button)); }
.app-phone .tile-icon svg, .app-messages .tile-icon svg { fill: var(--u-white); stroke: none; }
.app-messages .tile-icon { background: linear-gradient(145deg,var(--u-goodfill),var(--u-goodfill)); }
.app-contacts .tile-icon { background: linear-gradient(145deg,var(--u-button),var(--u-button)); }
.app-shopping .tile-icon { background: linear-gradient(145deg,var(--u-copper),var(--u-copper)); }
.app-notes .tile-icon { background: linear-gradient(145deg,var(--u-copper),var(--u-copper)); }
.app-recordings .tile-icon { background: linear-gradient(145deg,var(--u-alertfill),var(--u-alertfill)); }
.app-dictation .tile-icon { background: linear-gradient(145deg,var(--u-button),var(--u-button)); }
.app-poems .tile-icon { background: linear-gradient(145deg,var(--u-button),var(--u-button)); }
.app-help .tile-icon { background: linear-gradient(145deg,var(--u-button),var(--u-button)); }
.app-groups .tile-icon { background: linear-gradient(145deg,var(--u-copper),var(--u-alertfill)); }
.app-status .tile-icon { background: linear-gradient(145deg,var(--u-button),var(--u-button)); }
.app-phone { background: var(--u-wash); }
.app-messages { background: var(--u-goodwash); }
.app-contacts { background: var(--u-wash); }
.app-shopping { background: var(--u-mark); }
.app-notes { background: var(--u-mark); }
.app-recordings { background: var(--u-card); }
.app-dictation { background: var(--u-wash); }
.app-poems { background: var(--u-wash); }
.app-help { background: var(--u-card); }
.app-groups { background: var(--u-mark); }
.app-status { background: var(--u-wash); }
.upcoming { color: var(--u-ink); }
.app-tile:disabled { opacity: 1; }
.empty-tile { border: 1px solid var(--u-line); background: var(--u-paper); color: var(--u-muted); font-size: 24px; font-weight: 400; }
.empty-mark { width: 54px; height: 54px; display: grid; place-items: center; border: 1px dashed var(--u-line); border-radius: 13px; color: var(--u-muted); font-size: 28px; font-weight: 300; }
.phone-ready-banner { flex: 0 0 auto; display:flex; align-items:flex-start; gap:10px; margin:0 0 10px; padding:12px 13px; border-radius:13px; background:linear-gradient(110deg,var(--u-wash),var(--u-goodwash)); color:var(--u-ink); }
.phone-ready-banner .status-dot { margin-top:5px; width:10px; height:10px; flex-basis:10px; }
.phone-ready-banner .status-dot.offline { background:var(--u-mid); }
.phone-ready-banner > div { min-width:0; display:flex; flex-direction:column; gap:4px; }
.phone-ready-banner strong { font-size:13px; }
.phone-ready-banner #status { padding:0; background:none; color:var(--u-muted); border-radius:0; font-size:11px; line-height:1.35; }
.phone-ready-banner #auto-answer-description { color:var(--u-muted); font-size:12px; line-height:1.35; }
.visually-hidden { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
.phone-tabs { flex:0 0 auto; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; margin:0 0 10px; padding:3px; border:1px solid var(--u-line); border-radius:12px; background:var(--u-wash); }
.phone-tab { min-width:0; padding:7px 3px; border:0; border-radius:9px; background:transparent; color:var(--u-muted); font-size:11px; font-weight:600; white-space:normal; overflow-wrap:anywhere; line-height:1.15; text-align:center; }
.phone-tab span { margin-right:3px; }
.phone-tab.selected { color:var(--u-white); background:var(--u-button); box-shadow:0 2px 6px #287be940; }
.phone-subview, .message-subview, .recording-subview { width:100%; scroll-margin-top:12px; }
.phone-content, .messages-content, .recordings-content { padding:0 1px 5px; }
.phone-content:has(#phone-active-call-view:not(.hidden)) { padding-bottom:22px; }
.dialer-prototype { margin-top:2px; padding:10px; }
.prototype-note { margin:3px 1px 8px; color:var(--u-muted); font-size:12px; line-height:1.4; }
.dial-display { margin:0 0 8px; text-align:center; font-size:18px; font-weight:600; letter-spacing:.04em; }
.dial-keys { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.dial-keys button { min-height:35px; display:flex; flex-direction:column; align-items:center; justify-content:center; border:0; border-radius:9px; background:var(--u-wash); color:var(--u-ink); font-size:16px; font-weight:600; cursor:pointer; }
.dial-keys button:hover { background:var(--u-wash); }
.dial-keys small { color:var(--u-muted); font-size:7px; letter-spacing:.08em; }
.dial-call-button { width:100%; margin-top:8px; border:0; border-radius:10px; padding:9px; background:var(--u-goodfill); color:var(--u-white); }
.quick-users { margin-top:8px; padding:10px 12px; }
.quick-users h2 { display:flex; align-items:baseline; justify-content:space-between; margin:0 0 6px; font-size:14px; }
.quick-users h2 small { color:var(--u-muted); font-size:9px; font-weight:500; }
.quick-user-row, .history-row, .recording-row { min-height:39px; display:flex; align-items:center; gap:8px; padding:5px 1px; border-bottom:1px solid var(--u-line); }
.quick-user-row:last-child, .history-row:last-child, .recording-row:last-child { border-bottom:0; }
.quick-user-row > i, .avatar { flex:0 0 26px; width:26px; height:26px; display:grid; place-items:center; border-radius:50%; background:var(--u-wash); color:var(--u-accent); font-size:11px; font-style:normal; font-weight:700; }
.quick-user-row:nth-of-type(3n) > i, .history-row:nth-of-type(3n) .avatar, .recording-row:nth-of-type(3n) .avatar { background:var(--u-goodwash); color:var(--u-good); }
.quick-user-row strong { flex:1; font-size:13px; }
.quick-user-row button, .history-row button, .recording-row button { flex:0 0 27px; width:27px; height:27px; padding:0; border:0; border-radius:50%; background:var(--u-wash); color:var(--u-accent); font-size:14px; }
.quick-user-row button:disabled, .history-row button:disabled { opacity:.55; }
.quick-user-row .history-copy { flex:1; min-width:0; }
.data-list .empty-state { padding:16px 10px; color:var(--u-muted); font-size:13px; text-align:center; }
.history-row, .recording-row { min-height:52px; padding:7px 2px; gap:6px; }
.history-copy { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.history-copy strong { font-size:13px; }
.history-copy span { overflow:hidden; color:var(--u-muted); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.history-row .recording-shortcut, .recording-row .play-recording { background:var(--u-card); color:var(--u-alert); }
.history-row .recording-shortcut:hover, .recording-row .play-recording:hover { background:var(--u-alertwash); }
.search-field { display:flex; align-items:center; gap:7px; margin:3px 0 9px; padding:0 10px; border:1px solid var(--u-line); border-radius:10px; background:var(--u-card); color:var(--u-muted); font-size:17px; }
.search-field input { min-width:0; margin:0; padding:8px 0; border:0; outline:0; font-size:12px; }
.recording-filters { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; margin:4px 0 11px; }
.recording-filters button { padding:7px 3px; border-radius:9px; background:var(--u-wash); font-size:10px; }
.recording-filters .selected { background:var(--u-button); border-color:var(--u-mid); color:var(--u-white); }
.recordings-content h2, .messages-content h2 { margin:8px 0; font-size:15px; }
.recording-subview .prototype-note { margin-bottom:7px; }
.subview-toolbar { display:flex; align-items:center; min-height:40px; margin:0 0 5px; }
.subview-back { margin:0; }
.fake-waveform { height:95px; display:flex; align-items:center; justify-content:center; overflow:hidden; margin:10px 0; border-radius:12px; background:linear-gradient(90deg,var(--u-wash),var(--u-wash)); color:var(--u-accent); font-size:30px; letter-spacing:2px; }
.fake-player { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.fake-player button { min-width:35px; padding:7px 5px; font-size:10px; }
.fake-player span { color:var(--u-muted); font-size:10px; }
.play-recording-large { width:42px; height:42px; border:0; border-radius:50%; background:var(--u-button); color:var(--u-white); font-size:17px; }
.transcript-button { width:100%; margin-top:12px; border-color:var(--u-line); color:var(--u-muted); text-align:left; }
.transcript-preview { margin-top:8px; padding:10px; border-radius:11px; background:var(--u-card); font-size:11px; }
.transcript-preview p { margin:8px 0 0; font-size:10px; }
.message-folders { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:3px 0 0; }
.folder-tile { min-width:0; min-height:108px; border:1px solid transparent; border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; color:var(--u-ink); font:inherit; }
.folder-tile:hover { filter:brightness(.98); }
.folder-tile .tile-icon { width:42px; height:42px; flex-basis:42px; border-radius:13px; font-size:22px; }
.folder-tile strong { font-size:14px; }
.folder-tile > span:last-child { color:var(--u-muted); font-size:11px; }
.inbox-tile { background:var(--u-goodwash); }.inbox-tile .tile-icon { background:var(--u-goodfill); }
.scheduled-tile { background:var(--u-mark); }.scheduled-tile .tile-icon { background:var(--u-copper); }
.sent-tile { background:var(--u-wash); }.sent-tile .tile-icon { background:var(--u-button); }
.drafts-tile { background:var(--u-card); }.drafts-tile .tile-icon { background:var(--u-alertfill); }
.compose-button { width:100%; min-height:60px; margin:22px 0 18px; border:0; border-radius:13px; background:var(--u-button); color:var(--u-white); font-size:16px; }
.compose-button:disabled { opacity:.65; }
.message-list-row { min-height:62px; display:flex; align-items:flex-start; gap:9px; padding:12px 2px; border-bottom:1px solid var(--u-line); }
.message-draft-row { width:100%; border:0; border-bottom:1px solid var(--u-line); border-radius:0; background:transparent; color:inherit; text-align:left; cursor:pointer; font:inherit; }
.message-draft-row:hover { background:var(--u-card); }
.message-draft-row:focus-visible { outline:3px solid var(--u-focus); outline-offset:-3px; border-radius:8px; }
.message-list-row > div { flex:1; min-width:0; }
.message-list-row .message-row-copy { flex:1; min-width:0; }
.message-list-row strong, .message-list-row span { display:block; }
.message-list-row strong { font-size:13px; }
.message-list-row span { display:block; overflow:visible; margin-top:5px; color:var(--u-muted); font-size:13px; line-height:1.4; white-space:pre-wrap; overflow-wrap:anywhere; }
.message-list-row time { flex:0 0 auto; max-width:155px; color:var(--u-muted); font-size:10px; text-align:right; white-space:normal; }
.message-list-row .avatar { flex:0 0 26px; }
.message-list-row > button { border:0; border-radius:8px; padding:7px 10px; background:var(--u-wash); color:var(--u-accent); cursor:pointer; }
.message-conversation-thread { margin-top:8px; border-top:1px solid var(--u-line); padding-top:7px; }
.message-conversation-thread summary { color:var(--u-accent); cursor:pointer; font-size:12px; font-weight:600; }
.message-conversation-thread ol { display:grid; gap:8px; margin:10px 0 0; padding:0; list-style:none; }
.message-thread-item { border-radius:9px; padding:9px 10px; background:var(--u-wash); }
.message-thread-item.inbound { margin-right:14px; background:var(--u-wash); }
.message-thread-item.outbound { margin-left:14px; background:var(--u-wash); }
.message-thread-item > div { display:flex; justify-content:space-between; gap:10px; align-items:baseline; }
.message-thread-item > div strong { font-size:11px; }
/* Row 1133: transport badge (SMS / WhatsApp) and WhatsApp media refs. */
.message-channel { display:inline-block; margin-left:6px; padding:0 6px; border-radius:8px; font-size:10px; font-weight:600; line-height:16px; background:var(--u-wash); color:inherit; }
.message-thread-item.whatsapp .message-channel, .message-conversation-row.whatsapp .message-channel { background:#25d366; color:#fff; }
.message-thread-item.whatsapp .message-channel::before, .message-conversation-row.whatsapp .message-channel::before { content:"\25CF  "; }
.message-media { margin-top:4px; font-size:11px; opacity:.75; }
.message-thread-item > div time { max-width:none; font-size:10px; text-align:right; }
.message-thread-item p { margin:5px 0 0; color:var(--u-ink); font-size:13px; line-height:1.45; white-space:pre-wrap; overflow-wrap:anywhere; }
.recordings-content audio { width:100%; margin:12px 0; }
.recording-actions { display:flex; gap:7px; margin:0 0 10px; }
.recording-actions button { flex:1; padding:9px 5px; background:var(--u-wash); color:var(--u-muted); }
.recording-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin:8px 0; }
.recording-tabs button { padding:8px 5px; background:var(--u-wash); color:var(--u-muted); font-size:11px; }
.recording-tabs button.selected { background:var(--u-button); border-color:var(--u-mid); color:var(--u-white); }
.waveform-player { position:relative; margin:12px 0; padding:12px 12px 8px; border:1px solid var(--u-line); border-radius:14px; background:linear-gradient(110deg,var(--u-card),var(--u-wash)); }
.waveform-bars { height:45px; margin:0 2px 4px; opacity:.8; background:repeating-linear-gradient(90deg,transparent 0 4px,var(--u-button) 4px 6px,transparent 6px 10px); clip-path:polygon(0 43%,3% 28%,5% 58%,8% 34%,10% 68%,13% 21%,16% 49%,18% 33%,21% 74%,24% 31%,27% 54%,30% 19%,33% 62%,36% 26%,39% 78%,42% 36%,45% 50%,48% 14%,51% 69%,54% 31%,57% 60%,60% 24%,63% 70%,66% 32%,69% 54%,72% 18%,75% 74%,78% 35%,81% 58%,84% 27%,87% 69%,90% 30%,93% 56%,96% 22%,100% 44%,100% 100%,0 100%); }
.waveform-player input[type="range"] { position:relative; z-index:1; width:100%; height:18px; margin:0; padding:0; accent-color:var(--u-button); background:transparent; cursor:pointer; }
.waveform-times { display:flex; justify-content:space-between; color:var(--u-muted); font-size:11px; font-variant-numeric:tabular-nums; }
.recording-search input { margin-top:4px; }
.group-tabs { flex:0 0 auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; margin:0 0 10px; padding:3px; border:1px solid var(--u-line); border-radius:12px; background:var(--u-wash); }
.group-tabs button { border:0; padding:9px 4px; color:var(--u-muted); background:transparent; font-size:11px; }
.group-tabs button.selected { background:var(--u-button); color:var(--u-white); }
.group-content h2 { margin:9px 0; font-size:16px; }
#group-members-view > label { display:block; margin:10px 0 6px; color:var(--u-ink); font-size:13px; font-weight:700; }
#group-select { min-height:42px; margin-top:5px; border:1px solid var(--u-line); border-radius:12px; font-size:14px; font-weight:650; }
.group-content .search-field { min-height:42px; margin:8px 0 10px; border-radius:12px; box-shadow:0 1px 2px #23334d08; }
.group-content .search-field input { font-size:13px; }
#group-members { display:flex; flex-direction:column; gap:6px; padding:2px 0; }
.group-member-row { min-height:62px; display:flex; align-items:center; gap:11px; padding:8px 10px; border:1px solid var(--u-line); border-radius:13px; background:linear-gradient(110deg,var(--u-card),var(--u-card)); box-shadow:0 2px 5px #1c2c4209; }
.group-member-row .avatar { flex:0 0 36px; width:36px; height:36px; font-size:14px; background:linear-gradient(145deg,var(--u-wash),var(--u-wash)); color:var(--u-accent); }
.group-member-row .history-copy { flex:1; min-width:0; gap:4px; }
.group-member-row .history-copy strong { font-size:15px; line-height:1.15; }
.group-member-row .history-copy span { color:var(--u-muted); font-size:12px; }
.group-member-row button.danger { flex:0 0 auto; min-height:34px; padding:6px 11px; border:1px solid var(--u-line); border-radius:11px; background:linear-gradient(180deg,var(--u-card),var(--u-card)); color:var(--u-alert); font-size:11px; font-weight:650; white-space:nowrap; }
.group-member-row button.danger:hover { border-color:var(--u-line); background:var(--u-card); }
.group-member-add, .shopping-add { display:flex; align-items:center; gap:7px; margin-top:9px; }
.group-member-add select, .shopping-add input { flex:1; min-width:0; margin:0; min-height:42px; border-radius:12px; }
.group-member-add button, .shopping-add button { flex:0 0 auto; }
.group-content .prototype-note { margin:8px 0 4px; padding:10px 12px; border:1px solid var(--u-line); border-radius:12px; background:linear-gradient(110deg,var(--u-wash),var(--u-card)); color:var(--u-muted); font-size:11px; line-height:1.45; }
.group-call-panel { margin-top:13px; padding:12px; }
.group-call-panel p { margin:0; font-size:11px; }
.group-call-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin:9px 0; }
.group-call-actions button { min-height:34px; padding:6px; font-size:11px; }
.group-call-command + .prototype-note { margin-top:6px; color:var(--u-muted); }
.group-call-command { display:flex; gap:7px; margin-top:9px; }
.group-call-panel textarea { width:100%; min-height:70px; margin-top:6px; resize:vertical; }
.shopping-list-actions { display:flex; gap:8px; margin:8px 0; }
.shopping-list-actions button { flex:1; min-width:0; }
.group-call-command input { min-width:0; margin:0; }
.oneoff-recipient-note { margin:8px 0; padding:8px 10px; border-radius:9px; background:var(--u-mark); color:var(--u-warmtext); font-size:11px; }
.recipient-chips { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.recipient-chip { display:inline-flex; align-items:center; gap:5px; padding:5px 8px; border-radius:16px; background:var(--u-wash); color:var(--u-ink); font-size:11px; }
.recipient-chip button { width:18px; height:18px; padding:0; border:0; border-radius:50%; background:var(--u-card); color:var(--u-muted); line-height:16px; }
.group-content textarea { width:100%; min-height:120px; margin-top:6px; resize:vertical; }
.group-content .panel { margin-top:14px; }
.user-access { display:grid; grid-template-columns:1fr 1fr; gap:7px 12px; margin:10px 0; padding:10px; border:1px solid var(--u-line); border-radius:10px; }
.user-access legend { padding:0 5px; font-weight:700; }
.user-access label { display:flex; align-items:center; gap:7px; margin:0; font-size:12px; }
.user-access input[type="checkbox"], .shopping-row > input[type="checkbox"], .schedule-control input[type="checkbox"] {
  appearance:none;
  -webkit-appearance:none;
  flex:0 0 19px;
  width:19px;
  height:19px;
  display:inline-grid;
  place-content:center;
  margin:0;
  border:1.5px solid var(--u-line);
  border-radius:6px;
  background:linear-gradient(180deg,var(--u-card),var(--u-card));
  box-shadow:0 1px 2px #20365412;
  cursor:pointer;
  transition:background .14s ease,border-color .14s ease,box-shadow .14s ease;
}
.user-access input[type="checkbox"]:checked, .shopping-row > input[type="checkbox"]:checked, .schedule-control input[type="checkbox"]:checked {
  border-color:var(--u-mid);
  background:var(--u-button);
  box-shadow:0 2px 5px #2485ee38;
}
.user-access input[type="checkbox"]:checked::after, .shopping-row > input[type="checkbox"]:checked::after, .schedule-control input[type="checkbox"]:checked::after {
  width:8px;
  height:4px;
  border:solid white;
  border-width:0 0 2px 2px;
  content:"";
  transform:translateY(-1px) rotate(-45deg);
}
.user-access input[type="checkbox"]:focus-visible, .shopping-row > input[type="checkbox"]:focus-visible, .schedule-control input[type="checkbox"]:focus-visible {
  outline:3px solid var(--u-focus);
  outline-offset:2px;
}
.shopping-content label, .group-content label { margin-top:7px; }
.shopping-row { min-height:52px; display:flex; align-items:center; gap:11px; padding:6px 10px; border:1px solid var(--u-line); border-radius:13px; background:linear-gradient(180deg,var(--u-card),var(--u-card)); box-shadow:0 2px 6px #2036540a; font-size:14px; }
.shopping-row + .shopping-row { margin-top:6px; }
.shopping-row > span { flex:1; color:var(--u-ink); font-size:14px; font-weight:550; line-height:1.35; }
.shopping-row > button { flex:0 0 31px; width:31px; height:31px; padding:0; border:1px solid var(--u-line); border-radius:10px; color:var(--u-accent); background:var(--u-card); font-size:18px; }
.shopping-row.purchased > span { color:var(--u-muted); text-decoration:line-through; }
.schedule-control > label:first-child { display:flex; align-items:center; gap:9px; min-height:38px; margin:7px 0; color:var(--u-muted); }
.schedule-control > label:first-child input[type="checkbox"] { flex:0 0 19px; width:19px; height:19px; margin:0; }
#shopping-status, #status-update-note, #group-message-status { min-height:18px; margin-top:8px; color:var(--u-muted); font-size:11px; }
.status-display { padding:15px; border-radius:12px; background:var(--u-goodwash); color:var(--u-good); font-size:20px; font-weight:700; text-align:center; }
.status-buttons { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin-top:12px; }
.status-buttons button.selected { color:var(--u-white); border-color:var(--u-mid); background:var(--u-button); }
/* Row 1048: call-forward copy buttons (Status view). */
.call-forward-panel { margin-top:12px; }
.call-forward-panel h3 { margin:14px 0 6px; color:var(--u-muted); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.cf-buttons { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.cf-button { display:flex; flex-direction:column; align-items:flex-start; gap:3px; min-height:48px; text-align:left; }
.cf-button code { max-width:100%; overflow-wrap:anywhere; color:var(--u-muted); font-size:11px; user-select:all; }
.cf-button.cf-default { border-color:var(--u-mid); }
.cf-button:disabled { opacity:.55; }
.cf-hint, .cf-last, .cf-intent, .cf-result { margin:8px 0 0; color:var(--u-muted); font-size:12px; line-height:1.4; }
.cf-warning { margin:8px 0 0; color:var(--u-alert); font-size:12px; }
.cf-big-code { margin-top:8px; padding:12px; border-radius:12px; background:var(--u-goodwash); color:var(--u-ink); font:700 24px/1.25 ui-monospace,Menlo,monospace; text-align:center; overflow-wrap:anywhere; user-select:all; }
.cf-notes { margin:12px 0 0; padding-left:18px; color:var(--u-muted); font-size:12px; line-height:1.45; }
.cf-web-only { display:none; }
html.work-caller-web .cf-web-only { display:block; }
html.work-caller-web .cf-desktop-only { display:none; }
[data-cf-unavailable][hidden], [data-cf-load-error][hidden], [data-cf-result][hidden], [data-cf-big][hidden], [data-cf-last][hidden], [data-cf-intent][hidden] { display:none; }
#sms-number, #sms-recipient, #sms-body { width:100%; margin-top:6px; }
#sms-body { min-height:90px; resize:vertical; }
#sms-compose-status { min-height:20px; margin-top:8px; color:var(--u-muted); font-size:11px; }
.message-state { padding:4px 6px; border-radius:8px; background:var(--u-goodwash); color:var(--u-good); font-size:8px; }
.recipient-preview { display:flex; align-items:center; gap:6px; margin-top:5px; padding:8px; border:1px solid var(--u-line); border-radius:10px; color:var(--u-muted); font-size:11px; }
.recipient-preview > span:first-child { padding:4px 8px; border-radius:12px; background:var(--u-wash); }
.secondary-recipient { flex:1; color:var(--u-muted); }
.messages-content textarea { width:100%; min-height:110px; resize:none; }
.segment-preview { margin-top:5px; color:var(--u-muted); text-align:right; font-size:9px; }
.message-preview { margin-top:12px; padding:12px; border-radius:12px; background:var(--u-wash); font-size:11px; }
.message-preview p { margin:7px 0 0; font-size:10px; }
.sync-status { margin-top:auto; }
.recordings-mark { background:linear-gradient(145deg,var(--u-alertfill),var(--u-alertfill)); }
.status-dot { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--u-goodfill); }
.view-content { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 1px 6px; }
.panel { background: var(--u-card); border: 1px solid var(--u-line); border-radius: 16px; padding: 15px; box-shadow: 0 8px 25px #1b263510; }
.panel p { margin-bottom: 8px; }
label { display: block; font-weight: 600; margin: 11px 0 0; font-size: 13px; }
input, select { width: 100%; margin-top: 5px; padding: 8px 9px; border: 1px solid var(--u-line); border-radius: 9px; background: var(--u-card); color: inherit; font: inherit; }
button { border: 1px solid var(--u-line); border-radius: 9px; padding: 9px 11px; background: var(--u-card); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
button.primary { background: var(--u-button); color: var(--u-white); border-color: var(--u-mid); }
button.danger { color: var(--u-alert); border-color: var(--u-line); }
.full-width { width: 100%; margin-top: 14px; }
.status { padding: 10px 11px; background: var(--u-wash); border-radius: 10px; line-height: 1.4; font-size: 13px; }
.devices { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.devices label { font-size: 12px; }
.mic-gain-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px 10px; margin-top: 10px; font-size: 12px; color: var(--u-muted); }
.mic-gain-row input { grid-column: 1 / -1; width: 100%; margin: 0; padding: 0; accent-color: var(--u-button); }
.mic-gain-row output { color: var(--u-ink); font-variant-numeric: tabular-nums; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 13px; }
.controls .primary { grid-column: 1 / -1; }
.controls #mute-button, .controls .transfer { grid-column: 1 / -1; }
button.primary.connected { background: var(--u-alertfill); border-color: var(--u-alertfill); color: var(--u-white); opacity: 1; }
button.primary.connected:hover, button.primary.connected:focus-visible { background: var(--u-alertfill); border-color: var(--u-alertfill); }
.text-button { display: block; margin: 10px auto 0; border: 0; color: var(--u-muted); background: transparent; font-weight: 500; }
.topic-status-line { margin: 4px 4px 7px; color: var(--u-muted); font-size: 12px; line-height: 1.35; font-style: italic; }
.topic-status-line[hidden] { display: none; }
#notice { min-height: 18px; margin: 7px 4px; color: var(--u-alert); line-height: 1.35; font-size: 12px; }
.incoming { margin-top: 12px; padding: 13px; border: 1px solid var(--u-line); border-radius: 12px; background: var(--u-card); }
.incoming p { margin: 6px 0 0; }
.phone-footnote { margin: 7px 3px 0; font-size: 10px; }
.messages-content { display: flex; flex-direction: column; }
.message-list-rows { flex:1 1 auto; min-height:0; overflow-y:auto; }
.message-list-heading { flex:0 0 auto; display:flex; justify-content:space-between; align-items:flex-end; margin:1px 0 5px; }
.message-list-heading h2 { margin:0 0 2px; }
.message-list-heading .prototype-note { margin:0; }
.message-compose-bottom { flex:0 0 auto; min-height:56px; margin:10px 0 8px; }
.message-compose-bottom span { font-size:22px; }
.compose-button span { font-size: 24px; vertical-align: -1px; margin-right: 8px; }
.sync-status { display: flex; align-items: center; gap: 9px; padding: 10px 3px 5px; border-top: 1px solid var(--u-line); color: var(--u-ink); }
.sync-status > div { display: flex; flex-direction: column; gap: 3px; }
.sync-status strong { font-size: 13px; }.sync-status div span { color: var(--u-muted); font-size: 11px; }
.app-footer { flex: 0 0 auto; min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 3px 2px; border-top: 1px solid var(--u-line); color: var(--u-muted); font-size: 11px; }
.app-footer > span { min-width: 0; display: inline-flex; align-items: center; gap: 7px; }.app-footer .status-dot { width: 7px; height: 7px; flex-basis: 7px; }
.app-footer #footer-status { min-width: 0; overflow: visible; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.app-footer small { flex: 0 0 auto; font-size: 10px; }
@media (max-height: 620px) { main { padding-top: 10px; padding-bottom: 8px; }.home-header,.view-header { margin-bottom: 9px; }.app-grid { gap: 4px; }.tile-icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 10px; }.tile-icon svg { width: 19px; height: 19px; }.app-tile { gap: 3px; }.empty-mark { width: 38px; height: 38px; }.folder-tile { min-height: 84px; }.compose-button { margin:12px 0; } }
.phone-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items:stretch; }
.phone-tab { min-height:58px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font-size:11px; padding:6px 2px; }
.phone-tab span { display:block; margin:0; font-size:14px; line-height:1; }
.phone-ready-banner strong { font-size: 14px; }
.phone-ready-banner #status { font-size: 12px; }
.quick-user-row strong, .history-copy strong { font-size: 12px; }
.history-copy span, .quick-user-row button { font-size: 10px; }
.app-footer { min-height: 38px; }
.app-footer #footer-status { white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.25; }
.app-footer > span { align-items: flex-start; }
.app-footer .status-dot { margin-top: 4px; }
.phone-tab { font-size: 12px; }
.phone-ready-banner strong { font-size: 15px; }
.phone-ready-banner #status { font-size: 13px; }
.quick-user-row strong, .history-copy strong { font-size: 13px; }
.history-copy span, .message-list-row span { font-size: 11px; }
.folder-tile strong { font-size: 14px; }
.folder-tile > span:last-child { font-size: 11px; }
.message-list-row strong { font-size: 13px; }
.message-list-row time { font-size: 10px; }
.app-footer #footer-status, .app-footer small { font-size: 12px; }
.auto-answer-state { display:flex; align-items:center; gap:9px; margin:4px 0 12px; padding:11px 12px; border-radius:11px; background:var(--u-goodwash); color:var(--u-good); font-size:13px; }
.auto-answer-controls { display:grid; gap:8px; margin-top:14px; }
.auto-answer-controls button { min-height:42px; }
.auto-answer-controls .primary { background:var(--u-button); border-color:var(--u-mid); color:var(--u-white); }
.revoke-button { width:100%; padding:10px; border:1px solid var(--u-line); border-radius:10px; color:var(--u-alert); }

/* Keep form controls consistent across every app view. */
input:not([type="checkbox"]):not([type="range"]):not([type="hidden"]), select, textarea {
  border-color:var(--u-line);
  border-radius:12px;
  box-shadow:0 1px 3px #20365408;
}
input:not([type="checkbox"]):not([type="range"]):not([type="hidden"]):focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color:var(--u-line);
  outline:2px solid var(--u-focus);
  outline-offset:1px;
}
textarea { padding:10px 12px; font:inherit; line-height:1.4; }
button { border-radius:11px; transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease; }
button:not(:disabled):hover { border-color:var(--u-line); box-shadow:0 2px 6px #20365410; }
button.primary:not(:disabled):hover { border-color:var(--u-mid); background:var(--u-button); }

/* Improve reading comfort to match the approved larger-text mockup. */
h1 { font-size:24px; }
h2 { font-size:20px; }
.home-header p, .view-header p { font-size:16px; }
.view-header h1 { font-size:22px; }
.app-tile strong { font-size:16px; }
.tile-caption { font-size:14px; }
.back-button, .subview-back { font-size:14px; }
.phone-ready-banner strong { font-size:16px; }
.phone-ready-banner #status { font-size:14px; }
.phone-tab { font-size:14px; }
.prototype-note { font-size:14px; }
.quick-user-row strong, .history-copy strong, .message-list-row strong { font-size:15px; }
.history-copy span, .message-list-row span { font-size:13px; }
.data-list .empty-state, .recordings-content h2, .messages-content h2 { font-size:16px; }
.recording-filters button { font-size:13px; }
.folder-tile strong { font-size:16px; }
.folder-tile > span:last-child { font-size:13px; }
.search-field input, label, .status { font-size:15px; }
.message-list-row time { font-size:12px; }
.transcript-preview { font-size:13px; }
.transcript-preview p { font-size:12px; }
.app-footer #footer-status, .app-footer small { font-size:12px; }
@media (max-height: 620px) {
  main { padding-top:10px; padding-bottom:8px; }
  .home-header, .view-header { margin-bottom:9px; }
  .app-grid { gap:4px; }
  .tile-icon { width:30px; height:30px; flex-basis:30px; border-radius:10px; }
  .tile-icon svg { width:19px; height:19px; }
  .app-tile { gap:3px; }
  .empty-mark { width:38px; height:38px; }
  .folder-tile { min-height:84px; }
  .compose-button { margin:12px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .back-button, .subview-back { transition:none; }
  .back-button:hover, .subview-back:hover { transform:none; }
}

/* Keep the live connection announcement available to assistive technology
   without duplicating the explanatory copy in the ready banner. */
.phone-ready-banner #status.visually-hidden {
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* Five phone destinations use two tidy rows so long Finnish labels never
   collide or shrink into unreadable single-line text. */
.phone-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.phone-tab { min-width:0; min-height:58px; padding:7px 5px; gap:4px; }
.phone-tab .tab-icon { display:block; flex:0 0 auto; margin:0; font-size:14px; line-height:1; }
.phone-tab .tab-label { display:block; min-width:0; margin:0; white-space:normal; overflow-wrap:anywhere; text-align:center; line-height:1.15; }
.app-tile.dragging { opacity:.48; transform:scale(.96); pointer-events:none; }
.app-tile.drag-over { outline:3px solid var(--u-focus); outline-offset:-4px; filter:brightness(.96); }

.app-grid.is-reordering { user-select:none; -webkit-user-select:none; }
.transcript-preview pre { margin:8px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; word-break:normal; font:inherit; line-height:1.5; }
.shopping-list-editor { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px; margin:0 0 9px; padding:10px; border:1px solid var(--u-line); border-radius:12px; background:var(--u-card); }
.shopping-list-editor > div { display:flex; gap:6px; }
.shopping-list-editor button { white-space:nowrap; }
.shopping-list-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.contact-tabs { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin:0 0 10px; padding:4px; border:1px solid var(--u-line); border-radius:12px; background:var(--u-wash); }
.contact-tabs button { min-width:0; min-height:42px; padding:7px; border:0; border-radius:9px; background:transparent; color:var(--u-muted); font-weight:650; }
.contact-tabs button.selected { background:var(--u-button); color:var(--u-white); }
.contacts-content, .group-content { min-height:0; overflow:auto; }
.notes-content { display:flex; flex-direction:column; gap:10px; }
.notes-tabs { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:4px; border:1px solid var(--u-line); border-radius:12px; background:var(--u-wash); }
.notes-tabs button { min-height:40px; border:0; border-radius:9px; background:transparent; color:var(--u-muted); font-weight:650; }
.notes-tabs button.selected { background:var(--u-button); color:var(--u-white); }
.note-form { display:grid; gap:7px; padding:12px; border:1px solid var(--u-line); border-radius:15px; background:var(--u-card); box-shadow:0 2px 6px #1c2c4208; }
.note-form label { margin:0; font-weight:650; }
.note-form textarea { width:100%; min-height:96px; resize:vertical; padding:10px 11px; border:1px solid var(--u-line); border-radius:11px; color:var(--u-ink); font:inherit; line-height:1.45; }
.note-form-actions, .note-actions { display:flex; flex-wrap:wrap; gap:7px; }
.note-card { display:grid; gap:8px; margin:0 0 8px; padding:12px; border:1px solid var(--u-line); border-radius:15px; background:linear-gradient(110deg,var(--u-card),var(--u-card)); box-shadow:0 2px 6px #1c2c4208; }
.note-copy { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; line-height:1.5; }
.note-date { color:var(--u-muted); font-size:11px; }
.note-actions button { min-height:34px; padding:6px 10px; border:1px solid var(--u-line); border-radius:10px; background:var(--u-card); color:var(--u-muted); font-size:12px; font-weight:650; }
.note-actions button.danger { color:var(--u-alert); border-color:var(--u-line); }
.note-delete-confirmation { display:grid; gap:8px; padding:14px; border:1px solid var(--u-line); border-radius:15px; background:var(--u-card); box-shadow:0 4px 14px #53202612; }
.note-delete-confirmation h2 { margin:0; font-size:17px; }
.note-delete-confirmation p { margin:0; line-height:1.45; }
.note-delete-confirmation button.danger { min-height:38px; padding:7px 11px; border:1px solid var(--u-mid); border-radius:10px; background:var(--u-alertfill); color:var(--u-white); font-size:12px; font-weight:700; }
#notes-status { margin:0; color:var(--u-muted); font-size:12px; }

/* Shared, calm list treatment based on the approved Adele list mockup. */
:root { color:var(--u-ink); background:var(--u-paper); }
.app-mark { background:var(--u-wash); color:var(--u-accent); box-shadow:none; }
.messages-mark { background:linear-gradient(145deg,var(--u-goodfill),var(--u-goodfill)); color:var(--u-white); }
.app-mark:not(.groups-mark):not(.contacts-mark):not(.recordings-mark) svg { display:block; width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.messages-mark svg { fill:var(--u-white) !important; stroke:none !important; }
.groups-mark, .contacts-mark, .recordings-mark { font-size:0; position:relative; }
.groups-mark::after, .contacts-mark::after { content:""; }
.groups-mark { background:linear-gradient(145deg,var(--u-copper),var(--u-alertfill)); color:var(--u-white); }
.contacts-mark { background:linear-gradient(145deg,var(--u-button),var(--u-button)); color:var(--u-white); }
.groups-mark svg, .contacts-mark svg { width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.recordings-mark::after { content:"◷"; font-size:25px; color:var(--u-accent); }
.app-view { min-height:0; }
.view-header { margin-bottom:16px; }
.view-heading { gap:13px; }
.view-header h1 { font-size:23px; letter-spacing:-.025em; }
.home-header h1 { letter-spacing:-.025em; }
.back-button, .subview-back { min-height:40px; border-radius:24px; background:linear-gradient(180deg,var(--u-card),var(--u-wash)); }
.data-list { min-height:0; }
.quick-user-row, .history-row, .recording-row, .message-list-row, .group-member-row {
  min-height:49px; display:flex; align-items:center; gap:10px; padding:6px 2px;
  border:0; border-bottom:1px solid var(--u-line); border-radius:0; background:transparent;
  box-shadow:none; margin:0;
}
.quick-user-row > i, .avatar, .group-member-row .avatar, .message-list-row .avatar {
  flex:0 0 36px; width:36px; height:36px; font-size:14px;
  background:linear-gradient(145deg,var(--u-wash),var(--u-wash)); color:var(--u-accent);
}
.user-avatar-color-0 { background:linear-gradient(145deg,var(--u-wash),var(--u-wash)) !important; color:var(--u-accent) !important; }
.user-avatar-color-1 { background:linear-gradient(145deg,var(--u-goodwash),var(--u-goodwash)) !important; color:var(--u-good) !important; }
.user-avatar-color-2 { background:linear-gradient(145deg,var(--u-mark),var(--u-mark)) !important; color:var(--u-warmtext) !important; }
.user-avatar-color-3 { background:linear-gradient(145deg,var(--u-alertwash),var(--u-alertwash)) !important; color:var(--u-accent) !important; }
.user-avatar-color-4 { background:linear-gradient(145deg,var(--u-wash),var(--u-line)) !important; color:var(--u-accent) !important; }
.user-avatar-color-5 { background:linear-gradient(145deg,var(--u-mark),var(--u-mark)) !important; color:var(--u-warmtext) !important; }
.quick-user-row:nth-of-type(3n) > i, .history-row:nth-of-type(3n) .avatar, .recording-row:nth-of-type(3n) .avatar { background:linear-gradient(145deg,var(--u-wash),var(--u-wash)); color:var(--u-accent); }
.history-copy { gap:3px; }
.quick-user-row strong, .history-copy strong, .message-list-row strong, .group-member-row .history-copy strong { font-size:14px; line-height:1.15; }
.history-copy span, .message-list-row span, .group-member-row .history-copy span { color:var(--u-muted); font-size:12px; line-height:1.3; }
.quick-user-row button, .history-row button, .recording-row button { flex:0 0 32px; width:32px; height:32px; border-radius:10px; font-size:15px; }
.group-member-row { min-height:49px; }
.group-member-row button.danger, .group-member-row button[data-user-remove] { min-height:34px; padding:6px 10px; border:1px solid var(--u-line); border-radius:11px; background:var(--u-card); color:var(--u-alert); font-size:11px; font-weight:650; white-space:nowrap; }
.group-member-row button:not(.danger):not([data-user-remove]) { min-height:34px; padding:6px 10px; border-radius:10px; font-size:11px; white-space:nowrap; }
.group-content h2 { margin:10px 0 6px; font-size:15px; }
#group-members-view > label { margin:8px 0 6px; font-size:13px; }
#group-select, .group-content .search-field { min-height:42px; border-radius:12px; }
#group-members { gap:0; padding:2px 0 0; }
.group-member-add select, .shopping-add input, .group-content .search-field { background:var(--u-card); border-color:var(--u-line); }
.group-content .prototype-note { padding:0; border:0; border-radius:0; background:transparent; color:var(--u-muted); font-size:12px; }
.message-list-row { align-items:flex-start; }
.message-list-row time { font-size:10px; }
.message-list-row > button { flex:0 0 auto; }
.search-field { border-radius:12px; box-shadow:0 1px 3px #20365408; }
.data-list .empty-state { margin:0; border:1px dashed var(--u-line); border-radius:14px; background:var(--u-card); }
.app-footer { border-color:var(--u-line); }
@media (max-width:520px) {
  .group-member-row { gap:7px; padding:7px; }
  .group-member-row .avatar { flex-basis:32px; width:32px; height:32px; }
  .group-member-row button.danger, .group-member-row button[data-user-remove] { padding:5px 7px; font-size:10px; }
}


/* Unified selection and search controls across every Adele app view. */
select {
  min-height:42px;
  padding:8px 44px 8px 12px;
  border:1px solid var(--u-line);
  border-radius:12px;
  appearance:none;
  -webkit-appearance:none;
  background-color:var(--u-card);
  background-image:linear-gradient(45deg,transparent 43%,var(--u-button) 44% 58%,transparent 59%),linear-gradient(135deg,transparent 43%,var(--u-button) 44% 58%,transparent 59%);
  background-repeat:no-repeat;
  background-size:16px 16px;
  background-position:right 14px center;
}
select:focus-visible { outline:2px solid var(--u-focus); outline-offset:2px; }
.search-field {
  min-height:42px;
  align-items:center;
  gap:9px;
  padding:0 12px;
  color:var(--u-muted);
  font-size:15px;
}
.search-field .search-icon {
  display:block;
  flex:0 0 19px;
  width:19px;
  height:19px;
  fill:none;
  stroke:var(--u-muted);
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.search-field input,
.search-field input[type="search"] {
  flex:1;
  min-width:0;
  height:40px;
  margin:0;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  box-shadow:none;
  color:var(--u-ink);
  font:inherit;
  line-height:1.2;
}
.search-field input::placeholder { color:var(--u-muted); opacity:1; }
.search-field input[type="search"]::-webkit-search-cancel-button { cursor:pointer; }

/* Small alignment fixes requested for the group member controls. */
#groups-view .group-content #group-select {
  background-image: none;
  padding-right: 52px;
}
#groups-view .group-content #group-members-view > label:first-child {
  position: relative;
}
#groups-view .group-content #group-members-view > label:first-child::after {
  content: "";
  position: absolute;
  right: 17px;
  bottom: 15px;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--u-button);
  border-bottom: 2.5px solid var(--u-button);
  border-radius: 1px;
  transform: rotate(45deg);
  pointer-events: none;
}
#groups-view .group-content #group-members-view > .search-field {
  align-items: center;
  gap: 9px;
}
#groups-view .group-content #group-members-view > .search-field .search-icon {
  transform: translateY(3px);
}
#phone-active-call-view .group-call-panel textarea {
  min-height: 92px;
  padding: 11px 12px;
  border: 1px solid var(--u-line);
  border-radius: 12px;
  background: var(--u-card);
  color: var(--u-ink);
  font: inherit;
  line-height: 1.4;
  box-shadow: 0 1px 3px #20365408;
}
#phone-active-call-view .group-call-panel textarea:focus-visible {
  border-color: var(--u-line);
  outline: 2px solid var(--u-focus);
  outline-offset: 1px;
}

/* Clear, large vector icons for the existing call navigation tabs. */
#phone-view .phone-tab .tab-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  margin: 0;
  font-size: 0;
  line-height: 1;
}
#phone-view .phone-tab .tab-icon svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#phone-view .phone-tab.selected .tab-icon svg { stroke-width: 2.3; }

/* Call recordings: list, recording detail, transcript, and no-audio states. */
.recordings-header { align-items:center; gap:8px; margin-bottom:10px; }
.recordings-header .view-heading { flex:1 1 auto; min-width:0; gap:9px; }
.recordings-mark { background:linear-gradient(145deg,var(--u-alertfill),var(--u-alertfill)); color:var(--u-white); border-radius:13px; font-size:23px; font-weight:750; }
.recordings-mark svg { display:block; width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:2.1; stroke-linecap:round; stroke-linejoin:round; }
.recordings-mark::after { content:none; }
.recordings-view-title { display:flex; flex-direction:column; gap:1px; margin:0 0 2px; font-size:19px !important; line-height:1.02; letter-spacing:-.035em; }
.recordings-view-title span { display:block; }
.recordings-header .view-heading p { font-size:12px; line-height:1.15; }
.recordings-header .back-button { min-height:34px; padding:5px 9px 5px 6px; gap:5px; font-size:11px; }
.recordings-header .back-chevron { flex-basis:21px; width:21px; height:21px; }
.recordings-content { min-height:0; }
.recording-subview { min-height:0; }
.recording-search { margin:2px 0 8px; }
.recording-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin:0 0 10px; }
.recording-tabs button { min-width:0; min-height:36px; display:flex; align-items:center; justify-content:center; gap:5px; padding:6px 5px; border:1px solid var(--u-line); border-radius:11px; background:var(--u-wash); color:var(--u-muted); font-size:11px; font-weight:650; white-space:nowrap; }
.recording-tabs button svg { width:15px; height:15px; flex:0 0 15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.recording-tabs button.selected { border-color:var(--u-mid); background:var(--u-button); color:var(--u-white); box-shadow:0 2px 5px #2587f233; }
.recording-list-title { margin:4px 0 5px !important; font-size:15px !important; }
.recordings-list { display:flex; flex-direction:column; gap:6px; }
.recording-card { min-width:0; min-height:54px; display:grid; grid-template-columns:34px minmax(90px,1fr) auto auto auto; align-items:center; gap:7px; padding:7px 8px; border:1px solid var(--u-line); border-radius:12px; background:linear-gradient(110deg,var(--u-card),var(--u-card)); box-shadow:0 2px 5px #1c2c4208; }
.recording-card > .avatar { flex:0 0 32px; width:32px; height:32px; font-size:13px; background:var(--u-wash); color:var(--u-accent); }
.recording-card:nth-child(4n+2) > .avatar { background:var(--u-wash); color:var(--u-good); }
.recording-card:nth-child(4n+3) > .avatar { background:var(--u-mark); color:var(--u-warmtext); }
.recording-card-copy { min-width:0; display:flex; flex-direction:column; gap:3px; }
.recording-card-copy strong { overflow:hidden; color:var(--u-ink); font-size:12px; line-height:1.15; text-overflow:ellipsis; white-space:nowrap; }
.recording-card-date { min-width:0; display:flex; align-items:center; gap:4px; overflow:hidden; color:var(--u-muted); font-size:9px; line-height:1.15; text-overflow:ellipsis; white-space:nowrap; }
.recording-card-date svg { width:12px; height:12px; flex:0 0 12px; fill:none; stroke:var(--u-muted); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.recording-duration { color:var(--u-muted); font-size:10px; white-space:nowrap; }
.recording-kind { display:inline-flex; align-items:center; justify-content:center; max-width:82px; min-height:21px; padding:3px 7px; border-radius:8px; background:var(--u-wash); color:var(--u-accent); font-size:9px; font-weight:650; line-height:1.1; white-space:nowrap; }
.recording-kind.other { background:var(--u-wash); color:var(--u-accent); }
.recording-filter-note { margin:0 0 10px; color:var(--u-muted); font-size:11px; line-height:1.4; }
.recording-classification-note { display:block; margin-top:3px; color:var(--u-warmtext); font-size:10px; line-height:1.3; }
.recording-card-actions { display:flex; align-items:center; gap:4px; }
.recording-card-actions button { flex:0 0 26px; width:26px; height:26px; display:grid; place-items:center; padding:4px; border:1px solid transparent; border-radius:8px; }
.recording-card-actions button svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.recording-card-actions .call { background:var(--u-wash); color:var(--u-accent); }
.recording-card-actions .audio { background:var(--u-card); color:var(--u-alert); }
.recording-card-actions .transcript { background:var(--u-card); border-color:var(--u-line); color:var(--u-muted); }
.recording-card-actions button:disabled { opacity:1; cursor:default; }
.recording-shortcut:disabled { opacity:.55; }
.recording-subview-toolbar { display:flex; align-items:center; min-height:34px; margin:0 0 8px; }
.recording-subview-toolbar .subview-back { min-height:32px; padding:5px 10px 5px 6px; font-size:11px; }
.recording-call-summary { display:flex; align-items:center; gap:9px; margin:0 0 10px; padding:9px 10px; border:1px solid var(--u-line); border-radius:12px; background:var(--u-card); }
.recording-call-summary > .avatar { flex:0 0 40px; width:40px; height:40px; font-size:15px; background:var(--u-wash); color:var(--u-accent); }
.recording-call-copy { flex:1; min-width:0; }
.recording-call-copy h2 { overflow:hidden; margin:0 0 3px; font-size:15px; line-height:1.15; text-overflow:ellipsis; white-space:nowrap; }
.recording-call-copy p { overflow:hidden; margin:0; color:var(--u-muted); font-size:13px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.recording-call-summary .recording-kind { flex:0 0 auto; }
.recording-call-summary .recording-kind { padding:5px 9px; font-size:12px; }
.recording-waveform { margin:0 0 9px; padding:10px 11px 8px; border-color:var(--u-line); border-radius:13px; background:linear-gradient(110deg,var(--u-card),var(--u-wash)); }
.recording-waveform .waveform-bars { height:46px; margin:0 2px 3px; }
.recording-waveform input[type="range"] { display:block; height:17px; margin:-17px 0 1px; accent-color:var(--u-button); background:transparent; }
.recording-waveform input[type="range"]::-webkit-slider-runnable-track { height:3px; background:var(--u-line); border-radius:4px; }
.recording-waveform input[type="range"]::-webkit-slider-thumb { margin-top:-5px; }
.recording-waveform .waveform-times { position:relative; z-index:1; margin:0 1px 7px; font-size:9px; }
.recording-playback-toolbar { display:flex; align-items:center; justify-content:space-between; gap:7px; }
.recording-actions { flex:0 0 auto; align-items:center; gap:5px; margin:0; }
.recording-actions button { position:relative; min-width:28px; width:28px; height:28px; display:grid; place-items:center; padding:3px; border:0; border-radius:50%; background:transparent; color:var(--u-muted); font-size:13px; line-height:1; }
.recording-actions button small { position:absolute; top:14px; font-size:7px; font-weight:700; }
.recording-actions button.play-primary { flex-basis:36px; width:36px; height:36px; background:var(--u-button); color:var(--u-white); font-size:14px; }
.recording-speed-control { flex:0 0 auto; margin:0; }
.recording-speed-control select { width:auto; min-width:51px; min-height:28px; margin:0; padding:4px 22px 4px 8px; border-radius:8px; background-size:9px 9px,19px 19px; background-position:right 7px center,right 2px center; font-size:10px; }
.recording-volume-control { flex:1 1 80px; min-width:52px; display:flex; align-items:center; gap:5px; margin:0; color:var(--u-muted); }
.recording-volume-control svg { flex:0 0 16px; width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.recording-volume-control input[type="range"] { flex:1 1 auto; width:100%; min-width:35px; height:16px; margin:0; padding:0; accent-color:var(--u-button); }
.recording-transcript-toggle { width:100%; min-height:40px; display:grid; grid-template-columns:26px minmax(0,1fr) 18px; align-items:center; gap:8px; margin:0; padding:7px 10px; border:1px solid var(--u-line); border-radius:11px; background:var(--u-card); color:var(--u-ink); text-align:left; }
.transcript-file-icon { width:25px; height:25px; display:grid; place-items:center; border-radius:8px; background:var(--u-wash); color:var(--u-accent); font-size:15px; }
.recording-transcript-toggle strong { font-size:14px; }
.transcript-chevron { color:var(--u-muted); font-size:20px; line-height:1; text-align:right; }
.recording-transcript { margin:8px 0 0; padding:12px; border:1px solid var(--u-line); border-radius:12px; background:var(--u-card); }
.recording-transcript h3 { margin:0 0 10px; font-size:14px; }
.transcript-turn { padding:8px 0; border-bottom:1px solid var(--u-line); }
.transcript-turn:last-child { border-bottom:0; }
.transcript-turn-meta { display:flex; align-items:center; gap:8px; margin-bottom:5px; }
.transcript-speaker { display:inline-flex; padding:3px 8px; border-radius:10px; background:var(--u-wash); color:var(--u-accent); font-size:10px; font-weight:650; }
.transcript-turn:nth-child(odd) .transcript-speaker { background:var(--u-alertwash); color:var(--u-alert); }
.transcript-turn-meta time { color:var(--u-muted); font-size:12px; }
.transcript-turn p, .transcript-empty { margin:0; color:var(--u-ink); font-size:14px; line-height:1.45; white-space:pre-wrap; overflow-wrap:anywhere; }
.recording-audio-missing { min-height:155px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; margin:0 0 9px; padding:16px; border:1px solid var(--u-line); border-radius:13px; background:linear-gradient(110deg,var(--u-card),var(--u-wash)); color:var(--u-muted); text-align:center; }
.recording-missing-icon { width:33px; height:33px; color:var(--u-muted); }
.recording-missing-icon svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.recording-audio-missing strong { color:var(--u-ink); font-size:13px; }
.recording-audio-missing > span:not(.recording-missing-icon) { max-width:360px; font-size:10px; line-height:1.45; }
.recording-audio-missing .transcript-open-button { width:auto; min-height:34px; margin:2px 0 0; padding:7px 13px; border-radius:9px; font-size:11px; }
@media (max-width:520px) {
  .recordings-header .view-heading { gap:7px; }
  .recordings-header .app-mark { flex-basis:38px; width:38px; height:38px; }
  .recordings-header .back-button { padding-right:7px; font-size:10px; }
  .recording-card { grid-template-columns:30px minmax(80px,1fr) auto auto; gap:5px; padding:6px; }
  .recording-card > .avatar { flex-basis:28px; width:28px; height:28px; }
  .recording-duration { display:none; }
  .recording-kind { max-width:68px; padding:3px 5px; font-size:8px; }
  .recording-card-actions { gap:2px; }
  .recording-card-actions button { flex-basis:23px; width:23px; height:23px; padding:3px; }
  .recording-card-actions .call, .recording-card-actions .transcript { display:grid; }
  .recording-call-summary { gap:6px; padding:7px; }
  .recording-call-summary > .avatar { flex-basis:34px; width:34px; height:34px; }
  .recording-call-summary .recording-kind { max-width:72px; font-size:8px; }
  .recording-playback-toolbar { flex-wrap:wrap; }
  .recording-actions { flex:1 1 auto; justify-content:center; }
  .recording-volume-control { flex:1 1 100%; justify-content:flex-end; }
}
#recording-detail-view.no-audio .recording-transcript-toggle { display:none; }

/* Native audio device menus are replaced with a styled, keyboard accessible picker. */
.device-field { display:block; min-width:0; color:var(--u-ink); font-weight:650; }
.device-picker { position:relative; display:block; margin-top:5px; }
.native-device-select { position:absolute; width:1px; height:1px; min-height:1px; padding:0; border:0; opacity:0; pointer-events:none; }
.device-picker-trigger { width:100%; min-height:42px; display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0; padding:6px 8px 6px 12px; border:1px solid var(--u-line); border-radius:13px; background:linear-gradient(180deg,var(--u-card),var(--u-card)); color:var(--u-ink); box-shadow:0 1px 3px #2530440b; font:inherit; font-size:15px; font-weight:600; text-align:left; cursor:pointer; }
.device-picker-trigger:hover, .device-picker.is-open .device-picker-trigger { border-color:var(--u-line); background:var(--u-card); }
.device-picker-trigger:focus-visible { outline:2px solid var(--u-focus); outline-offset:2px; }
.device-picker-value { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.device-picker-chevron { position:relative; flex:0 0 28px; width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:var(--u-wash); }
.device-picker-chevron::after { content:""; width:8px; height:8px; margin-top:-4px; border-right:2.5px solid var(--u-button); border-bottom:2.5px solid var(--u-button); transform:rotate(45deg); border-radius:1px; }
.device-picker-menu { position:absolute; z-index:20; top:calc(100% + 5px); left:0; right:0; max-height:240px; overflow:auto; padding:5px; border:1px solid var(--u-line); border-radius:13px; background:linear-gradient(180deg,var(--u-card),var(--u-card)); box-shadow:0 10px 25px #1b2d461f,0 2px 6px #1b2d460d; }
.device-picker-option { position:relative; width:100%; min-height:42px; display:flex; align-items:center; gap:8px; padding:7px 9px; border:0; border-radius:9px; background:transparent; color:var(--u-muted); font:inherit; font-size:15px; font-weight:500; text-align:left; cursor:pointer; }
.device-picker-option:hover, .device-picker-option:focus-visible { background:var(--u-wash); outline:0; }
.device-picker-option.selected { background:var(--u-wash); color:var(--u-accent); font-weight:650; }
.device-option-check { flex:0 0 16px; width:16px; color:var(--u-accent); font-size:14px; font-weight:800; text-align:center; }
.recording-card-actions .recording-row-action { cursor:pointer; }
.recording-card-actions .recording-row-action:disabled { opacity:.4; cursor:default; }
.recording-volume-control input[type="range"] { cursor:pointer; }
.recording-transcript .transcript-turn { display:grid; grid-template-columns:minmax(60px,auto) minmax(0,1fr); align-items:start; gap:11px; padding:10px 2px; }
.recording-transcript .transcript-turn-meta { flex-direction:column; align-items:flex-start; gap:6px; margin:0; }
.recording-transcript .transcript-turn-meta time { font-size:12px; font-variant-numeric:tabular-nums; }
.recording-transcript .transcript-speaker { min-width:64px; justify-content:center; padding:6px 10px; font-size:13px; }
.recording-transcript .transcript-turn p { font-size:16px; line-height:1.6; }

/* Local typography and focus refinements requested for the current review. */
.messages-content .message-list-row strong { font-size:15px; line-height:1.25; }
.messages-content .message-list-row span { font-size:14px; line-height:1.45; }
.messages-content .message-list-row time { font-size:12px; }
.recordings-content .recording-card-copy strong { font-size:15px; line-height:1.2; }
.recordings-content .recording-card-date { font-size:12px; }
.recordings-content .recording-duration { font-size:13px; }
.recordings-content .recording-kind { max-width:112px; font-size:11px; }
.group-content h2 { font-size:17px; }
#groups-view .group-content #group-members-view > label:first-child { font-size:15px; }
#groups-view .group-content #group-select {
  min-height:44px; padding-right:52px; font-size:16px; font-weight:650;
  background-image:linear-gradient(45deg,transparent 43%,var(--u-button) 44% 58%,transparent 59%),linear-gradient(135deg,transparent 43%,var(--u-button) 44% 58%,transparent 59%);
  background-repeat:no-repeat; background-size:16px 16px; background-position:right 14px center;
}
#groups-view .group-content #group-members .group-member-row .history-copy strong { font-size:16px; line-height:1.2; }
#groups-view .group-content #group-members .group-member-row .history-copy span { font-size:14px; line-height:1.25; }
#groups-view .group-content #group-members .group-member-row button.danger { font-size:12px; }
#groups-view .group-content #group-members-search { height:44px; font-size:15px; }
#groups-view .group-content #group-add-user { min-height:44px; font-size:16px; font-weight:500; }
#groups-view .group-content #group-add-user option { font:inherit; }
.group-content .search-field:focus-within, .recording-search:focus-within { border-color:var(--u-line); outline:2px solid var(--u-focus); outline-offset:1px; }
.group-content .search-field input:focus-visible, .recording-search input:focus-visible { outline:0; }

/* Apply the search focus treatment to every search field and include its icon. */
.search-field:focus-within, .recording-search:focus-within {
  border-color:var(--u-line);
  outline:2px solid var(--u-focus);
  outline-offset:1px;
  box-shadow:0 0 0 3px #1689f414, 0 2px 6px #2036540d;
}
.search-field:focus-within .search-icon { stroke:var(--u-accent); }
.search-field input:focus-visible, .search-field input[type="search"]:focus-visible { outline:0; box-shadow:none; }

/* Consistent readable type for people, message, call and item listings. */
.data-list .quick-user-row strong,
.data-list .history-row .history-copy strong,
.data-list .recording-card-copy strong,
.data-list .message-list-row strong,
.data-list .group-member-row .history-copy strong { font-size:15px; line-height:1.25; font-weight:650; }
.data-list .quick-user-row .history-copy span,
.data-list .history-row .history-copy span,
.data-list .recording-card-date,
.data-list .message-list-row span,
.data-list .message-list-row time,
.data-list .group-member-row .history-copy span { font-size:13px; line-height:1.4; }
.data-list .recording-duration,
.data-list .recording-kind { font-size:12px; }
.data-list .shopping-row > span { font-size:15px; line-height:1.4; }
.data-list .empty-state { font-size:14px; }

/* Every native dropdown gets the same visible blue chevron badge. */
select:not(.native-device-select) {
  background-image:linear-gradient(45deg,transparent 43%,var(--u-button) 44% 58%,transparent 59%),linear-gradient(135deg,transparent 43%,var(--u-button) 44% 58%,transparent 59%);
  background-repeat:no-repeat;
  background-size:16px 16px;
  background-position:right 14px center;
}
.device-picker-chevron::after { transform:rotate(45deg); }

/* Make current phone subviews share readable text sizing. */
.phone-content { font-size:15px; }
.phone-content .phone-ready-banner strong,
.phone-content .group-call-panel h2,
.phone-content .panel h2 { font-size:18px; line-height:1.25; }
.phone-content .phone-ready-banner span,
.phone-content .group-call-panel > p,
.phone-content .group-call-panel .prototype-note { font-size:14px; line-height:1.45; }
.phone-content label { font-size:15px; }
.phone-content .history-copy strong,
.phone-content .group-member-row .history-copy strong,
.phone-content .contact-row strong { font-size:16px; }
.phone-content .history-copy span,
.phone-content .group-member-row .history-copy span,
.phone-content .contact-row span { font-size:14px; }

.message-compose-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:14px; }
.message-compose-actions .message-compose-bottom { width:100%; min-height:54px; margin:0; font-size:14px; }
.active-command-history { margin-top:18px; padding:13px 10px 12px; border:1px solid var(--u-line); border-radius:13px; background:var(--u-card); scroll-margin-bottom:24px; }
.active-command-history h3 { margin:0 0 7px; font-size:17px; }
.active-command-history > .prototype-note { margin:0 0 10px; color:var(--u-muted); font-size:12px; }
.active-command-history h4 { margin:9px 0 5px; color:var(--u-muted); font-size:13px; }
.active-command-prompt { padding:8px 0; border-bottom:1px solid var(--u-line); }
.active-command-prompt > button { width:100%; min-height:40px; padding:8px 10px; border:1px solid var(--u-line); border-radius:10px; background:var(--u-wash); color:var(--u-accent); text-align:left; font:inherit; font-weight:700; overflow-wrap:anywhere; }
.active-command-prompt p { margin:5px 1px 0; color:var(--u-muted); font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
.active-command-prompt p time { color:var(--u-muted); }
.active-command-history-executions { margin-top:10px; }
.active-command-entry { display:grid; gap:4px; padding:9px 2px; border-bottom:1px solid var(--u-line); }
.active-command-entry time { color:var(--u-muted); font-size:11px; overflow-wrap:anywhere; }
.active-command-entry strong { font-size:14px; line-height:1.35; }
.active-command-entry p { margin:0; color:var(--u-muted); font-size:13px; line-height:1.4; }
.group-activity-status { color:var(--u-muted); font-size:12px; font-weight:700; }
.group-activity-status-succeeded { color:var(--u-good); }
.group-activity-status-failed { color:var(--u-alert); }
.group-activity-status-unknown { color:var(--u-warmtext); }
.contacts-content #contacts-permissions-view > .prototype-note { margin:8px 0 12px; padding:10px 12px; border:1px solid var(--u-line); border-radius:12px; background:var(--u-card); color:var(--u-muted); font-size:14px; line-height:1.45; }
.contacts-content #contacts-permissions-view .group-member-row .history-copy span { overflow-wrap:anywhere; }
.contacts-content #group-users-list { max-height:min(48vh,560px); overflow-y:auto; overscroll-behavior:contain; padding:2px 4px 2px 1px; scrollbar-gutter:stable; }
.contact-tabs button { font-size:14px; }
.contact-tabs button[data-contact-view="permissions"] { min-width:0; }
.user-access input:disabled { opacity:1; cursor:default; }
#shopping-sms-recipient {
  min-height:44px; font-size:16px; font-weight:500;
  background-image:linear-gradient(45deg,transparent 43%,var(--u-button) 44% 58%,transparent 59%),linear-gradient(135deg,transparent 43%,var(--u-button) 44% 58%,transparent 59%);
  background-repeat:no-repeat; background-size:16px 16px; background-position:right 14px center;
}
#shopping-sms-recipient option { font:inherit; }
.shopping-mark svg { width:32px !important; height:32px !important; stroke-width:2.25 !important; }
.shopping-mark { background:linear-gradient(145deg,var(--u-copper),var(--u-copper)); color:var(--u-white); box-shadow:0 2px 5px #1b26351c,inset 0 1px 0 #ffffff55; }
.group-management-actions { display:flex; gap:8px; margin:0 0 8px; }
.group-management-actions button { flex:1; min-width:0; min-height:38px; font-size:13px; }
.group-editor { margin:0 0 8px; padding:10px 12px; border:1px solid var(--u-line); border-radius:13px; background:var(--u-card); }
.group-editor label { margin:0 0 8px; font-size:14px; }
.group-editor input { font-size:15px; }
.group-editor > div { display:flex; gap:8px; }
.group-editor > div button { flex:1; }
.group-edit-status { min-height:0; margin:0; color:var(--u-muted); font-size:13px; }
.group-edit-status:empty { display:none; }
.group-delete-confirmation { margin:8px 0; padding:12px; border:1px solid var(--u-line); border-radius:13px; background:var(--u-card); }
.group-delete-confirmation h2 { margin:0 0 7px; font-size:16px; }
.group-delete-confirmation p { margin:6px 0; color:var(--u-muted); font-size:13px; }
.group-delete-confirmation > div { display:flex; gap:8px; margin-top:10px; }
.group-delete-confirmation > div button { flex:1; }
.group-delete-confirmation #group-delete-name { color:var(--u-ink); font-weight:700; }
.group-delete-confirmation #group-delete-status:empty { display:none; }
.user-access label { font-size:14px; }
#groups-view .group-content #group-members-view > label:first-child::after { content:none; }
#groups-view .group-content #group-select, #shopping-list-select, #shopping-sms-recipient {
  appearance:none; -webkit-appearance:none;
  background-image:linear-gradient(45deg,transparent 43%,var(--u-button) 44% 58%,transparent 59%),linear-gradient(135deg,transparent 43%,var(--u-button) 44% 58%,transparent 59%);
  background-repeat:no-repeat; background-size:16px 16px; background-position:right 14px center;
}
#shopping-list-select { min-height:44px; font-size:16px; font-weight:650; }
#shopping-list-select option, #shopping-sms-recipient option, #group-select option, #group-add-user option { font:inherit; }
.group-content .search-field, .recordings-content .recording-search { min-height:46px; }
.group-content .search-field .search-icon, .recordings-content .recording-search .search-icon { transform:translateY(1px); }
.user-access label { font-size:14px; }
.phone-content .history-row .history-copy strong { font-size:16px; }
.phone-content .history-row .history-copy span { font-size:14px; }
.group-management-actions { display:flex; gap:8px; margin:0 0 8px; }
.group-management-actions button { flex:1; min-width:0; min-height:38px; font-size:13px; }
.group-editor { margin:0 0 8px; padding:10px 12px; border:1px solid var(--u-line); border-radius:13px; background:var(--u-card); }
.group-editor label { margin:0 0 8px; font-size:14px; }
.group-editor input { font-size:15px; }
.group-editor > div { display:flex; gap:8px; }
.group-editor > div button { flex:1; }
.group-edit-status { min-height:0; margin:0; color:var(--u-muted); font-size:13px; }
.group-edit-status:empty { display:none; }


/* Final app-wide listing, dropdown, and search focus normalization. */
.data-list .quick-user-row strong, .data-list .history-copy strong,
.data-list .message-list-row strong, .data-list .group-member-row strong,
.data-list .recording-card-copy strong { font-size:16px; line-height:1.25; font-weight:650; }
.data-list .quick-user-row .history-copy span, .data-list .history-row .history-copy span,
.data-list .message-list-row span, .data-list .message-list-row time,
.data-list .group-member-row .history-copy span, .data-list .recording-card-date { font-size:14px; line-height:1.4; }
.data-list .recording-duration, .data-list .recording-kind { font-size:13px; }
.data-list .shopping-row > span { font-size:16px; line-height:1.4; }
.data-list .empty-state { font-size:15px; }
.message-list-rows .message-list-row strong { font-size:16px; line-height:1.25; }
.message-list-rows .message-list-row span { font-size:14px; line-height:1.45; }
.message-list-rows .message-list-row time { font-size:13px; }
.search-field:focus-within, .recording-search:focus-within {
  border-color:var(--u-line); outline:2px solid var(--u-focus); outline-offset:-2px;
  box-shadow:inset 0 0 0 1px #8fc4ff, 0 2px 6px #2036540d;
}
.search-field:focus-within .search-icon { stroke:var(--u-accent); }
.search-field input:focus-visible, .recording-search input:focus-visible { outline:0; box-shadow:none; }
select:not(.native-device-select) {
  background-repeat:no-repeat !important; background-size:16px 16px !important;
  background-position:right 14px center !important;
}

/* Electron-safe chevrons: draw the down arrow with CSS strokes, without the old blue dot. */
select:not(.native-device-select) {
  background-image:linear-gradient(45deg,transparent 43%,var(--u-button) 44% 58%,transparent 59%),
    linear-gradient(135deg,transparent 43%,var(--u-button) 44% 58%,transparent 59%) !important;
  background-repeat:no-repeat !important;
  background-size:7px 7px,7px 7px !important;
  background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50% !important;
}
.search-field input:not([type="checkbox"]):not([type="range"]):not([type="hidden"]):focus-visible {
  border:0 !important;
  border-radius:0;
  outline:0 !important;
  box-shadow:none !important;
}
.permission-groups-summary { margin:10px 0 14px; }
.permission-groups-summary > h3 { margin:0 0 8px; color:var(--u-muted); font-size:16px; }
.permission-groups-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.permission-group-card { min-width:0; padding:10px 11px; border:1px solid var(--u-line); border-radius:13px; background:linear-gradient(180deg,var(--u-card),var(--u-card)); box-shadow:0 2px 6px #20365408; }
.permission-group-card h3 { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 6px; color:var(--u-ink); font-size:14px; line-height:1.25; }
.permission-group-card h3 span { min-width:24px; padding:2px 6px; border-radius:12px; background:var(--u-wash); color:var(--u-accent); font-size:12px; text-align:center; }
.permission-group-card ul { display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.permission-group-card li { display:grid; gap:2px; padding-top:6px; border-top:1px solid var(--u-line); }
.permission-group-card li:first-child { padding-top:0; border-top:0; }
.permission-group-card li strong { color:var(--u-ink); font-size:14px; line-height:1.25; }
.permission-group-card li span { color:var(--u-muted); font-size:13px; }
.permission-group-card li small { color:var(--u-muted); font-size:12px; line-height:1.35; }
.permission-group-empty { margin:0; color:var(--u-muted); font-size:13px; }
.recipient-chip small { color:var(--u-accent); font-size:11px; font-weight:650; }
.messages-content { display:flex; flex-direction:column; }
.messages-home-menu { display:flex; flex:0 0 auto; flex-direction:column; }
.message-home-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:8px 0 0; }
.message-home-card { min-width:0; min-height:116px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:12px 8px; border:1px solid transparent; border-radius:15px; color:var(--u-ink); box-shadow:none; }
.message-home-card:hover { filter:brightness(.98); transform:translateY(-1px); }
.message-home-card strong { font-size:15px; line-height:1.2; text-align:center; }
.message-home-icon { width:48px; height:48px; flex:0 0 48px; display:grid; place-items:center; border-radius:13px; color:var(--u-white); box-shadow:0 2px 5px #1b26351c,inset 0 1px 0 #ffffff55; }
.message-home-icon svg { display:block; width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.message-home-icon > .message-home-icon-mark { display:contents; }
.message-home-icon > .message-home-icon-mark svg { width:25px; height:25px; }
.message-home-card[data-message-view="signatures"] { --app-color-top:var(--u-button); --app-color-bottom:var(--u-button); --app-surface:var(--u-wash); --app-ink:var(--u-white); }
.message-home-card[data-message-view="signatures"] .message-home-icon { color:var(--app-ink); background:linear-gradient(145deg,var(--app-color-top),var(--app-color-bottom)); }
.message-home-card[data-message-view="signatures"]:focus-visible { outline:3px solid var(--u-focus); outline-offset:2px; }
.message-variant-heading { display:flex; align-items:center; gap:10px; }
.message-variant-heading-icon { display:inline-grid; flex:0 0 38px; width:38px; height:38px; place-items:center; border-radius:11px; color:var(--u-white); background:linear-gradient(145deg,var(--u-button),var(--u-button)); }
.message-variant-heading-icon svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.variant-resolution-help { padding:11px 13px; border:1px solid var(--u-line); border-radius:11px; background:var(--u-card); color:var(--u-muted); font-size:13px; line-height:1.45; }
.variant-defaults-sms { margin:12px 0; }
.variant-defaults-sms textarea[readonly] { background:var(--u-card); border-color:var(--u-line); color:var(--u-ink); }
.variant-effective-preview { margin:9px 0 0; padding:9px 11px; border-radius:9px; background:var(--u-wash); color:var(--u-muted); font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.permission-editor-container { width:100%; margin-top:10px; }
.permission-editor { display:grid; gap:9px; padding:12px; border:1px solid var(--u-line); border-radius:12px; background:var(--u-card); }
.permission-editor fieldset { display:grid; gap:9px; margin:0; padding:0; border:0; }
.permission-editor legend { margin-bottom:4px; color:var(--u-ink); font-size:13px; font-weight:700; }
.permission-editor label { display:flex; align-items:center; gap:8px; color:var(--u-muted); font-size:13px; }
.permission-editor input { width:17px; height:17px; accent-color:var(--u-button); }
.permission-editor-actions { display:flex; flex-wrap:wrap; gap:8px; }
.permission-editor-actions button { min-height:36px; padding:7px 12px; }
.permission-editor [data-permission-status].success { color:var(--u-good); }
.permission-editor [data-permission-status].error { color:var(--u-alert); }
.permission-editor :focus-visible { outline:3px solid var(--u-focus); outline-offset:2px; }
.inbox-home { background:var(--u-goodwash); }.inbox-home .message-home-icon { background:linear-gradient(145deg,var(--u-goodfill),var(--u-goodfill)); }
.scheduled-home { background:var(--u-wash); }.scheduled-home .message-home-icon { background:linear-gradient(145deg,var(--u-button),var(--u-button)); }
.sent-home { background:var(--u-card); }.sent-home .message-home-icon { background:linear-gradient(145deg,var(--u-alertfill),var(--u-alertfill)); }
.drafts-home { background:var(--u-mark); }.drafts-home .message-home-icon { background:linear-gradient(145deg,var(--u-copper),var(--u-copper)); }
.messages-home-compose { min-height:58px; margin:14px 0 12px; font-size:16px; }
.messages-home-compose span { margin-right:8px; font-size:26px; line-height:1; vertical-align:-2px; }
.messages-content > .sync-status { margin-top:auto; }
@media (max-height:700px) { .message-home-card { min-height:98px; } .messages-home-compose { min-height:50px; } }
@media (max-width:520px) { .permission-groups-grid { grid-template-columns:1fr; } }

/* In-app help browser */
.help-toolbar { flex:0 0 auto; display:flex; align-items:stretch; gap:10px; margin:0 0 10px; }
.help-toolbar .search-field { flex:1; min-width:0; height:42px; min-height:42px; margin:0; border-radius:12px; }
.help-toolbar .search-field input { flex:1; font-size:14px; }
#help-result-count { flex:0 0 auto; color:var(--u-muted); font-size:12px; }
.help-layout { flex:1; min-height:0; display:grid; grid-template-columns:minmax(145px, .8fr) minmax(0, 1.5fr); gap:10px; }
.help-topics, .help-article { min-height:0; overflow:auto; border:1px solid var(--u-line); border-radius:14px; background:var(--u-card); }
.help-topics { padding:6px; }
.help-topic { width:100%; display:flex; flex-direction:column; align-items:flex-start; gap:3px; margin:0 0 4px; padding:9px 10px; border:1px solid transparent; border-radius:10px; color:var(--u-ink); background:transparent; text-align:left; cursor:pointer; }
.help-topic:hover { background:var(--u-card); }
.help-topic.selected { border-color:var(--u-line); background:var(--u-wash); color:var(--u-ink); }
.help-topic span { font-size:13px; font-weight:650; line-height:1.25; }
.help-topic small { color:var(--u-muted); font-size:11px; }
.help-article { padding:18px 20px; }
.help-article h2 { margin:0 0 12px; color:var(--u-ink); font-size:20px; }
.help-article p { margin:0 0 12px; color:var(--u-muted); font-size:15px; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }
.help-article .help-category { margin:0 0 5px; color:var(--u-muted); font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.help-article .help-source { margin:18px 0 0; padding-top:10px; border-top:1px solid var(--u-line); color:var(--u-muted); font-size:11px; }
.help-modes { display:flex; gap:7px; margin:0 0 10px; }
.help-modes button { min-height:38px; padding:7px 12px; border:1px solid var(--u-line); border-radius:10px; background:var(--u-card); color:var(--u-muted); font:inherit; font-size:13px; }
.help-modes button[aria-pressed="true"] { border-color:var(--u-line); background:var(--u-card); color:var(--u-muted); font-weight:700; }
.help-modes button:focus-visible, .help-topic:focus-visible, .help-command-detail summary:focus-visible, .help-service-detail summary:focus-visible { outline:3px solid var(--u-focus); outline-offset:2px; }
.help-domain-filter-wrap { display:flex; align-items:center; gap:6px; min-height:42px; color:var(--u-muted); font-size:12px; }
.help-domain-filter-wrap select { max-width:190px; height:42px; min-height:42px; margin:0; padding:6px 28px 6px 9px; border:1px solid var(--u-line); border-radius:10px; background:var(--u-card); color:var(--u-ink); font:inherit; }
.help-command-detail, .help-service-detail { margin:14px 0; padding:12px 14px; border:1px solid var(--u-line); border-radius:12px; background:var(--u-card); }
.help-command-detail summary, .help-service-detail summary { cursor:pointer; color:var(--u-muted); font-size:14px; font-weight:700; }
.help-command-detail section, .help-service-detail section { margin-top:12px; }
.help-command-detail h3, .help-service-detail h3 { margin:12px 0 5px; color:var(--u-muted); font-size:14px; }
.help-command-detail p, .help-service-detail p { margin:0; }
.help-command-detail li, .help-service-detail li { margin:0 0 7px; color:var(--u-muted); line-height:1.5; }
.help-command-id { margin-top:18px !important; color:var(--u-muted); font-size:12px; }
.help-command-id code { overflow-wrap:anywhere; }
.voice-line-field { display:flex; flex-direction:column; gap:6px; margin:14px 0; color:var(--u-ink); font-size:13px; font-weight:650; }
.voice-line-field textarea, .voice-line-field input { width:100%; min-height:76px; padding:10px; border:1px solid var(--u-line); border-radius:9px; color:var(--u-ink); background:var(--u-card); font:inherit; font-size:14px; line-height:1.5; resize:vertical; }
.voice-line-field input { min-height:42px; }
.voice-line-field small { color:var(--u-muted); font-weight:400; }
.message-variant-editor { display:grid; gap:10px; margin:16px 0; padding:14px; border:1px solid var(--u-line); border-radius:12px; background:var(--u-card); }
.message-variant-editor label, .variant-defaults label { display:grid; gap:5px; margin:0; color:var(--u-ink); font-size:13px; font-weight:650; }
.message-variant-editor textarea, .variant-defaults textarea { min-height:76px; padding:10px; resize:vertical; }
.variant-defaults { display:grid; gap:12px; }
.message-variant-row { margin:10px 0; padding:12px; border:1px solid var(--u-line); border-radius:10px; background:var(--u-card); }
.message-variant-row p { margin:8px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.message-variant-row small { display:block; color:var(--u-muted); }
/* Row 460: Asetukset view (speech settings). */
#settings-view .settings-content { overflow:auto; padding:0 4px 24px; }
.settings-section-title { margin:6px 0 10px; font-size:17px; }
.voice-lines-group { margin:18px 0 6px; padding-top:10px; border-top:1px solid var(--u-line); font-size:15px; }
.voice-line-field input[type="range"] { min-height:24px; padding:0; border:0; }
.voice-line-pause { display:flex; align-items:center; gap:10px; }
.voice-line-pause output { min-width:64px; color:var(--u-ink); font-weight:650; }
.voice-line-auto { margin:10px 0; color:var(--u-muted); font-size:13px; }
.voice-line-preview { margin:6px 0 12px; padding:8px 10px; border-radius:8px; background:var(--u-wash); color:var(--u-muted); font-size:13px; }
.voice-lines-actions { display:flex; gap:8px; flex-wrap:wrap; }
.help-updated { flex:0 0 auto; margin:8px 2px 0; color:var(--u-muted); font-size:11px; line-height:1.35; }
.help-mark { background:linear-gradient(145deg,var(--u-button),var(--u-button)); }
.settings-mark { background:linear-gradient(145deg,var(--u-mid),var(--u-button)); }
.help-doc-nav { display:flex; flex:0 0 auto; gap:7px; margin:0 0 9px; overflow-x:auto; padding:2px 1px 5px; }
.help-doc-tab { flex:0 0 auto; max-width:260px; padding:8px 11px; border:1px solid var(--u-line); border-radius:11px; background:var(--u-card); color:var(--u-muted); font:inherit; font-size:12px; font-weight:650; cursor:pointer; }
.help-doc-tab.selected { border-color:var(--u-line); background:var(--u-card); color:var(--u-muted); }
.help-library { flex:1; overflow:auto; padding:18px 20px; }
.help-layout > .help-library { grid-column:1 / -1; grid-row:1 / -1; }
.help-article [data-help-return] { margin-bottom:12px; }
@media (max-width:520px) { .help-layout.help-reading { grid-template-rows:minmax(0,1fr); }.help-layout.help-reading > .help-topics { display:none; }.help-article [data-help-return] { position:sticky; top:-14px; z-index:1; }.help-article [data-help-return]:focus-visible { outline-offset:2px; } }
.help-advanced-actions { flex:0 0 auto; margin:4px 0 0; }
.help-advanced-actions button, .help-editor-back { padding:4px 0; border:0; background:none; color:var(--u-accent); font:inherit; font-size:12px; text-decoration:underline; cursor:pointer; }
.help-editor-back { margin:0 0 12px; }
.help-library h2 { font-size:22px; line-height:1.25; }
.help-source-note { color:var(--u-muted) !important; font-size:12px !important; }
.help-download { display:flex; align-items:center; gap:10px; margin:12px 0 16px; }
.help-download button { min-height:38px; padding:7px 13px; border:1px solid var(--u-line); border-radius:10px; background:var(--u-wash); color:var(--u-ink); font:inherit; font-size:13px; font-weight:650; cursor:pointer; }
.help-download button:disabled { opacity:.6; }
.help-download span { color:var(--u-muted); font-size:12px; }
.help-inline-toc { display:flex; flex-wrap:wrap; gap:6px 12px; margin:0 0 14px; padding:12px; border:1px solid var(--u-line); border-radius:11px; background:var(--u-card); }
.help-inline-toc a { color:var(--u-accent); font-size:12px; line-height:1.4; }
.help-full-section { margin:0 0 8px; border:1px solid var(--u-line); border-radius:11px; background:var(--u-card); scroll-margin-top:8px; }
.help-full-section[open] { background:var(--u-card); }
.help-full-section summary { padding:12px 14px; color:var(--u-ink); font-size:14px; font-weight:700; cursor:pointer; }
.help-full-section > div { padding:0 15px 9px; }
.help-full-section p { margin:0 0 11px; color:var(--u-muted); font-size:14px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.help-full-section:focus-within, .help-doc-tab:focus-visible, .help-inline-toc a:focus-visible { outline:3px solid var(--u-focus); outline-offset:2px; }
@media (max-width:520px) { .help-layout { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(96px,.7fr) minmax(0,1.3fr); gap:7px; }.help-topics { padding:4px; }.help-topic { padding:8px 7px; }.help-article { padding:14px 12px; }.help-article p { font-size:15px; } }
@media (max-width:520px) { .help-toolbar { flex-wrap:wrap; }.help-toolbar .search-field { flex-basis:100%; }.help-domain-filter-wrap { flex:1; }.help-domain-filter-wrap select { flex:1; max-width:none; } }
@media (max-width:520px) { .help-library { padding:14px 12px; }.help-full-section summary { padding:11px 12px; }.help-full-section > div { padding:0 12px 8px; }.help-full-section p { font-size:14px; }.help-doc-tab { max-width:210px; } }

/* Row 871: home tiles size their rows to the content (no fixed row count, any number of tiles);
   the grid area scrolls vertically when the tiles do not fit the window. */
.app-grid {
  grid-template-rows:none;
  grid-auto-rows:minmax(min-content,1fr);
  align-content:start;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:2px 3px 5px;
  scrollbar-gutter:stable;
}
.app-tile {
  min-height:min-content;
  height:auto;
  padding:10px 6px;
  gap:6px;
}
.app-tile strong,
.tile-caption {
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:visible;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
  text-overflow:clip;
  flex:0 0 auto;
}
.app-tile strong { line-height:1.18; }
.tile-caption { line-height:1.28; }
.tile-icon { flex-basis:44px; width:44px; height:44px; border-radius:13px; }
.tile-icon svg { width:25px; height:25px; }

@media (max-height:700px) {
  .app-grid { gap:5px; }
  .app-tile { gap:3px; padding:4px 3px; }
  .tile-icon { width:34px; height:34px; flex-basis:34px; }
  .tile-icon svg { width:21px; height:21px; }
  .app-tile strong { font-size:12px; line-height:1.12; }
  .tile-caption { font-size:10px; line-height:1.12; }
}
.icon-library { position:absolute; width:0; height:0; }

/* Each paired home tile and view header reads its colors from one theme token set. */
.app-tile[data-app-key="phone"], .app-mark[data-app-key="phone"] {
  --app-color-top:var(--u-button); --app-color-bottom:var(--u-button); --app-surface:var(--u-wash); --app-ink:var(--u-white);
}
.app-tile[data-app-key="messages"], .app-mark[data-app-key="messages"] {
  --app-color-top:var(--u-goodfill); --app-color-bottom:var(--u-goodfill); --app-surface:var(--u-goodwash); --app-ink:var(--u-white);
}
.app-tile[data-app-key="contacts"], .app-mark[data-app-key="contacts"] {
  --app-color-top:var(--u-button); --app-color-bottom:var(--u-button); --app-surface:var(--u-wash); --app-ink:var(--u-white);
}
.app-tile[data-app-key="groups"], .app-mark[data-app-key="groups"] {
  --app-color-top:var(--u-copper); --app-color-bottom:var(--u-alertfill); --app-surface:var(--u-mark); --app-ink:var(--u-white);
}
.app-tile[data-app-key="status"], .app-mark[data-app-key="status"] {
  --app-color-top:var(--u-button); --app-color-bottom:var(--u-button); --app-surface:var(--u-wash); --app-ink:var(--u-white);
}
.app-tile[data-app-key="shopping"], .app-mark[data-app-key="shopping"] {
  --app-color-top:var(--u-copper); --app-color-bottom:var(--u-copper); --app-surface:var(--u-mark); --app-ink:var(--u-white);
}
.app-tile[data-app-key="notes"], .app-mark[data-app-key="notes"] {
  --app-color-top:var(--u-copper); --app-color-bottom:var(--u-copper); --app-surface:var(--u-mark); --app-ink:var(--u-white);
}
.app-tile[data-app-key="settings"], .app-mark[data-app-key="settings"] {
  --app-color-top:var(--u-mid); --app-color-bottom:var(--u-button); --app-surface:var(--u-wash); --app-ink:var(--u-white);
}
.app-tile[data-app-key="help"], .app-mark[data-app-key="help"] {
  --app-color-top:var(--u-button); --app-color-bottom:var(--u-button); --app-surface:var(--u-card); --app-ink:var(--u-white);
}
.app-tile[data-app-key="recordings"], .app-mark[data-app-key="recordings"] {
  --app-color-top:var(--u-alertfill); --app-color-bottom:var(--u-alertfill); --app-surface:var(--u-card); --app-ink:var(--u-white);
}
.app-tile[data-app-key="football-live"], .app-mark[data-app-key="football-live"] {
  --app-color-top:var(--u-goodfill); --app-color-bottom:var(--u-goodfill); --app-surface:var(--u-goodwash); --app-ink:var(--u-white);
}
.app-tile[data-app-key="flight-live"], .app-mark[data-app-key="flight-live"] {
  --app-color-top:var(--u-button); --app-color-bottom:var(--u-button); --app-surface:var(--u-wash); --app-ink:var(--u-white);
}
.app-tile[data-app-key], .app-mark[data-app-key] { background:var(--app-surface); }
.app-tile[data-app-key] .tile-icon, .app-mark[data-app-key] {
  color:var(--app-ink);
  background:linear-gradient(145deg,var(--app-color-top),var(--app-color-bottom));
}
.app-tile[data-app-key="phone"] .tile-icon svg,
.app-mark[data-app-key="phone"] svg { fill:var(--u-white); stroke:none; }
.app-tile[data-app-key="recordings"] .tile-icon svg,
.app-mark[data-app-key="recordings"] svg { fill:none; stroke:var(--u-white); }
.app-mark[data-app-key] svg { display:block; width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.live-view-content { flex:1; min-height:0; overflow:auto; padding:0 2px 8px; }
.live-control-form { display:grid; gap:9px; padding:14px; border:1px solid var(--u-line); border-radius:14px; background:var(--u-card); box-shadow:0 2px 8px #17283b08; }
.live-control-form h2 { margin:0; }
.live-control-form label { display:grid; gap:5px; font-size:13px; font-weight:650; color:var(--u-ink); }
.live-control-form input, .live-control-form select { min-width:0; min-height:40px; padding:8px 10px; border:1px solid var(--u-line); border-radius:9px; background:var(--u-card); color:var(--u-ink); font:inherit; font-size:14px; }
.live-control-form .prototype-note { margin:0; }
.live-list-section { margin-top:15px; }
.live-list-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.live-list-heading h2 { margin:0; }
.live-tracker-list { display:grid; gap:8px; margin-top:8px; }
.live-tracker-card { display:grid; gap:5px; min-width:0; padding:11px; border:1px solid var(--u-line); border-radius:12px; background:var(--u-card); overflow-wrap:anywhere; }
.live-tracker-card > span, .live-tracker-card small { color:var(--u-muted); font-size:13px; line-height:1.35; }
.live-card-actions { display:flex; gap:6px; flex-wrap:wrap; margin-top:3px; }
.live-tracker-card button { min-height:34px; padding:6px 9px; font-size:12px; }
.error-text { margin:8px 2px; color:var(--u-alert); font-size:13px; }
@media (max-height:840px) {
  .app-grid { gap:5px; }
  .app-tile { gap:3px; padding:2px 3px; }
  .tile-icon { width:34px; height:34px; flex-basis:34px; border-radius:10px; }
  .tile-icon svg { width:22px; height:22px; }
  .app-tile strong { font-size:12px; line-height:1.04; }
  .tile-caption { font-size:10px; line-height:1.04; }
}
@media (max-height:700px) and (max-width:500px) {
  .app-grid { gap:4px; padding:1px 2px 3px; }
  .app-tile { gap:2px; padding:1px 2px; }
  .tile-icon { width:24px; height:24px; flex-basis:24px; border-radius:8px; }
  .tile-icon svg { width:16px; height:16px; }
  .app-tile strong { font-size:10px; line-height:1; }
  .tile-caption { font-size:8px; line-height:1; }
}
@media (max-height:560px) and (max-width:500px) {
  .app-grid { gap:3px; }
  .app-tile { gap:1px; padding:0 1px; }
  .tile-icon { width:18px; height:18px; flex-basis:18px; border-radius:6px; }
  .tile-icon svg { width:13px; height:13px; }
  .app-tile strong { font-size:9px; }
  .tile-caption { font-size:7px; }
}

/* Keep the member search control on one row despite its label selector. */
#groups-view .group-content #group-members-view > .search-field { display:flex; }
#groups-view .group-content #group-members-view > .search-field .search-icon { transform:none; }

/* Contact phone numbers and aliases stay readable in the available row width. */
.quick-user-row .history-copy > span {
  overflow:visible;
  white-space:normal;
  text-overflow:clip;
  overflow-wrap:anywhere;
  line-height:1.35;
}
.quick-user-row { align-items:flex-start; }
.quick-user-row > .avatar { margin-top:2px; }

.live-autocomplete-list { max-height:190px; overflow:auto; margin-top:4px; border:1px solid var(--u-line); border-radius:10px; background:var(--u-card); box-shadow:0 6px 18px #1b26351a; }
.live-autocomplete-list[hidden] { display:none; }
.live-autocomplete-option { display:flex; flex-direction:column; gap:2px; padding:9px 10px; cursor:pointer; }
.live-autocomplete-option + .live-autocomplete-option { border-top:1px solid var(--u-line); }
.live-autocomplete-option:hover, .live-autocomplete-option[aria-selected="true"] { background:var(--u-wash); }
.live-autocomplete-option small { color:var(--u-muted); }
#football-live-team-status, #football-live-target-status, #flight-live-target-status { display:block; color:var(--u-muted); font-size:11px; font-weight:400; }
#football-live-team-status.is-error, #football-live-target-status.is-error, #flight-live-target-status.is-error { color:var(--u-alert); }

/* Balance help article text with its topic list while retaining readable scale. */
.help-article h2 { font-size:19px; }
.help-article p { font-size:15px; line-height:1.5; }

@media (max-height:700px) and (min-width:501px) {
  .app-messages, .app-recordings { gap:2px; padding:2px; }
  .app-messages .tile-icon, .app-recordings .tile-icon { width:30px; height:30px; flex-basis:30px; }
  .app-messages .tile-icon svg, .app-recordings .tile-icon svg { width:20px; height:20px; }
  .app-messages strong, .app-recordings strong { font-size:11px; line-height:1.03; }
  .app-messages .tile-caption, .app-recordings .tile-caption { font-size:9px; line-height:1.02; }
}
.app-tile[data-app-key="cost-tracking"], .app-mark[data-app-key="cost-tracking"] { --app-color-top:var(--u-button); --app-color-bottom:var(--u-button); --app-surface:var(--u-wash); --app-ink:var(--u-white); }

.yle-news-card { padding:16px; margin:12px 0; border:1px solid var(--u-line); border-radius:12px; }
.yle-news-card a { font-size:18px; line-height:1.5; overflow-wrap:anywhere; }
.yle-news-card p { margin-top:8px; font-size:14px; }

.app-tile[data-app-key="yle-news"], .app-mark[data-app-key="yle-news"] { --app-color-top:var(--u-button); --app-color-bottom:var(--u-button); --app-surface:var(--u-wash); --app-ink:var(--u-white); }
.app-tile[data-app-key="mail"], .app-mark[data-app-key="mail"] { --app-color-top:var(--u-alertfill); --app-color-bottom:var(--u-alertfill); --app-surface:var(--u-alertwash); --app-ink:var(--u-white); }
.app-tile { position:relative; }
.tile-badge { position:absolute; top:6px; right:6px; min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:var(--u-alertfill); color:var(--u-white); font-size:12px; font-weight:700; line-height:20px; text-align:center; }
.gmail-ack-card { padding:16px; margin:12px 0; border:1px solid var(--u-line); border-radius:12px; }
.gmail-ack-card blockquote { margin:10px 0; padding:8px 12px; border-left:3px solid var(--u-alertfill); font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
.gmail-ack-card p, .gmail-ack-result { margin-top:6px; font-size:14px; overflow-wrap:anywhere; }
.gmail-ack-actions, .gmail-ack-editor { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.gmail-ack-editor textarea { width:100%; min-height:70px; }

.app-tile[data-app-key="music-room"], .app-mark[data-app-key="music-room"] { --app-color-top:var(--u-button); --app-color-bottom:var(--u-button); --app-surface:var(--u-wash); --app-ink:var(--u-white); }
#music-room-root { display:flex; flex-direction:column; flex:1; min-height:0; min-width:0; overflow:hidden; }
#music-room-root > .view-header { flex:0 0 auto; }
#music-room-root form { display:grid; gap:14px; max-width:760px; }
#music-room-root label { display:grid; gap:6px; }
#music-room-root textarea { width:100%; box-sizing:border-box; padding:12px; font:inherit; resize:vertical; }
.app-tile[data-app-key="spotify-room"], .app-mark[data-app-key="spotify-room"] { --app-color-top:var(--u-goodfill); --app-color-bottom:var(--u-goodfill); --app-surface:var(--u-goodwash); --app-ink:var(--u-white); }
.app-tile[data-app-key="files"], .app-mark[data-app-key="files"] { --app-color-top:var(--u-button); --app-color-bottom:var(--u-button); --app-surface:var(--u-wash); --app-ink:var(--u-white); }
#spotify-room-root { display:flex; flex-direction:column; flex:1; min-height:0; min-width:0; overflow-y:auto; gap:14px; }
#spotify-room-root > .view-header { flex:0 0 auto; }
#spotify-room-root .spotify-now { display:flex; gap:14px; align-items:center; }
#spotify-room-root .spotify-now img { border-radius:8px; object-fit:cover; }
#spotify-room-root .spotify-now progress { width:100%; max-width:360px; }
#spotify-room-root .spotify-quick, #spotify-room-root .spotify-listen { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
#spotify-room-root [data-chat-log] { display:flex; flex-direction:column; gap:6px; max-height:260px; overflow-y:auto; }
#spotify-room-root [data-chat-log] p { margin:0; overflow-wrap:anywhere; }
#spotify-room-root [data-chat-form] { display:flex; gap:8px; margin-top:8px; }
#spotify-room-root [data-chat-form] input { flex:1; min-width:0; }
.app-tile[data-app-key="terminal-views"], .app-mark[data-app-key="terminal-views"] { --app-color-top:var(--u-button); --app-color-bottom:var(--u-button); --app-surface:var(--u-wash); --app-ink:var(--u-white); }
.app-tile[data-app-key="w1-chat"], .app-mark[data-app-key="w1-chat"] { --app-color-top:var(--u-button); --app-color-bottom:var(--u-button); --app-surface:var(--u-wash); --app-ink:var(--u-white); }
#terminal-views-root { --tv-bg:#14161a; --tv-fg:#d6d8da; display:flex; flex-direction:column; gap:8px; min-width:0; }
.tv-bar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.tv-projects { flex:1 0 100%; display:flex; flex-wrap:wrap; gap:6px; min-width:0; max-width:100%; }
.tv-chooser, .tv-panes { display:flex; flex-wrap:wrap; gap:6px; min-width:0; max-width:100%; }
.tv-bar button, .tv-panes button { max-width:100%; overflow-wrap:anywhere; }
#terminal-views-view { min-width:0; max-width:100%; }
main.terminal-views-mode { max-width:none; padding-left:12px; padding-right:12px; }
/* Shadows follow the button radius; selection stays inside, keyboard focus adds 2px outside. */
.tv-project, .tv-view, .tv-chip, .tv-pause, .tv-all, .tv-memory-btn { outline:none; }
button.tv-project:disabled, button.tv-view:disabled { opacity:.45; cursor:default; }
button.tv-project-on, button.tv-view-on, button.tv-chip-on,
button.tv-project-on:hover, button.tv-view-on:hover, button.tv-chip-on:hover {
  --tv-selection-shadow:inset 0 0 0 1px #4a7fa5;
  font-weight:700; border-color:var(--u-button); background:var(--u-wash);
  box-shadow:var(--tv-selection-shadow);
}
button.tv-project:focus-visible, button.tv-view:focus-visible, button.tv-chip:focus-visible,
button.tv-pause:focus-visible, button.tv-all:focus-visible, button.tv-memory-btn:focus-visible {
  box-shadow:var(--tv-selection-shadow, inset 0 0 0 0 transparent), 0 0 0 2px #4a7fa5;
}
.tv-status { margin:0; font-size:13px; }
.tv-fs, .tv-fs-close { outline:none; cursor:pointer; }
button.tv-fs:focus-visible, button.tv-fs-close:focus-visible { box-shadow:0 0 0 2px #4a7fa5; }
/* Fullscreen: the terminal takes the whole viewport (dvw x dvh, safe areas kept); app header and menu are hidden. */
main.terminal-views-fullscreen .view-header, html.terminal-views-fullscreen .view-header { display:none; }
html.terminal-views-fullscreen, html.terminal-views-fullscreen body { overflow:hidden; }
#terminal-views-root.tv-fullscreen { position:fixed; top:0; left:0; z-index:900; width:100dvw; height:100dvh; max-width:none; box-sizing:border-box; gap:4px; background:var(--tv-bg);
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); overflow:hidden; }
.tv-fullscreen .tv-bar { flex:0 0 auto; flex-wrap:nowrap; gap:6px; padding:2px 6px; }
.tv-fullscreen .tv-bar select { flex:1 1 0; min-width:0; max-width:50%; min-height:32px; }
.tv-fullscreen .tv-bar .tv-fs-close { flex:0 0 auto; min-height:32px; }
.tv-fullscreen .tv-status { display:none; }
.tv-fullscreen .tv-panes { flex:0 0 auto; padding:0 6px; }
.tv-fullscreen .tv-body { flex:1 1 auto; min-height:0; border-radius:0; overflow:auto; }
.tv-body { background:var(--tv-bg); color:var(--tv-fg); border-radius:8px; padding:4px; overflow:auto; font-family:ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.tv-window > .tv-pane { cursor:zoom-in; }
.tv-window { display:grid; padding-top:1.2em; position:relative; }
.tv-pane { position:relative; overflow:hidden; white-space:pre; }
.tv-single { overflow-x:auto; }
.tv-line { white-space:pre; min-height:1.2em; line-height:1.2em; height:1.2em; }
.tv-label { position:absolute; bottom:100%; left:0; right:0; height:1.2em; line-height:1.2em; font-size:.8em; overflow:hidden; white-space:pre; background:#2a2e35; color:#9aa0a8; }
.tv-window > .tv-pane { overflow:visible; }
.tv-pane.tv-active > .tv-label { color:#fff; background:#3b5b78; }
.tv-bold { font-weight:700; } .tv-dim { opacity:.6; } .tv-italic { font-style:italic; } .tv-underline { text-decoration:underline; }
.tv-fg-0 { color:#1d1f21; } .tv-bg-0 { background-color:#1d1f21; }
.tv-fg-1 { color:#cc6666; } .tv-bg-1 { background-color:#cc6666; }
.tv-fg-2 { color:#b5bd68; } .tv-bg-2 { background-color:#b5bd68; }
.tv-fg-3 { color:#f0c674; } .tv-bg-3 { background-color:#f0c674; }
.tv-fg-4 { color:#81a2be; } .tv-bg-4 { background-color:#81a2be; }
.tv-fg-5 { color:#b294bb; } .tv-bg-5 { background-color:#b294bb; }
.tv-fg-6 { color:#8abeb7; } .tv-bg-6 { background-color:#8abeb7; }
.tv-fg-7 { color:#c5c8c9; } .tv-bg-7 { background-color:#c5c8c9; }
.tv-fg-8 { color:#666a70; } .tv-bg-8 { background-color:#666a70; }
.tv-fg-9 { color:#ff7b7b; } .tv-bg-9 { background-color:#ff7b7b; }
.tv-fg-10 { color:#c3e88d; } .tv-bg-10 { background-color:#c3e88d; }
.tv-fg-11 { color:#ffd866; } .tv-bg-11 { background-color:#ffd866; }
.tv-fg-12 { color:#9cc4ff; } .tv-bg-12 { background-color:#9cc4ff; }
.tv-fg-13 { color:#d7a8ff; } .tv-bg-13 { background-color:#d7a8ff; }
.tv-fg-14 { color:#9fe8dd; } .tv-bg-14 { background-color:#9fe8dd; }
.tv-fg-15 { color:#ffffff; } .tv-bg-15 { background-color:#ffffff; }
.tv-fg-dfg { color:#14161a; } .tv-bg-dfg { background-color:#d6d8da; } .tv-fg-dbg { color:#14161a; } .tv-bg-dbg { background-color:#14161a; }
.tv-memory-btn { cursor:pointer; }
.tv-label { pointer-events:auto; cursor:zoom-in; }
.tv-memory-overlay { position:fixed; inset:0; z-index:1000; background:rgba(0,0,0,.72); display:flex; align-items:center; justify-content:center; padding:12px; }
.tv-memory-box { display:flex; flex-direction:column; width:min(100%, 1100px); max-height:100%; background:var(--tv-bg); color:var(--tv-fg); border-radius:8px; overflow:hidden; }
.tv-memory-head { display:flex; gap:8px; align-items:center; padding:8px 10px; background:#2a2e35; }
.tv-memory-title { flex:1; font-weight:700; }
.tv-memory-body { overflow:auto; padding:8px 10px; font-family:ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size:13px; white-space:pre; -webkit-overflow-scrolling:touch; }

.app-tile[data-app-key="status-view"], .app-mark[data-app-key="status-view"] { --app-color-top:var(--u-copper); --app-color-bottom:var(--u-button); --app-surface:var(--u-mark); --app-ink:var(--u-white); }
#status-view-root { display:flex; flex-direction:column; gap:10px; min-width:0; }
.status-tile-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-bottom:10px; }
.status-tile-controls .status-tile-note { flex:1 1 220px; margin:0; }
.status-tile-controls button[hidden] { display:none; }
.status-tile-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:12px; align-items:start; }
.status-card { border:1px solid var(--u-line); border-radius:14px; padding:12px 14px; background:var(--u-card); min-width:0; }
.status-card h2 { margin:0 0 8px; font-size:1rem; }
.status-line { margin:0 0 4px; font-size:.9rem; overflow-wrap:anywhere; }
.status-line.mut, .status-tile-note { color:var(--u-muted); }
.status-tile-error { color:var(--u-alert); }
/* Row 1111: Tila Ghostty work views as text. Mac: queue, release batch and workers side by side, details in a right
   panel. Narrow (iPhone): project/view first, sections open one at a time, row/role detail full screen with safe areas. */
.tila-views, .tila-envs { display:flex; flex-wrap:wrap; gap:6px; min-width:0; max-width:100%; }
.tila-views:empty, .tila-envs:empty { display:none; }
.status-tile-cards[hidden], .tila-gh[hidden], .tila-panel[hidden] { display:none; }
.tila-gh { display:flex; flex-direction:column; gap:10px; min-width:0; }
.tila-gh-note:empty { display:none; }
.tila-gh-layout { display:flex; gap:12px; align-items:flex-start; min-width:0; }
.tila-gh-main { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:12px; }
.tila-cols { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; align-items:start; }
.tila-cols > :nth-child(n+4) { grid-column:1 / -1; }
.tila-stack { display:flex; flex-direction:column; gap:12px; min-width:0; }
.tila-lane > summary { cursor:pointer; font-weight:600; margin-bottom:6px; }
.tila-text { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:.8rem; line-height:1.35; overflow-x:auto; }
.tila-line { white-space:pre-wrap; overflow-wrap:anywhere; min-height:1em; }
.tila-row, .tila-role, .tila-menu-item, .tila-link { display:flex; flex-wrap:wrap; gap:2px 8px; width:100%; text-align:left; margin:0 0 6px; align-items:baseline; }
.tila-row-meta, .tila-role-meta, .tila-menu-count, .tila-label { color:var(--u-muted); font-size:.85rem; }
.tila-label { margin:0 0 4px; }
.tila-menu-item { justify-content:space-between; }
.tila-panel { flex:0 0 min(420px, 40%); position:sticky; top:8px; max-height:calc(100dvh - 24px); overflow-y:auto; border:1px solid var(--u-line); border-radius:14px; padding:12px 14px; background:var(--u-card); }
.tila-panel-title { margin:4px 0 10px; font-size:1.1rem; overflow-wrap:anywhere; }
.tila-role-tabs { display:flex; gap:6px; margin-bottom:10px; }
.tila-dl { display:grid; grid-template-columns:max-content 1fr; gap:4px 12px; margin:0; }
.tila-dl dt { color:var(--u-muted); }
.tila-dl dd { margin:0; overflow-wrap:anywhere; }
.tila-pill { display:inline-block; padding:2px 10px; border-radius:999px; border:1px solid var(--u-line); margin:0 0 8px; }
.tila-talk-text { max-height:60dvh; overflow-y:auto; }
.tila-state-forbidden, .tila-state-disconnected, .tila-state-nokey { color:var(--u-alert); }
@media (max-width: 699px) {
  .tila-cols { grid-template-columns:1fr; }
  .tila-gh-panel-open .tila-gh-main, .tila-panel-open .tila-gh-main { display:none; }
  .tila-panel-open .tila-panel { position:fixed; inset:0; z-index:40; max-height:none; border-radius:0; border:0;
    padding:calc(12px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left)); }
  .tila-talk-text { max-height:none; }
}

/* Row 642 (B): equal home cards. The grid row sets the card height; the icon never shrinks, the title is one line
   (ellipsis), the subtitle at most two lines (ellipsis); nothing is drawn past the card edge. */
.app-grid .app-tile { height:100%; overflow:hidden; justify-content:center; }
.app-grid .app-tile .tile-icon { flex-shrink:0; }
.app-grid .app-tile strong { flex:0 0 auto; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; overflow-wrap:normal; }
.app-grid .app-tile .tile-caption { flex:0 1 auto; overflow:hidden; white-space:normal; overflow-wrap:break-word; text-overflow:ellipsis; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; }
/* Row 642 (B, C): Spotify view. Header and now-playing never clip; the chat log has its own scroll area and the
   input stays visible below it. */
#spotify-room-root { overflow-x:hidden; }
#spotify-room-root .spotify-now { min-width:0; }
#spotify-room-root .spotify-now > div { min-width:0; flex:1; }
#spotify-room-root .spotify-now [data-title], #spotify-room-root .spotify-now [data-artist] { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#spotify-room-root [data-listen-quality] { padding:2px 8px; border-radius:999px; background:var(--u-goodwash); color:var(--u-good); font-size:12px; font-weight:700; }
#spotify-room-root .spotify-chat { display:flex; flex-direction:column; min-height:180px; flex:1 1 auto; }
#spotify-room-root [data-chat-log] { flex:1 1 auto; min-height:120px; max-height:min(46vh,420px); overflow-y:auto; overscroll-behavior:contain; }
#spotify-room-root [data-chat-form] { flex:0 0 auto; position:sticky; bottom:0; background:inherit; }

/* Urasto.fi V5 · yhteinen sovellusilme */
:root {
  color-scheme: light dark;
  --wc-paper:#f8f6f0; --wc-card:#fffdf7; --wc-ink:#163833;
  --wc-muted:#455e56; --wc-rule:#c9d0c4; --wc-wash:#e8ede4;
  --wc-forest:#275c51; --wc-deep:#163b36; --wc-copper:#a4542a;
  --wc-navy:#082a48; --wc-cream:#fff9ec; --wc-focus:#b3632d;
  --wc-serif:Baskerville,"Iowan Old Style",Georgia,serif;
  --wc-sans:"Helvetica Neue",Arial,system-ui,sans-serif;
}
html, body { background:var(--wc-paper); color:var(--wc-ink); font-family:var(--wc-sans); }
.home-header,.view-header,.cost-header,.mv-top,.fv-top,.sr-top {
  padding-bottom:10px; border-bottom:1px solid var(--wc-rule);
}
.home-header { border-top:3px solid var(--wc-forest); padding-top:12px; gap:14px; }
.home-header .brand-mark { width:58px; height:58px; flex-basis:58px; border-radius:14px; }
.home-header .brand-mark img { object-fit:contain; }
.home-header h1 { margin:0; color:var(--wc-deep); font:500 38px/.96 var(--wc-serif); letter-spacing:-.035em; }
.home-header .wc-product { display:block; margin:4px 0; font:700 11px/1.1 var(--wc-sans); letter-spacing:.1em; text-transform:uppercase; color:var(--wc-forest); }
.home-header p { font:400 13px/1.35 var(--wc-sans); color:var(--wc-muted); }
.app-view h1,.app-view h2,.app-view h3 { font-family:var(--wc-serif); letter-spacing:-.02em; }
.view-header h1,#mail-root h1,#files-root h1,#spotify-room-root h1,.cost-header h1 { font:500 clamp(23px,3.7vw,31px)/1.1 var(--wc-serif); color:var(--wc-deep); }
.app-grid { scrollbar-gutter:auto; overflow-y:auto; grid-template-rows:none; grid-auto-rows:minmax(min-content,1fr); }   /* row 871: content-sized rows, the grid scrolls */
.app-grid .app-tile {
  color:var(--wc-ink); background:var(--wc-card); border:1px solid var(--wc-rule);
  border-radius:12px; box-shadow:0 2px 5px #16383308;
}
.app-grid .app-tile.active-tile:hover,.app-grid .app-tile:focus-visible {
  background:var(--wc-wash); border-color:var(--wc-forest);
}
.app-grid .app-tile strong { font-family:var(--wc-sans); letter-spacing:-.015em; }
.app-grid .app-tile .tile-caption { color:var(--wc-muted); }
.app-grid .app-tile .tile-icon,.app-view .app-mark,.message-home-grid .message-home-icon {
  background:var(--wc-icon,var(--wc-forest)); color:var(--wc-cream); border-radius:10px; box-shadow:none;
}
[data-app-key="phone"],[data-app-key="messages"],[data-app-key="contacts"],[data-app-key="groups"],
[data-app-key="recordings"],[data-app-key="mail"],.messages-mark,.contacts-mark,.groups-mark,
.phone-mark,.recordings-mark,.message-home-grid { --wc-icon:var(--wc-navy); }
[data-app-key="notes"],[data-app-key="shopping"],[data-app-key="music-room"],
[data-app-key="cost-tracking"],.notes-mark,.shopping-mark { --wc-icon:var(--wc-copper); }
.app-grid .app-tile[aria-disabled="true"] { background:var(--wc-wash); border-style:dashed; }
.app-grid .app-tile[aria-disabled="true"] .tile-icon { background:#697b72; }
.app-tile .tile-icon svg { color:var(--wc-cream); }
.app-view .back-button,.app-view .subview-back { border-color:var(--wc-rule); background:var(--wc-card); color:var(--wc-forest); box-shadow:none; }
.app-footer { color:var(--wc-muted); border-color:var(--wc-rule); }
.app-footer small { text-align:right; }
.app-footer .wc-web-name,html.work-caller-web .wc-desktop-name { display:none; }
html.work-caller-web .wc-web-name { display:inline; }
:focus-visible { outline:3px solid var(--wc-focus); outline-offset:2px; }
@media (max-height:700px) {
  .home-header { padding-top:6px; padding-bottom:6px; }
  .home-header h1 { font-size:29px; }
  .home-header .brand-mark { width:44px; height:44px; flex-basis:44px; }
}
.home-header .wc-product { text-transform:none; font-size:13px; letter-spacing:.035em; }
@media (min-width:900px) {
  main:has(> #home-view:not(.hidden)) { max-width:940px; }
  .app-grid { grid-template-columns:repeat(6,minmax(0,1fr)); grid-template-rows:none; grid-auto-rows:minmax(min-content,1fr); gap:10px; }
  .app-grid .app-tile { min-height:92px; }   /* row 871: was the 92px row minimum; rows now follow the content */
}

@media (prefers-color-scheme:dark) {
  :root { --wc-paper:var(--u-paper); --wc-card:var(--u-card); --wc-ink:var(--u-ink); --wc-muted:var(--u-muted); --wc-rule:var(--u-line); --wc-wash:var(--u-wash); --wc-deep:var(--u-ink); --wc-focus:var(--u-focus); }
  .home-header .wc-product,.app-view .back-button,.app-view .subview-back { color:var(--u-accent); }
}
@media (max-width: 300px) {
  .home-header, .app-footer { flex-wrap: wrap; }
  .home-header > div, .app-footer small { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
}

/* Row 862 (0.2.164): Pyydä Adelelta -pyyntörivi ja pyyntöhistoria */
.home-header { flex:none; flex-wrap:nowrap; }
.home-header > div:nth-child(2) { min-width:0; }
.adele-signature { width:clamp(50px,13vw,76px); aspect-ratio:1; object-fit:contain; margin-inline-start:auto; flex:none; }
html.work-caller-web .adele-signature { display:none; }
.app-footer { flex:none; }
.app-grid { min-height:0; }
.app-grid .app-recordings { padding:2px; gap:1px; }
.app-grid .app-recordings .tile-icon { width:32px; height:32px; flex-basis:32px; }
.app-grid .app-recordings .tile-icon svg { width:22px; height:22px; }
.sr-only { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; white-space:nowrap; }
#request-compose [hidden], #request-history [hidden], .request-chain[hidden], #request-history[hidden] { display:none !important; }
.request-compose { flex:none; min-width:0; margin:12px 0 14px; color:var(--wc-ink); }
.request-compose-head, .request-drawer-head, .request-detail-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.request-compose-head { margin:0 1px 8px; }
.request-compose-head label { font:500 24px/1.15 var(--wc-serif); color:var(--wc-deep); }
.request-glyph { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; flex:none; }
#request-compose .request-history-link, #request-history .request-action, #request-history .request-tab, #request-history .request-entry, #request-compose .request-action {
  font:inherit; color:inherit; cursor:pointer; border:0; background:transparent; box-shadow:none; }
#request-compose .request-history-link, .request-action { display:inline-flex; align-items:center; gap:7px; font-size:14px; font-weight:600; padding:9px 5px; min-height:40px; }
#request-compose .request-history-link:hover, .request-action:hover, #request-history .request-close:hover { background:var(--wc-wash); border-radius:7px; }
.request-input-row { display:flex; align-items:flex-end; gap:12px; padding:11px 12px 11px 16px; border:1px solid var(--wc-rule); border-radius:18px; background:var(--wc-card); box-shadow:0 3px 12px #1638330a; }
.request-input-row:focus-within { border-color:#648d7d; box-shadow:0 0 0 3px #63897620; }
.request-input-row textarea { width:100%; min-width:0; min-height:41px; max-height:9em; background:transparent; color:var(--wc-ink); border:0; padding:10px 0 7px; font:400 16px/1.5 var(--wc-sans); resize:none; outline:none; box-shadow:none; }
.request-input-row textarea::placeholder { color:var(--wc-muted); opacity:.9; }
#request-compose .request-send, #request-history .request-close { border:0; width:42px; height:42px; min-height:42px; padding:0; display:grid; place-items:center; border-radius:50%; flex:none; cursor:pointer; }
#request-compose .request-send { background:#214d44; color:#fff; }
#request-compose .request-send:disabled { background:var(--wc-wash); color:var(--wc-muted); cursor:default; }
#request-compose .request-send .request-glyph { width:22px; height:22px; }
.request-target { display:inline-flex; gap:2px; margin:0 0 8px; padding:2px; border:1px solid var(--wc-rule); border-radius:999px; background:var(--wc-card); }
.request-target button { border:0; background:transparent; color:var(--wc-muted); font:600 13px/1 var(--wc-sans); padding:8px 14px; min-height:36px; border-radius:999px; cursor:pointer; }
.request-target button[aria-checked="true"] { background:#214d44; color:#fff; }
.request-chain { list-style:none; margin:10px 0; padding:0; display:flex; flex-direction:column; gap:6px; }
.request-chain li { font:400 14px/1.4 var(--wc-sans); color:var(--wc-muted); padding-left:18px; position:relative; }
.request-chain li::before { content:""; position:absolute; left:2px; top:.5em; width:8px; height:8px; border-radius:50%; border:1.5px solid var(--wc-muted); }
.request-chain li[data-mark="done"] { color:var(--wc-ink); }
.request-chain li[data-mark="done"]::before { background:#54816b; border-color:#54816b; }
.request-chain li[data-mark="current"] { color:var(--wc-ink); font-weight:600; }
.request-chain li[data-mark="current"]::before { background:#b66d33; border-color:#b66d33; }
.request-chain li[data-step="failed"]::before { background:#b3412d; border-color:#b3412d; }
.request-feedback { margin:5px 0 0; font:400 12px/1.5 var(--wc-sans); color:var(--wc-muted); }
.request-feedback:empty { display:none; }
.request-result { margin-top:8px; padding:12px 14px; border:1px solid var(--wc-rule); border-radius:13px; background:var(--wc-card); }
.request-result p { margin:6px 0 0; font:400 14px/1.45 var(--wc-sans); white-space:pre-wrap; overflow-wrap:anywhere; max-height:7.5em; overflow:auto; }
.request-result-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:8px; }
.request-badge { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--wc-muted); }
.request-badge::before { content:""; width:6px; height:6px; border-radius:50%; background:#54816b; }
.request-badge.state-processing::before, .request-badge.state-continuing::before, .request-badge.state-awaiting_approval::before { background:#b66d33; }
.request-badge.state-failed::before { background:#b3412d; }
.request-history { color:var(--wc-ink); background:var(--wc-card); border:1px solid var(--wc-rule); border-radius:22px 0 0 22px; margin:0 0 0 auto; width:min(510px,100%); height:100dvh; max-width:none; max-height:none; padding:0; box-shadow:-10px 0 60px #0d2e2b20; overflow:auto; }
.request-history::backdrop { background:#102c2a48; }
.request-drawer { padding:27px clamp(18px,3vw,32px) 40px; }
.request-drawer-head { margin-bottom:20px; }
.request-drawer-head h2, .request-detail h3 { font:500 32px/1.12 var(--wc-serif); letter-spacing:-.025em; margin:0; color:var(--wc-deep); }
#request-history .request-close { color:var(--wc-muted); border:1px solid var(--wc-rule); background:transparent; }
.request-tabs { display:flex; gap:4px; background:var(--wc-wash); padding:4px; border-radius:12px; margin-bottom:16px; }
#request-history .request-tab { flex:1; border-radius:8px; padding:10px; font-size:14px; font-weight:650; min-height:0; }
#request-history .request-tab[aria-pressed="true"] { background:var(--wc-card); box-shadow:0 1px 4px #1124211a; }
.request-search { display:flex; align-items:center; gap:8px; border:1px solid var(--wc-rule); border-radius:9px; padding:9px 12px; color:var(--wc-muted); }
.request-search input { width:100%; font:inherit; background:transparent; color:var(--wc-ink); border:0; min-width:0; padding:0; box-shadow:none; outline:none; }
.request-day { font:650 13px var(--wc-sans) !important; color:var(--wc-muted); margin:23px 0 5px; letter-spacing:0 !important; }
#request-history .request-entry { display:grid; grid-template-columns:1fr; text-align:left; gap:4px; width:100%; padding:15px 3px; border-bottom:1px solid var(--wc-rule); border-radius:0; color:var(--wc-ink); min-height:0; }
#request-history .request-entry:hover { background:var(--wc-wash); }
.request-entry-title { font-size:16px; font-weight:620; line-height:1.35; overflow-wrap:anywhere; }
.request-entry-meta { font-size:12px; color:var(--wc-muted); display:flex; align-items:center; gap:8px; }
.request-hint { font:400 14px/1.5 var(--wc-sans); color:var(--wc-muted); margin:15px 0; }
.request-detail-top { margin:0 0 20px; }
.request-detail time { font-size:13px; color:var(--wc-muted); }
.request-detail h3 { margin:18px 0 24px; font-size:30px; overflow-wrap:anywhere; }
.request-turn { margin:0 0 12px; padding:16px 18px; border-radius:13px; background:var(--wc-wash); }
.request-turn.reply { border:1px solid var(--wc-rule); background:transparent; }
.request-turn b { display:block; font-size:13px; margin-bottom:7px; }
.request-turn p { font-size:16px; line-height:1.5; margin:0; color:var(--wc-ink); white-space:pre-wrap; overflow-wrap:anywhere; }
.request-turn p + p { margin-top:10px; }
@media (max-width:540px) {
  .request-history { border-radius:18px 18px 0 0; margin:auto 0 0; width:100%; height:88dvh; }
  .request-drawer { padding-top:18px; }
  .request-compose-head label { font-size:22px; }
  .request-drawer-head h2 { font-size:28px; }
}
@media (max-height:820px) { .request-compose { margin:8px 0 10px; } .request-input-row { padding-block:6px; } }
@media (prefers-color-scheme:dark) {
  #request-compose .request-send:not(:disabled) { background:var(--u-button, #2f6f61); }
  .request-history::backdrop { background:#000a; }
}

#messages-view .subview-back, #recordings-view .subview-back { min-height: 44px; }
#messages-view .subview-back:focus-visible, #recordings-view .subview-back:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#message-action-feedback:empty { display: none; }


#home-view > #request-compose { margin:0 0 14px; max-height:36vh; overflow:auto; }
html.terminal-views-fullscreen main { height:100dvh; min-height:0; max-width:none; padding:env(safe-area-inset-top) 0 0; }
html.terminal-views-fullscreen #request-compose { padding-inline:12px; }
html.terminal-views-fullscreen #terminal-views-root.tv-fullscreen { position:relative; flex:1; min-height:0; height:auto; }
html.terminal-views-fullscreen .app-footer { display:none; }
/* Row 1045: blocked users (badge, "Estetty" checkbox, filter, add-number form); wraps at iPhone width. */
.blocked-users-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin:8px 0; }
.blocked-users-tools .blocked-filter, .group-member-row .blocked-toggle { display:inline-flex; align-items:center; gap:6px; font-size:13px; }
.blocked-number-form { display:flex; flex:1 1 260px; gap:8px; min-width:0; }
.blocked-number-form input { flex:1; min-width:0; }
#blocked-users-status { flex-basis:100%; margin:0; font-size:12px; }
#blocked-users-status.error { color:#b3261e; }
.blocked-badge { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:9px; background:#b3261e; color:#fff; font-size:11px; font-weight:600; vertical-align:middle; }
.group-member-row.is-blocked { border-color:#b3261e66; }
@media (max-width: 480px) { .blocked-number-form { flex-basis:100%; } .group-member-row { flex-wrap:wrap; } }
/* Row 1049: the badge beats the muted .history-copy span rules (white on #b3261e = 6.5:1 in both themes);
   checkboxes keep their own width so "Estetty" and "Näytä vain estetyt" sit next to the box on one line. */
.group-member-row .history-copy span.blocked-badge, #groups-view .group-content #group-members .group-member-row .history-copy span.blocked-badge { color:#fff; font-size:11px; line-height:1.4; overflow:visible; }
.blocked-users-tools .blocked-filter, .group-member-row .blocked-toggle { margin:0; white-space:nowrap; }
.blocked-toggle input[type="checkbox"], .blocked-filter input[type="checkbox"] { flex:0 0 auto; width:auto; margin:0; padding:0; }

/* Shared launcher and view identities. Availability uses the confirmed admin state. */
[data-app-key="phone"], #phone-view.app-view { --wc-icon:#173F5C; }
[data-app-key="messages"], #messages-view.app-view { --wc-icon:#087669; }
[data-app-key="groups"], #groups-view.app-view { --wc-icon:#6C488B; }
[data-app-key="contacts"], #contacts-view.app-view { --wc-icon:#336EA0; }
[data-app-key="status"], #status-view.app-view { --wc-icon:#596963; }
[data-app-key="recordings"], #recordings-view.app-view { --wc-icon:#99532B; }
[data-app-key="shopping"], #shopping-view.app-view { --wc-icon:#84620C; }
[data-app-key="notes"], #notes-view.app-view { --wc-icon:#A4522F; }
[data-app-key="help"], #help-view.app-view { --wc-icon:#426D73; }
[data-app-key="flight-live"], #flight-live-view.app-view { --wc-icon:#146F91; }
[data-app-key="football-live"], #football-live-view.app-view { --wc-icon:#46703C; }
[data-app-key="music-room"], #music-room-view.app-view { --wc-icon:#934869; }
[data-app-key="yle-news"], #yle-news-view.app-view { --wc-icon:#465481; }
[data-app-key="cost-tracking"], #cost-tracking-view.app-view { --wc-icon:#805736; }
[data-app-key="terminal-views"], #terminal-views-view.app-view { --wc-icon:#4D496E; }
[data-app-key="status-view"], #status-view-view.app-view { --wc-icon:#326768; }
[data-app-key="w1-chat"], #w1-chat-view.app-view { --wc-icon:#194539; }
[data-app-key="settings"], #settings-view.app-view { --wc-icon:#55616B; }
[data-app-key="spotify-room"], #spotify-room-view.app-view { --wc-icon:#206849; }
[data-app-key="files"], #files-view.app-view { --wc-icon:#7D611E; }
[data-app-key="mail"], #mail-view.app-view { --wc-icon:#3654A0; }
.app-view .message-home-grid { --wc-icon:inherit; }
[data-app-key="status"][data-availability="paikalla"] { --wc-icon:#166341; }
[data-app-key="status"][data-availability="poissa"] { --wc-icon:#B3343D; }
[data-app-key="status"][data-availability="koneella"] { --wc-icon:#245A91; }
.app-grid .app-tile[data-app-key="status"][data-availability]:not([data-availability="unknown"]) {
  border-color:var(--wc-icon);
  background:color-mix(in srgb,var(--wc-icon) 7%,var(--wc-card));
}
#status-tile-label { font:600 .78em/1.1 var(--wc-sans); }
#status-tile-label:empty { display:none; }
.app-grid .app-tile[aria-disabled="true"] .tile-icon { background:#68746f; }
/* Row 1049: app marks in the compact headers of Sähköposti, Tiedostot and Spotify-huone (same key and SVG as the home tile). */
.app-view .app-mark.compact-mark { flex:0 0 34px; width:34px; height:34px; border-radius:10px; }
.app-view .app-mark.compact-mark[data-app-key] svg { width:21px; height:21px; }
#spotify-room-root .sr-heading { display:flex; align-items:center; gap:8px; min-width:0; }
@media (max-width: 480px) { .app-view .app-mark.compact-mark { flex-basis:28px; width:28px; height:28px; border-radius:8px; } .app-view .app-mark.compact-mark[data-app-key] svg { width:18px; height:18px; } }

/* Browser voice call in the shared Adele request composer. */
.request-input-row .adele-call-button {
  align-self:center; display:inline-flex; flex:0 0 auto; align-items:center;
  justify-content:center; gap:7px; min-width:44px; min-height:44px; margin:0;
  padding:0 13px; border:1px solid #b2c8bc; border-radius:999px;
  background:#e9f1e7; color:#184a43; box-shadow:none;
  font:600 15px/1.2 var(--wc-sans,system-ui); cursor:pointer;
}
.request-input-row .adele-call-button[hidden] { display:none; }
.request-input-row .adele-call-button:hover { border-color:#729786; }
.request-input-row .adele-call-button:focus-visible { outline:2px solid #32687a; outline-offset:2px; }
.request-input-row .adele-call-button[aria-disabled="true"] { cursor:progress; }
.adele-call-button[data-state="active"] { background:#f6e8e4; color:#76362e; border-color:#c3a69e; }
.adele-call-button[data-state="active"] img { display:none; }
.adele-call-button[data-state="active"]::before {
  content:""; width:1.75rem; height:1.75rem; background:currentColor;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 14c0-6 20-6 20 0v2c0 .6-.5 1-1 1h-3c-.6 0-1-.4-1-1v-1.7a18 18 0 0 0-10 0V16c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* Row 1095: connecting = cancel (same look as active), quality and fallback phases, mic denied. */
.adele-call-button[data-state="connecting"] { background:#f6e8e4; color:#76362e; border-color:#c3a69e; cursor:pointer; }
.adele-call-button[data-state="connecting"] img { animation:adele-call-pulse 1.2s ease-in-out infinite; }
.adele-call-button[data-phase="weak"], .adele-call-button[data-phase="reconnecting"] { border-color:#b8873a; }
.adele-call-button[data-phase="denied"] { border-color:#b34a3c; }
.adele-call-button[data-state="ending"] { opacity:.7; }
@keyframes adele-call-pulse { 50% { opacity:.45; } }
@media (prefers-reduced-motion: reduce) { .adele-call-button[data-state="connecting"] img { animation:none; } }
.request-compose .adele-call-status { margin:4px 4px 0; color:var(--wc-ink); font-size:.875rem; }
.request-compose .adele-call-status:empty { display:none; }
.adele-call-panel { margin:6px 4px 0; display:flex; flex-direction:column; gap:6px; } /* row 1097: call transcript + approval cards */
.adele-call-panel[hidden] { display:none; }
.adele-call-cards { display:flex; flex-direction:column; gap:6px; }
.adele-call-card { border:1px solid #c9d6cf; border-radius:8px; padding:8px 10px; background:#f7faf8; font-size:.875rem; }
.adele-call-card[data-tier="outward"] { border-color:#c3a69e; background:#fbf3f1; }
.adele-call-card-type { font-size:.75rem; text-transform:uppercase; letter-spacing:.04em; color:#5d6b64; }
.adele-call-card-title { font-weight:600; margin-top:2px; }
.adele-call-card-recipient, .adele-call-card-detail { margin-top:2px; overflow-wrap:anywhere; }
.adele-call-card-note { margin-top:4px; color:#76362e; font-size:.8125rem; }
.adele-call-card-actions { display:flex; gap:8px; margin-top:6px; }
.adele-call-card-actions button { min-height:32px; padding:4px 14px; border-radius:6px; border:1px solid #9fb3a9; background:#fff; cursor:pointer; }
.adele-call-card-actions .adele-call-card-approve { background:#2f6b55; border-color:#2f6b55; color:#fff; }
.adele-call-card-actions button:disabled { opacity:.5; cursor:default; }
.adele-call-card-actions button:focus-visible { outline:2px solid #32687a; outline-offset:2px; }
.adele-call-transcript { list-style:none; margin:0; padding:6px 8px; max-height:180px; overflow-y:auto; border-radius:8px; background:#f4f6f5; font-size:.875rem; }
.adele-call-transcript:empty { display:none; }
.adele-call-line { margin:2px 0; overflow-wrap:anywhere; }
.adele-call-who { font-weight:600; margin-right:6px; }
.adele-call-line-adele .adele-call-who { color:#2f6b55; }
@media (max-width:640px) {
  .request-input-row .adele-call-button { width:44px; padding:0; }
  .adele-call-button span { display:none; }
}
@media (forced-colors:active) {
  .request-input-row .adele-call-button { border-color:ButtonText; }
  .adele-call-button[data-state="active"]::before { background:ButtonText; }
}

/* Row 1109: Lennot -> Lentoliput (tabs, Nice illustration hero, fare offers). The hero keeps the plane and the
   shoreline in view: centre 40 % on wide windows, 55 % 40 % at 130 px height on phones. */
.flight-live-tabs { display:flex; gap:0; margin:0 0 10px; border-bottom:1px solid var(--u-line); }
.flight-live-tabs button { padding:10px 14px; min-height:44px; background:none; border:0; border-bottom:3px solid transparent; color:var(--u-ink); font:inherit; cursor:pointer; }
.flight-live-tabs button[aria-pressed="true"] { border-color:#146F91; font-weight:650; }
.flight-fares-hero { height:clamp(150px, 21vw, 290px); border-radius:14px; margin-bottom:10px; background:linear-gradient(90deg, var(--u-card, #f8f6ee) 0%, transparent 42%), url('assets/nizza-lennot.jpg') center 40%/cover no-repeat; }
.flight-fares-fields { display:grid; grid-template-columns:1.3fr 1.3fr 1fr 1fr 1fr; gap:10px; }
.flight-fares-fields label { min-width:0; }
.flight-fares-fields input, .flight-fares-fields select { width:100%; min-width:0; min-height:44px; }
.flight-fares-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; }
.flight-fares-form .flight-fares-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
  cursor: pointer;
}

.flight-fares-check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #627a70;
  border-radius: 5px;
  background: #fffcf5;
  box-shadow: none;
  cursor: inherit;
}

.flight-fares-check input[type="checkbox"]:checked {
  border-color: #245b51;
  background: #245b51;
  display: inline-grid;
  place-items: center;
}

.flight-fares-check input[type="checkbox"]:checked::after {
  content: "";
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

.flight-fares-check input[type="checkbox"]:focus-visible {
  outline: 2px solid #245b51;
  outline-offset: 3px;
}

@media (forced-colors: active) {
  .flight-fares-check input[type="checkbox"],
  .flight-fares-check input[type="checkbox"]:checked {
    -webkit-appearance: auto;
    appearance: auto;
    background: revert;
    border: revert;
    display: inline-block;
  }
  .flight-fares-check input[type="checkbox"]:checked::after {
    content: none;
  }
}
.flight-fares-actions small, .flight-fare-offer small { color:var(--u-muted); font-size:12px; }
#flight-fares-status { margin:8px 0; }
.flight-fares-list { display:grid; gap:8px; }
.flight-fare-offer { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; padding:12px 14px; border:1px solid var(--u-line); border-radius:14px; background:var(--u-card); }
.flight-fare-info { flex:1; min-width:13rem; display:grid; gap:3px; }
.flight-fare-info strong { font-size:17px; }
.flight-fare-price { display:grid; gap:4px; justify-items:end; white-space:nowrap; }
.flight-fare-price strong { font-size:20px; }
.flight-fare-detail { flex-basis:100%; display:flex; flex-wrap:wrap; gap:6px; }
.flight-fare-offer button { min-height:44px; }
@media (max-width: 740px) {
  .flight-fares-hero { height:130px; background-position:center, 55% 40%; }
  .flight-fares-fields { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
  .flight-fares-fields label:nth-child(-n+2), .flight-fares-fields label:last-child { grid-column:1 / -1; }
  .flight-fares-actions .primary { width:100%; }
  .flight-fare-info { min-width:65%; }
  .flight-fare-price { justify-items:start; }
}
