@font-face { font-family: Montserrat; font-weight: 400; font-display: swap; src: url(/static/fonts/montserrat-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 500; font-display: swap; src: url(/static/fonts/montserrat-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(/static/fonts/montserrat-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url(/static/fonts/montserrat-latin-700-normal.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #0c0d0f;
  --surface: #15171a;
  --surface-2: #1c1f23;
  --surface-3: #24272c;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .13);
  --text: #f1f1f2;
  --muted: #8d9199;
  --faint: #5f636b;
  --accent: #eb5f34;
  --accent-hover: #f07a55;
  --accent-soft: rgba(235, 95, 52, .13);
  --accent-text: #ff9a78;
  --ok: #32d296;
  --warn: #faa05a;
  --danger: #f0506e;
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar: 244px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 14px; line-height: 1.5;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
.i { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Rahmen ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 22px;
  padding: 22px 14px 16px;
  background: linear-gradient(180deg, #121417, #0e0f11);
  border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 6px; }
.brand-sub, .auth-brand .brand-sub {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text); background: var(--accent-soft); padding: 3px 7px; border-radius: 6px;
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 500;
  transition: background .15s, color .15s;
  position: relative;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-item.is-active { color: var(--text); background: var(--surface-2); }
.nav-item.is-active::before {
  content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent);
}
.nav-item.is-active .i { color: var(--accent); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.me form { margin: 0 0 0 auto; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--accent); color: #fff; flex: none; }
.me-mail { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 32px; min-height: 68px;
  background: rgba(12, 13, 15, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.page-title { font-size: 19px; }
.topbar-actions { margin-left: auto; display: flex; gap: 10px; }
.icon-btn.menu-btn { display: none; }
.content { padding: 26px 32px 48px; width: 100%; max-width: 1560px; margin-inline: auto; }

/* ---------- Bausteine ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface-2); cursor: pointer; font-weight: 600; font-size: 13px;
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn .i { width: 16px; height: 16px; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.05); }
.btn.danger, .danger { color: var(--danger); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,.06); color: var(--text); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px; position: relative; min-width: 0;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title { font-size: 14px; font-weight: 500; color: #d6d7da; }
.card-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.card-link:hover { color: var(--text); }
.card-link .i { width: 14px; height: 14px; }
.card-glow {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(235,95,52,.24), transparent 55%),
    radial-gradient(80% 120% at 100% 100%, rgba(235,95,52,.10), transparent 60%),
    var(--surface);
  border-color: rgba(235,95,52,.28);
}
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.big-num { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.big-num small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 3px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: #c9cbd0; white-space: nowrap;
}
.badge-accent { background: var(--accent-soft); color: var(--accent-text); }
.badge-ok { background: rgba(50,210,150,.12); color: var(--ok); }
.badge-warn { background: rgba(250,160,90,.13); color: var(--warn); }
.badge-danger { background: rgba(240,80,110,.13); color: var(--danger); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); font-size: 12.5px; font-weight: 500;
  background: transparent; cursor: pointer; white-space: nowrap;
}
.chip:hover { color: var(--text); }
.chip.is-on { background: var(--accent-soft); border-color: rgba(235,95,52,.45); color: var(--accent-text); }
.chip .count { color: var(--faint); font-size: 11px; }

.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=url], input:not([type]), select, textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--bg); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(235,95,52,.7); box-shadow: 0 0 0 3px rgba(235,95,52,.15); }
.field-row { display: flex; gap: 12px; }
.search {
  position: relative; flex: 1; max-width: 420px;
}
.search .i { position: absolute; left: 12px; top: 11px; color: var(--faint); width: 17px; height: 17px; }
.search input { padding-left: 38px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.toolbar .spacer, .spacer { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-mark { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.empty-mark .i { width: 24px; height: 24px; }

/* Fortschritt / Limits */
.meter { height: 6px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s var(--ease); }
.meter.ok > i { background: var(--ok); }
.meter.warn > i { background: var(--warn); }
.meter.danger > i { background: var(--danger); }
.limit + .limit { margin-top: 16px; }
.limit-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.limit-label { font-size: 13px; color: #d6d7da; }
.limit-pct { font-weight: 600; font-size: 15px; }
.limit-reset { font-size: 11.5px; color: var(--faint); margin-top: 5px; }

.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.countdown div { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 6px; text-align: center; }
.countdown b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.countdown span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* Listen */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 11px 4px;
  border-top: 1px solid var(--border);
}
.rows .row:first-child { border-top: 0; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.row:hover .row-title { color: var(--accent-text); }

/* Aufgaben */
.task { display: flex; align-items: flex-start; gap: 12px; padding: 12px 6px; border-top: 1px solid var(--border); }
.task:first-child { border-top: 0; }
.task-check {
  appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px;
  border: 1.6px solid var(--border-strong); background: transparent; cursor: pointer; display: grid; place-items: center;
  transition: background .15s, border-color .15s;
}
.task-check:hover { border-color: var(--accent); }
.task-check:checked { background: var(--accent); border-color: var(--accent); }
.task-check:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.task-body { flex: 1; min-width: 0; cursor: pointer; }
.task-title { font-weight: 500; }
.task.is-done .task-title { color: var(--faint); text-decoration: line-through; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.task-note { color: var(--muted); font-size: 12.5px; margin-top: 3px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prio-hoch { color: var(--danger); }
.due-over { background: rgba(240,80,110,.13); color: var(--danger); }
.due-today { background: rgba(250,160,90,.13); color: var(--warn); }
.quick-add { display: flex; gap: 10px; margin-bottom: 16px; }
.quick-add input { flex: 1; }
.task-groups { display: grid; gap: 18px; }
.group-title { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 2px 6px 4px; display: flex; gap: 8px; align-items: center; }

/* Punkte aus den Repos */
.pt-group { border-top: 1px solid var(--border); }
.pt-group:first-child { border-top: 0; }
.pt-group summary { display: flex; align-items: center; gap: 10px; padding: 12px 6px; cursor: pointer; list-style: none; font-weight: 600; }
.pt-group summary::-webkit-details-marker { display: none; }
.pt-group summary::before { content: ''; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.pt-group[open] summary::before { transform: rotate(45deg); }
.pt-group summary:hover .pt-name { color: var(--accent-text); }
.pt-items { padding: 0 0 8px 22px; }
.pt-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 6px; border-top: 1px solid var(--border); }
.pt-text { font-size: 13px; }

/* Raster */
.grid { display: grid; gap: 16px; }
.dash { grid-template-columns: repeat(12, 1fr); }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }

.hero {
  min-height: 100%;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(235,95,52,.16), transparent 60%),
    linear-gradient(180deg, #181a1e 0%, #121417 100%);
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.hero > * { position: relative; z-index: 1; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: rgba(235,95,52,.4); transform: translateY(-2px); }
.tile-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; }
.tile-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Balkendiagramm */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; min-width: 0; }
.bar i { display: block; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--accent), rgba(235,95,52,.55)); min-height: 2px; transition: height .5s var(--ease); }
.bar.is-zero i { background: rgba(255,255,255,.06); }
.bar:hover i { background: var(--accent-hover); }
.bar-tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 8px; padding: 6px 9px;
  font-size: 11.5px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 3;
}
.bar:hover .bar-tip, .bar:focus .bar-tip { opacity: 1; }
.bar-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 8px; }
.spark { width: 100%; height: 120px; display: block; }

/* Tabellen */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 0 12px 10px; white-space: nowrap; }
td { padding: 11px 12px; border-top: 1px solid var(--border); vertical-align: top; }
td.num, th.num { text-align: right; }
tr:hover td { background: rgba(255,255,255,.015); }

/* Projekte */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.project { display: flex; flex-direction: column; gap: 12px; }
.project-head { display: flex; gap: 12px; align-items: flex-start; }
.project-name { font-weight: 600; font-size: 15px; }
.project-path { font-size: 12px; color: var(--faint); }
.project-stand {
  font-size: 12.5px; color: var(--muted); white-space: pre-line; max-height: 7.5em; overflow: hidden;
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.project-stand.is-open { max-height: none; mask-image: none; }
.project-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.project .pin { color: var(--accent); }
.project.is-archived { opacity: .72; }
.project.is-archived:hover { opacity: 1; }
.chip .i { width: 14px; height: 14px; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.skill { padding: 14px 16px; }
.skill-name { font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.skill-desc { font-size: 12.5px; color: var(--muted); margin-top: 7px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.skill.is-open .skill-desc { -webkit-line-clamp: unset; }
mark { background: var(--accent-soft); color: var(--accent-text); border-radius: 3px; padding: 0 1px; }

/* Designs */
.dropzone {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 22px;
  display: flex; align-items: center; gap: 16px; margin-bottom: 18px; background: var(--surface);
  transition: border-color .15s, background .15s;
}
.dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .empty-mark { margin: 0; flex: none; }
.add-designs { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; margin-bottom: 18px; }
.add-designs .dropzone { margin: 0; }
.link-form { border-style: solid; cursor: default; }
.link-form input { flex: 1; min-width: 0; }
.design-media { position: relative; }
.design-placeholder { aspect-ratio: 16 / 10; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--muted); background: var(--surface-2); font-size: 12px; }
.design-placeholder .i { width: 26px; height: 26px; color: var(--accent); }
.design-play { position: absolute; top: 10px; left: 10px; background: rgba(12,13,15,.82); backdrop-filter: blur(6px); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.design-detail video { width: 100%; display: block; background: #000; }
.designs { columns: 4 260px; column-gap: 16px; }
.design {
  break-inside: avoid; margin-bottom: 16px; display: block; width: 100%; text-align: left;
  border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); cursor: pointer; padding: 0;
  transition: border-color .15s, transform .15s;
}
.design:hover { border-color: rgba(235,95,52,.45); transform: translateY(-2px); }
.design img { width: 100%; height: auto; background: var(--surface-2); }
.design-info { padding: 12px 14px 14px; }
.design-title { font-weight: 600; font-size: 13.5px; }
.design-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.swatches { display: flex; gap: 4px; margin-top: 10px; }
.swatches i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(255,255,255,.12); }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.design-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 22px; }
.design-detail .preview { max-height: 72vh; overflow: auto; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.design-detail .preview img { width: 100%; }
.design-form { display: flex; flex-direction: column; gap: 12px; }
.style-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.style-picks label { cursor: pointer; }
.style-picks input { position: absolute; opacity: 0; pointer-events: none; }
.style-picks input:checked + .chip { background: var(--accent-soft); border-color: rgba(235,95,52,.45); color: var(--accent-text); }
.style-picks input:focus-visible + .chip { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Dialog */
.dialog {
  border: 1px solid var(--border-strong); border-radius: 18px; padding: 0; background: var(--surface); color: var(--text);
  width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.dialog.wide { width: min(1180px, calc(100vw - 32px)); overflow-x: hidden; }
.dialog::backdrop { background: rgba(5,6,7,.7); backdrop-filter: blur(3px); }
.dialog[open] { animation: pop .18s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.dialog-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-head h2 { font-size: 17px; }
.dialog-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.dialog-foot-bar { margin: 4px -22px -22px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 18px 18px; }

/* Toast */
.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 50; background: var(--surface-3); border: 1px solid var(--border-strong);
  padding: 12px 16px; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.4); font-weight: 500;
  animation: pop .2s var(--ease);
}
.toast.err { border-color: rgba(240,80,110,.5); }

/* Einstellungen */
.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; white-space: pre-wrap; word-break: break-all; position: relative;
}
.code .copy { position: absolute; top: 6px; right: 6px; }
.prose p { margin: 0 0 10px; color: var(--muted); }
.prose p b { color: var(--text); font-weight: 600; }

/* Login */
.bare { min-height: 100vh; background:
  radial-gradient(60% 50% at 50% 0%, rgba(235,95,52,.16), transparent 70%), var(--bg); }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px 28px; display: flex; flex-direction: column; gap: 16px; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.auth-card h1 { font-size: 20px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card .btn { height: 44px; }
.alert { padding: 10px 12px; border-radius: 10px; font-size: 13px; background: rgba(240,80,110,.12); color: #ff9db0; border: 1px solid rgba(240,80,110,.3); }
.alert.info { background: var(--accent-soft); color: var(--accent-text); border-color: rgba(235,95,52,.3); }
.otp-input { text-align: center; font-size: 22px !important; letter-spacing: .4em; height: 52px !important; }
.qr { background: #fff; border-radius: 12px; padding: 10px; width: 200px; margin: 0 auto; }
.secret { font-family: ui-monospace, monospace; font-size: 12px; text-align: center; color: var(--muted); word-break: break-all; }

/* ---------- Responsiv ---------- */
@media (max-width: 1280px) {
  .span-3 { grid-column: span 6; } .span-4 { grid-column: span 6; } .span-5 { grid-column: span 6; }
  .span-7, .span-8 { grid-column: span 12; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 30; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .sidebar.is-open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .icon-btn.menu-btn { display: inline-grid; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .dash > * { grid-column: span 12 !important; }
  .design-detail { grid-template-columns: 1fr; }
  .add-designs { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; }
  .topbar-actions .btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
