/* Domora — Admin panel (English only). Builds on app.css tokens. */
.admin-body { background: var(--bg-soft); }
.admin-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; background: #0f1714; color: #c4ccc8; display: flex; flex-direction: column; padding: 20px 14px; overflow-y: auto; }
.admin-side .brand { color: #fff; padding: 4px 10px 22px; font-size: 1.15rem; }
.admin-side .brand-mark { background: #fff; color: var(--brand); width: 30px; height: 30px; }
.admin-side .brand img { height: 30px; filter: brightness(0) invert(1); }
.admin-side .tag { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.1); color: #fff; padding: 3px 7px; border-radius: 6px; font-weight: 700; }
.side-label { display: flex; align-items: center; gap: 7px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6f7b76; padding: 16px 12px 8px; }
.side-label .icon { width: 14px; height: 14px; opacity: .7; }
.side-label-setup { color: #e8846f; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; font-size: .92rem; font-weight: 500; transition: background .15s, color .15s; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.is-active { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.side-nav a .icon { width: 18px; height: 18px; opacity: .85; }
/* Red cues: the menus you must set up with your own details */
.side-nav a.nav-setup { box-shadow: inset 3px 0 0 #e8604c; flex-wrap: wrap; }
.nav-setup-tag { margin-left: auto; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #e8604c; padding: 2px 7px; border-radius: 999px; }
.nav-setup-sub { flex-basis: 100%; padding-left: 29px; margin-top: 2px; font-size: .68rem; letter-spacing: .01em; color: #9aa4a0; }
.nav-setup-legend { display: flex; align-items: flex-start; gap: 7px; margin: 12px 12px 0; font-size: .72rem; line-height: 1.45; color: #c7cfcc; }
.nav-setup-legend strong { color: #f0b3a6; }
.nav-setup-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #e8604c; margin-top: 3px; }
.side-nav .sub { padding-left: 41px; font-size: .86rem; }
.side-nav a.nav-warn { color: #f0a99b; font-size: .82rem; }
.side-nav a.nav-warn .icon { width: 14px; height: 14px; }
.side-nav .pill { margin-left: auto; background: var(--accent); color: #2b1d05; font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.side-nav .pill-red { background: #e8604c; color: #fff; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.side-foot .who { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.side-foot .avatar { width: 34px; height: 34px; font-size: .8rem; }
.side-foot button, .side-foot a.side-link { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border-radius: 10px; background: none; border: 0; color: inherit; font-size: .9rem; }
.side-foot button:hover, .side-foot a.side-link:hover { background: rgba(255,255,255,.06); color: #fff; }

.admin-main { min-width: 0; }
.admin-top { height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 32px; background: rgba(247,246,242,.9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); }
.admin-top .crumb { font-size: .9rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.admin-top .crumb a:hover { color: var(--ink); }
.admin-top .crumb strong { color: var(--ink); }
.admin-top .admin-menu { display: none; }
.admin-content { padding: 30px 32px 70px; max-width: 1400px; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-title h1 { font-size: 1.7rem; letter-spacing: -.025em; }
.page-title p { color: var(--muted); margin-top: 6px; }
.page-title .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.zip-import, .restart-box { position: relative; }
.zip-import > summary, .restart-box > summary { list-style: none; cursor: pointer; }
.zip-import > summary::-webkit-details-marker, .restart-box > summary::-webkit-details-marker { display: none; }
.zip-import-form { position: absolute; z-index: 20; margin-top: 8px; width: 340px; max-width: 90vw; padding: 16px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.12)); display: grid; gap: 10px; }
.zip-import-form .hint { margin: 0; }
.danger-zone { border: 1px solid #f0c9c9; }
.danger-zone .panel-head h2 { color: #b91c1c; }
.restart-box { margin-top: 4px; }
.rv-stars { color: #f5a623; letter-spacing: 1px; white-space: nowrap; }
.rv-stars .rv-dim { color: var(--line, #ddd); }
.rv-body-cell { max-width: 360px; color: var(--muted); }
.rv-inline { display: flex; gap: 8px; align-items: center; margin: 0; }
.input-sm { padding: 6px 10px; font-size: .9rem; }
.rv-add-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.rv-add-form .input { flex: 1; min-width: 180px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.02rem; letter-spacing: -.01em; }
.panel-body { padding: 22px; }
.panel-foot { padding: 14px 22px; border-top: 1px solid var(--line); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; position: relative; transition: box-shadow .2s, border-color .2s; }
a.stat:hover { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.stat .s-label { font-size: .84rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .s-label .icon { width: 17px; height: 17px; }
.stat .s-value { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat.is-alert .s-value { color: #b06a07; }
.stat.is-good .s-value { color: var(--success); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fcfcfa; white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbfbf9; }
.table .thumb { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--bg-sand); }
.table .t-main { font-weight: 600; color: var(--ink); }
.table .t-main a:hover { text-decoration: underline; }
.table .t-sub { font-size: .8rem; color: var(--muted); }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .actions-cell { text-align: right; white-space: nowrap; }
.table .actions-cell form { display: inline; }
.cell-flex { display: flex; align-items: center; gap: 12px; }

.tag-s { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.tag-s::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.t-gray { background: #eef0ec; color: #5d6762; }
.t-amber { background: var(--accent-50); color: #8a5a10; }
.t-blue { background: var(--info-50); color: var(--info); }
.t-green { background: var(--success-50); color: var(--success); }
.t-red { background: var(--danger-50); color: var(--danger); }
.t-violet { background: #f1ecfb; color: #6a3fb5; }
.t-dark { background: var(--ink); color: #fff; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .input, .toolbar .select { height: 40px; font-size: .88rem; width: auto; }
.toolbar .input-group .input { padding-left: 38px; }
.toolbar .input-group .icon { left: 12px; width: 16px; height: 16px; }
.seg { display: flex; gap: 4px; padding: 4px; background: #eeede8; border-radius: 12px; overflow-x: auto; margin-bottom: 16px; width: fit-content; max-width: 100%; }
.seg a { padding: 8px 14px; border-radius: 9px; font-size: .88rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.seg a:hover { background: rgba(255,255,255,.6); }
.seg a.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.seg .c { font-size: .74rem; background: rgba(21,32,28,.07); padding: 1px 7px; border-radius: 999px; }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kv { display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-strip figure { margin: 0; position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--bg-sand); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip .ph-actions { position: absolute; inset: auto 6px 6px 6px; display: flex; gap: 6px; justify-content: flex-end; opacity: 0; transition: opacity .15s; }
.photo-strip figure:hover .ph-actions, .photo-strip figure:focus-within .ph-actions { opacity: 1; }
.photo-strip .ph-actions button { height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: rgba(255,255,255,.95); font-size: .76rem; font-weight: 700; display: inline-flex; gap: 5px; align-items: center; box-shadow: var(--shadow-sm); }
.photo-strip .cover-tag { position: absolute; top: 8px; left: 8px; }
.decision { display: grid; gap: 10px; }
.decision details summary { list-style: none; }
.decision details summary::-webkit-details-marker { display: none; }

.lang-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.lang-tabs button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .84rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.lang-tabs button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.lang-tabs .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.lang-tabs .dot.empty { background: #cfd3cc; }
.lang-pane { display: none; }
.lang-pane.is-active { display: grid; gap: 16px; }

.applicant { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.applicant:last-child { border-bottom: 0; }
.applicant.is-current { background: #fbfaf5; box-shadow: inset 3px 0 0 var(--accent); }
.applicant .avatar { width: 40px; height: 40px; font-size: .85rem; background: #2e3a35; }
.applicant .who { font-weight: 700; }
.applicant .meta { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; }
.applicant .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* admin calendar */
.cal-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-month .wd { font-size: .72rem; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; text-transform: uppercase; letter-spacing: .05em; }
.cal-month .d { min-height: 64px; border-radius: 10px; padding: 8px; font-size: .84rem; font-weight: 700; border: 1px solid var(--line); background: #fff; position: relative; }
.cal-month .d small { display: block; font-weight: 600; font-size: .68rem; margin-top: 6px; }
.cal-month .d.available { background: #fff; }
.cal-month .d.pending { background: var(--accent-50); border-color: #f3d9a8; color: #7a4e0c; }
.cal-month .d.selected { background: #f1ecfb; border-color: #d9cbf3; color: #5b31a3; }
.cal-month .d.confirmed { background: var(--brand); border-color: var(--brand); color: #fff; }
.cal-month .d.vacate { background: repeating-linear-gradient(45deg, #e3ece8, #e3ece8 6px, #f1f6f3 6px, #f1f6f3 12px); border-color: #cfe0d8; color: var(--brand-700); }
.cal-month .d.past { opacity: .45; }
.cal-month .d.today { box-shadow: 0 0 0 2px var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); }
.timeline { position: relative; }
.tl-row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .84rem; }
.tl-row:last-child { border-bottom: 0; }
.tl-track { position: relative; height: 26px; background: #f5f5f1; border-radius: 6px; }
.tl-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; font-size: .7rem; font-weight: 700; padding: 0 8px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.tl-bar.PENDING, .tl-bar.UNDER_REVIEW { background: #f6deb0; color: #6b440a; }
.tl-bar.SELECTED { background: #ddd0f5; color: #4d2794; }
.tl-bar.CONFIRMED { background: var(--brand); color: #fff; }
.tl-bar.NOT_SELECTED, .tl-bar.EXPIRED { background: #e6e7e3; color: #737b77; }
.tl-bar.VACATE { background: repeating-linear-gradient(45deg, #cfe0d8, #cfe0d8 5px, #e4eee9 5px, #e4eee9 10px); }

.empty-row { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty-row .icon { width: 30px; height: 30px; margin: 0 auto 10px; color: #b5bbb6; }
.help { display: flex; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--info-50); color: #1d4a85; font-size: .86rem; }
.help .icon { width: 18px; height: 18px; margin-top: 1px; }
.help.warn { background: var(--accent-50); color: #7a4e0c; }
.help.ok { background: var(--success-50); color: #155c39; }

.form-stack { display: grid; gap: 18px; }
.settings-nav { position: sticky; top: 90px; display: grid; gap: 2px; }
.settings-nav a { padding: 9px 12px; border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.settings-nav a:hover { background: #fff; }
.logo-preview { display: flex; align-items: center; justify-content: center; height: 90px; border-radius: 12px; border: 1px dashed var(--line-2); background: repeating-conic-gradient(#f3f3f0 0% 25%, #fff 0% 50%) 50% / 16px 16px; padding: 12px; }
.logo-preview img { max-height: 100%; max-width: 100%; object-fit: contain; }
.logo-preview.dark { background: #0f1714; }

@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 300; transform: translateX(-100%); transition: transform .25s var(--ease); }
  body.side-open .admin-side { transform: none; box-shadow: var(--shadow-lg); }
  body.side-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 250; }
  .admin-top { padding: 0 16px; }
  .admin-top .admin-menu { display: inline-flex; }
  .admin-content { padding: 22px 16px 60px; }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat .s-value { font-size: 1.5rem; }
  .applicant { grid-template-columns: auto 1fr; }
  .applicant .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .cal-month { gap: 3px; }
  .cal-month .d { min-height: 46px; padding: 5px; font-size: .74rem; }
  .cal-month .d small { display: none; }
}

/* Appearance page */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.preset { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.preset:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--pbrand, #888) 50%, var(--line)); box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }
.preset.is-active { border-color: var(--pbrand, var(--ink)); box-shadow: 0 0 0 2px var(--pbrand, var(--ink)); }
/* a tiny mock of the real look: soft-tinted card, a brand bar and cta/accent dots, in this theme's corners */
.preset-chip { height: 40px; border-radius: var(--pcr, 12px); background: var(--psoft, #f5f5f5); border: 1px solid color-mix(in srgb, var(--pink, #222) 10%, transparent); display: flex; align-items: center; gap: 7px; padding: 0 10px; }
.preset-chip .pchip-bar { height: 7px; flex: 1; border-radius: 999px; background: var(--pbrand, #888); max-width: 54%; }
.preset-chip .pchip-dot { width: 14px; height: 14px; border-radius: var(--pbr, 999px); }
.preset-chip .pchip-cta { background: var(--pcta, #444); }
.preset-chip .pchip-acc { width: 11px; height: 11px; border-radius: 50%; background: var(--pacc, #e9a23b); }
.preset-sw { display: flex; height: 22px; border-radius: 7px; overflow: hidden; }
.preset-sw i { flex: 1; }
.preset-name { font-family: var(--pf, inherit), 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: .95rem; color: var(--ink); line-height: 1.15; }
.preset-note { font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
.color-row { display: grid; grid-template-columns: 52px 1fr 120px; gap: 14px; align-items: center; }
.color-row input[type=color] { width: 52px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; }
.color-meta label { font-weight: 700; font-size: .9rem; }
.color-meta .hint { margin-top: 2px; }
.color-hex { height: 42px; font-family: ui-monospace, monospace; text-transform: lowercase; }
.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.font-opt input, .seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.font-opt span { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.font-opt strong { font-size: 1.7rem; line-height: 1; }
.font-opt em { font-style: normal; font-size: .84rem; color: var(--muted); }
.font-opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.font-opt input:focus-visible + span, .seg-radio input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.seg-radio { display: inline-flex; gap: 4px; padding: 4px; background: #eeede8; border-radius: 12px; }
.seg-radio label { position: relative; }
.seg-radio span { display: inline-block; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: .88rem; cursor: pointer; }
.seg-radio input:checked + span { background: #fff; box-shadow: var(--shadow-xs); }

.theme-preview { --tp-brand: #0e5a49; --tp-cta: #0e5a49; --tp-accent: #e9a23b; --tp-ink: #15201c; --tp-soft: #f7f6f2; --tp-r: 14px; --tp-btn: 999px; --tp-font: 'Plus Jakarta Sans';
  font-family: var(--tp-font), sans-serif; color: var(--tp-ink); background: var(--tp-soft); border-radius: 14px; padding: 14px; display: grid; gap: 12px; border: 1px solid var(--line); }
.tp-header { display: flex; align-items: center; gap: 10px; background: #fff; padding: 10px 12px; border-radius: 10px; font-size: .8rem; font-weight: 600; }
.tp-logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .95rem; margin-right: auto; }
.tp-mark { width: 18px; height: 18px; border-radius: 5px; background: var(--tp-brand); }
.tp-btn-outline { border: 1px solid var(--tp-ink); padding: 5px 10px; border-radius: var(--tp-btn); }
.tp-card { background: #fff; padding: 10px; border-radius: var(--tp-r); }
.tp-photo { position: relative; height: 110px; border-radius: calc(var(--tp-r) * .8); background: linear-gradient(135deg, #cfd6cf, #e9ece6); margin-bottom: 8px; }
.tp-badge { position: absolute; top: 8px; left: 8px; background: var(--tp-brand); color: #fff; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.tp-heart { position: absolute; top: 6px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #e0484d; font-size: .8rem; }
.tp-meta { font-size: .72rem; color: #6b7571; font-weight: 600; }
.tp-title { font-weight: 700; font-size: .9rem; line-height: 1.3; margin: 2px 0 4px; }
.tp-price { font-size: .78rem; color: #6b7571; }
.tp-price strong { color: var(--tp-ink); font-size: .95rem; }
.tp-tag { display: inline-block; margin-top: 6px; font-size: .64rem; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--tp-brand) 10%, #fff); color: var(--tp-brand); }
.tp-box { background: #fff; padding: 12px; border-radius: var(--tp-r); display: grid; gap: 8px; }
.tp-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d9dbd5; border-radius: calc(var(--tp-r) * .7); font-size: .7rem; color: #6b7571; }
.tp-dates span { padding: 7px 9px; }
.tp-dates span + span { border-left: 1px solid #d9dbd5; }
.tp-dates b { color: var(--tp-ink); font-size: .82rem; }
.tp-cta, .tp-dark, .tp-accent { display: block; text-align: center; padding: 10px; border-radius: var(--tp-btn); font-weight: 700; font-size: .84rem; }
.tp-cta { background: var(--tp-cta); color: var(--tp-cta-ink, #fff); }
.tp-dark { background: var(--tp-ink); color: #fff; }
.tp-accent { background: var(--tp-accent); color: var(--tp-accent-ink, #2b1d05); padding: 6px; font-size: .74rem; }

@media (max-width: 900px) { .color-row { grid-template-columns: 48px 1fr; } .color-hex { grid-column: 1 / -1; } }

.video-current{display:grid;gap:10px}
.video-current video{width:100%;max-height:260px;border-radius:10px;background:#000}
.sys-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sys-checks li { display: flex; gap: 12px; align-items: flex-start; }
.sys-checks .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; flex: none; background: #e7f5ed; color: #1f7a4d; }
.sys-checks li.bad .dot { background: #fbecea; color: #c0412c; }
.sys-checks li.warn .dot { background: #fdf3e2; color: #8a5a10; }
.sys-kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 12px; margin: 0; font-size: .9rem; }
.sys-kv dt { color: #6b7571; }
.sys-kv dd { margin: 0; }
.sys-cron { display: block; padding: 10px 12px; background: #15201c; color: #e9f3ef; border-radius: 10px; font-size: .78rem; word-break: break-all; }
.todo-list { display: grid; gap: 8px; }
.todo-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line, #e7e8e4); border-radius: 12px; color: inherit; text-decoration: none; }
.todo-item:hover { border-color: var(--brand); background: #fafaf8; }
.todo-item > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.todo-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9ccc6; flex: none; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar { position: relative; }
.avatar-check { position: absolute; right: -2px; bottom: -2px; width: 15px; height: 15px; border-radius: 50%; background: #1f7a4d; color: #fff; display: grid; place-items: center; border: 2px solid #fff; }
.avatar-check .icon { width: 9px; height: 9px; stroke-width: 3.5; }
.idv-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.idv-docs a { display: block; border: 1px solid var(--line, #e7e8e4); border-radius: 10px; overflow: hidden; background: #f6f6f4; }
.idv-docs img { width: 100%; height: 220px; object-fit: contain; display: block; }
.idv-docs .pdf { height: 120px; display: grid; place-items: center; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-block; padding: 7px 12px; border: 1px solid #d9dbd5; border-radius: 999px; font-size: .85rem; font-weight: 600; background: #fff; }
.chip-check input:checked + span { background: var(--brand, #0e5a49); border-color: var(--brand, #0e5a49); color: #fff; }
.chip-check input:focus-visible + span { outline: 2px solid var(--brand, #0e5a49); outline-offset: 2px; }
.link-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line, #e7e8e4); border-radius: 10px; }
.link-row.is-current { border-color: var(--brand, #0e5a49); background: #f3f8f6; }

/* EN / RO switch */
.admin-top .lang-switch { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.admin-top .lang-switch a { font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; color: var(--muted); }
.admin-top .lang-switch a:hover { color: var(--ink); }
.admin-top .lang-switch a.is-active { background: var(--ink); color: #fff; }
.btn-del { color: var(--danger); } .btn-del:hover { background: var(--danger-50); }
.agent-bank { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; margin: 4px 0; } .agent-bank legend { font-weight: 700; font-size: .88rem; padding: 0 6px; }

/* ============================================================ status chips (reusable) */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #eef0ed; color: #4a5551; border: 1px solid #e2e4df; }
.chip svg { width: 12px; height: 12px; }
.chip-ok { background: #e4f6ec; color: #1a7a46; border-color: #c7ebd4; }
.chip-brand { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 28%, #fff); font-family: ui-monospace, Menlo, monospace; letter-spacing: .03em; }
.panel-danger { border: 1px solid #f0cccc; }
.panel-danger .panel-head h2 { color: #9a2b2b; }
.chip-warn { background: #fdf0dd; color: #9a6413; border-color: #f6e0b8; }
.chip-bad { background: #fde7e7; color: #b42626; border-color: #f6c9c9; }
.chip-mut { background: #f0f1ef; color: #76807b; }

/* ============================================================ admin notification bell + sounds popover */
.admin-notify { margin-left: auto; position: relative; }
.an-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.an-btn:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); color: var(--brand); }
.an-btn svg { width: 19px; height: 19px; }
.an-off { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #b42626; box-shadow: 0 0 0 2px #fff; }
.an-pop { position: absolute; right: 0; top: 48px; width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px -14px rgba(0,0,0,.3); padding: 14px; z-index: 60; }
.an-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.an-head strong { font-size: .95rem; }
.an-head .an-sub { font-size: .74rem; color: var(--muted); }
.an-master { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; padding: 8px 10px; background: var(--bg-soft, #f4f5f2); border-radius: 10px; margin-bottom: 10px; cursor: pointer; }
.an-rows { display: grid; gap: 8px; }
.an-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; }
.an-row .an-lbl { font-size: .85rem; }
.an-row select { font: inherit; font-size: .82rem; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.an-test { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: .7rem; color: var(--brand); }
.an-test:hover { background: color-mix(in srgb, var(--brand) 10%, #fff); }
.an-note { font-size: .72rem; color: var(--muted); margin-top: 10px; line-height: 1.4; }

/* ============================================================ admin live chat inbox */
.ca-online { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); margin-left: 10px; vertical-align: middle; }
.ca-online i { width: 8px; height: 8px; border-radius: 50%; background: #c7ccd1; }
.ca-online.is-on { color: #1a7a46; } .ca-online.is-on i { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.chat-admin { display: grid; grid-template-columns: 320px 1fr; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; height: calc(100vh - 190px); min-height: 440px; background: #fff; }
.ca-list { border-right: 1px solid var(--line); overflow-y: auto; background: var(--bg-soft, #f7f6f2); }
.ca-empty-list { padding: 24px 16px; color: var(--muted); font-size: .9rem; text-align: center; }
.ca-item { display: block; padding: 13px 15px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.ca-item:hover { background: #fff; }
.ca-item.is-active { background: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.ca-item-top { display: flex; align-items: center; gap: 8px; }
.ca-item-top strong { font-size: .92rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-unread { background: #e24b4b; color: #fff; font-size: .7rem; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; }
.ca-item-topic { font-size: .82rem; color: var(--muted); margin: 3px 0 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-item-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ca-item-meta .ca-time { margin-left: auto; font-size: .72rem; color: var(--muted); }
.ca-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ca-head, .ca-context, .ca-intel, .ca-quick, .ca-reply { flex: none; }
.ca-intel { max-height: 30vh; overflow-y: auto; }
.ca-head-actions { display: flex; align-items: center; gap: 8px; }
/* list toolbar + per-conversation select */
.ca-listbar { display: flex; align-items: center; gap: 12px; padding: 8px 2px 12px; }
.ca-listbar .msg-count { font-size: .82rem; color: var(--muted); }
.ca-listbar [data-cad-del] { margin-left: auto; }
.ca-item-wrap { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.ca-item-wrap .ca-item { flex: 1; border-bottom: 0; }
.ca-pick { display: flex; align-items: flex-start; padding: 14px 6px 0 12px; cursor: pointer; }
.ca-dot { width: 9px; height: 9px; border-radius: 50%; background: #22a06b; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, #22a06b 22%, transparent); animation: ca-pulse 1.8s ease-in-out infinite; }
@keyframes ca-pulse { 0%,100% { box-shadow: 0 0 0 3px color-mix(in srgb, #22a06b 22%, transparent); } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, #22a06b 6%, transparent); } }
.ca-browsing { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #22a06b; background: color-mix(in srgb, #22a06b 12%, #fff); padding: 1px 6px; border-radius: 999px; }
.ci-block { color: var(--danger) !important; border-color: color-mix(in srgb, var(--danger) 30%, var(--line)) !important; }
/* full screen */
.chat-admin.is-full { position: fixed; inset: 0; z-index: 2000; height: 100vh; min-height: 0; border-radius: 0; border: 0; }
body.ca-full-open { overflow: hidden; }
.ca-empty { margin: auto; text-align: center; color: var(--muted); padding: 40px; }
.ca-empty .ce-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--bg-soft, #f4f5f2); margin-bottom: 14px; }
.ca-empty .ce-ic svg { width: 28px; height: 28px; color: var(--brand); }
.ca-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ca-head h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.ca-email { font-size: .82rem; color: var(--brand); }
.ca-intel { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 20px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft, #f7f6f2); }
.ci-item span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.ci-item strong { font-size: .88rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ci-check { font-size: .72rem; font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff); border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line)); border-radius: 999px; padding: 2px 9px; cursor: pointer; }
.ca-thread { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: color-mix(in srgb, var(--brand) 2%, #fff); }
.cam { max-width: 72%; display: flex; flex-direction: column; gap: 3px; }
.cam-out { align-self: flex-end; align-items: flex-end; }
.cam-in, .cam-bot { align-self: flex-start; }
.cam-t { padding: 9px 13px; border-radius: 14px; font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.cam-in .cam-t { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.cam-bot .cam-t { background: #eef1ef; color: #4a5551; border-bottom-left-radius: 5px; font-style: italic; }
.cam-out .cam-t { background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.cam-file { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 11px; background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--brand); max-width: 260px; }
.cam-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cam-at { font-size: .68rem; color: var(--muted); }
.ca-reply { display: flex; align-items: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.ca-reply .ci-clip { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--muted); border: 1px solid var(--line); }
.ca-reply .ci-clip:hover { color: var(--brand); }
.ca-reply .ci-clip svg { width: 18px; height: 18px; }
.ca-reply textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; font: inherit; font-size: .9rem; max-height: 120px; line-height: 1.4; }
.ca-reply textarea:focus { outline: none; border-color: var(--brand); }
.ca-reply .ci-send { flex: none; width: 42px; height: 42px; border-radius: 11px; border: 0; cursor: pointer; background: var(--brand); color: #fff; display: grid; place-items: center; }
.ca-reply .ci-send svg { width: 19px; height: 19px; }
.ca-filerow { display: flex; align-items: center; gap: 8px; padding: 8px 18px; background: color-mix(in srgb, var(--brand) 6%, #fff); border-top: 1px solid var(--line); font-size: .82rem; }
.ca-filerow span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ca-filerow button { background: transparent; border: 0; cursor: pointer; color: var(--muted); }
@media (max-width: 860px) {
  .chat-admin { grid-template-columns: 1fr; height: auto; }
  .ca-list { max-height: 220px; }
  .ca-main { min-height: 400px; }
  .admin-notify .an-pop { right: -60px; }
}

/* chat: status toggle, visitor context, quick replies */
.ca-status-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.ca-status-toggle button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; background: #fff; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); }
.ca-status-toggle button + button { border-left: 1px solid var(--line); }
.ca-status-toggle button .dot { width: 8px; height: 8px; border-radius: 50%; background: #c7ccd1; }
.ca-status-toggle button .dot.on { background: #4ade80; }
.ca-status-toggle button.is-active { color: var(--ink); background: var(--bg-soft, #f4f5f2); }
.ca-status-toggle button[data-status="away"].is-active { color: #9a6413; }
.ca-context { display: grid; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.cx-item { display: flex; gap: 11px; align-items: flex-start; }
.cx-item .cx-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-soft, #f4f5f2); color: var(--muted); }
.cx-item.is-user .cx-ic { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); }
.cx-item.is-prop .cx-ic { background: #fff4e3; color: #9a6413; }
.cx-item .cx-ic svg { width: 17px; height: 17px; }
.cx-l { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.cx-item strong { font-size: .9rem; font-weight: 600; }
.cx-item strong a { color: var(--brand); }
.cx-sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.cx-ded strong { color: #9a6413; }
.ca-quick { display: flex; gap: 7px; flex-wrap: wrap; padding: 10px 16px 0; }
.ca-qr { font: inherit; font-size: .8rem; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-qr:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); }
.cx-code { font-family: ui-monospace, Menlo, monospace; font-weight: 800; color: var(--brand); letter-spacing: .02em; }
.code-chip { display: inline-block; font-family: ui-monospace, Menlo, monospace; font-weight: 800; font-size: .82em; letter-spacing: .03em; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, #fff); padding: 1px 7px; border-radius: 6px; text-decoration: none; vertical-align: middle; }
.code-chip:hover { background: color-mix(in srgb, var(--brand) 20%, #fff); }
.rv-ava { flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; }
.rv-ava img { width: 100%; height: 100%; object-fit: cover; }
.rv-photo-btn { position: relative; white-space: nowrap; }
.check-sm { font-size: .78rem; display: inline-flex; align-items: center; gap: 4px; }

/* messages bulk-delete toolbar */
.msg-toolbar { position: sticky; top: 64px; z-index: 20; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm, 0 2px 8px -4px rgba(0,0,0,.1)); }
.msg-selectall { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.msg-count { font-size: .82rem; color: var(--brand); font-weight: 700; }
.msg-tb-actions { margin-left: auto; display: flex; gap: 8px; }
.msg-item .panel-head { display: flex; align-items: flex-start; gap: 12px; }
.msg-check { padding-top: 3px; }
.msg-check input, .msg-selectall input, .msg-all input { width: 17px; height: 17px; cursor: pointer; }

/* template editor: token reference */
.tok-help { border: 1px solid var(--line, #e5e2db); border-radius: 10px; padding: 12px 14px; background: #fafaf8; }
.tok-help summary { cursor: pointer; }
.tok-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tok { font-family: ui-monospace, monospace; font-size: .82rem; background: #eef1ee; color: #1f5a3f; padding: 3px 7px; border-radius: 6px; }

/* users list: quick delete button turns red on hover */
.table .btn-ghost.btn-icon:hover { color: #c0392b; background: #fdecea; }

/* Enable-phone-alerts button in the admin sidebar */
.side-alerts{display:flex;align-items:center;gap:10px;width:100%;margin:10px 0 4px;padding:10px 12px;border:1px solid var(--brand,#0e5a49);background:transparent;color:var(--brand,#0e5a49);border-radius:10px;font:inherit;font-weight:600;font-size:.86rem;cursor:pointer;transition:background .15s,color .15s}
.side-alerts:hover{background:var(--brand,#0e5a49);color:#fff}
.side-alerts.is-on{background:var(--brand,#0e5a49);color:#fff;cursor:default}
.side-alerts.is-on::after{content:"✓";margin-left:auto;font-weight:700}
.side-alerts svg{width:18px;height:18px;flex:0 0 auto}

/* Property row selection */
.psel-col{width:34px;text-align:center}
.psel-col input,[data-sel-all]{width:16px;height:16px;cursor:pointer}
