/* FourtaBook demo — light, airy dashboard: white rounded cards, round-icon nav, black pill buttons, blue + orange data colours. */
:root {
  --bg: #f4f4f6; --card: #ffffff; --soft: #f3f3f6; --soft2: #ebebf0; --line: #ececf1; --line2: #dedee6;
  --text: #111114; --muted: #8a8a96; --dim: #b4b4be; --ink: #111114;
  --blue: #1f6bff; --blue-soft: #e8f0ff; --orange: #ff6a4a; --orange-soft: #ffece7; --green: #1fa463; --green-soft: #e4f6ec; --red: #e5484d; --red-soft: #fdecee; --amber: #f59e0b;
  --r: 28px; --r-sm: 18px; --sh: 0 12px 40px rgba(20, 20, 40, .10);
  --font: Inter, 'SF Pro Display', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.ico { display: inline-flex; flex: none; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted-text { color: var(--muted); }
.muted-sm { color: var(--muted); font-size: 12px; }
.inl { display: block; }
.wrap { white-space: normal !important; }
small { color: var(--muted); font-size: 12px; }
strong { font-weight: 600; }

.spin { width: 14px; height: 14px; border: 2px solid rgba(255, 106, 74, .25); border-top-color: var(--orange); border-radius: 50%; animation: sp .7s linear infinite; display: inline-block; }
.spin.lg { width: 34px; height: 34px; border-width: 3px; }
@keyframes sp { to { transform: rotate(360deg); } }
.splash { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); background: var(--bg); z-index: 5; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover:not(:disabled) { background: var(--soft); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #2a2a31; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger:hover:not(:disabled) { background: #cf3b40; }
.btn.xs { padding: 5px 13px; font-size: 12px; }
.btn.block { width: 100%; margin-top: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); }
.icon-btn:hover { background: var(--soft); color: var(--text); }
.icon-btn.tiny { width: 22px; height: 22px; vertical-align: middle; }
.circle-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); background: #fff; }
.circle-btn:hover { background: var(--soft); }
.split { position: relative; display: inline-flex; }
.split .btn:first-child { border-radius: 999px 0 0 999px; padding-right: 16px; }
.split .caret { border-radius: 0 999px 999px 0; padding: 10px 13px; border-left-color: rgba(255, 255, 255, .25); }
.popover { position: absolute; right: 0; top: calc(100% + 8px); min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 8px; z-index: 30; box-shadow: var(--sh); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 14px; background: transparent; }
.menu-item:hover:not(:disabled) { background: var(--soft); }
.menu-item small { display: block; }

/* badges / pills */
.badge, .pill { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.sm { font-size: 11px; padding: 1px 9px; }
.badge.confirmed, .pill.resolved { background: var(--blue-soft); color: var(--blue); }
.pill.success { background: var(--green-soft); color: var(--green); }
.badge.pending, .pill.warning, .pill.warn, .pill.running { background: var(--orange-soft); color: #e0502f; }
.pill.active { background: var(--blue-soft); color: var(--blue); }
.badge.completed { background: var(--ink); color: #fff; }
.badge.cancelled, .pill.skipped, .pill.abandoned, .pill.idle { background: var(--soft2); color: var(--muted); }
.pill.error, .pill.escalated { background: var(--red-soft); color: var(--red); }
h1 .pill { margin-left: 14px; vertical-align: middle; font-size: 12px; }

/* shell */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 30px 22px 22px; z-index: 40; background: var(--bg); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 38px; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -.4px; }
.tag { font-size: 10px; font-weight: 700; letter-spacing: .6px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
.nav { display: flex; flex-direction: column; gap: 10px; }
.nav-link { display: flex; align-items: center; gap: 16px; padding: 3px 6px; border-radius: 999px; color: #7d7d89; font-weight: 500; }
.nav-link > .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--soft2); display: inline-grid; place-items: center; color: #6e6e7a; transition: background .15s, color .15s; }
.nav-link:hover > .ico { background: #e1e1e8; }
.nav-link:hover { color: var(--text); }
.nav-link[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-link[aria-current="page"] > .ico { background: var(--ink); color: #fff; }
.side-foot { margin-top: auto; display: grid; gap: 14px; }
.status-card { background: #fff; border-radius: 22px; padding: 16px; display: grid; gap: 4px; font-size: 12.5px; }
.status-card span { color: var(--green); display: flex; align-items: center; gap: 8px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31, 164, 99, .15); }
.user { display: flex; align-items: center; gap: 12px; padding: 4px 6px; }
.user strong { display: block; font-size: 13px; }
.avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); font-size: 12px; font-weight: 700; color: #fff; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 46px; height: 46px; font-size: 15px; }
.avatar.blue { background: var(--blue); } .avatar.orange { background: var(--orange); }
.scrim { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 40px 0; min-height: 76px; }
.menu-btn, .top-brand { display: none; }
.top-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-right { display: flex; align-items: center; gap: 12px; margin-left: auto; position: relative; }
.chip-info { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: #fff; font-size: 12.5px; color: var(--muted); }
.clock { color: var(--muted); font-size: 13px; padding-right: 6px; }
.bell { position: relative; }
.bell .count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.bell-pop { position: absolute; right: 54px; top: 52px; width: 340px; background: #fff; border-radius: 24px; box-shadow: var(--sh); padding: 18px; z-index: 50; }
.bell-pop h4 { font-size: 15px; margin-bottom: 8px; }
.page { padding: 18px 40px 56px; outline: none; max-width: 1560px; width: 100%; }
.page-head, .ov-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1, .ov-head h1 { font-size: 36px; font-weight: 500; letter-spacing: -1.2px; line-height: 1.15; }
.sub { color: var(--muted); margin-top: 6px; max-width: 760px; font-size: 14.5px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.demo-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 18px; background: #fff; color: var(--muted); font-size: 12.5px; margin: 12px 0 18px; }
.demo-note .ico { margin-top: 2px; color: var(--blue); }
.card .demo-note { background: var(--soft); }

/* cards & kpis */
.card { background: var(--card); border-radius: var(--r); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 28px 0; flex-wrap: wrap; }
.card-head h3 { font-size: 21px; font-weight: 500; letter-spacing: -.4px; }
.card-body { padding: 18px 28px 28px; }
.card-body.flush { padding: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { display: flex; gap: 14px; padding: 20px; background: var(--card); border-radius: 24px; align-items: center; }
.kpi-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.kpi.tone-amber .kpi-ico { background: var(--orange-soft); color: var(--orange); }
.kpi.tone-rose .kpi-ico { background: var(--red-soft); color: var(--red); }
.kpi.tone-teal .kpi-ico { background: var(--soft2); color: var(--ink); }
.kpi-label { display: block; color: var(--muted); font-size: 12.5px; }
.kpi-val { display: block; font-size: 28px; line-height: 1.15; letter-spacing: -.8px; font-weight: 600; }
.kpi-sub { display: block; font-size: 11.5px; color: var(--dim); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.two.wide-left { grid-template-columns: 1.7fr 1fr; }
.sec-title { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin: 18px 0 10px; font-weight: 600; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.list li { display: flex; align-items: center; gap: 8px; }
.row-btn { flex: 1; display: flex; align-items: center; gap: 14px; padding: 11px 6px; border: 0; background: transparent; border-radius: 18px; text-align: left; min-width: 0; }
.row-btn:hover { background: var(--soft); }
.row-main { flex: 1; min-width: 0; display: grid; }
.row-main > strong, .row-main > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-side { display: grid; justify-items: end; gap: 3px; text-align: right; font-size: 12.5px; flex: none; }
.new-tag { margin-left: 8px; font-size: 9.5px; padding: 1px 7px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 800; letter-spacing: .5px; vertical-align: middle; }
.act { align-items: flex-start !important; padding: 8px 4px; }
.act-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--soft2); display: grid; place-items: center; flex: none; color: var(--muted); }
.act.booking .act-ico { background: var(--blue-soft); color: var(--blue); }
.act.cancel .act-ico { background: var(--red-soft); color: var(--red); }
.act.escalation .act-ico { background: var(--orange-soft); color: var(--orange); }
.act.reschedule .act-ico, .act.reminder .act-ico { background: var(--soft2); color: var(--ink); }
.act .row-main span { white-space: normal; }
.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 34px 16px; color: var(--muted); }
.empty.small { padding: 20px 10px; }
.empty-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--dim); }
.empty strong { color: var(--text); }
.empty p { max-width: 360px; }

/* tables */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12.5px; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid #f3f3f6; white-space: nowrap; }
.tbl td.wrap { white-space: normal; min-width: 240px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl.hover tbody tr { cursor: pointer; }
.tbl.hover tbody tr:hover { background: #fafafc; }
.act-col { text-align: right; width: 1%; }
.cellname { display: flex; align-items: center; gap: 10px; }
.xstat { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-weight: 500; }
.xstat.error { color: var(--red); } .xstat.warning { color: var(--orange); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line); }
.pager div { display: flex; gap: 8px; }
.card > .tbl-wrap { padding: 8px 12px 0; }

/* toolbar / forms / tabs */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar input, .toolbar select, .form input, .form select, .picker input { background: #fff; border: 1px solid var(--line2); border-radius: 999px; padding: 10px 16px; min-width: 0; }
.form input, .form select, .picker input { border-radius: 16px; background: var(--soft); border-color: transparent; }
.search { position: relative; flex: 1 1 260px; max-width: 380px; }
.search .ico { position: absolute; left: 15px; top: 12px; color: var(--muted); }
.search input { width: 100%; padding-left: 40px; }
.seg { display: inline-flex; background: var(--soft2); border-radius: 999px; padding: 4px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 15px; border: 0; background: transparent; color: var(--muted); border-radius: 999px; font-weight: 500; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(20, 20, 40, .12); }
.card .seg { background: var(--soft); }
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { padding: 4px 0 14px; border: 0; background: transparent; color: var(--muted); font-size: 15px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); font-weight: 600; border-bottom-color: var(--text); }
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.fld input, .fld select { width: 100%; }
.form-err { color: #b3262b; background: var(--red-soft); padding: 10px 14px; border-radius: 14px; }
.picker { display: grid; gap: 14px; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.switch-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.switch-row small { display: block; }
input[role=switch] { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--dim); position: relative; flex: none; cursor: pointer; transition: background .2s; padding: 0; border: 0; }
input[role=switch]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
input[role=switch]:checked { background: var(--ink); }
input[role=switch]:checked::after { transform: translateX(18px); }

/* modal / toast */
.overlay { position: fixed; inset: 0; background: rgba(17, 17, 20, .42); display: grid; place-items: center; padding: 16px; z-index: 100; backdrop-filter: blur(4px); animation: fade .15s; }
.modal { width: min(500px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 30px; box-shadow: var(--sh); }
.modal.wide { width: min(780px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 10px 30px; }
.modal-head h3 { font-size: 20px; font-weight: 500; letter-spacing: -.3px; }
.modal-body { padding: 6px 30px 20px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 30px 24px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px 20px; }
.detail-grid > div { display: grid; gap: 2px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li { padding-left: 16px; display: grid; }
.toasts { position: fixed; right: 22px; bottom: 22px; display: grid; gap: 10px; z-index: 200; max-width: min(400px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 13px 20px; background: var(--ink); color: #fff; border-radius: 999px; box-shadow: var(--sh); animation: rise .25s; }
.toast .ico { color: #6ee7a8; } .toast.err .ico { color: #ff8a8f; }
.toast.out { opacity: 0; transition: opacity .3s; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* live demo */
.tour { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; margin: 0 0 20px; }
.tour li { display: flex; gap: 14px; align-items: center; padding: 14px 20px; border-radius: 999px; background: #fff; }
.tour .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 600; flex: none; }
.tour small { display: block; }
.live-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 20px; align-items: start; }
.live-right { display: grid; gap: 20px; min-width: 0; }
.live-bottom { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.canvas-host { height: 480px; }
.canvas-host.tall { height: 480px; }
.canvas-host.xl { height: 600px; }
.canvas-card .card-body { padding: 10px; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-stats div { background: var(--soft); border-radius: 18px; padding: 12px 6px; text-align: center; }
.mini-stats strong { display: block; font-size: 24px; letter-spacing: -.5px; }
.log-card .card-body { padding: 8px 20px 20px; }

/* overview dashboard */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 20px; align-items: start; }
.dash-left, .dash-right { display: grid; gap: 20px; min-width: 0; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bar-chart { position: relative; margin-top: 8px; }
.bar-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.bar-chart text { fill: var(--muted); font-size: 11px; }
.bar-chart .axis { stroke: var(--line); }
.bar-chart g.col { cursor: pointer; }
.chart-tip { position: absolute; top: 14%; transform: translateX(-50%); background: #fff; border-radius: 18px; box-shadow: 0 10px 32px rgba(20, 20, 40, .16); padding: 14px 18px; min-width: 190px; pointer-events: none; z-index: 2; }
.chart-tip small { display: block; margin-bottom: 8px; }
.chart-tip div { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-size: 13px; }
.chart-tip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.promo-dark { background: var(--ink); color: #fff; border-radius: 28px; padding: 24px 26px; display: flex; align-items: center; gap: 18px; width: 100%; border: 0; text-align: left; }
.promo-dark small { color: #a8a8b4; font-size: 14px; display: block; }
.promo-dark strong { font-size: 16px; font-weight: 500; display: block; }
.promo-dark .go { margin-left: auto; color: #d8d8e0; }
.ring { position: relative; width: 62px; height: 62px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.promo-gray { background: var(--soft2); border-radius: 28px; padding: 28px; position: relative; overflow: hidden; min-height: 210px; }
.promo-gray h3 { font-size: 21px; font-weight: 500; letter-spacing: -.3px; max-width: 280px; }
.promo-gray p { color: var(--muted); margin: 10px 0 20px; max-width: 250px; font-size: 14px; }
.promo-gray .art { position: absolute; right: 14px; bottom: 12px; width: 130px; }
.today-card .head-line { display: flex; justify-content: space-between; align-items: center; }
.today-card .big { font-size: 40px; font-weight: 500; letter-spacing: -1.4px; line-height: 1.1; margin: 4px 0 16px; }
.segbar { display: flex; gap: 3px; height: 10px; margin-bottom: 18px; }
.segbar i { display: block; border-radius: 3px; min-width: 4px; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stat3 small { display: flex; align-items: center; gap: 6px; }
.stat3 small i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.stat3 strong { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.6px; margin-top: 2px; }
.stat3 span { color: var(--dim); font-size: 12px; }
.runs-chart { position: relative; display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 34px; }
.runs-chart .rb { flex: 1; display: grid; gap: 6px; justify-items: center; align-items: end; height: 100%; position: relative; cursor: pointer; }
.runs-chart .rb i { display: block; width: 100%; max-width: 42px; border-radius: 12px; background: var(--soft2); transition: background .15s; }
.runs-chart .rb.on i { background: var(--orange); }
.runs-chart .rb em { font-style: normal; font-size: 11px; color: var(--muted); }
.runs-chart .tip { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 10px; padding: 3px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.big-num { font-size: 34px; font-weight: 500; letter-spacing: -1px; margin: 4px 0; }
.pill-select, .toolbar select, .form select { appearance: none; background-color: #fff; border: 1px solid var(--line2); border-radius: 999px; padding: 9px 34px 9px 16px; font-weight: 500; background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select { border-radius: 16px; background-color: var(--soft); border-color: transparent; }
.stats-dl { display: grid; grid-template-columns: 1fr auto; margin: 0; }
.stats-dl dt, .stats-dl dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stats-dl dt { color: var(--muted); }
.stats-dl dd { text-align: right; font-weight: 600; font-size: 15px; }
.stats-dl dt:nth-last-child(2), .stats-dl dd:last-child { border-bottom: 0; }
.stats-dl.left { grid-template-columns: auto 1fr; gap: 0 18px; }
.stats-dl.left dd { font-size: 13.5px; font-weight: 500; }
.em { color: var(--green); } .warn { color: var(--orange); }
.trig { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.trig:last-child { border-bottom: 0; }
.trig strong { color: var(--text); font-size: 13px; }

/* automation */
.auto-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: stretch; }
.insp-head { display: flex; gap: 14px; align-items: center; }
.insp-head small { display: block; }
.insp-ico { width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--soft); color: var(--ink); flex: none; }
.insp-desc { color: var(--muted); margin-top: 14px; }
.code { background: var(--ink); border-radius: 18px; padding: 14px 16px; font: 12px/1.55 var(--mono); color: #d9f2e4; overflow: auto; margin: 0; max-height: 200px; }
.insp-last { display: grid; gap: 4px; }

/* workflow canvas (n8n-style editor, light) */
.wf { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background-color: #f6f6f9; background-image: radial-gradient(#d6d6e0 1.2px, transparent 1.2px); background-size: 18px 18px; }
.wf-view { position: absolute; inset: 0; cursor: grab; touch-action: none; overflow: hidden; }
.wf-view.grab { cursor: grabbing; }
.wf-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.wf-edges { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.wf-edge { fill: none; stroke: #b4b4c0; stroke-width: 1.8; transition: stroke .3s; }
.wf-edge[data-state=success] { stroke: var(--green); stroke-width: 2.2; }
.wf-edge[data-state=running] { stroke: var(--orange); stroke-dasharray: 7 6; animation: dash .6s linear infinite; }
.wf-edge[data-state=error] { stroke: var(--red); }
.wf-elabel { fill: #9a9aa8; font-size: 11px; }
@keyframes dash { to { stroke-dashoffset: -13; } }
.wf-node { position: absolute; width: 76px; height: 76px; outline-offset: 6px; cursor: pointer; }
.nbox { width: 76px; height: 76px; border-radius: 22px; background: #fff; border: 1.5px solid #e4e4ec; display: grid; place-items: center; color: var(--ink); position: relative; box-shadow: 0 6px 16px rgba(20, 20, 40, .07); transition: border-color .25s, box-shadow .25s; }
.wf-node:hover .nbox { border-color: #bdbdca; }
.wf-node.sel .nbox { box-shadow: 0 0 0 3px rgba(31, 107, 255, .35); border-color: var(--blue); }
.wf-node[data-state=success] .nbox { border: 2px solid var(--green); }
.wf-node[data-state=running] .nbox { border: 2px solid var(--orange); animation: pulse 1s ease-in-out infinite; }
.wf-node[data-state=error] .nbox { border: 2px solid var(--red); }
.wf-node[data-state=warning] .nbox { border: 2px solid var(--amber); }
.wf-node[data-state=skipped] .nbox { border-style: dashed; opacity: .55; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 106, 74, .16); } }
.wf-node[data-id=extract] .nbox { color: #3b7bff; } .wf-node[data-id=remind] .nbox { color: var(--ink); } .wf-node[data-id=resched] .nbox, .wf-node[data-id=cancel] .nbox { color: #55555f; }
.wf-node[data-id=unavail] .nbox { color: var(--amber); } .wf-node[data-id=human] .nbox { color: #d9468f; }
.nbadge { position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; color: #fff; background: var(--green); border: 2.5px solid #f6f6f9; }
.wf-node[data-state=success] .nbadge, .wf-node[data-state=running] .nbadge, .wf-node[data-state=error] .nbadge, .wf-node[data-state=warning] .nbadge, .wf-node[data-state=skipped] .nbadge { display: grid; }
.wf-node[data-state=running] .nbadge { background: #fff; border-color: var(--orange); }
.wf-node[data-state=error] .nbadge { background: var(--red); }
.wf-node[data-state=warning] .nbadge { background: var(--amber); }
.wf-node[data-state=skipped] .nbadge { background: var(--dim); }
.nbadge .spin { width: 10px; height: 10px; border-width: 2px; }
.port { position: absolute; top: 32px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 1.5px solid #a9a9b6; z-index: 1; }
.port.in { left: -7px; } .port.out { right: -7px; }
.wf-node[data-state=success] .port { border-color: var(--green); }
.bolt { position: absolute; left: -34px; top: 26px; color: var(--orange); }
.nlabel { position: absolute; top: 86px; left: 50%; width: 150px; transform: translateX(-50%); text-align: center; pointer-events: none; }
.nlabel strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.nlabel small { display: block; font-size: 11.5px; }
.wf.compact .nlabel strong { font-size: 12.5px; } .wf.compact .nlabel small { font-size: 11px; }
.wf-controls { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; z-index: 3; }
.wf-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); background: #fff; color: var(--ink); }
.wf-btn:hover { background: var(--soft); }
.zoom-lbl { display: none; }
.wf-execbar { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.wf-exec, .wf-chat { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 13px; border: 1px solid var(--line2); }
.wf-exec { background: var(--orange); border-color: var(--orange); color: #fff; }
.wf-exec:hover:not(:disabled) { background: #ff7d60; }
.wf-chat { background: #fff; color: var(--ink); }
.wf-chat:hover { background: var(--soft); }
.wf-badge { position: absolute; right: 16px; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; pointer-events: none; }

/* execution log */
.exlog { max-height: 330px; overflow: auto; font-size: 12.5px; }
.exlog-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 2px 4px 12px; }
.exline { display: grid; grid-template-columns: auto 18px 1fr auto; gap: 10px; align-items: start; padding: 9px 4px; border-top: 1px solid var(--line); }
.ex-time { font-family: var(--mono); font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.ex-ico { color: var(--green); padding-top: 2px; }
.exline.error .ex-ico { color: var(--red); } .exline.warning .ex-ico { color: var(--amber); } .exline.skipped .ex-ico { color: var(--dim); }
.ex-main { display: grid; min-width: 0; }
.ex-main span { color: var(--muted); overflow-wrap: anywhere; }
.ex-ms { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* appointments calendar */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; padding: 20px 24px 14px; }
.wday { display: grid; gap: 1px; justify-items: center; padding: 10px 4px; border-radius: 20px; border: 0; background: var(--soft); }
.wday strong { font-size: 20px; font-weight: 500; } .wday .cnt { font-size: 11px; color: var(--muted); }
.wday:hover { background: var(--soft2); }
.wday.today strong { color: var(--blue); }
.wday.on { background: var(--ink); color: #fff; } .wday.on small, .wday.on .cnt { color: #bbb; } .wday.on.today strong { color: #fff; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 24px 12px; }
.cal-scroll { overflow-x: auto; padding: 0 24px 24px; }
.cal { display: grid; min-width: 600px; }
.cal-doc { height: 50px; display: grid; align-content: center; padding: 0 12px; border-bottom: 1px solid var(--line); }
.cal-doc strong { font-size: 13px; } .cal-doc small { font-size: 11px; }
.cal-col { border-left: 1px solid var(--line); }
.cal-col.off { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(0, 0, 0, .025) 8px 16px); }
.cal-lane { position: relative; background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% calc(60px * 1.15); }
.cal-gutter .cal-lane span { position: absolute; right: 8px; font-size: 11px; color: var(--muted); transform: translateY(-7px); }
.cal-gutter .cal-lane span:first-child { transform: none; }
.cal-lunch, .cal-closed { position: absolute; left: 0; right: 0; background: rgba(0, 0, 0, .035); color: var(--dim); font-size: 11px; display: grid; place-items: center; pointer-events: none; }
.cal-closed { background: rgba(0, 0, 0, .06); }
.cal-appt { position: absolute; left: 4px; right: 4px; border-radius: 14px; padding: 5px 10px; text-align: left; border: 0; overflow: hidden; display: grid; align-content: start; line-height: 1.25; }
.cal-appt strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-appt small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; opacity: .75; }
.cal-appt.confirmed { background: var(--blue-soft); color: #1650c4; }
.cal-appt.pending { background: var(--orange-soft); color: #c4421f; }
.cal-appt.completed { background: var(--ink); color: #fff; }
.cal-appt.cancelled { background: var(--soft2); color: var(--muted); text-decoration: line-through; }

/* conversations */
.conv-layout { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 20px; align-items: start; }
.conv-filter { padding: 20px 20px 12px; overflow-x: auto; }
.conv-list { max-height: 640px; overflow: auto; padding: 4px 12px 14px; display: grid; gap: 2px; }
.conv-item { display: flex; gap: 12px; align-items: center; padding: 12px; border: 0; border-radius: 20px; background: transparent; text-align: left; width: 100%; }
.conv-item:hover { background: var(--soft); } .conv-item.on { background: var(--soft2); }
.conv-head { display: flex; align-items: center; gap: 14px; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.conv-head > div { flex: 1; } .conv-head small { display: block; }
.conv-head .back { display: none; }
.conv-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; }
.conv-info { padding: 20px 24px; border-left: 1px solid var(--line); }
.conv-info .sec-title:first-child { margin-top: 0; }
.conv-card { overflow: hidden; }
.chat-body.readonly { max-height: 560px; min-height: 360px; border-radius: 0 0 0 var(--r); }

/* analytics */
.chart svg { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 10.5px; } .chart text.today { fill: var(--blue); font-weight: 700; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.legend.col { flex-direction: column; gap: 11px; list-style: none; padding: 0; margin: 0; flex: 1; }
.legend.col li { display: flex; align-items: center; } .legend.col li span { flex: 1; } .legend.col strong { color: var(--text); }
.donut-wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; }
.donut { position: relative; width: 160px; flex: none; }
.donut svg { width: 100%; display: block; }
.donut > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut strong { font-size: 28px; line-height: 1; font-weight: 500; letter-spacing: -1px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bars li { display: grid; grid-template-columns: 90px 1fr 84px; align-items: center; gap: 14px; }
.bar { height: 12px; background: var(--soft); border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 99px; }
.bars strong { text-align: right; font-size: 12.5px; }
.integ { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }
.integ-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 22px; background: var(--soft); }
.integ-item > div { flex: 1; min-width: 0; } .integ-item small { display: block; }
.integ code { display: block; margin-top: 8px; font: 11px/1.45 var(--mono); color: #6c6c78; overflow-wrap: anywhere; }
.reset-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.brand-n8n { color: #ea4b71; } .brand-whatsapp { color: #25d366; } .brand-openai { color: #111; } .brand-googlecalendar { color: #4285f4; } .brand-postgresql { color: #336791; }
.nav-link .brand-n8n { color: #ea4b71; }

/* ---------- WhatsApp phone (light theme) ---------- */
.phone { position: relative; display: flex; flex-direction: column; height: 700px; border-radius: 36px; overflow: hidden; background: #efeae2; box-shadow: var(--sh); border: 8px solid var(--ink); }
.phone-host { position: sticky; top: 14px; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 14px; background: #f0f2f5; position: relative; border-bottom: 1px solid #e3e5e8; }
.wa-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; }
.wa-title { flex: 1; min-width: 0; line-height: 1.25; }
.wa-title strong { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #111b21; }
.wa-title small { color: #667781; }
.wa-head .icon-btn { color: #54656f; } .wa-head .icon-btn:hover { background: rgba(0, 0, 0, .06); }
.verified { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #25d366; color: #fff; }
.phone-menu { position: absolute; right: 10px; top: 56px; width: 270px; background: #fff; border-radius: 18px; padding: 8px; z-index: 10; box-shadow: var(--sh); }
.menu-label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 6px 12px; }
.chat-body { flex: 1; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 6px; background-color: #efeae2; background-image: radial-gradient(rgba(0, 0, 0, .045) 1px, transparent 1px); background-size: 18px 18px; scroll-behavior: smooth; color: #111b21; }
.day-chip { align-self: center; font-size: 11.5px; padding: 4px 12px; border-radius: 10px; background: #fff; color: #54656f; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.sys-note { align-self: center; max-width: 92%; text-align: center; font-size: 11.5px; padding: 6px 12px; border-radius: 10px; background: #fff; color: #54656f; display: flex; gap: 6px; align-items: center; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.sys-note.lock { background: #fff5c4; color: #6b5a14; }
.msg { display: flex; animation: pop .22s ease-out; }
.msg.out { justify-content: flex-end; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.bubble { max-width: 86%; padding: 6px 9px 4px; border-radius: 12px; background: #fff; color: #111b21; line-height: 1.38; position: relative; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); font-size: 14px; }
.msg.in .bubble { border-top-left-radius: 3px; }
.msg.out .bubble { background: #d9fdd3; border-top-right-radius: 3px; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-meta { display: flex; gap: 3px; justify-content: flex-end; align-items: center; font-size: 10.5px; color: #667781; margin-top: 1px; }
.tick { color: #53bdeb; }
.staff-tag { font-size: 11px; font-weight: 700; color: #027eb5; }
.bubble.typing { display: flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.msg-card { background: rgba(17, 27, 33, .05); border-radius: 10px; padding: 10px 12px; margin: 2px 0 6px; min-width: 230px; }
.card-title { font-weight: 700; margin-bottom: 4px; }
.card-rows { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 13px; }
.card-rows dt { color: #667781; } .card-rows dd { margin: 0; text-align: right; font-weight: 500; }
.receipt-top { display: flex; justify-content: space-between; align-items: center; }
.receipt-ref { font: 700 22px/1.2 var(--mono); letter-spacing: 1.5px; color: #111b21; margin: 2px 0 8px; }
.msg-card.template { border-left: 3px solid #25d366; }
.tpl-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: #1fa855; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.tpl-body { font-size: 13.5px; } .tpl-foot { font-size: 11px; color: #667781; margin-top: 6px; font-style: italic; }
.quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 12px; background: #efeae2; max-height: 190px; overflow: auto; }
.quick:empty { display: none; }
.quick.suggest { flex-direction: column; flex-wrap: nowrap; align-items: stretch; max-height: none; overflow: visible; }
.suggest-label { font-size: 11.5px; color: #667781; text-align: center; }
.chip { padding: 8px 15px; border-radius: 999px; border: 0; background: #fff; color: #027eb5; font-size: 13px; font-weight: 600; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); transition: background .15s, transform .1s; }
.chip:hover { background: #f3f9fc; } .chip:active { transform: scale(.97); }
.chip.ghost { text-align: left; border-radius: 14px; color: #111b21; font-weight: 500; }
.chip.on, .picker .chip.on { background: var(--ink); color: #fff; }
.picker .chip { background: var(--soft); color: var(--text); box-shadow: none; }
.picker .chip:hover { background: var(--soft2); }
.composer { display: flex; gap: 8px; padding: 8px 10px 12px; background: #f0f2f5; }
.composer-input { flex: 1; min-width: 0; padding: 12px 18px; border-radius: 999px; border: 0; background: #fff; color: #111b21; }
.composer-input::placeholder { color: #8696a0; }
.send-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #00a884; color: #fff; display: grid; place-items: center; flex: none; }
.send-btn:disabled { background: #b9e2d8; }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-right { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
  .auto-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .live-grid { grid-template-columns: 1fr; }
  .phone-host { position: static; display: grid; justify-items: center; }
  .phone { width: min(420px, 100%); }
  .live-bottom, .two, .two.wide-left, .dash-row { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-102%); transition: transform .25s; box-shadow: var(--sh); background: #fff; }
  .nav-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(17, 17, 20, .4); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .nav-open .scrim { opacity: 1; pointer-events: auto; }
  .topbar { padding: 14px 16px 0; min-height: 64px; }
  .menu-btn { display: inline-grid; background: #fff; }
  .top-brand { display: flex; align-items: center; gap: 8px; }
  .top-brand svg { width: 28px; height: 28px; }
  .top-left { display: none; }
  .clock { display: none; }
  .page { padding: 14px 16px 44px; }
  .page-head h1, .ov-head h1 { font-size: 28px; }
  .conv-layout { grid-template-columns: 1fr; }
  .conv-layout .conv-detail { display: none; }
  .conv-layout.show-detail .conv-side { display: none; }
  .conv-layout.show-detail .conv-detail { display: block; }
  .conv-head .back { display: inline-grid; }
  .conv-body { grid-template-columns: 1fr; }
  .conv-info { border-left: 0; border-top: 1px solid var(--line); }
  .tour { grid-template-columns: 1fr; }
  .wf-badge { display: none; }
  .bell-pop { right: 8px; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi { padding: 14px; gap: 10px; } .kpi-ico { width: 38px; height: 38px; }
  .card-head { padding: 20px 20px 0; } .card-body { padding: 14px 20px 22px; }
  .phone { height: calc(100dvh - 150px); min-height: 520px; border-radius: 30px; border-width: 6px; }
  .week { gap: 4px; padding: 12px; } .wday .cnt { display: none; }
  .canvas-host, .canvas-host.tall, .canvas-host.xl { height: 340px; }
  .bars li { grid-template-columns: 70px 1fr 64px; }
  .toasts { left: 14px; right: 14px; max-width: none; }
  .head-actions { width: 100%; }
  .tour { grid-template-columns: repeat(3, 1fr); gap: 6px; } .tour li { padding: 10px; gap: 8px; border-radius: 22px; } .tour small { display: none; } .tour strong { font-size: 12px; line-height: 1.25; } .tour .n { width: 24px; height: 24px; font-size: 12px; }
  .stat3 strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.flip svg { transform: rotate(180deg); }

/* fixes */
.tabs { overflow-x: auto; overflow-y: hidden; }
.tabs button { margin-bottom: 0; }
.row-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-row .row-side .badge { display: none; }
.dash-row .row-btn { gap: 10px; }
.runs-chart { height: 170px; padding-top: 0; align-items: flex-end; }
.runs-chart .rb { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.runs-chart .rb i { width: 100%; max-width: 40px; }
.runs-chart .tip { position: static; transform: none; margin-bottom: 2px; }
.dash-row { grid-template-columns: 1.3fr 1fr; } @media (max-width: 1100px) { .dash-row { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .top-right { gap: 8px; } .top-right .avatar { display: none; } .top-right .btn { padding: 8px 14px; }
  .topbar { gap: 8px; } .top-brand strong { font-size: 15px; }
}
@media (max-width: 440px) { .top-brand strong { display: none; } }
html, body { overflow-x: hidden; }
