/* MICE DESK dashboard — light, neutral, ElevenLabs-like */
:root {
  --bg: #ffffff;
  --bg-side: #fafafa;
  --bg-soft: #f5f5f5;
  --bg-hover: #f0f0f0;
  --card: #ffffff;
  --border: #e8e8e8;
  --border-2: #d4d4d4;
  --text: #111111;
  --text-2: #4b4b4b;
  --text-3: #7a7a7a;
  --accent: #111111;
  --ok-bg: #e7f6ec; --ok: #187a3b;
  --warn-bg: #fff4e5; --warn: #b45309;
  --err-bg: #fdecec; --err: #b91c1c;
  --info-bg: #eaf1fe; --info: #1d4ed8;
  --violet-bg: #f1ecfe; --violet: #6d28d9;
  --radius: 12px; --radius-sm: 8px; --pill: 999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --side-w: 236px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 20px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 24px; line-height: 32px; }
h2 { font-size: 16px; line-height: 24px; }
h3 { font-size: 14px; line-height: 20px; }
p { margin: 0; }
.muted { color: var(--text-3); }
.small { font-size: 12px; line-height: 16px; }
.mono { font-family: var(--mono); font-size: 12px; }
.hidden { display: none !important; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strong { font-weight: 500; }
code, pre { font-family: var(--mono); font-size: 12px; }
pre { margin: 0; white-space: pre-wrap; word-break: break-word; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px; max-height: 420px; overflow: auto; }
i[data-icon] { display: inline-flex; width: 16px; height: 16px; flex: none; }
i[data-icon] svg { width: 16px; height: 16px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--bg-side); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 14px 12px; gap: 8px; }
.side__brand { display: flex; flex-direction: column; gap: 10px; padding: 4px 6px 10px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--text); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.ws { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; font: inherit; font-size: 13px; font-weight: 500; color: var(--text); cursor: default; }
.ws__dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #f97316, #db2777); }
.ws svg { margin-left: auto; color: var(--text-3); }
.ws { cursor: pointer; }
.ws:hover { border-color: var(--border-2); }
.side__brand { position: relative; }
.menu { position: absolute; left: 6px; right: 6px; top: 100%; z-index: 30; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.menu__title { font-size: 11px; color: var(--text-3); padding: 6px 8px 4px; }
.menu__item { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border: 0; background: none; border-radius: 6px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; text-align: left; width: 100%; text-decoration: none; }
.menu__item:hover { background: var(--bg-hover); }
.menu__item.is-active { font-weight: 600; }
.menu__item i { margin-left: auto; color: var(--text-3); }
.menu__item--action i { margin-left: 0; }
.menu__sep { height: 1px; background: var(--border); margin: 4px 0; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow: auto; flex: 1; }
.nav__group { font-size: 11px; font-weight: 500; color: var(--text-3); padding: 14px 10px 4px; text-transform: none; letter-spacing: .01em; }
.nav__item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.nav__item:hover { background: var(--bg-hover); color: var(--text); }
.nav__item.is-active { background: #fff; color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.nav__item i { color: var(--text-3); }
.nav__item.is-active i { color: var(--text); }
.nav__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--err-bg); color: var(--err); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.side__foot { border-top: 1px solid var(--border); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 28px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top__menu { display: none; border: 0; background: none; padding: 4px; cursor: pointer; color: var(--text-2); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.crumbs span:last-child { max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.crumbs i { color: var(--text-3); }
.crumbs .sep { color: var(--border-2); }
.quick { flex: 1 1 320px; max-width: 640px; min-width: 220px; margin: 0 auto; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 4px 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.quick:focus-within { border-color: var(--border-2); }
.quick i { color: var(--text-3); }
.quick input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--text); }
.quick select { border: 0; background: var(--bg-soft); border-radius: 6px; height: 26px; font: inherit; font-size: 12px; color: var(--text-2); max-width: 190px; padding: 0 6px; }
.top__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.top__link { font-size: 13px; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.top__link:hover { color: var(--text); }
.iconbtn { position: relative; width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid transparent; background: none; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); cursor: pointer; }
.iconbtn:hover { background: var(--bg-hover); }
.iconbtn__dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--err); border: 1.5px solid #fff; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #111, #555); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }

.view { padding: 28px 28px 56px; max-width: 1180px; width: 100%; margin: 0 auto; min-width: 0; }

/* ---------- common ---------- */
.page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page__head p { margin-top: 4px; color: var(--text-3); }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); font: inherit; font-size: 13px; font-weight: 500; border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, opacity .12s; }
.btn:hover { background: var(--bg-soft); border-color: var(--border-2); }
.btn--primary { background: var(--text); border-color: var(--text); color: #fff; }
.btn--primary:hover { background: #333; border-color: #333; }
.btn--danger { color: var(--err); }
.btn--danger:hover { background: var(--err-bg); border-color: #f1b7b7; }
.btn--ghost { border-color: transparent; }
.btn--sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn--xs { height: 26px; padding: 0 8px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn i { width: 14px; height: 14px; }
.btn i svg { width: 14px; height: 14px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--pill); font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--bg-soft); color: var(--text-2); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill--nodot::before { display: none; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--err { background: var(--err-bg); color: var(--err); }
.pill--info { background: var(--info-bg); color: var(--info); }
.pill--violet { background: var(--violet-bg); color: var(--violet); }
.pill--xs { height: 18px; font-size: 11px; padding: 0 6px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.card--pad0 { padding: 0; overflow: hidden; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card__head h2 { font-size: 14px; }
.card__title { font-size: 12px; font-weight: 500; color: var(--text-3); margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { justify-content: space-between; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab { height: 36px; padding: 0 12px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--text); }
.tab .count { background: var(--bg-soft); border-radius: var(--pill); padding: 0 6px; font-size: 11px; color: var(--text-2); }

.table-wrap { overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 500; color: var(--text-3); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: #fff; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.is-click { cursor: pointer; }
.tbl tr.is-click:hover td { background: #fafafa; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .sub { display: block; font-size: 12px; color: var(--text-3); margin-top: 1px; }
.logo-sm { height: 16px; max-width: 90px; object-fit: contain; vertical-align: middle; }
.dotlabel { display: inline-flex; align-items: center; gap: 6px; }
.dotlabel::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #999); }

.empty { text-align: center; padding: 56px 24px; color: var(--text-3); }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.loading { display: flex; justify-content: center; padding: 64px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.banner { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; }
.banner--warn { background: var(--warn-bg); color: var(--warn); }
.banner--err { background: var(--err-bg); color: var(--err); }
.banner--info { background: var(--info-bg); color: var(--info); }
.banner--ok { background: var(--ok-bg); color: var(--ok); }
.banner ul { margin: 4px 0 0; padding-left: 18px; }

/* forms */
.form { display: grid; gap: 14px; }
.form--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .lbl { font-size: 12px; font-weight: 500; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.input, .field input[type=text], .field input[type=password], .field input[type=number], .field input[type=email], .field input[type=url], .field select, .field textarea {
  height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: 13px; color: var(--text); background: #fff; outline: 0; width: 100%; min-width: 0;
}
.field textarea { height: auto; min-height: 88px; padding: 8px 10px; resize: vertical; line-height: 18px; }
.field textarea.code { font-family: var(--mono); font-size: 12px; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--text); }
.field input[disabled] { background: var(--bg-soft); color: var(--text-3); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 10px; background: #d9d9d9; position: relative; transition: background .15s; cursor: pointer; margin: 0; flex: none; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--text); }
.switch input:checked::after { left: 16px; }
.switch input[disabled] { opacity: .4; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* home */
.greet { margin-bottom: 20px; }
.greet h1 { font-size: 26px; }
.alerts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; }
.alert { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.alert__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.alert h3 { font-size: 14px; }
.alert p { color: var(--text-3); font-size: 13px; }
.kpis { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 16px; overflow-x: auto; }
.kpi { flex: 1; min-width: 140px; padding: 16px 20px 14px; border-right: 1px solid var(--border); cursor: pointer; position: relative; }
.kpi:last-child { border-right: 0; }
.kpi__label { font-size: 12px; color: var(--text-3); margin-bottom: 4px; white-space: nowrap; }
.kpi__value { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi__sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.kpi.is-active::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 2px; background: var(--text); }
.chart { width: 100%; height: 220px; display: block; }
.chart .grid line { stroke: var(--border); stroke-width: 1; }
.chart .axis text { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart .line { fill: none; stroke: #111; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line2 { fill: none; stroke: #2563eb; stroke-width: 2; stroke-dasharray: 4 3; }
.chart .area { fill: rgba(17,17,17,.04); }
.chart .dot { fill: #fff; stroke: #111; stroke-width: 2; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-3); }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 2px; background: #111; margin-right: 6px; vertical-align: middle; }
.legend span.blue::before { background: #2563eb; }
.minilist { display: flex; flex-direction: column; }
.minilist__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13px; }
.minilist__row:first-child { border-top: 0; padding-top: 0; }
.bar { height: 6px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; flex: 1; }
.bar > span { display: block; height: 100%; background: #111; border-radius: 3px; }

/* pipeline detail */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { display: grid; grid-template-columns: 64px 18px 1fr; gap: 0 10px; font-size: 13px; }
.tl__time { color: var(--text-3); font-size: 12px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.tl__dot { position: relative; }
.tl__dot::before { content: ''; position: absolute; left: 6px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, #bbb); }
.tl__dot::after { content: ''; position: absolute; left: 9px; top: 16px; bottom: -4px; width: 1px; background: var(--border); }
.tl:last-child .tl__dot::after { display: none; }
.tl__body { padding-bottom: 12px; min-width: 0; overflow-wrap: anywhere; }
.tl__cat { font-size: 11px; color: var(--text-3); margin-right: 6px; text-transform: uppercase; letter-spacing: .04em; }
.tl__refs { margin-top: 4px; }
.tl__refs summary { font-size: 12px; color: var(--text-3); cursor: pointer; }
.action { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.action.is-off { opacity: .6; }
.action__head { display: flex; align-items: center; gap: 12px; }
.action__head h3 { flex: 1; }
.action__meta { font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.changes { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.changes td { padding: 5px 8px; border-top: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.changes td:first-child { color: var(--text-3); white-space: nowrap; width: 200px; }
.changes .from { color: var(--text-3); text-decoration: line-through; }
.changes .to { color: var(--text); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--bg-soft); font-size: 12px; color: var(--text-2); }
.chip img { height: 12px; }

/* logs */
.logs { font-size: 12.5px; }
.logs .tbl td { padding: 7px 12px; vertical-align: top; }
.logs .lvl { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lvl--info { background: #9ca3af; } .lvl--warn { background: #f59e0b; } .lvl--error { background: #dc2626; } .lvl--debug { background: #d1d5db; }
.logs details summary { cursor: pointer; color: var(--text-3); font-size: 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .input, .filters select { height: 32px; width: auto; }
.filters .input { min-width: 220px; }

/* hotels */
.vault-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.vault { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.vault__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vault__head img { height: 16px; max-width: 110px; object-fit: contain; }
.vault .field input { height: 32px; font-size: 13px; }
.vault .masked { font-family: var(--mono); font-size: 12px; color: var(--text-3); }

/* modal / toasts */
.modal { position: fixed; inset: 0; background: rgba(17,17,17,.35); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px; z-index: 50; overflow: auto; }
.modal__card { background: #fff; border-radius: 14px; width: 100%; max-width: 640px; padding: 22px 24px; box-shadow: var(--shadow); }
.modal__card.wide { max-width: 900px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: #111; color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; box-shadow: var(--shadow); max-width: 420px; animation: fade .2s ease; }
.toast--err { background: var(--err); }
.toast--ok { background: var(--ok); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- request detail (portal request renderer) ---------- */
.request { display: flex; flex-direction: column; gap: 16px; }
.request .card__title { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 14px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 4px -4px; }
.section-head h2 { font-size: 16px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.head { display: flex; flex-direction: column; gap: 18px; }
.head__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head__portal { display: flex; align-items: center; gap: 14px; }
.head__portal img { height: 26px; max-width: 180px; object-fit: contain; }
.head__portal .divider { width: 1px; height: 22px; background: var(--border); }
.head__client-logo { height: 24px; max-width: 150px; object-fit: contain; }
.head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.head__title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.head__main { min-width: 0; flex: 1 1 400px; }
.head__kicker { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.head__title h1 { font-size: 22px; line-height: 30px; overflow-wrap: break-word; }
.head__sub { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.head__sentto strong { font-weight: 500; color: var(--text); }
.deadline { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; padding: 12px 16px; background: var(--bg-soft); border-radius: var(--radius); min-width: 200px; }
.deadline__label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.deadline__big { font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
.stat__value { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: break-word; }
.stat__label { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.fields { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 14px 20px; }
.fields .field { gap: 2px; }
.field__label { font-size: 12px; color: var(--text-3); }
.field__value { font-size: 13.5px; color: var(--text); overflow-wrap: break-word; white-space: pre-line; }
.field__value a { text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 2px; }
.prose { white-space: pre-wrap; font-size: 13.5px; line-height: 22px; color: var(--text-2); overflow-wrap: break-word; }
.prose a, .list a { text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 2px; }
.day { padding: 0; overflow: hidden; }
.day__head { display: flex; align-items: center; gap: 14px; padding: 12px 20px; background: var(--bg-soft); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.day__date { display: flex; align-items: baseline; gap: 8px; }
.day__weekday { font-weight: 600; }
.day__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.day__meta .pill { background: #fff; border: 1px solid var(--border); }
.day__body { padding: 6px 20px 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 36px; }
.group { padding: 10px 0; }
.group__title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 4px; }
.group__title .count { background: var(--bg-soft); border-radius: var(--pill); padding: 0 6px; color: var(--text-2); }
.svc { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.svc:first-of-type { border-top: 0; }
.svc__qty { font-weight: 600; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.svc__name { font-weight: 500; font-size: 13px; overflow-wrap: break-word; }
.svc__pkg { margin-left: 6px; font-weight: 400; color: var(--text-3); }
.svc__details { grid-column: 2; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; color: var(--text-2); }
.svc__details span b { font-weight: 500; color: var(--text-3); margin-right: 2px; }
.svc__notes { grid-column: 2; font-size: 12px; color: var(--text-2); font-style: italic; white-space: pre-line; }
.day__notes { grid-column: 1 / -1; padding: 10px 0 2px; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--border); }
.day__notes ul { margin: 0; padding-left: 18px; }
.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.list li { padding: 9px 0; border-top: 1px solid var(--border); font-size: 13px; overflow-wrap: break-word; white-space: pre-line; }
.list li:first-child { border-top: 0; padding-top: 0; }
.list li:last-child { padding-bottom: 0; }
.qa { display: flex; justify-content: space-between; gap: 16px; }
.qa__a { font-weight: 500; white-space: nowrap; flex: none; }
.doc { display: flex; align-items: center; gap: 10px; }
.doc__type { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--bg-soft); color: var(--text-3); }
details.acc { border-top: 1px solid var(--border); }
details.acc:first-of-type { border-top: 0; }
details.acc summary { cursor: pointer; padding: 10px 0; font-weight: 500; font-size: 13.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: '+'; color: var(--text-3); font-weight: 400; font-size: 16px; }
details.acc[open] summary::after { content: '–'; }
details.acc .prose { padding: 0 0 14px; font-size: 13px; }
.footer-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-3); font-size: 12px; padding: 4px 4px 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .quick select { display: none; }
  .top__link { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); transform: translateX(-100%); transition: transform .18s ease; z-index: 40; box-shadow: var(--shadow); }
  .side.is-open { transform: none; }
  .top__menu { display: inline-flex; }
  .top { padding: 0 16px; gap: 10px; }
  .crumbs { display: none; }
  .view { padding: 16px 16px 48px; }
  .kpi { min-width: 120px; padding: 12px 14px; }
  .kpi__value { font-size: 18px; }
  .fields { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .deadline { align-items: flex-start; text-align: left; width: 100%; }
}
