/* senkelswelt.de – Aussehen. Eigene Gestaltung, keine fremden Schriften oder Bibliotheken. */
:root {
  --bg: #120e1b;
  --bg2: #191325;
  --card: #1f182e;
  --card2: #271f3a;
  --line: #352b4c;
  --line2: #4a3d68;
  --text: #f3eefb;
  --muted: #a99dbf;
  --dim: #7d7196;
  --yellow: #ffc24b;
  --pink: #ff5c8a;
  --violet: #8b7bff;
  --green: #4fd1a1;
  --blue: #5cb8ff;
  --orange: #ff9b4a;
  --red: #ff6b6b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 28px 20px 60px; outline: none; }
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
code { background: var(--card2); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* ---------- Kopf ---------- */
.notice { background: linear-gradient(90deg, #4a2a10, #3c1f2f); color: #ffe2b0; padding: 8px 20px; text-align: center; font-size: 14px; }
.top { position: sticky; top: 0; z-index: 30; background: rgba(18, 14, 27, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--max); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.logo { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: #1d1630; box-shadow: 0 0 0 2px var(--line2); flex: none; }
.logo img, .logo svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-word { font-size: 19px; letter-spacing: -.01em; }
.brand-word span { color: var(--yellow); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a, .nav button.linkish { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav a:hover, .nav button.linkish:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav a.active { color: var(--text); background: var(--card2); }
.nav .btn { margin-left: 6px; }
.nav .admin-link { color: var(--yellow); }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Knöpfe, Felder ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 11px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); font: 600 15px/1.2 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--yellow); color: #1a1206; border-color: var(--yellow); }
.btn-primary:hover { background: #ffd27a; border-color: #ffd27a; }
.btn-pink { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn-danger { background: transparent; color: var(--red); border-color: #6b2b3a; }
.btn-danger:hover { background: #3a1620; border-color: var(--red); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--text); background: var(--card); border-color: var(--line); }
.btn-sm { padding: 6px 12px; font-size: 14px; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field > span, .field > legend, .label { font-weight: 600; font-size: 14px; color: var(--text); }
.field small, .hint { color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line2); background: #150f21; color: var(--text); font: 15px/1.4 var(--font);
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 194, 75, .18); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--yellow); flex: none; }
.form-error { color: var(--red); min-height: 0; margin: 0; font-size: 14px; }
.form-error:empty { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; display: grid; gap: 10px; }

/* ---------- Karten, Flächen ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty h2 { color: var(--text); }
.box { border-radius: 12px; padding: 14px 16px; background: var(--card2); border: 1px solid var(--line); font-size: 15px; }
.box.ok { border-color: #285e4b; background: #13261f; }
.box.warn { border-color: #6b4a1d; background: #2a1d0e; }
.box.bad { border-color: #6b2b3a; background: #2a1118; }
.box p:last-child { margin: 0; }
.loading { min-height: 50vh; display: flex; align-items: center; justify-content: center; }
.loading::after { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--yellow); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--card2); border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--dim); }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(79, 209, 161, .18); }
.dot.off { background: var(--red); }

/* Phasen */
.phase { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; border: 1px solid currentColor; white-space: nowrap; }
.phase::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ph-idee { color: #b9aed0; }
.ph-entwicklung { color: var(--blue); }
.ph-alpha { color: var(--orange); }
.ph-beta { color: var(--violet); }
.ph-fertig { color: var(--green); }
.ph-pause { color: #9a92ad; }
.ph-eingestellt { color: var(--red); }
.steps { display: flex; gap: 6px; margin: 14px 0 6px; }
.steps span { flex: 1; height: 6px; border-radius: 6px; background: var(--line); }
.steps span.on { background: var(--c, var(--yellow)); }
.steps-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); gap: 6px; }
.steps-labels b { color: var(--text); }

/* ---------- Startseite ---------- */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; padding: 30px 0 36px; }
.hero-logo { width: 168px; height: 168px; border-radius: 50%; overflow: hidden; background: #1d1630; box-shadow: 0 0 0 4px var(--card2), 0 0 0 6px var(--yellow), 0 20px 60px rgba(255, 92, 138, .25); }
.hero-logo img, .hero-logo svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero h1 { font-size: clamp(34px, 5.5vw, 58px); margin-bottom: 10px; }
.hero h1 .accent { background: linear-gradient(90deg, var(--yellow), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 680px; }
.hero .actions { margin-top: 22px; }
.sec { margin-top: 46px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: 28px; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; background: linear-gradient(160deg, var(--card2), var(--card) 60%); border: 1px solid var(--line); color: var(--text); transition: transform .15s, border-color .15s; overflow: hidden; }
.pcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--yellow)); }
.pcard:hover { transform: translateY(-3px); border-color: var(--line2); text-decoration: none; }
.pcard-top { display: flex; align-items: center; gap: 12px; }
.picon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: color-mix(in srgb, var(--c, var(--yellow)) 22%, transparent); color: var(--c, var(--yellow)); flex: none; font-weight: 800; }
.pcard h3 { margin: 0; font-size: 19px; }
.pcard p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.pcard .note { font-size: 13px; color: var(--yellow); font-weight: 600; }
.pcard .more { font-weight: 700; font-size: 14px; color: var(--c, var(--yellow)); }
.shop { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 26px 28px; border-radius: 18px; background: linear-gradient(110deg, #2d1b3c, #3a1f2d 60%, #3a2a12); border: 1px solid var(--line2); }
.shop h2 { margin: 0 0 4px; }
.shop p { margin: 0; color: #e8d9f5; }

/* Zeitstrahl */
.timeline { position: relative; margin: 0; padding: 0 0 0 30px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--yellow), var(--pink) 50%, var(--line) 100%); border-radius: 2px; }
.tl { position: relative; padding: 0 0 22px; }
.tl::before { content: ""; position: absolute; left: -27px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--c, var(--yellow)); }
.tl.planned::before { border-style: dashed; background: transparent; }
.tl-date { font-size: 13px; color: var(--dim); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tl-card { margin-top: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.tl-card h3 { margin: 0 0 4px; font-size: 16.5px; }
.tl-card p { margin: 0; color: var(--muted); font-size: 15px; white-space: pre-line; }
.tl-proj { color: var(--c, var(--yellow)); font-weight: 700; }
.tl.planned .tl-card { border-style: dashed; background: transparent; }

/* Projektseite */
.pdetail { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.phead { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.phead .picon { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; }
.phead h1 { margin: 0; }
.longtext p { white-space: pre-line; color: #ddd3ee; font-size: 17px; }
.back { display: inline-flex; gap: 6px; color: var(--muted); font-weight: 600; margin-bottom: 18px; }

/* ---------- Konto ---------- */
.auth { max-width: 460px; margin: 20px auto; }
.auth h1 { font-size: 32px; }
.mine { display: grid; gap: 14px; }
.mrow { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.mrow h3 { margin: 0 0 3px; }
.mrow p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Dialoge, Meldungen ---------- */
dialog.dlg { border: 1px solid var(--line2); border-radius: 18px; background: var(--card); color: var(--text); padding: 24px; width: min(560px, calc(100vw - 30px)); box-shadow: var(--shadow); max-height: calc(100vh - 40px); overflow: auto; }
dialog.dlg::backdrop { background: rgba(6, 4, 10, .7); }
dialog.dlg.wide { width: min(820px, calc(100vw - 30px)); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.toasts { position: fixed; right: 18px; bottom: 90px; display: grid; gap: 10px; z-index: 60; }
.toast { background: #f3eefb; color: #1a1426; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; max-width: 360px; animation: pop .2s ease-out; }
.toast.bad { background: var(--red); color: #fff; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }

/* ---------- Speichern-Leiste (unten, auf allen Seiten mit Änderungen) ---------- */
.savebar { position: sticky; bottom: 0; z-index: 40; background: rgba(25, 19, 37, .96); border-top: 1px solid var(--line2); backdrop-filter: blur(10px); box-shadow: 0 -10px 30px rgba(0, 0, 0, .3); }
.savebar-in { max-width: var(--max); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.savebar-state { color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.savebar.dirty .savebar-state { color: var(--yellow); }
.savebar.dirty .savebar-state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 194, 75, .2); }
.savebar-actions { margin-left: auto; display: flex; gap: 10px; }
.btn-save { min-width: 150px; }
.savebar:not(.dirty) #savebar-discard { visibility: hidden; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.aside { position: sticky; top: 80px; display: grid; gap: 4px; }
.aside .aside-title { font-size: 12px; font-weight: 800; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin: 14px 10px 4px; }
.aside .aside-title:first-child { margin-top: 0; }
.aside a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.aside a:hover { background: var(--card); color: var(--text); text-decoration: none; }
.aside a.active { background: var(--card2); color: var(--text); box-shadow: inset 3px 0 0 var(--yellow); }
.count { background: var(--pink); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 800; }
.lockbar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; background: #2a1d0e; border: 1px solid #6b4a1d; margin-bottom: 18px; flex-wrap: wrap; }
.lockbar.open { background: #13261f; border-color: #285e4b; }
.lockbar.bad { background: #2a1118; border-color: #6b2b3a; }
.lockbar div { flex: 1; min-width: 200px; }
.lockbar .btn { margin-left: auto; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-title h1 { margin: 0; font-size: 30px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat b { display: block; font-size: 28px; }
.stat span { color: var(--muted); font-size: 14px; }
.stat.todo { border-color: #6b2b3a; background: #24121a; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; padding: 11px 14px; background: var(--bg2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.n { text-align: right; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.plist { display: grid; gap: 10px; }
.pitem { display: grid; grid-template-columns: auto auto 1fr 190px auto auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.pitem.changed { border-color: var(--yellow); }
.pitem .picon { width: 40px; height: 40px; font-size: 20px; border-radius: 12px; }
.pitem h3 { margin: 0; font-size: 16px; }
.pitem .sub { color: var(--muted); font-size: 13px; }
.order-btns { display: grid; gap: 2px; }
.order-btns button { width: 30px; height: 22px; border-radius: 6px; border: 1px solid var(--line2); background: var(--card2); color: var(--muted); cursor: pointer; font-size: 11px; padding: 0; }
.order-btns button:hover { color: var(--text); }
.order-btns button:disabled { opacity: .3; cursor: default; }
.phase-select { font-weight: 700; }
.tl-edit { display: grid; gap: 12px; }
.tl-row { display: grid; grid-template-columns: 150px 200px 1fr auto; gap: 10px; align-items: start; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.tl-row .full { grid-column: 3 / 4; }
.tl-row textarea { min-height: 60px; }
.logo-edit { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.logo-edit .hero-logo { width: 110px; height: 110px; box-shadow: 0 0 0 3px var(--line2); }
.color-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.swatch.sel { border-color: #fff; }
.preview-card { pointer-events: none; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; color: var(--muted); font: 600 15px var(--font); padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected=true] { color: var(--text); border-bottom-color: var(--yellow); }
.tabs .count { margin-left: 4px; }
.logs { font: 13px/1.5 ui-monospace, Consolas, monospace; background: #0d0a14; border: 1px solid var(--line); border-radius: 12px; padding: 12px; max-height: 60vh; overflow: auto; }
.log-line { white-space: pre-wrap; word-break: break-word; padding: 2px 0; border-bottom: 1px solid #1c1628; }
.log-line .lv-WARN { color: var(--orange); }
.log-line .lv-FEHLER { color: var(--red); }
.log-line .src { color: var(--violet); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filters > * { width: auto; }

/* Editor */
.editor-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border: 1px solid var(--line2); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--card2); }
.editor-bar button { background: transparent; border: 1px solid transparent; color: var(--text); border-radius: 8px; padding: 6px 10px; cursor: pointer; font: 600 14px var(--font); }
.editor-bar button:hover { background: var(--card); border-color: var(--line2); }
.editor { min-height: 420px; max-height: 70vh; overflow: auto; padding: 18px 22px; border: 1px solid var(--line2); border-radius: 0 0 12px 12px; background: #fbf9ff; color: #1e1730; font-size: 16px; line-height: 1.6; outline: none; }
.editor:focus { border-color: var(--yellow); }
.editor h2 { font-size: 22px; margin: 1.2em 0 .4em; color: #1e1730; }
.editor h3 { font-size: 18px; color: #1e1730; }
.editor a { color: #7a3fd6; }
.editor .fill { background: #fff0b3; outline: 1px dashed #c99a1a; }
.editor .vorlage { background: #fff4e0; border: 1px solid #f0c060; padding: 10px 14px; border-radius: 10px; }

/* Rechtstexte in der Seite */
.legal { max-width: 820px; }
.legal h2 { margin-top: 1.4em; font-size: 21px; }
.legal .fill { background: rgba(255, 194, 75, .2); outline: 1px dashed var(--yellow); }
.legal .vorlage { background: var(--card2); border: 1px solid #6b4a1d; padding: 12px 16px; border-radius: 12px; }

/* ---------- Fuß ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg2); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 24px 20px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 14px; }
.foot p { margin: 4px 0 0; }

/* ---------- Handy ---------- */
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .aside .aside-title { grid-column: 1 / -1; }
  .pdetail { grid-template-columns: 1fr; }
  .pitem { grid-template-columns: auto auto 1fr; }
  .pitem .phase-cell, .pitem .vis-cell, .pitem .edit-cell { grid-column: 3 / 4; }
  .tl-row { grid-template-columns: 1fr 1fr; }
  .tl-row .full, .tl-row .grow { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  main { padding: 18px 16px 50px; }
  .menu-btn { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 6px 0 0; }
  .hero { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 20px; }
  .hero .lead { margin: 0 auto; }
  .hero .actions { justify-content: center; }
  .hero-logo { width: 128px; height: 128px; }
  .grid { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: auto 1fr; }
  .mrow .actions { grid-column: 1 / -1; }
  .savebar-in { padding: 10px 16px; }
  .btn-save { min-width: 0; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
