/* Round 2 look: panels as separate tiles on a soft stone background,
   rounded chat cards with a gap, a solid violet card for the open chat,
   violet bubbles for your replies, and resizable panels (panels.js).
   Loaded after style.css; it only restyles, it does not hide features. */
:root {
  --bg: #f3f2ee;          /* the canvas behind the tiles */
  --panel: #ffffff;
  --text: #15151a;
  --muted: #6b6b76;
  --line: #e6e4de;
  --line-2: #efede8;
  --accent: #5847f0;
  --accent-soft: #eceafe;
  --accent-ink: #3b2dc4;
  --mine: #5847f0;
  --mine-text: #ffffff;
  --theirs: #eceafe;      /* teammates' messages: light violet */
  --visitor: #ffffff;
  --chat-bg: #faf9f7;
  --card: #ffffff;
  --sel: #5847f0;
  --sel-text: #ffffff;
  --sel-muted: rgba(255, 255, 255, .78);
  --rail-ico: #6b6b76;
  --shadow-1: 0 1px 2px rgba(20, 20, 30, .05), 0 0 0 1px rgba(20, 20, 30, .05);
  --shadow-2: 0 8px 22px -8px rgba(20, 20, 30, .18), 0 0 0 1px rgba(20, 20, 30, .06);
  --sel-shadow: 0 8px 22px -8px rgba(88, 71, 240, .6);
  --font: "Instrument Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d11; --panel: #16161c; --text: #eeeef3; --muted: #a0a0ab; --line: #2a2a33; --line-2: #22222a;
    --accent: #8f83ff; --accent-soft: #25223f; --accent-ink: #c4bdff; --mine: #6a5cf5; --theirs: #25223f; --visitor: #1f1f27;
    --chat-bg: #131318; --card: #1b1b22; --sel: #6a5cf5; --rail-ico: #8a8a96;
    --shadow-1: 0 0 0 1px rgba(255, 255, 255, .06); --shadow-2: 0 8px 24px -8px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
    --sel-shadow: 0 8px 24px -8px rgba(106, 92, 245, .7);
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d11; --panel: #16161c; --text: #eeeef3; --muted: #a0a0ab; --line: #2a2a33; --line-2: #22222a;
  --accent: #8f83ff; --accent-soft: #25223f; --accent-ink: #c4bdff; --mine: #6a5cf5; --theirs: #25223f; --visitor: #1f1f27;
  --chat-bg: #131318; --card: #1b1b22; --sel: #6a5cf5; --rail-ico: #8a8a96;
  --shadow-1: 0 0 0 1px rgba(255, 255, 255, .06); --shadow-2: 0 8px 24px -8px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  --sel-shadow: 0 8px 24px -8px rgba(106, 92, 245, .7);
}
body { font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
svg.ph { width: 18px; height: 18px; flex: none; display: block; }

/* ---------- rail: icons on the canvas, the open page on a white tile ---------- */
.rail { background: var(--bg); }
.rail-btn { width: 40px; height: 40px; border-radius: 12px; color: var(--rail-ico); }
.rail-btn svg.ph { width: 21px; height: 21px; fill: currentColor; }
.rail-btn .ph.duo { display: none; }
.rail-btn:hover { background: rgba(120, 110, 160, .1); color: var(--text); }
.rail-btn.active { background: var(--panel); color: var(--accent); box-shadow: var(--shadow-1); }
.rail-btn.active svg { fill: currentColor; }
.rail-btn.active .ph:not(.duo) { display: none; }
.rail-btn.active .ph.duo { display: block; }
.rail-badge { background: #e0484e; box-shadow: 0 0 0 2px var(--bg); }

/* ---------- workspace bar blends into the canvas ---------- */
.ws-bar { background: var(--bg); border-bottom: 0; padding: 8px 12px 6px 4px; }
.ws-bar-btn { background: var(--panel); border-color: transparent; box-shadow: var(--shadow-1); border-radius: 10px; }

/* ---------- inbox layout: tiles with 8px gaps ---------- */
@media (min-width: 901px) {
  .inbox-page { position: relative; grid-template-columns: var(--w-side, 232px) var(--w-list, 340px) minmax(0, 1fr); column-gap: 8px; padding: 0 8px 8px 0; background: var(--bg); }
  .sidebar { background: transparent; border-right: 0; padding: 4px 4px 0 4px; }
  .list { background: transparent; border-right: 0; }
  .pane { background: var(--panel); border-radius: 18px; box-shadow: var(--shadow-1); overflow: hidden; }
}
@media (min-width: 1101px) {
  .inbox-page.with-details { grid-template-columns: var(--w-side, 232px) var(--w-list, 340px) minmax(0, 1fr) var(--w-details, 320px); }
  .details { border-left: 0; border-radius: 18px; box-shadow: var(--shadow-1); overflow: hidden; }
}

/* ---------- sidebar ---------- */
.sidebar-head { padding: 2px 8px 10px; }
.sidebar-head h2 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.sidebar-head .icon-btn { width: 30px; height: 30px; border-radius: 9px; background: var(--panel); border: 0; box-shadow: var(--shadow-1); display: grid; place-items: center; color: var(--muted); }
.sidebar-head .icon-btn svg.ph { width: 16px; height: 16px; }
.views li, .teammates li { min-height: 33px; padding: 6px 10px; border-radius: 10px; color: var(--muted); font-weight: 500; }
.views li { color: color-mix(in srgb, var(--text) 78%, var(--muted)); }
.views li:hover, .teammates li:hover { background: rgba(120, 110, 160, .08); }
.views li.active, .teammates li.active { background: var(--panel); color: var(--text); box-shadow: var(--shadow-1); font-weight: 600; }
.views .ico { width: 20px; height: 20px; display: grid; place-items: center; opacity: 1; color: var(--muted); }
.views .ico svg.ph { width: 18px; height: 18px; }
.views li.active .ico { color: var(--accent); }
.views .inbox-ico { border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.views .inbox-ico svg.ph { width: 13px; height: 13px; }
.views .inbox-ico.esc { background: #fde8e8; color: #c2343a; }
.views li.active .count { color: var(--accent); background: var(--accent-soft); padding: 1px 7px; border-radius: 20px; font-weight: 600; }
.sidebar-section { margin: 16px 10px 6px; font-weight: 600; }
.conn { color: var(--muted); }

/* ---------- list: search, header, cards ---------- */
.list-search { padding: 4px 2px 0; }
.list-search input { height: 38px; border: 0; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-1); padding: 0 12px; }
.list-head { border-bottom: 0; padding: 12px 2px 10px; gap: 8px; }
.list-head h3 { font-size: 16px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.list-filters select { height: 30px; border: 0; border-radius: 9px; background: var(--panel); box-shadow: var(--shadow-1); padding: 0 8px; font-size: 13px; color: var(--text); }
.bulk-bar { border-radius: 12px; margin: 0 2px 8px; }

.conv-list { display: flex; flex-direction: column; gap: 6px; padding: 2px 2px 12px; }
.conv-list li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "av top" "av subj" "av prev" "av foot";
  column-gap: 11px; row-gap: 1px; padding: 12px 12px 10px; border: 0; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-1);
  flex: none; transition: box-shadow .12s, transform .12s;
}
.conv-list li:hover { background: var(--card); box-shadow: var(--shadow-2); }
.conv-list li > .pick-wrap { grid-area: av; align-self: start; width: 34px; height: 34px; }
.conv-list li > .pick-wrap .avatar { width: 34px; height: 34px; font-size: 12px; }
.conv-list li > .pick-wrap .pick { width: 22px; height: 22px; inset: 6px; }
.conv-list .row-top { grid-area: top; display: flex; align-items: center; gap: 8px; min-width: 0; }
.conv-list .row-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.conv-list .row-name .ch-badge { margin-right: 6px; }
.conv-list .time { margin-left: auto; flex: none; font-size: 12px; font-variant-numeric: tabular-nums; }
.conv-list .row-snz svg.ph { width: 13px; height: 13px; }
.conv-list .subj { grid-area: subj; font-size: 13.5px; font-weight: 500; color: var(--text); }
.conv-list .preview { grid-area: prev; grid-column: auto; margin-top: 1px; font-size: 13px; }
.conv-list .row-foot { grid-area: foot; display: flex; align-items: center; gap: 6px; margin-top: 7px; min-height: 20px; min-width: 0; overflow: hidden; }
.conv-list .row-foot .grow { flex: 1; }
.conv-list .row-foot .tag { margin: 0; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border: 0; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--line-2); color: var(--muted); white-space: nowrap; }
.conv-list .row-foot .tag svg.ph { width: 11px; height: 11px; }
.conv-list .row-foot .tag.esc { background: #fde8e8; color: #c2343a; }
.conv-list .row-foot .tag { max-width: 100%; min-width: 0; flex: 0 1 auto; }
.conv-list .row-foot .tag .tag-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* A chat escalated to an inbox this person cannot open: the same card, with a lock. */
.conv-list li.restricted > .avatar.lock { grid-area: av; align-self: start; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--line-2); border: 0; color: var(--muted); }
.conv-list li.restricted > .avatar.lock svg.ph { width: 16px; height: 16px; }
.conv-list li.restricted .row-name { font-style: normal; color: var(--muted); }
.conv-list li.restricted .subj { font-style: normal; color: var(--text); }
.conv-list li.restricted .preview-text { color: var(--muted); }
.conv-list li.restricted.active > .avatar.lock { background: rgba(255, 255, 255, .2); color: #fff; }
.conv-list li.restricted.active .row-name, .conv-list li.restricted.active .subj { color: var(--sel-text); }
.conv-list .row-foot .tag.hash { background: var(--accent-soft); color: var(--accent); }
.conv-list .row-owner .avatar { width: 20px; height: 20px; font-size: 9px; }
.conv-list .row-owner.none { width: 20px; height: 20px; border: 0; color: var(--muted); font-size: inherit; }
.conv-list .row-owner.none svg.ph { width: 20px; height: 20px; }
.conv-list li.unread .row-name, .conv-list li.unread .subj { font-weight: 700; }
.conv-list li.unread .row-name::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: 2px; }
.conv-list .row-close { right: 10px; bottom: 9px; }
.conv-list li.closable:hover .row-owner { visibility: hidden; }
/* The open chat: a solid violet card that points at the chat. */
.conv-list li.active { background: var(--sel); box-shadow: var(--sel-shadow); }
.conv-list li.active .row-name, .conv-list li.active .subj { color: var(--sel-text); }
.conv-list li.active .row-name::after { display: none; }
.conv-list li.active .time, .conv-list li.active .preview, .conv-list li.active .preview-text, .conv-list li.active .ticks svg { color: var(--sel-muted); fill: var(--sel-muted); }
.conv-list li.active .row-foot .tag { background: rgba(255, 255, 255, .18); color: #fff; }
.conv-list li.active .row-owner.none { color: var(--sel-muted); }
.conv-list li.active .ch-badge { background: rgba(255, 255, 255, .2); color: #fff; }
.conv-list li.active .prio-ico rect { fill: rgba(255, 255, 255, .45); }
.conv-list li.active .prio-ico rect.on { fill: #fff; }
.conv-list li.active .row-viewers .avatar { box-shadow: 0 0 0 2px var(--sel); }
.conv-list li.active mark { background: rgba(255, 255, 255, .3); color: #fff; }
/* Ticked for a bulk action: a violet outline, so it never looks like the open chat. */
.conv-list li.picked { background: var(--card); box-shadow: 0 0 0 1.5px var(--accent); }
.conv-list li.empty-row, .conv-list li.more-row { background: transparent; box-shadow: none; display: block; }
/* Compact cards when a list is long (or the seat always wants them): still
   separate rounded cards, but two lines: name + time, then a one-line
   preview with the inbox tag and owner on the right. The subject and extra
   tags are left out; the open card keeps its violet fill. */
.conv-list.dense { gap: 4px; }
.conv-list.dense li { grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "av top top" "av prev foot"; column-gap: 9px; row-gap: 0; padding: 7px 10px 7px; border-radius: 11px; }
.conv-list.dense li > .pick-wrap { width: 24px; height: 24px; align-self: center; }
.conv-list.dense li > .pick-wrap .avatar { width: 24px; height: 24px; font-size: 10px; }
.conv-list.dense li > .pick-wrap .pick { width: 18px; height: 18px; inset: 3px; }
.conv-list.dense li.restricted > .avatar.lock { width: 24px; height: 24px; align-self: center; }
.conv-list.dense li.restricted > .avatar.lock svg.ph { width: 13px; height: 13px; }
.conv-list.dense .subj { display: none; }
.conv-list.dense .row-name { font-size: 13.5px; }
.conv-list.dense .time { font-size: 11.5px; }
.conv-list.dense .preview { margin-top: 0; font-size: 12.5px; }
.conv-list.dense .row-foot { margin-top: 0; min-height: 18px; gap: 4px; max-width: 150px; justify-content: flex-end; }
.conv-list.dense .row-foot .grow, .conv-list.dense .row-foot .tag.hash { display: none; }
.conv-list.dense .row-foot .tag { height: 18px; padding: 0 6px; font-size: 10.5px; }
.conv-list.dense .row-owner .avatar, .conv-list.dense .row-owner.none, .conv-list.dense .row-owner.none svg.ph { width: 18px; height: 18px; }
.conv-list.dense .row-close { bottom: 5px; right: 8px; width: 22px; height: 22px; }

/* ---------- chat header: the buttons never drop below the title ---------- */
.conv-head { flex-wrap: nowrap; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line-2); }
.conv-title { flex: 1 1 auto; min-width: 0; }
.conv-head h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 650; letter-spacing: -.01em; }
#conv-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-actions { flex: none; gap: 4px; }
.icon-btn.tb { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); }
.icon-btn.tb:hover { background: var(--line-2); color: var(--text); }
.icon-btn.tb svg.ph { width: 19px; height: 19px; }
.icon-btn.tb.primary { background: var(--accent); color: #fff; }
.details-btn svg.ph { width: 19px; height: 19px; }

/* ---------- messages: yours in violet, long text stays on its side ---------- */
.messages { background: var(--chat-bg); padding: 22px 28px; gap: 14px; }
.msg { max-width: 72%; }
.bubble { border-radius: 16px; padding: 10px 14px; line-height: 1.5; overflow-wrap: break-word; word-break: normal; }
.msg.visitor .bubble { border: 0; box-shadow: var(--shadow-1); border-bottom-left-radius: 5px; }
.msg.mine .bubble { border-bottom-right-radius: 5px; }
.msg.teammate .bubble { background: var(--theirs); color: var(--text); border-bottom-right-radius: 5px; }
.msg.internal .bubble { border-radius: 16px; }

/* ---------- composer: one rounded box, tools under the text ---------- */
.composer { background: var(--panel); border-top: 1px solid var(--line-2); padding: 12px 16px 14px; }
.composer-box { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); background: var(--panel); }
.composer:focus-within .composer-box { box-shadow: inset 0 0 0 1.5px var(--accent); }
.composer-top { padding: 10px 12px 0; }
.composer-top .mode { margin-bottom: 4px; gap: 2px; }
.mode button { font-size: 12.5px; padding: 4px 10px; border-radius: 8px; }
.composer-row { padding: 0 12px; }
.composer textarea { border: 0; padding: 4px 2px 6px; background: transparent; min-height: 44px; outline: none; font-size: 14px; }
.composer textarea:focus { outline: none; box-shadow: none; }
.composer-tools { display: flex; align-items: center; gap: 2px; padding: 4px 8px 8px 8px; }
.composer-tools .grow { flex: 1; }
.ct-wrap { position: relative; }
.ct-btn { width: 32px; height: 32px; border: 0; background: transparent; border-radius: 9px; display: grid; place-items: center; color: var(--muted); cursor: pointer; padding: 0; }
.ct-btn:hover, .ct-btn[aria-expanded="true"] { background: var(--line-2); color: var(--text); }
.ct-btn svg.ph { width: 18px; height: 18px; fill: currentColor; }
.attach-btn svg.ph { fill: currentColor; }
.send-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 14px; border-radius: 10px; background: var(--accent); border-color: var(--accent); font-weight: 600; }
.send-btn kbd { font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255, 255, 255, .2); color: #fff; border: 0; padding: 4px 6px; border-radius: 6px; }
.composer.note-mode { background: var(--panel); }
.composer.note-mode .composer-box { background: var(--note); box-shadow: inset 0 0 0 1px var(--note-line); }
.composer.note-mode .send-btn { background: #b7791f; border-color: #b7791f; }
.compose-tools.from-bar .compose-ai-btn { display: none; }
.compose-tools.from-bar .compose-langs { left: 0; }
.emoji-pop { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 60; display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; padding: 8px; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-2); }
.emoji-pop button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 8px; font-size: 19px; cursor: pointer; line-height: 1; }
.emoji-pop button:hover, .emoji-pop button:focus-visible { background: var(--line-2); outline: none; }

