/* Kundenportal Habib IT Solutions – gleiches Theme wie habib-it.at */
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-700.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #18181c;
  --inset: #0d0d10;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f4f4f5;
  --soft: #d4d4d8;
  --muted: #a1a1aa;
  --placeholder: #8a8a93;
  --orange: #f45125;
  --orange-soft: #ff7a4d;
  --orange-text: #ff9a73;
  --on-orange: #0b0b0c;
  --blue: #60a5fa;
  --blue-text: #93c5fd;
  --green: #4ade80;
  --green-text: #86efac;
  --amber: #fbbf24;
  --red-text: #fca5a5;
  --radius: 20px;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--orange-soft); }
a:hover { color: #ffa07d; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: var(--on-orange); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 48px, 1240px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dot { color: var(--orange); }
.skip { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 16px; background: var(--text); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(9, 9, 11, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; padding-block: 12px; flex-wrap: wrap; }
.brand { margin-right: auto; display: inline-flex; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 24px; font-size: 15px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { font-weight: 500; }
.nav .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--orange); color: var(--on-orange); font-size: 12px; font-weight: 700; }
.user-chip { display: flex; align-items: center; gap: 12px; padding-left: 20px; border-left: 1px solid var(--line-strong); }
.user-chip > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.user-chip strong { font-size: 14px; font-weight: 600; }
.user-chip button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; text-align: left; }
.user-chip button:hover { color: var(--text); }
.avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: #27272a; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--text); }
.avatar.is-admin { background: var(--orange); color: var(--on-orange); font-weight: 700; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; }

