:root { color: #20252e; background: #f7f8fa; 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; }
main.barber-week-mode { max-width: none; }
.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: #687080; 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: white; font-size: 25px; font-weight: 700; }
.brand-mark, .phone-mark { background: linear-gradient(145deg,#36a9f6,#0878db); }
.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 #dce8f8; border-radius: 24px; padding: 7px 14px 7px 9px; color: #30445f; background: linear-gradient(180deg,#fbfdff,#edf4fd); 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: #c8daf2; background: linear-gradient(180deg,#fff,#e8f1fd); 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 #8ebcff; outline-offset: 2px; }
.back-chevron { position:relative; flex:0 0 24px; width:24px; height:24px; display:grid; place-items:center; border-radius:50%; background:#e5effc; }
.back-chevron::after { content:""; width:7px; height:7px; margin-left:3px; border-left:2px solid #55749e; border-bottom:2px solid #55749e; transform:rotate(45deg); border-radius:1px; }
.app-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-rows: repeat(5,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: #20252e; 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: #7b8494; font-size: 12px; line-height: 1.2; }
.app-tile { cursor: grab; touch-action: none; }
.app-tile:active { cursor: grabbing; }
.active-tile:hover { border-color: #c8d6f6; filter: brightness(.985); }
.tile-icon { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 15px; display: grid; place-items: center; color: 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: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.app-phone .tile-icon { background: linear-gradient(145deg,#32a8f5,#087be0); }
.app-phone .tile-icon svg, .app-messages .tile-icon svg { fill: #fff; stroke: none; }
.app-messages .tile-icon { background: linear-gradient(145deg,#32d66b,#10b94d); }
.app-contacts .tile-icon { background: linear-gradient(145deg,#906dff,#6031e6); }
.app-shopping .tile-icon { background: linear-gradient(145deg,#ffb04c,#ff781b); }
.app-barber .tile-icon { background: linear-gradient(145deg,#36a9f6,#0878db); }
.app-notes .tile-icon { background: linear-gradient(145deg,#ffd15b,#f3aa12); }
.app-recordings .tile-icon { background: linear-gradient(145deg,#ff6970,#e82935); }
.app-dictation .tile-icon { background: linear-gradient(145deg,#34c8b8,#009b91); }
.app-poems .tile-icon { background: linear-gradient(145deg,#a749f1,#7124dc); }
.app-help .tile-icon { background: linear-gradient(145deg,#f256aa,#dc2087); }
.app-groups .tile-icon { background: linear-gradient(145deg,#ff8c52,#e95331); }
.app-status .tile-icon { background: linear-gradient(145deg,#459df6,#2863ed); }
.app-phone { background: #eaf6ff; }
.app-messages { background: #eaf8ef; }
.app-contacts { background: #f2efff; }
.app-shopping { background: #fff2e6; }
.app-notes { background: #fff9e6; }
.app-recordings { background: #fff0f2; }
.app-dictation { background: #eaf8f6; }
.app-poems { background: #f6efff; }
.app-help { background: #fff0f7; }
.app-groups { background: #fff1ea; }
.app-status { background: #eaf2ff; }
.upcoming { color: #20252e; }
.app-tile:disabled { opacity: 1; }
.empty-tile { border: 1px solid #f0f1f4; background: #f7f8fa; color: #788196; font-size: 24px; font-weight: 400; }
.empty-mark { width: 54px; height: 54px; display: grid; place-items: center; border: 1px dashed #bac2d0; border-radius: 13px; color: #64718a; 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,#eef7ff,#eef9f1); color:#263248; }
.phone-ready-banner .status-dot { margin-top:5px; width:10px; height:10px; flex-basis:10px; }
.phone-ready-banner .status-dot.offline { background:#a9b0bc; }
.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:#687080; border-radius:0; font-size:11px; line-height:1.35; }
.phone-ready-banner #auto-answer-description { color:#687080; 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 #e3e6ed; border-radius:12px; background:#f4f6f9; }
.phone-tab { min-width:0; padding:7px 3px; border:0; border-radius:9px; background:transparent; color:#596579; 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:#fff; background:#2e86ed; 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:#7b8494; 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:#f0f2f6; color:#253044; font-size:16px; font-weight:600; cursor:pointer; }
.dial-keys button:hover { background:#e4eaf4; }
.dial-keys small { color:#8992a0; font-size:7px; letter-spacing:.08em; }
.dial-call-button { width:100%; margin-top:8px; border:0; border-radius:10px; padding:9px; background:#2bbd58; color:#fff; }
.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:#8992a0; 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 #edf0f4; }
.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:#dcecff; color:#2c78d2; 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:#e6f7eb; color:#309f54; }
.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:#edf4ff; color:#397fce; 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:#778196; 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:#788294; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.history-row .recording-shortcut, .recording-row .play-recording { background:#fff0f1; color:#e74652; }
.history-row .recording-shortcut:hover, .recording-row .play-recording:hover { background:#ffe2e5; }
.search-field { display:flex; align-items:center; gap:7px; margin:3px 0 9px; padding:0 10px; border:1px solid #dfe4ec; border-radius:10px; background:#fff; color:#8791a2; 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:#f3f5f8; font-size:10px; }
.recording-filters .selected { background:#2f88ed; border-color:#2f88ed; color:#fff; }
.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,#eaf3ff,#f1f4f8); color:#438be1; 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:#798395; font-size:10px; }
.play-recording-large { width:42px; height:42px; border:0; border-radius:50%; background:#2e86ed; color:#fff; font-size:17px; }
.transcript-button { width:100%; margin-top:12px; border-color:#dfe4ec; color:#3c526f; text-align:left; }
.transcript-preview { margin-top:8px; padding:10px; border-radius:11px; background:#f4f7fc; 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:#263143; 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:#778196; font-size:11px; }
.inbox-tile { background:#eaf8ef; }.inbox-tile .tile-icon { background:#35c767; }
.scheduled-tile { background:#fff8e5; }.scheduled-tile .tile-icon { background:#f3b92c; }
.sent-tile { background:#edf5fe; }.sent-tile .tile-icon { background:#328fed; }
.drafts-tile { background:#fff0f2; }.drafts-tile .tile-icon { background:#f05a68; }
.compose-button { width:100%; min-height:60px; margin:22px 0 18px; border:0; border-radius:13px; background:#1685ee; color:#fff; 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 #edf0f4; }
.message-draft-row { width:100%; border:0; border-bottom:1px solid #edf0f4; border-radius:0; background:transparent; color:inherit; text-align:left; cursor:pointer; font:inherit; }
.message-draft-row:hover { background:#f6f9fd; }
.message-draft-row:focus-visible { outline:3px solid #2e86ed; 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:#58657a; 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:#778196; 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:#edf4ff; color:#286bd1; cursor:pointer; }
.message-conversation-thread { margin-top:8px; border-top:1px solid #e7ebf1; padding-top:7px; }
.message-conversation-thread summary { color:#286bd1; 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:#f3f6fb; }
.message-thread-item.inbound { margin-right:14px; background:#eef3f8; }
.message-thread-item.outbound { margin-left:14px; background:#eaf3ff; }
.message-thread-item > div { display:flex; justify-content:space-between; gap:10px; align-items:baseline; }
.message-thread-item > div strong { font-size:11px; }
.message-thread-item > div time { max-width:none; font-size:10px; text-align:right; }
.message-thread-item p { margin:5px 0 0; color:#334155; 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:#f0f5fc; color:#344b69; }
.recording-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin:8px 0; }
.recording-tabs button { padding:8px 5px; background:#f0f3f7; color:#526078; font-size:11px; }
.recording-tabs button.selected { background:#2e86ed; border-color:#2e86ed; color:#fff; }
.waveform-player { position:relative; margin:12px 0; padding:12px 12px 8px; border:1px solid #e4eaf3; border-radius:14px; background:linear-gradient(110deg,#f7fbff,#f3f6fa); }
.waveform-bars { height:45px; margin:0 2px 4px; opacity:.8; background:repeating-linear-gradient(90deg,transparent 0 4px,#72aef3 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:#287fe5; background:transparent; cursor:pointer; }
.waveform-times { display:flex; justify-content:space-between; color:#778196; 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 #e3e6ed; border-radius:12px; background:#f4f6f9; }
.group-tabs button { border:0; padding:9px 4px; color:#596579; background:transparent; font-size:11px; }
.group-tabs button.selected { background:#2e86ed; color:white; }
.group-content h2 { margin:9px 0; font-size:16px; }
#group-members-view > label { display:block; margin:10px 0 6px; color:#253044; font-size:13px; font-weight:700; }
#group-select { min-height:42px; margin-top:5px; border:1px solid #d9e2ef; 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 #e7edf5; border-radius:13px; background:linear-gradient(110deg,#fff,#fbfcff); 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,#e4f1ff,#cfe3ff); color:#337bd0; }
.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:#758197; font-size:12px; }
.group-member-row button.danger { flex:0 0 auto; min-height:34px; padding:6px 11px; border:1px solid #f0b8bd; border-radius:11px; background:linear-gradient(180deg,#fff,#fff7f7); color:#c84651; font-size:11px; font-weight:650; white-space:nowrap; }
.group-member-row button.danger:hover { border-color:#e99199; background:#fff0f1; }
.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 #dbe9fb; border-radius:12px; background:linear-gradient(110deg,#edf6ff,#f4f8ff); color:#63738b; 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:#788397; }
.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:#fff7df; color:#77602a; 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:#edf3ff; color:#30415e; font-size:11px; }
.recipient-chip button { width:18px; height:18px; padding:0; border:0; border-radius:50%; background:#fff; color:#5b6e89; 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 #e1e7f0; 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 #cbd7e6;
  border-radius:6px;
  background:linear-gradient(180deg,#fff,#f8fbff);
  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:#2485ee;
  background:#2485ee;
  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 #9bc9ff;
  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 #e3eaf3; border-radius:13px; background:linear-gradient(180deg,#fff,#fbfdff); box-shadow:0 2px 6px #2036540a; font-size:14px; }
.shopping-row + .shopping-row { margin-top:6px; }
.shopping-row > span { flex:1; color:#263246; 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 #f3d6da; border-radius:10px; color:#b94352; background:#fff5f6; font-size:18px; }
.shopping-row.purchased > span { color:#8a929e; text-decoration:line-through; }
.schedule-control > label:first-child { display:flex; align-items:center; gap:9px; min-height:38px; margin:7px 0; color:#39475d; }
.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:#53627a; font-size:11px; }
.status-display { padding:15px; border-radius:12px; background:#edf7f0; color:#1d713a; 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:#fff; border-color:#2e86ed; background:#2e86ed; }
#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:#516078; font-size:11px; }
.message-state { padding:4px 6px; border-radius:8px; background:#eaf8ef; color:#278147; font-size:8px; }
.recipient-preview { display:flex; align-items:center; gap:6px; margin-top:5px; padding:8px; border:1px solid #dfe4ec; border-radius:10px; color:#3a4b65; font-size:11px; }
.recipient-preview > span:first-child { padding:4px 8px; border-radius:12px; background:#eaf1ff; }
.secondary-recipient { flex:1; color:#929bab; }
.messages-content textarea { width:100%; min-height:110px; resize:none; }
.segment-preview { margin-top:5px; color:#798395; text-align:right; font-size:9px; }
.message-preview { margin-top:12px; padding:12px; border-radius:12px; background:#eef6ff; font-size:11px; }
.message-preview p { margin:7px 0 0; font-size:10px; }
.sync-status { margin-top:auto; }
.recordings-mark { background:linear-gradient(145deg,#ff6870,#e92c3b); }
.status-dot { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #37bf6a; }
.view-content { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 1px 6px; }
.panel { background: white; border: 1px solid #e3e6ed; 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 #cfd5df; border-radius: 9px; background: white; color: inherit; font: inherit; }
button { border: 1px solid #cfd5df; border-radius: 9px; padding: 9px 11px; background: white; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
button.primary { background: #2863ed; color: white; border-color: #2863ed; }
button.danger { color: #b52836; border-color: #e6b8bd; }
.full-width { width: 100%; margin-top: 14px; }
.status { padding: 10px 11px; background: #eff4ff; 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: #4f5867; }
.mic-gain-row input { grid-column: 1 / -1; width: 100%; margin: 0; padding: 0; accent-color: #2863ed; }
.mic-gain-row output { color: #20252e; 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: #bd293a; border-color: #bd293a; color: white; opacity: 1; }
button.primary.connected:hover, button.primary.connected:focus-visible { background: #a91f30; border-color: #a91f30; }
.text-button { display: block; margin: 10px auto 0; border: 0; color: #687080; background: transparent; font-weight: 500; }
#notice { min-height: 18px; margin: 7px 4px; color: #9b2632; line-height: 1.35; font-size: 12px; }
.incoming { margin-top: 12px; padding: 13px; border: 1px solid #b8c9ff; border-radius: 12px; background: #f4f7ff; }
.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 #e0e4eb; color: #283143; }
.sync-status > div { display: flex; flex-direction: column; gap: 3px; }
.sync-status strong { font-size: 13px; }.sync-status div span { color: #778198; 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 #e0e4eb; color: #737b88; 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:#eef8ef; color:#22683a; 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:#2e86ed; border-color:#2e86ed; color:#fff; }
.revoke-button { width:100%; padding:10px; border:1px solid #e6b8bd; border-radius:10px; color:#b52836; }

/* Keep form controls consistent across every app view. */
input:not([type="checkbox"]):not([type="range"]):not([type="hidden"]), select, textarea {
  border-color:#d6dfeb;
  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:#8fc4ff;
  outline:2px solid #8fc4ff;
  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:#c4d4e8; box-shadow:0 2px 6px #20365410; }
button.primary:not(:disabled):hover { border-color:#176fe0; background:#176fe0; }

/* 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 #5d9df1; 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 #dfe4ec; border-radius:12px; background:#fff; }
.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 #e3e6ed; border-radius:12px; background:#f4f6f9; }
.contact-tabs button { min-width:0; min-height:42px; padding:7px; border:0; border-radius:9px; background:transparent; color:#596579; font-weight:650; }
.contact-tabs button.selected { background:#2e86ed; color:#fff; }
.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 #e3e6ed; border-radius:12px; background:#f4f6f9; }
.notes-tabs button { min-height:40px; border:0; border-radius:9px; background:transparent; color:#596579; font-weight:650; }
.notes-tabs button.selected { background:#2e86ed; color:#fff; }
.note-form { display:grid; gap:7px; padding:12px; border:1px solid #e3eaf3; border-radius:15px; background:#fff; 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 #d6dfeb; border-radius:11px; color:#202838; 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 #e3eaf3; border-radius:15px; background:linear-gradient(110deg,#fff,#fbfcff); 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:#718097; font-size:11px; }
.note-actions button { min-height:34px; padding:6px 10px; border:1px solid #dfe5ed; border-radius:10px; background:#fff; color:#40506a; font-size:12px; font-weight:650; }
.note-actions button.danger { color:#c83243; border-color:#f0b0b7; }
.note-delete-confirmation { display:grid; gap:8px; padding:14px; border:1px solid #efb7bd; border-radius:15px; background:#fff9f9; 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 #cf3143; border-radius:10px; background:#c83243; color:#fff; font-size:12px; font-weight:700; }
#notes-status { margin:0; color:#52647c; font-size:12px; }

/* Shared, calm list treatment based on the approved Adele list mockup. */
:root { color:#202838; background:#f7f8fa; }
.app-mark { background:#e3f0ff; color:#1682e8; box-shadow:none; }
.barber-mark { background:linear-gradient(145deg,#36a9f6,#0878db); color:#fff; }
.messages-mark { background:linear-gradient(145deg,#2fd56b,#08ad49); color:#fff; }
.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:#fff !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,#ff8c52,#e95331); color:#fff; }
.contacts-mark { background:linear-gradient(145deg,#906dff,#6031e6); color:#fff; }
.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:#1682e8; }
.barber-content { display:flex; flex-direction:column; gap:10px; overflow-x:hidden; }
.barber-week-nav { flex:0 0 auto; display:grid; grid-template-columns:38px minmax(0,1fr) auto 38px; align-items:center; gap:6px; }
.barber-week-nav strong { min-width:0; text-align:center; font-size:13px; color:#35455e; }
.barber-week-nav button { min-height:36px; padding:6px 9px; white-space:nowrap; }
.barber-week-grid { display:grid; grid-auto-columns:minmax(175px,1fr); grid-auto-flow:column; gap:8px; overflow-x:auto; overflow-y:hidden; padding:2px 2px 10px; scroll-snap-type:x proximity; }
.barber-day-card { min-width:175px; padding:10px; border:1px solid #e1e8f1; border-radius:14px; background:#fff; box-shadow:0 2px 7px #1d30420a; scroll-snap-align:start; }
.barber-day-header { display:flex; align-items:flex-start; justify-content:space-between; gap:6px; min-height:38px; margin-bottom:7px; }
.barber-day-header h2 { margin:0; color:#2c405d; font-size:14px; text-transform:capitalize; }
.barber-day-state { flex:0 0 auto; padding:3px 6px; border-radius:8px; color:#19744d; background:#e8f7ef; font-size:10px; font-weight:700; }
.barber-day-state.closed { color:#9b5423; background:#fff2e5; }
.barber-slot-list { display:grid; gap:5px; margin:0; padding:0; list-style:none; }
.barber-slot { display:grid; grid-template-columns:1fr auto; align-items:center; gap:4px 6px; padding:6px; border:1px solid #edf0f4; border-radius:10px; background:#fbfcfe; font-size:11px; }
.barber-slot time { color:#3c4c63; font-weight:700; font-variant-numeric:tabular-nums; }
.barber-slot-state { color:#68778b; }
.barber-slot-state.available { color:#178252; }
.barber-slot-state.booked { color:#9a5b17; }
.barber-slot-state.closed { color:#7b8491; }
.barber-create-slot { grid-column:1/-1; min-height:30px; padding:4px 7px; color:#1665b5; border-color:#cde0f5; background:#f2f8ff; font-size:11px; }
.barber-booking-detail { grid-column:1/-1; display:grid; min-width:0; color:#34445b; overflow-wrap:anywhere; }
.barber-booking-detail span { color:#68778b; font-size:10px; font-variant-numeric:tabular-nums; }
.barber-slot-actions { grid-column:1/-1; display:flex; gap:5px; }
.barber-slot-actions button { min-height:29px; flex:1; padding:4px 5px; font-size:10px; }
.barber-slot-actions .danger-secondary { color:#a52b39; border-color:#ecc5c9; background:#fff8f8; }
.barber-day-toggle { width:100%; margin-top:7px; padding:6px 8px; font-size:11px; }
.barber-status { flex:0 0 auto; margin:0; color:#596980; font-size:12px; }
.barber-editor { flex:0 0 auto; display:grid; gap:8px; margin:0 0 8px; padding:12px; border:1px solid #dce7f4; border-radius:14px; background:#fff; }
.barber-editor[hidden] { display:none; }
.barber-editor h2 { margin:0; font-size:16px; }
.barber-editor label { display:grid; gap:4px; margin:0; color:#465873; font-size:12px; font-weight:650; }
.barber-editor input, .barber-editor select { min-height:38px; width:100%; padding:7px 9px; border:1px solid #d6dfeb; border-radius:9px; background:#fff; color:#202838; font:inherit; }
.barber-editor-actions { display:flex; gap:7px; }
.barber-editor-actions button { min-height:37px; flex:1; padding:6px 8px; }
.barber-editor-actions #barber-editor-cancel.barber-editor-close { border-color:#0756e8; background:#0756e8; color:#fff; }
.barber-editor-actions #barber-editor-cancel.barber-editor-close:hover { border-color:#0646bd; background:#0646bd; }
.barber-editor-actions #barber-editor-cancel.barber-editor-close:focus-visible { outline:3px solid #8fc4ff; outline-offset:2px; }
.barber-settings-toggle { flex:0 0 auto; align-self:flex-start; }
.barber-sms-settings { max-height:34vh; overflow:auto; }
.barber-sms-settings textarea { width:100%; min-height:60px; resize:vertical; padding:8px; border:1px solid #d6dfeb; border-radius:9px; font:inherit; font-size:12px; line-height:1.4; }
.barber-archive { display:grid; gap:9px; max-height:42vh; overflow:auto; }
.barber-archive h2 { margin:0; font-size:16px; }
.barber-archive-list { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.barber-archive-item { display:grid; gap:5px; padding:10px; border:1px solid #e0e6ef; border-radius:11px; background:#fff; }
.barber-archive-item span { color:#52647c; font-size:12px; }
.barber-template-preview { margin:0; padding:10px; border:1px solid #e1e8f1; border-radius:9px; background:#f7f8fa; white-space:pre-wrap; overflow-wrap:anywhere; font:12px/1.45 ui-monospace, SFMono-Regular, monospace; }
.barber-template-status { margin:0; font-size:12px; }
.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,#fff,#edf5ff); }
.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 #e5eaf1; 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,#e3f1ff,#d1e5ff); color:#187cdb;
}
.user-avatar-color-0 { background:linear-gradient(145deg,#e6e1ff,#d8d0ff) !important; color:#694fc5 !important; }
.user-avatar-color-1 { background:linear-gradient(145deg,#dff5eb,#c8ecd9) !important; color:#278b57 !important; }
.user-avatar-color-2 { background:linear-gradient(145deg,#ffe8dd,#ffd8c6) !important; color:#bd633c !important; }
.user-avatar-color-3 { background:linear-gradient(145deg,#ffe5ed,#ffd2e0) !important; color:#c34f78 !important; }
.user-avatar-color-4 { background:linear-gradient(145deg,#e0efff,#cce4ff) !important; color:#2774bf !important; }
.user-avatar-color-5 { background:linear-gradient(145deg,#fff2d7,#ffe5b5) !important; color:#a97820 !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,#e3f1ff,#d1e5ff); color:#187cdb; }
.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:#718097; 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 #f0b0b7; border-radius:11px; background:#fff; color:#c83243; 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:#fff; border-color:#d6dfeb; }
.group-content .prototype-note { padding:0; border:0; border-radius:0; background:transparent; color:#78869a; 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 #d9e2ee; border-radius:14px; background:#fff; }
.app-footer { border-color:#e0e5ed; }
@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 #d6dfeb;
  border-radius:12px;
  appearance:none;
  -webkit-appearance:none;
  background-color:#fff;
  background-image:linear-gradient(45deg,transparent 43%,#0b73d8 44% 58%,transparent 59%),linear-gradient(135deg,transparent 43%,#0b73d8 44% 58%,transparent 59%);
  background-repeat:no-repeat;
  background-size:16px 16px;
  background-position:right 14px center;
}
select:focus-visible { outline:2px solid #8fc4ff; outline-offset:2px; }
.search-field {
  min-height:42px;
  align-items:center;
  gap:9px;
  padding:0 12px;
  color:#8591a3;
  font-size:15px;
}
.search-field .search-icon {
  display:block;
  flex:0 0 19px;
  width:19px;
  height:19px;
  fill:none;
  stroke:#8290a4;
  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:#263246;
  font:inherit;
  line-height:1.2;
}
.search-field input::placeholder { color:#858b94; 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 #0875dc;
  border-bottom: 2.5px solid #0875dc;
  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 #d6dfeb;
  border-radius: 12px;
  background: #fff;
  color: #263246;
  font: inherit;
  line-height: 1.4;
  box-shadow: 0 1px 3px #20365408;
}
#phone-active-call-view .group-call-panel textarea:focus-visible {
  border-color: #8fc4ff;
  outline: 2px solid #8fc4ff;
  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,#ff6970,#e82935); color:#fff; 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 #d6dfeb; border-radius:11px; background:#f1f4f8; color:#52627a; 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:#2587f2; background:#2587f2; color:#fff; 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 #e3eaf3; border-radius:12px; background:linear-gradient(110deg,#fff,#fbfcff); box-shadow:0 2px 5px #1c2c4208; }
.recording-card > .avatar { flex:0 0 32px; width:32px; height:32px; font-size:13px; background:#e9ddff; color:#7955ce; }
.recording-card:nth-child(4n+2) > .avatar { background:#dff3eb; color:#329968; }
.recording-card:nth-child(4n+3) > .avatar { background:#ffe7dc; color:#d56d40; }
.recording-card-copy { min-width:0; display:flex; flex-direction:column; gap:3px; }
.recording-card-copy strong { overflow:hidden; color:#222a38; 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:#77849a; 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:#78869c; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.recording-duration { color:#546176; 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:#e5f3ff; color:#2181d9; font-size:9px; font-weight:650; line-height:1.1; white-space:nowrap; }
.recording-kind.other { background:#f0eaff; color:#7652ca; }
.recording-filter-note { margin:0 0 10px; color:#68768a; font-size:11px; line-height:1.4; }
.recording-classification-note { display:block; margin-top:3px; color:#8a5d16; 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:#e9f3ff; color:#2183df; }
.recording-card-actions .audio { background:#fff0f1; color:#e74b5a; }
.recording-card-actions .transcript { background:#fff; border-color:#dfe5ed; color:#63718a; }
.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 #e5ebf3; border-radius:12px; background:#fff; }
.recording-call-summary > .avatar { flex:0 0 40px; width:40px; height:40px; font-size:15px; background:#e9ddff; color:#7955ce; }
.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:#758198; 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:#e1e8f2; border-radius:13px; background:linear-gradient(110deg,#f8fbff,#f1f5fa); }
.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:#1689f4; background:transparent; }
.recording-waveform input[type="range"]::-webkit-slider-runnable-track { height:3px; background:#d6e2f0; 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:#344560; 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:#168af4; color:#fff; 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:#62718a; }
.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:#1889f3; }
.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 #e3eaf3; border-radius:11px; background:#fff; color:#273247; text-align:left; }
.transcript-file-icon { width:25px; height:25px; display:grid; place-items:center; border-radius:8px; background:#e7f2ff; color:#2583e6; font-size:15px; }
.recording-transcript-toggle strong { font-size:14px; }
.transcript-chevron { color:#66758b; font-size:20px; line-height:1; text-align:right; }
.recording-transcript { margin:8px 0 0; padding:12px; border:1px solid #e4eaf2; border-radius:12px; background:#fff; }
.recording-transcript h3 { margin:0 0 10px; font-size:14px; }
.transcript-turn { padding:8px 0; border-bottom:1px solid #edf0f4; }
.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:#e8f2ff; color:#287bd3; font-size:10px; font-weight:650; }
.transcript-turn:nth-child(odd) .transcript-speaker { background:#ffedf3; color:#ca4e76; }
.transcript-turn-meta time { color:#7b8798; font-size:12px; }
.transcript-turn p, .transcript-empty { margin:0; color:#30394a; 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 #e4eaf2; border-radius:13px; background:linear-gradient(110deg,#f5f8fc,#eef3f8); color:#64718a; text-align:center; }
.recording-missing-icon { width:33px; height:33px; color:#66758c; }
.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:#263247; 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:#293449; 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 #d6dfeb; border-radius:13px; background:linear-gradient(180deg,#fff,#fbfcff); color:#253044; 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:#b9d6f7; background:#fff; }
.device-picker-trigger:focus-visible { outline:2px solid #8fc4ff; 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:#e4f1ff; }
.device-picker-chevron::after { content:""; width:8px; height:8px; margin-top:-4px; border-right:2.5px solid #1379d7; border-bottom:2.5px solid #1379d7; 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 #d9e3f0; border-radius:13px; background:linear-gradient(180deg,#fff,#f8faff); 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:#35445c; font:inherit; font-size:15px; font-weight:500; text-align:left; cursor:pointer; }
.device-picker-option:hover, .device-picker-option:focus-visible { background:#edf5ff; outline:0; }
.device-picker-option.selected { background:#e8f3ff; color:#176fc3; font-weight:650; }
.device-option-check { flex:0 0 16px; width:16px; color:#147de0; 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%,#0b73d8 44% 58%,transparent 59%),linear-gradient(135deg,transparent 43%,#0b73d8 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:#8fc4ff; outline:2px solid #8fc4ff; 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:#82baff;
  outline:2px solid #8fc4ff;
  outline-offset:1px;
  box-shadow:0 0 0 3px #1689f414, 0 2px 6px #2036540d;
}
.search-field:focus-within .search-icon { stroke:#2587e8; }
.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%,#0b73d8 44% 58%,transparent 59%),linear-gradient(135deg,transparent 43%,#0b73d8 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 #dce7f3; border-radius:13px; background:#f7faff; 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:#65758d; font-size:12px; }
.active-command-history h4 { margin:9px 0 5px; color:#354965; font-size:13px; }
.active-command-prompt { padding:8px 0; border-bottom:1px solid #e5ebf3; }
.active-command-prompt > button { width:100%; min-height:40px; padding:8px 10px; border:1px solid #b9d4f1; border-radius:10px; background:#eef6ff; color:#145da6; text-align:left; font:inherit; font-weight:700; overflow-wrap:anywhere; }
.active-command-prompt p { margin:5px 1px 0; color:#64738a; font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
.active-command-prompt p time { color:#687a92; }
.active-command-history-executions { margin-top:10px; }
.active-command-entry { display:grid; gap:4px; padding:9px 2px; border-bottom:1px solid #edf0f4; }
.active-command-entry time { color:#77849a; font-size:11px; overflow-wrap:anywhere; }
.active-command-entry strong { font-size:14px; line-height:1.35; }
.active-command-entry p { margin:0; color:#5e6d83; font-size:13px; line-height:1.4; }
.group-activity-status { color:#526a83; font-size:12px; font-weight:700; }
.group-activity-status-succeeded { color:#187344; }
.group-activity-status-failed { color:#b52836; }
.group-activity-status-unknown { color:#8b6320; }
.contacts-content #contacts-permissions-view > .prototype-note { margin:8px 0 12px; padding:10px 12px; border:1px solid #dbe9fb; border-radius:12px; background:#f2f7ff; color:#62738b; 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%,#0b73d8 44% 58%,transparent 59%),linear-gradient(135deg,transparent 43%,#0b73d8 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,#ffb04c,#ff781b); color:#fff; 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 #dce6f2; border-radius:13px; background:#fff; }
.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:#66758a; font-size:13px; }
.group-edit-status:empty { display:none; }
.group-delete-confirmation { margin:8px 0; padding:12px; border:1px solid #e6b8bd; border-radius:13px; background:#fff8f8; }
.group-delete-confirmation h2 { margin:0 0 7px; font-size:16px; }
.group-delete-confirmation p { margin:6px 0; color:#566273; 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:#1f2937; 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%,#0b73d8 44% 58%,transparent 59%),linear-gradient(135deg,transparent 43%,#0b73d8 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 #dce6f2; border-radius:13px; background:#fff; }
.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:#66758a; 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:#82baff; outline:2px solid #8fc4ff; outline-offset:-2px;
  box-shadow:inset 0 0 0 1px #8fc4ff, 0 2px 6px #2036540d;
}
.search-field:focus-within .search-icon { stroke:#2587e8; }
.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%,#0b73d8 44% 58%,transparent 59%),
    linear-gradient(135deg,transparent 43%,#0b73d8 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:#35435a; 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 #e0e8f2; border-radius:13px; background:linear-gradient(180deg,#fff,#fbfdff); 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:#27354b; font-size:14px; line-height:1.25; }
.permission-group-card h3 span { min-width:24px; padding:2px 6px; border-radius:12px; background:#eaf3ff; color:#2677ce; 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 #edf1f6; }
.permission-group-card li:first-child { padding-top:0; border-top:0; }
.permission-group-card li strong { color:#263247; font-size:14px; line-height:1.25; }
.permission-group-card li span { color:#6e7c91; font-size:13px; }
.permission-group-card li small { color:#56708e; font-size:12px; line-height:1.35; }
.permission-group-empty { margin:0; color:#8792a3; font-size:13px; }
.recipient-chip small { color:#2874c7; 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:#15233a; 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:#fff; 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:#a78bfa; --app-color-bottom:#6d28d9; --app-surface:#f1eaff; --app-ink:#fff; }
.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 #8b5cf6; 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:#fff; background:linear-gradient(145deg,#a78bfa,#6d28d9); }
.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 #e5dafc; border-radius:11px; background:#faf7ff; color:#4c3d69; font-size:13px; line-height:1.45; }
.variant-defaults-sms { margin:12px 0; }
.variant-defaults-sms textarea[readonly] { background:#f6f1ff; border-color:#d7c6f7; color:#39285a; }
.variant-effective-preview { margin:9px 0 0; padding:9px 11px; border-radius:9px; background:#f3effa; color:#44365e; 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 #dce5f1; border-radius:12px; background:#f8faff; }
.permission-editor fieldset { display:grid; gap:9px; margin:0; padding:0; border:0; }
.permission-editor legend { margin-bottom:4px; color:#263853; font-size:13px; font-weight:700; }
.permission-editor label { display:flex; align-items:center; gap:8px; color:#34465e; font-size:13px; }
.permission-editor input { width:17px; height:17px; accent-color:#2e86ed; }
.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:#197142; }
.permission-editor [data-permission-status].error { color:#aa2632; }
.permission-editor :focus-visible { outline:3px solid #2e86ed; outline-offset:2px; }
.inbox-home { background:#eaf8ef; }.inbox-home .message-home-icon { background:linear-gradient(145deg,#49d77a,#21ad57); }
.scheduled-home { background:#eaf4ff; }.scheduled-home .message-home-icon { background:linear-gradient(145deg,#45b8ff,#1484ed); }
.sent-home { background:#fff0f2; }.sent-home .message-home-icon { background:linear-gradient(145deg,#ff737b,#ed4050); }
.drafts-home { background:#fff7e5; }.drafts-home .message-home-icon { background:linear-gradient(145deg,#ffc83d,#f3a500); }
.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:#687080; 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 #e3e8ef; border-radius:14px; background:#fff; }
.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:#263248; background:transparent; text-align:left; cursor:pointer; }
.help-topic:hover { background:#f5f8fc; }
.help-topic.selected { border-color:#d9e7fa; background:#eef5ff; color:#174e6f; }
.help-topic span { font-size:13px; font-weight:650; line-height:1.25; }
.help-topic small { color:#778397; font-size:11px; }
.help-article { padding:18px 20px; }
.help-article h2 { margin:0 0 12px; color:#183750; font-size:20px; }
.help-article p { margin:0 0 12px; color:#435064; font-size:15px; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }
.help-article .help-category { margin:0 0 5px; color:#7d5b87; 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 #edf0f4; color:#7c8492; 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 #dce4ee; border-radius:10px; background:#fff; color:#35445a; font:inherit; font-size:13px; }
.help-modes button[aria-pressed="true"] { border-color:#d7b7e5; background:#faf3fc; color:#633876; 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 #8ebcff; outline-offset:2px; }
.help-domain-filter-wrap { display:flex; align-items:center; gap:6px; min-height:42px; color:#596980; 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 #dce4ee; border-radius:10px; background:#fff; color:#263248; font:inherit; }
.help-command-detail, .help-service-detail { margin:14px 0; padding:12px 14px; border:1px solid #e5eaf0; border-radius:12px; background:#f9fbfd; }
.help-command-detail summary, .help-service-detail summary { cursor:pointer; color:#35445a; 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:#35445a; 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:#435064; line-height:1.5; }
.help-command-id { margin-top:18px !important; color:#7c8492; font-size:12px; }
.help-command-id code { overflow-wrap:anywhere; }
.voice-line-field { display:flex; flex-direction:column; gap:6px; margin:14px 0; color:#263248; font-size:13px; font-weight:650; }
.voice-line-field textarea, .voice-line-field input { width:100%; min-height:76px; padding:10px; border:1px solid #d7dee8; border-radius:9px; color:#263248; background:#fff; font:inherit; font-size:14px; line-height:1.5; resize:vertical; }
.voice-line-field input { min-height:42px; }
.voice-line-field small { color:#778397; font-weight:400; }
.message-variant-editor { display:grid; gap:10px; margin:16px 0; padding:14px; border:1px solid #dfe5ed; border-radius:12px; background:#f8fafc; }
.message-variant-editor label, .variant-defaults label { display:grid; gap:5px; margin:0; color:#263248; 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 #dfe5ed; border-radius:10px; background:#fff; }
.message-variant-row p { margin:8px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.message-variant-row small { display:block; color:#6d7889; }
.voice-lines-actions { display:flex; gap:8px; flex-wrap:wrap; }
.help-updated { flex:0 0 auto; margin:8px 2px 0; color:#8790a0; font-size:11px; line-height:1.35; }
.help-mark { background:linear-gradient(145deg,#f256aa,#dc2087); }
.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 #dce4ee; border-radius:11px; background:#fff; color:#35445a; font:inherit; font-size:12px; font-weight:650; cursor:pointer; }
.help-doc-tab.selected { border-color:#d7b7e5; background:#faf3fc; color:#633876; }
.help-library { flex:1; overflow:auto; padding:18px 20px; }
.help-layout > .help-library { grid-column:1 / -1; }
.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:#326c91; 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:#778397 !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 #cbd9e8; border-radius:10px; background:#f2f7fc; color:#204763; font:inherit; font-size:13px; font-weight:650; cursor:pointer; }
.help-download button:disabled { opacity:.6; }
.help-download span { color:#687080; font-size:12px; }
.help-inline-toc { display:flex; flex-wrap:wrap; gap:6px 12px; margin:0 0 14px; padding:12px; border:1px solid #e5eaf0; border-radius:11px; background:#f9fbfd; }
.help-inline-toc a { color:#225f86; font-size:12px; line-height:1.4; }
.help-full-section { margin:0 0 8px; border:1px solid #e2e8ef; border-radius:11px; background:#fff; scroll-margin-top:8px; }
.help-full-section[open] { background:#fcfdff; }
.help-full-section summary { padding:12px 14px; color:#253e55; 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:#435064; 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 #8ebcff; 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; } }

/* Home tiles keep their full labels inside a fixed six-row grid. */
.app-grid {
  grid-template-rows:repeat(6,minmax(0,1fr));
  grid-auto-rows:minmax(0,1fr);
  align-content:start;
  overflow-y:hidden;
  overscroll-behavior:contain;
  padding:2px 3px 5px;
  scrollbar-gutter:stable;
}
.app-tile {
  min-height:0;
  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:#32a8f5; --app-color-bottom:#087be0; --app-surface:#eaf6ff; --app-ink:#fff;
}
.app-tile[data-app-key="messages"], .app-mark[data-app-key="messages"] {
  --app-color-top:#32d66b; --app-color-bottom:#10b94d; --app-surface:#eaf8ef; --app-ink:#fff;
}
.app-tile[data-app-key="contacts"], .app-mark[data-app-key="contacts"] {
  --app-color-top:#906dff; --app-color-bottom:#6031e6; --app-surface:#f2efff; --app-ink:#fff;
}
.app-tile[data-app-key="barber"], .app-mark[data-app-key="barber"] {
  --app-color-top:#ffad56; --app-color-bottom:#ed741e; --app-surface:#fff2e6; --app-ink:#fff;
}
.app-tile[data-app-key="groups"], .app-mark[data-app-key="groups"] {
  --app-color-top:#ff8c52; --app-color-bottom:#e95331; --app-surface:#fff1ea; --app-ink:#fff;
}
.app-tile[data-app-key="status"], .app-mark[data-app-key="status"] {
  --app-color-top:#459df6; --app-color-bottom:#2863ed; --app-surface:#eaf2ff; --app-ink:#fff;
}
.app-tile[data-app-key="shopping"], .app-mark[data-app-key="shopping"] {
  --app-color-top:#ffb04c; --app-color-bottom:#ff781b; --app-surface:#fff2e6; --app-ink:#fff;
}
.app-tile[data-app-key="notes"], .app-mark[data-app-key="notes"] {
  --app-color-top:#ffd15b; --app-color-bottom:#f3aa12; --app-surface:#fff9e6; --app-ink:#fff;
}
.app-tile[data-app-key="help"], .app-mark[data-app-key="help"] {
  --app-color-top:#f256aa; --app-color-bottom:#dc2087; --app-surface:#fff0f7; --app-ink:#fff;
}
.app-tile[data-app-key="recordings"], .app-mark[data-app-key="recordings"] {
  --app-color-top:#ff6970; --app-color-bottom:#e82935; --app-surface:#fff0f2; --app-ink:#fff;
}
.app-tile[data-app-key="football-live"], .app-mark[data-app-key="football-live"] {
  --app-color-top:#56b875; --app-color-bottom:#27834a; --app-surface:#edf8ef; --app-ink:#fff;
}
.app-tile[data-app-key="flight-live"], .app-mark[data-app-key="flight-live"] {
  --app-color-top:#48a9c8; --app-color-bottom:#237b9d; --app-surface:#eaf7fb; --app-ink:#fff;
}
.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:#fff; stroke:none; }
.app-tile[data-app-key="recordings"] .tile-icon svg,
.app-mark[data-app-key="recordings"] svg { fill:none; stroke:#fff; }
.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 #e1e7ee; border-radius:14px; background:#fff; 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:#334057; }
.live-control-form input, .live-control-form select { min-width:0; min-height:40px; padding:8px 10px; border:1px solid #cfd7e2; border-radius:9px; background:#fff; color:#20252e; 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 #e1e7ee; border-radius:12px; background:#fff; overflow-wrap:anywhere; }
.live-tracker-card > span, .live-tracker-card small { color:#677386; 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:#a32634; 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; }
}
.barber-create-slot { color:#a94c0e; border-color:#f5c596; background:#fff5eb; }
.barber-create-slot:hover { border-color:#e8944e; background:#ffead7; }
#barber-view button.primary { border-color:#d96512; background:#ed741e; color:#fff; }
#barber-view button.primary:hover { border-color:#bd5410; background:#d96512; }

/* 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 #dce4ee; border-radius:10px; background:#fff; 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 #edf0f4; }
.live-autocomplete-option:hover, .live-autocomplete-option[aria-selected="true"] { background:#eef5ff; }
.live-autocomplete-option small { color:#778397; }
#football-live-team-status, #football-live-target-status, #flight-live-target-status { display:block; color:#687080; 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:#b52836; }

/* 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:#16b8a5; --app-color-bottom:#087e79; --app-surface:#e7f8f5; --app-ink:#fff; }

.yle-news-card { padding:16px; margin:12px 0; border:1px solid #ccd3dc; 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:#4a7fa5; --app-color-bottom:#315a78; --app-surface:#edf4f9; --app-ink:#fff; }

.app-tile[data-app-key="music-room"], .app-mark[data-app-key="music-room"] { --app-color-top:#9469cd; --app-color-bottom:#62418d; --app-surface:#f3edf9; --app-ink:#fff; }
#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; }