/* ---------- details ---------- */
.details-head { border-bottom: 1px solid var(--line-2); }

/* ---------- resize handles (panels.js) ---------- */
.rz-handle { position: absolute; top: 0; bottom: 8px; width: 8px; cursor: col-resize; z-index: 6; touch-action: none; }
.rz-handle::after { content: ""; position: absolute; left: 2px; top: 50%; width: 4px; height: 36px; margin-top: -18px; border-radius: 4px; background: transparent; transition: background .12s, height .12s; }
.rz-handle:hover::after, .rz-handle:focus-visible::after { background: var(--line); }
.rz-handle.dragging::after { background: var(--accent); height: 56px; margin-top: -28px; box-shadow: 0 0 0 4px var(--accent-soft); }
.rz-handle:focus-visible { outline: none; }
.rz-badge { position: absolute; top: 46%; z-index: 7; background: var(--text); color: var(--panel); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; pointer-events: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.rz-dragging, body.rz-dragging * { cursor: col-resize !important; user-select: none !important; }
@media (max-width: 900px) { .rz-handle, .rz-badge { display: none; } }

/* ---------- phones: keep the round 1 stacked layout, with the new cards ---------- */
@media (max-width: 900px) {
  /* The bottom bar scrolls sideways inside itself instead of widening the page. */
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { background: var(--panel); border-top: 1px solid var(--line); min-width: 0; overflow-x: auto; justify-content: flex-start; gap: 4px; scrollbar-width: none; }
  .rail-btn, .me-wrap { flex: none; }
  .main, .page, .list { min-width: 0; }
  .list { background: var(--bg); border-bottom: 0; }
  .conv-list { padding: 2px 10px 12px; }
  .list-search { padding: 8px 10px 0; }
  .list-head { padding: 10px 12px 8px; }
  .messages { padding: 16px; }
  .msg { max-width: 88%; }
}

/* ---------- dark: warning colours that read on dark tiles ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .views .inbox-ico.esc, :root:not([data-theme="light"]) .conv-list .row-foot .tag.esc { background: #3b1e21; color: #ff8c90; }
}
:root[data-theme="dark"] .views .inbox-ico.esc, :root[data-theme="dark"] .conv-list .row-foot .tag.esc { background: #3b1e21; color: #ff8c90; }

/* ---------- round 24: paused inboxes and the plan switch dialog ---------- */
.views .inbox-ico.paused { color: var(--muted); }
.views .inbox-paused { color: var(--muted); }
.inbox-admin li.is-paused .grow { color: var(--muted); }
.inbox-admin .inbox-swap { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.inbox-admin .inbox-swap select { height: 28px; }
.switch-dialog { width: min(560px, calc(100vw - 32px)); }
.switch-dialog fieldset { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.switch-dialog legend { font-weight: 650; margin-bottom: 8px; padding: 0; }
.switch-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); margin-bottom: 8px; cursor: pointer; }
.switch-opt > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.switch-opt input { margin-top: 3px; accent-color: var(--accent); }
.switch-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.switch-opt.disabled { opacity: .6; cursor: default; }
.switch-inbox-list { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; }
.switch-inbox { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--line-2); }
.switch-inbox input { accent-color: var(--accent); }
.switch-inbox:has(input:disabled) { opacity: .6; }
.bill-note-actions { display: inline-flex; gap: 6px; margin-left: 4px; flex-wrap: wrap; }

