/*
 * AI Bistro — look of the application (app.html), v0.3.3: the style of the web of the bistro (black, gold, cream,
 * Switzer, tracked capital labels, gold hairlines), extended and more premium; light and dark theme, the hub
 * after login and the view of Orbit.
 * ------------------------------------------------------------------
 * The last layer over css/shell.css: it only redefines tokens and the shape of components, the structure stays.
 * The theme is on <html data-theme="light|dark"> (js/shell/theme-boot.js before the first paint,
 * js/shell/theme.js switches it). --accent is the gold of the brand (fills, lines), --accent-text the gold
 * readable as text on the ground of the theme. Orbit has the gold gradient tile with an ink mark (--orbit-*).
 *
 * Contrast (AA): dark --text-muted #a19c92 on #0a0a0a 7.3:1, --accent-text #edba37 on #0a0a0a 11:1, ink on gold
 * 11:1. Light --text-muted #6b6860 on #fbf9f4 5.2:1, --accent-text #8a6410 on #fbf9f4 5.3:1.
 */

/* ---------- tokens ---------- */
html[data-theme] body.shell-body {
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 18px;
  --radius-xl: 24px;
  --font-sans: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shell-side-w: 252px;
  --ink: #0a0a0a;
  --cream: #f9f7f2;
  --accent: #edba37;
  --accent-deep: #c9961f;
  --gold-grad: linear-gradient(135deg, #f3cd62 0%, #edba37 45%, #d6a128 100%);
  --gold-grad-hover: linear-gradient(135deg, #f6d677 0%, #f0c34c 45%, #dcaa33 100%);
  --gold-shadow: 0 8px 22px rgba(237, 186, 55, 0.22);
  --label-caps: 600 11px/1.2 var(--font-sans);
  --orbit-grad: var(--gold-grad);
  --orbit-fg: #0a0a0a;
  --orbit-soft: var(--accent-soft);
  --orbit-line: var(--accent-line);
}
html[data-theme="dark"] body.shell-body {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-grad: radial-gradient(900px 520px at 88% -8%, rgba(237, 186, 55, 0.09) 0%, rgba(237, 186, 55, 0) 62%),
    radial-gradient(700px 420px at 0% 100%, rgba(237, 186, 55, 0.04) 0%, rgba(237, 186, 55, 0) 60%), #0a0a0a;
  --surface: #0f0f0e;
  --surface-1: #131312;
  --surface-2: #1c1b19;
  --surface-3: #262420;
  --card-grad: linear-gradient(180deg, #161514 0%, #121211 100%);
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.15);
  --line-gold: rgba(237, 186, 55, 0.22);
  --text-strong: #f9f7f2;
  --text: #d9d5cb;
  --text-muted: #a19c92;
  --placeholder: #77736b;
  --accent-text: #edba37;
  --accent-soft: rgba(237, 186, 55, 0.10);
  --accent-line: rgba(237, 186, 55, 0.38);
  --ok: #7bd2ab; --ok-bg: rgba(52, 168, 115, 0.14);
  --warn: #f1a878; --warn-bg: rgba(241, 168, 120, 0.12);
  --bad: #f29b91; --bad-bg: rgba(242, 155, 145, 0.12);
  --info: #9dbdec; --info-bg: rgba(157, 189, 236, 0.12);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.035) inset, 0 16px 40px rgba(0, 0, 0, 0.35);
  --nav-active-bg: linear-gradient(90deg, rgba(237, 186, 55, 0.18) 0%, rgba(237, 186, 55, 0.03) 100%);
  --nav-active-fg: #f9f7f2;
  --scrim: rgba(0, 0, 0, 0.65);
}
html[data-theme="light"] body.shell-body {
  color-scheme: light;
  --bg: #f6f3ec;
  --bg-grad: radial-gradient(900px 520px at 88% -8%, rgba(237, 186, 55, 0.13) 0%, rgba(237, 186, 55, 0) 62%), linear-gradient(180deg, #f9f7f2 0%, #f3efe6 100%);
  --surface: #fbf9f4;
  --surface-1: #fffdf9;
  --surface-2: #f1ede4;
  --surface-3: #e8e3d7;
  --card-grad: linear-gradient(180deg, #fffefb 0%, #fdfbf6 100%);
  --line: rgba(40, 32, 12, 0.09);
  --line-strong: rgba(40, 32, 12, 0.18);
  --line-gold: rgba(201, 150, 31, 0.32);
  --text-strong: #0a0a0a;
  --text: #2b2a26;
  --text-muted: #6b6860;
  --placeholder: #9a968c;
  --accent-text: #8a6410;
  --accent-soft: rgba(237, 186, 55, 0.16);
  --accent-line: rgba(201, 150, 31, 0.45);
  --ok: #157a52; --ok-bg: #e4f3ea;
  --warn: #a8501b; --warn-bg: #fbeee2;
  --bad: #b3261e; --bad-bg: #fbe9e7;
  --info: #2f5c99; --info-bg: #e8eef8;
  --shadow-1: 0 1px 2px rgba(40, 32, 12, 0.05), 0 8px 22px rgba(40, 32, 12, 0.06);
  --shadow-2: 0 2px 6px rgba(40, 32, 12, 0.06), 0 28px 70px rgba(40, 32, 12, 0.16);
  --shadow-card: 0 1px 2px rgba(40, 32, 12, 0.04), 0 14px 36px rgba(40, 32, 12, 0.07);
  --nav-active-bg: #0a0a0a;
  --nav-active-fg: #f9f7f2;
  --scrim: rgba(10, 10, 10, 0.4);
}
/* the old gold tokens of css/shell.css keep their meaning */
html[data-theme] body.shell-body {
  --gold: var(--accent);
  --gold-light: var(--accent);
  --gold-dim: var(--accent-soft);
  --on-gold: var(--ink);
  --focus-ring: 0 0 0 3px var(--accent-line);
  --toast-info: var(--info);
  --toast-success: var(--ok);
  --toast-warning: var(--warn);
  --toast-danger: var(--bad);
  background: var(--bg-grad);
  background-color: var(--bg);
  background-attachment: fixed;
  scrollbar-color: var(--line-strong) transparent;
  font-family: var(--font-sans);
}
.shell-body ::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
.shell-body ::-webkit-scrollbar-track { background: transparent; }
.shell-body ::selection { background: var(--sys-blue, #0a84ff); color: #fff; }
.shell-body a { color: var(--accent-text); }
.shell-body h1, .shell-body h2, .shell-body h3 { letter-spacing: -0.02em; }
.shell-body :focus-visible,
.shell-body .btn:focus-visible, .shell-body .chip:focus-visible, .shell-body .tab:focus-visible, .shell-body .seg button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none;
}

/* ---------- buttons, inputs, badges ---------- */
.shell-body .btn, .shell-body .btn--small {
  border-radius: var(--radius-s); border: 1px solid var(--line-strong); background: var(--surface-1); color: var(--text-strong);
  font-weight: 550; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.shell-body .btn:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--text-strong); }
.shell-body .btn--primary {
  background: var(--gold-grad); border-color: transparent; color: var(--ink); font-weight: 650;
  box-shadow: var(--gold-shadow);
}
.shell-body .btn--primary:hover { background: var(--gold-grad-hover); color: var(--ink); border-color: transparent; box-shadow: 0 10px 26px rgba(237, 186, 55, 0.3); }
.shell-body .btn--primary:disabled:hover { background: var(--gold-grad); }
.shell-body .btn--danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: transparent; }
.shell-body .btn--danger:hover { background: var(--bad-bg); color: var(--bad); }
.shell-body .btn--ghost { background: transparent; border-color: transparent; box-shadow: none; }
.shell-body .input, .shell-body .select, .shell-body .textarea {
  border-radius: var(--radius-s); background: var(--surface-1); border: 1px solid var(--line-strong);
}
html[data-theme="dark"] .shell-body .input, html[data-theme="dark"] .shell-body .select, html[data-theme="dark"] .shell-body .textarea { background: var(--surface-2); }
.shell-body .input:focus, .shell-body .select:focus, .shell-body .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.shell-body .day-input { color-scheme: inherit; }
.shell-body .badge { border-radius: 99px; padding: 2px 9px; }
.shell-body .badge--gold { background: var(--accent-soft); color: var(--accent-text); }
.shell-body .phase { border-radius: 99px; }
.shell-body .chip { border-radius: 99px; border: 1px solid var(--line); background: var(--surface-1); color: var(--text); }
.shell-body .chip:hover { border-color: var(--line-strong); color: var(--text-strong); }
.shell-body .chip[aria-pressed="true"] { background: var(--nav-active-bg); border-color: var(--accent-line); color: var(--nav-active-fg); }
.shell-body .seg { border-radius: var(--radius-m); background: var(--surface-1); border: 1px solid var(--line); padding: 4px; box-shadow: var(--shadow-1); gap: 2px; }
.shell-body .seg button { border-radius: var(--radius-s); color: var(--text-muted); font-weight: 550; }
.shell-body .seg button:hover { color: var(--text-strong); }
/* every switch of the app of the business is neutral (Štěpán 14. 11. 2026, as the tabs of Finance): grey, not the gold of the brand */
.shell-body .seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--text-strong) 12%, transparent); color: var(--text-strong); box-shadow: none; }
.shell-body .check input { accent-color: var(--accent); }
.shell-body .note { border-radius: var(--radius-m); border-left: 0; background: var(--accent-soft); color: var(--text); }
.shell-body .note--warn { background: var(--warn-bg); color: var(--warn); }
.shell-body .note--bad { background: var(--bad-bg); color: var(--bad); }
.shell-body .note--ok { background: var(--ok-bg); color: var(--ok); }
.shell-body .token-box, .shell-body .picker { border-radius: var(--radius-s); }
.shell-body .image-field img { border-radius: var(--radius-s); }
.shell-body .image-field input[type="file"]::file-selector-button { border-radius: var(--radius-s); background: var(--surface-1); }

