/* Andivo — built by build_css.py from static/src/css/. Edit those files, then run python3 build_css.py */
/* ===== fonts.css ===== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
/* ===== app.css ===== */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --group: #F5F5F7;
  --group-soft: #E8E8ED;
  --soft: #F2F2F4;
  --hover: rgba(0, 0, 0, .035);
  --thread: #FAFAFC;
  --line: #E5E5EA;
  --ink: #1D1D1F;
  --text2: #3A3A3C;
  --mute: #6E6E73;
  --accent: #3DDCA6;
  --accent-ink: #0A6E52;
  --accent-soft: #E4F5EE;
  --green: #0A6E52;
  --green-soft: #E4F5EE;
  --amber: #8A5300;
  --amber-soft: #FFF3DC;
  --danger: #C8282E;
  --danger-soft: #FDECEC;
  --danger-line: #F3C9C9;
  --btn: #1D1D1F;
  --btn-ink: #FFFFFF;
  --switch-off: #D1D1D6;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-lg: -12px 0 40px rgba(0, 0, 0, .16);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root[data-theme="system"] {
    --bg: #0B0B0C; --surface: #161618; --group: #1C1C1E; --group-soft: #2C2C2E; --soft: #232326; --hover: rgba(255, 255, 255, .05);
    --thread: #101012; --line: #2C2C2E; --ink: #F5F5F7; --text2: #D1D1D6; --mute: #98989D;
    --accent-ink: #3DDCA6; --accent-soft: #10302A; --green: #3DDCA6; --green-soft: #10302A;
    --amber: #F2B649; --amber-soft: #33290F; --danger: #FF7B7B; --danger-soft: #3A1717; --danger-line: #5A2A2A;
    --btn: #F5F5F7; --btn-ink: #1D1D1F; --switch-off: #3A3A3C; --shadow: none; --shadow-lg: -12px 0 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B0C; --surface: #161618; --group: #1C1C1E; --group-soft: #2C2C2E; --soft: #232326; --hover: rgba(255, 255, 255, .05);
  --thread: #101012; --line: #2C2C2E; --ink: #F5F5F7; --text2: #D1D1D6; --mute: #98989D;
  --accent-ink: #3DDCA6; --accent-soft: #10302A; --green: #3DDCA6; --green-soft: #10302A;
  --amber: #F2B649; --amber-soft: #33290F; --danger: #FF7B7B; --danger-soft: #3A1717; --danger-line: #5A2A2A;
  --btn: #F5F5F7; --btn-ink: #1D1D1F; --switch-off: #3A3A3C; --shadow: none; --shadow-lg: -12px 0 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
a { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.icon { flex: none; }
.sr-only { position: absolute; left: 0; top: 0;    width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 8px; }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.normal { font-weight: 400; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.danger { color: var(--danger); }
.h1, .h2, .h3 { margin: 0; font-stretch: 110%; letter-spacing: -0.01em; }
.h1 { font-size: 34px; font-weight: 800; line-height: 1.1; }
.h2 { font-size: 18px; font-weight: 700; line-height: 1.25; }
.h3 { font-size: 15px; font-weight: 700; }
.sub { margin: 6px 0 0; font-size: 16px; color: var(--mute); max-width: 70ch; }
.sub strong { color: var(--ink); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: 58px; padding: 0 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.tb-left { min-width: 0; display: flex; }
.biz { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 4px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; cursor: pointer; }
.biz:hover { background: var(--soft); }
.biz .logo { flex: none; border-radius: 7px; }
.biz-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 4px; }
.tabs a {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500;
}
.tabs a:hover { background: var(--soft); }
.tabs a[aria-current="page"] { background: var(--soft); font-weight: 700; }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; padding: 1px 6px; border-radius: 999px;
  background: var(--accent); color: #0F1012; font-size: 10px; font-weight: 800; line-height: 14px; text-align: center;
}
.tb-right { justify-self: end; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--soft); }
.icon-btn-soft { background: var(--soft); width: 34px; height: 34px; }
.bell-dot { position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #0F1012; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 2px; margin: 0 4px; }
.seg button { border: 0; border-radius: 999px; background: transparent; color: var(--mute); height: 26px; padding: 0 10px; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(15, 16, 18, .12); }
.seg-wide { display: flex; margin: 6px 4px; }
.seg-wide button { flex: 1; justify-content: center; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.me { cursor: pointer; border-radius: 50%; display: flex; }
.menu-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 250px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 16, 18, .14);
}
.menu-right { left: auto; right: 0; }
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.menu-item:hover { background: var(--soft); }
.menu-item[aria-pressed="true"] { font-weight: 700; background: var(--soft); }
.me-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.me-head strong { color: var(--ink); font-size: 14px; }
.avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--av, var(--soft)); color: #0F1012;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px;
}
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.avatar-xl { width: 64px; height: 64px; font-size: 20px; }
.avatar-ink { background: var(--btn); color: var(--btn-ink); width: 32px; height: 32px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--soft); color: var(--mute); }
.chip-xs { font-size: 11px; padding: 1px 6px; }
.chip-ready { background: var(--green-soft); color: var(--green); }
.chip-done, .chip-gray { background: var(--soft); color: var(--mute); }
.chip-emergency { background: var(--danger-soft); color: var(--danger); }
.chip-callback, .chip-open { background: var(--amber-soft); color: var(--amber); }
.chip-accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-level-owner, .chip-level-admin { background: var(--btn); color: var(--btn-ink); }
.chip-level-business_admin { background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.chip-level-manager { background: var(--green-soft); color: var(--green); }
.chip-level-staff { background: var(--soft); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mood { display: inline-flex; align-items: center; gap: 6px; }
.mood-dot { width: 8px; height: 8px; border-radius: 50%; background: #9A9DA3; }
.mood-happy .mood-dot { background: var(--green); }
.mood-upset .mood-dot { background: var(--danger); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border: 0; border-radius: 10px;
  background: var(--btn); color: var(--btn-ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { opacity: .9; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; height: 44px; }
.btn-outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--danger); border: 1px solid var(--danger-line); }
.push { margin-left: auto; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.card-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.card-head .h2 { flex: 1; }
.card-head a { font-size: 13px; font-weight: 600; }
.card-table { padding: 6px 20px; }
.empty-note { list-style: none; padding: 14px 0; color: var(--mute); border-top: 1px solid var(--line); margin: 0; }
.alert { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.alert p { margin: 4px 0; }
.alert-success { background: var(--green-soft); color: var(--ink); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.credentials { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 10px 0; }
.credentials dt { color: var(--mute); }
.credentials dd { margin: 0; }
.credentials code { font-size: 14px; background: var(--surface); padding: 2px 6px; border-radius: 6px; user-select: all; }
.switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0;
  width: 36px; height: 21px; border-radius: 999px; background: var(--switch-off); cursor: pointer; transition: background .15s;
}
.switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #FFFFFF; transition: transform .15s; }
.switch:checked { background: var(--btn); }
.switch:checked::before { transform: translateX(15px); background: var(--btn-ink); }
.switch:disabled { opacity: .45; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
.switch, .switch::before { transition: none; }
}
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--mute); font-size: 13px; font-weight: 600; padding: 9px 8px; white-space: nowrap; }
.table td { padding: 11px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table .need { color: var(--text2); min-width: 200px; }
.click-row { position: relative; }
.click-row:hover td { background: var(--soft); }
.click-row.selected td { background: var(--soft); }
.row-link { color: var(--ink); text-decoration: none; }
.row-link::after { content: ""; position: absolute; inset: 0; }
.row-link:focus-visible { outline: none; }
.row-link:focus-visible::after { outline: 2px solid var(--accent-ink); outline-offset: -2px; border-radius: 8px; }
.person-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person-text { display: flex; flex-direction: column; min-width: 0; }
.inactive td { opacity: .6; }
.chev { color: var(--mute); width: 24px; }
.page { max-width: 1240px; margin: 0 auto; padding: 30px 48px 56px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.page-head > div { flex: 1; min-width: 260px; }
.home { display: flex; flex-direction: column; gap: 22px; }
.home .page-head { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.convo-page { background: var(--surface); }
.convo { display: grid; grid-template-columns: 320px minmax(0, 1fr) 320px; height: calc(100vh - 58px); height: calc(100dvh - 58px); }
.convo:not(.has-selected) { grid-template-columns: 320px minmax(0, 1fr); }
.convo-list { border-right: 1px solid var(--line); padding: 12px 10px; overflow-y: auto; }
.convo-thread { background: var(--bg); display: flex; flex-direction: column; min-width: 0; overflow-y: auto; }
.convo-side { border-left: 1px solid var(--line); padding: 26px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.convo-empty { background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--mute); text-align: center; padding: 24px; }
.convo-empty p { margin: 4px 0; }
.search { display: flex; align-items: center; gap: 6px; padding: 0 4px; margin-bottom: 10px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 10px; background: var(--soft); color: var(--mute); }
.search-box:focus-within { outline: 2px solid var(--accent-ink); outline-offset: 1px; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink); font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px 10px; }
.filter { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px; border-radius: 7px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; white-space: nowrap; }
.filter[aria-current="true"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.filter-n { font-size: 12px; opacity: .7; }
.filter-red { color: var(--danger); }
.results-for { margin: 0 4px 8px; font-size: 13px; color: var(--mute); }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.row { display: flex; gap: 11px; padding: 11px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.row:hover, .row[aria-current="true"] { background: var(--soft); }
.row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-top, .row-bottom { display: flex; align-items: center; gap: 6px; }
.row-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-name.unread { font-weight: 700; }
.row-time { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--mute); white-space: nowrap; }
.row-preview { flex: 1; min-width: 0; font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-bottom .chip { font-size: 11px; padding: 1px 6px; }
.back-link { display: none; align-items: center; gap: 6px; margin: 14px 16px 0; font-size: 14px; font-weight: 600; text-decoration: none; }
.thread { flex: 1; padding: 22px 32px 16px; display: flex; flex-direction: column; gap: 14px; }
.day-sep { align-self: center; }
.day-sep span { display: inline-block; font-size: 12px; font-weight: 600; color: var(--mute); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.call { flex: 1; min-width: 0; max-width: 700px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.call-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; }
.call-icon { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.player { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 0 16px 14px; }
.play { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--btn); color: var(--btn-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.play .when-playing, .player.is-playing .play .when-paused { display: none; }
.player.is-playing .play .when-playing { display: flex; }
.play .when-paused { display: flex; margin-left: 2px; }
.seek { flex: 1; min-width: 120px; accent-color: var(--ink); }
.time { font-size: 12px; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.speed { border: 0; background: var(--soft); color: var(--ink); border-radius: 6px; padding: 3px 7px; font-size: 12px; font-weight: 700; cursor: pointer; }
.player-error { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--danger); }
.summary { margin: 0; font-size: 15px; line-height: 1.55; }
.highlights { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text2); }
.problem { margin: 0; font-size: 14px; color: var(--text2); }
.transcript { border-top: 1px solid var(--line); padding-top: 10px; }
.transcript > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 600; padding: 2px 0; }
.transcript > summary::-webkit-details-marker { display: none; }
.transcript > summary .icon { margin-left: auto; transition: transform .15s; }
.transcript[open] > summary .icon { transform: rotate(180deg); }
.switch-row { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 13px; color: var(--mute); cursor: pointer; }
.switch-row > span { flex: 1; }
.lines { display: grid; grid-template-columns: 40px 70px minmax(0, 1fr); gap: 8px 10px; margin-top: 10px; font-size: 14px; line-height: 1.5; }
.line { display: contents; }
.line-en { display: block; margin-top: 2px; color: var(--mute); font-size: 13px; }
.lines.hide-en .line-en { display: none; }
.composer {
  position: sticky; bottom: 0; margin: 0 32px 22px;
  display: flex; flex-direction: column; gap: 8px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 4px 16px rgba(15, 16, 18, .06);
}
.composer:focus-within { border-color: var(--ink); }
.composer-label { font-size: 12px; font-weight: 700; color: var(--mute); }
.composer textarea { width: 100%; min-height: 64px; border: 0; padding: 0; background: transparent; resize: vertical; font-size: 14px; line-height: 1.5; outline: none; }
.composer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip-btn { border: 0; border-radius: 7px; background: var(--soft); color: var(--mute); padding: 4px 9px; font-size: 12px; font-weight: 600; cursor: pointer; }
.composer-note { margin-left: auto; font-size: 12px; color: var(--mute); max-width: 260px; text-align: right; }
.send { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.profile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.profile .avatar { margin-bottom: 4px; }
.actions { display: flex; gap: 8px; margin-top: 8px; }
.icon-action { width: 42px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.icon-action:hover { background: var(--soft); }
.copied-note { min-height: 16px; font-size: 12px; color: var(--green); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--mute); flex: none; }
.facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.facts-grid { display: grid; grid-template-columns: 140px minmax(0, 1fr); row-gap: 9px; border-top: 0; margin-top: 14px; }
.facts-grid > div { display: contents; }
.facts-grid dt, .facts-grid dd { text-align: left; padding: 0; border: 0; }
.before { display: flex; flex-direction: column; gap: 8px; }
.before-item { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; background: var(--soft); color: var(--ink); text-decoration: none; }
.before-item:hover { outline: 1px solid var(--line); }
.before-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.side-foot { margin-top: auto; }
.done-pill { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-weight: 600; }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(15, 16, 18, .32); }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; z-index: 31; width: min(540px, 100vw); background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: sheet-in .18s ease-out; }
@keyframes sheet-in { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
.sheet { animation: none; }
}
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 28px 20px; display: flex; flex-direction: column; gap: 22px; }
.sheet-head { display: flex; align-items: flex-start; gap: 14px; }
.sheet-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sheet-title .chip { align-self: flex-start; margin-top: 4px; }
.sheet-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 28px; border-top: 1px solid var(--line); background: var(--surface); }
.sheet .alert { margin: 0; }
.access { display: flex; flex-direction: column; gap: 22px; }
.levels { border: 0; margin: 0; padding: 0; min-width: 0; }
.levels legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.level-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.level-card { position: relative; flex: 1 1 130px; display: flex; flex-direction: column; gap: 6px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }
.level-card:has(input:checked) { border: 2px solid var(--ink); padding: 11px 12px; }
.level-card:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.level-card input { position: absolute; top: 12px; right: 12px; margin: 0; accent-color: var(--ink); }
.level-card.is-disabled { opacity: .5; cursor: not-allowed; }
.level-name { font-size: 15px; font-weight: 700; padding-right: 22px; }
.level-desc { font-size: 12px; line-height: 1.4; color: var(--mute); }
.help { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--mute); }
.note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--soft); color: var(--mute); font-size: 13px; }
.perms { display: flex; flex-direction: column; gap: 12px; }
.perm-group { display: flex; flex-direction: column; }
.perm-group-name { font-size: 12px; font-weight: 700; color: var(--mute); padding: 4px 0 6px; }
.perm { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.perm-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.perm-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.perm-note { font-size: 12px; color: var(--mute); }
.recent { display: flex; flex-direction: column; gap: 8px; }
.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.activity li { display: flex; gap: 10px; }
.activity-when { flex: none; width: 128px; color: var(--mute); white-space: nowrap; }
.stack-form { display: flex; flex-direction: column; gap: 8px; }
.stack-form label:not(.check):not(.level-card):not(.radio) { font-size: 13px; font-weight: 600; margin-top: 6px; }
.stack-form input[type="text"], .stack-form input[type="email"], .stack-form input[type="password"], .stack-form select {
  height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15px;
}
.stack-form input:focus-visible, .stack-form select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.stack-form .btn { margin-top: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 6px; }
.radios { border: 0; padding: 0; margin: 6px 0 0; }
.radios legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 4px; }
.radio { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; }
.radio input { accent-color: var(--ink); }
.settings { display: flex; flex-direction: column; gap: 16px; }
.narrow { max-width: 640px; width: 100%; }
.money-input { display: flex; align-items: center; gap: 6px; height: 42px; max-width: 220px; margin-top: 12px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.money-input:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; }
.money-input input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; }
.hours { margin-top: 12px; }
.hours-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.hours-day { display: flex; align-items: center; gap: 10px; width: 170px; font-weight: 600; cursor: pointer; }
.hours-time input { height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.hours-row:has(.switch:not(:checked)) .hours-time { opacity: .35; }
.pick-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.account { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.account .card .h2 { margin-bottom: 8px; }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; color: var(--ink); }
.login-brand .logo { border-radius: 7px; }
.login-card .h1 { font-size: 28px; }
.login-card .sub { margin-bottom: 18px; font-size: 15px; }
.login-card > .btn { margin-top: 10px; }
@media (max-width: 1180px) {
.convo, .convo:not(.has-selected) { grid-template-columns: 300px minmax(0, 1fr); height: auto; min-height: calc(100vh - 58px); }
.convo-list { grid-row: span 2; position: sticky; top: 58px; height: calc(100vh - 58px); }
.convo-thread { overflow: visible; }
.convo-side { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
.side-foot { margin-top: 0; }
}
@media (max-width: 1000px) {
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account { grid-template-columns: minmax(0, 1fr); }
.page { padding: 24px 24px 48px; }
.composer-note { display: none; }
.send { margin-left: auto; }
}
@media (max-width: 760px) {
body { padding-bottom: 66px; }
.topbar { grid-template-columns: minmax(0, 1fr) auto; padding: 0 10px 0 12px; gap: 8px; }
.biz { font-size: 14px; }
.tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    justify-content: space-around; gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
  }
.tabs a { flex: 1; flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 11px; }
.badge { top: 0; right: calc(50% - 26px); }
.tb-right { gap: 2px; }
.tb-right .seg { display: none; }
.page { padding: 20px 16px 40px; }
.h1 { font-size: 28px; }
.stat { min-height: 96px; padding: 14px 16px; }
.convo, .convo:not(.has-selected) { display: block; min-height: 0; }
.convo-list { position: static; height: auto; border-right: 0; }
.convo.has-selected .convo-list, .convo-empty { display: none; }
.back-link { display: inline-flex; }
.thread { padding: 14px 12px; }
.composer { position: static; margin: 0 12px 14px; }
.convo-side { padding: 22px 16px; }
.lines { grid-template-columns: 40px minmax(0, 1fr); }
.sheet-body { padding: 18px 16px; }
.sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.facts-grid { grid-template-columns: 120px minmax(0, 1fr); }
.activity li { flex-direction: column; gap: 0; }
.hours-day { width: 100%; }
}
.wordmark .wm-ring { fill: none; stroke: currentColor; }
.wordmark .wm-dot { fill: currentColor; }
.pw-field { position: relative; display: flex; flex-direction: column; }
.pw-field input { padding-right: 46px !important; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: transparent; color: var(--mute); display: grid; place-items: center; cursor: pointer; }
.pw-toggle[hidden] { display: none; }
.pw-toggle:hover { color: var(--ink); background: var(--soft); }
.pw-toggle:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; }
.pw-toggle .eye-off, .pw-toggle.is-on .eye { display: none; }
.pw-toggle.is-on .eye-off { display: block; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  font-size: 14.5px; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.h1, .h2, .h3 { font-stretch: normal; letter-spacing: -0.025em; }
.h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.h2 { font-size: 20px; font-weight: 700; }
.h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.sub { font-size: 17px; letter-spacing: -0.015em; }
.strong { font-weight: 600; }
a { color: var(--ink); }
.topbar {
  height: 60px; padding: 0 22px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.biz { font-weight: 600; }
.biz:hover { background: var(--soft); }
.tabs { background: var(--soft); padding: 3px; border-radius: 12px; gap: 2px; align-items: center; }
.tabs > a, .tab-more {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 9px; color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer;
}
.tabs > a .icon { display: none; }
.tab-more .icon { display: inline-block; }
.tabs > a:hover, .tab-more:hover { background: transparent; color: var(--ink); }
.tabs > a[aria-current="page"], .tab-more.is-active {
  background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.tabs .menu { display: flex; }
.badge { top: -5px; right: -4px; background: var(--ink); color: var(--btn-ink); }
.bell-dot { background: var(--danger); color: #FFFFFF; }
.icon-btn { border-radius: 50%; }
.avatar-ink { width: 34px; height: 34px; font-size: 12px; }
.menu-panel {
  border: 0; border-radius: 16px; padding: 8px; min-width: 260px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .16), 0 0 0 1px var(--line);
}
.menu-item { border-radius: 10px; padding: 10px 10px; font-size: 14.5px; }
.menu-item .icon { color: var(--mute); }
.more-panel { left: auto; right: 0; min-width: 220px; }
.me-head { flex-direction: row; align-items: center; gap: 12px; padding: 8px 8px 14px; margin-bottom: 6px; }
.me-head .avatar { width: 52px; height: 52px; font-size: 17px; }
.me-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.me-text strong { color: var(--ink); font-size: 16px; font-weight: 600; }
.me-text .chip { align-self: flex-start; margin-top: 4px; }
.menu-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; font-size: 14.5px; }
.menu-row > .icon { color: var(--mute); }
.menu-row .seg { margin: 0 0 0 auto; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.btn { height: 38px; border-radius: 999px; font-weight: 600; padding: 0 18px; letter-spacing: -0.01em; }
.btn:hover { opacity: .86; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-block { height: 46px; border-radius: 14px; }
.btn-outline { border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.btn-light { background: var(--surface); color: var(--ink); }
.card .btn-outline { box-shadow: none; }
.card { background: var(--group); border: 0; border-radius: 18px; padding: 20px 22px; --soft: var(--group-soft); }
.chip { border-radius: 999px; padding: 2px 9px; font-weight: 500; }
.chip-xs { padding: 1px 7px; }
.alert { border-radius: 14px; }
.click-row:hover td, .click-row.selected td { background: var(--hover); }
.table th { font-weight: 500; }
.empty-note { border-top: 0; }
.page { max-width: 1120px; padding: 40px 32px 64px; }
.page-head { margin-bottom: 28px; }
.stack-form input[type="text"], .stack-form input[type="email"], .stack-form input[type="password"], .stack-form select, .money-input, .hours-time input { border-radius: 12px; border-color: var(--line); background: var(--surface); }
.stack-form label:not(.check):not(.level-card):not(.radio) { font-weight: 500; color: var(--text2); }
.convo-thread, .convo-empty { background: var(--thread); }
.filter { border-radius: 999px; padding: 0 11px; }
.filter[aria-current="true"] { background: var(--ink); color: var(--btn-ink); }
.row { border-radius: 12px; }
.call { border-radius: 16px; }
.icon-action { border-radius: 50%; width: 42px; height: 42px; border: 0; background: var(--soft); }
.composer { border-radius: 18px; }
.login-card { background: var(--group); border: 0; border-radius: 22px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text2); }
.live .muted { font-weight: 400; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34C78A; box-shadow: 0 0 0 4px color-mix(in srgb, #34C78A 22%, transparent); }
.live-problem .live-dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.live-problem { color: var(--danger); }
.cal-badge { flex: none; width: 48px; text-align: center; line-height: 1.1; }
.cal-badge span { display: block; font-size: 11px; font-weight: 600; color: var(--danger); text-transform: uppercase; }
.cal-badge strong { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 22px 0; }
.kpi + .kpi { padding-left: 24px; border-left: 1px solid var(--line); }
.kpi-label { font-size: 13px; font-weight: 500; color: var(--mute); }
.kpi-n { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
@media (max-width: 1000px) {
.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
.kpi:nth-child(4) { border-top: 1px solid var(--line); }
.page { padding: 28px 24px 56px; }
}
@media (max-width: 760px) {
body { padding-bottom: 76px; }
.topbar { padding: 0 10px 0 12px; background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
.tabs {
    border-radius: 0; padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); gap: 0;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--line);
  }
.tabs > a, .tab-more { flex: 1; flex-direction: column; gap: 3px; padding: 5px 2px; font-size: 10.5px; color: var(--mute); background: none !important; box-shadow: none !important; }
.tabs .menu { flex: 1; }
.tab-more { width: 100%; justify-content: center; }
.tabs > a .icon, .tab-more .icon { display: block; width: 23px; height: 23px; }
.tabs > a[aria-current="page"], .tab-more.is-active { color: var(--accent-ink); font-weight: 600; }
.badge { top: 0; right: calc(50% - 24px); }
.tabs .more-panel { top: auto; bottom: calc(100% + 10px); right: 6px; }
.tabs .menu-panel .menu-item { flex: none; flex-direction: row; gap: 12px; padding: 12px; font-size: 15.5px; font-weight: 500; color: var(--ink); }
.tabs .menu-panel .menu-item .icon { width: 19px; height: 19px; }
.page { padding: 22px 16px 40px; }
.cal-badge { width: 40px; }
.kpi-n { font-size: 28px; }
}
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
img.avatar { object-fit: cover; background: var(--soft); }
.avatar-photo-xl { width: 88px; height: 88px; font-size: 26px; }
.photo-row { display: flex; align-items: center; gap: 18px; }
.photo-row .person-text { gap: 2px; }
.photo-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.file-btn { cursor: pointer; position: relative; }
.file-btn:focus-within { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.me-photo { position: relative; flex: none; display: block; border-radius: 50%; }
.me-cam { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--btn-ink);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--surface); }
.when-field { display: flex; flex-direction: column; gap: 6px; }
.when-field .field-label { font-size: 13px; }
.day-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.day-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; min-height: 52px; padding: 6px 8px;
  border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; line-height: 1.15; box-shadow: inset 0 0 0 1px var(--line); }
.day-chip span { font-size: 12px; color: var(--mute); font-weight: 500; }
.day-chip strong { font-size: 17px; font-weight: 600; }
.day-chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.day-chip[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); box-shadow: none; }
.day-chip[aria-pressed="true"] span { color: inherit; opacity: .75; }
.day-other { display: flex; flex-direction: column; gap: 2px; font-size: 12px !important; color: var(--mute); }
.day-other input { min-height: 52px; padding: 6px 10px !important; }
.when-field.other-picked .day-other input { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.job-form .hint { font-size: 12.5px; color: var(--mute); font-weight: 400; }
@media (max-width: 760px) {
.day-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.day-chip { min-width: 0; }
.day-other { grid-column: span 4; }
.photo-row { align-items: flex-start; }
.avatar-photo-xl { width: 72px; height: 72px; }
}
.push-state { margin: 12px 0 0; font-size: 14px; color: var(--text2); min-height: 1.4em; }
.push-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.push-actions [hidden] { display: none; }
.push-install { background: var(--surface); border-radius: 14px; padding: 4px 16px 12px; margin-top: 12px; }
.push-steps { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--text2); }
.push-what .switch-row { font-size: 14.5px; color: var(--ink); padding: 6px 0; margin: 0; }
.menu-row .lang-toggle { flex: 1; min-height: 36px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
@media (max-width: 760px) {
.tb-right .menu-panel .seg { display: inline-flex; }
.tb-right .menu-panel .seg-wide { display: flex; }
.tb-right .menu-panel .seg button { height: 32px; padding: 0 12px; font-size: 13px; }
}
.cv.convo { grid-template-columns: 330px minmax(0, 1fr) 310px; }
.cv.convo:not(.has-selected) { grid-template-columns: 330px minmax(0, 1fr); }
.cv .convo-list { padding: 16px 10px; }
.cv .search-box { height: 38px; border-radius: 11px; }
.cv .filters { gap: 6px; padding: 2px 4px 12px; }
.cv .filter { height: 30px; padding: 0 12px; font-size: 13px; background: var(--soft); color: var(--text2); }
.cv .filter[aria-current="true"] { background: var(--ink); color: var(--btn-ink); }
.cv .filter[aria-current="true"] .filter-n { opacity: .65; }
.cv .filter-red { color: var(--danger); }
.cv .rows { display: flex; flex-direction: column; gap: 2px; }
.cv .row { padding: 12px 10px; border-radius: 13px; }
.cv .row:hover { background: var(--hover); }
.cv .row[aria-current="true"] { background: var(--soft); }
.cv .row .avatar { width: 42px; height: 42px; font-size: 14px; }
.avatar-alert { background: var(--danger-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; }
.alert-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 18%, transparent); }
.cv .row-name { font-size: 15px; font-weight: 600; }
.cv .row-name.unread { font-weight: 700; }
.cv .row-time { font-size: 12.5px; }
.cv .row-preview { font-size: 13.5px; }
.row-ok { color: var(--accent-ink); font-weight: 500; }
.row-red { color: var(--danger); }
.row-lang { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: var(--mute); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; line-height: 16px; }
.cv .convo-thread { overflow: hidden; }
.cv-head { display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.cv-head .back-link { display: none; }
.cv-head-text { flex: 1; min-width: 0; }
.cv-name { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-meta { margin: 1px 0 0; font-size: 13px; color: var(--mute); }
.cv-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.cv-pill-ok { background: var(--green-soft); color: var(--green); }
.cv-pill-red { background: var(--danger-soft); color: var(--danger); }
.cv-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 28px 18px; display: flex; flex-direction: column; gap: 18px; }
.cv-scroll > .alert { margin: 0; }
.cv-card { max-width: 720px; width: 100%; align-self: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.cv-summary { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text2); }
.cv-summary strong { color: var(--ink); font-weight: 600; }
.cv-card .highlights { margin: 0; }
.cv-foot { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cv-player { padding: 0 0 4px; gap: 12px; flex-wrap: nowrap; }
.cv-player .play { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--btn); color: var(--btn-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cv-player .play svg { display: block; }
.cv-player .play .when-paused svg { margin-left: 2px; }
.wave { --p: 0%; position: relative; flex: 1; min-width: 0; height: 30px; }
.wave-bars { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 2px; pointer-events: none; }
.wave-bars i { flex: 1 1 0; max-width: 4px; min-height: 3px; border-radius: 2px; background: var(--switch-off);
  background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat; background-size: 0 100%; }
.wave.is-set .wave-bars i { background-size: var(--fill, 0) 100%; }
.wave .seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.wave .seek:focus-visible { opacity: 1; background: transparent; }
.wave:focus-within { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
.cv-player .time { flex: none; font-size: 12.5px; color: var(--mute); font-variant-numeric: tabular-nums; min-width: 78px; text-align: right; }
.cv-player .speed { flex: none; height: 28px; padding: 0 8px; border-radius: 8px; border: 0; background: var(--soft); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.cv-player .player-error { flex-basis: auto; }
.bubbles { max-width: 720px; width: 100%; align-self: center; display: flex; flex-direction: column; gap: 4px; }
.bubbles-top { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; position: relative; }
.bubbles-top .day-sep { font-size: 12px; color: var(--mute); }
.mini-switch { position: absolute; right: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute); cursor: pointer; }
.mini-switch .switch { transform: scale(.8); transform-origin: right center; }
.bubble-row { display: flex; flex-direction: column; max-width: 72%; margin-top: 6px; }
.bubble-them { align-self: flex-start; align-items: flex-start; }
.bubble-ai { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 9px 14px; font-size: 14.5px; line-height: 1.42; overflow-wrap: anywhere; }
.bubble-them .bubble { background: var(--group-soft); color: var(--ink); border-radius: 19px 19px 19px 6px; }
.bubble-ai .bubble { background: var(--btn); color: var(--btn-ink); border-radius: 19px 19px 6px 19px; }
.bubble .line-en { display: block; margin-top: 4px; padding-top: 4px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); font-size: 13px; opacity: .72; color: inherit; }
.bubbles.hide-en .line-en { display: none; }
.bubble-time { font-size: 11px; color: var(--mute); margin: 3px 8px 0; }
.bubble-row + .bubble-row.bubble-them .bubble-time, .bubble-row + .bubble-row.bubble-ai .bubble-time { }
.bubble-note { align-self: center; margin: 6px 0; font-size: 12px; color: var(--mute); text-align: center; }
.cv-empty-lines { text-align: center; }
.cv .composer { margin: 0 28px 18px; max-width: 720px; align-self: center; width: calc(100% - 56px); }
.cv .convo-side { padding: 28px 22px; gap: 18px; }
.cv .profile { gap: 4px; }
.cv .profile .avatar-xl { width: 76px; height: 76px; font-size: 26px; margin-bottom: 8px; }
.cv-side-name { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.cv-link { color: var(--accent-ink); text-decoration: none; font-weight: 500; }
.cv-link:hover { text-decoration: underline; }
.cv .actions { margin-top: 12px; gap: 10px; }
.cv .icon-action { width: 44px; height: 44px; background: var(--soft); color: var(--ink); }
.cv .icon-action:hover { background: var(--group-soft); }
.job-card { background: var(--group); border-radius: 18px; padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.job-card-label { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.job-card-title { margin: 0; font-size: 15.5px; font-weight: 600; }
.job-card-line { margin: 0; font-size: 14px; color: var(--mute); }
.job-card-src { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12.5px; }
.job-card-actions { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.job-card .btn-block { height: 46px; border-radius: 13px; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.job-card .btn-light { background: var(--surface); color: var(--ink); }
.job-card-status { margin: 10px 0 2px; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--text2); }
.job-card-status.is-ok { color: var(--green); }
.cv .facts { border-top: 0; }
.cv .facts > div { padding: 10px 0; }
.cv .facts > div:last-child { border-bottom: 0; }
.cv .facts dd { font-weight: 500; }
.more-facts { border-top: 1px solid var(--line); padding-top: 4px; }
.more-facts summary { display: flex; align-items: center; gap: 6px; padding: 8px 0; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.more-facts summary::-webkit-details-marker { display: none; }
.more-facts summary .icon { margin-left: auto; transition: transform .15s; }
.more-facts[open] summary .icon { transform: rotate(180deg); }
.cv .before-item { background: var(--group); border-radius: 13px; }
.cv .side-foot .btn-outline { height: 46px; }
@media (max-width: 1180px) {
.cv.convo, .cv.convo:not(.has-selected) { grid-template-columns: 300px minmax(0, 1fr); }
.cv .convo-thread { overflow: visible; }
.cv-scroll { overflow: visible; }
}
@media (max-width: 760px) {
.cv.convo, .cv.convo:not(.has-selected) { display: block; }
.cv-head { position: sticky; top: 0; z-index: 5; padding: 10px 12px; gap: 10px; }
.cv-head .back-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 -4px 0 -6px; border-radius: 50%; color: var(--ink); }
.cv-head .cv-pill, .cv-head > .chip { display: none; }
.cv-scroll { padding: 14px 12px; }
.bubble-row { max-width: 86%; }
.mini-switch { position: static; }
.bubbles-top { justify-content: space-between; }
.cv-player .speed { display: none; }
.cv-player .time { min-width: 0; }
.cv .composer { margin: 0 12px 14px; width: calc(100% - 24px); }
.cv .convo-side { padding: 22px 16px 28px; }
}
.cv .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 2px 14px 12px; }
.cv .filters::-webkit-scrollbar { display: none; }
.cv .filter { flex: none; }
.cv .composer { gap: 6px; padding: 12px 14px; }
.composer-top { display: flex; align-items: baseline; gap: 10px; }
.cv .composer-note { margin-left: auto; max-width: none; text-align: right; font-size: 11.5px; }
.cv .composer textarea { min-height: 44px; }
.cv .composer-bar .send { margin-left: auto; }
.job-card-inline { display: none; }
@media (max-width: 760px) {
.job-card-inline { display: flex; }
.job-card-side { display: none; }
.cv .composer-note { display: none; }
}
.cv-dock, .sheet-backdrop, .sheet-x { display: none; }
@media (max-width: 760px) {
.cv.has-selected { padding-bottom: 64px; }
.cv-dock {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: var(--tabs-h, calc(64px + env(safe-area-inset-bottom))); z-index: 24;
    padding: 8px 12px; background: color-mix(in srgb, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line);
  }
.dock-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border-radius: 13px;
    background: var(--soft); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.dock-main { flex: 1.6; background: var(--btn); color: var(--btn-ink); }
.dock-btn:active { opacity: .8; }
.cv .composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; width: auto; max-width: none;
    border-radius: 20px 20px 0 0; border: 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .18);
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--surface);
    transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.cv .composer.is-open, .cv .composer:target { transform: none; visibility: visible; transition: transform .25s ease; }
.cv .composer textarea { min-height: 96px; font-size: 16px; }
.composer-top { align-items: center; }
.composer-top .composer-label { font-size: 15px; color: var(--ink); }
.sheet-x { display: flex; margin-left: auto; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); cursor: pointer; }
.sheet-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .35); }
body.sheet-lock { overflow: hidden; }
.cv .convo-side { scroll-margin-top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
.cv .composer { transition: none !important; }
}
.signin-list { list-style: none; margin: 10px 0 14px; padding: 0; }
.signin-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.signin-list li:first-child { border-top: 0; }
.signin-main { font-size: 14.5px; }
.signin-main strong { font-weight: 600; }
.signin-meta { font-size: 13px; color: var(--mute); }
.signin-meta code { font-size: 12.5px; }
.signins-admin .chip { vertical-align: middle; margin-left: 6px; }
.mapcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.mapcard-page { margin-top: 18px; max-width: 640px; }
.cv-scroll > .mapcard { max-width: 720px; width: 100%; align-self: center; }
.map-mini { position: relative; height: 150px; background: #F2EFE9; }
.map-mini .leaflet-container { position: absolute; inset: 0; background: #F2EFE9; }
.map-open { position: absolute; inset: 0; z-index: 500; }
.map-open:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: -3px; }
.map-info { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.map-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.map-text strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.map-text small { font-size: 13px; color: var(--mute); }
.map-text small a { color: var(--accent-ink); }
.map-far { color: var(--amber) !important; font-weight: 600; }
.map-ok { color: var(--green); display: flex; align-items: center; gap: 6px; }
.map-heard { font-style: italic; }
.mapcard .go { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.mapcard .go.ghost { background: var(--soft); color: var(--ink); }
.mapcard summary.go::-webkit-details-marker { display: none; }
.map-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 0 14px 10px; }
.map-credit { font-size: 11px; color: var(--mute); margin-left: auto; padding-top: 4px; }
.map-credit a { color: inherit; }
.map-miss { display: flex; gap: 10px; padding: 14px; background: var(--amber-soft); color: var(--amber); }
.map-miss svg { flex: none; margin-top: 2px; }
.map-miss div { display: flex; flex-direction: column; gap: 3px; }
.map-miss strong { font-size: 14.5px; }
.map-miss small { font-size: 13px; line-height: 1.4; }
.map-actions { justify-content: flex-end; flex-wrap: wrap; }
.map-actions .map-text { flex-basis: 100%; }
.map-edit { flex: 1 1 auto; }
.map-edit[open] { flex-basis: 100%; }
.map-edit-form { display: flex; gap: 8px; margin-top: 8px; }
.map-edit-form input { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 16px; background: var(--surface); color: var(--ink); }
.wide-input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 16px; background: var(--surface); color: var(--ink); }
.pin-wrap { background: none; border: 0; }
.pin { position: absolute; left: 50%; bottom: 0; width: 28px; height: 28px; margin-left: -14px; background: #E5484D; border: 2px solid #B4252B;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); transform-origin: center; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.pin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: #fff; border-radius: 50%; }
.home-dot { display: block; width: 20px; height: 20px; border-radius: 50%; background: #1D1D1F; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); position: relative; }
.home-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #5EF2C2; }
.map-full { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #F2EFE9; }
.map-full::backdrop { background: rgba(0, 0, 0, .4); }
.map-full[open] { display: block; }
.map-full-tiles { position: absolute; inset: 0; }
.map-x { position: absolute; z-index: 1000; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: #fff; color: #1D1D1F; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer; }
.map-sheet { position: absolute; z-index: 1000; left: 0; right: 0; bottom: 0; background: var(--surface); color: var(--ink); border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.15); display: flex; flex-direction: column; gap: 8px; }
.map-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--switch-off); align-self: center; margin-bottom: 4px; }
.map-addr { font-size: 17px; font-weight: 600; }
.map-chips { display: flex; gap: 10px; }
.map-chips:empty { display: none; }
.map-chips div { flex: 1; background: var(--group); border-radius: 12px; padding: 9px 10px; display: flex; flex-direction: column; }
.map-chips b { font-size: 17px; font-weight: 600; }
.map-chips small { font-size: 12px; color: var(--mute); }
.map-hint { margin: 0; font-size: 13px; color: var(--mute); }
.map-sheet .btn-block { display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.map-sheet .map-credit { margin: 0 auto; }
@media (min-width: 761px) {
.map-full { width: min(920px, 92vw); height: min(720px, 88vh); border-radius: 20px; margin: auto; overflow: hidden; }
.map-sheet { left: auto; right: 16px; bottom: 16px; width: 340px; border-radius: 18px; }
.map-grab { display: none; }
}
.mapcard-inline { display: none; }
@media (max-width: 760px) {
.mapcard-inline { display: block; }
.mapcard-side { display: none; }
}
.cv .convo-side > * { flex-shrink: 0; }
.mapcard-side .map-info { flex-wrap: wrap; }
.mapcard-side .map-info .map-text { flex-basis: 100%; }
.mapcard-side .map-info > .go { flex: 1 1 100%; justify-content: center; min-height: 42px; }
html { background: var(--bg); }
.bubble, .cv-scroll, .bubbles { position: relative; }
.cv.convo, .cv.convo:not(.has-selected) { height: calc(100vh - var(--topbar-h, 60px)); height: calc(100dvh - var(--topbar-h, 60px)); }
html:has(main.convo-page) { overscroll-behavior-y: none; }
.cv-name-btn, .cv-details-btn, .side-x, .side-grab, .side-backdrop { display: none; }
.cv-name-text { display: inline; }
@media (max-width: 1180px) {
.cv.convo, .cv.convo:not(.has-selected) { grid-template-columns: 300px minmax(0, 1fr); min-height: 0; }
.cv .convo-list { grid-row: auto; position: static; height: auto; min-height: 0; overflow-y: auto; }
.cv .convo-thread { overflow: hidden; }
.cv .cv-scroll { overflow-y: auto; }
.cv-details-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 12px; border: 0; border-radius: 999px;
    background: var(--soft); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.cv-name-btn { display: inline; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cv-name-btn:hover { text-decoration: underline; }
.cv-name-text { display: none; }
.cv .convo-side { position: fixed; z-index: 45; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); grid-column: auto;
    border-left: 1px solid var(--line); border-top: 0; background: var(--surface); box-shadow: var(--shadow-lg);
    padding: 60px 22px 28px; overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.cv .convo-side.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
.cv .convo-side:focus { outline: none; }
.side-x { display: flex; position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%;
    align-items: center; justify-content: center; background: var(--soft); color: var(--ink); cursor: pointer; }
.side-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(0, 0, 0, .35); }
}
@media (max-width: 760px) {
.cv.convo, .cv.convo:not(.has-selected) { display: block; height: auto; }
.cv .convo-thread, .cv .cv-scroll { overflow: visible; }
.cv-details-btn { display: none; }
.cv .convo-side { top: auto; left: 0; right: 0; width: auto; max-height: 88vh; max-height: 88dvh; z-index: 46;
    border-left: 0; border-radius: 22px 22px 0 0; padding: 10px 16px calc(24px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); transform: translateY(105%); }
.cv .convo-side.is-open { transform: none; }
.side-grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--switch-off); margin: 0 auto 6px; }
.side-x { top: 12px; right: 12px; }
.side-backdrop:not([hidden]) { z-index: 45; }
}
@media (prefers-reduced-motion: reduce) {
.cv .convo-side { transition: none !important; }
}
.help-page { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.help-ask { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow); flex-wrap: wrap; }
.help-ask:focus-within { border-color: var(--ink); }
.help-ask input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.help-send { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--btn); color: var(--btn-ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.help-send:disabled { opacity: .5; }
.help-thinking { flex-basis: 100%; margin: 0 0 6px; font-size: 13px; color: var(--mute); }
.help-thinking::after { content: "…"; animation: help-dots 1.2s steps(4) infinite; display: inline-block; width: 0; overflow: hidden; vertical-align: bottom; }
@keyframes help-dots { to { width: 1.2em; } }
.help-sec { margin: 0 0 8px 4px; font-size: 13px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .03em; }
.help-list { list-style: none; margin: 0; padding: 0; background: var(--group); border-radius: 16px; overflow: hidden; }
.help-list li + li { border-top: 1px solid var(--line); }
.help-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: var(--ink); text-decoration: none; font-size: 15.5px; }
.help-list a:hover { background: var(--hover); }
.help-list a > .icon { color: var(--mute); flex: none; }
.help-req { display: flex; flex-direction: column; min-width: 0; }
.help-req strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-req small { font-size: 13px; color: var(--mute); }
.help-person { text-align: center; color: var(--mute); font-size: 14.5px; margin: 6px 0 24px; }
.help-person a { color: var(--accent-ink); font-weight: 600; }
.help-article { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.help-article .h1 { font-size: 26px; margin-bottom: 12px; }
.help-article p, .help-article li { font-size: 16px; line-height: 1.6; color: var(--text2); }
.help-article p { margin: 0 0 12px; }
.help-article ol { margin: 0 0 12px; padding-left: 22px; }
.help-more { text-align: center; }
.help-more p { margin: 0 0 10px; color: var(--mute); }
.help-more-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hc-head .h2 { margin: 0; }
.hc-head p { margin: 2px 0 0; display: flex; align-items: center; gap: 5px; }
.hc-msgs { display: flex; flex-direction: column; gap: 4px; }
.hc-row { display: flex; flex-direction: column; max-width: 82%; margin-top: 8px; scroll-margin-bottom: 140px; }
.hc-me { align-self: flex-end; align-items: flex-end; }
.hc-them { align-self: flex-start; align-items: flex-start; }
.hc-bubble { position: relative; padding: 10px 14px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.hc-bubble p { margin: 0; }
.hc-bubble p + p { margin-top: 6px; }
.hc-me .hc-bubble { background: var(--btn); color: var(--btn-ink); border-radius: 19px 19px 6px 19px; }
.hc-assistant .hc-bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 19px 19px 19px 6px; }
.hc-victor .hc-bubble { background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 25%, transparent); border-radius: 19px 19px 19px 6px; }
.hc-who { display: block; font-size: 12px; font-weight: 700; color: var(--mute); margin-bottom: 3px; }
.hc-victor .hc-who { color: var(--green); }
.hc-src { display: block; margin-top: 8px; font-size: 12.5px; color: var(--mute); }
.hc-src a { color: var(--accent-ink); }
.hc-time { font-size: 11.5px; color: var(--mute); margin: 3px 8px 0; }
.hc-sys { align-self: center; text-align: center; margin: 12px 0 4px; padding: 8px 14px; border-radius: 12px; background: var(--soft);
  font-size: 13px; line-height: 1.45; color: var(--mute); max-width: 90%; scroll-margin-bottom: 140px; }
.hc-offer { display: flex; gap: 8px; flex-wrap: wrap; }
.hc-offer form { margin: 0; }
.hc-solve { display: flex; justify-content: center; margin: 0; }
.hc-composer { position: sticky; bottom: 12px; z-index: 5; }
.hc-escalate { text-align: center; margin: -10px 0 0; }
.link-btn { border: 0; background: none; padding: 6px; color: var(--accent-ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.help-contact textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; background: var(--surface); color: var(--ink); resize: vertical; }
.menu-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sup { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 0; max-width: 1200px; margin: 0 auto; min-height: 60vh; }
.sup-list { border-right: 1px solid var(--line); padding: 0 16px 24px 0; }
.sup-list .h2 { margin: 0 0 10px; }
.sup-rows { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sup-row { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 14px; }
.sup-row:hover { background: var(--hover); }
.sup-row[aria-current="true"] { background: var(--soft); }
.sup-row span { color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-row small { font-size: 12.5px; color: var(--mute); }
.sup-row small.sup-wait { color: var(--danger); font-weight: 600; }
.sup-thread { padding: 0 0 24px 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sup-thread .h2 { margin: 0; }
.sup-thread > p.muted { margin: -6px 0 0; }
.sup-back { display: none; }
.sup-facts { background: var(--group); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; }
.sup-facts summary { cursor: pointer; font-weight: 600; }
.sup-facts pre { margin: 8px 0 0; white-space: pre-wrap; font: inherit; font-size: 13px; color: var(--text2); line-height: 1.5; }
.sup-reply textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 15px; background: var(--surface); color: var(--ink); resize: vertical; }
.sup-reply-bar { display: flex; justify-content: flex-end; }
@media (max-width: 860px) {
.sup { display: block; }
.sup-list { border-right: 0; padding: 0; }
.sup.has-thread .sup-list { display: none; }
.sup-thread { padding: 0; }
.sup-back { display: inline-flex; }
}
@media (max-width: 760px) {
.hc-composer { bottom: calc(var(--tabs-h, 70px) + 10px); }
}
.mapcard, .map-mini { isolation: isolate; }
.map-mini { z-index: 0; }
.pill-soft { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--soft); color: var(--text2); }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.wait-pill { background: var(--amber-soft); color: var(--amber); }
.wait-pill.is-red { background: var(--danger-soft); color: var(--danger); }
@media (max-width: 760px) {
.cv-head .wait-pill { display: inline-flex; font-size: 12px; padding: 3px 9px; }
}
.req-wrap { display: contents; }
.req-card { width: 100%; max-width: 720px; align-self: center; background: var(--group); border-radius: 18px; padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.req-title { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.rbtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 13px;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.rbtn:hover { background: var(--soft); }
.rbtn-dark { background: var(--btn); color: var(--btn-ink); box-shadow: none; min-height: 46px; }
.rbtn-dark:hover { background: var(--btn); opacity: .9; }
.req-card-side { max-width: none; }
.job-card-side.req-wrap .req-card, .convo-side .req-card { align-self: stretch; }
.job-grid .req-card { max-width: none; }
.pin-note { width: 100%; max-width: 720px; align-self: center; display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 14px; padding: 10px 12px; color: var(--text2); }
.pin-note.is-ai { background: var(--accent-soft); color: var(--accent-ink); }
.pin-note strong { display: block; font-size: 14px; font-weight: 600; color: inherit; overflow-wrap: anywhere; }
.pin-note small { font-size: 12px; opacity: .8; }
.pin-inline { margin: 6px 0 0; padding: 7px 10px; font-size: 13px; gap: 6px; }
.quick-note { width: 100%; max-width: 720px; align-self: center; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; }
.quick-note input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; outline: none; padding: 6px 0; }
.quick-note button { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--btn); color: var(--btn-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.quick-note:focus-within { border-color: var(--ink); }
.ans-page { max-width: none; padding: 0; }
.ans-scrim { display: none; }
.ans-sheet { position: relative; max-width: 560px; margin: 28px auto 60px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .10); padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.ans-grab { display: none; }
.ans-head { display: flex; align-items: flex-start; gap: 10px; }
.ans-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.ans-sub { margin: 3px 0 0; font-size: 14px; color: var(--mute); }
.ans-center { text-align: center; }
.ans-x { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.ans-quote { margin: -4px 0 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--group); font-size: 14px; }
.ans-quote span { color: var(--mute); font-style: italic; }
.ans-set { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ans-label { font-size: 13px; font-weight: 600; color: var(--text2); padding: 0; }
.ans-opt { font-weight: 400; color: var(--mute); }
.ans-hint { margin: 0; font-size: 12.5px; color: var(--mute); }
.ans-field { display: flex; flex-direction: column; gap: 6px; }
.ans-field select, .ans-field input:not([type=checkbox]):not([type=radio]), .ans-other input[type=date], .ans-email input[type=email] {
  height: 44px; padding: 0 12px; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); font-size: 16px; color: var(--ink); width: 100%; }
.ans-field select:focus-visible, .ans-field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.ans-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ans-grid3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin-top: 8px; }
.ans-money { max-width: none; margin: 0; height: 44px; border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; }
.ans-money input { box-shadow: none !important; height: auto !important; padding: 0 !important; }
.dchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px; }
.dchips::-webkit-scrollbar { display: none; }
.dchip { flex: 1 0 54px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; background: var(--surface); }
.dchip input { position: absolute; opacity: 0; pointer-events: none; }
.dchip span { font-size: 11.5px; font-weight: 600; opacity: .75; }
.dchip strong { font-size: 18px; font-weight: 600; }
.dchip.is-asked::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-ink); }
.dchip:has(input:checked) { background: var(--btn); color: var(--btn-ink); box-shadow: none; }
.dchip:has(input:checked)::after { background: var(--accent); }
.dchip:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.ans-other summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent-ink); list-style: none; padding: 4px 0; }
.ans-other summary::-webkit-details-marker { display: none; }
.ans-other[open] summary { margin-bottom: 6px; }
.who-list { display: flex; flex-wrap: wrap; gap: 14px 18px; padding: 6px 4px 0; }
.who { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; font-size: 12.5px; font-weight: 500; min-width: 52px; }
.who input { position: absolute; opacity: 0; pointer-events: none; }
.who-ring { border-radius: 50%; display: inline-flex; }
.who .avatar-lg { width: 46px; height: 46px; font-size: 16px; }
.who-none { background: var(--soft); color: var(--mute); }
.who:has(input:checked) .who-ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.who:has(input:checked) .who-name { font-weight: 700; }
.who:has(input:focus-visible) .who-ring { outline: 2px solid var(--accent-ink); outline-offset: 5px; }
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-box { flex: none; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--switch-off); display: flex; align-items: center; justify-content: center; color: transparent; }
.opt-text { display: flex; flex-direction: column; font-size: 15px; }
.opt-text span { color: var(--mute); font-size: 14px; }
.opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.opt:has(input:checked) .opt-box { background: var(--btn); color: var(--btn-ink); box-shadow: none; }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.ans-msg { display: flex; flex-direction: column; gap: 6px; }
.ans-msg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ans-msg textarea { width: 100%; min-height: 96px; resize: vertical; border: 0; border-radius: 14px; background: var(--group); padding: 12px 14px; font-size: 15.5px; line-height: 1.45; color: var(--text2); }
.ans-msg textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.ans-lang { margin: 0; }
.ans-lang label, .cm-lang label { cursor: pointer; }
.ans-lang label span, .cm-lang label span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--mute); }
.ans-lang label:has(input:checked) span, .cm-lang label:has(input:checked) span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 16, 18, .12); }
.ans-lang label:has(input:focus-visible) span, .cm-lang label:has(input:focus-visible) span { outline: 2px solid var(--accent-ink); }
.ans-email { font-size: 14px; }
.ans-email .check { margin: 0 0 8px; }
.ans-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ans-go { height: 50px; border-radius: 13px; font-size: 15.5px; font-weight: 600; }
.ans-go-danger { background: var(--danger); color: #fff; }
.ans-bubble { margin: 0; background: var(--group); border-radius: 14px; padding: 12px 14px; font-size: 15px; line-height: 1.45; color: var(--text2); white-space: pre-wrap; }
.ans-done { align-items: stretch; text-align: left; }
.done-mark { align-self: center; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green); margin-top: 6px; }
.done-suggest, .done-callback { background: var(--amber-soft); color: var(--amber); }
.done-decline { background: var(--soft); color: var(--mute); }
@media (max-width: 760px) {
.ans-scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 0; }
.ans-sheet { position: relative; z-index: 1; margin: 14px 0 0; border: 0; border-radius: 22px 22px 0 0; min-height: calc(100dvh - 72px);
    padding: 10px 18px calc(28px + var(--tabs-h, 64px)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .12); }