/* ---------- Typo ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--muted); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(244, 81, 37, .18); }
.h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; }
.h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.035em; font-weight: 700; }
.h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease), opacity .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-soft); color: var(--on-orange); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); color: var(--text); }
.btn-light { background: var(--text); color: var(--on-orange); }
.btn-light:hover { background: #fff; color: var(--on-orange); }
.btn-text { background: none; color: var(--muted); padding: 0 12px; }
.btn-text:hover { color: var(--text); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label { font-size: 14px; font-weight: 500; color: var(--soft); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: var(--placeholder); }
.input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(244, 81, 37, .16); }
.input.on-surface { background: var(--surface); }
textarea.input { min-height: 160px; resize: vertical; line-height: 1.55; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23a1a1aa' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 44px; }
.hint { font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--soft); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange); flex-shrink: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

/* Auswahl als Pillen und Karten (echte Radio-Buttons) */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill input, .choice input { position: absolute; opacity: 0; pointer-events: none; }
.pill > span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--soft); font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.pill input:checked + span { background: rgba(244, 81, 37, .14); border-color: var(--orange); color: var(--text); }
.pill input:focus-visible + span, .choice input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s; }
.choice strong { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.choice small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.choice input:checked + span { background: rgba(244, 81, 37, .10); border-color: var(--orange); }
.prio-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.prio-low { background: var(--muted); }
.prio-normal { background: var(--blue); }
.prio-high { background: var(--amber); }
.prio-urgent { background: var(--orange); }

/* Datei-Upload */
.dropzone { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .2); background: var(--inset); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--orange); background: rgba(244, 81, 37, .05); }
.dropzone:focus-within { outline: 2px solid var(--orange); outline-offset: 3px; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--orange-soft); }
.dropzone strong { display: block; font-size: 15px; font-weight: 500; }
.dropzone small { font-size: 13px; color: var(--muted); }
.file-list { display: flex; flex-wrap: wrap; gap: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.file-chip .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .size { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.file-chip button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.file-chip button:hover { background: var(--surface-2); color: var(--text); }
a.file-chip { color: var(--text); text-decoration: none; padding-right: 14px; }
a.file-chip:hover { border-color: var(--line-strong); }
a.file-chip svg { color: var(--orange-soft); flex-shrink: 0; }

/* ---------- Karten & Layout ---------- */
main { padding: 56px 0 96px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.page-head .h1 { margin-top: 14px; }
.page-head .lead { margin-top: 10px; max-width: 640px; }
.layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.layout-main { flex: 999 1 560px; min-width: 0; }
.layout-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card-lg { border-radius: 24px; padding: clamp(24px, 3.4vw, 40px); }
.card .h3 + * { margin-top: 18px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; font-size: 14px; }
.details dt { color: var(--muted); }
.details dd { text-align: right; overflow-wrap: anywhere; }
.steps { display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 14px; }
.steps .num { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.steps strong { display: block; font-size: 15px; font-weight: 600; }
.steps span span { font-size: 14px; color: var(--muted); }

/* Hinweise */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; font-size: 14px; color: var(--soft); border: 1px solid var(--line-strong); background: var(--surface); }
.notice svg { flex-shrink: 0; color: var(--orange-soft); margin-top: 2px; }
.notice.warn { border-color: rgba(244, 81, 37, .35); background: rgba(244, 81, 37, .06); }
.notice strong { color: var(--text); }
.notice .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.form-status { font-size: 14px; min-height: 0; }
.form-status:empty { display: none; }
.form-status.error { color: var(--red-text); }
.form-status.ok { color: var(--green-text); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--on-orange); font-size: 14px; font-weight: 500; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #7f1d1d; color: #fff; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; border: 1px solid var(--line); background: var(--surface-2); color: var(--soft); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.s-open { color: var(--blue-text); background: rgba(96, 165, 250, .10); border-color: rgba(96, 165, 250, .35); }
.badge.s-progress { color: var(--orange-text); background: rgba(244, 81, 37, .12); border-color: rgba(244, 81, 37, .4); }
.badge.s-done { color: var(--green-text); background: rgba(74, 222, 128, .08); border-color: rgba(74, 222, 128, .3); }
.badge-new { flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--on-orange); background: var(--orange); border-radius: 999px; padding: 1px 9px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Ticketliste ---------- */
.list-card { padding: 0; overflow: hidden; border-radius: 24px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--on-orange); }
.tabs .n { font-size: 12px; border-radius: 999px; padding: 0 7px; background: var(--surface-2); color: var(--soft); }
.tabs button[aria-selected="true"] .n { background: var(--on-orange); color: var(--text); }
.search { position: relative; flex: 0 1 300px; min-width: 200px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { height: 44px; padding: 0 14px 0 40px; border-radius: 999px; font-size: 14px; }
.list-head, .t-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 140px 20px; gap: 16px; align-items: center; padding: 12px 24px; }
.list-head { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.list-head .right, .t-row .when { text-align: right; }
.t-row { padding-block: 18px; color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .06); transition: background .15s; }
.t-row:hover { background: #16161a; color: var(--text); }
.t-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.t-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.t-title span:first-child { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-row.is-done .t-title span:first-child { font-weight: 500; color: var(--soft); }
.t-row.is-unread .t-title span:first-child { font-weight: 700; }
.t-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.t-meta .prio { display: inline-flex; align-items: center; gap: 6px; }
.t-row .when { font-size: 14px; color: var(--muted); }
.t-row .chev { color: var(--muted); }
.list-empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.list-empty .btn { margin-top: 18px; }
.list-foot { padding: 16px 24px; font-size: 13px; color: var(--muted); }
.skeleton { height: 72px; margin: 0 24px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .04), transparent) 0 0 / 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-ticket { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.mini-ticket:hover { border-color: var(--line-strong); color: var(--text); }
.mini-ticket .top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.mini-ticket strong { font-size: 15px; line-height: 1.35; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.stat strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Ticket-Ansicht ---------- */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.thread { display: flex; flex-direction: column; gap: 16px; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.msg.from-admin { background: #141417; border-color: rgba(244, 81, 37, .25); }
.msg header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.msg header > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.msg header strong { font-weight: 600; }
.msg header small { font-size: 13px; color: var(--muted); }
.msg .role { font-size: 12px; font-weight: 500; color: var(--orange-text); margin-left: 6px; }
.msg .body { color: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .file-list { margin-top: 16px; }
.event { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); padding: 0 8px; }
.event::before, .event::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.event strong { color: var(--orange-text); font-weight: 600; }
.timeline { display: flex; flex-direction: column; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: rgba(255, 255, 255, .12); }
.timeline li.done:not(:last-child)::after { background: var(--orange); }
.timeline .mark { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); display: grid; place-items: center; }
.timeline li.done .mark { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.timeline li.current .mark { background: rgba(244, 81, 37, .14); border-color: var(--orange); }
.timeline li.current .mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.timeline strong { display: block; font-size: 15px; font-weight: 600; }
.timeline li.todo strong { color: var(--muted); }
.timeline small { font-size: 13px; color: var(--muted); }
.status-switch { display: grid; gap: 8px; }
.status-switch button { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--soft); font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }
.status-switch button[aria-pressed="true"] { border-color: var(--orange); background: rgba(244, 81, 37, .10); color: var(--text); }
.reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.attach-btn { position: relative; overflow: hidden; }
.attach-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Erfolg */
.success-icon { width: 64px; height: 64px; border-radius: 20px; background: rgba(244, 81, 37, .12); border: 1px solid rgba(244, 81, 37, .4); display: grid; place-items: center; color: var(--orange-soft); }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.summary div { background: var(--inset); padding: 18px 20px; }
.summary dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.summary dd { margin-top: 6px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.row-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Login ---------- */
.auth { display: flex; flex-wrap: wrap; min-height: 100vh; }
.auth-brand { flex: 1 1 480px; min-width: 0; min-height: 560px; padding: 40px clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; border-right: 1px solid var(--line); background-color: #0b0b0d; background-image: radial-gradient(60% 50% at 30% 70%, rgba(244, 81, 37, .22), rgba(244, 81, 37, 0) 70%), linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: auto, 64px 64px, 64px 64px; }
.auth-brand .brand img { height: 46px; }
.auth-brand .h1 { margin: 16px 0; max-width: 520px; }
.auth-brand .lead { max-width: 460px; margin-bottom: 28px; }
.ticks { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--soft); }
.ticks li { display: flex; align-items: center; gap: 12px; }
.ticks li::before { content: ""; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: rgba(244, 81, 37, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' stroke='%23ff7a4d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.auth-panel { flex: 1 1 480px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 24px; }
.auth-box form { display: flex; flex-direction: column; gap: 18px; }
.auth-box h2 { font-size: 30px; letter-spacing: -.03em; font-weight: 700; line-height: 1.15; }
.auth-box h2 + p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.segmented button { height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.segmented button[aria-selected="true"] { background: var(--text); color: var(--on-orange); }
.or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }
.center { text-align: center; }
.small { font-size: 13px; }
.linkish { padding: 0; border: 0; background: none; color: var(--orange-soft); font-size: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: #ffa07d; }
.page-loading { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0; font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, 1240px); }
  main { padding: 36px 0 72px; }
  .user-chip { padding-left: 0; border-left: 0; }
  .site-header .wrap { gap: 14px 20px; }
  .list-head { display: none; }
  .t-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px; }
  .t-row .chev { display: none; }
  .t-row .when { text-align: left; font-size: 13px; }
  .t-title { flex-wrap: wrap; gap: 6px 10px; }
  .t-title span:first-child { white-space: normal; }
  .tabs { width: 100%; flex-wrap: nowrap; }
  .tabs button { flex: 1 1 auto; justify-content: center; padding: 0 10px; }
  .list-toolbar { padding: 16px; }
  .search { flex: 1 1 100%; }
  .auth-brand { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); gap: 32px; }
  .auth-brand .ticks, .auth-brand .lead { display: none; }
  .card:not(.list-card) { padding: 22px; }
  .msg { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
