/* English Star – K-Pop-Bühnenlook (eigenes Design) */
:root {
  --bg: #120a2e; --bg2: #1c1145; --card: rgba(255,255,255,.07); --card2: rgba(255,255,255,.12);
  --line: rgba(255,255,255,.14); --text: #f7f3ff; --muted: #b9addf; --pink: #ff4fd8; --violet: #8b5cf6;
  --cyan: #22d3ee; --gold: #ffd166; --ok: #34e3a0; --warn: #ffb347; --bad: #ff6b8b;
  --grad: linear-gradient(135deg, #ff4fd8 0%, #8b5cf6 55%, #22d3ee 100%);
  --radius: 22px; --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* Nachtbuehne: Mond, Sterne, schwenkende Scheinwerfer, Lightstick-Publikum */
#bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(60vmax 40vmax at 82% 8%, rgba(255,240,200,.16), transparent 60%),
              radial-gradient(120% 80% at 50% 0%, #2a1466 0%, var(--bg) 62%); }
#bg::before { content: ""; position: absolute; right: 9vw; top: 6vh; width: 70px; height: 70px; border-radius: 50%;
  box-shadow: -14px 6px 0 0 #ffe9b8; filter: drop-shadow(0 0 18px rgba(255,233,184,.7)); transform: rotate(-20deg); }
#bg::after { content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 40%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 90% 46%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 50%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 58%, #fff 50%, transparent 51%);
  animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .25; } }
#bg span { position: absolute; top: -10vh; width: 26vmax; height: 120vh; transform-origin: 50% 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.22), rgba(255,255,255,0) 85%); filter: blur(6px);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); mix-blend-mode: screen; animation: sweep 9s ease-in-out infinite alternate; }
#bg span:nth-child(1) { left: -2vmax; background: linear-gradient(to bottom, rgba(255,79,216,.45), transparent 85%); }
#bg span:nth-child(2) { left: 38%; animation-duration: 11s; animation-delay: -4s; }
#bg span:nth-child(3) { right: -2vmax; background: linear-gradient(to bottom, rgba(34,211,238,.4), transparent 85%); animation-delay: -7s; }
@keyframes sweep { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
.crowd { position: fixed; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; opacity: .7; pointer-events: none;
  background: url("/static/img/crowd.svg") repeat-x bottom / 120px 60px; animation: wave 2.4s ease-in-out infinite alternate; }
.crowd.back { height: 150px; opacity: .35; background-size: 90px 45px; animation-delay: -1.2s; filter: blur(1px); }
@keyframes wave { to { background-position-y: calc(100% - 6px); } }
body.parent .crowd { display: none; }
/* Buehnenbanner auf der Startseite */
.stage { position: relative; margin: 4px -16px 6px; height: 150px; background: url("/static/img/stage.svg") no-repeat center bottom / contain; }
.stage .eq { position: absolute; bottom: 22px; display: flex; gap: 3px; align-items: flex-end; height: 40px; }
.stage .eq.l { left: 18px; } .stage .eq.r { right: 18px; }
.stage .eq i { width: 5px; border-radius: 3px; background: var(--grad); animation: eq 1s ease-in-out infinite alternate; }
.stage .eq i:nth-child(2) { animation-delay: -.3s; } .stage .eq i:nth-child(3) { animation-delay: -.6s; } .stage .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 6px; } to { height: 38px; } }
.hangul { font-weight: 900; letter-spacing: .02em; }
/* koreanisches Ornamentband (eigenes Muster) */
.ornament { height: 10px; margin: 8px 0 14px; border-radius: 6px; opacity: .8;
  background: repeating-linear-gradient(90deg, #ff4fd8 0 10px, #ffd166 10px 14px, #22d3ee 14px 24px, #8b5cf6 24px 28px, #34e3a0 28px 38px, #8b5cf6 38px 42px); }
.ghost-card { display: flex; gap: 12px; align-items: center; }
.ghost-card .ghosts { font-size: 1.9rem; letter-spacing: -6px; animation: bob 2s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-5px); } }
.shield { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; color: var(--muted); }
/* Tour */
.tour-shade { position: fixed; inset: 0; z-index: 80; background: transparent; }
.tour-ring { position: fixed; z-index: 81; border-radius: 22px; border: 3px solid #fff; box-shadow: 0 0 0 9999px rgba(8,4,24,.62), 0 0 24px var(--pink); pointer-events: none; transition: all .3s; }
.tour-bubble { position: fixed; left: 50%; transform: translateX(-50%); width: min(92vw, 440px); z-index: 82; background: #fff; color: #2b1166;
  border-radius: 22px; padding: 16px 18px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.tour-bubble p { font-size: 1.05rem; }
.tour-bubble .btn-ghost { color: #6d28d9; border-color: #e9e3fb; }
.tour-bubble .muted { color: #7a70a0; }
.help-btn { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; font-size: 1.2rem; }
/* Photocards */
.badge { background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); aspect-ratio: 5 / 7; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.badge:not(.locked)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 45%, rgba(34,211,238,.25) 55%, transparent 70%); animation: holo 4s linear infinite; }
@keyframes holo { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { #bg span, .pulse, .shine { animation: none !important; } }

#app { max-width: 760px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 16px calc(100px + var(--safe-b)); min-height: 100vh; }
.boot { display: grid; place-items: center; min-height: 70vh; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; font-weight: 900; }
h2 { font-size: 1.35rem; font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 800; }
p { margin: .3em 0 .8em; }
a { color: var(--cyan); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.glow-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card.tap { cursor: pointer; transition: transform .15s ease, background .2s; }
.card.tap:active { transform: scale(.98); background: var(--card2); }
.hero { position: relative; overflow: hidden; border: none; background: var(--grad); color: #fff; box-shadow: 0 12px 40px rgba(255,79,216,.35); }
.hero::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  animation: shine 5s ease-in-out infinite; }
.hero > * { position: relative; z-index: 1; }
@keyframes shine { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.hero .label { text-transform: uppercase; font-size: .78rem; font-weight: 900; letter-spacing: .12em; opacity: .9; }
.hero .title { font-size: 1.5rem; font-weight: 900; margin: 4px 0; }

button, .btn { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 14px 22px; min-height: 52px;
  cursor: pointer; color: #fff; background: var(--card2); border: 1px solid var(--line); transition: transform .12s, filter .2s, opacity .2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
button:active, .btn:active { transform: scale(.96); }
button:disabled { opacity: .45; cursor: default; }
.btn-main { background: var(--grad); border: none; box-shadow: 0 8px 24px rgba(139,92,246,.45); }
.btn-white { background: #fff; color: #3b1478; border: none; }
.btn-ok { background: linear-gradient(135deg, #22d3a0, #22d3ee); border: none; }
.btn-ghost { background: transparent; }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.icon-btn { width: 52px; padding: 0; flex: 0 0 52px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--card2); font-size: .85rem; font-weight: 800; }
.pill.ok { background: rgba(52,227,160,.2); color: #8ff5cc; }
.pill.warn { background: rgba(255,179,71,.2); color: #ffd39c; }
.pill.bad { background: rgba(255,107,139,.2); color: #ffb3c4; }
.pill.info { background: rgba(34,211,238,.18); color: #a5f3fc; }

input, textarea, select { font: inherit; font-size: 18px; color: var(--text); background: rgba(0,0,0,.28); border: 2px solid var(--line);
  border-radius: 16px; padding: 13px 15px; width: 100%; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.25); }
textarea { min-height: 92px; resize: vertical; }
label { display: block; font-weight: 800; margin: 10px 0 6px; font-size: .92rem; color: var(--muted); }
select option { color: #111; }

/* Navigation unten (einhaendig) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 8px 10px calc(8px + var(--safe-b));
  background: rgba(18,10,46,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabbar nav { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; color: var(--muted);
  text-decoration: none; font-size: .72rem; font-weight: 800; min-height: 54px; justify-content: center; }
.tabbar a .ic { font-size: 1.45rem; line-height: 1; }
.tabbar a.on { color: #fff; background: rgba(139,92,246,.28); }

.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.topbar h1, .topbar h2 { margin: 0; flex: 1; }
.back { width: 46px; min-height: 46px; padding: 0; border-radius: 50%; }

/* Fortschritt */
.bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .5s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 14px rgba(255,79,216,.6); }
.lightstick { display: flex; gap: 4px; }
.lightstick i { flex: 1; height: 10px; border-radius: 6px; background: rgba(255,255,255,.12); transition: background .3s, box-shadow .3s; }
.lightstick i.done { background: var(--grad); box-shadow: 0 0 10px rgba(34,211,238,.6); }
.lightstick i.miss { background: rgba(255,179,71,.65); }
.lightstick i.now { background: rgba(255,255,255,.45); }
.ring { --p: 0; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 86px;
  background: conic-gradient(var(--pink) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); }
.ring > div { width: 68px; height: 68px; border-radius: 50%; background: var(--bg2); display: grid; place-items: center; font-weight: 900; font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { text-align: center; padding: 12px 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-size: 1.45rem; font-weight: 900; }
.stat span { font-size: .78rem; color: var(--muted); font-weight: 700; }
.skill { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.skill:last-child { border-bottom: 0; }
.skill .bar { grid-column: 1 / -1; height: 8px; }
.lvl-sure { color: var(--ok); } .lvl-practice { color: var(--gold); } .lvl-started { color: var(--cyan); } .lvl-new { color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.1rem; }
.stars .off { color: rgba(255,255,255,.2); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: var(--muted); }
.day.on { background: var(--grad); color: #fff; box-shadow: 0 0 12px rgba(255,79,216,.45); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.badge { text-align: center; padding: 12px 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: .78rem; font-weight: 800; }
.badge .b-ic { font-size: 1.9rem; display: block; margin-bottom: 4px; }
.badge.locked { opacity: .35; filter: grayscale(1); }

/* Uebungen */
.ex-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ex-head .lightstick { flex: 1; }
.prompt { font-weight: 800; color: var(--muted); font-size: .95rem; margin-bottom: 6px; }
.task-text { font-size: 1.32rem; font-weight: 800; margin: 4px 0 16px; line-height: 1.35; }
.gapword { display: inline-block; min-width: 70px; border-bottom: 3px solid var(--cyan); margin: 0 4px; }
.options { display: grid; gap: 10px; }
.option { text-align: left; justify-content: flex-start; padding: 16px 18px; border-radius: 18px; font-weight: 700; font-size: 1.05rem; min-height: 58px; background: rgba(255,255,255,.08); }
.option.sel { border-color: var(--violet); background: rgba(139,92,246,.3); box-shadow: 0 0 0 3px rgba(139,92,246,.35); }
.option.right { border-color: var(--ok); background: rgba(52,227,160,.22); }
.option.wrong { border-color: var(--bad); background: rgba(255,107,139,.2); }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { padding: 10px 14px; min-height: 46px; border-radius: 14px; background: rgba(255,255,255,.12); font-weight: 800; font-size: 1.02rem; }
.tile.used { opacity: .25; pointer-events: none; }
.answer-zone { min-height: 64px; border: 2px dashed var(--line); border-radius: 18px; padding: 10px; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.answer-zone:empty::before { content: attr(data-empty); color: var(--muted); font-size: .92rem; }
.seq-item { display: flex; gap: 10px; align-items: center; text-align: left; justify-content: flex-start; width: 100%; border-radius: 16px; padding: 12px 14px; }
.seq-item .num { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: .9rem; }
.cloze { font-size: 1.12rem; line-height: 2.3; }
.cloze .slot { display: inline-block; min-width: 92px; padding: 0 10px; min-height: 38px; line-height: 34px; border-radius: 12px; border: 2px dashed var(--cyan);
  background: rgba(34,211,238,.08); cursor: pointer; vertical-align: middle; font-weight: 800; text-align: center; }
.cloze .slot.active { border-style: solid; box-shadow: 0 0 0 4px rgba(34,211,238,.3); }
.cloze .slot.right { border-color: var(--ok); background: rgba(52,227,160,.18); }
.cloze .slot.wrong { border-color: var(--bad); background: rgba(255,107,139,.18); }
.inputrow { display: flex; gap: 10px; align-items: flex-start; }
.inputrow textarea, .inputrow input { flex: 1; }
.mic { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 56px; font-size: 1.5rem; padding: 0; background: var(--grad); border: none; }
.mic.live { animation: pulse 1.1s ease-in-out infinite; background: linear-gradient(135deg, #ff4f7b, #ff4fd8); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,79,216,.6); } 50% { box-shadow: 0 0 0 16px rgba(255,79,216,0); } }
.speech-note { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.feedback { margin-top: 16px; padding: 16px; border-radius: 20px; border: 1px solid var(--line); animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.feedback.correct { background: rgba(52,227,160,.16); border-color: rgba(52,227,160,.5); }
.feedback.almost { background: rgba(255,209,102,.14); border-color: rgba(255,209,102,.5); }
.feedback.wrong { background: rgba(255,107,139,.14); border-color: rgba(255,107,139,.5); }
.feedback.pending { background: rgba(34,211,238,.12); border-color: rgba(34,211,238,.45); }
.feedback .fb-title { font-weight: 900; font-size: 1.2rem; margin-bottom: 4px; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.sticky-actions { position: sticky; bottom: calc(10px + var(--safe-b)); margin-top: 16px; display: grid; gap: 10px; z-index: 5; }
.explain-box { background: rgba(0,0,0,.2); border-radius: 18px; padding: 14px 16px; margin: 10px 0; }
.example { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.example:last-child { border: 0; }
.example .en { font-weight: 800; }
.reading p { font-size: 1.12rem; line-height: 1.65; margin: 0 0 14px; }
.reading { font-family: Georgia, "Iowan Old Style", serif; }
.reading p:first-letter { font-weight: 900; }
.origin-ai { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: rgba(34,211,238,.18); color: #a5f3fc; font-weight: 800; }

#toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 50;
  background: #fff; color: #2b1166; padding: 12px 18px; border-radius: 16px; font-weight: 800; box-shadow: var(--shadow); transition: .3s; max-width: 90vw; text-align: center; pointer-events: none; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255,255,255,.15); border-top-color: var(--pink); animation: spin .8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall 1.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .3; } }
.big-stars { font-size: 3.4rem; letter-spacing: 6px; text-align: center; }
.big-stars span { display: inline-block; animation: starpop .5s cubic-bezier(.2,1.6,.4,1) backwards; }
.big-stars span:nth-child(2) { animation-delay: .25s; } .big-stars span:nth-child(3) { animation-delay: .5s; }
@keyframes starpop { from { transform: scale(0) rotate(-90deg); } }
.login-wrap { min-height: 78vh; display: grid; place-items: center; }
.logo { font-size: 2.6rem; font-weight: 900; text-align: center; margin-bottom: 4px; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 14px auto; }
.pinpad button { font-size: 1.5rem; min-height: 64px; border-radius: 20px; }
.pindots { display: flex; justify-content: center; gap: 12px; margin: 10px 0; }
.pindots i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.18); }
.pindots i.on { background: var(--grad); box-shadow: 0 0 10px var(--pink); }
.reward { display: flex; gap: 12px; align-items: center; }
.reward .gift { font-size: 2.2rem; }

/* Elternbereich: ruhiger, gut am Desktop */
body.parent { background: #f4f2fb; color: #1d1636; font-size: 16px; }
body.parent #bg { display: none; }
body.parent #app { max-width: 1180px; padding-bottom: 60px; }
body.parent .card { background: #fff; border-color: #e6e1f5; box-shadow: 0 4px 18px rgba(40,20,90,.07); backdrop-filter: none; }
body.parent .muted { color: #6f6890; }
body.parent input, body.parent textarea, body.parent select { background: #fff; color: #1d1636; border-color: #d9d3ee; font-size: 16px; }
body.parent label { color: #4d4570; }
body.parent button, body.parent .btn { color: #2b1166; background: #efeafd; border-color: #ded6fa; min-height: 44px; padding: 10px 16px; }
body.parent .btn-main { background: linear-gradient(135deg, #8b5cf6, #d946ef); color: #fff; border: none; }
body.parent .btn-ok { background: #16a34a; color: #fff; }
body.parent .btn-danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
body.parent .pill { background: #efeafd; color: #3b1478; }
body.parent .pill.ok { background: #dcfce7; color: #166534; } body.parent .pill.warn { background: #fef3c7; color: #92400e; }
body.parent .pill.bad { background: #fee2e2; color: #991b1b; } body.parent .pill.info { background: #e0f2fe; color: #075985; }
body.parent a { color: #6d28d9; }
.pnav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; padding: 10px; background: #fff; border-radius: 18px; border: 1px solid #e6e1f5; }
.pnav a { padding: 8px 14px; border-radius: 12px; text-decoration: none; font-weight: 800; color: #4d4570; }
.pnav a.on { background: #efeafd; color: #3b1478; }
.pnav .brand { font-weight: 900; margin-right: 10px; color: #6d28d9; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.thumb { border: 1px solid #e6e1f5; border-radius: 14px; overflow: hidden; background: #faf9ff; }
.thumb img { width: 100%; height: 170px; object-fit: cover; display: block; background: #eee; }
.thumb .tb { display: flex; gap: 4px; padding: 6px; flex-wrap: wrap; align-items: center; }
.thumb .tb button { min-height: 34px; padding: 4px 9px; font-size: .85rem; }
.thumb.removed { opacity: .4; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eee9fb; vertical-align: top; font-size: .93rem; }
th { color: #6f6890; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.item { border: 1px solid #ece7fb; border-radius: 14px; padding: 12px; margin-bottom: 10px; background: #fff; }
.item.removed { opacity: .45; }
.item.flagged { border-color: #fbbf24; background: #fffbeb; }
.item .fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.item .fields input, .item .fields textarea { padding: 8px 10px; border-radius: 10px; }
.item .fields label { margin: 4px 0 2px; font-size: .78rem; }
.ex-edit { border: 1px solid #ece7fb; border-radius: 14px; padding: 12px; margin-bottom: 12px; background: #fcfbff; }
.ex-edit textarea { min-height: 60px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.terminal { background: #120a2e; color: #d6ccff; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; padding: 12px; border-radius: 12px; white-space: pre-wrap; max-height: 240px; overflow: auto; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; } h1 { font-size: 1.6rem; } }
@media (max-width: 360px) { body { font-size: 16px; } .task-text { font-size: 1.15rem; } .stats { gap: 6px; } }
