/* Route U Now operations dashboard */
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-greek-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF; }

:root {
	--bg: #f4f5f7;
	--panel: #ffffff;
	--ink: #17243a;
	--ink-2: #4a5568;
	--muted: #7a8394;
	--line: #e4e7ec;
	--line-2: #eef0f3;
	--nav: #111d30;
	--nav-ink: #c9d1de;
	--nav-hover: #1b2a43;
	--gold: #e9ad43;
	--gold-ink: #8b682d;
	--gold-soft: #fbf1de;
	--blue: #2f6fde;
	--green: #1f7a4d;
	--green-soft: #e3f3ea;
	--amber: #9a6a12;
	--amber-soft: #fcf0d9;
	--red: #b42318;
	--red-soft: #fde8e7;
	--violet: #5b4bc4;
	--violet-soft: #ecebfb;
	--grey-soft: #eef0f3;
	--radius: 12px;
	--shadow: 0 1px 2px rgb(16 24 40 / .05), 0 1px 3px rgb(16 24 40 / .06);
	--shadow-lg: 0 20px 48px rgb(16 24 40 / .18);
	--font: "DM Sans", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Shell */
.ops { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.ops[data-loading] { place-items: center; grid-template-columns: 1fr; }
.side { background: var(--nav); color: var(--nav-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 14px calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 22px; color: #fff; text-decoration: none; }
.brand svg { width: 24px; height: 30px; }
.brand svg path { fill: var(--gold); }
.brand svg text { fill: var(--nav); font: 700 15px/1 var(--font); }
.brand b { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.brand b span { color: var(--gold); }
.brand small { display: block; font-size: .72rem; color: var(--nav-ink); font-weight: 500; letter-spacing: .02em; margin-top: 1px; }
.nav { display: grid; gap: 2px; }
.nav__label { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #7f8aa0; padding: 18px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: var(--nav-ink); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--nav-hover); color: #fff; }
.nav a[aria-current="page"] { background: #22324f; color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav a .count { margin-left: auto; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--nav); }
.nav a .ext { margin-left: auto; width: 14px; height: 14px; opacity: .6; }
.side__foot { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .08); }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--nav); font-weight: 700; font-size: .85rem; flex: none; }
.me b { display: block; color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.2; }
.me a { color: var(--nav-ink); font-size: .8rem; text-decoration: none; }
.me a:hover { color: #fff; text-decoration: underline; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: rgb(244 245 247 / .86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top h1 { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; }
.top .menu-btn { display: none; }
.search { margin-left: auto; position: relative; width: min(360px, 100%); }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.search kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 600 .7rem/1 var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 3px 5px; background: var(--bg); }
.content { padding: 8px 28px 48px; display: grid; gap: 20px; align-content: start; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #cfd4dc; background: #fafbfc; }
.btn--primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--primary:hover { background: #22324f; border-color: #22324f; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--nav); }
.btn--gold:hover { background: #f0bb5c; border-color: #f0bb5c; }
.btn--sm { height: 32px; padding: 0 10px; font-size: .85rem; border-radius: 8px; }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--ghost:hover { background: var(--grey-soft); border-color: transparent; }
.btn[disabled] { opacity: .55; cursor: default; }
.icon-btn { width: 38px; padding: 0; }

/* Cards and grids */
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.card__head h2 { margin: 0; font-size: .98rem; font-weight: 700; }
.card__head a, .card__head button.link { font-size: .85rem; font-weight: 600; color: var(--ink-2); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; }
.card__head a:hover, .card__head button.link:hover { color: var(--ink); text-decoration: underline; }
.card__body { padding: 14px 18px 18px; }
.kpi { padding: 16px 18px; display: grid; gap: 6px; text-decoration: none; color: inherit; position: relative; }
a.kpi:hover { border-color: #cfd4dc; }
.kpi__label { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 500; font-size: .88rem; }
.kpi__label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.kpi__value { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi__foot { font-size: .8rem; color: var(--muted); }
.delta { font-weight: 700; }
.delta--up { color: var(--green); }
.delta--down { color: var(--red); }
.kpi--warn .kpi__label .dot { background: var(--amber); }
.kpi--warn .kpi__value { color: var(--amber); }
.kpi--gold { background: var(--nav); border-color: var(--nav); color: #fff; }
.kpi--gold .kpi__label, .kpi--gold .kpi__foot { color: var(--nav-ink); }
.kpi--gold .kpi__label .dot { background: var(--gold); }
.kpi--gold .kpi__value { color: var(--gold); }

.two { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .two { grid-template-columns: minmax(0, 1fr); } }

.hello { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.hello h2 { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.hello p { margin: 2px 0 0; color: var(--ink-2); }
.alerts { display: grid; gap: 8px; }
.alert { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; background: var(--amber-soft); color: #6b4a0c; border: 1px solid #f3dfb4; font-weight: 500; }
.alert a { color: inherit; font-weight: 700; margin-left: auto; white-space: nowrap; }

/* Chart */
.chart { position: relative; }
.chart svg { width: 100%; height: 220px; display: block; overflow: visible; }
.chart .bar { fill: #d9dee7; transition: fill .12s; }
.chart .bar.has { fill: var(--ink); }
.chart .bar.today { fill: var(--gold); }
.chart .bar-hit { fill: transparent; cursor: pointer; }
.chart .grid-line { stroke: var(--line-2); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 500 11px var(--font); }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, -100%); background: var(--ink); color: #fff; padding: 7px 10px; border-radius: 8px; font-size: .8rem; white-space: nowrap; box-shadow: var(--shadow-lg); }
.chart-tip b { display: block; font-size: .9rem; }
.chart-sum { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 6px; }
.chart-sum div { display: grid; }
.chart-sum b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.chart-sum span { color: var(--muted); font-size: .8rem; }

.mix { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mix li { display: grid; gap: 6px; }
.mix__row { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; }
.mix__row b { font-variant-numeric: tabular-nums; }
.mix__bar { height: 8px; border-radius: 999px; background: var(--grey-soft); overflow: hidden; }
.mix__bar span { display: block; height: 100%; border-radius: inherit; background: var(--gold); }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line-2); }
.ride { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 11px 0; background: none; border: 0; text-align: left; cursor: pointer; }
.ride:hover .ride__route { color: var(--blue); }
.ride__when { display: grid; text-align: center; background: var(--grey-soft); border-radius: 9px; padding: 6px 4px; line-height: 1.15; }
.ride__when b { font-size: .95rem; }
.ride__when span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ride__route { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ride__meta { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 2px; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: var(--grey-soft); color: var(--ink-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill--quote_requested { background: var(--violet-soft); color: var(--violet); }
.pill--quoted { background: var(--violet-soft); color: var(--violet); }
.pill--pending_payment { background: var(--amber-soft); color: var(--amber); }
.pill--confirmed { background: #e6effd; color: #1f56b5; }
.pill--assigned, .pill--active { background: var(--green-soft); color: var(--green); }
.pill--completed { background: var(--grey-soft); color: var(--ink-2); }
.pill--cancelled, .pill--expired, .pill--suspended { background: var(--red-soft); color: var(--red); }
.pill--pending { background: var(--amber-soft); color: var(--amber); }

/* Tabs and filters */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border: 0; background: none; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs .n { font-size: .74rem; padding: 0 7px; border-radius: 999px; background: var(--grey-soft); color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; }
.field { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); min-width: 0; }
.filters .field { flex: 0 1 auto; }
.filters .field--grow { flex: 1 1 220px; }
.filters label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; }

/* Table */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
.t th { text-align: left; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tbody tr { cursor: pointer; }
.t tbody tr:hover td { background: #fafbfc; }
.t tbody tr:last-child td { border-bottom: 0; }
.t .ref { font-weight: 700; color: var(--ink); white-space: nowrap; }
.t .sub { display: block; color: var(--muted); font-size: .8rem; }
.t .route { max-width: 340px; }
.t .route b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.t .none { color: var(--amber); font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.pager div { display: flex; gap: 8px; }

/* People cards */
.people { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.person { padding: 18px; display: grid; gap: 12px; align-content: start; }
.person__head { display: flex; align-items: center; gap: 12px; }
.person__head .avatar { background: var(--ink); color: #fff; width: 42px; height: 42px; }
.person__head b { display: block; font-size: 1rem; }
.person__head span { color: var(--muted); font-size: .82rem; }
.person dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .86rem; }
.person dt { color: var(--muted); }
.person dd { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.person.is-off { opacity: .6; }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgb(17 29 48 / .38); z-index: 80; animation: fade .15s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--panel); z-index: 90; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide .2s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scrim, .drawer { animation: none; } }
.drawer__head { display: flex; align-items: flex-start; gap: 12px; padding: calc(18px + env(safe-area-inset-top, 0px)) 22px 16px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.drawer__head p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.drawer__head .btn { margin-left: auto; }
.drawer__body { overflow-y: auto; padding: 18px 22px 28px; display: grid; gap: 22px; align-content: start; flex: 1; }
.drawer__foot { padding: 14px 22px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.sec h3 { margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.journey { display: grid; gap: 10px; position: relative; padding-left: 22px; }
.journey::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.journey div { position: relative; }
.journey div::before { content: ""; position: absolute; left: -22px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 3px solid var(--ink); }
.journey div:last-child::before { border-color: var(--gold); }
.journey b { display: block; }
.journey a { font-size: .82rem; }
.action { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }
.action label { display: grid; gap: 5px; font-weight: 600; font-size: .85rem; }
.action .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.action .row > * { flex: 1 1 140px; }
.action .row > .btn { flex: 0 0 auto; }
.action .field, .action textarea { width: 100%; }
.action textarea { min-height: 70px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; resize: vertical; }
.check { display: flex !important; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; font-size: .86rem; }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c3cad6; margin-top: 6px; }
.timeline .when { color: var(--muted); font-size: .78rem; }
.timeline .note { background: var(--gold-soft); border-radius: 8px; padding: 6px 10px; margin-top: 4px; }

/* Forms in drawers */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: .86rem; }
.form .field { height: 40px; width: 100%; }

/* Toast */
.toasts { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 500; animation: fade .15s ease; }
.toast--error { background: var(--red); }

/* Loading */
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--line-2), #f8f9fb, var(--line-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; min-height: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Phones and tablets */
@media (max-width: 960px) {
	.ops { grid-template-columns: minmax(0, 1fr); }
	.side { position: fixed; inset: 0 auto 0 0; width: 272px; transform: translateX(-100%); transition: transform .2s ease; padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
	.ops.nav-open .side { transform: none; box-shadow: var(--shadow-lg); }
	.ops.nav-open::after { content: ""; position: fixed; inset: 0; background: rgb(17 29 48 / .38); z-index: 35; }
	.top .menu-btn { display: inline-flex; }
	.top { padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); flex-wrap: wrap; }
	.top h1 { font-size: 1.1rem; }
	.search { order: 3; width: 100%; margin-left: 0; }
	.search kbd { display: none; }
	.top .btn--gold span { display: none; }
	.top .btn--gold { margin-left: auto; width: 38px; padding: 0; }
	.content { padding: 4px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
	.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.kpi__value { font-size: 1.5rem; }
	.kv { grid-template-columns: 110px minmax(0, 1fr); }
	/* Tables become cards */
	table.t thead { display: none; }
	table.t, .t tbody, .t tr, .t td { display: block; width: 100%; }
	.t tr { padding: 12px 16px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
	.t td { padding: 0; border: 0; }
	.t tbody tr:hover td { background: none; }
	.t td[data-m="hide"] { display: none; }
	.t td[data-m="full"] { grid-column: 1 / -1; }
	.t td[data-m="right"] { text-align: right; }
	.t .route { max-width: none; }
	.drawer { width: 100vw; }
}
@media (max-width: 420px) { .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .kpi { padding: 12px 14px; } }

/* Team login */
.ops-login { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; background: var(--nav); }
.login { width: min(400px, 100%); display: grid; gap: 22px; }
.login__brand { display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; }
.login__brand svg { width: 26px; height: 33px; }
.login__brand svg path { fill: var(--gold); }
.login__brand svg text { fill: var(--nav); font: 700 15px/1 var(--font); }
.login__brand b { font-size: 1.3rem; }
.login__brand b span { color: var(--gold); }
.login__card { padding: 28px; }
.login__card h1 { margin: 0 0 4px; font-size: 1.3rem; }
.login__card .btn { height: 44px; width: 100%; }
.login__error { margin: 0; padding: 10px 12px; border-radius: 9px; background: var(--red-soft); color: var(--red); font-weight: 600; }
.login__lost { justify-self: center; font-size: .88rem; color: var(--ink-2); }

/* Calendar */
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cal-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-nav h2 { margin: 0 0 0 6px; font-size: 1.05rem; font-weight: 700; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: var(--panel); padding: 0 14px; height: 32px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cal-sum { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 12px 18px; color: var(--ink-2); font-size: .88rem; border-bottom: 1px solid var(--line-2); }
.cal-sum b { color: var(--ink); font-size: 1rem; margin-right: 4px; }
.cal-sum .is-warn b { color: var(--amber); }
.cal-sum .is-bad { color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.cal-sum .is-bad b { color: var(--red); }
.cal-legend { margin-left: auto; display: inline-flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: .8rem; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -8px; }
.lg--ok { background: #e6effd; border: 1px solid #9dbbef; }
.lg--open { background: var(--amber-soft); border: 1px dashed var(--amber); }
.lg--bad { background: var(--red-soft); border: 1px solid var(--red); }
.cal-note { margin: 0; padding: 12px 18px 16px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line-2); }

.tl-scroll { overflow-x: auto; }
.tl-inner { min-width: 3060px; }
.tl-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); border-bottom: 1px solid var(--line-2); min-height: 58px; }
.tl-head { min-height: 30px; position: sticky; top: 0; background: #fafbfc; z-index: 2; }
.tl-who { position: sticky; left: 0; z-index: 3; background: var(--panel); padding: 10px 14px; border-right: 1px solid var(--line); display: grid; align-content: center; }
.tl-head .tl-who { background: #fafbfc; }
.tl-who b { font-size: .9rem; }
.tl-who span { font-size: .76rem; color: var(--muted); }
.tl-who em { color: var(--red); font-style: normal; font-weight: 700; }
.tl-row--open .tl-who b { color: var(--amber); }
.tl-lane { position: relative; background-image: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px calc(100% / 24)); }
.tl-hours span { position: absolute; top: 7px; transform: translateX(4px); font-size: .72rem; color: var(--muted); font-weight: 600; }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); z-index: 1; }
.ev { position: absolute; top: 8px; bottom: 8px; display: flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 7px; border: 1px solid #9dbbef; background: #e6effd; color: #173a7a; font-size: .78rem; overflow: hidden; white-space: nowrap; cursor: pointer; text-align: left; min-width: 0; z-index: 1; }
.ev:hover { filter: brightness(.97); box-shadow: var(--shadow); z-index: 4; }
.ev span { color: inherit; opacity: .8; overflow: hidden; text-overflow: ellipsis; }
.ev .ev__ref { opacity: 1; font-weight: 600; }
.tl-lane .ev { min-width: 58px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; line-height: 1.2; padding: 0 7px; }
.tl-lane .ev b { display: flex; align-items: center; gap: 3px; }
.ev--chip .ev__ref { font-size: .78rem; }
.ev svg.i { width: 14px; height: 14px; }
.ev--open { background: var(--amber-soft); border: 1px dashed var(--amber); color: #6b4a0c; }
.ev--bad { background: var(--red-soft); border: 1.5px solid var(--red); color: var(--red); }
.ev--done { opacity: .55; }
.ev--tent { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgb(255 255 255 / .55) 6px 12px); }

.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wk-day { border-right: 1px solid var(--line-2); padding: 0 8px 12px; display: grid; gap: 6px; align-content: start; min-height: 240px; min-width: 0; }
.wk-day:last-child { border-right: 0; }
.wk-day.is-today { background: #fbf8f1; }
.wk-head { display: grid; text-align: left; border: 0; background: none; padding: 12px 4px 8px; cursor: pointer; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.wk-head b { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.wk-head span { font-size: 1.05rem; font-weight: 700; }
.wk-head em { font-style: normal; font-size: .76rem; color: var(--ink-2); }
.wk-day.is-today .wk-head span { color: var(--gold-ink); }
.ev--chip { position: static; display: grid; gap: 1px; padding: 6px 8px; white-space: normal; width: 100%; }
.ev--chip b { display: flex; align-items: center; gap: 4px; }
.ev--chip span { font-size: .74rem; white-space: nowrap; }
.wk-empty { margin: 4px; color: var(--muted); font-size: .8rem; }

.alert--red { background: var(--red-soft); color: var(--red); border-color: #f5c2bd; align-items: flex-start; }
.alert--red svg { margin-top: 2px; }
.feed { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.feed .sub { display: block; color: var(--muted); font-size: .8rem; }
.feed__url { display: flex; gap: 8px; }
.feed__url .field { flex: 1; min-width: 0; font-size: .8rem; color: var(--ink-2); }

@media (max-width: 960px) {
	.tl-inner { min-width: 2520px; }
	.tl-row { grid-template-columns: 120px minmax(0, 1fr); }
	.wk { grid-template-columns: minmax(0, 1fr); }
	.wk-day { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
	.cal-legend { margin-left: 0; }
}

.btn--danger { color: var(--red, #b42318); border-color: color-mix(in srgb, var(--red, #b42318) 35%, transparent); background: transparent; }
.btn--danger:hover { background: color-mix(in srgb, var(--red, #b42318) 8%, transparent); }
.btn--danger svg { width: 15px; height: 15px; }
.btn--danger-solid { background: var(--red, #b42318); border-color: var(--red, #b42318); color: #fff; }
.btn--danger-solid:hover { filter: brightness(.94); }
.drawer__foot--confirm { flex-direction: column; align-items: stretch; gap: 12px; background: color-mix(in srgb, var(--red, #b42318) 6%, var(--panel, #fff)); }
.confirm-del { display: grid; gap: 4px; font-size: 14px; line-height: 1.45; }
.confirm-del b { color: var(--red, #b42318); font-size: 15px; }
.confirm-del__btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Driver progress, reported from the driver app */
.step { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--amber-soft); color: var(--amber); white-space: nowrap; }
.step--accepted, .step--on_way, .step--arrived, .step--onboard { background: var(--violet-soft); color: var(--violet); }
.step--completed { background: var(--green-soft); color: var(--green); }
.app-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; margin-top: 4px; }
.app-box h3, .app-box p { margin: 0; }
.person dd .sub { display: block; }
.form label > .sub { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }

.app-box__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cred { display: grid; gap: 10px; padding-top: 4px; }
.cred__pw { display: flex; gap: 8px; }
.cred__pw .field { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cred-done { background: var(--green-soft); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; justify-items: start; }
.cred-done pre { margin: 0; font: 600 .86rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }

/* Driver profile */
.person__name { color: var(--ink); font-weight: 700; text-decoration: none; display: block; }
.person__name:hover { color: var(--blue); text-decoration: underline; }
.person__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-weight: 600; text-decoration: none; justify-self: start; }
.back-link:hover { color: var(--ink); }
.prof { padding: 20px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 20px; align-items: center; }
.prof__id { display: flex; gap: 16px; align-items: center; min-width: 0; }
.prof__id h2 { margin: 0; font-size: 1.3rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.prof__id p { margin: 4px 0 0; }
.avatar--xl { width: 64px; height: 64px; font-size: 1.3rem; background: var(--ink); color: #fff; }
.prof__kv { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; }
.prof__kv dt { color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.prof__kv dd { margin: 0; overflow-wrap: anywhere; }
.prof__kv dd .sub { display: block; }
.prof__btns { display: flex; gap: 8px; }
.prof__now { width: 100%; text-align: left; cursor: pointer; border: 1px solid var(--violet-soft); background: var(--violet-soft); color: var(--violet); font: inherit; }
.prof__now:hover { filter: brightness(.98); }
.prof__month { display: flex; align-items: center; gap: 8px; }
.prof__month b { min-width: 120px; text-align: center; font-size: .9rem; }
.mbars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 170px; align-items: end; margin: 6px 0 18px; }
.mbars button { height: 100%; display: grid; grid-template-rows: auto 1fr auto; align-items: end; justify-items: center; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer; min-width: 0; }
.mbars__v { font-size: .66rem; color: var(--muted); white-space: nowrap; overflow: hidden; max-width: 100%; }
.mbars__bar { width: 100%; max-width: 34px; background: #d6dae2; border-radius: 5px 5px 2px 2px; align-self: end; }
.mbars button:hover .mbars__bar { background: #c3c9d4; }
.mbars button[aria-pressed="true"] .mbars__bar { background: var(--gold); }
.mbars button[aria-pressed="true"] .mbars__v, .mbars button[aria-pressed="true"] small { color: var(--ink); font-weight: 700; }
.mbars small { font-size: .7rem; color: var(--muted); }
.t tfoot td { border-top: 2px solid var(--line); padding-top: 10px; font-weight: 600; }
.link-ref { border: 0; background: none; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; }
.link-ref:hover { text-decoration: underline; }
@media (max-width: 1100px) { .prof { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .mbars__v { visibility: hidden; font-size: 0; } .mbars { height: 130px; gap: 3px; } }
.prof__act .card__body { max-height: 560px; overflow: auto; }
.prof__earn .t td.route b { white-space: normal; }

/* Driver progress: five steps with the time each was reported */
.prog { display: block; min-width: 0; }
.prog ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.prog .prog__s { border-top: 0; }
.prog__s { position: relative; display: grid; justify-items: center; gap: 2px; text-align: center; padding-top: 18px; font-size: .74rem; color: var(--muted); min-width: 0; }
.prog__s::before { content: ""; position: absolute; top: 6px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.prog__s:first-child::before { display: none; }
.prog__dot { position: absolute; top: 1px; left: 50%; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line); z-index: 1; }
.prog__s b { font-weight: 600; color: var(--ink-2); line-height: 1.2; overflow-wrap: anywhere; }
.prog__s span { font-variant-numeric: tabular-nums; }
.prog__s--done::before, .prog__s--now::before { background: var(--green); }
.prog__s--done .prog__dot { background: var(--green); border-color: var(--green); }
.prog__s--now .prog__dot { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.prog__s--now b, .prog__s--now span { color: var(--violet); }
.prog__s--now::before { background: var(--violet); }
.prog__s--due .prog__dot { border-color: var(--amber); border-style: dashed; }
.prog__s--due b, .prog__s--due span { color: var(--amber); }
.prog--late .prog__s--due .prog__dot { border-color: var(--red); }
.prog--late .prog__s--due b, .prog--late .prog__s--due span { color: var(--red); }
.prog--mini { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.prog--mini ol { width: 120px; flex: none; }
.prog--mini .prog__s { padding-top: 10px; }
.prog--mini .prog__s::before { top: 3px; height: 2px; }
.prog--mini .prog__dot { width: 8px; height: 8px; margin-left: -4px; top: 0; border-width: 2px; }
.prog--mini .prog__s--now .prog__dot { box-shadow: 0 0 0 3px var(--violet-soft); }
.prog__label { font-size: .78rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.flag-note { margin-bottom: 12px; align-items: flex-start; }
.flag-note svg { margin-top: 2px; }

/* Live rides */
.lv__nav { display: flex; gap: 6px; }
.lv__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.lv__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lv__chips button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.lv__chips button .n { font-size: .74rem; padding: 0 7px; border-radius: 999px; background: var(--grey-soft); }
.lv__chips button.is-warn .n { background: var(--amber-soft); color: var(--amber); }
.lv__chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.lv__chips button[aria-pressed="true"] .n { background: rgb(255 255 255 / .18); color: #fff; }
.lv__drv { width: auto; min-width: 180px; }
.lv { overflow: hidden; }
.lv__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.lv__head > div { flex: 1; min-width: 0; display: grid; }
.lv__head .sub { font-size: .82rem; }
.lv__list { list-style: none; margin: 0; padding: 0; }
.lv__list > li + li { border-top: 1px solid var(--line-2); }
.lv__ride { width: 100%; display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: center; padding: 14px 18px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.lv__ride:hover { background: var(--bg); }
.lv__ride.is-late { box-shadow: inset 3px 0 0 var(--red); }
.lv__ride.is-start, .lv__ride.is-unaccepted { box-shadow: inset 3px 0 0 var(--gold); }
.lv__when { display: grid; }
.lv__when b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.lv__when span { font-size: .76rem; color: var(--muted); }
.lv__info { display: grid; gap: 2px; min-width: 0; }
.lv__info .ride__route, .lv__info .ride__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv__flag { display: inline-flex; align-items: center; gap: 5px; justify-self: start; margin-top: 3px; font-size: .76rem; font-weight: 700; padding: 1px 8px 1px 6px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); }
.lv__flag svg { width: 13px; height: 13px; }
.lv__flag--late { background: var(--red-soft); color: var(--red); }
@media (max-width: 900px) {
	.lv__ride { grid-template-columns: 64px minmax(0, 1fr); gap: 10px 12px; }
	.lv__ride .prog { grid-column: 1 / -1; }
	.lv__drv { flex: 1; }
}
@media (max-width: 480px) { .prog__s { font-size: .68rem; } .lv__head .btn span, .lv__head .btn { font-size: 0; gap: 0; } .lv__head .btn svg { width: 18px; height: 18px; } }

/* Driver position on the map */
.pos { margin-top: 14px; display: grid; gap: 10px; }
.pos__map { width: 100%; height: 260px; border: 1px solid var(--line); border-radius: 10px; display: block; background: var(--grey-soft); }
.pos__static { position: relative; height: 200px; border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: center; padding: 12px; text-decoration: none; color: var(--ink-2); font-size: .8rem; font-variant-numeric: tabular-nums;
	background: linear-gradient(90deg, transparent 49%, #fff 49% 51%, transparent 51%) 0 0 / 90px 90px, linear-gradient(0deg, transparent 49%, #fff 49% 51%, transparent 51%) 0 0 / 70px 70px, linear-gradient(35deg, transparent 47%, #f6d68d 47% 53%, transparent 53%), #e8ece4; }
.pos__pin { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px rgb(91 75 196 / .2); }
.pos__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pos__state { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .8rem; color: var(--muted); }
.pos__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pos__state.is-live { color: var(--green); }
.pos__state.is-live .pos__dot { background: var(--green); animation: pos-pulse 1.6s ease-out infinite; }
@keyframes pos-pulse { 0% { box-shadow: 0 0 0 0 rgb(31 122 77 / .45); } 100% { box-shadow: 0 0 0 8px rgb(31 122 77 / 0); } }
@media (prefers-reduced-motion: reduce) { .pos__state.is-live .pos__dot { animation: none; } }
.pos__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pos__none { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; background: var(--grey-soft); color: var(--ink-2); font-size: .88rem; }
.pos__none svg { margin-top: 2px; flex: none; }
.lv__pos { display: inline-flex; align-items: center; gap: 5px; justify-self: start; margin-top: 3px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.lv__pos svg { width: 13px; height: 13px; }
.lv__pos.is-live { color: var(--green); }

/* Owned fleet */
.avatar--car { background: var(--ink); color: #fff; }
.avatar--car svg { width: 55%; height: 55%; }
.plate { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; letter-spacing: .06em; padding: 1px 6px; border: 1.5px solid currentColor; border-radius: 4px; margin-right: 4px; color: var(--ink); background: var(--panel); }
.vcard .person__head > div > span { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.v-alerts { display: flex; flex-wrap: wrap; gap: 6px; }
.v-alert { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #fff4dc; color: #8a5a00; }
.v-alert.is-late { background: #fde4e1; color: #a3261a; }
.v-alert svg { width: 13px; height: 13px; flex: none; }
.prof__kv--wide { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.v-notes { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--bg); font-size: .88rem; white-space: pre-line; }
.vdrivers li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 0; }
.vdrivers li + li { border-top: 1px solid var(--line); }
.t tfoot td { border-top: 2px solid var(--line); padding-top: 10px; font-weight: 600; }
.prof > .v-alerts, .prof > .v-notes { grid-column: 1 / -1; }
.link-ref { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.form textarea.field { height: auto; min-height: 80px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; resize: vertical; }
.vcard .plate { font-size: .72rem; }

/* Phones and tablets: 16px text in fields, so iOS does not zoom in when a field is tapped */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (pointer: coarse), (max-width: 900px) {
	input, select, textarea, .field { font-size: 16px; }
}

/* Login and password screens (driver app, team, companies) */
.auth-body { background: var(--bg); min-height: 100vh; min-height: 100dvh; }
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); }
.auth__side { background: var(--nav); color: var(--nav-ink); padding: calc(18px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 64px max(20px, env(safe-area-inset-left, 0px)); display: grid; gap: 18px; align-content: start; position: relative; overflow: hidden; }
.auth__side::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1.5px dashed rgb(233 173 67 / .35); pointer-events: none; }
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth__brand { color: #fff; font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; text-decoration: none; }
.auth__brand span { color: var(--gold); }
.auth__lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / .08); }
.auth__lang a { color: var(--nav-ink); text-decoration: none; font-weight: 700; font-size: .78rem; padding: 7px 12px; border-radius: 999px; min-height: 32px; display: inline-flex; align-items: center; }
.auth__lang a[aria-current] { background: var(--gold); color: var(--nav); }
.auth__pitch { display: grid; gap: 8px; max-width: 30rem; position: relative; z-index: 1; }
.auth__kicker { color: var(--gold); font-weight: 700; font-size: .82rem; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 10px; }
.auth__kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.auth__lead { margin: 0; color: #fff; font-size: 1.05rem; line-height: 1.45; text-wrap: balance; }
.auth__points { list-style: none; margin: 10px 0 0; padding: 0; display: none; gap: 10px; }
.auth__points li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.auth__points svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.auth__slogan { display: none; margin: 0; color: rgb(201 209 222 / .7); font-size: .85rem; letter-spacing: .03em; }
.auth__main { padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); margin-top: -44px; position: relative; z-index: 2; display: grid; justify-items: center; align-content: start; }
.auth__card { width: 100%; max-width: 420px; padding: 24px 20px; box-shadow: var(--shadow-lg); border: 0; border-radius: 16px; display: grid; gap: 16px; }
.auth__card h1 { margin: 0; font-size: 1.45rem; letter-spacing: -.01em; text-wrap: balance; }
.auth__sub { margin: -6px 0 0; color: var(--ink-2); }
.auth__form { gap: 14px; }
.auth__form label { font-size: .9rem; }
.auth__form .field { height: 48px; padding: 0 14px; border-radius: 11px; border-color: #d5dae2; background: #fff; }
.auth__form .field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(233 173 67 / .35); }
.auth__form .check { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--ink-2); }
.auth__form .check input { width: 20px; height: 20px; accent-color: var(--ink); }
.auth__go { height: 50px; width: 100%; font-size: 1rem; border-radius: 12px; }
.auth__go:disabled { opacity: .7; }
.auth__pw { position: relative; display: block; }
.auth__pw .field { padding-right: 52px; }
.auth__eye { position: absolute; right: 4px; top: 4px; width: 44px; height: 40px; border: 0; background: none; border-radius: 9px; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.auth__eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.auth__eye[aria-pressed="true"] { color: var(--ink); background: var(--grey-soft); }
.auth__lost, .auth__back { justify-self: center; color: var(--ink-2); font-weight: 600; font-size: .92rem; padding: 6px 4px; }
.auth__back { justify-self: start; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; padding: 0; margin-bottom: -4px; }
.auth__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.auth__error { display: grid; gap: 6px; justify-items: start; padding: 12px 14px; border-radius: 11px; background: var(--red-soft); color: var(--red); }
.auth__error span { color: var(--ink-2); font-size: .88rem; }
.auth__error .btn { margin-top: 4px; border-color: color-mix(in srgb, var(--red) 30%, transparent); color: var(--red); }
.auth__note { margin: 0; padding: 12px 14px; border-radius: 11px; background: var(--amber-soft); color: var(--amber); font-weight: 600; }
.auth__hint { margin: -4px 0 0; color: var(--muted); font-size: .85rem; }
.auth__help { margin: 0; text-align: center; color: var(--muted); font-size: .88rem; }
.auth__help a { color: var(--ink); font-weight: 700; white-space: nowrap; }
.auth__done { display: grid; gap: 14px; }
.auth__done p { margin: 0; color: var(--ink-2); }
.auth__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; }
.auth__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth__icon--warn { background: var(--amber-soft); color: var(--amber); }
.auth__tips { margin: 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 4px; font-size: .92rem; }
@media (min-width: 900px) {
	.auth { grid-template-columns: minmax(340px, 44%) minmax(0, 1fr); }
	.auth__side { padding: 36px 48px; grid-template-rows: auto 1fr auto; gap: 24px; }
	.auth__pitch { align-self: center; gap: 14px; }
	.auth__lead { font-size: 1.5rem; }
	.auth__points { display: grid; }
	.auth__slogan { display: block; }
	.auth__main { margin: 0; align-content: center; padding: 40px; }
	.auth__card { padding: 34px 32px; }
}