/* ---------- Your settings: numbers, working hours, sound, languages, devices (round 25) ---------- */
#page-account .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#page-account .panel-head select { height: 30px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--text); padding: 0 8px; font-size: 13px; }
.my-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.my-cards .card { padding: 12px 14px; border-radius: 12px; background: var(--bg); box-shadow: none; border: 1px solid var(--line-2); }
.my-cards .card .card-value { font-size: 22px; font-weight: 650; margin: 2px 0; }
.my-cards .card.wide { grid-column: 1 / -1; }
.my-cards .csat-value { font-size: 22px; }
#my-hours-days.off { opacity: .45; pointer-events: none; }
.row-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.row-fields label { flex: 1 1 140px; }
.row-fields .btn { flex: none; }
.lang-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-pick { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 13px !important; color: var(--text) !important; cursor: pointer; }
.lang-pick input { margin: 0; }
.lang-pick.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent) !important; font-weight: 600; }
.device-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.device-list .device { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); }
.device-list .device-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.device-list .device-ico svg.ph { width: 18px; height: 18px; }
.device-list .grow { display: flex; flex-direction: column; min-width: 0; }
.auto-tag { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--line-2); color: var(--muted); font-size: 11px; font-weight: 600; }
.macro-list li.private { box-shadow: inset 3px 0 0 var(--accent); }
.macro-form label.setting { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.macro-form label.setting input { padding: 0; margin: 0; }
#sound-form .row-fields input[type=time] { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--panel); color: var(--text); font-size: 14px; }
.device-list .grow > b + .pill, .device-list .grow .pill { align-self: flex-start; margin: 2px 0; }