/* ---------- surfaces: cards, KPI, tables, lists ---------- */
.shell-body .card { background: var(--card-grad); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-card); }
.shell-body .card .card { border-radius: 0; box-shadow: none; }
body.shell-body[data-module="denik"] .content > .card,
body.shell-body[data-module="prodej"] .content > .card,
body.shell-body[data-module="nabidka"] .stack > .card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; box-shadow: var(--shadow-card); }
body.shell-body[data-module="nabidka"] .stack > .card + .card { border-top: 1px solid var(--line); padding-top: 24px; }
.shell-body .kpis { gap: 12px; border: 0; }
.shell-body .kpi { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-1); padding: 16px 18px; }
.shell-body .kpi:last-child { border: 1px solid var(--line); }
.shell-body .tbl th { border-bottom: 1px solid var(--line); color: var(--text-muted); }
.shell-body .tbl td { border-bottom: 1px solid var(--line); }
.shell-body .tbl tbody tr:hover { background: var(--surface-2); }
.shell-body .bar-track { border-radius: 99px; }
.shell-body .bar-fill { background: var(--accent); border-radius: 99px; }
.shell-body .intg-list { gap: 12px; border: 0; }
.shell-body .intg { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px 22px; box-shadow: var(--shadow-1); }
.shell-body .type-card { border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface-1); box-shadow: var(--shadow-1); }
.shell-body .type-card:hover { border-color: var(--accent-line); background: var(--surface-1); transform: translateY(-1px); }
.shell-body .type-cat { color: var(--text-muted); }
.shell-body .empty { background: var(--card-grad); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 32px; max-width: none; box-shadow: var(--shadow-card); }
.shell-body .loading-state__lines span { border-radius: 99px; }
.shell-body .sev[data-s="ai"] { background: var(--accent); }
body.shell-body[data-module="nastaveni"] .content > div > .stack > .btn-row { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }

