:root {
  --brand: #4c1d95;
  --brand-strong: #3b1675;
  --reward: #f59e0b;
  --background: #f9fafb;
  --border: #d8d2cb;
  --decorative-border: #efece6;
  --danger-soft: #fee2e2;
  --bg: var(--background);
  --surface: rgba(255, 255, 255, .86);
  --surface-solid: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: var(--decorative-border);
  --primary: var(--brand);
  --primary-strong: var(--brand-strong);
  --accent: var(--reward);
  --success: #10b981;
  --danger: #ef4444;
  --shadow: 0 18px 50px rgba(50, 35, 90, .12);
  --radius: 22px;
  font-family: Inter, ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #b8a0ed;
    --brand-strong: #9274d3;
    --reward: #f0b96f;
    --success: #82b991;
    --danger: #e3948c;
    --danger-soft: #3d2428;
    --background: #0d0b18;
    --border: #615b70;
    --decorative-border: rgba(232, 226, 255, .12);
    --bg: var(--background);
    --surface: rgba(29, 25, 48, .9);
    --surface-solid: #1d1930;
    --text: #f7f5ff;
    --muted: #aaa4c3;
    --line: var(--decorative-border);
    --shadow: 0 18px 50px rgba(0, 0, 0, .32);
  }
  .theme-hero_hq { --bg: #10172d; }
  .theme-art_studio { --bg: #211713; }
  .theme-panda_pet { --bg: #101914; --text: #f8f9fa; }
}
* { box-sizing: border-box; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); background-image: radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 32rem); }
body.system-page {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  color-scheme: light;
  background:
    radial-gradient(circle at 8% 8%, rgba(109, 40, 217, .20) 0%, rgba(109, 40, 217, .08) 24%, transparent 48%),
    radial-gradient(circle at 92% 84%, rgba(147, 51, 234, .16) 0%, transparent 40%),
    linear-gradient(135deg, #fcfbff 0%, var(--bg) 62%);
}
body.system-page::before {
  content: "";
  position: fixed;
  z-index: 0;
  width: 760px;
  height: 760px;
  right: -360px;
  top: 80px;
  border: 1px solid rgba(76, 29, 149, .16);
  border-radius: 50%;
  pointer-events: none;
}
body.system-page::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 420px;
  height: 420px;
  right: -170px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(109, 40, 217, .16) 0%, transparent 68%);
  pointer-events: none;
}
.system-page .topbar, .system-page .page, .system-page .site-footer { position: relative; z-index: 1; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px max(20px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 78%, transparent); }
.landing-topbar { position: relative; top: auto; width: min(1160px, calc(100% - 32px)); min-height: 72px; margin: 0 auto; padding: 18px 0; border-bottom: 0; background: transparent; backdrop-filter: none; }
.topbar > * { display: flex; align-items: center; gap: 12px; }
.brand-wrap { display: inline-flex; align-items: center; gap: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.language-switcher { position: relative; display: inline-grid; width: 44px; height: 44px; min-height: 44px; }
.language-switcher-face { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; color: var(--muted); background: var(--surface-solid); border: 1px solid var(--border); border-radius: 99px; font-size: 1.15rem; pointer-events: none; }
.language-switcher-face > span { white-space: nowrap; }
.language-switcher select { position: absolute; inset: 0; width: 100%; height: 44px; min-height: 44px; appearance: none; opacity: 0; cursor: pointer; }
.language-switcher:focus-within .language-switcher-face { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; text-decoration: none; letter-spacing: -.02em; }
.app-version { color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .02em; text-decoration: none; border-radius: 7px; padding: 4px 5px; }
.app-version:hover, .app-version:focus-visible { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; color: white; background: linear-gradient(145deg, var(--primary), var(--primary-strong)); box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 35%, transparent); }
.brand-logo { object-fit: cover; }
.page { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 max(80px, env(safe-area-inset-bottom)); }
.hero { min-height: calc(100vh - 180px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 780px; }
.landing-page .page { min-height: calc(100vh - 164px); display: grid; align-items: center; padding-block: clamp(38px, 8vh, 96px); }
.landing-page .hero { min-height: min(640px, calc(100vh - 164px)); max-width: 800px; }
.landing-page .hero h1 { text-wrap: balance; }
.auth-page .page { min-height: calc(100vh - 164px); display: grid; place-items: center; padding-block: clamp(36px, 8vh, 96px); }
.auth-page .narrow-card {
  margin: 0;
  border-color: color-mix(in srgb, var(--primary) 18%, var(--line));
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  box-shadow: var(--shadow);
}
.auth-page .narrow-card .eyebrow { margin-bottom: 12px; }
.auth-page .narrow-card h1 { font-size: clamp(2rem, 5vw, 2.85rem); letter-spacing: -.05em; }
.auth-page .narrow-card .button-large { width: 100%; }
.hero h1, .section-heading h1, .child-hero h1 { margin: 0; font-size: clamp(2.4rem, 8vw, 5.8rem); line-height: .96; letter-spacing: -.065em; }
.hero p:not(.eyebrow) { max-width: 600px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.6; }
.eyebrow { margin: 0 0 8px; color: var(--primary); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 850; }
.hero-actions, .inline-form, .approval-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.site-footer { display: flex; width: min(1160px, calc(100% - 32px)); margin: -48px auto 0; padding: 22px 0 max(22px, env(safe-area-inset-bottom)); align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: .72rem; font-weight: 750; text-align: center; }
.site-footer a { display: inline-flex; padding: 7px 8px; align-items: center; gap: 4px; border-radius: 9px; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.github-link .action-icon { width: 15px; height: 15px; }
.history-actor { color: var(--muted); }
.birthday-change-pending { color: var(--muted); font-weight: 700; }
.button { border: 0; border-radius: 14px; padding: 11px 16px; font-weight: 780; cursor: pointer; text-decoration: none; text-align: center; transition: transform .16s, filter .16s; }
.button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.button-large { padding: 15px 22px; border-radius: 17px; font-size: 1.05rem; }
.button-primary { color: #fff; background: linear-gradient(145deg, var(--primary), var(--primary-strong)); }
.button-secondary { color: var(--text); background: color-mix(in srgb, var(--primary) 12%, var(--surface-solid)); border: 1px solid var(--line); }
.button-danger { color: #fff; background: var(--danger); }
.task-search { position: relative; z-index: 3; display: grid; gap: 8px; margin-bottom: 18px; }
.task-search > label { color: var(--text); font-weight: 750; }
.task-search-results { position: absolute; z-index: 20; top: 100%; right: 0; left: 0; max-height: min(320px, 48vh); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); box-shadow: 0 16px 40px rgba(45, 42, 50, .16); }
.task-search-results[hidden] { display: none; }
.task-search-option { display: block; width: 100%; border: 0; border-radius: 10px; padding: 12px 14px; color: var(--text); background: transparent; font: inherit; font-weight: 750; text-align: left; cursor: pointer; }
.task-search-option:hover, .task-search-option:focus-visible { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface-solid)); outline: none; }
.text-button { appearance: none; border: 0; background: none; color: var(--muted); font-weight: 750; cursor: pointer; padding: 8px; }
.topbar-icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--muted); background: var(--surface-solid); border: 1px solid var(--border); border-radius: 99px; cursor: pointer; }
.topbar-icon-button:hover, .topbar-icon-button:focus-visible { color: var(--primary); border-color: var(--primary); }
.topbar-icon-button .action-icon { width: 20px; height: 20px; }
.push-control { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 99px; color: var(--text); background: var(--surface-solid); cursor: pointer; }
.push-control:disabled { cursor: progress; opacity: .72; }
.push-icon, .push-control .action-icon { width: 20px; height: 20px; fill: currentColor; }
.push-enabled { color: var(--success); border-color: color-mix(in srgb, var(--success) 36%, var(--line)); }
.push-install { color: var(--text); border-color: color-mix(in srgb, var(--accent) 58%, var(--border)); }
.push-disabled, .push-unsupported { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 32%, var(--line)); }
.danger { color: var(--danger); }
.narrow-card, .panel, .profile-card, .item-card, .stat-card, .approval-card, .goal-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); backdrop-filter: blur(18px); }
.narrow-card { width: min(460px, 100%); margin: 8vh auto; padding: clamp(24px, 5vw, 44px); }
.narrow-card h1 { margin-top: 0; }
.stack-form { display: grid; gap: 16px; }
.stack-form p, .stack-form label { margin: 0; display: grid; gap: 7px; color: var(--text); font-weight: 750; }
.field-control, .stack-form input, .stack-form select, .stack-form textarea, .pin-input { width: 100%; min-height: 48px; color: var(--text); background-color: var(--surface-solid); border: 1px solid var(--border); border-radius: 13px; padding: 12px 13px; outline: none; font-weight: 650; line-height: 1.35; }
.stack-form input[type="checkbox"] { width: 22px; height: 22px; min-height: 22px; padding: 0; margin: 0; accent-color: var(--primary); }
.stack-form input[type="file"] { padding: 7px; }
.stack-form input[type="file"]::file-selector-button { min-height: 34px; margin-right: 10px; padding: 6px 11px; border: 0; border-radius: 9px; color: var(--text); background: color-mix(in srgb, var(--muted) 12%, var(--surface-solid)); font: inherit; font-weight: 750; cursor: pointer; }
.field-control::placeholder, .stack-form input::placeholder, .stack-form textarea::placeholder, .pin-input::placeholder { color: var(--muted); font-weight: 500; opacity: .72; }
.field-control:focus, .stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus, .pin-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
select.field-control, .stack-form select {
  min-height: 48px;
  padding-right: 44px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%236f6975' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  font-weight: 750;
  cursor: pointer;
}
.messages { position: fixed; z-index: 30; top: 84px; right: 16px; width: min(380px, calc(100% - 32px)); display: grid; gap: 8px; }
.message { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 13px 13px 16px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); transition: opacity .2s, transform .2s; }
.message.is-hiding { opacity: 0; transform: translateY(-8px); }
.message-close { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; }
.message-close:hover { background: color-mix(in srgb, var(--muted) 10%, transparent); }
.message-success { border-left: 5px solid var(--success); }
.message-error { border-left: 5px solid var(--danger); }
.profile-grid, .item-grid, .stats-grid, .approval-grid, .catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.profile-select-heading { margin-bottom: 28px; }
.profile-card { padding: 28px; text-align: center; position: relative; overflow: hidden; }
.profile-card.is-last::after { content: "Paskutinis"; position: absolute; top: 12px; right: 12px; padding: 5px 9px; border-radius: 99px; font-size: .7rem; background: var(--surface-solid); }
.profile-avatar, .profile-mini { display: grid; place-items: center; margin: 0 auto; color: white; background: linear-gradient(145deg, var(--primary), var(--accent)); font-weight: 900; }
.profile-avatar { width: 86px; height: 86px; border-radius: 29px; font-size: 2rem; }
.profile-mini { width: 42px; height: 42px; border-radius: 14px; margin: 0; }
.profile-photo { object-fit: cover; display: block; }
.child-identity { display: flex; align-items: center; gap: 18px; }
.hero-avatar { width: 92px; height: 92px; border-radius: 28px; object-fit: cover; box-shadow: var(--shadow); border: 2px solid color-mix(in srgb, var(--surface-solid) 72%, transparent); }
.pin-dialog, .action-dialog { width: min(440px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 24px; color: var(--text); background: var(--surface-solid); padding: 32px; box-shadow: var(--shadow); font-family: inherit; }
.pin-dialog::backdrop, .action-dialog::backdrop { background: rgba(8, 6, 18, .66); backdrop-filter: blur(8px); }
.action-dialog h2 { margin-top: 0; padding-right: 24px; }
.action-dialog > p { color: var(--muted); line-height: 1.5; }
.pin-input { font-size: 2rem; text-align: center; letter-spacing: .35em; }
.dialog-close { position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 11px; background: none; color: var(--muted); cursor: pointer; }
.dialog-close:hover { background: color-mix(in srgb, var(--muted) 10%, transparent); }
.choice-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-fieldset legend { margin-bottom: 9px; color: var(--text); font-weight: 750; }
.choice-list { max-height: min(46vh, 420px); overflow-y: auto; display: grid; gap: 8px; padding: 2px; }
.choice-option { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.choice-option:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.choice-option:has(input:checked) { background: color-mix(in srgb, var(--primary) 11%, var(--surface-solid)); border-color: var(--primary); }
.choice-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }
.choice-icon { font-size: 1.25rem; line-height: 1; }
.choice-title { min-width: 0; font-weight: 720; overflow-wrap: anywhere; }
.choice-value { color: var(--success); font-size: .9rem; font-weight: 820; line-height: 1.2; white-space: nowrap; }
.choice-value-negative { color: var(--danger); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; filter: none; }
.child-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0 30px; }
.child-hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
.balance-orb { min-width: 152px; min-height: 152px; display: grid; place-content: center; text-align: center; border-radius: 50%; color: #fff; background: radial-gradient(circle at 30% 20%, var(--accent), var(--primary)); box-shadow: 0 20px 55px color-mix(in srgb, var(--primary) 36%, transparent); }
.balance-orb strong { font-size: 2.6rem; line-height: 1; }
.balance-orb span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.tabbar { display: flex; gap: 6px; overflow-x: auto; position: sticky; top: 82px; z-index: 8; padding: 8px; margin: 0 0 34px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); backdrop-filter: blur(20px); }
.tabbar a { flex: 1; min-width: max-content; padding: 10px 14px; text-align: center; text-decoration: none; font-weight: 750; border-radius: 12px; }
.tabbar a:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.content-section { scroll-margin-top: 150px; padding: 30px 0; }
.section-heading h2 { margin: 0 0 18px; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.04em; }
.item-card { padding: 20px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.item-card form, .item-card .status-pill, .item-card > button { grid-column: 1 / -1; }
.reward-card > form, .reward-card > form .button, .reward-card > button { width: 100%; }
.reward-card > form { margin: 0; }
.item-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface-solid)); font-size: 1.6rem; }
.item-card h3, .approval-card h3 { margin: 0 0 5px; }
.item-card p { margin: 0; }
.amount { font-variant-numeric: tabular-nums; font-weight: 850; color: var(--danger); }
.amount.positive { color: var(--success); }
.status-pill { display: inline-flex; width: fit-content; padding: 7px 10px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 17%, var(--surface-solid)); color: var(--text); font-size: .76rem; font-weight: 780; }
.status-danger { background: color-mix(in srgb, var(--danger) 17%, var(--surface-solid)); }
.pending-list, .ledger { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pending-list h3 { padding: 0 18px; }
.list-row, .ledger-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.list-row:last-child, .ledger-row:last-child { border-bottom: 0; }
.two-column { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.panel, .goal-card { padding: 22px; }
.progress { height: 12px; margin-top: 14px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--muted) 14%, transparent); }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.ledger-row { justify-content: initial; }
.ledger-row > div { flex: 1; display: grid; }
.ledger-row small { color: var(--muted); }
.ledger-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--primary) 10%, transparent); font-weight: 850; }
.ledger-icon .action-icon { width: 20px; height: 20px; fill: currentColor; }
.history-row-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.history-decision { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 34px; padding: 6px 9px; border-radius: 99px; font-size: .76rem; font-weight: 850; white-space: nowrap; }
.history-decision .action-icon { width: 19px; height: 19px; }
.history-decision-approved { color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface-solid)); }
.history-decision-rejected { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface-solid)); }
.history-rejection-reason { margin-top: 4px; color: var(--danger) !important; overflow-wrap: anywhere; }
.stat-card { padding: 22px; }
.stat-card h2, .stat-card p { margin-top: 0; }
.parent-title { margin-bottom: 28px; }
.child-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.child-card-header h2 { margin: 0; }
.credit-caption { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; color: var(--muted); font-size: .94rem; font-weight: 720; line-height: 1.2; letter-spacing: .01em; }
.credit-caption > span { display: flex; align-items: center; min-height: 28px; }
.credit-caption .info-button { align-self: center; }
.stat-card > .button, .stat-card > form .button { width: 100%; }
.stat-card > form { margin-top: 10px; }
.child-quick-actions { display: grid; grid-template-columns: repeat(5, 46px); gap: 9px; margin-top: 14px; }
.quick-action { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 13px; color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface-solid)); cursor: pointer; }
.quick-action:hover, .quick-action:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.quick-action .action-icon { width: 23px; height: 23px; }
.quick-action span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.choice-option-disabled { opacity: .52; cursor: not-allowed; }
.choice-option-disabled:hover { border-color: var(--line); }
.choice-title { display: grid; }
.choice-title small { color: var(--muted); font-weight: 650; }
.assigned-tasks-dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow-y: auto; }
.assigned-tasks-dialog .choice-list { max-height: 280px; overflow-y: auto; }
.custom-assigned-task { display: grid; gap: 10px; padding-top: 4px; }
.custom-assigned-task h3 { margin: 0; }
.assigned-task-history { display: grid; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.assigned-task-batch { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.assigned-task-history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.assigned-task-history-row > span:last-child { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; font-weight: 750; }
.assigned-tasks-priority { margin-bottom: 32px; padding: 22px; border: 2px solid color-mix(in srgb, var(--accent) 58%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 9%, var(--surface-solid)); box-shadow: var(--shadow); }
.assigned-tasks-priority > p { color: var(--muted); }
.assigned-task-list { display: grid; gap: 10px; }
.assigned-task-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-solid); }
.assigned-task-row h3, .assigned-task-row p { margin: 0; }
.assigned-task-warning { border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); }
.stat-value { margin-bottom: .35rem; font-size: 2.1rem; line-height: 1.08; font-weight: 900; }
.stat-value small { margin-left: .18em; font-size: .75em; color: var(--text); opacity: 1; text-transform: uppercase; }
.balance-positive { color: var(--success); }
.balance-negative { color: var(--danger); }
.balance-zero { color: var(--text); }
details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 780; padding: 8px 0; }
details .stack-form, details .inline-form { margin-top: 14px; }
.pending-groups { display: grid; gap: 22px; }
.pending-child-group { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 82%, transparent); box-shadow: var(--shadow); }
.pending-child-heading { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.pending-child-heading h3 { margin: 0; font-size: 1.2rem; }
.empty-panel { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px dashed color-mix(in srgb, var(--muted) 30%, var(--line)); border-radius: var(--radius); color: var(--muted); background: color-mix(in srgb, var(--surface-solid) 64%, transparent); font-weight: 700; }
.empty-panel p { margin: 0; }
.empty-panel-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface-solid)); font-weight: 900; }
.approval-list { display: grid; }
.approval-card { padding: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(360px, .9fr); gap: 14px; align-items: center; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.approval-card.has-evidence { grid-template-columns: auto minmax(0, 1fr) 84px auto; }
.approval-card:last-child { border-bottom: 0; }
.approval-actions { grid-column: 1 / -1; align-items: stretch; }
.approval-card .approval-actions { grid-column: 3; justify-content: flex-end; }
.approval-card.has-evidence .approval-actions { grid-column: 4; flex-wrap: nowrap; }
.approval-copy { min-width: 0; }
.approval-copy h3, .approval-copy p { overflow-wrap: anywhere; }
.evidence-thumb-button { display: block; width: 84px; height: 84px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--muted) 8%, var(--surface-solid)); cursor: zoom-in; }
.evidence-thumb-button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.decision-icon-button { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid currentColor; border-radius: 15px; background: var(--surface-solid); cursor: pointer; transition: transform .14s, box-shadow .14s, background .14s; }
.decision-icon-button:hover, .decision-icon-button:focus-visible { transform: translateY(-1px); box-shadow: 0 5px 14px color-mix(in srgb, currentColor 18%, transparent); }
.decision-icon-button .action-icon { width: 25px; height: 25px; }
.decision-approve { color: var(--success); background: color-mix(in srgb, var(--success) 10%, var(--surface-solid)); }
.decision-revise { color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface-solid)); }
.decision-reject { color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, var(--surface-solid)); }
.compact-decision-button { width: 42px; height: 42px; border-radius: 13px; }
.compact-decision-button .action-icon { width: 22px; height: 22px; }
.dialog-decision-action { justify-self: end; }
.workflow-card-button { justify-self: end; }
.item-card > form.workflow-card-action { display: flex; width: 100%; margin: 0; justify-content: flex-end; }
.task-decision-dialog .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.task-decision-dialog .button .action-icon { width: 21px; height: 21px; }
.inline-reject { display: flex; flex: 1; min-width: min(320px, 100%); gap: 8px; }
.catalog-grid { grid-template-columns: 1fr; }
.catalog-grid .panel { align-self: start; }
.catalog-list { margin: 6px -10px 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.catalog-list .list-row { padding: 10px 12px; }
.catalog-list small { color: var(--muted); }
.catalog-list .catalog-token { display: inline-block; margin-left: .28em; font-size: .86rem; font-weight: 820; line-height: 1.2; }
.catalog-list .catalog-token-positive { color: var(--success); }
.catalog-list .catalog-token-negative { color: var(--danger); }
.history-panel { margin-top: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.history-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; list-style: none; }
.history-panel > summary::-webkit-details-marker { display: none; }
.history-panel > summary::after { content: "›"; color: var(--muted); font-size: 1.7rem; line-height: 1; transform: rotate(90deg); transition: transform .16s; }
.history-panel[open] > summary::after { transform: rotate(-90deg); }
.history-panel .eyebrow { display: block; }
.history-title { display: block; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.035em; }
.history-count { margin-left: auto; min-width: 2rem; padding: 4px 8px; border-radius: 99px; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface-solid)); text-align: center; font-size: .78rem; }
.history-filter { display: grid; grid-template-columns: minmax(160px, 280px) auto; align-items: center; gap: 10px; padding: 0 22px 16px; color: var(--muted); font-weight: 700; }
.history-panel .ledger { margin: 0; border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; font-weight: 700; }
.catalog-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.catalog-row:last-child { border-bottom: 0; }
.catalog-summary, .catalog-actions { display: flex; align-items: center; gap: 10px; }
.catalog-summary { min-width: 0; }
.catalog-summary > span:last-child { min-width: 0; overflow-wrap: anywhere; font-family: inherit; }
.catalog-title { color: var(--text); font-family: inherit; font-size: 1rem; font-weight: 650; line-height: 1.35; letter-spacing: normal; }
.catalog-emoji { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--primary) 10%, transparent); font-size: 1.25rem; }
.catalog-actions form { margin: 0; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--surface-solid); cursor: pointer; font-size: 1.05rem; }
.icon-button:hover, .icon-button:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.action-icon { width: 20px; height: 20px; fill: currentColor; pointer-events: none; }
.catalog-edit-form { grid-column: 1 / -1; padding: 14px; margin: 2px 0 4px; border-radius: 13px; background: color-mix(in srgb, var(--primary) 6%, var(--surface-solid)); }
.catalog-edit-form[hidden] { display: none; }
.form-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.catalog-create { margin-top: 20px; }
.catalog-divider { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; color: var(--primary); font-size: .82rem; font-weight: 850; text-transform: uppercase; letter-spacing: .11em; }
.catalog-divider > span { padding: 5px 10px; border-radius: 99px; background: color-mix(in srgb, var(--primary) 9%, var(--surface-solid)); }
.catalog-divider::before, .catalog-divider::after { content: ""; height: 1px; flex: 1; background: color-mix(in srgb, var(--primary) 24%, var(--line)); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.profile-appearance-panel { display: grid; align-content: start; gap: 22px; }
.profile-setting-part { min-width: 0; }
.profile-setting-part + .profile-setting-part { padding-top: 22px; border-top: 1px solid var(--border); }
.profile-setting-part > h3 { margin-top: 0; }
.onboarding-heading { max-width: 760px; margin-bottom: 28px; }
.onboarding-heading > p:last-child { max-width: 620px; color: var(--muted); line-height: 1.55; }
.onboarding-panel { max-width: 720px; margin-inline: auto; }
.onboarding-form > p { margin: 0; }
.onboarding-form > p > label { display: block; margin-bottom: 12px; font-size: 1.1rem; }
.onboarding-form #id_theme { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0; list-style: none; }
.onboarding-form #id_theme li { margin: 0; }
.onboarding-form #id_theme label { min-height: 112px; display: grid; place-items: center; padding: 20px; border: 2px solid var(--line); border-radius: var(--radius); color: var(--text); background: var(--surface); text-align: center; font-size: 1.08rem; font-weight: 800; cursor: pointer; }
.onboarding-form #id_theme label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface-solid)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
.onboarding-form #id_theme input { width: 22px; height: 22px; margin: 0 0 10px; accent-color: var(--primary); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.account-grid > .panel { align-self: start; }
.account-section-title { margin: 26px 0 12px; font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.account-list { margin: 14px -10px -4px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.account-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.account-row:last-child { border-bottom: 0; }
.account-summary { min-width: 0; display: flex; align-items: center; gap: 10px; }
.account-summary strong { overflow-wrap: anywhere; }
.account-summary small { color: var(--muted); }
.account-edit-form { grid-column: 1 / -1; padding: 14px; margin: 3px 0; border-radius: 13px; background: color-mix(in srgb, var(--primary) 6%, var(--surface-solid)); }
.account-edit-form[hidden] { display: none; }
.stack-form .helptext, .stack-form .help-text, .stack-form ul { margin: 0; color: var(--muted); font-family: inherit; font-size: .82rem; font-weight: 500; line-height: 1.45; }
.stack-form ul { padding-left: 20px; }
.stack-form .checkbox-field { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; }
.stack-form .checkbox-field input[type="checkbox"] { width: 22px; height: 22px; padding: 0; margin: 0; accent-color: var(--primary); }
.stack-form .checkbox-field label { display: block; color: var(--text); cursor: pointer; }
.stack-form .checkbox-field .helptext { grid-column: 2; }
.help-text { display: block; color: var(--muted); line-height: 1.45; }
.empty-state { padding: 8px 18px; color: var(--muted); }
.compact-panel { max-width: 560px; }
.form-error { color: var(--danger); }
.auth-help { margin: 18px 0 0; text-align: center; color: var(--muted); font-weight: 700; }
.auth-help a { color: var(--primary); }
.auth-note { color: var(--muted); line-height: 1.55; }
.account-name { min-width: 0; display: grid; gap: 2px; }
.account-name small { overflow-wrap: anywhere; }
.changelog-heading { margin-bottom: 28px; }
.changelog-heading > p:last-child { max-width: 680px; color: var(--muted); line-height: 1.55; }
.release-list { display: grid; gap: 20px; }
.release-card { padding: clamp(22px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); backdrop-filter: blur(18px); }
.release-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.release-header h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.035em; }
.release-header time { display: block; margin-top: 5px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.release-badge { padding: 7px 10px; color: var(--primary); background: color-mix(in srgb, var(--primary) 11%, var(--surface-solid)); border-radius: 99px; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.release-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 4vw, 48px); padding-top: 18px; }
.release-columns h3 { margin: 0 0 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
.release-columns ul { margin: 0; padding-left: 20px; display: grid; gap: 9px; line-height: 1.5; }
.empty-release-section { margin: 0; color: var(--muted); line-height: 1.5; }

.parent-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; align-items: start; }
.parent-navigation { position: sticky; top: 94px; display: grid; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-solid); box-shadow: var(--shadow); }
.parent-nav-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 780; }
.parent-nav-item > .action-icon { justify-self: center; width: 22px; height: 22px; }
.parent-nav-item > span { min-width: 0; justify-self: start; line-height: 1.2; text-align: left; }
.parent-nav-item:hover, .parent-nav-item.is-active { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface-solid)); }
.nav-count { min-width: 25px; padding: 3px 7px; border-radius: 99px; color: #fff; background: var(--danger); text-align: center; font-size: .72rem; }
.parent-workspace, .parent-panel { min-width: 0; }
.parent-panel[hidden] { display: none; }
.parent-panel > .content-section { padding-top: 0; }
.parent-version-footer { display: flex; margin-top: 32px; padding: 0; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: .72rem; font-weight: 750; text-align: center; }
.parent-version-footer a { display: inline-flex; padding: 7px 8px; align-items: center; gap: 4px; border-radius: 9px; text-decoration: none; }
.parent-version-footer a:hover, .parent-version-footer a:focus-visible { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.parent-home-panel { display: flex; flex-direction: column; gap: 16px; }
.parent-pending-section { order: -1; padding-top: 0; }
.parent-children-section { order: 0; }
.info-button, .photo-history-button { display: inline-grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; }
.info-button:hover, .photo-history-button:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.evidence-thumb { width: 76px; height: 76px; object-fit: cover; border-radius: 13px; cursor: zoom-in; }
.evidence-dialog { width: min(580px, calc(100% - 24px)); }
.evidence-preview { width: 100%; max-height: 360px; object-fit: contain; border-radius: 15px; background: color-mix(in srgb, var(--muted) 8%, var(--surface-solid)); }
.evidence-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.evidence-actions .button { display: inline-flex; align-items: center; gap: 7px; }
.evidence-lightbox { width: min(94vw, 1100px); max-width: none; padding: 42px 12px 12px; border: 0; border-radius: 20px; background: var(--text); }
.evidence-lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.evidence-lightbox img { display: block; max-width: 100%; max-height: 85vh; margin: auto; object-fit: contain; }
.revision-list { display: grid; gap: 10px; margin-bottom: 20px; }
.revision-card, .credit-warning { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 9%, var(--surface-solid)); }
.revision-card p, .credit-warning p { margin: 4px 0 0; line-height: 1.45; }
.task-response-list { display: grid; gap: 10px; margin-bottom: 20px; }
.task-response-list > h3 { margin-bottom: 0; }
.task-response-card { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 1px solid color-mix(in srgb, var(--danger) 38%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--danger) 7%, var(--surface-solid)); }
.task-response-card > .action-icon { flex: 0 0 auto; width: 23px; height: 23px; color: var(--danger); }
.task-response-copy { display: grid; min-width: 0; gap: 3px; }
.task-response-status { color: var(--danger); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.task-response-card p { margin: 4px 0 0; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.task-response-card > form { flex: 0 0 auto; margin-left: auto; }
.task-response-acknowledge { flex: 0 0 auto; }
@media (max-width: 640px) {
  .task-response-card { align-items: flex-start; flex-wrap: wrap; }
  .task-response-card > form { margin-left: auto; }
}
.photo-bonus { color: var(--success) !important; font-weight: 800; }
.empty-state { max-width: 100%; margin: 0; overflow-wrap: anywhere; }
.item-card { min-width: 0; overflow: hidden; }
.item-card > div { min-width: 0; }
.item-card h3 { overflow-wrap: anywhere; }
.amount.negative { color: var(--danger); }
.parent-panel .subsection-heading { margin-top: clamp(38px, 6vw, 64px); }
.sound-toggle { display: inline-grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 99px; color: var(--muted); background: var(--surface-solid); cursor: pointer; }
.sound-toggle .action-icon { width: 22px; height: 22px; fill: currentColor; }
.sound-toggle.sound-enabled { color: var(--success); border-color: color-mix(in srgb, var(--success) 42%, var(--border)); background: color-mix(in srgb, var(--success) 9%, var(--surface-solid)); }
.sound-toggle.sound-disabled { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 42%, var(--border)); background: color-mix(in srgb, var(--danger) 9%, var(--surface-solid)); }
.sound-toggle:hover, .sound-toggle:focus-visible { color: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.feedback-launcher { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 18; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border)); border-radius: 99px; color: #fff; background: var(--primary); box-shadow: var(--shadow); font-weight: 800; cursor: pointer; }
.feedback-launcher .action-icon { width: 22px; height: 22px; fill: currentColor; }
.feedback-launcher:hover, .feedback-launcher:focus-visible { background: var(--primary-strong); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent), var(--shadow); }
.gift-launcher { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 60px); z-index: 18; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border)); border-radius: 99px; color: var(--text); background: var(--surface-solid); box-shadow: var(--shadow); font-weight: 800; cursor: pointer; }
.gift-launcher .action-icon { width: 22px; height: 22px; fill: var(--accent); }
.task-search { display: grid; gap: 7px; max-width: 540px; margin: 0 0 18px; color: var(--muted); font-weight: 750; }
.feedback-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; }
.feedback-admin { padding: 22px; }
.feedback-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 12px; margin-bottom: 20px; }
.feedback-filter label { display: grid; gap: 7px; color: var(--text); font-weight: 750; }
.feedback-list { display: grid; gap: 12px; }
.feedback-card { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-solid); overflow: hidden; }
.feedback-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; cursor: pointer; list-style: none; }
.feedback-summary::-webkit-details-marker { display: none; }
.feedback-summary::after { content: "⌄"; color: var(--muted); font-size: 1.1rem; transition: transform .16s; }
.feedback-card[open] .feedback-summary::after { transform: rotate(180deg); }
.feedback-summary > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.feedback-card-body { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.feedback-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.feedback-card time { color: var(--muted); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.feedback-card-body > p { overflow-wrap: anywhere; line-height: 1.5; }
.feedback-kind-idea { color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface-solid)); }
.feedback-kind-resolved { color: var(--success); background: color-mix(in srgb, var(--success) 13%, var(--surface-solid)); }
.feedback-kind { padding: 5px 8px; border-radius: 99px; color: var(--primary); background: color-mix(in srgb, var(--primary) 11%, var(--surface-solid)); font-size: .72rem; font-weight: 800; }
.feedback-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.feedback-meta div { min-width: 0; }
.feedback-meta dt { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.feedback-meta dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: .82rem; }
.feedback-device { grid-column: span 2; }
.feedback-actions { align-items: end; }
.feedback-actions form { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.feedback-screenshot-button { flex: 0 0 44px; width: 44px; height: 44px; color: var(--primary); }
.feedback-email-warning { margin: 0 0 18px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, var(--surface-solid)); line-height: 1.45; }
.feedback-admin .feedback-description { margin-bottom: 20px; }
.danger-warning { margin: 0 0 18px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--danger) 42%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--danger) 9%, var(--surface-solid)); line-height: 1.45; }
.feedback-admin .danger-warning { margin-bottom: 14px; padding: 9px 11px; border-radius: 11px; background: color-mix(in srgb, var(--danger) 7%, var(--surface-solid)); font-size: .82rem; line-height: 1.4; overflow-wrap: anywhere; }
.backup-panel { margin-top: 18px; }
.network-access-panel .service-details dd { white-space: normal; }
.network-access-panel > .button { margin-top: 2px; }
.network-access-panel .action-dialog .settings-description { margin-bottom: 18px; }
.settings-form { gap: 20px; }
.settings-group { display: grid; gap: 0; }
.settings-group > .settings-row { grid-template-columns: minmax(170px, .42fr) minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 4px; padding: 12px 0; }
.settings-group > .settings-row > label { display: block; color: var(--text); font-size: 1rem; font-weight: 750; line-height: 1.45; }
.settings-group > .settings-row > .field-control { grid-column: 2; min-width: 0; }
.settings-group > .settings-row > .helptext { grid-column: 2; color: var(--muted); font-size: .76rem; font-weight: 450; line-height: 1.45; }
.settings-group > .settings-row.checkbox-field { grid-template-columns: minmax(170px, .42fr) minmax(0, 1fr); align-items: center; }
.settings-group > .settings-row.checkbox-field > input[type="checkbox"] { grid-column: 2; }
.settings-group .catalog-divider { margin: 2px 0 8px; }
.backup-heading, .backup-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.settings-description { flex: 1 1 420px; margin: 0; color: var(--muted); font-size: .9rem; font-weight: 500; line-height: 1.55; }
.service-status { display: inline-flex; align-items: center; gap: 8px; border-radius: 99px; padding: 7px 11px; font-size: .78rem; font-weight: 850; }
.service-status > span { width: 10px; height: 10px; border-radius: 50%; }
.service-status-good { color: var(--success); background: color-mix(in srgb, var(--success) 11%, var(--surface-solid)); }
.service-status-good > span { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 14%, transparent); }
.service-status-warning { color: #b45309; background: color-mix(in srgb, var(--accent) 13%, var(--surface-solid)); }
.service-status-warning > span { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.service-status-bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, var(--surface-solid)); }
.service-status-bad > span { background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent); }
.parent-panel[data-parent-panel="settings"] .button-secondary { color: #fff; background: linear-gradient(145deg, var(--primary), var(--primary-strong)); border-color: transparent; }
.service-details { display: grid; margin: 20px 0; border-block: 1px solid var(--line); }
.service-details div { min-width: 0; display: grid; grid-template-columns: minmax(170px, .42fr) minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 10px 0; }
.service-details div + div { border-top: 1px solid var(--line); }
.service-details dt { color: var(--text); font-size: 1rem; font-weight: 750; line-height: 1.45; }
.service-details dt::after { content: ":"; }
.service-details dd { min-width: 0; margin: 0; color: var(--text); font-family: inherit; font-size: .9rem; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.backup-actions { justify-content: flex-start; }
.device-pairing-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; align-items: end; }
.device-pairing-actions form { display: contents; }
.device-pairing-actions label { display: grid; grid-column: 1 / -1; gap: 7px; font-weight: 750; }
.device-pairing-actions .button { width: 100%; height: 100%; min-height: 48px; display: grid; place-items: center; line-height: 1.2; }
.device-pairing-actions.pairing-link-only .button { grid-column: 1 / -1; }
.backup-audit { margin-top: 18px; }
.backup-audit ul { padding-left: 20px; color: var(--muted); font-family: inherit; font-size: .86rem; line-height: 1.5; }
.backup-dialog { width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; }
.confetti-layer { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
.confetti-layer i { --x: 50vw; --delay: 0s; --spin: 360deg; position: absolute; top: -20px; left: var(--x); width: 9px; height: 15px; background: var(--accent); animation: confetti-fall 2s var(--delay) ease-in forwards; }
.confetti-layer i:nth-child(3n) { background: var(--primary); }
.confetti-layer i:nth-child(3n + 1) { background: var(--success); }
.confetti-layer.theme-hero_hq i:nth-child(2n) { width: 16px; height: 16px; clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 94%,50% 72%,21% 94%,32% 57%,2% 35%,39% 35%); background: #fbbf24; }
.confetti-layer.theme-art_studio i { width: 10px; height: 10px; border-radius: 50%; background: #f2cc8f; box-shadow: 0 0 8px #e07a5f; }
.confetti-layer.theme-panda_pet i:nth-child(2n) { width: 13px; height: 8px; border-radius: 100% 0 100% 0; background: #2d6a4f; }
.confetti-layer.theme-panda_pet i:nth-child(2n + 1) { width: 12px; height: 11px; clip-path: polygon(50% 90%,5% 42%,12% 12%,38% 8%,50% 30%,62% 8%,88% 12%,95% 42%); background: #ffb5a7; }
.confetti-layer.theme-blockville i { background: #00a2ff; box-shadow: 0 0 9px #00a2ff; }
.confetti-layer.theme-blockville i:nth-child(2n) { background: #00e676; box-shadow: 0 0 9px #00e676; }
@keyframes confetti-fall { to { transform: translateY(110vh) rotate(var(--spin)); opacity: .15; } }

.system-lottery-card {
  --lottery-frame: color-mix(in srgb, var(--primary) 72%, #111827);
  --lottery-glow: color-mix(in srgb, var(--accent) 44%, transparent);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 18px 0 24px;
  padding: 20px;
  overflow: hidden;
  border: 3px solid var(--lottery-frame);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, var(--lottery-glow), transparent 32%),
    color-mix(in srgb, var(--surface-solid) 92%, var(--accent));
  box-shadow: 0 14px 34px rgba(17, 24, 39, .16), inset 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.lottery-card-art {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 5px;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 14px;
  background: linear-gradient(135deg, #697078, #eef1f3 48%, #848b92);
  box-shadow: 0 7px 16px rgba(17, 24, 39, .24);
  transform: rotate(-3deg);
}
.lottery-card-art span {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: rgba(35, 42, 48, .48);
  font-size: 1.05rem;
  font-weight: 900;
}
.lottery-card-copy h3 { margin: 2px 0 4px; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.lottery-card-copy p { margin: 4px 0; }
.lottery-system-label { margin: 0; color: var(--primary); font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.lottery-price { color: var(--danger); font-size: 1.05rem; font-weight: 900; }
.lottery-weekly-status, .lottery-parent-status { color: var(--muted); font-size: .88rem; font-weight: 700; }
.lottery-card-action { min-width: 160px; text-align: right; }
.lottery-purchase-dialog, .lottery-ticket-dialog { width: min(94vw, 560px); }
.lottery-risk-warning { margin: 16px 0; padding: 14px 16px; border: 2px solid color-mix(in srgb, var(--danger) 46%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--danger) 9%, var(--surface-solid)); }
.lottery-risk-warning p { margin: 6px 0 0; }
.lottery-scratch-help { color: var(--muted); }
.scratch-ticket { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 18px auto; overflow: hidden; border: 5px solid var(--lottery-frame, var(--primary)); border-radius: 20px; background: var(--surface-solid); box-shadow: 0 16px 34px rgba(17, 24, 39, .24); }
.scratch-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.scratch-number { display: grid; place-items: center; border: 1px dashed color-mix(in srgb, var(--muted) 36%, transparent); background: color-mix(in srgb, var(--surface-solid) 94%, var(--accent)); font-size: clamp(1.35rem, 7vw, 2.2rem); font-weight: 950; opacity: .72; transition: opacity .2s ease, transform .25s ease, box-shadow .25s ease; }
.scratch-number.scratch-revealed { opacity: 1; }
.scratch-number.scratch-positive { color: #087a4f; }
.scratch-number.scratch-negative { color: #c72f3f; }
.scratch-number.scratch-match { z-index: 1; transform: scale(1.08); box-shadow: inset 0 0 0 4px var(--accent), 0 0 22px var(--lottery-glow, rgba(245, 158, 11, .45)); }
.scratch-surface, .scratch-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.scratch-surface { z-index: 2; cursor: crosshair; touch-action: none; transition: opacity .4s ease; }
.scratch-surface:focus-visible { outline: 4px solid var(--accent); outline-offset: -5px; }
.scratch-surface.scratch-finished { pointer-events: none; opacity: 0; }
.scratch-particles { z-index: 3; pointer-events: none; overflow: hidden; }
.scratch-particles i { position: absolute; width: 5px; height: 3px; border-radius: 50%; background: #9aa1a8; animation: scratch-flake .48s ease-out forwards; }
@keyframes scratch-flake { to { opacity: 0; transform: translate(var(--particle-x), var(--particle-y)) rotate(160deg); } }
.scratch-progress { color: var(--muted); text-align: center; font-weight: 750; }
.lottery-result { margin-top: 14px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 16%, var(--surface-solid)); text-align: center; }
.lottery-result strong { display: block; font-size: 1.45rem; }
.lottery-result p { margin: 6px 0 0; }
.theme-magic_academy .system-lottery-card, .theme-magic_academy .scratch-ticket { border-radius: 10px; border-color: #b58a32; }
.theme-magic_academy .system-lottery-card { background-image: radial-gradient(circle at 15% 20%, rgba(214,169,74,.3), transparent 30%), linear-gradient(135deg, rgba(107,29,50,.08), transparent); }
.theme-block_world .system-lottery-card, .theme-block_world .scratch-ticket { border-radius: 0; box-shadow: 6px 6px 0 #1e3b1f; }
.theme-block_world .lottery-card-art, .theme-block_world .scratch-number { border-radius: 0; }
.theme-hero_hq .system-lottery-card, .theme-hero_hq .scratch-ticket { border-radius: 5px; box-shadow: 6px 6px 0 #1f2937; }
.theme-hero_hq .lottery-system-label, .theme-hero_hq .lottery-card-copy h3 { text-transform: uppercase; }
.theme-art_studio .system-lottery-card, .theme-art_studio .scratch-ticket { border-radius: 30px 18px 28px 20px; }
.theme-art_studio .lottery-card-art { transform: rotate(2deg); }
.theme-panda_pet .system-lottery-card, .theme-panda_pet .scratch-ticket { border-radius: 34px; }
.theme-panda_pet .system-lottery-card { box-shadow: 0 12px 0 color-mix(in srgb, #ffb5a7 46%, transparent); }
.theme-blockville .system-lottery-card, .theme-blockville .scratch-ticket { border-radius: 10px; border-color: #00a2ff; box-shadow: 0 0 25px rgba(0,162,255,.28), inset 0 0 0 3px rgba(0,230,118,.25); }

.theme-magic_academy { --primary: #6b1d32; --primary-strong: #34101d; --accent: #d6a94a; --bg: #efe7d7; font-family: Georgia, "Times New Roman", serif; }
.theme-magic_academy .item-card, .theme-magic_academy .panel, .theme-magic_academy .goal-card { border: 2px solid #c5a059; border-radius: 12px; }
.theme-magic_academy .section-heading h2, .theme-magic_academy .child-hero h1 { font-family: Palatino, Georgia, serif; letter-spacing: -.025em; }
.theme-magic_academy .button-primary { border-radius: 999px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }
.theme-magic_academy .button:hover { box-shadow: 0 0 15px rgba(212, 175, 55, .6); }
.theme-block_world { --primary: #397a35; --primary-strong: #204f24; --accent: #d1a13a; --bg: #dfead5; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.theme-block_world { background-image: linear-gradient(rgba(30,59,31,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(30,59,31,.035) 1px, transparent 1px); background-size: 20px 20px; }
.theme-block_world .item-card, .theme-block_world .panel, .theme-block_world .goal-card, .theme-block_world .button { border-radius: 0; box-shadow: 4px 4px 0 #1e3b1f; }
.theme-block_world .button { min-height: 48px; padding: 12px 16px; font-size: 1rem; line-height: 1.25; }
.theme-block_world .item-icon { border-radius: 0; image-rendering: pixelated; }
.theme-hero_hq { --primary: #1e3a8a; --primary-strong: #172554; --accent: #fbbf24; --danger: #dc2626; --bg: #eef2ff; }
.theme-hero_hq .item-card, .theme-hero_hq .panel, .theme-hero_hq .goal-card, .theme-hero_hq .button { border: 2px solid #1f2937; border-radius: 5px; box-shadow: 5px 5px 0 #1f2937; }
.theme-hero_hq .section-heading h2, .theme-hero_hq .child-hero h1 { text-transform: uppercase; letter-spacing: -.035em; }
.theme-art_studio { --primary: #e07a5f; --primary-strong: #b95640; --accent: #f2cc8f; --success: #81b29a; --bg: #f4f1de; }
.theme-art_studio { background-image: radial-gradient(circle at 20% 10%, rgba(224,122,95,.12), transparent 28rem), repeating-linear-gradient(105deg, transparent 0 22px, rgba(129,178,154,.035) 23px 24px); }
.theme-art_studio .item-card, .theme-art_studio .panel, .theme-art_studio .goal-card { border: 2px solid #f2cc8f; border-radius: 30px 18px 28px 20px; }
.theme-panda_pet { --primary: #2d6a4f; --primary-strong: #1b4332; --accent: #ffb5a7; --bg: #f8f9fa; --text: #212529; }
.theme-panda_pet { background-image: radial-gradient(circle, rgba(45,106,79,.07) 2px, transparent 2px); background-size: 30px 30px; }
.theme-panda_pet .item-card, .theme-panda_pet .panel, .theme-panda_pet .goal-card { border-radius: 34px; border: 2px solid color-mix(in srgb, #2d6a4f 32%, transparent); box-shadow: 0 10px 0 color-mix(in srgb, #ffb5a7 45%, transparent); }
.theme-panda_pet .button { border-radius: 999px; }
.theme-blockville {
  --primary: #00a2ff;
  --primary-strong: #0082cc;
  --accent: #00e676;
  --success: #00e676;
  --danger: #ff3b30;
  --bg: #191b1d;
  --surface: rgba(35, 37, 39, .96);
  --surface-solid: #232527;
  --text: #fff;
  --muted: #8d9399;
  --line: #393b3d;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.theme-blockville .item-card, .theme-blockville .panel, .theme-blockville .goal-card, .theme-blockville .action-dialog {
  border: 1px solid #393b3d;
  border-radius: 8px;
  background: #232527;
}
.theme-blockville .button {
  border-radius: 8px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25);
  font-weight: 850;
  text-transform: none;
}
.theme-blockville .button:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.theme-blockville .section-heading h2, .theme-blockville .child-hero h1, .theme-blockville .item-card h3 { font-weight: 900; letter-spacing: -.025em; }
.theme-blockville .balance-orb { border-color: #00a2ff; box-shadow: 0 0 24px rgba(0, 162, 255, .25); }

@media (prefers-color-scheme: dark) {
  body.system-page {
    color-scheme: dark;
    background:
      radial-gradient(circle at 8% 8%, rgba(146, 116, 211, .30) 0%, rgba(76, 29, 149, .16) 28%, transparent 50%),
      radial-gradient(circle at 92% 84%, rgba(109, 40, 217, .24) 0%, transparent 42%),
      linear-gradient(135deg, #171225 0%, var(--bg) 62%);
  }
  body.system-page::before { border-color: rgba(184, 160, 237, .20); }
  body.system-page::after { background: radial-gradient(circle, rgba(146, 116, 211, .22) 0%, transparent 68%); }
  .theme-magic_academy { --bg: #150d10; }
  .theme-block_world { --bg: #101910; }
  .theme-hero_hq { --bg: #10172d; }
  .theme-art_studio { --bg: #211713; }
  .theme-panda_pet { --bg: #101914; --text: #f8f9fa; }
  .theme-blockville { --bg: #191b1d; --text: #fff; }
}
@media (max-width: 720px) {
  body.system-page::before { width: 420px; height: 420px; right: -280px; top: 120px; }
  body.system-page::after { width: 280px; height: 280px; right: -140px; bottom: -100px; }
  .system-lottery-card { grid-template-columns: 88px 1fr; padding: 16px; gap: 13px; }
  .lottery-card-art { grid-template-columns: repeat(3, 22px); padding: 8px; }
  .lottery-card-art span { width: 22px; font-size: .8rem; }
  .lottery-card-action { grid-column: 1 / -1; min-width: 0; text-align: stretch; }
  .lottery-card-action .button { width: 100%; }
  .page { width: min(100% - 24px, 1160px); padding-top: 26px; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .parent-area .page { padding-bottom: 28px; }
  .parent-version-footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 64px; }
  .brand-name { display: none; }
  .landing-topbar { width: min(100% - 24px, 1160px); min-height: 64px; padding: 12px 0; }
  .landing-topbar .brand-name { display: inline; }
  .landing-page .page, .auth-page .page { min-height: calc(100vh - 148px); padding-block: 28px 54px; }
  .landing-page .hero { min-height: calc(100vh - 184px); justify-content: center; }
  .landing-page .hero h1 { font-size: clamp(3.2rem, 15vw, 4.6rem); }
  .auth-page .narrow-card { padding: 28px 22px; }
  .app-version { font-size: .58rem; max-width: 54px; line-height: 1.05; }
  .child-hero { align-items: flex-end; }
  .hero-avatar { width: 68px; height: 68px; border-radius: 21px; }
  .child-identity { gap: 12px; }
  .balance-orb { min-width: 116px; min-height: 116px; }
  .balance-orb strong { font-size: 2rem; }
  .two-column { grid-template-columns: 1fr; }
  .inline-reject { flex-direction: column; }
  .messages { top: 72px; }
  .catalog-row { grid-template-columns: 1fr; }
  .catalog-actions { justify-content: flex-end; }
  .approval-card, .approval-card.has-evidence { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 14px; }
  .task-approval-card .item-icon { width: 46px; height: 46px; border-radius: 14px; font-size: 1.35rem; }
  .task-approval-card .approval-copy { grid-column: 2; }
  .task-approval-card .approval-copy .eyebrow { margin-bottom: 3px; }
  .task-approval-card .approval-copy h3 { margin-bottom: 3px; line-height: 1.18; }
  .task-approval-card .approval-actions,
  .task-approval-card.has-evidence .approval-actions { grid-column: 2 / -1; justify-content: flex-start; gap: 8px; margin-top: 2px; }
  .approval-card:not(.task-approval-card) .approval-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .approval-card:not(.has-evidence) .approval-copy { grid-column: 2 / -1; }
  .task-approval-card:not(.has-evidence) .approval-copy { grid-column: 2 / -1; }
  .approval-card.has-evidence .evidence-thumb-button { grid-column: 3; grid-row: 1; width: 58px; height: 58px; }
  .approval-card .approval-actions form { flex: 0 0 auto; }
  .decision-icon-button { width: 44px; height: 44px; border-radius: 13px; }
  .pending-child-heading { padding: 12px 14px; }
  .account-grid { grid-template-columns: 1fr; }
  .onboarding-form #id_theme { grid-template-columns: 1fr; }
  .release-columns { grid-template-columns: 1fr; }
  .topbar { gap: 7px; padding-inline: max(10px, env(safe-area-inset-left)); }
  .topbar > * { gap: 7px; }
  .topbar-actions { gap: 5px; }
  .language-switcher { width: 44px; }
  .history-filter { grid-template-columns: 1fr; }
  .history-filter .button { width: 100%; }
  .history-panel > summary { padding: 17px 16px; }
  .history-filter { padding-inline: 16px; }
  .ledger-row { padding-inline: 14px; }
  .ledger-row { align-items: flex-start; flex-wrap: wrap; }
  .ledger-row > div { min-width: calc(100% - 58px); }
  .history-row-actions { width: calc(100% - 58px); margin-left: 58px; }
  .pagination { flex-wrap: wrap; padding-inline: 14px; }
  .text-button { padding-inline: 4px; font-size: .86rem; }
  .parent-shell { display: block; }
  .parent-home-panel { gap: 12px; }
  .parent-pending-section { padding-bottom: 8px; }
  .parent-navigation { position: fixed; z-index: 20; inset: auto 0 0; grid-template-columns: repeat(4, 25%); column-gap: 0; row-gap: 0; padding: 7px 0 calc(7px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 0; }
  .parent-nav-item { position: relative; display: flex; place-self: stretch; width: 100%; min-width: 0; align-items: center; justify-content: center; flex-direction: column; gap: 3px; padding: 7px 2px; text-align: center; font-size: .66rem; line-height: 1.05; }
  .parent-nav-item .action-icon { width: 22px; height: 22px; }
  .parent-nav-item > span { text-align: center; }
  .parent-nav-item .nav-count { position: absolute; top: 2px; left: calc(50% + 7px); min-width: 19px; padding: 2px 5px; }
  .parent-title { margin-bottom: 18px; }
  .approval-card .evidence-thumb { width: 62px; height: 62px; }
  .evidence-actions { display: grid; grid-template-columns: 1fr; }
  .evidence-actions .button { justify-content: center; }
  .revision-card, .credit-warning { align-items: stretch; flex-direction: column; }
  .child-area .sound-toggle { width: 44px; height: 44px; }
  .feedback-launcher { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 48px; min-width: 48px; padding: 0; justify-content: center; }
  .parent-area .feedback-launcher { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .feedback-launcher span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .gift-launcher { right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); width: 48px; min-width: 48px; padding: 0; justify-content: center; }
  .gift-launcher span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .feedback-filter { grid-template-columns: 1fr; }
  .feedback-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feedback-summary, .feedback-actions { align-items: stretch; flex-direction: column; }
  .feedback-summary time { margin-right: 24px; }
  .feedback-actions form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
  .service-details div { grid-template-columns: 1fr; gap: 3px; }
  .settings-group > .settings-row { grid-template-columns: 1fr; row-gap: 6px; }
  .settings-group > .settings-row > .field-control,
  .settings-group > .settings-row > .helptext { grid-column: 1; }
  .settings-group > .settings-row.checkbox-field { grid-template-columns: 1fr; }
  .settings-group > .settings-row.checkbox-field > input[type="checkbox"] { grid-column: 1; }
  .feedback-actions form:not(:has(.feedback-screenshot-button)) { grid-template-columns: minmax(0, 1fr) auto; }
}
