:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f3f6fb;
  line-height: 1.5;
  --navy: #0b1220;
  --navy-soft: #162238;
  --blue: #356df3;
  --blue-dark: #2456d8;
  --blue-soft: #eaf0ff;
  --red: #e54b4b;
  --amber: #f59e0b;
  --green: #17a673;
  --violet: #7657e6;
  --text: #172033;
  --muted: #6f7a90;
  --line: #e2e8f2;
  --surface: rgba(255, 255, 255, .94);
  --shadow-sm: 0 4px 18px rgba(26, 39, 68, .06);
  --shadow-md: 0 16px 42px rgba(26, 39, 68, .11);
  --shadow-lg: 0 28px 80px rgba(13, 24, 48, .18);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: #f3f6fb; overflow-x: hidden; }
body::selection { background: #cedbff; }
[hidden] { display: none !important; }
a { color: var(--blue-dark); }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.ambient-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #f6f8fc 0%, #eef3fa 100%); }
.ambient-bg span { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(2px); opacity: .26; }
.ambient-bg span:first-child { top: -270px; right: -160px; background: radial-gradient(circle, #a9c4ff 0%, transparent 70%); }
.ambient-bg span:last-child { top: 35%; left: -340px; background: radial-gradient(circle, #d8c9ff 0%, transparent 70%); }

.topbar { position: sticky; top: 0; z-index: 80; height: 72px; color: #fff; background: rgba(10, 17, 31, .92); border-bottom: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(18px); box-shadow: 0 8px 26px rgba(5, 12, 25, .12); }
.topbar-inner { width: min(1280px, calc(100% - 40px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #4e7cff, #7657e6); box-shadow: 0 7px 18px rgba(64, 101, 235, .38); transition: transform .35s ease, box-shadow .35s ease; }
.brand:hover .brand-mark { transform: rotate(8deg) scale(1.05); box-shadow: 0 10px 26px rgba(64, 101, 235, .55); }
.brand-mark .icon { width: 21px; height: 21px; }
.brand-name { font-size: 20px; font-weight: 830; letter-spacing: -.03em; }
.brand-name span { color: #8fb0ff; }
.topbar nav { display: flex; align-items: center; gap: 8px; }
.inline-form { display: inline; margin: 0; }
.nav-action { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; border: 0; border-radius: 12px; padding: 0 14px; color: #fff; background: rgba(255,255,255,.09); text-decoration: none; font: inherit; font-size: 14px; font-weight: 720; cursor: pointer; transition: background .22s ease, transform .22s ease; }
.nav-action:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.nav-quiet { color: #b8c2d6; background: transparent; }

.container { width: min(1280px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 84px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { color: var(--text); line-height: 1.12; letter-spacing: -.035em; }
h1 { margin-bottom: 10px; font-size: clamp(34px, 4.2vw, 54px); font-weight: 850; }
h2 { margin-bottom: 7px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; }
.muted, .hint { color: var(--muted); }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--blue-dark); font-size: 12px; line-height: 1.2; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { margin-bottom: 16px; color: #a9c0ff; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.page-head p { max-width: 680px; margin-bottom: 0; font-size: 16px; }
.section-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 42px 0 20px; }
.section-title h2 { margin: 4px 0 0; }
.section-count { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 800; box-shadow: var(--shadow-sm); }

button, .button { font: inherit; }
.button, button.button-primary, button.button-soft, button.button-danger, button.button-ghost, .button-primary, .button-soft, .button-danger, .button-ghost {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 13px; padding: 10px 17px; text-decoration: none; font-weight: 760; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.button-primary { color: #fff; background: linear-gradient(135deg, #4478f5, #315ed9); border-color: #315ed9; box-shadow: 0 8px 22px rgba(53, 109, 243, .26); }
.button-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(53, 109, 243, .36); }
.button-soft { color: #294a9f; background: #edf2ff; border-color: #dbe5ff; }
.button-soft:hover { background: #e2eaff; transform: translateY(-1px); }
.button-ghost { color: #4e5c73; background: rgba(255,255,255,.78); border-color: var(--line); box-shadow: var(--shadow-sm); }
.button-ghost:hover { color: var(--text); background: #fff; transform: translateY(-1px); }
.button-danger { color: #b63a44; background: #fff0f1; border-color: #ffdadd; }
.button-danger:hover { background: #ffe5e8; transform: translateY(-1px); }
.button-large { min-height: 52px; padding: 13px 21px; border-radius: 15px; }
.button-small { min-height: 38px !important; padding: 7px 12px !important; border-radius: 11px !important; font-size: 13px; }
.glass-button { color: #fff; background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.25); backdrop-filter: blur(12px); box-shadow: none; }
.glass-button:hover { color: #fff; background: rgba(255,255,255,.22); transform: translateY(-2px); }
button:active, .button:active { transform: translateY(0) scale(.98); }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: 3px solid rgba(77, 120, 246, .32); outline-offset: 3px; }

.panel, .form-section, .empty { background: var(--surface); border: 1px solid rgba(218, 227, 240, .92); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel { padding: 24px; }
.compact { padding: 16px 18px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

label { display: flex; flex-direction: column; gap: 8px; color: #344058; font-size: 13px; font-weight: 750; }
input, select { width: 100%; min-height: 46px; border: 1px solid #d8e0ec; border-radius: 12px; padding: 10px 13px; color: var(--text); background: #fff; font: inherit; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
input::placeholder { color: #a0a9ba; }
input:hover, select:hover { border-color: #bdc9da; }
input:focus, select:focus { outline: 0; border-color: #668cf5; box-shadow: 0 0 0 4px rgba(74, 118, 244, .12); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--blue); }
.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 680; }

.flash { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; margin-bottom: 20px; padding: 14px 16px; border-radius: 14px; border: 1px solid; box-shadow: var(--shadow-sm); animation: slideDown .38s ease both; }
.flash.success { color: #087553; background: #ecfbf5; border-color: #bdebd9; }
.flash.error { color: #a9343c; background: #fff0f1; border-color: #ffd4d7; }
.flash-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: currentColor; color: #fff; }

.reveal { animation: revealUp .58s cubic-bezier(.2,.75,.25,1) both; }
.reveal-delay-1 { animation-delay: .08s; }
.reveal-delay-2 { animation-delay: .16s; }
@keyframes revealUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sectionIn { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(23,166,115,.36); } 50% { box-shadow: 0 0 0 5px rgba(23,166,115,0); } }

/* Dashboard */
.dashboard-hero { position: relative; overflow: hidden; min-height: 296px; padding: 42px 46px 30px; border-radius: 28px; color: #fff; background: linear-gradient(118deg, rgba(8,17,34,.98) 0%, rgba(21,34,63,.96) 56%, rgba(48,59,101,.91) 100%); box-shadow: var(--shadow-lg); }
.dashboard-hero::before, .dashboard-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.dashboard-hero::before { width: 360px; height: 360px; right: -80px; top: -170px; background: radial-gradient(circle, rgba(89,126,240,.52), transparent 68%); }
.dashboard-hero::after { width: 240px; height: 240px; left: 50%; bottom: -210px; background: radial-gradient(circle, rgba(118,87,230,.36), transparent 70%); }
.dashboard-hero-main { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.dashboard-hero h1 { max-width: 700px; margin: 0; color: #fff; }
.dashboard-hero p { max-width: 680px; margin: 14px 0 0; color: #bec9dd; font-size: 17px; }
.hero-metrics { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: 31px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-metrics > div { min-width: 128px; display: grid; grid-template-columns: 30px auto; grid-template-rows: auto auto; column-gap: 9px; padding: 4px 16px 4px 0; }
.hero-metrics strong { align-self: end; color: #fff; font-size: 21px; line-height: 1; }
.hero-metrics > div > span:last-child { color: #9ca9c0; font-size: 12px; }
.metric-icon { grid-row: 1 / 3; align-self: center; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #b8c8ed; background: rgba(255,255,255,.08); }
.metric-icon.active { color: #79ddb9; }.metric-icon.rail { color: #ffb064; }.metric-icon.air { color: #9bb8ff; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.watch-card { overflow: hidden; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 23px; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.watch-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #cbd7e9; }
.watch-cover { position: relative; min-height: 178px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 20px 21px; color: #fff; background-position: center; background-size: cover; }
.watch-card-rail .watch-cover { background-image: linear-gradient(180deg, rgba(8,13,24,.22), rgba(8,13,24,.82)), url("images/rail-journey.jpg"); }
.watch-card-air .watch-cover { background-image: linear-gradient(180deg, rgba(8,13,24,.18), rgba(8,13,24,.8)), url("images/air-journey.jpg"); }
.watch-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.transport-badge { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 6px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; background: rgba(8,15,28,.38); backdrop-filter: blur(10px); font-size: 12px; font-weight: 750; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 780; color: #d6dce8; background: rgba(8,15,28,.44); backdrop-filter: blur(9px); }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #94a0b6; }
.live-pill.is-live { color: #baf0dc; }.live-pill.is-live i { background: #39d49c; animation: pulse 2s infinite; }
.live-pill.is-paused { color: #e2c89f; }.live-pill.is-paused i { background: #e6a84e; }
.watch-route { display: flex; align-items: center; gap: 13px; color: #fff; font-size: clamp(20px, 2.3vw, 27px); font-weight: 840; letter-spacing: -.025em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.watch-route .icon { color: rgba(255,255,255,.7); }
.watch-card-body { padding: 21px; }
.watch-price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 680; }
.price { display: block; margin: 0; color: var(--text); font-size: 29px; line-height: 1.15; letter-spacing: -.04em; }
.round-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); transition: transform .25s ease; }
.watch-card:hover .round-icon { transform: translateX(3px); }
.watch-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.watch-meta-grid > div { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; color: #606d83; background: #f7f9fc; font-size: 12px; }
.watch-meta-grid .icon { color: var(--blue); }
.watch-mode { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: var(--muted); font-size: 12px; }
.card-error { display: flex; align-items: flex-start; gap: 8px; margin-top: 13px; padding: 10px; color: #a9343c; background: #fff2f3; border-radius: 11px; font-size: 12px; }

.empty { padding: 48px; text-align: center; }
.empty-journey { display: grid; justify-items: center; gap: 20px; }
.empty-journey p { max-width: 520px; color: var(--muted); }
.empty-visual { position: relative; width: min(520px, 100%); height: 150px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 20px; box-shadow: var(--shadow-md); }
.empty-visual > div { background-position: center; background-size: cover; }
.empty-rail { background-image: linear-gradient(rgba(8,15,29,.3),rgba(8,15,29,.3)), url("images/rail-journey.jpg"); }
.empty-air { background-image: linear-gradient(rgba(8,15,29,.3),rgba(8,15,29,.3)), url("images/air-journey.jpg"); }
.empty-visual > span { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: rgba(13,22,40,.82); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); }
.empty-visual .icon { width: 27px; height: 27px; }

/* Monitor form */
.form-page-head { align-items: center; }
.form-page-head .eyebrow { margin-bottom: 11px; color: var(--blue-dark); }
.form-page-head h1 { font-size: clamp(32px, 4vw, 46px); }
.monitor-form { gap: 22px; }
.form-section { padding: 27px; }
.form-section-head { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 22px; }
.form-section-head h2 { margin: 3px 0 0; font-size: 25px; }
.form-section-head p { margin: 6px 0 0; }
.step-number { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #315ed9; background: var(--blue-soft); font-size: 12px; font-weight: 850; }
.rail-step { color: #b9522e; background: #fff0e7; }.air-step { color: #4f56c7; background: #eeedff; }

.transport-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.transport-choice { position: relative; isolation: isolate; overflow: hidden; min-height: 178px; display: flex; align-items: flex-end; width: 100%; border: 2px solid transparent; border-radius: 19px; padding: 0; color: #fff; background-position: center; background-size: cover; text-align: left; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, filter .28s ease; }
.rail-choice { background-image: url("images/rail-journey.jpg"); }.air-choice { background-image: url("images/air-journey.jpg"); }
.transport-choice-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,13,25,.08), rgba(7,13,25,.88)); }
.transport-choice-content { width: 100%; display: grid; grid-template-columns: 42px 1fr 32px; align-items: center; gap: 12px; padding: 20px; }
.transport-choice-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.transport-choice strong, .transport-choice small { display: block; }.transport-choice strong { font-size: 20px; }.transport-choice small { margin-top: 2px; color: #c9d2e1; font-size: 12px; }
.transport-choice-check { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: transparent; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); transition: background .25s ease, color .25s ease, transform .25s ease; }
.transport-choice:hover { transform: translateY(-3px); filter: brightness(1.05); }
.transport-choice[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 3px var(--blue), var(--shadow-md); }
.transport-choice[aria-pressed="true"] .transport-choice-check { color: #fff; background: var(--blue); transform: scale(1.08); }

.route-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.route-grid::after { content: ""; position: absolute; left: 50%; top: 41px; width: 22px; height: 1px; transform: translateX(-50%); background: #cbd5e3; }
.place-field { display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.route-field label { flex-direction: row; align-items: center; }
.route-marker { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--blue); font-size: 10px; font-weight: 850; }
.route-field:nth-child(2) .route-marker { background: var(--violet); }
.station-combobox { position: relative; }
.station-suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 7px); z-index: 50; max-height: 330px; overflow: auto; padding: 6px; background: #fff; border: 1px solid #d7dfeb; border-radius: 15px; box-shadow: var(--shadow-lg); animation: revealUp .22s ease both; }
.station-option { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 11px 12px; border: 0; border-radius: 10px; color: var(--text); background: #fff; text-align: left; font: inherit; font-weight: 650; cursor: pointer; }
.station-option:hover, .station-option.is-active { background: #edf2ff; }
.station-option-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.station-kind { flex: 0 0 auto; border-radius: 999px; padding: 3px 8px; color: #5d687c; background: #f0f3f8; font-size: 11px; font-weight: 780; }
.station-kind.all-stations { color: #087553; background: #e8f8f2; }
.station-region { color: var(--muted); font-size: 12px; font-weight: 450; }
.station-message { padding: 12px; color: var(--muted); font-size: 12px; font-weight: 520; }
.station-message.error-text { margin: 0; color: #a9343c; }
.station-combobox-disabled .station-suggestions { display: none; }
.field-hint { display: flex; align-items: center; gap: 7px; margin: 11px 0 21px; color: var(--muted); font-size: 12px; }
.field-hint .icon { color: var(--blue); }

.dates-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.date-panel { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #f9fbfe; }
.date-panel-head, .date-panel-head > div, .toggle-row > span { display: flex; align-items: center; justify-content: space-between; gap: 11px; }
.date-panel-head > div, .toggle-row > span { justify-content: flex-start; }
.date-panel-head strong, .date-panel-head small, .toggle-row strong, .toggle-row small { display: block; }
.date-panel-head small, .toggle-row small { margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 520; }
.mini-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }.rail-accent { color: #b9522e; background: #fff0e7; }.air-accent { color: #4f56c7; background: #eeedff; }
.date-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.date-row { display: flex; gap: 5px; animation: sectionIn .3s ease both; }
.date-row input { min-width: 0; }
.remove-date { width: 39px; flex: 0 0 auto; border: 0; border-radius: 11px; color: #7b8699; background: #edf1f7; font-size: 20px; cursor: pointer; transition: color .2s ease, background .2s ease; }
.remove-date:hover { color: #b63a44; background: #ffe9eb; }
.toggle-row { flex-direction: row; align-items: center; justify-content: space-between; cursor: pointer; }
.toggle-row > input, .toggle-line > input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row > i, .toggle-line > i { position: relative; width: 44px; height: 25px; flex: 0 0 auto; border-radius: 999px; background: #cbd4e2; transition: background .25s ease; }
.toggle-row > i::after, .toggle-line > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(21,35,60,.25); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.toggle-row > input:checked + i, .toggle-line > input:checked + i { background: var(--blue); }
.toggle-row > input:checked + i::after, .toggle-line > input:checked + i::after { transform: translateX(19px); }
.return-section { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); animation: sectionIn .28s ease both; }
.compact-head { min-height: 38px; }
.interval-field { max-width: 260px; margin-top: 17px; }
.interval-field > span:first-child { display: flex; align-items: center; gap: 7px; }
.input-with-suffix { position: relative; display: block; }.input-with-suffix input { padding-right: 66px; }.input-with-suffix i { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-style: normal; font-size: 12px; }

.transport-options { animation: sectionIn .35s ease both; }
.choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; margin: 3px 0 21px; }
.choice-grid-air { grid-template-columns: repeat(4, minmax(0,1fr)); }
.choice-card { position: relative; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.choice-card:hover { transform: translateY(-2px); border-color: #bccbf0; background: #f7f9ff; }
.choice-card > span { display: flex; align-items: center; gap: 8px; }
.choice-card > span input { position: absolute; opacity: 0; }
.choice-card > span i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: transparent; background: #fff; border: 1px solid #cbd5e3; font-style: normal; transition: background .2s ease, color .2s ease; }
.choice-card > span input:checked + i { color: #fff; background: var(--blue); border-color: var(--blue); }
.choice-card > input { min-height: 39px; padding: 8px 10px; font-size: 12px; }
.filter-grid { margin-top: 14px; }
.field-note { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 500; }
.toggle-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-top: 17px; }
.toggle-line { position: relative; min-height: 58px; flex-direction: row; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfd; cursor: pointer; }
.toggle-line span strong, .toggle-line span small { display: block; }.toggle-line span small { margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 500; }
.passenger-panel { margin: 18px 0 20px; padding: 17px; border: 1px solid #d9e3f4; border-radius: 17px; background: linear-gradient(135deg, #f8faff, #f3f7ff); }
.air-passenger-panel { border-color: #deddf7; background: linear-gradient(135deg, #fafaff, #f4f3ff); }
.coupe-seat-head { display: flex; align-items: center; gap: 11px; }.coupe-seat-head > div { flex: 1; }.coupe-seat-head strong, .coupe-seat-head small { display: block; }.coupe-seat-head small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.passenger-count { width: 112px; flex: 0 0 auto; color: var(--muted); font-size: 11px; }.passenger-count input { min-height: 39px; margin-top: 5px; padding: 8px 10px; }
.passenger-hint { margin: 12px 2px 0; color: #65738a; font-size: 11px; line-height: 1.5; }
.coupe-seat-advanced { margin-top: 14px; padding-top: 14px; border-top: 1px solid #d9e3f4; animation: sectionIn .25s ease both; }
.advanced-divider { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }.advanced-divider span { color: #43516a; font-size: 12px; font-weight: 800; }.advanced-divider small { color: var(--muted); font-size: 10px; }
.coupe-seat-toggles { margin-top: 14px; }.coupe-seat-note { margin: 12px 2px 0; color: #65738a; font-size: 11px; line-height: 1.5; }
.toggle-line[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.berth-match { display: block; min-width: 170px; margin-top: 5px; color: #177253; font-size: 10px; line-height: 1.35; }.berth-match.no-match { color: var(--muted); }
.exact-seat-total { display: block; min-width: 130px; margin-top: 6px; color: #177253; font-size: 10px; line-height: 1.35; }
.price-scope { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.notification-toggles { margin-top: 18px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.info-card { display: flex; align-items: flex-start; gap: 11px; padding: 17px; color: #4b5f8d; background: #eef3ff; border: 1px solid #dbe5ff; border-radius: 16px; font-size: 13px; }
.info-card > .icon { width: 21px; height: 21px; color: var(--blue); }.info-card.security { color: #4c655d; background: #eef9f5; border-color: #d2eee3; }.info-card.security > .icon { color: var(--green); }
.form-actions { position: sticky; bottom: 14px; z-index: 40; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 14px; background: rgba(255,255,255,.88); border: 1px solid rgba(216,224,236,.9); border-radius: 18px; box-shadow: 0 14px 38px rgba(22,36,62,.14); backdrop-filter: blur(15px); }

/* Detail */
.detail-hero { position: relative; isolation: isolate; min-height: 260px; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 33px; border-radius: 28px; color: #fff; background-position: center; background-size: cover; box-shadow: var(--shadow-lg); }
.detail-rail { background-image: url("images/rail-journey.jpg"); }.detail-air { background-image: url("images/air-journey.jpg"); }
.detail-hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,13,25,.92) 0%, rgba(7,13,25,.62) 55%, rgba(7,13,25,.24) 100%); }
.detail-hero-content { max-width: 820px; }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.detail-route { display: flex; align-items: center; gap: 15px; color: #fff; font-size: clamp(29px, 4.5vw, 48px); line-height: 1.08; font-weight: 860; letter-spacing: -.045em; text-shadow: 0 3px 20px rgba(0,0,0,.34); }
.detail-route .icon { width: .85em; color: #b8c7e5; }
.detail-hero p { margin: 10px 0 0; color: #c5d0e2; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.stats.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.stats > div { position: relative; min-height: 124px; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-sm); }
.stats > div > span:not(.stat-icon) { display: block; max-width: calc(100% - 42px); color: var(--muted); font-size: 12px; }
.stats strong { display: block; margin-top: 14px; color: var(--text); font-size: 22px; line-height: 1.15; }
.stat-icon { position: absolute; top: 16px; right: 16px; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; }.stat-icon.blue { color: var(--blue); background: var(--blue-soft); }.stat-icon.green { color: var(--green); background: #e9f9f3; }.stat-icon.amber { color: #c07805; background: #fff4dd; }.stat-icon.violet { color: var(--violet); background: #f0edff; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }.actions form { margin: 0; }.action-toolbar { margin-bottom: 14px; }
.filter-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-heading { display: inline-flex; align-items: center; gap: 7px; margin-right: 4px; color: #42506a; font-size: 13px; font-weight: 800; }
.filter-chip { padding: 6px 10px; border-radius: 999px; color: #536079; background: #f0f3f8; font-size: 11px; font-weight: 650; }
.offers-head { margin-top: 44px; }
.offers-head p { margin: 6px 0 0; }
.table-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-field { position: relative; display: block; min-width: 280px; }.search-field .icon { position: absolute; left: 13px; top: 50%; z-index: 1; transform: translateY(-50%); color: #8490a5; }.search-field input { padding-left: 39px; }
.pill-check { cursor: pointer; }.pill-check input { position: absolute; opacity: 0; }.pill-check span { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: background .2s ease, color .2s ease, border-color .2s ease; }.pill-check input:checked + span { color: #2456d8; background: #edf2ff; border-color: #c7d5ff; }
.selection-bar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 12px; }
.mode-radios, .selection-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.table-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-sm); }
table { width: 100%; min-width: 900px; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid #e8edf4; text-align: left; vertical-align: middle; }
th { position: sticky; top: 0; z-index: 2; color: #6b768a; background: #f8fafd; font-size: 11px; font-weight: 820; letter-spacing: .04em; text-transform: uppercase; }
td { color: #344058; font-size: 12px; }
tbody tr { transition: background .18s ease; }.offers-table tbody tr:hover { background: #f8faff; }
.offers-table table { min-width: 1280px; }
.offer-row.not-matched { color: #7d8798; background: #fcfcfd; }.offer-row.is-matched { background: #fff; }
.row-check { width: 17px !important; height: 17px; accent-color: var(--blue); }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 750; }.class-badge { color: #4d5970; background: #eef1f6; }
.price-link { color: var(--blue-dark); font-weight: 850; text-decoration: none; white-space: nowrap; }.price-link:hover { text-decoration: underline; }
.status { font-size: 11px; font-weight: 750; }.status.ok { color: #087553; }.status.partial { color: #a56600; }.status.error, .status.blocked, .error-text { color: #a9343c; }.status.selected { color: var(--blue-dark); }
.status-pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #f0f3f7; }.status-pill.ok { background: #e8f8f2; }.status-pill.error, .status-pill.blocked { background: #fff0f1; }.status-pill.partial { background: #fff5e4; }
.json-details { max-width: 520px; max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; padding: 12px; border-radius: 10px; color: #dce5f4; background: #101827; font-size: 11px; }
details summary { color: var(--blue-dark); cursor: pointer; font-weight: 700; }
.compact-empty { display: grid; justify-items: center; gap: 10px; }.compact-empty p { color: var(--muted); }.empty-icon, .error-page-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; color: var(--blue); background: var(--blue-soft); }.empty-icon .icon, .error-page-icon .icon { width: 25px; height: 25px; }
.runs-title { margin-top: 45px; }.runs-table { margin-top: 14px; }.table-empty { padding: 28px; text-align: center; color: var(--muted); }

/* Login and error */
.auth-page .container { width: min(1120px, calc(100% - 40px)); }
.auth-shell { min-height: 630px; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); }
.auth-visual { position: relative; display: flex; align-items: flex-end; padding: 46px; color: #fff; background-image: linear-gradient(180deg, rgba(7,13,25,.15), rgba(7,13,25,.91)), url("images/rail-journey.jpg"); background-size: cover; background-position: center; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 15%, rgba(255,172,82,.22), transparent 35%); pointer-events: none; }
.auth-visual-content { position: relative; z-index: 1; max-width: 520px; }.auth-visual h1 { margin: 20px 0 16px; color: #fff; font-size: clamp(38px, 5vw, 64px); }.auth-visual p { max-width: 470px; color: #c7d1e2; font-size: 17px; }.auth-features { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; }.auth-features span { display: inline-flex; align-items: center; gap: 7px; color: #dbe4f3; font-size: 12px; font-weight: 650; }.auth-features .icon { color: #65ddb3; }
.auth-card { align-self: center; padding: 48px; }.auth-heading { display: flex; align-items: center; gap: 13px; }.auth-heading h2 { margin: 4px 0 0; font-size: 30px; }.auth-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--blue); background: var(--blue-soft); }.auth-form { margin-top: 25px; }.auth-form label > span { display: flex; align-items: center; gap: 6px; }.auth-form label > span .icon { color: #7a879d; }.auth-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 22px; padding: 12px; border-radius: 12px; color: var(--muted); background: #f6f8fb; font-size: 11px; }
.error-page { display: grid; justify-items: center; gap: 10px; max-width: 680px; margin: 8vh auto; }.error-page p { color: var(--muted); }

@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .auth-shell { grid-template-columns: 1fr; }.auth-visual { min-height: 360px; }.auth-card { padding: 40px; }
  .detail-route { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .topbar-inner, .container { width: min(100% - 28px, 1280px); }
  .topbar { height: 66px; }.brand-name { font-size: 18px; }.nav-action span { display: none; }.nav-action { width: 42px; padding: 0; }
  .container { padding-top: 25px; padding-bottom: 60px; }
  .page-head, .section-title, .dashboard-hero-main, .detail-hero, .selection-bar { align-items: flex-start; flex-direction: column; }
  .dashboard-hero { padding: 30px 24px 24px; }.dashboard-hero-main { align-items: flex-start; }.hero-metrics { display: grid; grid-template-columns: 1fr 1fr; }.hero-metrics > div { min-width: 0; }
  .transport-picker, .route-grid, .dates-layout, .grid.two, .grid.three, .info-grid, .toggle-grid { grid-template-columns: 1fr; }
  .coupe-seat-head { align-items: flex-start; flex-wrap: wrap; }.passenger-count { width: 100%; }
  .route-grid::after { display: none; }.form-section { padding: 21px; }.transport-choice { min-height: 145px; }
  .date-list { grid-template-columns: 1fr; }.interval-field { max-width: none; }
  .detail-hero { min-height: 310px; justify-content: flex-end; }.detail-hero .glass-button { align-self: flex-start; }.detail-route { font-size: 31px; }
  .stats.four { grid-template-columns: 1fr 1fr; }.table-tools, .search-field { width: 100%; min-width: 0; }.pill-check { align-self: flex-start; }
  .auth-page .container { width: min(100% - 28px, 1120px); }.auth-visual { min-height: 310px; padding: 27px; }.auth-card { padding: 29px 23px; }
  .form-actions { bottom: 8px; }.watch-route { flex-wrap: wrap; }
}

@media (max-width: 500px) {
  h1 { font-size: 34px; }.dashboard-hero h1 { font-size: 38px; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }.hero-metrics > div { padding-right: 4px; }
  .watch-meta-grid, .stats.four, .choice-grid, .choice-grid-air { grid-template-columns: 1fr; }
  .watch-cover { min-height: 195px; }.watch-route { font-size: 22px; }
  .form-section-head { gap: 10px; }.step-number { width: 36px; height: 36px; }.form-section-head h2 { font-size: 22px; }
  .transport-choice-content { padding: 15px; }.transport-choice { min-height: 132px; }
  .form-actions { justify-content: stretch; flex-direction: row; padding: 10px; }.form-actions > * { min-width: 0; flex: 1; }.form-actions .button-primary { flex: 1.65; }
  .action-toolbar > form, .action-toolbar button { width: 100%; }.action-toolbar { align-items: stretch; }
  .auth-visual h1 { font-size: 39px; }.auth-features { flex-direction: column; gap: 8px; }
  .empty { padding: 31px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* TicketWatch editorial system — restrained travel-service UI */
:root {
  font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  color: #182026;
  background: #f2efe8;
  --navy: #101820;
  --navy-soft: #1b2730;
  --blue: #2459d3;
  --blue-dark: #153f9f;
  --blue-soft: #e8eefc;
  --red: #dd4b32;
  --amber: #c77a24;
  --green: #14745b;
  --violet: #6553b8;
  --text: #182026;
  --muted: #697177;
  --line: #d8d4ca;
  --surface: #fffdfa;
  --paper: #f2efe8;
  --shadow-sm: 0 1px 2px rgba(16,24,32,.05), 0 8px 24px rgba(16,24,32,.035);
  --shadow-md: 0 18px 46px rgba(16,24,32,.11);
  --shadow-lg: 0 30px 80px rgba(8,15,21,.18);
  --radius: 10px;
}

body { color: var(--text); background: var(--paper); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .32; background-image: linear-gradient(rgba(16,24,32,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(16,24,32,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 72%); }
body::selection { color: #fff; background: #dd4b32; }
.ambient-bg { background: radial-gradient(circle at 92% 8%, rgba(216,126,74,.12), transparent 26%), radial-gradient(circle at 4% 44%, rgba(36,89,211,.08), transparent 25%), #f2efe8; }
.ambient-bg span { display: none; }

.topbar { height: 66px; color: #fff; background: #101820; border: 0; border-bottom: 3px solid #dd4b32; box-shadow: none; backdrop-filter: none; }
.topbar-inner { width: min(1340px, calc(100% - 48px)); }
.brand { gap: 10px; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.28); border-radius: 5px; color: #fff; background: transparent; box-shadow: none; }
.brand:hover .brand-mark { transform: translateY(-1px); box-shadow: none; background: #dd4b32; border-color: #dd4b32; }
.brand-mark .icon { width: 18px; height: 18px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 18px; font-weight: 780; letter-spacing: -.02em; }
.brand-name span { color: #f17c63; }
.brand-copy small { margin-top: 5px; color: #919da5; font-size: 8px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.nav-action { min-height: 36px; border: 1px solid #38444d; border-radius: 5px; padding: 0 12px; color: #f7f3eb; background: transparent; font-size: 12px; font-weight: 720; letter-spacing: .02em; }
.nav-action:hover { color: #fff; background: #26323b; border-color: #58636b; transform: none; }
.nav-action:not(.nav-quiet) { color: #101820; background: #fffdfa; border-color: #fffdfa; }
.nav-action:not(.nav-quiet):hover { color: #fff; background: #dd4b32; border-color: #dd4b32; }
.nav-quiet { color: #a9b1b6; border-color: transparent; }

.container { width: min(1340px, calc(100% - 48px)); padding: 50px 0 92px; }
h1 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(42px, 5vw, 68px); font-weight: 650; letter-spacing: -.045em; }
h2 { font-size: clamp(23px, 2.2vw, 31px); font-weight: 760; letter-spacing: -.035em; }
.muted, .hint { color: var(--muted); }
.eyebrow, .section-kicker { color: #b33d2b; font-size: 10px; font-weight: 850; letter-spacing: .17em; }
.page-head { margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid #ccc7bb; }
.page-head p { font-size: 15px; }
.section-title { margin: 52px 0 20px; padding-bottom: 14px; border-bottom: 1px solid #cfcabf; }
.section-title h2 { margin-top: 6px; }
.section-count { min-width: 34px; height: 34px; border: 1px solid #bab5aa; border-radius: 50%; background: transparent; box-shadow: none; font-size: 12px; }

.button, button.button-primary, button.button-soft, button.button-danger, button.button-ghost, .button-primary, .button-soft, .button-danger, .button-ghost { min-height: 43px; border-radius: 6px; padding: 10px 16px; font-size: 13px; font-weight: 780; box-shadow: none; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.button-primary { color: #fff; background: #dd4b32; border-color: #dd4b32; box-shadow: 4px 4px 0 #932f20; }
.button-primary:hover { color: #fff; background: #c73f29; border-color: #c73f29; box-shadow: 2px 2px 0 #84291c; transform: translate(2px, 2px); }
.button-soft { color: #183f8f; background: #edf1f9; border-color: #cdd7ec; }
.button-soft:hover { color: #fff; background: #2459d3; border-color: #2459d3; transform: none; }
.button-ghost { color: #323a3f; background: transparent; border-color: #bdb8ad; box-shadow: none; }
.button-ghost:hover { color: #101820; background: #fffdfa; border-color: #8e8980; transform: none; }
.button-danger { color: #a03427; background: transparent; border-color: #d8aaa3; }
.button-danger:hover { color: #fff; background: #a93b2d; border-color: #a93b2d; transform: none; }
.button-large { min-height: 51px; padding: 13px 20px; border-radius: 6px; }
.button-small { border-radius: 5px !important; }
.glass-button { color: #fff; background: rgba(16,24,32,.48); border-color: rgba(255,255,255,.52); box-shadow: none; backdrop-filter: blur(8px); }
.glass-button:hover { color: #101820; background: #fffdfa; border-color: #fffdfa; transform: none; }
button:focus-visible, .button:focus-visible, a:focus-visible { outline-color: rgba(221,75,50,.38); }

.panel, .form-section, .empty { background: #fffdfa; border: 1px solid #d2cec3; border-radius: 9px; box-shadow: var(--shadow-sm); }
.panel { padding: 23px; }
.compact { padding: 15px 17px; }
label { color: #30383d; font-size: 12px; font-weight: 730; }
input, select { min-height: 45px; border: 1px solid #c9c5bc; border-radius: 5px; padding: 10px 12px; color: #182026; background: #fff; }
input::placeholder { color: #9b9a95; }
input:hover, select:hover { border-color: #8f8b83; }
input:focus, select:focus { border-color: #2459d3; box-shadow: 0 0 0 3px rgba(36,89,211,.12); transform: none; }
.flash { border-radius: 6px; box-shadow: none; }
.flash.success { color: #0f624b; background: #eaf4ef; border-color: #b8d9cd; }
.flash.error { color: #953729; background: #f9ece8; border-color: #e7c2bb; }
.flash-icon { border-radius: 4px; }

/* Dashboard: editorial cover with separate rail and air imagery */
.dashboard-hero { min-height: 420px; padding: 50px 52px 36px; border: 0; border-radius: 10px; color: #fff; background: #101820; box-shadow: var(--shadow-lg); }
.dashboard-hero::before { inset: 30px 30px 30px auto; width: 39%; height: auto; border: 1px solid rgba(255,255,255,.24); border-radius: 5px; opacity: 1; background: linear-gradient(180deg, rgba(8,14,21,.08), rgba(8,14,21,.48)), url("images/air-journey.jpg") center / cover; }
.dashboard-hero::after { left: auto; right: 27%; bottom: 49px; width: 178px; height: 104px; border: 7px solid #101820; border-radius: 3px; background: linear-gradient(rgba(9,15,20,.1), rgba(9,15,20,.36)), url("images/rail-journey.jpg") center / cover; box-shadow: 0 15px 30px rgba(0,0,0,.28); }
.dashboard-hero .eyebrow { position: relative; z-index: 2; color: #f17c63; }
.dashboard-hero-main { z-index: 2; max-width: 57%; flex-direction: column; align-items: flex-start; }
.dashboard-hero h1 { max-width: 760px; font-size: clamp(46px, 5.7vw, 76px); line-height: .96; }
.dashboard-hero p { max-width: 620px; margin-top: 20px; color: #b8c0c5; font-size: 15px; line-height: 1.65; }
.dashboard-hero-main .button { margin-top: 10px; }
.hero-metrics { z-index: 2; width: 56%; display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 34px; padding-top: 20px; border-top-color: #38444c; }
.hero-metrics > div { min-width: 0; grid-template-columns: 24px auto; column-gap: 7px; padding-right: 12px; }
.hero-metrics strong { font-size: 19px; }
.hero-metrics > div > span:last-child { color: #818d94; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.metric-icon { width: 24px; height: 24px; border-radius: 3px; color: #d5d9db; background: #26323a; }
.metric-icon.active { color: #65c5a5; }.metric-icon.rail { color: #ed9d63; }.metric-icon.air { color: #8fafef; }

.cards { gap: 18px; }
.watch-card { position: relative; overflow: hidden; border: 1px solid #cbc6bc; border-radius: 8px; box-shadow: none; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.watch-card:hover { transform: translateY(-3px); border-color: #8e8a82; box-shadow: 0 16px 36px rgba(16,24,32,.09); }
.watch-cover { min-height: 184px; padding: 17px 18px 20px; }
.watch-card-rail .watch-cover { background-image: linear-gradient(180deg, rgba(11,17,22,.08), rgba(11,17,22,.78)), url("images/rail-journey.jpg"); }
.watch-card-air .watch-cover { background-image: linear-gradient(180deg, rgba(11,17,22,.06), rgba(11,17,22,.76)), url("images/air-journey.jpg"); }
.transport-badge, .live-pill { border-radius: 4px; background: rgba(10,17,23,.72); backdrop-filter: none; }
.watch-route { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(24px, 2.5vw, 31px); font-weight: 650; }
.watch-card-body { position: relative; padding: 22px; background: #fffdfa; }
.watch-card-body::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 1px dashed #c5c0b5; }
.price { font-size: 31px; font-weight: 760; }
.round-icon { width: 34px; height: 34px; border: 1px solid #bfbab0; border-radius: 50%; color: #182026; background: transparent; }
.watch-card:hover .round-icon { color: #fff; background: #dd4b32; border-color: #dd4b32; }
.watch-meta-grid > div { border: 1px solid #e0dcd3; border-radius: 5px; color: #5d656a; background: #f7f4ee; }
.watch-meta-grid .icon { color: #b33d2b; }
.watch-mode { padding-top: 12px; border-top: 1px solid #ebe7df; }
.card-error { border-radius: 4px; }
.empty { padding: 48px; }
.empty-visual { border-radius: 6px; box-shadow: none; }
.empty-visual > span { border-radius: 5px; background: #101820; backdrop-filter: none; }

/* Monitor form: numbered editorial sections */
.form-page-head .eyebrow { color: #b33d2b; }
.form-page-head h1 { font-size: clamp(40px, 4.7vw, 60px); }
.monitor-form { gap: 16px; }
.form-section { position: relative; padding: 30px; box-shadow: none; }
.form-section::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; border-radius: 9px 9px 0 0; background: #101820; }
#rail-options::before { background: #c95a32; }
#air-options::before { background: #2459d3; }
.notifications-section::before { background: #14745b; }
.form-section-head { gap: 17px; margin-bottom: 24px; }
.form-section-head h2 { font-size: 26px; }
.step-number { width: 38px; height: 38px; border: 1px solid #101820; border-radius: 50%; color: #101820; background: transparent; }
.rail-step { color: #a84528; border-color: #c95a32; background: transparent; }
.air-step { color: #2459d3; border-color: #2459d3; background: transparent; }
.transport-picker { gap: 12px; }
.transport-choice { min-height: 190px; border: 1px solid #aaa69d; border-radius: 7px; box-shadow: none; }
.transport-choice:hover { transform: translateY(-2px); filter: none; }
.transport-choice[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 3px #dd4b32; }
.transport-choice-content { padding: 20px; }
.transport-choice-icon, .transport-choice-check { border-radius: 4px; }
.transport-choice[aria-pressed="true"] .transport-choice-check { background: #dd4b32; }
.route-grid::after { background: #bcb7ad; }
.route-marker { border-radius: 50%; background: #101820; }
.route-field:nth-child(2) .route-marker { background: #dd4b32; }
.station-suggestions { border-radius: 6px; border-color: #bbb7ad; box-shadow: var(--shadow-md); }
.station-option { border-radius: 4px; }
.station-option:hover, .station-option.is-active { background: #f0eee8; }
.station-kind { border-radius: 3px; background: #ece9e2; }
.station-kind.all-stations { color: #0d654d; background: #e5f1ec; }
.field-hint .icon { color: #b33d2b; }
.date-panel { border-color: #d1cdc3; border-radius: 6px; background: #f8f5ef; }
.mini-icon { border-radius: 4px; }
.rail-accent { color: #a84528; background: #f6e7df; }
.air-accent { color: #2459d3; background: #e7edfa; }
.remove-date { border-radius: 4px; background: #e9e6df; }
.toggle-row > i, .toggle-line > i { width: 42px; height: 23px; background: #aaa9a4; }
.toggle-row > i::after, .toggle-line > i::after { width: 17px; height: 17px; box-shadow: none; }
.toggle-row > input:checked + i, .toggle-line > input:checked + i { background: #14745b; }
.toggle-row > input:checked + i::after, .toggle-line > input:checked + i::after { transform: translateX(19px); }
.choice-grid { gap: 9px; }
.choice-card { border-color: #d1cdc3; border-radius: 6px; background: #faf8f3; }
.choice-card:hover { transform: none; border-color: #8e8b84; background: #fff; }
.choice-card:has(input[type="checkbox"]:checked) { border-color: #2459d3; box-shadow: inset 0 0 0 1px #2459d3; background: #f5f7fc; }
.choice-card > span i { border-radius: 3px; }
.choice-card > span input:checked + i { background: #2459d3; border-color: #2459d3; }
.toggle-line { border-color: #d1cdc3; border-radius: 6px; background: #faf8f3; }
.toggle-line:has(input:checked) { border-color: #92b8aa; background: #f1f7f4; }
.passenger-panel { border-color: #cfcac0; border-radius: 6px; background: #f5f2eb; }
.air-passenger-panel { border-color: #cbd4ea; background: #f2f5fb; }
.coupe-seat-advanced { border-top-color: #cbc6bc; }
.info-card { border-radius: 6px; color: #334d75; background: #edf2f8; border-color: #ccd8e6; }
.info-card.security { color: #36584d; background: #edf5f1; border-color: #c9ddd5; }
.form-actions { bottom: 10px; border-color: #c8c3b9; border-radius: 7px; background: rgba(242,239,232,.94); box-shadow: 0 14px 34px rgba(16,24,32,.1); backdrop-filter: blur(12px); }

/* Detail and dense data */
.detail-hero { min-height: 330px; padding: 38px; border-radius: 9px; box-shadow: var(--shadow-md); }
.detail-hero-overlay { background: linear-gradient(90deg, rgba(8,14,19,.94), rgba(8,14,19,.56) 63%, rgba(8,14,19,.16)); }
.detail-route { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(38px, 5.2vw, 66px); font-weight: 650; }
.stats { gap: 10px; }
.stats > div { min-height: 116px; padding: 17px; border-color: #d2cec3; border-radius: 6px; box-shadow: none; background: #fffdfa; }
.stats > div::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: 0; height: 3px; background: #101820; }
.stats > div:nth-child(2)::after { background: #14745b; }.stats > div:nth-child(3)::after { background: #c77a24; }.stats > div:nth-child(4)::after { background: #6553b8; }
.stat-icon { border-radius: 4px; }
.action-toolbar { border-left: 3px solid #101820; }
.filter-chip { border: 1px solid #d2cec3; border-radius: 4px; color: #525b60; background: #f7f4ee; }
.search-field input, .pill-check span { border-radius: 5px; }
.pill-check input:checked + span { color: #153f9f; background: #e8eefc; border-color: #9eb2de; }
.selection-bar { border-left: 3px solid #2459d3; }
.table-wrap { border-color: #cbc7bd; border-radius: 6px; box-shadow: none; }
th, td { border-bottom-color: #e3dfd7; }
th { color: #596168; background: #eeebe4; font-size: 10px; letter-spacing: .08em; }
td { color: #313a40; }
.offers-table tbody tr:hover { background: #f5f2ec; }
.offer-row.not-matched { background: #f8f6f2; }
.badge, .status-pill { border-radius: 3px; }
.class-badge { border: 1px solid #d3d0c8; background: #f0eee8; }
.price-link { color: #a83b2a; }
.status-pill.ok { color: #0c684f; background: #e4f1ec; }
.json-details { border-radius: 4px; background: #101820; }
.empty-icon, .error-page-icon { border-radius: 5px; }

/* Login */
.auth-page .container { width: min(1180px, calc(100% - 48px)); }
.auth-shell { min-height: 650px; grid-template-columns: 1.18fr .82fr; border-color: #c6c1b7; border-radius: 9px; box-shadow: var(--shadow-lg); }
.auth-visual { padding: 50px; background-image: linear-gradient(180deg, rgba(7,13,18,.08), rgba(7,13,18,.9)), url("images/rail-journey.jpg"); }
.auth-visual::after { background: linear-gradient(90deg, rgba(221,75,50,.18), transparent 45%); }
.auth-visual h1 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(46px, 5.5vw, 72px); font-weight: 650; line-height: .98; }
.auth-card { padding: 52px; background: #fffdfa; }
.auth-icon { border: 1px solid #c5c0b6; border-radius: 5px; color: #101820; background: transparent; }
.auth-note { border: 1px solid #ddd8ce; border-radius: 5px; background: #f6f3ed; }
.error-page { border-top: 4px solid #dd4b32; }

@media (max-width: 980px) {
  .dashboard-hero { min-height: 440px; }
  .dashboard-hero-main { max-width: 62%; }
  .dashboard-hero::before { width: 34%; }
  .dashboard-hero::after { right: 22%; }
  .hero-metrics { width: 62%; grid-template-columns: repeat(2,1fr); row-gap: 12px; }
}

@media (max-width: 760px) {
  .topbar-inner, .container, .auth-page .container { width: min(100% - 28px, 1340px); }
  .brand-copy small { display: none; }
  .container { padding-top: 30px; }
  .dashboard-hero { min-height: 540px; padding: 30px 24px 24px; }
  .dashboard-hero-main { max-width: none; }
  .dashboard-hero h1 { font-size: 48px; }
  .dashboard-hero::before { inset: auto 24px 116px; width: auto; height: 155px; }
  .dashboard-hero::after { right: 37px; bottom: 128px; width: 116px; height: 72px; border-width: 5px; }
  .hero-metrics { width: 100%; grid-template-columns: repeat(4,1fr); margin-top: 196px; }
  .hero-metrics > div { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding: 0; text-align: center; }
  .metric-icon { grid-row: auto; justify-self: center; margin-bottom: 5px; }
  .page-head, .section-title { padding-bottom: 16px; }
  .form-section { padding: 22px 19px; }
  .advanced-divider { align-items: flex-start; flex-direction: column; gap: 3px; }
  .detail-hero { min-height: 350px; padding: 26px; }
  .detail-route { font-size: 40px; }
  .auth-card { padding: 34px 26px; }
}

@media (max-width: 500px) {
  h1 { font-size: 42px; }
  .dashboard-hero { min-height: 570px; }
  .dashboard-hero h1 { font-size: 43px; }
  .dashboard-hero::before { bottom: 136px; }
  .dashboard-hero::after { bottom: 148px; }
  .hero-metrics { grid-template-columns: repeat(4,1fr); margin-top: 198px; }
  .hero-metrics > div > span:last-child { font-size: 8px; }
  .watch-cover { min-height: 170px; }
  .watch-route { font-size: 25px; }
  .form-actions { padding: 8px; }
  .form-actions .button, .form-actions button { font-size: 11px; padding-inline: 8px; }
}

/* Reference-matched application shell (light + dark) */
html[data-theme="light"] {
  color-scheme: light;
  --app-bg: #f8f9fc;
  --sidebar-bg: #ffffff;
  --panel-bg: #ffffff;
  --panel-soft: #f7f8fc;
  --panel-hover: #f4f5fb;
  --app-text: #171a23;
  --app-muted: #73798a;
  --app-line: #e5e7ee;
  --app-shadow: 0 1px 2px rgba(20,25,40,.025), 0 8px 24px rgba(35,40,65,.035);
  --purple: #6847e8;
  --purple-soft: #f0edff;
  --blue-app: #3d72ed;
  --green-app: #20a56f;
  --red-app: #d95263;
  --amber-app: #d78922;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --app-bg: #0b1220;
  --sidebar-bg: #101a2a;
  --panel-bg: #141e2d;
  --panel-soft: #111a28;
  --panel-hover: #182436;
  --app-text: #f2f5fb;
  --app-muted: #929daf;
  --app-line: #243144;
  --app-shadow: 0 12px 35px rgba(0,0,0,.12);
  --purple: #8065f5;
  --purple-soft: #29234a;
  --blue-app: #4e8cff;
  --green-app: #3dc891;
  --red-app: #ff6f7c;
  --amber-app: #eba84f;
  --text: #f2f5fb;
  --muted: #929daf;
  --line: #2b3748;
  --surface: #141e2d;
}

html[data-theme="dark"] .status-pill {
  color: #aeb8c8;
  background: #1c2736;
  box-shadow: inset 0 0 0 1px rgba(146, 157, 175, .14);
}
html[data-theme="dark"] .status-pill.ok {
  color: #6bcaa7;
  background: #173129;
  box-shadow: inset 0 0 0 1px rgba(61, 200, 145, .15);
}
html[data-theme="dark"] .status-pill.partial {
  color: #d8ad68;
  background: #302719;
  box-shadow: inset 0 0 0 1px rgba(235, 168, 79, .16);
}
html[data-theme="dark"] .status-pill.error,
html[data-theme="dark"] .status-pill.blocked {
  color: #e38d96;
  background: #352127;
  box-shadow: inset 0 0 0 1px rgba(255, 111, 124, .15);
}

html, body { min-height: 100%; }
body, body::before { background: var(--app-bg); }
body::before, .ambient-bg { display: none; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0,1fr); background: var(--app-bg); color: var(--app-text); }
.sidebar { position: sticky; top: 0; z-index: 100; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 18px; border-right: 1px solid var(--app-line); background: var(--sidebar-bg); }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--app-text); text-decoration: none; }
.sidebar-brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50% 50% 50% 14px; color: #fff; background: linear-gradient(135deg, #3c83f4, #7447ec); box-shadow: 0 8px 20px rgba(81,81,229,.24); }
.sidebar-brand-mark .icon { width: 20px; height: 20px; }
.sidebar-brand strong, .sidebar-brand small { display: block; }.sidebar-brand strong { font-size: 17px; letter-spacing: -.03em; }.sidebar-brand small { margin-top: 2px; color: var(--app-muted); font-size: 10px; font-weight: 500; }
.sidebar-new { min-height: 41px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 26px 5px 20px; border-radius: 8px; color: #fff; background: linear-gradient(110deg, #5a62f0, #7947e8); text-decoration: none; font-size: 12px; font-weight: 750; box-shadow: 0 8px 20px rgba(100,75,231,.2); transition: transform .18s ease, box-shadow .18s ease; }
.sidebar-new:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 25px rgba(100,75,231,.3); }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav > a { min-height: 41px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border-radius: 7px; color: var(--app-muted); text-decoration: none; font-size: 12px; font-weight: 620; transition: color .16s ease, background .16s ease; }
.sidebar-nav > a .icon { width: 17px; height: 17px; }
.sidebar-nav > a:hover { color: var(--app-text); background: var(--panel-soft); }
.sidebar-nav > a.is-active { color: var(--purple); background: var(--purple-soft); font-weight: 760; }
.sidebar-menu-glyph { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #6250e9; background: linear-gradient(145deg,#eeeaff,#ddd7ff); box-shadow: inset 0 0 0 1px rgba(100,80,233,.1); }
.sidebar-menu-glyph .icon { width: 16px; height: 16px; }
.sidebar-nav-label { margin: 17px 11px 5px; color: var(--app-muted); font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 9px; border: 1px solid var(--app-line); border-radius: 9px; }
.sidebar-user, .admin-user-cell { min-width: 0; display: flex; align-items: center; gap: 9px; }
.sidebar-user { color: inherit; text-decoration: none; border-radius: 7px; }
.sidebar-user:hover strong { color: var(--purple); }
.user-avatar { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #39475b, #6c7e95); font-size: 12px; font-weight: 800; }
.sidebar-user > span:last-child, .admin-user-cell > span:last-child { min-width: 0; }
.sidebar-user strong, .sidebar-user small, .admin-user-cell strong, .admin-user-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { max-width: 120px; color: var(--app-text); font-size: 11px; }.sidebar-user small { margin-top: 2px; color: var(--app-muted); font-size: 9px; }
.sidebar-footer form { margin: 0; }.sidebar-logout { width: 28px; height: 28px; display: grid; place-items: center; border: 0; color: var(--app-muted); background: transparent; cursor: pointer; }.sidebar-logout:hover { color: var(--red-app); }
.sidebar-scrim { display: none; }
.app-workspace { min-width: 0; }
.workspace-bar { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 30px; background: var(--app-bg); }
.workspace-context { color: var(--app-muted); font-size: 11px; font-weight: 650; }
.workspace-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.workspace-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--app-line); border-radius: 8px; color: var(--app-text); background: var(--panel-bg); text-decoration: none; cursor: pointer; }
.workspace-icon:hover { color: var(--purple); border-color: var(--purple); }
.workspace-icon .theme-dark-icon { display: none; }.workspace-icon > .icon { width: 17px; height: 17px; }
html[data-theme="dark"] .workspace-icon[data-theme-toggle] > .icon:first-child { display: none; }
html[data-theme="dark"] .workspace-icon[data-theme-toggle] .theme-dark-icon { display: grid; }
.mobile-menu { display: none; }
.app-container { width: min(1240px, calc(100% - 58px)); padding: 0 0 70px; }
.public-shell { min-height: 100vh; background: var(--app-bg); }.public-container { padding-top: 50px; }

.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 5px 0 22px; }
.dashboard-heading h1 { margin: 0; color: var(--app-text); font-family: inherit; font-size: clamp(26px,3vw,34px); font-weight: 780; letter-spacing: -.035em; }
.dashboard-heading h1 span { font-size: .7em; }.dashboard-heading p { margin: 7px 0 0; color: var(--app-muted); font-size: 12px; }
.mobile-primary { display: none; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.kpi-card { min-height: 104px; display: flex; align-items: center; gap: 14px; padding: 17px; border: 1px solid var(--app-line); border-radius: 9px; background: var(--panel-bg); box-shadow: var(--app-shadow); }
.kpi-icon { width: 45px; height: 45px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; }.kpi-icon .icon { width: 22px; height: 22px; }
.kpi-card div { min-width: 0; }.kpi-card small, .kpi-card span { display: block; }.kpi-card small { color: var(--app-muted); font-size: 9px; font-weight: 670; text-transform: uppercase; letter-spacing: .04em; }.kpi-card strong { display: block; margin: 4px 0 3px; color: var(--app-text); font-size: 23px; line-height: 1; }.kpi-card div > span { color: var(--app-muted); font-size: 9px; }
.kpi-blue .kpi-icon { color: var(--blue-app); background: rgba(61,114,237,.14); }.kpi-green .kpi-icon { color: var(--green-app); background: rgba(32,165,111,.13); }.kpi-violet .kpi-icon { color: var(--purple); background: rgba(104,71,232,.13); }.kpi-amber .kpi-icon { color: var(--amber-app); background: rgba(215,137,34,.13); }.kpi-red .kpi-icon { color: var(--red-app); background: rgba(217,82,99,.13); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(330px,.85fr); gap: 16px; align-items: start; }
.dashboard-panel { min-width: 0; border: 1px solid var(--app-line); border-radius: 9px; background: var(--panel-bg); box-shadow: var(--app-shadow); }
.panel-heading { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px; border-bottom: 1px solid var(--app-line); }
.panel-heading h2 { margin: 0; color: var(--app-text); font-family: inherit; font-size: 15px; font-weight: 780; letter-spacing: -.015em; }.panel-heading p { margin: 4px 0 0; color: var(--app-muted); font-size: 9px; }
.panel-action { min-height: 31px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border: 1px solid var(--app-line); border-radius: 6px; color: var(--app-text); background: var(--panel-bg); text-decoration: none; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }.panel-action:hover { color: var(--purple); border-color: var(--purple); }
.panel-count { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--purple); background: var(--purple-soft); font-size: 10px; font-weight: 800; }
.monitor-tabs { display: flex; align-items: center; gap: 8px; padding: 10px 14px 6px; }
.monitor-tabs a { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 9px; border-radius: 6px; color: var(--app-muted); text-decoration: none; font-size: 10px; }.monitor-tabs a.is-active { color: var(--purple); background: var(--purple-soft); font-weight: 750; }.monitor-tabs b { min-width: 16px; height: 16px; display: grid; place-items: center; border-radius: 5px; background: rgba(104,71,232,.1); font-size: 8px; }
.monitor-list { padding: 7px 12px 12px; }
.monitor-row { min-height: 88px; display: grid; grid-template-columns: 56px minmax(0,1fr) auto 18px; align-items: center; gap: 12px; padding: 10px 11px; border: 1px solid var(--app-line); border-radius: 7px; color: var(--app-text); text-decoration: none; }.monitor-row + .monitor-row { margin-top: 7px; }.monitor-row:hover { border-color: rgba(104,71,232,.65); background: var(--panel-hover); }
.monitor-type { width: 56px; height: 56px; }.best-kind { width: 48px; height: 48px; }.monitor-type, .best-kind { display: grid; place-items: center; border-radius: 11px; }
.transport-art { position: relative; overflow: hidden; isolation: isolate; background: #152037; box-shadow: 0 5px 14px rgba(11,24,48,.16); }
.transport-art::after { content: ""; position: absolute; z-index: 1; inset: 0; border: 1px solid rgba(255,255,255,.22); border-radius: inherit; pointer-events: none; }
.transport-art img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.monitor-row:hover .transport-art img, .best-offer:hover .transport-art img { transform: scale(1.08); filter: saturate(1.08) contrast(1.03); }
.monitor-main { min-width: 0; }.monitor-main > strong, .monitor-main > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.monitor-main > strong { font-size: 12px; }.monitor-main > small { margin-top: 3px; color: var(--app-muted); font-size: 9px; }
.monitor-state { display: inline-flex; width: fit-content; margin-top: 5px; padding: 2px 5px; border-radius: 4px; font-size: 8px; }.monitor-state.active { color: var(--green-app); background: rgba(32,165,111,.1); }.monitor-state.paused { color: var(--amber-app); background: rgba(215,137,34,.1); }
.monitor-result { text-align: right; }.monitor-result strong, .monitor-result small { display: block; white-space: nowrap; }.monitor-result strong { font-size: 13px; }.monitor-result small { margin-top: 4px; color: var(--green-app); font-size: 9px; }.monitor-arrow { color: var(--app-muted); }
.best-list { padding: 12px; }.best-offer { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 76px; padding: 12px 10px; border: 1px solid var(--app-line); border-left: 2px solid var(--blue-app); border-radius: 7px; color: var(--app-text); text-decoration: none; }.best-offer.air { border-left-color: var(--purple); }.best-offer + .best-offer { margin-top: 9px; }.best-offer:hover { background: var(--panel-hover); }
.best-main { min-width: 0; }.best-main > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.best-main strong { font-size: 11px; }.best-main small { margin-top: 3px; color: var(--app-muted); font-size: 9px; }.best-main span { margin-top: 5px; color: var(--app-muted); font-size: 8px; }
.best-price { text-align: right; }.best-price strong, .best-price small { display: block; white-space: nowrap; }.best-price strong { font-size: 14px; }.best-price small { margin-top: 6px; color: var(--purple); font-size: 8px; }
.dashboard-empty { display: grid; justify-items: center; gap: 8px; padding: 35px 20px; text-align: center; }.dashboard-empty > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: var(--purple); background: var(--purple-soft); }.dashboard-empty h3 { margin: 0; color: var(--app-text); font-size: 14px; }.dashboard-empty p { max-width: 330px; margin: 0; color: var(--app-muted); font-size: 10px; }.dashboard-empty.compact-empty { padding: 28px 16px; }
.activity-panel { margin-top: 16px; }.activity-list { padding: 4px 16px 10px; }.activity-row { min-height: 48px; display: grid; grid-template-columns: 8px minmax(220px,1fr) minmax(150px,.7fr) 120px 74px; align-items: center; gap: 10px; border-bottom: 1px solid var(--app-line); color: var(--app-muted); font-size: 9px; }.activity-row:last-child { border-bottom: 0; }.activity-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--app-muted); }.activity-dot.ok { background: var(--green-app); }.activity-dot.partial { background: var(--amber-app); }.activity-dot.error, .activity-dot.blocked { background: var(--red-app); }.activity-route { display: flex; align-items: center; gap: 7px; color: var(--app-text); }.activity-route strong { font-size: 10px; }

/* Admin */
.admin-kicker, .admin-live { display: inline-flex; align-items: center; gap: 6px; color: var(--purple); font-size: 9px; font-weight: 750; }.admin-kicker { margin-bottom: 8px; text-transform: uppercase; letter-spacing: .1em; }.admin-live { padding: 7px 10px; border: 1px solid var(--app-line); border-radius: 6px; background: var(--panel-bg); }.admin-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-app); box-shadow: 0 0 0 4px rgba(32,165,111,.1); }
.admin-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 16px; align-items: start; }.admin-side { display: grid; gap: 16px; }
.admin-table-wrap { overflow: auto; }.admin-table { min-width: 900px; }.admin-table th { color: var(--app-muted); background: var(--panel-soft); }.admin-table td { color: var(--app-text); background: var(--panel-bg); font-size: 10px; }.admin-user-cell strong { max-width: 170px; font-size: 10px; }.admin-user-cell small, .cell-note { display: block; margin-top: 3px; color: var(--app-muted); font-size: 8px; }.cell-note.danger { color: var(--red-app); }
.role-badge, .severity { display: inline-flex; padding: 3px 6px; border-radius: 4px; color: var(--app-muted); background: var(--panel-soft); font-size: 8px; font-weight: 750; }.role-badge.admin { color: var(--purple); background: var(--purple-soft); }.severity.warning { color: var(--amber-app); background: rgba(215,137,34,.11); }.severity.error { color: var(--red-app); background: rgba(217,82,99,.11); }
.admin-actions { position: relative; }.admin-actions > summary { list-style: none; color: var(--app-muted); }.admin-actions > div { position: absolute; z-index: 10; top: 23px; right: 0; width: 170px; padding: 5px; border: 1px solid var(--app-line); border-radius: 6px; background: var(--panel-bg); box-shadow: var(--app-shadow); }.admin-actions form { margin: 0; }.admin-actions button { width: 100%; min-height: 31px; border: 0; border-radius: 4px; padding: 0 8px; color: var(--app-text); background: transparent; text-align: left; font: inherit; font-size: 9px; cursor: pointer; }.admin-actions button:hover { background: var(--panel-hover); }.admin-actions button:disabled { opacity: .35; cursor: not-allowed; }
.admin-actions button.admin-delete-user { color: var(--red-app); }
.admin-actions button.admin-delete-user:hover { color: #fff; background: var(--red-app); }
.security-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--purple); background: var(--purple-soft); }.admin-settings-form { padding: 14px 16px; gap: 11px; }.admin-settings-form label { color: var(--app-muted); font-size: 9px; }.admin-settings-form input { min-height: 37px; }.admin-settings-form .button-primary { min-height: 38px; box-shadow: none; }
.security-checklist { display: grid; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--app-line); }.security-checklist span { display: flex; align-items: center; gap: 6px; color: var(--app-muted); font-size: 9px; }.security-checklist .icon { color: var(--green-app); }
.attack-sources .panel-heading > strong { color: var(--red-app); font-size: 20px; }.source-row { display: grid; grid-template-columns: minmax(0,1fr) 30px 95px; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--app-line); color: var(--app-text); font-size: 9px; }.source-row:last-child { border-bottom: 0; }.source-row time { color: var(--app-muted); text-align: right; }.safe-state { display: flex; align-items: center; gap: 8px; padding: 22px 16px; color: var(--green-app); font-size: 9px; }
.security-log { margin-top: 16px; }.security-log select { min-height: 34px; padding: 5px 28px 5px 9px; font-size: 9px; }.event-table code { color: var(--app-text); font-size: 8px; }.ua-cell { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--app-muted); font-size: 8px; }
.admin-dialog { width: min(440px,calc(100% - 30px)); padding: 0; border: 1px solid var(--app-line); border-radius: 10px; color: var(--app-text); background: var(--panel-bg); box-shadow: 0 30px 90px rgba(0,0,0,.3); }.admin-dialog::backdrop { background: rgba(5,9,16,.58); backdrop-filter: blur(3px); }.admin-dialog > form > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 18px; border-bottom: 1px solid var(--app-line); }.admin-dialog h2 { margin: 0; color: var(--app-text); font-family: inherit; font-size: 18px; }.admin-dialog header p { margin: 4px 0 0; color: var(--app-muted); font-size: 10px; }.admin-dialog header button { border: 0; color: var(--app-muted); background: transparent; font-size: 22px; cursor: pointer; }.admin-dialog .stack { padding: 18px; }.admin-check { flex-direction: row; }

/* Account */
.account-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--purple); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }.account-kicker .icon { width: 15px; height: 15px; }
.security-state { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid color-mix(in srgb,var(--green-app) 30%,var(--app-line)); border-radius: 7px; color: var(--green-app); background: color-mix(in srgb,var(--green-app) 8%,var(--panel-bg)); font-size: 9px; font-weight: 750; }.security-state .icon { width: 14px; height: 14px; }
.account-grid { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(340px,1.2fr); gap: 16px; align-items: start; }.account-card,.account-password-card { overflow: hidden; }.account-avatar { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#4757dc,#8a55e8); font-size: 17px; font-weight: 850; box-shadow: 0 8px 22px rgba(91,73,220,.24); }
.account-facts { margin: 0; padding: 6px 20px 20px; }.account-facts > div { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--app-line); }.account-facts > div:last-child { border-bottom: 0; }.account-facts dt { color: var(--app-muted); font-size: 9px; font-weight: 700; }.account-facts dd { margin: 0; color: var(--app-text); font-size: 10px; font-weight: 750; }.account-facts dd small { display: block; margin-top: 4px; color: var(--app-muted); font-size: 8px; font-weight: 500; }
.account-password-form { gap: 14px; padding: 7px 20px 18px; }.account-password-form label { gap: 6px; color: var(--app-muted); font-size: 9px; font-weight: 700; }.account-password-form input { min-height: 42px; }.account-password-form button { justify-content: center; }.account-security-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 14px 20px; border-top: 1px solid var(--app-line); color: var(--app-muted); background: var(--panel-soft); font-size: 9px; line-height: 1.55; }.account-security-note .icon { width: 15px; height: 15px; flex: 0 0 auto; color: var(--purple); }
@media (max-width: 800px) { .account-grid { grid-template-columns: 1fr; }.security-state { display: none; } }

/* Existing forms and details inherit the two themes */
.app-authenticated .panel, .app-authenticated .form-section, .app-authenticated .empty, .app-authenticated .date-panel, .app-authenticated .choice-card, .app-authenticated .toggle-line, .app-authenticated .passenger-panel, .app-authenticated .stats > div, .app-authenticated .table-wrap, .app-authenticated .selection-bar, .app-authenticated .action-toolbar, .app-authenticated .filter-summary { color: var(--app-text); border-color: var(--app-line); background: var(--panel-bg); box-shadow: var(--app-shadow); }
.app-authenticated h1, .app-authenticated h2, .app-authenticated h3, .app-authenticated label, .app-authenticated td { color: var(--app-text); }
.app-authenticated h1 { font-family: inherit; }.app-authenticated input, .app-authenticated select { color: var(--app-text); border-color: var(--app-line); background: var(--panel-soft); }.app-authenticated input::placeholder { color: var(--app-muted); }.app-authenticated .section-title, .app-authenticated .page-head { border-color: var(--app-line); }.app-authenticated .section-count, .app-authenticated .filter-chip, .app-authenticated .class-badge { color: var(--app-text); border-color: var(--app-line); background: var(--panel-soft); }.app-authenticated th { color: var(--app-muted); background: var(--panel-soft); }.app-authenticated td { border-color: var(--app-line); background: var(--panel-bg); }.app-authenticated .form-actions { border-color: var(--app-line); background: color-mix(in srgb, var(--app-bg) 92%, transparent); }.app-authenticated .station-suggestions, .app-authenticated .station-option { color: var(--app-text); border-color: var(--app-line); background: var(--panel-bg); }.app-authenticated .station-option:hover, .app-authenticated .station-option.is-active { background: var(--panel-hover); }
.app-authenticated .button-primary { color: #fff; background: linear-gradient(110deg,#536ff0,#734be9); border-color: transparent; box-shadow: 0 7px 18px rgba(92,77,230,.19); }.app-authenticated .button-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(92,77,230,.26); }.app-authenticated .button-soft { color: var(--purple); border-color: var(--app-line); background: var(--purple-soft); }.app-authenticated .button-ghost { color: var(--app-text); border-color: var(--app-line); background: var(--panel-bg); }
.app-authenticated .detail-hero { border-radius: 10px; }.app-authenticated .stats > div::after { display: none; }

html[data-theme="dark"] .flash.success { color: #77dcb9; background: #143326; border-color: #245742; } html[data-theme="dark"] .flash.error { color: #ff9ba4; background: #3a1f28; border-color: #62323c; }
html[data-theme="dark"] .public-shell { background: #0b1220; }
html[data-theme="dark"] .auth-shell, html[data-theme="dark"] .auth-card { color: var(--app-text); border-color: var(--app-line); background: var(--panel-bg); }
html[data-theme="dark"] .auth-card h2, html[data-theme="dark"] .auth-card label { color: var(--app-text); }
html[data-theme="dark"] .auth-note { color: var(--app-muted); border-color: var(--app-line); background: var(--panel-soft); }

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 210px minmax(0,1fr); }
  .dashboard-grid, .admin-layout { grid-template-columns: 1fr; }
  .admin-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: 236px; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0,0,0,.18); }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 90; border: 0; background: rgba(5,9,15,.46); }.sidebar-open .sidebar-scrim { display: block; }
  .mobile-menu { display: grid; }.workspace-context { display: none; }.workspace-bar { padding: 0 14px; }
  .app-container { width: min(100% - 28px,1240px); }
  .mobile-primary { display: inline-flex; }
  .dashboard-heading { align-items: flex-start; }.dashboard-heading h1 { font-size: 25px; }
  .activity-row { grid-template-columns: 8px 1fr auto; padding: 9px 0; }.activity-row > span:nth-child(3), .activity-row time { display: none; }
  .admin-side { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-card { min-height: 88px; }
  .dashboard-heading .mobile-primary { display: none; }
  .monitor-row { grid-template-columns: 48px minmax(0,1fr) auto; }.monitor-type { width: 48px; height: 48px; }.monitor-arrow { display: none; }.monitor-result strong { font-size: 11px; }
  .best-offer { grid-template-columns: 44px minmax(0,1fr); }.best-kind { width: 44px; height: 44px; }.best-price { grid-column: 2; display: flex; align-items: center; justify-content: space-between; text-align: left; }
}

/* KPI artwork and personal Telegram center */
.sidebar { overflow-y: auto; }
.nav-connected { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--green-app); box-shadow: 0 0 0 3px rgba(32,165,111,.12); }
.telegram-nudge { position: relative; overflow: hidden; margin-top: auto; padding: 14px; border: 1px solid rgba(104,71,232,.14); border-radius: 10px; background: linear-gradient(145deg,rgba(105,78,236,.09),rgba(52,156,232,.07)); }
.telegram-nudge::after { content: ""; position: absolute; right: -22px; bottom: -28px; width: 74px; height: 74px; border-radius: 50%; background: rgba(104,71,232,.08); }
.telegram-nudge-art { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 9px; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#35aee2,#5577ee); box-shadow: 0 7px 16px rgba(49,156,221,.25); }
.telegram-nudge-art .icon { width: 17px; height: 17px; }
.telegram-nudge strong { position: relative; z-index: 1; display: block; color: var(--app-text); font-size: 10px; }
.telegram-nudge p { position: relative; z-index: 1; margin: 5px 0 11px; color: var(--app-muted); font-size: 8px; line-height: 1.5; }
.telegram-nudge a { position: relative; z-index: 1; min-height: 29px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--app-line); border-radius: 6px; color: var(--purple); background: var(--panel-bg); text-decoration: none; font-size: 8px; font-weight: 750; }
.telegram-nudge + .sidebar-footer { margin-top: 12px; }
.kpi-icon.kpi-art { width: 56px; height: 56px; overflow: hidden; border-radius: 13px; box-shadow: 0 7px 18px rgba(24,38,70,.12); }
.kpi-art img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .4s cubic-bezier(.2,.7,.2,1),filter .4s ease; }
.kpi-art .theme-art-dark { display: none; }
html[data-theme="dark"] .kpi-art .theme-art-light { display: none; }
html[data-theme="dark"] .kpi-art .theme-art-dark { display: block; }
.kpi-card:hover .kpi-art img { transform: scale(1.07); filter: saturate(1.06) contrast(1.02); }

.auth-icon.auth-art,
.flash-icon.flash-auth-art {
  overflow: hidden;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(104, 71, 232, .18);
  box-shadow: 0 7px 18px rgba(42, 59, 110, .14);
}
.auth-icon.auth-art { border-radius: 11px; }
.flash-icon.flash-auth-art { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; }
.auth-art img,
.flash-auth-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.auth-art .theme-art-dark,
.flash-auth-art .theme-art-dark { display: none; }
html[data-theme="dark"] .auth-art .theme-art-light,
html[data-theme="dark"] .flash-auth-art .theme-art-light { display: none; }
html[data-theme="dark"] .auth-art .theme-art-dark,
html[data-theme="dark"] .flash-auth-art .theme-art-dark { display: block; }
html[data-theme="dark"] .auth-icon.auth-art,
html[data-theme="dark"] .flash-icon.flash-auth-art {
  border-color: rgba(139, 157, 205, .2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .26);
}
.telegram-admin-state { display: inline-flex; align-items: center; gap: 5px; color: var(--app-muted); white-space: nowrap; font-size: 8px; }
.telegram-admin-state .icon { width: 13px; height: 13px; }
.telegram-admin-state.connected { color: #229f74; }

.telegram-kicker { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #299bd1; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.telegram-kicker .icon { width: 15px; height: 15px; }
.telegram-bot-link { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border: 1px solid var(--app-line); border-radius: 8px; color: #299bd1; background: var(--panel-bg); text-decoration: none; font-size: 10px; font-weight: 760; }
.telegram-bot-link .icon { width: 14px; }
.telegram-bot-link.is-label { cursor: default; }
.telegram-hero { position: relative; min-height: 370px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(300px,.95fr); overflow: hidden; border: 1px solid var(--app-line); border-radius: 14px; background: radial-gradient(circle at 82% 22%,rgba(66,176,230,.22),transparent 34%),linear-gradient(135deg,#f8fbff,#f1f2ff); box-shadow: var(--app-shadow); }
.telegram-hero.is-connected { background: radial-gradient(circle at 82% 22%,rgba(32,165,111,.2),transparent 34%),linear-gradient(135deg,#f8fffc,#eff8f5); }
.telegram-hero-copy { position: relative; z-index: 2; align-self: center; padding: 42px 46px; }
.telegram-hero-copy h2 { margin: 14px 0 10px; color: var(--app-text); font-size: clamp(25px,3vw,38px); letter-spacing: -.035em; }
.telegram-hero-copy > p { max-width: 570px; margin: 0 0 22px; color: var(--app-muted); font-size: 11px; line-height: 1.65; }
.telegram-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(217,82,99,.16); border-radius: 999px; color: var(--red-app); background: rgba(217,82,99,.07); font-size: 8px; font-weight: 780; text-transform: uppercase; letter-spacing: .06em; }
.telegram-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(217,82,99,.09); }
.is-connected .telegram-status { color: var(--green-app); border-color: rgba(32,165,111,.16); background: rgba(32,165,111,.07); }
.is-connected .telegram-status i { box-shadow: 0 0 0 4px rgba(32,165,111,.09); }
.telegram-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.telegram-actions form { margin: 0; }
.telegram-actions .button { min-height: 40px; font-size: 10px; }
.telegram-connect-button { min-height: 43px; gap: 8px; }
.telegram-connect-button .icon { width: 16px; height: 16px; }
.telegram-account { width: fit-content; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 10px 13px; border: 1px solid var(--app-line); border-radius: 9px; background: color-mix(in srgb,var(--panel-bg) 84%,transparent); }
.telegram-account-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#31aee3,#5576ed); }
.telegram-account-icon .icon { width: 17px; }
.telegram-account strong,.telegram-account small { display: block; }
.telegram-account strong { color: var(--app-text); font-size: 10px; }
.telegram-account small { margin-top: 3px; color: var(--app-muted); font-size: 8px; }
.telegram-link-ready { width: fit-content; display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 9px 12px; border: 1px solid rgba(32,165,111,.16); border-radius: 8px; background: rgba(32,165,111,.07); }
.telegram-link-ready > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green-app); }
.telegram-link-ready strong,.telegram-link-ready small { display: block; }
.telegram-link-ready strong { color: var(--app-text); font-size: 9px; }
.telegram-link-ready small { margin-top: 2px; color: var(--app-muted); font-size: 8px; }
.telegram-manual-command { max-width: 570px; margin-top: 17px; padding: 12px; border: 1px dashed color-mix(in srgb,var(--purple) 30%,var(--app-line)); border-radius: 9px; background: color-mix(in srgb,var(--panel-bg) 74%,transparent); }
.telegram-manual-command > span strong,.telegram-manual-command > span small { display: block; }
.telegram-manual-command > span strong { color: var(--app-text); font-size: 9px; }
.telegram-manual-command > span small { margin-top: 3px; color: var(--app-muted); font-size: 8px; }
.telegram-manual-command > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-top: 9px; }
.telegram-manual-command code { min-width: 0; overflow: hidden; padding: 9px 10px; border: 1px solid var(--app-line); border-radius: 6px; color: var(--app-text); background: var(--panel-soft); text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.telegram-manual-command code.copy-failed { white-space: normal; overflow-wrap: anywhere; }
.telegram-manual-command button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 6px; color: #fff; background: linear-gradient(135deg,#34aee1,#596eea); font: inherit; font-size: 8px; font-weight: 780; cursor: pointer; }
.telegram-manual-command button.is-copied { background: var(--green-app); }
.telegram-config-warning { max-width: 560px; display: flex; align-items: flex-start; gap: 8px; padding: 12px; border: 1px solid rgba(215,137,34,.2); border-radius: 8px; color: var(--amber-app); background: rgba(215,137,34,.07); font-size: 9px; line-height: 1.5; }
.telegram-config-warning .icon { width: 16px; flex: 0 0 auto; }
.telegram-config-warning code { color: inherit; }
.telegram-visual { position: relative; min-height: 370px; overflow: hidden; }
.telegram-visual::before { content: ""; position: absolute; width: 285px; height: 285px; left: 50%; top: 50%; transform: translate(-48%,-49%); border-radius: 50%; background: linear-gradient(145deg,#45b8e8,#5471ec); box-shadow: 0 30px 70px rgba(54,137,221,.28); }
.is-connected .telegram-visual::before { background: linear-gradient(145deg,#31ba8a,#3b91d6); }
.telegram-plane { position: absolute; z-index: 3; left: 50%; top: 50%; width: 116px; height: 116px; display: grid; place-items: center; transform: translate(-50%,-50%) rotate(-7deg); border-radius: 34px; color: #fff; background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.32); box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 18px 35px rgba(27,70,147,.2); backdrop-filter: blur(7px); animation: telegram-float 4.5s ease-in-out infinite; }
.telegram-plane .icon { width: 62px; height: 62px; stroke-width: 1.4; }
.telegram-orbit { position: absolute; z-index: 2; left: 50%; top: 50%; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-one { width: 340px; height: 210px; transform: translate(-50%,-50%) rotate(-16deg); }
.orbit-two { width: 220px; height: 330px; transform: translate(-50%,-50%) rotate(37deg); }
.telegram-bubble { position: absolute; z-index: 4; display: inline-flex; align-items: center; min-height: 31px; padding: 0 10px; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; color: #26517e; background: rgba(255,255,255,.84); box-shadow: 0 9px 20px rgba(21,66,125,.15); font-style: normal; font-size: 8px; font-weight: 800; backdrop-filter: blur(8px); }
.telegram-bubble.one { left: 8%; top: 30%; }
.telegram-bubble.two { right: 6%; bottom: 27%; animation: telegram-bob 5.2s ease-in-out infinite reverse; }
@keyframes telegram-float { 0%,100% { transform: translate(-50%,-50%) rotate(-7deg) translateY(0); } 50% { transform: translate(-50%,-50%) rotate(-4deg) translateY(-8px); } }
@keyframes telegram-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.telegram-steps { margin-top: 16px; padding: 22px; border: 1px solid var(--app-line); border-radius: 12px; background: var(--panel-bg); box-shadow: var(--app-shadow); }
.telegram-steps > header h2 { margin: 0; color: var(--app-text); font-size: 15px; }
.telegram-steps > header p { margin: 4px 0 0; color: var(--app-muted); font-size: 9px; }
.telegram-step-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 17px; }
.telegram-step-grid article { min-height: 108px; display: flex; gap: 11px; padding: 15px; border: 1px solid var(--app-line); border-radius: 9px; background: var(--panel-soft); }
.telegram-step-grid article > span { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(135deg,#37afe1,#6360ec); font-size: 10px; font-weight: 850; }
.telegram-step-grid strong { display: block; color: var(--app-text); font-size: 10px; }
.telegram-step-grid p { margin: 5px 0 0; color: var(--app-muted); font-size: 8px; line-height: 1.55; }
.telegram-events { margin-top: 16px; }
.telegram-event-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 18px; padding: 17px; }
.telegram-event-grid span { display: flex; align-items: center; gap: 7px; color: var(--app-muted); font-size: 9px; }
.telegram-event-grid .icon { width: 14px; height: 14px; color: var(--green-app); }
html[data-theme="dark"] .telegram-nudge { border-color: rgba(100,112,245,.2); background: linear-gradient(145deg,rgba(80,91,216,.17),rgba(35,130,188,.1)); }
html[data-theme="dark"] .telegram-hero { background: radial-gradient(circle at 82% 22%,rgba(46,157,215,.18),transparent 37%),linear-gradient(135deg,#121c2d,#131a2d); }
html[data-theme="dark"] .telegram-hero.is-connected { background: radial-gradient(circle at 82% 22%,rgba(32,165,111,.17),transparent 37%),linear-gradient(135deg,#111f25,#121c2d); }
html[data-theme="dark"] .telegram-bubble { color: #dcecff; background: rgba(20,31,50,.78); border-color: rgba(255,255,255,.16); }

@media (max-width:1080px) {
  .telegram-hero { grid-template-columns: 1fr 320px; }
  .telegram-hero-copy { padding: 34px; }
}
@media (max-width:760px) {
  .telegram-hero { grid-template-columns: 1fr; }
  .telegram-visual { min-height: 290px; }
  .telegram-step-grid { grid-template-columns: 1fr; }
}
@media (max-width:520px) {
  .telegram-hero-copy { padding: 26px 20px; }
  .telegram-visual { min-height: 235px; }
  .telegram-visual::before { width: 220px; height: 220px; }
  .telegram-plane { width: 90px; height: 90px; }
  .telegram-plane .icon { width: 48px; height: 48px; }
  .telegram-event-grid { grid-template-columns: 1fr; }
  .telegram-actions { align-items: stretch; }
  .telegram-actions > *, .telegram-actions .button { width: 100%; }
  .telegram-manual-command > div { grid-template-columns: 1fr; }
  .telegram-manual-command button { width: 100%; }
}

/* Generated navigation artwork, form pictograms and dynamic page transitions */
.sidebar-nav > a { min-height: 46px; gap: 10px; padding: 0 9px; }
.sidebar-menu-art {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(73, 92, 143, .12);
  border-radius: 9px;
  box-shadow: 0 3px 9px rgba(44, 65, 112, .1);
  transition: transform .24s cubic-bezier(.2,.75,.25,1), box-shadow .24s ease, filter .24s ease;
}
.sidebar-nav > a:hover .sidebar-menu-art,
.sidebar-nav > a.is-active .sidebar-menu-art {
  transform: translateY(-1px) scale(1.045);
  box-shadow: 0 6px 14px rgba(65, 73, 180, .18);
  filter: saturate(1.08) contrast(1.02);
}
.sidebar-nav > a.is-active { box-shadow: inset 3px 0 0 var(--purple); }

.form-title-art {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: block;
  object-fit: cover;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(42, 59, 110, .11);
}
.mini-art {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: block;
  object-fit: cover;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  box-shadow: 0 5px 13px rgba(42, 59, 110, .09);
}
.form-section:hover > .form-section-head .form-title-art { transform: translateY(-1px); }
.form-title-art { transition: transform .28s cubic-bezier(.2,.75,.25,1), filter .28s ease; }

html[data-theme="dark"] .sidebar-menu-art,
html[data-theme="dark"] .form-title-art,
html[data-theme="dark"] .mini-art {
  border-color: rgba(139, 157, 205, .2);
  filter: brightness(.86) saturate(1.08) contrast(1.08);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .24);
}
html[data-theme="dark"] .sidebar-nav > a:hover .sidebar-menu-art,
html[data-theme="dark"] .sidebar-nav > a.is-active .sidebar-menu-art { filter: brightness(.96) saturate(1.14) contrast(1.08); }

.app-workspace { view-transition-name: app-workspace; }
#monitorings { position: relative; view-transition-name: monitorings-panel; transition: opacity .2s ease, transform .2s ease, filter .2s ease; }
#monitorings.is-fragment-loading { pointer-events: none; opacity: .62; filter: saturate(.72); transform: scale(.997); }
#monitorings.is-fragment-loading::after {
  content: "";
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 42%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--purple), #42b8f1, transparent);
  animation: fragment-loading 1s ease-in-out infinite;
}
body.is-page-loading::after {
  content: "";
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 236px;
  width: 30%;
  height: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #536ff0, #7e50ec, #43b8ef);
  box-shadow: 0 1px 10px rgba(104, 71, 232, .36);
  animation: page-loading 1.05s ease-in-out infinite;
}
@keyframes fragment-loading { 0% { transform: translateX(-105%); } 100% { transform: translateX(245%); } }
@keyframes page-loading { 0% { transform: translateX(-110%); } 100% { transform: translateX(350%); } }
::view-transition-old(app-workspace) { animation: .18s ease both dynamic-page-out; }
::view-transition-new(app-workspace) { animation: .3s cubic-bezier(.2,.75,.25,1) both dynamic-page-in; }
::view-transition-old(monitorings-panel) { animation: .14s ease both dynamic-panel-out; }
::view-transition-new(monitorings-panel) { animation: .26s cubic-bezier(.2,.75,.25,1) both dynamic-panel-in; }
@keyframes dynamic-page-out { to { opacity: 0; transform: translateY(4px); } }
@keyframes dynamic-page-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes dynamic-panel-out { to { opacity: 0; transform: translateX(-5px); } }
@keyframes dynamic-panel-in { from { opacity: 0; transform: translateX(7px); } }

@media (max-width: 760px) {
  body.is-page-loading::after { left: 0; }
}
@media (max-width: 520px) {
  .form-section-head { flex-wrap: wrap; }
  .form-title-art { width: 36px; height: 36px; border-radius: 10px; }
  .form-section-head > div { flex: 1 1 calc(100% - 92px); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(app-workspace), ::view-transition-new(app-workspace),
  ::view-transition-old(monitorings-panel), ::view-transition-new(monitorings-panel) { animation-duration: .01ms; }
}

/* Dynamic filtering and sorting for the latest results table */
.offers-result-count {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  color: var(--app-muted);
  background: var(--panel-bg);
  font-size: 9px;
  font-weight: 720;
  white-space: nowrap;
}
.offer-clear-filters { min-height: 34px !important; }
.offers-table { position: relative; }
.offers-table table { min-width: 1580px; }
.offers-table.has-no-results::after {
  content: "По выбранным фильтрам ничего не найдено";
  display: block;
  min-width: 100%;
  padding: 30px 18px;
  color: var(--app-muted);
  background: var(--panel-bg);
  text-align: center;
  font-size: 11px;
}
.offer-heading-row th { height: 41px; padding-top: 6px; padding-bottom: 6px; }
.selection-column { width: 43px; min-width: 43px; }
.table-sort {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.table-sort i {
  position: relative;
  width: 12px;
  height: 15px;
  flex: 0 0 auto;
  opacity: .4;
}
.table-sort i::before,
.table-sort i::after {
  content: "";
  position: absolute;
  left: 3px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
}
.table-sort i::before { top: 1px; border-bottom: 4px solid currentColor; }
.table-sort i::after { bottom: 1px; border-top: 4px solid currentColor; }
.table-sort:hover,
.table-sort.is-sorted { color: var(--purple); }
.table-sort.is-sorted i { opacity: 1; }
.table-sort[data-sort-direction="asc"] i::after,
.table-sort[data-sort-direction="desc"] i::before { opacity: .2; }
.column-filter-row th {
  top: 41px;
  z-index: 3;
  padding: 6px 5px 8px;
  border-bottom: 1px solid var(--app-line);
  background: var(--panel-soft);
}
.column-filter-row input,
.column-filter-row select {
  min-width: 102px;
  min-height: 32px;
  height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--app-line);
  border-radius: 6px;
  color: var(--app-text);
  background: var(--panel-bg);
  font-size: 9px;
  font-weight: 600;
}
.column-filter-row input::placeholder { color: var(--app-muted); opacity: .78; }
.column-filter-row input:focus,
.column-filter-row select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px color-mix(in srgb,var(--purple) 13%,transparent); }
.clear-column-filters {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  margin: auto;
  padding: 0;
  border: 1px solid var(--app-line);
  border-radius: 6px;
  color: var(--app-muted);
  background: var(--panel-bg);
  font-size: 16px;
  cursor: pointer;
}
.clear-column-filters:hover { color: var(--red-app); border-color: var(--red-app); }
.seat-match-card {
  min-width: 238px;
  display: grid;
  gap: 6px;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid color-mix(in srgb,var(--green-app) 24%,var(--app-line));
  border-radius: 8px;
  color: var(--app-text);
  background: color-mix(in srgb,var(--green-app) 7%,var(--panel-bg));
  box-shadow: inset 3px 0 0 var(--green-app);
}
.seat-match-kicker { color: var(--green-app); font-size: 8px; font-weight: 820; letter-spacing: .07em; text-transform: uppercase; }
.seat-match-card > strong { font-size: 11px; }
.seat-number-list { display: flex; flex-wrap: wrap; gap: 5px; }
.seat-number-list b {
  display: inline-flex;
  padding: 4px 6px;
  border-radius: 5px;
  color: #176f53;
  background: rgba(32,165,111,.11);
  font-size: 8px;
  font-weight: 760;
  white-space: nowrap;
}
.seat-price-list { display: grid; gap: 2px; padding-top: 5px; border-top: 1px dashed color-mix(in srgb,var(--green-app) 25%,var(--app-line)); }
.seat-price-list small { color: var(--app-muted); font-size: 8px; }
html[data-theme="dark"] .seat-number-list b { color: #7ddfba; background: rgba(61,200,145,.13); }

@media (max-width: 760px) {
  .offers-head .table-tools { align-items: stretch; }
  .offers-result-count { width: fit-content; }
}
