/* Backoffice, Oberfläche. Keine Inline-Stile, alles über Klassen (CSP). */
:root {
  --bg: #f5f5f2; --surface: #ffffff; --surface2: #efefeb; --text: #1b1c1f; --muted: #64656b; --line: #e2e2dc;
  --accent: #3a5ccc; --accent-ink: #ffffff; --accent-bg: #e9eefc; --shadow: 0 1px 2px rgba(20,20,30,.05), 0 6px 20px rgba(20,20,30,.06);
  --rot: #d6322a; --rot-bg: #fdeceb; --rot-ink: #a3201a;
  --orange: #e07a10; --orange-bg: #fdf0df; --orange-ink: #92500a;
  --blau: #2d6ae0; --blau-bg: #e8f0fd; --blau-ink: #1c4eae;
  --gruen: #1f9d5a; --gruen-bg: #e5f5ec; --gruen-ink: #146c3d;
  --grau: #9a9aa1; --grau-bg: #ecece8; --grau-ink: #5a5b61;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --side: 232px; --panel: 460px; --tab: 58px;
  --r: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101113; --surface: #18191c; --surface2: #212328; --text: #ececee; --muted: #9b9ca4; --line: #2a2c31;
    --accent: #8aa2f7; --accent-ink: #101524; --accent-bg: #232b45; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.45);
    --rot: #ff6b61; --rot-bg: #3a1c1b; --rot-ink: #ff9d96;
    --orange: #f5a04a; --orange-bg: #38270f; --orange-ink: #f7b878;
    --blau: #6c9bff; --blau-bg: #1b2744; --blau-ink: #9dbbff;
    --gruen: #4cc684; --gruen-bg: #14301f; --gruen-ink: #7fdba6;
    --grau: #7c7d85; --grau-bg: #26282c; --grau-ink: #a6a7ae;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.boot { padding: 40px 16px; color: var(--muted); text-align: center; }

.c-rot { --c: var(--rot); --cbg: var(--rot-bg); --cink: var(--rot-ink); }
.c-orange { --c: var(--orange); --cbg: var(--orange-bg); --cink: var(--orange-ink); }
.c-blau { --c: var(--blau); --cbg: var(--blau-bg); --cink: var(--blau-ink); }
.c-gruen { --c: var(--gruen); --cbg: var(--gruen-bg); --cink: var(--gruen-ink); }
.c-grau { --c: var(--grau); --cbg: var(--grau-bg); --cink: var(--grau-ink); }

/* ---------- Gerüst ---------- */
.shell { min-height: 100dvh; }
.side { display: none; }
.main { padding: calc(var(--sat) + 18px) calc(16px + var(--sar)) calc(var(--tab) + var(--sab) + 28px) calc(16px + var(--sal)); }
.wrap { max-width: 760px; margin: 0 auto; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(6, 1fr);
  padding: 0 var(--sar) var(--sab) var(--sal); background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--tab); color: var(--muted); font-size: 10.5px; font-weight: 600; text-decoration: none; letter-spacing: .01em;
}
.tab:hover { text-decoration: none; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--accent); }
.badge {
  position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
}
.badge.rot { background: var(--rot); }
.badge:empty { display: none; }

