@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif'; font-weight: 500; font-display: swap; src: url(/fonts/source-serif-4-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif'; font-weight: 600; font-display: swap; src: url(/fonts/source-serif-4-latin-600-normal.woff2) format('woff2'); }

:root {
  --ink: #142433; --ink-2: #3b4d5c; --muted: #66778a;
  --line: #dfe5ea; --line-2: #eef2f5; --bg: #f5f7f9; --card: #fff;
  --brand: #0b5f66; --brand-2: #0e7680; --brand-soft: #e7f2f3;
  --good: #1f7a4d; --good-soft: #e8f4ed;
  --warn: #9a5b00; --warn-soft: #fbf1e1;
  --bad: #b3261e; --bad-soft: #fbeceb;
  --radius: 8px;
  --serif: 'Source Serif', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-2); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.noscript { padding: 40px; text-align: center; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* letterhead */
.brandmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brandmark img { width: 38px; height: 38px; flex: none; }
.brandmark .wm { display: flex; flex-direction: column; line-height: 1.15; }
.brandmark .wm b { font-family: var(--serif); font-weight: 600; font-size: 20px; }
.brandmark .wm span { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.topbar { background: var(--ink); color: #c9d4dd; font-size: 12.5px; }
.topbar .in { max-width: 1120px; margin: 0 auto; padding: 6px 24px; display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; }
header.site { background: #fff; border-bottom: 1px solid var(--line); }
header.site .in { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 5px 10px 5px 5px; }
.acct-btn .ini { width: 30px; height: 30px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; }
.acct-btn .nm { font-weight: 600; font-size: 14px; }
.acct-btn svg { width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 640px) { .acct-btn .nm { display: none; } }
.menu { position: absolute; right: 0; top: calc(100% + 6px); width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(20,36,51,.12); padding: 6px; display: none; z-index: 40; }
.menu.open { display: block; }
.menu .who { padding: 10px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.menu .who b { display: block; font-size: 14px; }
.menu .who span { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; background: none; border-radius: 6px; font-weight: 500; text-align: left; font-size: 14px; }
.menu button:hover { background: var(--bg); }
.menu button svg { width: 16px; height: 16px; color: var(--muted); }

nav.tabs { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
nav.tabs .in { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
nav.tabs .in::-webkit-scrollbar { display: none; }
nav.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 12px 11px; border-bottom: 3px solid transparent; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; }
nav.tabs a svg { width: 17px; height: 17px; color: var(--muted); }
nav.tabs a:hover { color: var(--ink); }
nav.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
nav.tabs a.on svg { color: var(--brand); }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

main.view { max-width: 1120px; width: 100%; margin: 0 auto; padding: 28px 24px 56px; }
@media (max-width: 640px) { main.view { padding: 20px 16px 40px; } header.site .in, nav.tabs .in, .topbar .in, footer.site .in { padding-left: 16px; padding-right: 16px; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.page-title { font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); font-weight: 600; }
.page-sub { color: var(--muted); margin-top: 4px; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-head h2 { font-size: 16px; }

/* panels, tables */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-pad { padding: 20px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: 1.5fr 1fr 1fr; } .grid-2 { grid-template-columns: 1fr 1fr; } }
.summary-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.summary-card .lbl { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.summary-card .val { font-size: 20px; font-weight: 600; margin-top: 2px; }
.summary-card .det { color: var(--ink-2); font-size: 14px; }
.summary-card .lnk { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 14px; }
.summary-card.next { border-left: 4px solid var(--brand); }
.summary-card.due { border-left: 4px solid var(--warn); }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #fafbfc; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.r, table.data th.r { text-align: right; }
table.data .strong { font-weight: 600; }
table.data .sub { color: var(--muted); font-size: 13px; }
table.data tr.dim td { color: var(--muted); }
.acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 760px) {
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
  table.data tr:last-child { border-bottom: 0; }
  table.data td { border: 0; padding: 2px 0; }
  table.data td[data-l]::before { content: attr(data-l) ': '; color: var(--muted); font-size: 12.5px; }
  table.data td.r { text-align: left; }
  .acts { justify-content: flex-start; margin-top: 8px; }
}
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.Paid, .status.Completed { color: var(--good); }
.status.Due { color: var(--warn); }
.status.Overdue { color: var(--bad); }
.status.Cancelled { color: var(--muted); }
.status.Booked { color: var(--brand-2); }

/* buttons, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 6px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; text-decoration: none; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #094f55; }
.btn-primary[disabled] { opacity: .55; cursor: default; }
.btn-secondary { background: #fff; color: var(--ink); border-color: #c7d1d9; }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-danger { background: #fff; color: var(--bad); border-color: #e3b7b3; }
.btn-danger:hover { background: var(--bad-soft); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand-2); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
label.lbl, .lbl-text { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.hint { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.input { width: 100%; height: 46px; padding: 0 12px; border-radius: 6px; border: 1px solid #b9c5cf; background: #fff; font-size: 16px; }
.input:focus { outline: 0; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(14,118,128,.18); }
.field { margin-top: 18px; }
.code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; max-width: 360px; }
.code input { height: 52px; text-align: center; font-size: 22px; font-weight: 600; padding: 0; }
.dob { display: grid; grid-template-columns: 72px 72px 104px; gap: 10px; }
.dob small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 6px; font-size: 14px; margin-top: 16px; }
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.notice.error { background: var(--bad-soft); color: var(--bad); border-left: 4px solid var(--bad); }
.notice.info { background: var(--brand-soft); color: var(--ink-2); border-left: 4px solid var(--brand); }
.notice.warn { background: var(--warn-soft); color: #6d4300; border-left: 4px solid var(--warn); }

/* sign in */
.auth-main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 48px 16px; }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
@media (max-width: 520px) { .auth-card { padding: 24px 20px; } .auth-main { padding: 24px 12px; } }
.auth-card .step { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.auth-card h1 { font-family: var(--serif); font-size: 26px; margin-top: 6px; }
.auth-card .lead { color: var(--ink-2); margin-top: 8px; }
.auth-card .btn-block { margin-top: 22px; }
.auth-aside { width: 100%; max-width: 460px; margin-top: 18px; display: grid; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.auth-aside div { display: flex; gap: 10px; }
.auth-aside svg { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 1px; }

/* booking */
.steps { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 18px; }
.steps span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.steps b { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #c7d1d9; display: grid; place-items: center; font-size: 12px; }
.steps .on { color: var(--ink); font-weight: 600; }
.steps .on b { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps .done b { background: var(--good-soft); border-color: var(--good-soft); color: var(--good); }
.steps i { width: 24px; border-top: 1px solid var(--line); align-self: center; }
.svc-group { margin-top: 22px; }
.svc-group h3 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.svc { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; align-items: start; margin-bottom: 8px; }
.svc:hover { border-color: var(--brand-2); }
.svc .t { font-weight: 600; font-size: 15.5px; }
.svc .d { color: var(--ink-2); font-size: 14px; grid-column: 1; }
.svc .m { color: var(--muted); font-size: 13px; grid-column: 1; }
.svc .p { grid-row: 1 / span 3; grid-column: 2; text-align: right; font-weight: 600; }
.svc .p small { display: block; color: var(--brand-2); font-size: 13px; font-weight: 600; margin-top: 6px; }
.picked { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; }
.days-head { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.days-head b { font-size: 15px; }
.days-head .navs { display: flex; gap: 6px; }
.icon-btn { width: 36px; height: 36px; border-radius: 6px; border: 1px solid #c7d1d9; background: #fff; display: grid; place-items: center; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn[disabled] { opacity: .4; cursor: default; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.day { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 8px 0; text-align: center; }
.day .w { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.day .n { font-size: 18px; font-weight: 600; }
.day .c { font-size: 11px; color: var(--muted); }
.day[disabled] { opacity: .45; cursor: default; }
.day.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.day.on .w, .day.on .c { color: rgba(255,255,255,.85); }
.slots-group { margin-top: 18px; }
.slots-group h4 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.slot { height: 40px; border-radius: 6px; border: 1px solid #c7d1d9; background: #fff; font-weight: 600; font-size: 14px; }
.slot:hover { border-color: var(--brand); color: var(--brand); }
.skeleton { background: linear-gradient(90deg, #eef2f5 25%, #f6f8fa 50%, #eef2f5 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; margin-top: 18px; }
.sk-slots i { height: 40px; }

/* dialog */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(20,36,51,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: 0 20px 50px rgba(20,36,51,.25); }
.sheet.wide { max-width: 800px; background: var(--bg); }
.sheet h3 { font-family: var(--serif); font-size: 22px; }
.sheet .sub { color: var(--ink-2); margin-top: 6px; }
.sheet .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
dl.summary { margin: 16px 0 0; border: 1px solid var(--line); border-radius: var(--radius); }
dl.summary div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
dl.summary div:last-child { border: 0; }
dl.summary dt { color: var(--muted); }
dl.summary dd { margin: 0; font-weight: 500; }
.success-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: grid; place-items: center; margin-bottom: 14px; }
.success-mark svg { width: 26px; height: 26px; }

/* invoice document */
.paper { background: #fff; border: 1px solid var(--line); padding: 36px 34px; color: #1f2a33; font-size: 14px; }
@media (max-width: 520px) { .paper { padding: 22px 18px; } }
.paper header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--brand); flex-wrap: wrap; }
.paper .co b { font-family: var(--serif); font-size: 19px; color: var(--ink); display: block; }
.paper .co { color: #4a5a66; font-size: 13px; line-height: 1.5; }
.paper .ttl { text-align: right; font-size: 13px; color: #4a5a66; }
.paper .ttl h3 { font-family: var(--serif); font-size: 24px; color: var(--ink); letter-spacing: .04em; }
.paper .to { margin: 20px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }
.paper .to span { display: block; color: #7a8791; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.paper table { width: 100%; border-collapse: collapse; }
.paper th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: #7a8791; padding: 8px 0; border-bottom: 1px solid var(--line); }
.paper td { padding: 11px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.paper .r { text-align: right; }
.paper .totals { margin-left: auto; width: 260px; max-width: 100%; margin-top: 12px; }
.paper .totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.paper .totals .grand { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 9px; font-weight: 700; font-size: 16px; }
.paper footer { margin-top: 26px; font-size: 11px; color: #7a8791; line-height: 1.5; }
.paper .paidnote { margin-top: 12px; color: var(--good); font-weight: 600; }

/* profile, info */
dl.kv { margin: 0; }
dl.kv div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); }
dl.kv div:last-child { border: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
@media (max-width: 520px) { dl.kv div { grid-template-columns: 1fr; gap: 2px; } }
.prose h2 { font-size: 17px; margin: 22px 0 6px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); max-width: 72ch; }
.prose p + p { margin-top: 8px; }
.prose ul { padding-left: 20px; margin: 6px 0; }
.empty { padding: 32px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* footer */
.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
footer.site { border-top: 1px solid var(--line); background: #fff; margin-top: auto; }
footer.site .in { max-width: 1120px; margin: 0 auto; padding: 22px 24px 28px; display: grid; gap: 10px; font-size: 12.5px; color: var(--muted); }
footer.site .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site .links a { color: var(--ink-2); }

#toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(16px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 6px; font-weight: 500; font-size: 14px; transition: all .25s; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.loading-screen { min-height: 100vh; display: grid; place-items: center; }
.loading-screen img { width: 44px; height: 44px; opacity: .8; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
@media print {
  body { background: #fff; }
  body.has-sheet #app, #toast { display: none !important; }
  .sheet-wrap { position: static; background: none; display: block; padding: 0; }
  .sheet { max-width: none !important; max-height: none; box-shadow: none; padding: 0; overflow: visible; background: #fff !important; }
  .sheet .foot { display: none !important; }
  .paper { border: 0; padding: 0; }
}
.val-sm { font-size: 15px !important; word-break: break-all; }
.acts.seg { justify-content: flex-start; margin-bottom: 14px; }
.lead-notice { margin: 0 0 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 761px) { table.data .acts { flex-wrap: nowrap; } table.data td[data-l="Date"], table.data td[data-l="Time"] { white-space: nowrap; } }

.wordmark { display: inline-flex; flex-direction: column; line-height: 1; color: #111; }
.wm-name { font-family: Inter, system-ui, sans-serif; font-weight: 700; font-size: 26px; letter-spacing: .01em; }
.wm-name .rua { color: #b5121b; }
.wm-sub { font-family: Inter, system-ui, sans-serif; font-weight: 500; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: #111; margin-top: 5px; }
.brandmark { gap: 16px; }
.wm-portal { padding-left: 16px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); align-self: stretch; display: flex; align-items: center; }
@media (max-width: 520px) { .wm-name { font-size: 22px; } .wm-sub { font-size: 9.5px; } .wm-portal { display: none; } }
.paper .co .wordmark { margin-bottom: 10px; }
.paper .co-clinic { color: #4a5a66; }
.wm-name .mc { font-weight: 700; }
.wm-name .an, .wm-name .rua { font-weight: 700; }
.acts.more { justify-content: center; padding: 14px 0 6px; }
p.section { margin-bottom: 10px; }
p.section .muted { font-weight: 400; margin-left: 6px; font-size: 13.5px; }

/* messages */
.area { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; font-family: inherit; }
.form-panel { padding: 20px; margin-top: 16px; }
.form-panel .acts { margin-top: 12px; }
.thread { padding: 8px 20px; }
.msg { padding: 14px 0; border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: 0; }
.msg .meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.msg .body { white-space: pre-wrap; line-height: 1.55; }
.msg.staff { background: #f3f8f8; margin: 0 -20px; padding: 14px 20px; }
.status.t-open { color: var(--warn); }
.status.t-answered { color: var(--good); }
.status.t-closed { color: var(--muted); }
.contact-ways { padding: 18px 20px; margin-top: 16px; }
.contact-ways ul { margin: 8px 0 10px; padding-left: 20px; }
.contact-ways li { margin: 4px 0; }
.cats { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.cat { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer; }
.cat:has(input:checked) { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(14,118,128,.12); }
.cat input { margin-top: 3px; accent-color: var(--brand-2); }
.cat small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