.ans-grab { display: block; align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--switch-off); }
.ans-title { font-size: 20px; }
.ans-grid3 { grid-template-columns: 1fr 1fr; }
.ans-grid3 .ans-field:first-child { grid-column: 1 / -1; }
.ans-msg textarea { font-size: 16px; }
}
.seg-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--soft); margin-bottom: 16px; }
.seg-tabs a { padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--mute); text-decoration: none; display: inline-flex; gap: 6px; }
.seg-tabs a span { font-weight: 500; }
.seg-tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 16, 18, .12); }
.cb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.cb-row { background: var(--group); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.cb-top { display: flex; gap: 12px; align-items: flex-start; }
.cb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cb-line1 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15.5px; }
.cb-reason { margin: 0; font-size: 15px; color: var(--ink); }
.cb-meta { margin: 0; font-size: 13px; color: var(--mute); }
.cb-best { color: var(--text2); font-weight: 600; }
.cb-wait { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.cb-wait.is-amber { color: var(--amber); }
.cb-wait.is-red { color: var(--danger); }
.cb-actions { display: flex; align-items: center; gap: 8px; }
.cb-actions form { margin: 0; }
.cb-actions .rbtn { min-height: 42px; }
.cb-actions > .rbtn-dark, .cb-actions > form:first-of-type { flex: 1; }
.cb-actions > form .rbtn { width: 100%; }
.cb-who { margin-left: auto; }
.cb-who summary { list-style: none; cursor: pointer; display: flex; border-radius: 50%; }
.cb-who summary::-webkit-details-marker { display: none; }
.cb-who .avatar { width: 38px; height: 38px; }
.menu-title { margin: 4px 10px 6px; font-size: 12px; font-weight: 600; color: var(--mute); }
.cb-done { opacity: .85; }
.cb-empty { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; color: var(--mute); text-align: center; }
.my-day { max-width: 760px; margin-bottom: 18px; }
.my-day-title { margin: 6px 0 10px; color: var(--mute); }
.my-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.my-job { background: var(--group); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.my-job.is-now { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.my-job.is-done { opacity: .6; }
.my-when { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--mute); font-weight: 600; }
.my-title { font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
.my-who { margin: 0; font-size: 14px; color: var(--text2); }
.my-actions { display: flex; gap: 8px; margin-top: 10px; }
.my-actions > * { flex: 1; }
.my-actions form { margin: 0; display: flex; }
.my-actions .rbtn { width: 100%; min-height: 42px; padding: 0 10px; }
.cust-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; width: 100%; margin-top: 10px; }
.cust-stats div { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px; background: var(--group); }
.cust-stats strong { font-size: 18px; }
.cust-stats span { font-size: 12px; color: var(--mute); }
.note-box { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; padding: 12px; border-radius: 14px; background: var(--group); }
.note-box textarea { width: 100%; resize: vertical; min-height: 56px; border: 0; border-radius: 10px; background: var(--surface); padding: 10px 12px; font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); }
.note-box textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.note-box-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.note-box-foot .btn { margin-left: auto; }
.note-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.note-help { margin: 0; font-size: 12.5px; }
.pins { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pins .pin-note { max-width: none; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line); }
.tl-item { position: relative; display: flex; gap: 12px; padding: 0 0 16px; }
.tl-dot { position: relative; z-index: 1; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--mute); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--surface); }
.tl-confirmed .tl-dot, .tl-done .tl-dot { background: var(--green-soft); color: var(--green); }
.tl-note .tl-dot { background: var(--amber-soft); color: var(--amber); }
.tl-declined .tl-dot { background: var(--danger-soft); color: var(--danger); }
.tl-body { flex: 1; min-width: 0; padding-top: 3px; }
.tl-when { margin: 0; font-size: 12.5px; color: var(--mute); }
.tl-title { display: block; margin: 1px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
a.tl-title:hover { text-decoration: underline; }
.tl-text { margin: 2px 0 0; font-size: 14px; color: var(--text2); white-space: pre-wrap; overflow-wrap: anywhere; }
.tl-row { display: flex; gap: 8px; align-items: flex-start; }
.tl-row .tl-text { flex: 1; font-size: 15px; color: var(--ink); }
.tag { display: inline-flex; margin-top: 6px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--mute); }
.tag-ai { background: var(--accent-soft); color: var(--accent-ink); }
.tl-more summary { list-style: none; cursor: pointer; width: 28px; height: 24px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--mute); font-weight: 700; letter-spacing: 1px; }
.tl-more summary::-webkit-details-marker { display: none; }
.tl-more summary:hover { background: var(--soft); }
.tl-empty { padding: 8px 0 0 40px; }
.hear { margin: 12px 0 0; font-size: 14px; color: var(--mute); }
.hear q { color: var(--ink); font-style: italic; quotes: "“" "”"; }
.inline-select { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; }
.inline-select select { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 15px; }
.switch-row.big { font-size: 15px; color: var(--ink); margin-top: 12px; }
.add-closed { margin-top: 12px; }
.add-closed summary { list-style: none; display: inline-flex; }
.add-closed summary::-webkit-details-marker { display: none; }
.unsaved-bar { position: fixed; left: 50%; bottom: calc(18px + var(--tabs-h, 0px)); transform: translateX(-50%); z-index: 26; width: min(640px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--btn); color: var(--btn-ink); box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.unsaved-bar[hidden] { display: none; }
.unsaved-text { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.unsaved-bar .btn { background: var(--btn-ink); color: var(--btn); }
.unsaved-bar .btn-ghost { background: transparent; color: var(--btn-ink); opacity: .8; }
body.has-unsaved .page { padding-bottom: 120px; }
@media (max-width: 760px) {
.unsaved-bar { flex-wrap: wrap; }
.unsaved-text { flex-basis: 100%; }
.unsaved-bar .btn:last-child { flex: 1; }
}
.cm-intro { margin: -8px 0 18px; }
.cm { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 18px; align-items: start; max-width: 980px; }
.cm-list { display: flex; flex-direction: column; gap: 4px; }
.cm-kind { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.cm-kind strong { font-size: 15px; font-weight: 600; }
.cm-kind span { font-size: 12.5px; color: var(--mute); }
.cm-kind:hover { background: var(--soft); }
.cm-kind:has(input:checked) { background: var(--group); box-shadow: inset 0 0 0 1px var(--line); }
.cm-kind:has(input:focus-visible) { outline: 2px solid var(--accent-ink); }
.cm-kind.is-later { opacity: .5; cursor: default; }
.cm-kind.is-later:hover { background: none; }
.cm-edit { display: flex; flex-direction: column; }
.cm-pane { display: flex; flex-direction: column; gap: 12px; }
.cm-pane[hidden] { display: none; }
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cm-text textarea { width: 100%; min-height: 120px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 12px 14px; font-size: 15.5px; line-height: 1.5; }
.cm-text textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.cm-tokens { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.token { border: 0; border-radius: 999px; padding: 4px 10px; background: var(--accent-soft); color: var(--accent-ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.token:hover { filter: brightness(.97); }
.cm-preview { display: flex; flex-direction: column; gap: 6px; }
.cm-foot { display: flex; justify-content: space-between; gap: 8px; }
@media (max-width: 760px) {
.cm { grid-template-columns: 1fr; }
.cm-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
.cm-kind { flex: none; }
.cm-kind span, .cm-kind.is-later { display: none; }
}
.req-wrap.job-card-side { display: none; }
.req-wrap.job-card-inline { display: contents; }
.card .ans-bubble { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cm-editor { display: flex; flex-direction: column; gap: 12px; }
.cm-editor > summary { list-style: none; align-self: flex-start; cursor: pointer; }
.cm-editor > summary::-webkit-details-marker { display: none; }
.cm-editor[open] > summary { display: none; }
.cm-pane > .cm-editor[open] { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.tag-editor { min-height: 110px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 12px 14px;
  font-size: 15.5px; line-height: 1.9; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; outline: none; }
.tag-editor:focus-visible, .tag-editor:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.tag-pill { display: inline-flex; align-items: center; padding: 1px 9px; margin: 0 1px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
  font-size: 13px; font-weight: 600; line-height: 1.5; user-select: all; white-space: nowrap; }
.cm-kind.has-error strong::after { content: " •"; color: var(--danger); }
.cm-err { margin: 0 0 8px; }
.menu-scrim { display: none; }
@media (max-width: 760px) {
html.menu-lock, html.menu-lock body { overflow: hidden; overscroll-behavior: none; }
html.menu-lock .topbar, html.menu-lock .tabs { z-index: 50; }
.menu-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .28); touch-action: none; }
.menu[open] > .menu-panel { max-height: calc(100dvh - 150px - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}
.g-method { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.g-method svg { flex: none; }
.g-method-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.g-method-text span { color: var(--mute); font-size: 13px; overflow-wrap: anywhere; }
.g-method form { margin: 0; }
.bill-empty { padding: 28px 24px; }
.bill-empty p { margin: 0 0 6px; }
.bill-badge { background: var(--danger, #C8282E); color: #fff; }
.bill-alert { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 16px; border-radius: 16px; background: var(--danger-soft, #FDECEC); color: var(--danger, #C8282E); }
.bill-alert p { margin: 2px 0 0; font-size: 14px; color: var(--ink); }
.bill-alert > div { flex: 1; min-width: 0; }
.bill-alert form { margin: 0; }
.bill-alert-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--danger, #C8282E); color: #fff; font-weight: 800; }
.bill-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 16px; }
.bill-top .card { margin: 0; }
.bill-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.bill-plan { position: relative; }
.bill-plan-name { margin: 0; font-size: 16px; font-weight: 600; }
.bill-amount { margin: 4px 0 10px; font-family: "Bricolage Grotesque", Inter, sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.bill-amount span { font-family: Inter, sans-serif; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--mute); }
.bill-next { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; }
.bill-warn { color: var(--danger, #C8282E); }
.bill-status { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #E3F4EA; color: #1F7A50; }
.bill-status-past_due, .bill-status-unpaid { background: var(--danger-soft, #FDECEC); color: var(--danger, #C8282E); }
.bill-status-canceled, .bill-status-incomplete { background: var(--chip, #EFEFF1); color: var(--mute); }
.bill-pm form { margin: 14px 0 0; }
.bill-card-row { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.bill-card-ic { display: grid; place-items: center; width: 44px; height: 32px; border-radius: 8px; background: var(--chip, #EFEFF1); }
.bill-safe { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12.5px; color: var(--mute); }
.bill-list { margin: 8px 0 0; padding: 0; list-style: none; }
.bill-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.bill-row:first-child { border-top: 0; }
.bill-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14.5px; }
.bill-row-main .muted { font-size: 13px; }
.bill-calls { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #1F7A50; font-weight: 500; }
.bill-row-side { display: flex; align-items: center; gap: 10px; flex: none; }
.bill-total { font-variant-numeric: tabular-nums; }
.bill-pill { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #E3F4EA; color: #1F7A50; }
.bill-pill-due { background: #FFF3DC; color: #8A5A00; }
.bill-pill-failed, .bill-pill-uncollectible { background: var(--danger-soft, #FDECEC); color: var(--danger, #C8282E); }
.bill-foot { margin: 14px 0 0; }
:root[data-theme="dark"] .bill-pill, :root[data-theme="dark"] .bill-status { background: #10302A; color: #3DDCA6; }
:root[data-theme="dark"] .bill-calls { color: #3DDCA6; }
@media (max-width: 760px) {
.bill-top { grid-template-columns: 1fr; }
.bill-row { flex-wrap: wrap; }
.bill-row-side { width: 100%; justify-content: flex-start; }
.bill-row-side .bill-total { margin-right: auto; }
.bill-amount { font-size: 34px; }
}
.cb-bill-form { display: flex; gap: 6px; margin: 0; }
.cb-bill-form input { width: 190px; height: 34px; font-size: 13px; }
.menu-item .bill-badge { position: static !important; display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: auto; padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 800; transform: none !important; }
@media (max-width: 760px) {
.bill-alert { flex-wrap: wrap; align-items: flex-start; }
.bill-alert form { width: 100%; padding-left: 44px; }
}
/* ===== phone.css ===== */
html { touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (pointer: coarse) {
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea, [contenteditable=true] { font-size: max(16px, 1em) !important; }
a, button, summary, .row, .btn { -webkit-touch-callout: none; }
.btn:active, .icon-btn:active, .tabs a:active, .menu-item:active, .row:active { opacity: .6; transition: opacity 0s; }
}
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
html.is-app body { overscroll-behavior-y: none; }
.ph-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, #2a78d6, #1baf7a); border-radius: 0 2px 2px 0; }
.ph-bar.is-on { opacity: 1; width: 82%; transition: width 8s cubic-bezier(.08, .9, .2, 1), opacity .15s; }
html.is-app .ph-bar { top: env(safe-area-inset-top); }
.ph-ptr { position: fixed; top: env(safe-area-inset-top); left: 50%; z-index: 9998; transform: translate(-50%, -56px);
  display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; pointer-events: none;
  background: var(--surface, #fff); color: var(--ink, #1D1D1F); font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .14); opacity: 0; transition: opacity .15s; }
.ph-ptr.is-pulling, .ph-ptr.is-loading { opacity: 1; }
.ph-ptr:not(.is-pulling):not(.is-loading) { transition: transform .25s ease, opacity .2s; }
.ph-ptr-icon { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line, #E5E5EA); border-top-color: var(--ink, #1D1D1F); }
.ph-ptr.is-armed .ph-ptr-icon { border-top-color: #2a78d6; }
.ph-ptr.is-loading .ph-ptr-icon { animation: ph-spin .7s linear infinite; }
@keyframes ph-spin { to { transform: rotate(360deg); } }
.ph-toast, .ph-offline { position: fixed; left: 50%; transform: translate(-50%, 20px); z-index: 9997; max-width: min(92vw, 440px);
  padding: 11px 16px; border-radius: 14px; font-size: 14px; line-height: 1.4; text-align: center;
  background: var(--ink, #1D1D1F); color: var(--bg, #fff); box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
  bottom: calc(18px + env(safe-area-inset-bottom)); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.ph-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ph-offline { opacity: 1; transform: translate(-50%, 0); background: #8A5300; color: #fff; }
.ph-offline[hidden] { display: none; }
@media (max-width: 760px) {
.ph-toast, .ph-offline { bottom: calc(var(--tabs-h, 64px) + 12px); }
}
@media (prefers-reduced-motion: reduce) {
.ph-bar.is-on { transition: none; width: 60%; }
.ph-ptr.is-loading .ph-ptr-icon { animation-duration: 2s; }
}
/* ===== calendar.css ===== */
input.cal-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden; clip: rect(0 0 0 0); border: 0 !important; opacity: 0; pointer-events: none; }
.cal-trigger { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; width: 100%; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s; }
.cal-trigger svg { flex: none; color: var(--mute); }
.cal-trigger.is-empty .cal-trigger-text { color: var(--mute); font-weight: 400; }
.cal-trigger:hover { border-color: var(--mute); }
.cal-trigger[aria-expanded="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cal-trigger.is-invalid { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.cal-error { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--danger); }
.cal-trigger-chip { flex-direction: column; justify-content: center; gap: 1px; width: auto; min-width: 74px; min-height: 52px; padding: 6px 12px;
  border: 0; box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.cal-trigger-chip svg { display: none; }
.cal-trigger-chip .cal-trigger-text { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.cal-chip-top { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--mute); }
.cal-trigger-chip.is-empty .cal-chip-top { font-size: 13.5px; font-weight: 600; color: var(--ink); gap: 6px; }
.cal-trigger-chip.is-empty .cal-chip-top::before { content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='3'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='3'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.cal-chip-main { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.cal-trigger-chip.is-empty .cal-chip-main { font-size: 15px; color: var(--mute); letter-spacing: .1em; }
.cal-trigger-chip:hover { border-color: transparent; box-shadow: inset 0 0 0 1px var(--ink); }
.when-field.other-picked .cal-trigger-chip, .cal-trigger-chip.is-set { background: var(--btn); box-shadow: none; }
.when-field.other-picked .cal-trigger-chip .cal-chip-top, .when-field.other-picked .cal-trigger-chip .cal-chip-main, .cal-trigger-chip.is-set .cal-chip-top, .cal-trigger-chip.is-set .cal-chip-main { color: var(--btn-ink); }
.cal-trigger-chip.is-set .cal-chip-top { opacity: .75; }
.when-field:not(.other-picked) .cal-trigger-chip.is-set { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.when-field:not(.other-picked) .cal-trigger-chip.is-set .cal-chip-top { color: var(--mute); opacity: 1; }
.when-field:not(.other-picked) .cal-trigger-chip.is-set .cal-chip-main { color: var(--ink); }
.day-other .cal-trigger-chip { width: 100%; }
.cal-dots { display: flex; justify-content: center; gap: 3px; height: 5px; margin-top: 3px; }
.cal-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-ink); }
.cal-dots.is-many i:last-child { width: 9px; border-radius: 3px; }
.day-chip { position: relative; }
.day-chip .cal-dots { margin-top: 2px; }
.day-chip[aria-pressed="true"] .cal-dots i { background: currentColor; opacity: .8; }
.day-chip.is-closed:not([aria-pressed="true"]) strong { color: var(--mute); font-weight: 500; }
.day-chip.is-closed:not([aria-pressed="true"]) { background: repeating-linear-gradient(-45deg, transparent 0 5px, var(--hover) 5px 10px); }
.cal-summary { margin: 8px 0 0; font-size: 13px; color: var(--mute); }
.cal-summary strong { color: var(--ink); font-weight: 600; }
.cal-summary.is-warn { color: var(--amber); }
.cal-summary.is-warn strong { color: var(--amber); }
.cal-pop { position: absolute; z-index: 1000; width: 324px; padding: 16px 14px 12px; border-radius: 20px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .16), 0 2px 6px rgba(0, 0, 0, .06);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top left; transition: opacity .16s ease, transform .18s cubic-bezier(.2, .8, .2, 1); }
.cal-pop.is-above { transform-origin: bottom left; transform: translateY(6px) scale(.98); }
.cal-pop.is-open { opacity: 1; transform: none; }
:root[data-theme="dark"] .cal-pop { box-shadow: 0 18px 50px rgba(0, 0, 0, .6); }
@media (prefers-color-scheme: dark) {
:root[data-theme="system"] .cal-pop { box-shadow: 0 18px 50px rgba(0, 0, 0, .6); }
}
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 10px; }
.cal-title { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.cal-nav { display: flex; gap: 4px; }
.cal-arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); cursor: pointer; transition: background .15s; }
.cal-arrow:hover { background: var(--group-soft); }
.cal-arrow:disabled { opacity: .35; cursor: default; }
.cal-quick { display: flex; gap: 6px; padding: 0 2px 12px; overflow-x: auto; scrollbar-width: none; }
.cal-q { flex: none; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.cal-q:hover { background: var(--group-soft); }
.cal-week, .cal-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-week span { padding-bottom: 6px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--mute); text-transform: uppercase; }
.cal-grid-wrap { overflow: hidden; }
.cal-grid.slide-l { animation: cal-in-l .2s cubic-bezier(.2, .8, .2, 1); }
.cal-grid.slide-r { animation: cal-in-r .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes cal-in-l { from { transform: translateX(26px); opacity: 0; } }
@keyframes cal-in-r { from { transform: translateX(-26px); opacity: 0; } }
.cal-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 40px; margin: 1px;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; transition: background .12s, transform .12s; }
.cal-day .cal-num { font-size: 15px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.cal-day .cal-dots { margin-top: 4px; }
.cal-day:hover:not(:disabled) { background: var(--hover); }
.cal-day:active:not(:disabled) { transform: scale(.94); }
.cal-day.is-out { color: var(--mute); opacity: .55; }
.cal-day.is-closed .cal-num { color: var(--mute); }
.cal-day.is-closed::after { content: ""; position: absolute; inset: 3px; border-radius: 10px; pointer-events: none;
  background: repeating-linear-gradient(-45deg, transparent 0 4px, var(--hover) 4px 8px); }
.cal-day.is-off .cal-num { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal-day.is-today .cal-num { color: var(--accent-ink); font-weight: 700; }
.cal-day.is-today::before { content: ""; position: absolute; inset: 3px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--accent-ink); pointer-events: none; }
.cal-day.is-selected { background: var(--btn); }
.cal-day.is-selected::after, .cal-day.is-selected::before { display: none; }
.cal-day.is-selected .cal-num { color: var(--btn-ink); font-weight: 700; text-decoration: none; }
.cal-day.is-selected .cal-dots i { background: var(--btn-ink); opacity: .8; }
.cal-day:disabled { color: var(--mute); opacity: .3; cursor: default; }
.cal-day:disabled .cal-dots { visibility: hidden; }
.cal-day:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 0; z-index: 1; }
.cal-foot { display: flex; align-items: center; gap: 8px; min-height: 34px; margin-top: 8px; padding: 8px 4px 0; border-top: 1px solid var(--line); }
.cal-facts { flex: 1; margin: 0; font-size: 13px; color: var(--mute); }
.cal-facts strong { color: var(--ink); font-weight: 600; }
.cal-clear, .cal-done { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cal-clear { background: transparent; color: var(--mute); }
.cal-clear:hover { color: var(--ink); background: var(--hover); }
.cal-done { background: var(--btn); color: var(--btn-ink); }
.cal-legend { display: flex; align-items: center; gap: 6px; margin: 6px 4px 0; font-size: 11.5px; color: var(--mute); }
.cal-legend .cal-dots { margin: 0; }
.cal-legend-closed { display: inline-grid; place-items: center; width: 22px; height: 16px; margin-left: 8px; border-radius: 5px; font-size: 10px;
  background: repeating-linear-gradient(-45deg, transparent 0 3px, var(--group-soft) 3px 6px); }
.cal-backdrop { position: fixed; inset: 0; z-index: 999; background: rgba(0, 0, 0, .32); opacity: 0; transition: opacity .2s; }
.cal-backdrop.is-open { opacity: 1; }
.cal-pop.is-sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: 520px; margin: 0 auto;
  padding: 8px 16px calc(14px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; border-width: 1px 0 0;
  transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.cal-pop.is-sheet.is-open { transform: none; }
.cal-grab { width: 38px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: var(--group-soft); }
.cal-pop.is-sheet .cal-day { height: 48px; }
.cal-pop.is-sheet .cal-day .cal-num { font-size: 17px; }
.cal-pop.is-sheet .cal-q { height: 34px; padding: 0 14px; font-size: 14px; }
html.cal-lock, html.cal-lock body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
.cal-pop, .cal-pop.is-sheet, .cal-backdrop, .cal-trigger, .cal-day { transition: none; }
.cal-grid.slide-l, .cal-grid.slide-r { animation: none; }
}
/* ===== textbox.css ===== */
textarea.tb-grow { resize: none; overflow-y: auto; max-height: 50vh; transition: height .12s ease; }
@media (prefers-reduced-motion: reduce) {
textarea.tb-grow { transition: none; }
}
.composer textarea.tb-grow { max-height: 220px; }
.composer.is-big textarea.tb-grow { min-height: 280px; max-height: 60vh; }
.tb-expand { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; margin-left: 6px;
  border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); cursor: pointer; transition: background .15s; }
.tb-expand:hover { background: var(--group-soft); }
.composer-top { align-items: center; }
.cv .composer-note + .tb-expand, .composer-note + .tb-expand { margin-left: 10px; }
.composer-top .composer-label + .tb-expand { margin-left: auto; }
@media (max-width: 760px) {
.cv .composer textarea.tb-grow { max-height: 34vh; max-height: 34dvh; }
.cv .composer.is-big { height: calc(100vh - 48px - env(safe-area-inset-top)); height: calc(100dvh - 48px - env(safe-area-inset-top)); }
.cv .composer.is-big textarea.tb-grow { flex: 1; min-height: 0; max-height: none; height: auto !important; }
.tb-expand { width: 36px; height: 36px; }
.composer-top .tb-expand { margin-left: auto; }
.composer-top .composer-label { flex: 1; }
.composer-top .tb-expand + .sheet-x { margin-left: 8px; }
}
/* ===== look-a.css ===== */
.lbl-short, .tabs .tab-phone, .me-more, .pa-seg, .row-tags { display: none; }
.pa-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tb-expand { display: none !important; }
@media (min-width: 761px) {
.cv .composer-note { display: none; }
.cv .composer {
    position: sticky; bottom: 0; margin: 0; width: 100%; max-width: none; align-self: stretch;
    padding: 10px max(20px, calc((100% - 760px) / 2)) 14px;
    display: grid; grid-template-columns: auto auto 1fr 40px; column-gap: 8px; row-gap: 8px; align-items: center;
    background: var(--group); border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none;
  }
.cv .composer:focus-within { border-color: var(--line); }
.cv .composer .composer-top, .cv .composer .composer-bar { display: contents; }
.cv .composer .composer-label { grid-column: 1; grid-row: 1; font-size: 12px; font-weight: 600; color: var(--mute); }
.cv .composer .chip-accent { grid-column: 2; grid-row: 1; font-size: 11.5px; padding: 2px 8px; }
.cv .composer .chip-btn { grid-column: 3; grid-row: 1; justify-self: start; background: none; padding: 0; font-size: 12px; color: var(--accent-ink); }
.cv .composer .chip-btn:hover { text-decoration: underline; }
.cv .composer textarea, .cv .composer textarea.tb-grow {
    grid-column: 1 / 4; grid-row: 2; min-height: 42px; max-height: 160px; padding: 10px 16px; line-height: 1.4; font-size: 15px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 21px; resize: none;
  }
.cv .composer textarea:focus { border-color: var(--mute); }
.cv .composer .send {
    grid-column: 4; grid-row: 2; align-self: end; justify-self: center; width: 38px; height: 38px; padding: 0; margin: 0 0 2px;
    border-radius: 50%; justify-content: center;
  }
.cv .composer .send span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cv .composer .sheet-x { display: none; }
}
@media (max-width: 760px) {
.topbar { display: flex; align-items: center; gap: 4px; height: 64px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--line); }
.topbar .tb-right { display: contents; }
.topbar .tb-right > details.menu { order: -2; margin-right: 6px; }
.topbar .tb-left { order: -1; flex: 1; min-width: 0; }
.topbar .tb-right > .icon-btn { order: 1; width: 44px; height: 44px; }
.topbar .tb-right > .icon-btn svg { width: 21px; height: 21px; }
.topbar .me .avatar { width: 40px; height: 40px; font-size: 14px; }
.topbar .menu-right { left: 0; right: auto; transform-origin: top left; }
.topbar .tb-left > a.biz { display: none; }
.topbar .tb-left summary.biz { max-width: 100%; height: 36px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--soft); font-size: 13px; }
.topbar .tb-left summary.biz .logo, .topbar .tb-left summary.biz svg.logo { width: 18px; height: 18px; }
.me-more { display: block; }
.tabs .tab-more, .tabs > .menu { display: none; }
.tabs .tab-phone { display: flex; }
.lbl-long { display: none; }
.lbl-short { display: inline; }
.tabs a[aria-current="page"] { background: none; color: var(--ink); }
.tabs a { color: var(--mute); }
.tabs a[aria-current="page"] svg { stroke-width: 2.3; }
.h1, .pa-title { font-family: "Bricolage Grotesque", Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; }
.ask { margin-top: 14px; }
.pa-head { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 4px 12px; }
.pa-title { margin: 0; font-size: 30px; }
.pa-total { font-size: 13px; color: var(--mute); }
.pa-seg { display: flex; gap: 4px; padding: 4px; margin: 12px 0 10px; background: var(--soft); border-radius: 12px; }
.pa-seg a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 9px;
    color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500; }
.pa-seg a[aria-current="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.pa-n { min-width: 18px; padding: 0 5px; border-radius: 6px; background: var(--btn); color: var(--btn-ink); font-size: 11.5px; line-height: 18px; text-align: center; }
.cv .filters a.filter[href*="view=all"], .cv .filters a.filter[href*="view=open"], .cv .filters a.filter[href*="view=done"] { display: none; }
.cv .row { padding-top: 13px; padding-bottom: 13px; }
.cv .row-bottom .chip, .cv .row-bottom .row-lang { display: none; }
.cv .row-preview { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; color: var(--text2); }
.row-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { padding: 2px 8px; border-radius: 6px; background: var(--soft); color: var(--text2); font-size: 12px; font-weight: 600; line-height: 1.4; }
.tag-amber { background: var(--amber-soft); color: var(--amber); }
.tag-red { background: var(--danger-soft); color: var(--danger); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-blue { background: #E4EEFB; color: #1E4E8C; }
.tag-purple { background: #ECE8FA; color: #4B3A9A; }
:root[data-theme="dark"] .tag-blue { background: #14263F; color: #9CC3FF; }
:root[data-theme="dark"] .tag-purple { background: #26204A; color: #C3B6FF; }
}
@media (max-width: 760px) and (prefers-color-scheme: dark) {
:root[data-theme="system"] .tag-blue { background: #14263F; color: #9CC3FF; }
:root[data-theme="system"] .tag-purple { background: #26204A; color: #C3B6FF; }
}
/* ===== imsg.css ===== */
.cv-av, .cv-call, .cv-chev { display: none; }
@media (max-width: 760px) {
body:has(.cv.has-selected) .topbar, body:has(.cv.has-selected) .tabs, .cv-dock, .cv .sheet-backdrop, .cv .composer .sheet-x { display: none !important; }
body:has(.cv.has-selected) { padding-bottom: 0; }
.cv.has-selected { padding-bottom: calc(var(--cmp-h, env(safe-area-inset-bottom)) + 10px); }
.cv .cv-head {
    position: sticky; top: 0; z-index: 20;
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-rows: auto auto; align-items: center;
    column-gap: 4px; row-gap: 2px; padding: 8px 8px 9px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
  }
.cv .cv-head .back-link { grid-column: 1; grid-row: 1 / 3; margin: 0; width: 40px; height: 40px; }
.cv .cv-head .back-link svg { width: 22px; height: 22px; }
.cv .cv-head .cv-pill, .cv .cv-head > .chip, .cv .cv-head .wait-pill, .cv .cv-head .cv-details-btn { display: none !important; }
.cv-av { display: block; grid-column: 2; grid-row: 1; justify-self: center; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.cv-av .avatar { width: 42px; height: 42px; font-size: 15px; }
.cv .cv-head-text { grid-column: 2; grid-row: 2; min-width: 0; text-align: center; }
.cv .cv-name { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.cv .cv-name-btn { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; text-align: center; }
.cv .cv-name-btn:hover { text-decoration: none; }
.cv-chev { display: inline-flex; color: var(--mute); }
.cv .cv-meta { margin: 1px 0 0; font-size: 11.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-call { display: flex; grid-column: 3; grid-row: 1 / 3; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; background: var(--soft); color: var(--ink); text-decoration: none; }
.cv-call:active { opacity: .6; }
.cv .composer, .cv .composer.is-open, .cv .composer:target {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    transform: none; visibility: visible; transition: none;
    margin: 0; width: auto; max-width: none; height: auto;
    display: grid; grid-template-columns: auto minmax(0, 1fr) 36px; column-gap: 8px; row-gap: 6px; align-items: center;
    padding: 7px 10px calc(8px + env(safe-area-inset-bottom));
    border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  }
.cv .composer .composer-top, .cv .composer .composer-bar { display: contents; }
.cv .composer .composer-label, .cv .composer .composer-note { display: none; }
.cv .composer .chip-accent { grid-column: 1; grid-row: 1; font-size: 11.5px; padding: 2px 8px; }
.cv .composer .chip-btn { grid-column: 2 / 4; grid-row: 1; justify-self: start; padding: 0; border: 0; background: none;
    font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }
.cv .composer textarea, .cv .composer textarea.tb-grow, .cv .composer.is-big textarea.tb-grow {
    grid-column: 1 / 3; grid-row: 2; width: 100%; min-height: 38px; max-height: 132px; height: auto;
    padding: 8px 14px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface);
    font-size: 16px; line-height: 1.35; resize: none;
  }
.cv .composer textarea:focus { border-color: var(--mute); outline: none; }
.cv .composer .send { grid-column: 3; grid-row: 2; align-self: end; justify-self: center; position: relative;
    width: 34px; height: 34px; margin: 0 0 2px; padding: 0; border-radius: 50%; justify-content: center; }
.cv .composer .send span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 760px) {
.cv .composer:not(:focus-within) textarea, .cv .composer:not(:focus-within) textarea.tb-grow { max-height: 38px !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
.cv a.btn.job-card-actions { flex-direction: row; align-items: center; justify-content: center; gap: 6px; }
/* ===== smooth.css ===== */
@media (max-width: 760px) {
html:has(.cv.has-selected), html:has(.cv.has-selected) body { overscroll-behavior-y: auto; }
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; animation-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) {
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
/* ===== texts.css ===== */
.sms-state { display: inline-flex; align-items: center; gap: 7px; }
.sms-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--switch-off, #C7C7CC); }
.sms-state.is-yes::before { background: var(--green, #1F8A5B); }
.sms-state.is-no::before { background: var(--danger, #D93025); }
.sms-state.is-unknown { color: var(--mute); }
.sms-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border: 0; border-radius: 999px;
  background: var(--soft); color: var(--text2); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sms-pill.is-no { background: var(--danger-soft, #FDECEA); color: var(--danger, #B3261E); }
.sms-pill svg { flex: none; }
.cv .composer .sms-pill { grid-column: 3; grid-row: 1; justify-self: end; }
.cv .composer .sms-tip { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--text2); }
.cv .composer .sms-tip[hidden] { display: none; }
.cv .composer:has(.sms-tip:not([hidden])) .sms-tip { grid-column: 1 / -1; grid-row: 1; }
.cv .composer:has(.sms-tip:not([hidden])) .chip-accent, .cv .composer:has(.sms-tip:not([hidden])) .chip-btn, .cv .composer:has(.sms-tip:not([hidden])) .sms-pill, .cv .composer:has(.sms-tip:not([hidden])) .composer-label { grid-row: 2; }
.cv .composer:has(.sms-tip:not([hidden])) textarea, .cv .composer:has(.sms-tip:not([hidden])) .send { grid-row: 3; }
@media (max-width: 760px) {
.cv .composer .sms-pill { grid-column: 2 / 4; }
}
@media (max-width: 380px) {
.cv .composer .sms-pill span { display: none; }
}
/* ===== alerts.css ===== */
.al-card { background: var(--surface); border-radius: 18px; padding: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); max-width: 720px; width: 100%; align-self: center; box-sizing: border-box; }
.al-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.al-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--danger-soft, #FDECEA); color: var(--danger, #B3261E); font-size: 12px; font-weight: 700; }
.al-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger, #D93025); flex: none; }
.al-calling .al-badge-dot, .al-home.al-calling .al-badge-dot { animation: al-pulse 1.2s ease-in-out infinite; }
@keyframes al-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
.al-calling .al-badge-dot { animation: none; }
}
.al-reached { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--green, #0A6E52); }
.al-head { margin: 12px 0 0; font-family: "Bricolage Grotesque", Inter, system-ui, sans-serif; font-weight: 800; font-size: 21px; line-height: 1.15; letter-spacing: -.01em; }
.al-nobody .al-head { color: var(--danger, #B3261E); }
.al-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--text2); line-height: 1.4; }
.al-steps { list-style: none; margin: 12px 0 0; padding: 0; }
.al-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.al-what b { font-weight: 600; }
.al-when { font-size: 12px; color: var(--mute); white-space: nowrap; }
.al-later .al-what { color: var(--mute); }
.al-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--soft); box-sizing: border-box; margin-top: 1px; display: flex; align-items: center; justify-content: center; }
.al-dot-ok { background: var(--green, #0A6E52); color: #FFFFFF; }
.al-dot-miss { background: var(--amber-soft, #FFF4E0); border: 2px solid #E5A030; }
.al-dot-ring { border: 2px solid var(--danger, #D93025); animation: al-pulse 1.2s ease-in-out infinite; }
.al-dot-later { background: none; border: 2px dashed var(--line); }
.al-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.al-actions form { margin: 0; }
.al-actions .btn { min-height: 42px; display: inline-flex; align-items: center; gap: 6px; }
.al-home { border-radius: 20px; padding: 16px; background: var(--danger-soft, #FDECEA); color: #5C1410; }
.al-home-top { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--danger, #B3261E); }
.al-home-head { margin: 8px 0 0; font-family: "Bricolage Grotesque", Inter, system-ui, sans-serif; font-weight: 800; font-size: 21px; line-height: 1.2; }
.al-home-sub { margin: 4px 0 0; font-size: 14px; line-height: 1.4; }
.al-home .btn-light { background: #FFFFFF; }
.al-home-link { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--danger, #B3261E); }
:root[data-theme="dark"] .al-home { color: #FFD9D4; }
@media (prefers-color-scheme: dark) {
:root[data-theme="system"] .al-home { color: #FFD9D4; }
}
.al-people { display: flex; flex-direction: column; gap: 10px; }
.al-person { display: grid; grid-template-columns: 28px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr); gap: 10px; align-items: end; }
.al-num { width: 26px; height: 26px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.al-person:not(:first-child) .al-num { background: var(--soft); color: var(--ink); }
.al-person label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--mute); }
.al-person input, .al-person select, .al-how select { font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-width: 0; }
.al-how { display: flex; flex-wrap: wrap; gap: 16px; }
.al-how label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.al-keys { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 13.5px; line-height: 1.5; }
.al-test { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.al-recent { list-style: none; margin: 0; padding: 0; }
.al-recent li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.al-recent li:first-child { border-top: 0; }
@media (max-width: 760px) {
.al-person { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); row-gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.al-person:last-child { border-bottom: 0; }
.al-person label.al-lg { grid-column: 2 / 4; flex-direction: row; align-items: center; justify-content: space-between; }
.al-person label.al-lg select { padding: 5px 8px; font-size: 14px; }
.al-card { border-radius: 18px; }
}
.al-card .al-actions .btn-light { background: var(--soft); }
/* ===== sms.css ===== */
.sms-thread { margin-top: 18px; }
.sms-thread .bubble-time .sms-st-bad { color: var(--danger); font-weight: 600; }
.sms-thread .bubble-row.is-optin .bubble { opacity: .85; font-size: .94em; }
.composer.is-live .sms-own { font-size: 12.5px; color: var(--mute, #6e6e73); text-decoration: underline; white-space: nowrap;
  grid-column: 1 / 4; grid-row: 3; justify-self: start; margin: 2px 0 0 6px; }
.composer.is-live button.send { border: 0; cursor: pointer; font: inherit; }
.composer.is-live button.send[disabled] { opacity: .55; cursor: default; }
.composer .composer-note.is-error { color: var(--danger); }
.ans-texted { color: var(--ok, #1a7f37); font-weight: 600; }
.row-preview.row-text { color: var(--ink); }
.row-unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #0A84FF; margin-right: 6px; flex: none; align-self: center; }
.tag.tag-text { background: color-mix(in srgb, #0A84FF 14%, transparent); color: #0A63C9; }
.tabs a .badge.badge-sms { background: #0A84FF; color: #fff; }
.tabs a .badge + .badge.badge-sms { right: 16px; }
@media (max-width: 760px) {
.tabs a .badge + .badge.badge-sms { right: calc(50% - 4px); }
}
/* ===== settings.css ===== */
html:has(main.set-page), html:has(main.set-page) body { background: var(--group); }
main.set-page { display: grid; grid-template-columns: 236px minmax(0, 1fr); column-gap: 40px; align-items: start;
  max-width: 1180px; margin-inline: auto; padding-bottom: 120px; }
main.set-page > .page-head { grid-column: 1; grid-row: 1 / span 60; position: sticky; top: 84px; margin: 0; display: block; }
main.set-page > .page-head > div { min-width: 0; }
main.set-page > :not(.page-head) { grid-column: 2; min-width: 0; }
main.set-page .page-head .h1 { font-family: "Bricolage Grotesque", Inter, system-ui, sans-serif; font-weight: 800; font-size: 34px; letter-spacing: -0.02em; margin: 0; }
main.set-page .page-head .sub { margin: 2px 0 0; color: var(--mute); }
.set-nav.subtabs { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; padding: 0; background: none; border-radius: 0; overflow: visible; }
.set-nav.subtabs a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; font-size: 15px; font-weight: 500;
  color: var(--ink); white-space: nowrap; text-decoration: none; }
.set-nav.subtabs a:hover { background: var(--hover); }
.set-nav.subtabs a[aria-current="page"] { background: var(--surface); font-weight: 650; box-shadow: 0 1px 3px rgba(0, 0, 0, .07); }
.set-ic { width: 28px; height: 28px; flex: none; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--group-soft); color: var(--ink); }
.set-nav a[aria-current="page"] .set-ic { background: var(--btn); color: var(--btn-ink); }
.set-nav .set-nav-alerts .set-ic { background: var(--danger-soft); color: var(--danger); }
.set-nav .set-nav-alerts[aria-current="page"] .set-ic { background: var(--danger); color: #fff; }
main.set-page .narrow { max-width: none; }
main.set-page form.settings { display: flex; flex-direction: column; gap: 22px; }
main.set-page form.cm { max-width: none; }
main.set-page .cm-list .cm-kind { border-radius: 12px; }
main.set-page .card { background: var(--surface); border: 0; border-radius: 18px; box-shadow: none; padding: 20px 22px; margin: 0; }
main.set-page > .card, main.set-page > section, main.set-page > p.alert, main.set-page > form { margin-bottom: 22px; }
main.set-page .card .h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 4px; }
main.set-page .card .help, main.set-page .muted { color: var(--mute); }
main.set-page > form > p.muted, main.set-page > form > p.help, main.set-page .cm-intro { font-size: 15px; margin: 0 4px; }
main.set-page input[type="text"], main.set-page input[type="tel"], main.set-page input[type="email"], main.set-page input[type="number"], main.set-page input[type="time"], main.set-page input[type="date"], main.set-page input:not([type]), main.set-page select, main.set-page textarea {
  border: 1px solid var(--line); border-radius: 12px; background: var(--thread); font-size: 15px; padding: 10px 12px; color: var(--ink); }
main.set-page textarea { resize: none; line-height: 1.45; min-height: 0; }
main.set-page input:focus, main.set-page select:focus, main.set-page textarea:focus { outline: none; border-color: var(--ink);
  background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }
main.set-page .rec-field > label, main.set-page .rec-legend { font-size: 14px; }
main.set-page .rec-checks[role="radiogroup"] { display: inline-flex; gap: 3px; padding: 3px; border-radius: 11px; background: var(--soft); width: max-content; max-width: 100%; flex-wrap: wrap; }
main.set-page .rec-checks[role="radiogroup"] label.radio { position: relative; padding: 7px 16px; border-radius: 9px; font-size: 14px; cursor: pointer; }
main.set-page .rec-checks[role="radiogroup"] label.radio input { position: absolute; opacity: 0; pointer-events: none; }
main.set-page .rec-checks[role="radiogroup"] label.radio:has(input:checked) { background: var(--surface); font-weight: 650; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
main.set-page .rec-checks[role="radiogroup"] label.radio:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 1px; }
main.set-page .rec-checks:not([role]) { gap: 8px; }
main.set-page .rec-checks:not([role]) label.check { position: relative; padding: 7px 14px; border-radius: 999px; background: var(--soft); font-size: 14px; cursor: pointer; }
main.set-page .rec-checks:not([role]) label.check input { position: absolute; opacity: 0; pointer-events: none; }
main.set-page .rec-checks:not([role]) label.check:has(input:checked) { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
main.set-page .rec-checks:not([role]) label.check:has(input:checked)::after { content: " ✓"; }
main.set-page .rec-checks:not([role]) label.check:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 1px; }
main.set-page .rec-choice { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
main.set-page .rec-choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
main.set-page .types th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding-bottom: 8px; }
main.set-page .types td { padding: 10px 10px 10px 0; }
main.set-page .types input[type="text"], main.set-page .types select, main.set-page .types input.crews-input { border-radius: 10px; padding: 9px 10px; }
main.set-page form.settings > .narrow:last-of-type .btn { padding: 11px 20px; border-radius: 12px; }
.unsaved-bar { border-radius: 16px; padding: 10px 10px 10px 18px; box-shadow: 0 12px 34px rgba(0, 0, 0, .22); }
@media (max-width: 860px) {
main.set-page { display: block; }
main.set-page > .page-head { position: static; margin-bottom: 18px; }
.set-nav.subtabs { flex-direction: row; overflow-x: auto; gap: 6px; margin-top: 14px; padding-bottom: 4px; scrollbar-width: none; }
.set-nav.subtabs::-webkit-scrollbar { display: none; }
.set-nav.subtabs a { padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 14px; background: var(--surface); }
.set-nav.subtabs a[aria-current="page"] { background: var(--btn); color: var(--btn-ink); }
.set-ic { width: 24px; height: 24px; border-radius: 999px; }
main.set-page .card { padding: 16px; border-radius: 16px; }
}
main.set-page .cm-intro { margin: 0 4px 18px; }
main.set-page .cm-list .cm-kind:has(input:checked) { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .07); border-color: transparent; }
main.set-page .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
main.set-page .types { min-width: 640px; }
main.set-page .types td:first-child { min-width: 170px; }
/* ===== search.css ===== */
.tb-right .k-open { width: auto; gap: 10px; padding: 0 10px; }
.k-open .k-pill-text, .k-open .k-kbd { display: none; }
@media (min-width: 1180px) {
.tb-right .k-open { min-width: 250px; height: 36px; justify-content: flex-start; border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface); color: var(--mute); font-size: 14px; }
.tb-right .k-open:hover { background: var(--hover); }
.k-open .k-pill-text { display: inline; flex: 1; text-align: left; }
.k-open .k-kbd { display: inline-block; }
}
.k-kbd { font: 600 12px/1.4 Inter, system-ui, sans-serif; padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--group); color: var(--text2, var(--ink)); white-space: nowrap; }
.k-shade { position: fixed; inset: 0; z-index: 80; background: rgba(15, 16, 18, .38); display: flex; justify-content: center;
  align-items: flex-start; padding: 12vh 16px 16px; }
.k-shade[hidden] { display: none; }
body.k-open { overflow: hidden; }
.k-dialog { width: 100%; max-width: 620px; max-height: 70vh; display: flex; flex-direction: column; background: var(--surface);
  border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); overflow: hidden; }
.k-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--mute); }
.k-input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 17px; color: var(--ink); }
.k-input::-webkit-search-cancel-button { display: none; }
.k-list { overflow-y: auto; padding: 6px 8px 8px; }
.k-hint { margin: 14px 10px; color: var(--mute); font-size: 14px; }
.k-group { margin: 10px 10px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.k-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; color: var(--ink); text-decoration: none; }
.k-item[aria-selected="true"] { background: var(--soft); }
.k-txt { min-width: 0; display: flex; flex-direction: column; }
.k-txt strong { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-txt span { font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-item.is-urgent .k-txt span { color: var(--danger); }
.k-ic { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--group-soft) center / 16px 16px no-repeat; }
.k-ic-customer { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1-4 4-6 8-6s7 2 8 6'/%3E%3C/svg%3E"); }
.k-ic-call { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.k-ic-job { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2'%3E%3Cpath d='M8 2v4M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }
.k-ic-page { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E"); }
.k-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 9px 16px; border-top: 1px solid var(--line);
  background: var(--thread); font-size: 12.5px; color: var(--mute); }
@media (max-width: 760px) {
.k-shade { padding-top: 10px; }
.k-dialog { max-height: 82vh; }
.k-foot { display: none; }
}
/* ===== home.css ===== */

/* ===== side.css ===== */
.side { display: none; }
@media (min-width: 1100px) {
:root { --side-w: 236px; }
body { padding-left: var(--side-w); }
body:has(.side.is-rail) { --side-w: 72px; }
.side { display: flex; flex-direction: column; gap: 14px; position: fixed; top: 0; bottom: 0; left: 0; z-index: 22;
    width: var(--side-w); padding: 16px 14px 14px; background: var(--surface); border-right: 1px solid var(--line); overflow-x: hidden; overflow-y: auto; }
.side-logo { display: flex; align-items: center; height: 30px; padding: 0 6px; color: var(--ink); }
.side-logo .wordmark { display: block; }
.side-biz-menu { position: relative; }
.side-biz-menu > summary { list-style: none; cursor: pointer; }
.side-biz-menu > summary::-webkit-details-marker { display: none; }
.side-biz { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
summary.side-biz:hover { background: var(--hover); }
.side-biz-ic .icon { color: var(--surface); }
.side-biz-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--surface);
    display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.side-biz-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.side-biz-txt strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-biz-txt span { font-size: 12.5px; color: var(--mute); }
.side-biz-menu .menu-panel { position: fixed; left: 14px; right: auto; top: 112px; bottom: auto; width: 270px; min-width: 0; max-height: calc(100vh - 130px); overflow-y: auto; z-index: 60; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav-low { padding-top: 12px; border-top: 1px solid var(--line); }
.side-nav-low .side-item { height: 34px; font-size: 13.5px; color: var(--mute); }
.side-item { display: flex; align-items: center; gap: 12px; height: 39px; padding: 0 10px; border-radius: 10px;
    color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; position: relative; }
.side-item .icon { flex: none; }
.side-item:hover { background: var(--hover); }
.side-item[aria-current="page"] { background: var(--group); font-weight: 600; }
.side-lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-n { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--ink); color: var(--btn-ink);
    font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; }
.side-n.is-red { background: var(--danger); color: #FFFFFF; }
.side-n.is-blue { background: #0A6CD6; color: #FFFFFF; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side-live { display: flex; flex-direction: column; gap: 4px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px;
    text-decoration: none; color: var(--mute); font-size: 12.5px; line-height: 1.4; }
.side-live:hover { background: var(--hover); }
.side-live strong { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--green); }
.side-live.is-problem strong { color: var(--danger); }
.side-live.is-off strong { color: var(--mute); }
.side-live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.side-me-menu { position: relative; }
.side-me-menu > summary { list-style: none; cursor: pointer; }
.side-me-menu > summary::-webkit-details-marker { display: none; }
.side-me { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; }
.side-me:hover { background: var(--hover); }
.side-me .avatar { width: 34px; height: 34px; font-size: 12px; flex: none; }
.side-me-txt { min-width: 0; display: flex; flex-direction: column; }
.side-me-txt strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-me-txt span { font-size: 12.5px; color: var(--mute); }
.side-me-panel { position: fixed; left: 14px; right: auto; bottom: 74px; top: auto; width: 270px; min-width: 0; z-index: 60; }
.side.is-rail .side-me-panel, .side.is-rail .side-biz-menu .menu-panel { left: 80px; }
.side.is-rail .side-biz-menu .menu-panel { top: 60px; }
.side-me-panel .seg { display: inline-flex; }
.side-me-panel .seg-wide { display: flex; }
.side.is-rail { padding: 16px 12px; align-items: center; gap: 10px; }
.side.is-rail .side-logo { padding: 0; justify-content: center; }
.side.is-rail .side-lbl, .side.is-rail .side-biz-txt, .side.is-rail .side-biz > .icon, .side.is-rail .side-live, .side.is-rail .side-me-txt, .side.is-rail .side-nav-low { display: none; }
.side.is-rail .side-biz { padding: 4px; border: 0; }
.side.is-rail .side-item { width: 44px; height: 44px; padding: 0; justify-content: center; }
.side.is-rail .side-search { border: 1px solid var(--line); border-radius: 12px; }
.side.is-rail .side-n { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 5px; font-size: 10px; line-height: 17px; }
.side.is-rail .side-foot { align-items: center; }
.topbar { position: static; height: 68px; padding: 0 32px; grid-template-columns: minmax(0, 1fr); background: transparent;
    border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.topbar .tb-left, .topbar .tabs, .tb-right > .bell, .tb-right > details.menu { display: none; }
.topbar .tb-right { justify-self: end; }
.tb-right .k-open { min-width: 440px; height: 42px; border-radius: 12px; justify-content: flex-start; border: 1px solid var(--line);
    background: var(--surface); color: var(--mute); font-size: 14.5px; }
.tb-right .k-open .k-pill-text, .tb-right .k-open .k-kbd { display: inline-block; }
.tb-right .k-open .k-pill-text { flex: 1; text-align: left; }
body:has(.side.is-rail) .topbar { display: none; }
body:has(.side.is-rail) .convo { height: 100vh; height: 100dvh; }
}
/* ===== qc.css ===== */
.qc { display: block; }
.qc > summary { list-style: none; cursor: pointer; display: flex; width: 100%; }
.qc > summary::-webkit-details-marker { display: none; }
.qc[open] > summary { display: none; }
.qc-form { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); }
.qc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--mute); }
.qc-form select, .qc-form textarea { font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--group);
  border: 1px solid transparent; border-radius: 10px; padding: 9px 11px; }
.qc-form select:focus, .qc-form textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.qc-form textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.qc-note { margin: -4px 0 0; font-size: 12.5px; color: var(--mute); }
/* ===== home3.css ===== */
html:has(.h3), html:has(.h3) body { background: var(--group); }
main:has(> .h3) { max-width: 1240px; padding-top: 6px; }
.h3 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
.h3-left, .h3-right, .h3-stack { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.h3-right { gap: 16px; }
.h3-head { margin-bottom: 2px; }
.h3-date { margin: 0 0 4px; font-size: 15px; color: var(--mute); }
.h3-hi { margin: 0; font-family: "Bricolage Grotesque", Inter, system-ui, sans-serif; font-size: 42px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.h3-sum { margin: 10px 0 0; font-size: 17px; line-height: 1.5; color: var(--text2); }
.h3-sum b { color: var(--ink); }
.h3-sum a { color: var(--text2); text-decoration: none; }
.h3-sum a:hover { text-decoration: underline; }
.h3-clear { color: var(--green); }
.h3-card { background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--line) inset; }
.h3-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.h3-sec h2 { margin: 0; font-size: 17px; font-weight: 700; }
.h3-sec a { font-size: 14px; color: var(--green); }
.h3-sec-note { font-size: 13.5px; color: var(--mute); }
.h3-reqs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.h3-req { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.h3-req-main { display: flex; flex-direction: column; gap: 5px; color: inherit; text-decoration: none; flex: 1; }
.h3-req-who { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; min-width: 0; }
.h3-req-who .avatar { width: 28px; height: 28px; font-size: 11px; }
.h3-req-who strong { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h3-lang { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--group); color: var(--text2); }
.h3-req-title { font-weight: 600; font-size: 15.5px; }
.h3-req-asked { font-size: 14px; color: var(--mute); }
.h3-req-slot { font-size: 14px; font-weight: 500; }
.h3-req-slot.is-same { color: var(--green); }
.h3-req-slot.is-other { color: var(--amber); }
.h3-req-slot.is-wait { color: var(--mute); }
.h3-btn { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 10px; background: var(--btn);
  color: var(--btn-ink); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.h3-btn:hover { opacity: .9; color: var(--btn-ink); }
.h3-list { padding: 16px 16px 6px; }
.h3-list ul { list-style: none; margin: 0; padding: 0; }
.h3-list li + li { border-top: 1px solid var(--line); }
.h3-list li a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: inherit; text-decoration: none; min-width: 0; }
.h3-list li a:hover strong { text-decoration: underline; }
.h3-list strong { flex: none; font-size: 14.5px; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h3-line { flex: 1; min-width: 0; font-size: 14.5px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h3-when { flex: none; font-size: 12.5px; color: var(--mute); }
.h3-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #0A6CD6; }
.h3-dot.is-read { background: var(--group-soft); }
.h3-dot.is-amber { background: #E59A0B; }
.h3-dot.is-red { background: var(--danger); }
.h3-dot.is-ink { background: var(--ink); }
.h3-dot.is-green { background: var(--green); }
.h3-empty { display: flex; align-items: center; gap: 9px; color: var(--mute); padding: 18px 0; }
.h3-jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.h3-job { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 14px 32px; color: inherit; text-decoration: none; }
.h3-job::before { content: ""; position: absolute; left: 16px; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--bar, var(--green)); }
.h3-job:hover { box-shadow: 0 0 0 1px var(--group-soft) inset, 0 4px 14px rgba(0, 0, 0, .05); }
.h3-job-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mute); }
.h3-chip { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--group); color: var(--text2); }
.h3-chip.is-done { background: var(--green-soft); color: var(--green); }
.h3-job-title { font-size: 16px; margin-top: 2px; }
.h3-job-where { font-size: 14px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h3-job-foot { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-top: 3px; }
.h3-job-foot b { font-size: 15px; font-variant-numeric: tabular-nums; }
.h3-none { padding: 18px 16px; color: var(--mute); }
.h3-total { margin: 10px 2px 0; text-align: right; font-size: 14.5px; color: var(--text2); }
.h3-total b { color: var(--ink); }
.h3-month { padding: 18px 16px; }
.h3-month h2 { margin: 0 0 12px; font-size: 16px; }
.h3-month dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.h3-month dt { font-size: 13.5px; color: var(--mute); }
.h3-month dd { margin: 2px 0 0; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.h3-month > a { display: inline-block; margin-top: 14px; font-size: 14.5px; color: var(--green); }
@media (max-width: 1080px) {
.h3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
main:has(> .h3) { padding-top: 18px; }
.h3 { gap: 22px; }
.h3-hi { font-size: 32px; }
.h3-sum { font-size: 15.5px; }
.h3-reqs { grid-template-columns: minmax(0, 1fr); }
.h3-list strong { max-width: 45%; }
}
/* ===== rq.css ===== */
.rq { background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--line) inset; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.rq-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rq-label { margin: 0; font-size: 12.5px; color: var(--mute); }
.rq-title { margin: 1px 0 0; font-size: 17px; font-weight: 700; }
.rq-asked { margin: 0; font-size: 15px; }
.rq-slot { font-weight: 600; }
.rq-slot.is-same { color: var(--green); }
.rq-slot.is-other { color: var(--amber); }
.rq-sub { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; color: var(--mute); }
.rq .qc { margin-top: 6px; }
.rq-msg { gap: 8px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 12px; background: var(--surface); }
.rq-msg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--mute); }
.rq-msg-what { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rq-msg .rq-who { font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); border: 0; border-bottom: 1px dashed var(--mute); border-radius: 0;
  background: transparent; padding: 0 2px; cursor: pointer; min-height: 0; height: auto; width: auto; }
.rq-msg .rq-who:focus { border-bottom-color: var(--ink); }
.rq-msg textarea { border: 0; background: transparent; padding: 2px 0; min-height: 70px; font-size: 15px; line-height: 1.5; resize: vertical; }
.rq-msg textarea:focus { background: transparent; border-color: transparent; }
.rq-msg-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.rq-msg-foot .qc-note { flex: 1; margin: 0; min-width: 160px; }
.rq-cancel { height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; color: var(--ink); }
.rq-cancel:hover { background: var(--soft); }
.rq-send { height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--btn); color: var(--btn-ink); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.rq-send:hover { opacity: .9; }
.rq-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.rq-chip { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); text-decoration: none; font-size: 14px; background: var(--surface); }
.rq-chip:hover { background: var(--soft); }
.rq-more { margin-left: auto; font-size: 13px; color: var(--mute); }
@media (max-width: 760px) {
.rq-more { margin-left: 0; flex-basis: 100%; }
.rq-send { flex: 1; }
}
@media (min-width: 1100px) {
.cv .convo-thread, .cv .thread { background: var(--group); }
}
/* ===== conv2.css ===== */
[data-sms-rows] { display: flex; flex-direction: column; gap: inherit; }
.sms-thread [data-sms-rows] .bubble-row + .bubble-row { margin-top: 8px; }
.sms-thread .bubbles-top { display: none; }
.cv-callchip { display: flex; justify-content: center; margin: 4px 0 6px; }
.cv-callchip span { font-size: 12.5px; color: var(--mute); padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.cmp-suggest { display: flex; align-items: flex-start; gap: 9px; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text2); font: inherit; font-size: 13.5px; line-height: 1.4; text-align: left; cursor: pointer; }
.cmp-suggest:hover { border-color: #B9CCF7; background: color-mix(in srgb, #3B6FF0 4%, var(--surface)); }
.cmp-spark { flex: none; margin-top: 1px; color: #3B6FF0; }
.cmp-suggest b { flex: none; color: var(--ink); font-weight: 600; }
.cmp-suggest [data-suggest-text] { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cv-life { font-weight: 600; }
.cv-notes { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.cv-notes h3 { margin: 0; font-size: 14px; font-weight: 700; }
.cv-notes .quick-note { margin: 0; }
@media (min-width: 1100px) {
.cv .cv-head { display: flex; align-items: center; gap: 10px; }
.cv .cv-head-text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cv .cv-head .cv-meta { margin: 0; }
.cv .cv-head > .cv-pill, .cv .cv-head > .chip, .cv .cv-head > .wait-pill, .cv .cv-head .cv-details-btn, .cv .cv-head .cv-call { display: none !important; }
.cv-call-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; background: var(--surface); }
.cv-call-btn:hover { background: var(--soft); }
.cv-scroll > .quick-note { display: none; }
.convo-side .facts { border: 1px solid var(--line); border-radius: 14px; padding: 2px 14px; background: var(--surface); }
.cv form.composer { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) 44px; grid-template-rows: none; column-gap: 12px; row-gap: 8px; align-items: center; }
.cv form.composer .composer-top, .cv form.composer .composer-bar { display: contents; }
.cv form.composer .composer-label, .cv form.composer .sheet-x, .cv form.composer .chip-accent, .cv form.composer .tb-expand { display: none; }
.cv form.composer .sms-tip { grid-column: 1 / -1; grid-row: 1; }
.cv form.composer .cmp-suggest { grid-column: 1 / -1; grid-row: 2; }
.cv form.composer textarea, .cv form.composer textarea.tb-grow { grid-column: 1 / 5; grid-row: 3; width: 100%; }
.cv form.composer .send { grid-column: 5; grid-row: 3; align-self: end; }
.cv form.composer .chip-btn { grid-column: 1; grid-row: 4; justify-self: start; }
.cv form.composer .sms-own { grid-column: 2; grid-row: 4; justify-self: start; }
.cv form.composer .sms-pill { grid-column: 3; grid-row: 4; justify-self: start; }
.cv form.composer .composer-note { display: block; grid-column: 4 / -1; grid-row: 4; justify-self: end; font-size: 12.5px; }
}
@media (max-width: 1099px) {
.cv-call-btn { display: none; }
.convo-side .cv-notes .quick-note { display: none; }
}
@media (min-width: 1100px) {
.cv-scroll > .pin-note { display: none; }
}
@media (max-width: 1099px) {
.convo-side .cv-notes .pin-note { display: none; }
}
@media (max-width: 1099px) {
.cv .composer .chip-accent { display: none; }
.cv .composer .cmp-suggest { grid-column: 1 / 3; grid-row: 1; padding: 6px 10px; font-size: 12.5px; }
.cv .composer .chip-btn { grid-column: 3; grid-row: 1; justify-self: end; white-space: nowrap; }
.cv .composer .cmp-suggest b { display: none; }
.cv .composer .cmp-suggest [data-suggest-text] { -webkit-line-clamp: 1; }
}
@media (max-width: 1099px) and (min-width: 0) {
.cv .composer { grid-template-columns: auto minmax(0, 1fr) auto; }
}
@media (max-width: 1099px) {
.cv .composer .sms-pill, .cv .composer:has(.sms-tip:not([hidden])) .sms-pill { grid-column: 1 / -1; grid-row: 4; justify-self: start; }
.cv .composer { grid-template-columns: minmax(0, 1fr) auto 44px; }
.cv .composer .cmp-suggest { grid-column: 1; }
.cv .composer .chip-btn { grid-column: 2 / 4; justify-self: end; }
.cv .composer textarea, .cv .composer textarea.tb-grow { grid-column: 1 / 3; }
.cv .composer .send { grid-column: 3; justify-self: end; align-self: end; }
.cv .composer:has(.sms-tip:not([hidden])) .cmp-suggest, .cv .composer:has(.sms-tip:not([hidden])) .chip-btn { grid-row: 2; }
.cv .composer:has(.sms-tip:not([hidden])) .composer-label { display: none; }
}
/* ===== jobs_week.css ===== */
.jw-page.page { max-width: none; padding: 6px 32px 40px; }
.jw { --jw-blue: #2F6FEB; --jw-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }
.jw-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.jw-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.jw-title h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.jw-week { font-size: 15px; color: var(--mute); }
.jw-nav { display: inline-flex; align-items: center; gap: 4px; align-self: center; }
.jw-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--mute); text-decoration: none; }
.jw-arrow:hover { background: var(--hover); color: var(--ink); }
.jw-today { height: 30px; padding: 0 12px; margin-left: 2px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink);
  font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.jw-today:hover { background: var(--hover); }
.jw-actions { display: flex; align-items: center; gap: 10px; }
.jw-views { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--group); }
.jw-views a { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--mute); text-decoration: none; }
.jw-views a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.jw-new { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 10px; background: var(--btn); color: var(--btn-ink);
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.jw-new:hover { opacity: .88; }
@media (min-width: 1280px) {
.jw-bar { margin-right: 384px; }
}
.jw-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.jw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.jw-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border: 1px solid transparent; border-radius: 999px;
  background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: opacity .15s, background .15s; }
.jw-chip:hover { background: var(--hover); }
.jw-chip[aria-pressed="true"] { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }
.jw.is-filtered .jw-chip[aria-pressed="false"] { opacity: .45; }
.jw-sum { margin: 0; font-family: var(--jw-mono); font-size: 13.5px; color: var(--mute); white-space: nowrap; }
.jw-sum-req { color: var(--amber); }
.jw-av { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--c); color: #FFFFFF; font-size: 13px; font-weight: 700; line-height: 1; }
.jw-av.sm { width: 22px; height: 22px; font-size: 11px; }
.jw-av.xs { width: 18px; height: 18px; font-size: 9.5px; }
.jw-av-none { background: var(--group-soft); color: var(--mute); }
.jw-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.jw-cal { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.jw-days, .jw-grid { display: grid; grid-template-columns: 54px repeat(7, minmax(0, 1fr)); }
.jw-days { border-bottom: 1px solid var(--line); }
.jw-day { display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 10px; border-left: 1px solid var(--line); min-width: 0; }
.jw-day.is-today { background: color-mix(in srgb, var(--jw-blue) 6%, var(--surface)); }
.jw-dname { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mute); white-space: nowrap; }
.jw-dname b { font-size: 17px; font-weight: 600; color: var(--ink); }
.jw-day.is-today .jw-dname b { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 4px; border-radius: 50%;
  background: var(--jw-blue); color: #FFFFFF; font-size: 15px; margin: -4px 0; }
.jw-dsub { font-family: var(--jw-mono); font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jw-day.is-past .jw-dname b { color: var(--mute); }
.jw-scroll { max-height: calc(100vh - 248px); min-height: 360px; overflow-y: auto; overscroll-behavior: contain; }
.jw-grid { position: relative; height: calc(var(--hours) * var(--hr) + 12px); padding-top: 0; }
.jw-hours { position: relative; }
.jw-hours span { position: absolute; right: 10px; transform: translateY(-50%); font-size: 12px; color: var(--mute); white-space: nowrap; }
.jw-col { position: relative; border-left: 1px solid var(--line);
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hr)); }
.jw-col.is-today { background-color: color-mix(in srgb, var(--jw-blue) 5%, var(--surface)); }
.jw[data-new-url] .jw-col { cursor: copy; }
.jw-now { position: absolute; left: -4px; right: 0; height: 2px; background: #E5484D; z-index: 1; pointer-events: none; }
.jw-now::before { content: ""; position: absolute; left: -1px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #E5484D; }
.jw-job { position: absolute; z-index: 2; box-sizing: border-box; overflow: hidden;
  left: calc(4px + (100% - 8px) * var(--lane) / var(--lanes)); width: calc((100% - 8px) / var(--lanes) - 2px);
  display: flex; flex-direction: column; gap: 2px; padding: 7px 8px 6px 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--c) 12%, var(--surface)); box-shadow: inset 3px 0 0 var(--c);
  color: var(--ink); text-decoration: none; font-size: 12.5px; line-height: 1.25; transition: box-shadow .12s, opacity .12s, transform .12s; }
.jw-job:hover { background: color-mix(in srgb, var(--c) 18%, var(--surface)); }
.jw-job:focus-visible { outline: 2px solid var(--jw-blue); outline-offset: 1px; }
.jw-job.is-picked { box-shadow: inset 3px 0 0 var(--c), 0 0 0 2px var(--ink); z-index: 4; }
.jw-jt { font-weight: 650; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jw-jc { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jw-jm { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--mute); font-family: var(--jw-mono); font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.jw-jm .icon { color: var(--green); flex: none; }
.jw-job.is-done, .jw-job.is-late { opacity: .58; }
.jw-job.is-done:hover, .jw-job.is-late:hover, .jw-job.is-picked { opacity: 1; }
.jw-job.is-request { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--amber) 9%, var(--surface)) 0 6px, var(--surface) 6px 12px);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--amber) 55%, transparent); }
.jw-job.is-request.is-picked { box-shadow: inset 0 0 0 1.5px var(--amber), 0 0 0 2px var(--ink); }
.jw-req { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--amber); }
.jw-job[style*="height: 26"] .jw-jc, .jw-job[style*="height: 26"] .jw-jm { display: none; }
.jw.is-filtered .jw-job.is-hidden, .jw.is-filtered .jw-lrow.is-hidden { opacity: .12; pointer-events: none; }
.jw.is-filtered .jw-lrow.is-hidden { display: none; }
.jw-ghost { position: absolute; left: 4px; right: 4px; height: calc(var(--hr) / 2 - 2px); z-index: 1; border-radius: 8px; pointer-events: none;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent); color: var(--mute); font-size: 12px; font-weight: 600;
  display: flex; align-items: center; padding: 0 8px; }
.jw-panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.jw-close { display: none; }
.jw-pan { display: flex; flex-direction: column; }
.jw-pan[hidden], .jw-pan-empty[hidden] { display: none; }
.jw-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: var(--group); color: var(--text2); }
.jw-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.jw-pill.is-onsite { background: var(--green-soft); color: var(--green); }
.jw-pill.is-scheduled { background: color-mix(in srgb, var(--jw-blue) 11%, var(--surface)); color: var(--jw-blue); }
.jw-pill.is-request, .jw-pill.is-late { background: var(--amber-soft); color: var(--amber); }
.jw-pill.is-done { background: var(--group); color: var(--mute); }
.jw-pill.sm { height: 22px; padding: 0 8px; font-size: 11.5px; }
.jw-pan h2 { margin: 14px 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; color: var(--ink); }
.jw-when { margin: 0 0 18px; font-family: var(--jw-mono); font-size: 13.5px; color: var(--mute); }
.jw-cust { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.jw-cust-name { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 600; }
.jw-cust-name a { color: var(--ink); text-decoration: none; }
.jw-cust-name a:hover { text-decoration: underline; }
.jw-cust-av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--av); color: #9A3412;
  font-size: 11.5px; font-weight: 700; }
:root[data-theme="dark"] .jw-cust-av { color: #1D1D1F; }
.jw-cust-row { display: flex; align-items: center; gap: 10px; color: var(--text2); text-decoration: none; font-size: 15px; }
.jw-cust-row .icon { color: var(--mute); flex: none; }
.jw-cust-row:hover span { text-decoration: underline; }
.jw-mono { font-family: var(--jw-mono); font-size: 14.5px; }
.jw-asked { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 16px; border-radius: 12px;
  background: var(--amber-soft); color: var(--amber); font-size: 14px; }
.jw-asked b { color: var(--ink); text-align: right; }
.jw-pan h3 { margin: 22px 0 10px; font-size: 14px; font-weight: 500; color: var(--mute); }
.jw-who { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 500; }
.jw-who.is-none span { color: var(--mute); }
.jw-who a { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--jw-blue); text-decoration: none; }
.jw-price { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 14px; font-size: 15px; color: var(--text2); }
.jw-price b { font-family: var(--jw-mono); font-size: 16px; color: var(--ink); }
.jw-acts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.jw-acts form { margin: 0; }
.jw-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; border: 0; border-radius: 12px;
  background: var(--group); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; }
.jw-btn:hover { background: var(--group-soft); }
.jw-btn-dark { background: var(--btn); color: var(--btn-ink); font-weight: 600; }
.jw-btn-dark:hover { background: var(--btn); opacity: .88; }
.jw-link { align-self: center; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; font-size: 14px; color: var(--mute); text-decoration: none; }
.jw-link:hover { color: var(--ink); }
.jw-pan-empty { margin: 40px 0; text-align: center; color: var(--mute); font-size: 14px; }
@media (max-width: 1279px) {
.jw-body { grid-template-columns: minmax(0, 1fr); }
.jw-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(380px, 92vw); max-height: none; padding: 22px 22px 28px;
    background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .22s ease; }
.jw.is-open .jw-panel { transform: none; }
.jw-close { display: grid; place-items: center; position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%;
    background: var(--group); color: var(--ink); cursor: pointer; }
.jw-scroll { max-height: calc(100vh - 230px); }
}
@media (max-width: 1099px) {
.jw-page.page { padding: 20px 24px 40px; }
}
@media (max-width: 760px) {
.jw-page.page { padding: 14px 16px 110px; }
.jw-cal, .jw-panel, .jw-views, .jw-sum { display: none; }
.jw-head { position: relative; margin-bottom: 12px; }
.jw-title { row-gap: 4px; }
.jw-title h1 { font-size: 30px; flex-basis: 100%; }
.jw-actions { position: absolute; top: 2px; right: 0; }
.jw-new { height: 36px; padding: 0 14px; font-size: 14px; }
.jw-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.jw-chips::-webkit-scrollbar { display: none; }
.jw-chip { flex: none; border-color: var(--line); }
.jw-lrow { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 8px; padding: 12px 12px 12px 14px;
    border-radius: 14px; background: color-mix(in srgb, var(--c) 9%, var(--surface)); box-shadow: inset 3px 0 0 var(--c); color: var(--ink); text-decoration: none; }
.jw-lrow.is-done, .jw-lrow.is-late { opacity: .6; }
.jw-lrow.is-request { background: var(--surface); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--amber) 55%, transparent); }
}
/* ===== phone131.css ===== */
.phx, .phx-only, .badge-home, .phx-cline, .phx-clast, .phx-cdot, .phx-show { display: none; }
@media (max-width: 760px) {
:root { --phx-bg: #F7F6F3; --phx-card: #FFFFFF; --phx-line: #E9E7E2; --phx-mute: #6E6E73; --phx-blue: #2F6FEB;
    --phx-red: #C8402E; --phx-red-soft: #FBE4DF; --phx-green: #2E8B57; --phx-green-soft: #E3F4EA; --phx-amber: #B26B00; --phx-amber-soft: #FBF0DC;
    --phx-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; --phx-head: "Bricolage Grotesque", Inter, system-ui, sans-serif; }
:root[data-theme="dark"] { --phx-bg: #0E0E10; --phx-card: #1C1C1E; --phx-line: #2C2C2E; --phx-mute: #98989D;
    --phx-red-soft: #3A1F1B; --phx-green-soft: #16301F; --phx-amber-soft: #3A2C12; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { --phx-bg: #0E0E10; --phx-card: #1C1C1E; --phx-line: #2C2C2E; --phx-mute: #98989D;
    --phx-red-soft: #3A1F1B; --phx-green-soft: #16301F; --phx-amber-soft: #3A2C12; }
}
.phx { display: block; }
.phx-only { display: inline-flex; }
.phx-hide { display: none !important; }
.phx-show { display: contents; }
body.pg-home, body.pg-conversations, body.pg-jobs, body.pg-customers { background: var(--phx-bg); }
body:is(.pg-home, .pg-conversations, .pg-jobs, .pg-customers) .topbar {
    position: absolute; top: calc(env(safe-area-inset-top) + 14px); right: 16px; left: auto; width: auto; height: auto;
    padding: 0; border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; z-index: 40; }
html.menu-lock body:is(.pg-home, .pg-conversations, .pg-jobs, .pg-customers) .topbar { z-index: 50; }
body:is(.pg-home, .pg-conversations, .pg-jobs, .pg-customers) .topbar .tb-left, body:is(.pg-home, .pg-conversations, .pg-jobs, .pg-customers) .topbar .tb-right > .icon-btn { display: none; }
body:is(.pg-home, .pg-conversations, .pg-jobs, .pg-customers) .topbar .tb-right > details.menu { margin: 0; }
body:is(.pg-home, .pg-conversations, .pg-jobs, .pg-customers) .topbar .menu-right { left: auto; right: 0; transform-origin: top right; }
body:is(.pg-home, .pg-conversations, .pg-jobs, .pg-customers) .topbar .me .avatar:not(.avatar-photo) {
    background: #D9EBE9; color: #2E7D78; font-weight: 600; }
body.pg-home .topbar .me .avatar { width: 56px; height: 56px; font-size: 19px; }
body:is(.pg-home, .pg-conversations, .pg-jobs, .pg-customers) main { padding-top: calc(env(safe-area-inset-top) + 18px); }
.tabs .lbl-long { display: inline; }
.tabs .lbl-short { display: none; }
.tabs a > span:not(.badge) { font-size: 11.5px; white-space: nowrap; }
.badge-home { display: grid; background: var(--phx-red); color: #FFFFFF; }
.tabs a .badge:not(.badge-sms):not(.badge-home) { display: none; }
.tabs a .badge.badge-sms { right: calc(50% - 26px); background: var(--phx-blue); }
.phx-title { margin: 0 0 18px; padding-right: 60px; font-family: var(--phx-head); font-size: 38px; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; color: var(--ink); }
.phx-av { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #FFFFFF;
    font-size: 13px; font-weight: 700; box-shadow: 0 0 0 2px var(--phx-card); }
.phx-av.sm { width: 28px; height: 28px; font-size: 12px; }
.phx-av-none { background: var(--soft, #EEE); color: var(--phx-mute); }
.phx-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 500;
    background: var(--soft, #EFEFF1); color: var(--phx-mute); white-space: nowrap; }
.phx-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.phx-pill.is-onsite { background: var(--phx-green-soft); color: var(--phx-green); }
.phx-pill.is-request, .phx-pill.is-late { background: var(--phx-amber-soft); color: var(--phx-amber); }
.phx-tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13.5px; font-weight: 500; white-space: nowrap; flex: none; }
.phx-tag i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.phx-tag.is-red { background: var(--phx-red-soft); color: var(--phx-red); }
.phx-tag.is-blue { background: color-mix(in srgb, var(--phx-blue) 12%, var(--phx-card)); color: var(--phx-blue); }
.phx-tag.is-green { background: var(--phx-green-soft); color: var(--phx-green); }
.phx-tag.is-amber { background: var(--phx-amber-soft); color: var(--phx-amber); }
.phx-tag.is-grey { background: var(--soft, #EFEFF1); color: var(--phx-mute); }
.phx-none, .phx-clear { margin: 14px 4px; color: var(--phx-mute); font-size: 15px; display: flex; align-items: center; gap: 8px; }
body.pg-home .h3-head, body.pg-home .h3-right, body.pg-home .h3 > .alert, body.pg-home .h3-stack > :not(.ask) { display: none !important; }
body.pg-home .h3 { display: block; margin-top: 18px; }
.phx-hello { padding-right: 66px; margin: 4px 0 18px; min-height: 64px; }
.phx-date { margin: 0 0 4px; font-size: 16px; color: var(--phx-mute); }
.phx-hello h1 { margin: 0; font-family: var(--phx-head); font-size: clamp(26px, 8vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: var(--ink); }
.phx-sum { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--phx-line); border-radius: 22px; background: var(--phx-card); }
.phx-sum p { flex: 1; margin: 0; font-size: 16px; line-height: 1.4; color: var(--phx-mute); }
.phx-sum b { color: var(--ink); font-weight: 600; }
.phx-sum-ring { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--ink); position: relative; }
.phx-sum-ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--ink); }
.phx-live { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #C7C7CC; }
.phx-live.is-on { background: #34A853; }
.phx-live.is-problem { background: #E5A00D; }
.phx-sec { display: flex; align-items: center; justify-content: space-between; margin: 30px 2px 14px; }
.phx-sec h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.phx-sec a { font-size: 15px; font-weight: 600; color: var(--phx-mute); text-decoration: none; }
.phx-count { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--ink); color: var(--phx-card); font-size: 15px; font-weight: 600; }
.phx-em { margin-bottom: 14px; border: 1px solid #F1C9C1; border-radius: 22px; overflow: hidden; background: var(--phx-card); }
.phx-em-main { display: flex; gap: 14px; padding: 18px 18px 16px; background: var(--phx-red-soft); color: var(--ink); text-decoration: none; }
.phx-em-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--phx-red); color: #FFFFFF;
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--phx-red) 12%, transparent); }
.phx-em.is-calling .phx-em-icon { animation: phx-ring 1.6s ease-out infinite; }
@keyframes phx-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--phx-red) 35%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.phx-em-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.phx-em-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--phx-mute); }
.phx-em-top b { color: var(--phx-red); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.phx-em-title { font-size: 19px; font-weight: 600; line-height: 1.25; }
.phx-em-line { font-size: 15.5px; line-height: 1.4; color: var(--phx-mute); }
.phx-em-acts { display: flex; gap: 12px; padding: 14px 16px 16px; }
.phx-em-acts form { flex: 1; margin: 0; display: flex; }
.phx-em-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 12px; border: 1px solid #EDC3BA;
    border-radius: 14px; background: var(--phx-card); color: var(--phx-red); font: inherit; font-size: 15.5px; font-weight: 500; text-decoration: none; cursor: pointer; text-align: center; white-space: nowrap; }
.phx-em-btn svg { flex: none; }
.phx-em-btn.is-solid { width: 100%; border-color: var(--phx-red); background: var(--phx-red); color: #FFFFFF; }
.phx-group { margin-bottom: 14px; border: 1px solid var(--phx-line); border-radius: 22px; background: var(--phx-card); overflow: hidden; }
.phx-group h3 { margin: 0; padding: 18px 18px 6px; font-size: 16px; font-weight: 500; color: var(--phx-mute); }
.phx-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--ink); text-decoration: none; }
.phx-row + .phx-row { border-top: 1px solid var(--phx-line); }
.phx-row:active { background: var(--soft, #F2F2F4); }
.phx-row .avatar { width: 44px; height: 44px; font-size: 15px; flex: none; }
.phx-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.phx-row-main b { font-size: 17px; font-weight: 600; }
.phx-row-main > span:last-child { font-size: 15px; color: var(--phx-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phx-row-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.phx-row-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phx-row-text .phx-row-main > span:last-child { color: var(--ink); }
.phx-row > svg { flex: none; color: var(--phx-mute); }
.phx-review { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--phx-card); font-size: 16px; font-weight: 500; }
.phx-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--phx-blue); }
.phx-when { flex: none; font-size: 14px; color: var(--phx-mute); }
.phx-wait { flex: none; font-size: 13px; font-weight: 600; }
.phx-job { position: relative; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; padding: 18px 18px 16px 30px; border: 1px solid var(--phx-line);
    border-radius: 22px; background: var(--phx-card); color: var(--ink); text-decoration: none; }
.phx-job::before { content: ""; position: absolute; left: 14px; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; background: var(--c); }
.phx-job.is-onsite { background: color-mix(in srgb, var(--ink) 3%, var(--phx-card)); }
.phx-job.is-done, .phx-job.is-late { opacity: .62; }
.phx-job.is-request { border-style: dashed; border-color: color-mix(in srgb, var(--phx-amber) 55%, transparent); }
.phx-job-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.phx-job-time { display: inline-flex; align-items: center; gap: 8px; font-family: var(--phx-mono); font-size: 16px; font-weight: 500; white-space: nowrap; }
.phx-job-time svg { color: var(--phx-mute); }
.phx-job-title { font-size: 19px; font-weight: 650; line-height: 1.25; }
.phx-job-where { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15.5px; color: var(--phx-mute); }
.phx-job-where > span:first-child { white-space: nowrap; }
.phx-slash { font-style: normal; color: #C7C7CC; }
.phx-addr { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.phx-addr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phx-addr svg { flex: none; }
.phx-job-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.phx-who { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: var(--phx-mute); }
.phx-money { font-family: var(--phx-mono); font-size: 16px; font-weight: 600; }
body.pg-jobs .jw-head, body.pg-jobs .jw-bar, body.pg-jobs .jw-body { display: none !important; }
body.pg-jobs .jw-page.page { padding-top: 0; }
.phx-kicker { margin: 4px 0 2px; padding-right: 60px; font-size: 16px; color: var(--phx-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phx-titlerow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding-right: 64px; }
.phx-titlerow .phx-title { margin: 0; padding: 0; }
.phx-wk { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--soft, #ECECEE); }
.phx-wk a { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 999px; color: var(--ink); text-decoration: none; }
.phx-wk a.phx-wk-today { padding: 0 10px; font-size: 14px; font-weight: 600; background: var(--phx-card); }
.phx-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin: 0 -6px 22px; }
.phx-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 9px; border: 0; border-radius: 18px; background: none;
    color: var(--ink); font: inherit; cursor: pointer; }
.phx-dname { font-size: 14px; color: var(--phx-mute); }
.phx-day b { font-family: var(--phx-mono); font-size: 21px; font-weight: 600; }
.phx-dots { display: flex; gap: 3px; height: 6px; }
.phx-dots i { width: 5px; height: 5px; border-radius: 50%; background: #B8B8BD; }
.phx-day.is-today:not([aria-selected="true"]) b { color: var(--phx-blue); }
.phx-day[aria-selected="true"] { background: var(--ink); color: var(--phx-card); }
.phx-day[aria-selected="true"] .phx-dname { color: color-mix(in srgb, var(--phx-card) 75%, transparent); }
.phx-day[aria-selected="true"] .phx-dots i { background: color-mix(in srgb, var(--phx-card) 70%, transparent); }
.phx-dayhead { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 14px; font-size: 16px; color: var(--phx-mute); }
.phx-dayhead a { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--ink);
    color: var(--phx-card); font-size: 14px; font-weight: 600; text-decoration: none; }
.phx-dayjobs[hidden] { display: none; }
body.pg-customers main > .page-head, body.pg-customers main > .cust-bar, body.pg-customers main > p.help, body.pg-customers main > .card-table { display: none !important; }
.phx-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 14px; border-radius: 16px; background: var(--soft, #ECECEE); }
.phx-seg a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 12px; font-size: 16px; font-weight: 500; color: var(--phx-mute); text-decoration: none; }
.phx-seg a[aria-current="page"] { background: var(--phx-card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.phx-searchrow { display: flex; gap: 10px; margin-bottom: 12px; }
.phx-search { flex: 1; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 16px; background: var(--soft, #ECECEE); color: var(--phx-mute); }
.phx-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; outline: none; }
.phx-plus { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--ink); color: var(--phx-card); }
.phx-clist { list-style: none; margin: 0 -8px; padding: 0; }
.phx-crow { display: flex; align-items: center; gap: 14px; padding: 13px 8px; border-radius: 18px; color: var(--ink); text-decoration: none; }
.phx-crow:active { background: var(--soft, #F0F0F2); }
.phx-crow .avatar { width: 50px; height: 50px; font-size: 16px; flex: none; }
.phx-crow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.phx-crow-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.phx-crow-name b { font-size: 17.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phx-es { flex: none; padding: 2px 7px; border-radius: 6px; background: var(--soft, #EFEFF1); color: var(--phx-mute); font-size: 12px; font-weight: 600; }
.phx-open { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--phx-amber); }
.phx-crow-note { font-size: 15px; color: var(--phx-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phx-crow-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.phx-crow-side b { font-family: var(--phx-mono); font-size: 16px; font-weight: 600; }
.phx-crow-side span { font-size: 14px; color: var(--phx-mute); }
.phx-crow-when { font-family: inherit !important; font-weight: 500 !important; font-size: 14px !important; color: var(--phx-mute); }
body.pg-conversations .convo:not(.has-selected) .pa-head { padding: 4px 64px 14px 4px; }
body.pg-conversations .convo:not(.has-selected) .pa-title { font-size: 38px; }
body.pg-conversations .pa-total, body.pg-conversations .pa-seg { display: none !important; }
body.pg-conversations .convo-list .search-box { height: 50px; border-radius: 16px; background: var(--soft, #ECECEE); border: 0; }
body.pg-conversations .convo-list .filters { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin: 12px -16px 6px; padding: 0 16px 4px; scrollbar-width: none; }
body.pg-conversations .convo-list .filters::-webkit-scrollbar { display: none; }
body.pg-conversations .convo-list .filter { flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--soft, #ECECEE);
    color: var(--phx-mute); font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
body.pg-conversations .cv .filters a.filter { display: inline-flex; }
body.pg-conversations .convo-list .filter[aria-current="true"] { background: var(--ink); color: var(--phx-card); }
body.pg-conversations .convo-list .filter .filter-n { font-size: 13px; opacity: .75; }
body.pg-conversations .convo-list .filter-red:not([aria-current="true"]) { color: var(--phx-mute); }
body.pg-conversations .rows .row { position: relative; align-items: flex-start; gap: 14px; padding: 16px 12px 16px 26px; border-radius: 20px; }
body.pg-conversations .rows .row[aria-current="true"] { background: var(--soft, #F0F0F2); }
body.pg-conversations .rows .row .avatar { width: 50px; height: 50px; font-size: 17px; flex: none; }
body.pg-conversations .rows .row-bottom, body.pg-conversations .rows .row-tags { display: none !important; }
body.pg-conversations .rows .row-body { gap: 6px; }
body.pg-conversations .rows .row-name { font-size: 17.5px; font-weight: 600; }
body.pg-conversations .rows .row-time { font-size: 15px; color: var(--phx-mute); }
.phx-cdot { display: block; position: absolute; left: 6px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--phx-blue); transform: translateY(-50%); }
.phx-cline { display: flex; align-items: center; gap: 10px; min-width: 0; }
.phx-ctopic { min-width: 0; font-size: 16px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phx-clast { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15.5px; line-height: 1.4; color: var(--phx-mute); }
.phx-clast.is-unread { color: var(--ink); }
.phx-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 6px -4px; font-size: 16px; font-weight: 500; color: var(--phx-blue); text-decoration: none; }
.phx-cust-add .phx-title { margin-bottom: 14px; }
body.pg-customers main > section.card.narrow { margin: 0 0 16px !important; }
body.pg-customers main > section.card.narrow #add-title { display: none; }
body.pg-customers .cust-add input, body.pg-customers .cust-add textarea, body.pg-customers .cust-add select { font-size: 16px; min-height: 46px; }
body.pg-customers .cust-add .wide:last-child .btn { flex: 1; justify-content: center; min-height: 46px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select { font-size: 16px !important; }
.hide-sm { display: none !important; }
}
details.notif { position: relative; }
details.notif > summary { list-style: none; cursor: pointer; position: relative; }
details.notif > summary::-webkit-details-marker { display: none; }
.notif-panel { width: 380px; padding: 0 !important; overflow: hidden; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; font-size: 15px; }
.notif-count { font-size: 12px; font-weight: 600; color: var(--danger, #C8282E); }
.notif-list { margin: 0; padding: 0 6px; list-style: none; max-height: min(460px, 60vh); overflow-y: auto; overscroll-behavior: contain; }
.notif-item { position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 10px 28px 10px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.notif-item:hover, .notif-item:focus-visible { background: var(--chip, #F2F2F4); }
.notif-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--chip, #F0F0F2); color: var(--mute); }
.notif-red { background: #FDECEC; color: #C8282E; }
.notif-blue { background: #E8F0FE; color: #1F5FD1; }
.notif-amber { background: #FFF3DC; color: #8A5A00; }
.notif-green { background: #E3F4EA; color: #1F7A50; }
.notif-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; line-height: 1.35; }
.notif-text b { font-weight: 600; }
.notif-sub { color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-when { color: var(--mute); font-size: 12px; }
.notif-item:not(.is-new) .notif-text b { font-weight: 500; }
.notif-new { position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #1F5FD1; }
.notif-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 24px 22px; text-align: center; font-size: 14px; }
.notif-empty p { margin: 0; color: var(--mute); font-size: 13px; }
.notif-all { display: block; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; text-align: center; }
.notif-all:hover { background: var(--chip, #F2F2F4); }
:root[data-theme="dark"] .notif-red { background: #3A1618; color: #FF8A8A; }
:root[data-theme="dark"] .notif-blue { background: #14243F; color: #8AB4FF; }
:root[data-theme="dark"] .notif-amber { background: #3A2A0E; color: #FFC266; }
:root[data-theme="dark"] .notif-green { background: #10302A; color: #3DDCA6; }
@media (min-width: 1100px) {
.topbar .tb-right { display: flex; align-items: center; gap: 10px; }
.tb-right > details.notif { display: block; }
.tb-right > details.notif > summary { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; place-items: center; }
.notif-panel { top: calc(100% + 8px); }
}
@media (max-width: 760px) {
.notif-panel { position: fixed !important; left: 10px !important; right: 10px !important; top: calc(env(safe-area-inset-top) + 64px) !important; width: auto; border-radius: 20px; }
.notif-list { max-height: calc(100dvh - 230px - env(safe-area-inset-bottom)); }
.notif-item { padding-top: 12px; padding-bottom: 12px; }
}
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; margin-left: 6px; border-radius: 999px; background: var(--danger, #C8282E); color: #fff; font-size: 12px; font-weight: 700; vertical-align: 2px; }
details.notif:not([open]) > .notif-panel { display: none !important; }
@media (prefers-color-scheme: dark) {
:root[data-theme="system"] .notif-red { background: #3A1618; color: #FF8A8A; }
:root[data-theme="system"] .notif-blue { background: #14243F; color: #8AB4FF; }
:root[data-theme="system"] .notif-amber { background: #3A2A0E; color: #FFC266; }
:root[data-theme="system"] .notif-green { background: #10302A; color: #3DDCA6; }
}
/* ===== ask.css ===== */
.ask { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 26px; max-width: 760px; }
.ask-box { display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 12px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 24px; box-shadow: 0 6px 24px rgba(0, 0, 0, .05); transition: border-color .15s; }
.ask-box:focus-within { border-color: var(--mute); }
.ask-box textarea { width: 100%; min-height: 50px; max-height: 200px; border: 0; outline: none; resize: none; padding: 2px 4px;
  background: transparent; color: var(--ink); font: inherit; font-size: 17px; line-height: 1.4; }
.ask-row { display: flex; align-items: center; gap: 8px; }
.ask-chips { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ask-chips::-webkit-scrollbar { display: none; }
.ask-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--soft); color: var(--text2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; }
.ask-chip:hover { background: var(--group-soft); }
.ask-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--btn); color: var(--btn-ink);
  display: grid; place-items: center; cursor: pointer; transition: opacity .15s, transform .12s; }
.ask-send:active { transform: scale(.94); }
.ask-send:disabled { opacity: .45; cursor: default; }
.ask-note { margin: 0 6px; font-size: 13px; color: var(--mute); line-height: 1.45; }
.ask-out { display: flex; flex-direction: column; gap: 10px; }
.ask-thinking { margin: 0 6px; font-size: 14px; color: var(--mute); }
.ask-thinking::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent);
  vertical-align: middle; animation: ask-pulse 1s ease-in-out infinite; }
@keyframes ask-pulse { 50% { opacity: .25; } }
.ask-reply { margin: 0; padding: 12px 16px; border-radius: 18px; background: var(--soft); font-size: 15px; line-height: 1.45; align-self: flex-start; max-width: 100%; }
.ask-muted { background: transparent; padding: 0 6px; color: var(--mute); font-size: 14px; }
.ask-error { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--danger-soft); color: var(--danger); font-size: 14.5px; }
.ask-plan, .ask-done { padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ask-plan-title, .ask-done-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.ask-done-title { color: var(--accent-ink); text-transform: none; letter-spacing: 0; font-size: 15px; }
.ask-lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.ask-lines li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.ask-lines li:first-child { border-top: 0; padding-top: 2px; }
.ask-btns { display: flex; gap: 8px; margin-top: 12px; }
.ask-btn { flex: 1; height: 44px; border: 0; border-radius: 12px; background: var(--btn); color: var(--btn-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.ask-btn-light { background: var(--soft); color: var(--ink); }
.ask-btn:disabled { opacity: .6; cursor: default; }
.ask-problems { padding: 12px 16px; border-radius: 16px; background: var(--amber-soft); color: var(--amber); font-size: 14px; }
.ask-problems p { margin: 0 0 4px; font-weight: 600; }
.ask-problems ul { margin: 0; padding-left: 18px; }
@media (max-width: 600px) {
.ask { margin: 2px 0 22px; }
.ask-box { border-radius: 22px; padding: 14px 14px 10px; }
.ask-box textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
.ask-thinking::before { animation: none; }
}