/* ---------- Seitenkopf ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ph h1 { font-size: 28px; line-height: 1.1; font-weight: 750; letter-spacing: -.02em; }
.ph .sub { color: var(--muted); margin-top: 4px; font-size: 14px; }
.back { display: inline-flex; align-items: center; min-height: 36px; margin-bottom: 6px; font-size: 14px; font-weight: 600; }

/* ---------- Bausteine ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card + .card { margin-top: 10px; }
.sec { margin-top: 26px; }
.sec > h2, .sec > summary { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sec > summary { cursor: pointer; list-style: none; min-height: 32px; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.sec[open] > summary::before { transform: rotate(45deg); }
.n { background: var(--surface2); color: var(--muted); border-radius: 9px; padding: 0 7px; font-size: 12px; letter-spacing: 0; line-height: 18px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }
.err { color: var(--rot-ink); background: var(--rot-bg); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.hint { color: var(--muted); font-size: 13px; }
.sp { height: 12px; }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--grau)); flex: none; }
.chip, .tag {
  display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 1px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.3; background: var(--cbg, var(--surface2)); color: var(--cink, var(--muted)); white-space: nowrap; max-width: 100%;
}
.tag { border-radius: 7px; }
.tag.solid { background: var(--c); color: #fff; }
.chip .dot { width: 7px; height: 7px; background: var(--c); }
.chip.ell, .tag.ell { overflow: hidden; text-overflow: ellipsis; display: inline-block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; text-decoration: none; color: var(--text); white-space: nowrap;
}
.btn:hover { background: var(--surface2); text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); background: var(--accent); }
.btn.danger { color: var(--rot-ink); }
.btn.sm { min-height: 40px; padding: 0 13px; font-size: 14px; border-radius: 10px; }
.btn.big { min-height: 56px; font-size: 17px; width: 100%; border-radius: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.on { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }

.fchips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchip {
  flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.fchip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.fchip .dot { background: var(--c); }
.fchip .ct { font-weight: 500; opacity: .75; }

.toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.toolbar .selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .field > .lbl { font-size: 12.5px; font-weight: 650; color: var(--muted); }
input[type=text], input[type=search], input[type=date], input[type=password], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 19px, calc(100% - 14px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.search { background-image: none; }
.seg { display: flex; background: var(--surface2); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { flex: 1; min-height: 40px; border: 0; background: transparent; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 4px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.seg .dot { width: 8px; height: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.switchrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 14px; }
.switch { width: 50px; height: 30px; border-radius: 15px; background: var(--grau-bg); border: 1px solid var(--line); position: relative; cursor: pointer; -webkit-appearance: none; appearance: none; flex: none; transition: background .15s; padding: 0; min-height: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.switch:checked { background: var(--gruen); border-color: transparent; }
.switch:checked::after { transform: translateX(20px); }

/* ---------- Einträge ---------- */
.row {
  display: grid; grid-template-columns: 4px 1fr; gap: 12px; padding: 12px 14px 12px 12px; min-height: 56px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; text-align: left; width: 100%; color: inherit;
}
.row:hover { border-color: color-mix(in srgb, var(--c, var(--accent)) 45%, var(--line)); }
.row .bar { background: var(--c); border-radius: 4px; }
.row .t { font-weight: 620; line-height: 1.3; overflow-wrap: anywhere; }
.row .g { color: var(--muted); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.row .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.row.done .t { color: var(--muted); }

.counters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 16px; }
.counter { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; padding: 8px 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.counter b { font-size: 21px; line-height: 1.1; font-weight: 720; letter-spacing: -.01em; }
.counter span { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.counter[aria-pressed="true"] { border-color: var(--c); background: var(--cbg); }

.sys { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--cbg); color: var(--cink); font-weight: 650; font-size: 14px; text-decoration: none; margin-bottom: 14px; min-height: 44px; }
.sys:hover { text-decoration: none; filter: brightness(.98); }
.sys .dot { width: 10px; height: 10px; }
.sys .go { margin-left: auto; font-weight: 600; opacity: .8; }

.tiles { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 6px; }
.tile .th { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.tile .meta { color: var(--muted); font-size: 13.5px; }
.tile .line { font-size: 14px; }
.tile .btns { margin-top: 8px; }

.frist { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.frist .dc { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 11px; background: var(--cbg); color: var(--cink); padding: 8px 4px; min-height: 60px; align-self: start; cursor: pointer; border: 0; }
.frist .dc b { font-size: 15px; line-height: 1.2; font-weight: 720; }
.frist .dc span { font-size: 11.5px; font-weight: 600; opacity: .85; }
.frist .t { font-weight: 620; line-height: 1.3; overflow-wrap: anywhere; cursor: pointer; }
.frist .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.frist .btns { margin-top: 10px; }
.frist.done .t { color: var(--muted); }

.mcard { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--r); padding: 14px 14px 14px 16px; }
.mcard .mh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.mcard .mh b { color: var(--text); font-weight: 650; }
.mcard h3 { font-size: 16.5px; line-height: 1.3; margin-top: 6px; font-weight: 680; overflow-wrap: anywhere; }
.mcard .sum { margin-top: 6px; overflow-wrap: anywhere; }
.kv { margin-top: 10px; display: grid; gap: 8px; }
.kv > div { font-size: 14px; overflow-wrap: anywhere; }
.kv .k { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
.kv .frage { background: var(--orange-bg); color: var(--text); border-radius: 10px; padding: 9px 11px; }
.kv .frage .k { color: var(--orange-ink); }
.unklar { margin-top: 12px; padding: 10px 12px; border-radius: 11px; background: var(--orange-bg); }
.unklar p { font-size: 13px; font-weight: 650; color: var(--orange-ink); margin-bottom: 8px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.acts .btn { flex: 1 1 auto; min-height: 42px; padding: 0 10px; font-size: 14px; }
.inline { margin-top: 10px; padding: 10px; background: var(--surface2); border-radius: 11px; display: flex; flex-direction: column; gap: 8px; }

.box { border-radius: 12px; padding: 12px 14px; background: var(--cbg); color: var(--text); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.box h3 { font-size: 13px; color: var(--cink); margin-bottom: 6px; font-weight: 700; }
.box ul { margin: 0; padding-left: 18px; }

/* ---------- Detail ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(10,10,14,.42); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.scrim.open { opacity: 1; visibility: visible; }
.scrim.m { z-index: 60; }
.sheet {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 92dvh; display: flex; flex-direction: column; background: var(--surface);
  border-radius: 20px 20px 0 0; box-shadow: var(--shadow); transform: translateY(105%); visibility: hidden; transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility .28s;
}
.sheet.open { transform: none; visibility: visible; }
.sheet.modal { z-index: 70; }
.sh { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 8px 8px 20px; flex: none; }
.sh h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sh::before { content: ""; position: absolute; top: 6px; left: 50%; width: 38px; height: 4.5px; margin-left: -19px; border-radius: 3px; background: var(--line); }
.x { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.x:hover { background: var(--surface2); }
.x svg { width: 22px; height: 22px; }
.sb { overflow-y: auto; padding: 4px 20px calc(24px + var(--sab)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sb .btns.end { margin-top: 6px; }

.cm { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.cm .c { background: var(--surface2); border-radius: 11px; padding: 9px 12px; font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.cm .c small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.fold { margin: 14px 0; border-top: 1px solid var(--line); }
.fold > summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; color: var(--muted); font-size: 14px; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "anzeigen"; margin-left: auto; font-weight: 500; font-size: 13px; }
.fold[open] > summary::after { content: "ausblenden"; }
.timeline { display: flex; flex-direction: column; gap: 10px; padding-bottom: 6px; }
.timeline .e { font-size: 13px; border-left: 2px solid var(--line); padding-left: 10px; overflow-wrap: anywhere; }
.timeline .e b { font-weight: 650; }
.timeline .e div { color: var(--muted); }
.infoline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.rich h4 { margin: 14px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rich p { margin: 4px 0; overflow-wrap: anywhere; }
.rich ul { margin: 4px 0; padding-left: 20px; }
.rich li { margin: 2px 0; overflow-wrap: anywhere; }
.steps { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 6px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; }

.dev { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.dev:first-of-type { border-top: 0; }
.link { display: block; padding: 14px 16px; }
.link b { display: block; font-weight: 650; }
.link span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.run + .run { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.run h3 { font-size: 15px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl { padding: 10px 0; border-top: 1px solid var(--line); }
.pl:first-child { border-top: 0; }

/* ---------- Anmeldung ---------- */
.auth { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: calc(var(--sat) + 20px) 20px calc(var(--sab) + 20px); }
.auth .card { width: 100%; max-width: 400px; padding: 28px 22px; box-shadow: var(--shadow); }
.auth .logo { width: 56px; height: 56px; border-radius: 14px; background: #17181c; color: #f0f0ec; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 28px; margin-bottom: 18px; }
.auth h1 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 6px; }
.auth p { color: var(--muted); margin-bottom: 20px; }
.auth .err { margin-top: 14px; }

.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--tab) + var(--sab) + 16px); transform: translate(-50%, 20px); max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 550; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.bad { background: var(--rot); color: #fff; }

/* ---------- Breit ---------- */
@media (min-width: 700px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .wrap { max-width: 860px; }
}
@media (min-width: 1024px) {
  .tabbar { display: none; }
  .side {
    display: flex; flex-direction: column; position: fixed; z-index: 10; top: 0; left: 0; bottom: 0; width: var(--side); padding: 22px 14px 18px; gap: 4px;
    background: var(--surface); border-right: 1px solid var(--line);
  }
  .brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 18px; font-weight: 750; font-size: 17px; letter-spacing: -.01em; }
  .brand i { width: 30px; height: 30px; border-radius: 8px; background: #17181c; color: #f0f0ec; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; font-size: 16px; }
  .nav { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 11px; color: var(--muted); font-weight: 600; text-decoration: none; position: relative; }
  .nav:hover { background: var(--surface2); text-decoration: none; }
  .nav svg { width: 20px; height: 20px; flex: none; }
  .nav[aria-current="page"] { background: var(--accent-bg); color: var(--accent); }
  .nav .badge { position: static; margin-left: auto; }
  .side .foot { margin-top: auto; padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
  .main { margin-left: var(--side); padding: 36px 44px 60px; }
  .wrap { max-width: 1100px; }
  .tiles { gap: 16px; }
  .fchips { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; }
  .toolbar { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .toolbar .search { flex: 1 1 260px; max-width: 360px; }
  .toolbar .selects { grid-template-columns: 200px 200px; }
  .sheet.panel { top: 0; left: auto; right: 0; bottom: 0; width: var(--panel); max-height: none; border-radius: 0; border-left: 1px solid var(--line); transform: translateX(105%); }
  .sheet.panel.open { transform: none; }
  .sheet.panel .sh::before { display: none; }
  .sheet.panel .sh { padding-top: 18px; }
  .scrim.p { display: none; }
  .sheet.modal { top: 50%; left: 50%; right: auto; bottom: auto; width: 480px; max-height: 86dvh; border-radius: 18px; transform: translate(-50%, -46%); opacity: 0; transition: transform .2s, opacity .2s, visibility .2s; }
  .sheet.modal.open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet.modal .sh::before { display: none; }
  .sheet.modal .sh { padding-top: 16px; }
  .toast { bottom: 24px; }
  .acts .btn { flex: 0 1 auto; }
  .row:hover, .frist:hover { box-shadow: 0 1px 8px rgba(20,20,30,.06); }
}
@media (min-width: 1280px) {
  body.has-panel .main { margin-right: var(--panel); }
}
@media (max-width: 380px) {
  .counter b { font-size: 18px; }
  .ph h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
[hidden] { display: none !important; }
a.row { text-decoration: none; }
.row.static { cursor: default; }
.tiles .card + .card { margin-top: 0; }