/* ---------- shell: side menu and top ---------- */
.shell-body .side { background: var(--surface); border-right: 1px solid var(--line); gap: 20px; }
html[data-theme="light"] .shell-body .side { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(16px); }
.shell-body .brand { display: flex; align-items: center; gap: 14px; padding: 0 6px 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.shell-body .brand > div { min-width: 0; flex: 1; display: grid; gap: 2px; }
.shell-body .brand-tile { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; padding: 8px; background: #0a0a0a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(237, 186, 55, 0.35); }
.shell-body .brand-tile img, .shell-body .brand-tile svg { width: 100%; height: 100%; object-fit: contain; }
/* the tile is the drawn icon of the app itself (js/shell/ui.js appMark), the same as in the dock */
.shell-body .brand-tile:has(> svg.app-mark), .shell-body .chrome .brand-tile:has(> svg.app-mark) { padding: 0; background: none; border: 0; box-shadow: none; overflow: visible; }
.shell-body .brand b { font-size: 18px; line-height: 24px; font-weight: 750; letter-spacing: -0.02em; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell-body .dot--idle { background: var(--text-muted); }
.shell-body .brand-state .dot { display: inline-block; width: 8px; height: 8px; margin: 0 7px 0 0; }
.shell-body .brand-state { display: inline-flex; align-items: center; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.shell-body .group-label { font: var(--label-caps); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-text); padding: 0 12px 8px; }
.shell-body .nav-item { border-radius: var(--radius-s); padding: 9px 12px; color: var(--text); font-weight: 500; }
.shell-body .nav-item svg { color: var(--text-muted); }
.shell-body .nav-item:hover { background: var(--surface-2); color: var(--text-strong); }
.shell-body .nav-item:hover svg { color: var(--text-strong); }
/* the same soft gradient as the menu of HRM, in the gold of the bistro; no outline (Štěpán 13. 11. 2026) */
.shell-body .nav-item[aria-current="page"] { background: var(--nav-active-bg); color: var(--nav-active-fg); font-weight: 600; }
.shell-body .nav-item[aria-current="page"] svg { color: var(--accent); }
.shell-body .nav-item[aria-current="page"]::before { display: none; }
.shell-body .nav-item[aria-disabled="true"] { color: var(--text-muted); }
.shell-body .nav-item[aria-disabled="true"]:hover { background: transparent; }
.shell-body .nav-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.shell-body .nav-item .phase { border: 1px solid var(--line); color: var(--text-muted); padding: 2px 6px; font-family: var(--font-sans); }
.shell-body .side-foot { border-top: 1px solid var(--line); }

.shell-body .top { background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.shell-body .crumb { font: var(--label-caps); letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent-text); }
.shell-body .title h1 { font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -0.03em; }
.shell-body .crumb { font-size: 10px; line-height: 14px; letter-spacing: 0.22em; }
.shell-body .tools { gap: 12px; }
.shell-body .ticker { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 8px 14px; box-shadow: var(--shadow-1); min-height: 44px; }
.shell-body .ticker:hover { border-color: var(--line-strong); }
.shell-body .clock { color: var(--text-muted); }
.shell-body .orbit-btn {
  border-radius: 99px; border: 1px solid var(--accent-line); color: #f9f7f2; background: #0a0a0a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); padding: 0; width: 44px; height: 44px; min-height: 44px;
}
.shell-body .orbit-btn svg { color: var(--accent); }
.shell-body .orbit-btn:hover { color: #f9f7f2; background: #1a1916; border-color: var(--accent); }
.shell-body .user-btn { border-radius: 99px; padding: 0; background: transparent; border: 0; }
.shell-body .user-btn::before {
  content: attr(data-initials); display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700;
  background: var(--gold-grad); color: var(--ink);
}
.shell-body .user-btn:hover { background: transparent; }
.shell-body .tabs { gap: 6px; border-bottom: 0; }
.shell-body .tab { border: 0; border-radius: 99px; padding: 10px 16px; min-height: 44px; color: var(--text-muted); font-weight: 550; }
.shell-body .tab:hover { color: var(--text-strong); background: var(--surface-2); }
.shell-body .tab[aria-selected="true"] { background: var(--nav-active-bg); color: var(--nav-active-fg); box-shadow: inset 0 0 0 1px var(--line-gold); }
.shell-body .connection-note { border-top: 0; }

/* the hall of the Přehled on a soft card */
.shell-body .hall-hero__stage { border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface-1); box-shadow: var(--shadow-card); overflow: hidden; }
html[data-theme="dark"] .shell-body .hall-hero__stage { background: radial-gradient(900px 500px at 50% 40%, #1b1a17 0%, #0f0f0e 75%); }
html[data-theme="light"] .shell-body .hall-hero__stage { background: radial-gradient(900px 500px at 50% 40%, #fffdf9 0%, #efe9dc 85%); }
.shell-body .sal-wrap { border-radius: var(--radius-l); overflow: hidden; }

/* ---------- dialogs, toasts, account menu ---------- */
.shell-body dialog.dlg { border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface-1); box-shadow: var(--shadow-2); }
.shell-body dialog.dlg::backdrop { background: var(--scrim); backdrop-filter: blur(4px); }
.shell-body .toast { border-radius: var(--radius-m); background: var(--surface-1); border: 1px solid var(--line); border-left: 3px solid var(--toast-info); box-shadow: var(--shadow-2); }
.shell-body .toast--success { border-left-color: var(--toast-success); }
.shell-body .toast--warning { border-left-color: var(--toast-warning); }
.shell-body .toast--danger { border-left-color: var(--toast-danger); }
.shell-body .menu-pop { border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface-1); box-shadow: var(--shadow-2); padding: 8px; left: 12px; right: 12px; top: calc(54px + env(safe-area-inset-top)); min-width: 0; max-height: calc(100dvh - 80px); overflow-y: auto; }
.shell-body .menu-pop button, .shell-body .menu-pop a { border-radius: var(--radius-s); padding: 9px 12px; }
.shell-body .menu-pop button:hover, .shell-body .menu-pop a:hover { background: var(--surface-2); color: var(--text-strong); }
.shell-body .menu-pop .menu-theme { display: grid; gap: 8px; padding: 10px 12px; border-block: 1px solid var(--line); margin: 6px 0; font-size: 13px; }
.shell-body .menu-pop .menu-theme .seg { box-shadow: none; }
.shell-body .menu-pop .menu-theme .seg button { padding: 7px 10px; font-size: 13px; }

/* ---------- login and wizard ---------- */
.shell-body .gate { background: transparent; }
.shell-body .gate-card, .shell-body .wizard { border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface-1); box-shadow: var(--shadow-2); overflow: hidden; }
.shell-body .gate-card { padding: 40px 36px 32px; }
.shell-body .gate-brand img, .shell-body .gate-brand svg { border-radius: 14px; }
.shell-body .gate-card .btn--primary { border-radius: var(--radius-m); min-height: 48px; }
.shell-body .wizard-steps { background: var(--surface-2); }
.shell-body .wizard-steps li { border-radius: var(--radius-s); border-left: 0; }
.shell-body .wizard-steps li[aria-current="step"] { background: var(--accent-soft); }

/* ---------- Orbit (#/orbit) ---------- */
.jv { height: 100vh; height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px; padding: 12px; }
.jv-side { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 0; padding: 4px 4px 0; }
.jv-who { display: flex; align-items: center; gap: 14px; padding: 0 4px; }
.jv-who b { display: block; font-size: 18px; color: var(--text-strong); font-weight: 650; }
.jv-status { display: inline-flex; align-items: center; font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.jv-tile { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--orbit-grad); color: var(--orbit-fg); box-shadow: 0 8px 20px rgba(237, 186, 55, 0.26); }
.jv-tile svg { width: 26px; height: 26px; }
.jv-tile--big { width: 72px; height: 72px; border-radius: 22px; }
.jv-tile--big svg { width: 38px; height: 38px; }
.jv-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; margin-left: auto; }
.jv-pill { display: inline-flex; gap: 6px; align-items: center; padding: 9px 18px; border-radius: 99px; background: var(--orbit-soft); border: 1px solid var(--orbit-line); color: var(--text-strong); font-weight: 650; font-size: 15px; }
.jv-count { color: var(--text-muted); font-weight: 500; }
.jv-list { display: none; gap: 4px; align-content: start; overflow: auto; min-height: 0; }
.jv-list-empty { font-size: 13px; line-height: 1.55; color: var(--text-muted); padding: 10px 8px; }
.jv-main { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); overflow: hidden; }
.jv-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px 16px 26px; border-bottom: 1px solid var(--line); }
.jv-title { font-size: 18px; line-height: 26px; font-weight: 650; letter-spacing: -0.01em; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.jv-thread { overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; }
.jv-welcome { margin: auto; display: grid; justify-items: center; text-align: center; gap: 12px; max-width: 560px; padding: 24px 0; }
.jv-welcome h2 { font-size: 26px; font-weight: 700; margin-top: 10px; }
.jv-welcome p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.jv-suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.jv-chip { all: unset; cursor: pointer; font-size: 14px; padding: 9px 14px; border-radius: 99px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.jv-chip:hover { border-color: var(--orbit-line); color: var(--text-strong); background: var(--orbit-soft); }
.jv-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.jv-msg { display: grid; gap: 6px; max-width: 90%; }
.jv-msg--me { align-self: flex-end; justify-items: end; }
.jv-msg--orbit { align-self: flex-start; justify-items: start; }
.jv-bubble { padding: 12px 18px; border-radius: 18px; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.jv-msg--me .jv-bubble { background: var(--orbit-grad); color: var(--orbit-fg); border-bottom-right-radius: 6px; }
.jv-msg--orbit .jv-bubble { background: var(--surface-2); color: var(--text-strong); border-bottom-left-radius: 6px; }
.jv-time { font-size: 12px; color: var(--text-muted); padding: 0 6px; font-variant-numeric: tabular-nums; }
.jv-foot { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.jv-compose { display: flex; align-items: center; gap: 6px; }
.jv-input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface-1); color: var(--text-strong); font: 400 16px/1 var(--font-sans); }
.jv-input::placeholder { color: var(--placeholder); }
.jv-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--orbit-soft); }
.jv-round { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-1); border: 1px solid var(--line-strong); color: var(--text); transition: background-color var(--dur-fast) var(--ease-standard); }
.jv-round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.jv-round:hover { background: var(--surface-2); color: var(--text-strong); }
.jv-round:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.jv-round--send { background: var(--orbit-grad); border: 0; color: var(--orbit-fg); box-shadow: var(--gold-shadow); }
.jv-round--send:hover { background: var(--gold-grad-hover); color: var(--orbit-fg); }
.jv-round--send svg { stroke-width: 1.9; }
.jv-head .jv-round, .jv-round--small { width: 44px; height: 44px; }
.jv-head .jv-round svg, .jv-round--small svg { width: 18px; height: 18px; }
.jv-list-head .jv-pill { display: none; }
@media (min-width: 821px) {
  .jv { grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: none; gap: 20px; padding: 20px; }
  .jv-side { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 18px; }
  .jv-list { display: grid; }
  .jv-list-head { margin-left: 0; }
  .jv-list-head .jv-pill { display: inline-flex; }
  .jv-tile { width: 48px; height: 48px; border-radius: 15px; }
  .jv-thread { padding: 28px; }
  .jv-msg { max-width: min(78%, 760px); }
  .jv-round { width: 52px; height: 52px; }
  .jv-input { height: 52px; padding: 0 20px; }
  .jv-compose { gap: 10px; }
  .jv-head .jv-round, .jv-round--small { width: 40px; height: 40px; }
}

/* ---------- larger screens (mobile first: the rules above are the phone) ---------- */
@media (min-width: 821px) {
  .shell-body .side { padding: 20px 14px 16px; }
  .shell-body .top { background: transparent; backdrop-filter: none; border-bottom: 0; padding: 26px 36px 0; }
  .shell-body .title h1 { font-size: 36px; line-height: 42px; letter-spacing: -0.035em; }
  .shell-body .crumb { font-size: 11px; line-height: 1.2; letter-spacing: 0.25em; }
  .shell-body .ticker { border-radius: 99px; min-height: 40px; }
  .shell-body .orbit-btn { width: auto; height: auto; min-height: 40px; padding: 9px 16px; }
  .shell-body .user-btn { padding: 6px 14px 6px 6px; background: var(--surface-1); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
  .shell-body .user-btn::before { width: 28px; height: 28px; font-size: 11px; }
  .shell-body .user-btn:not(.user-btn--static):hover { background: var(--surface-2); }
  .shell-body .tab { padding: 8px 16px; min-height: 0; }
  .shell-body .content { padding: 24px 36px 48px; }
  .shell-body .menu-pop { left: auto; right: 36px; top: 80px; min-width: 300px; }
}
/* a window up to 1200 px wide (the class comes from js/shell/windows.js: a window cannot ask its own container) */
.shell.win--compact { --shell-side-w: 200px; }
@container win (max-width: 1200px) {
  .shell-body .brand-tile { width: 40px; height: 40px; border-radius: 12px; padding: 7px; }
  .shell-body .top { padding: 22px 24px 0; }
  .shell-body .content { padding: 20px 24px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .shell-body .type-card:hover { transform: none; }
}

/* A logo of a bistro may be drawn for a dark ground (white mark): in the light theme it sits on an ink tile. */
html[data-theme="light"] .shell-body .gate-brand img { background: #11131a; padding: 5px; }

/* ---------- premium details in the style of the web: gold hairlines, the gold word, capital labels ---------- */
.shell-body .card, .shell-body .kpi, .shell-body .intg, .shell-body .empty, .jv-main { position: relative; }
.shell-body .card::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(237, 186, 55, 0) 0%, rgba(237, 186, 55, 0.55) 50%, rgba(237, 186, 55, 0) 100%);
}
.shell-body .card .card::before { display: none; }
.shell-body .kpi-l, .shell-body .tbl th { font: var(--label-caps); letter-spacing: 0.14em; text-transform: uppercase; }
.shell-body .kpi-v { font-weight: 750; letter-spacing: -0.03em; }
.shell-body .user-btn small { color: var(--accent-text); }
html[data-theme="light"] .shell-body .side { background: rgba(255, 253, 249, 0.85); }
html[data-theme="dark"] .shell-body .side { background: rgba(15, 15, 14, 0.85); backdrop-filter: blur(16px); }

/* Nastavení at the bottom of the menu */
.shell-body .side-bottom { display: grid; gap: 1px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.shell-body .side-bottom + .side-foot { margin-top: 0; }

/* ---------- tables: cards on the phone, a table from 821 px ----------
 * Each row is a card, each cell a line with the label of its column (data-label, set by js/shell/shell.js from the
 * header). The first cell is the title of the card; a cell with an empty label (a button, a sentence across all
 * columns) takes the whole width. The header stays for screen readers only.
 */
.shell-body .tbl, .shell-body .tbl tbody, .shell-body .tbl tr, .shell-body .tbl td { display: block; width: 100%; }
.shell-body .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell-body .tbl tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
.shell-body .tbl tr:last-child { border-bottom: 0; }
.shell-body .tbl tbody tr:hover { background: transparent; }
.shell-body .tbl td, .shell-body .tbl td.num, .shell-body .tbl td.actions, .shell-body .tbl td.mono {
  position: relative; padding: 5px 0 5px calc(38% + 12px); border: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; min-height: 30px; }
.shell-body .tbl td::before { content: attr(data-label); position: absolute; left: 0; top: 5px; width: 38%; color: var(--text-muted); font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.shell-body .tbl td:first-child, .shell-body .tbl td[data-label=""], .shell-body .tbl td:not([data-label]) { padding-left: 0; }
.shell-body .tbl td:first-child::before, .shell-body .tbl td[data-label=""]::before, .shell-body .tbl td:not([data-label])::before { content: none; }
.shell-body .tbl td:first-child { color: var(--text-strong); font-weight: 600; font-size: 15px; }
.shell-body .tbl td:first-child .muted, .shell-body .tbl td:first-child small { font-weight: 400; }
.shell-body .tbl td:empty { display: none; }
.shell-body .tbl td .btn-row { min-width: 0; }
.shell-body .tbl td .input, .shell-body .tbl td .select { width: 100%; min-width: 0; }
.shell-body .tbl td .input[type="time"], .shell-body .tbl td .input[type="date"] { min-width: 0; }
.shell-body .tbl td .price-input { width: 100%; text-align: left; }
.shell-body .tbl .bar-cell { min-width: 0; }
@media (min-width: 821px) {
  .shell-body .tbl { display: table; }
  .shell-body .tbl thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; display: table-header-group; }
  .shell-body .tbl tbody { display: table-row-group; width: auto; }
  .shell-body .tbl tr { display: table-row; width: auto; padding: 0; border: 0; }
  .shell-body .tbl tbody tr:hover { background: var(--surface-2); }
  .shell-body .tbl td, .shell-body .tbl td.num, .shell-body .tbl td.actions, .shell-body .tbl td.mono, .shell-body .tbl td:first-child, .shell-body .tbl td:empty {
    display: table-cell; width: auto; position: static; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); min-height: 0; overflow-wrap: normal; }
  .shell-body .tbl tr:last-child td { border-bottom: 0; }
  .shell-body .tbl td::before { content: none; }
  .shell-body .tbl td:first-child { color: inherit; font-weight: inherit; font-size: inherit; }
  .shell-body .tbl td.num { text-align: right; white-space: nowrap; }
  /* a right-aligned last column ends at the edge of the table, as the first column starts at the other one */
  .shell-body .tbl td.num:last-child, .shell-body .tbl th.num:last-child { padding-right: 0; }
  .shell-body .tbl td.actions { text-align: right; white-space: nowrap; }
  .shell-body .tbl td.mono { white-space: nowrap; }
  .shell-body .tbl td .btn-row { min-width: max-content; }
  .shell-body .tbl td .input, .shell-body .tbl td .select { width: 100%; }
  .shell-body .tbl td .input[type="time"] { min-width: 110px; }
  .shell-body .tbl td .input[type="date"] { min-width: 145px; }
  .shell-body .tbl td .price-input { width: 90px; text-align: right; }
  .shell-body .tbl .bar-cell { min-width: 140px; }
}

/* The heading of the page (group and name) only repeats the menu: it stays for screen readers, also on the phone
   (Štěpán 11. 11. 2026). */
.shell-body .title > .crumb, .shell-body .title > h1 {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
