/* Liora：奶油纸张、粉蓝邮戳与角色任务桌。 */
:root {
  color-scheme: light;
  --bg: #ffe8d6;
  --page: #ffe8d6;
  --paper: #fffaf5;
  --paper-rgb: 255, 250, 245;
  --card: rgba(255, 250, 245, .94);
  --card-strong: #fffaf5;
  --surface: rgba(255, 250, 245, .94);
  --surface-solid: #fffaf5;
  --surface-blue: #e8f6fa;
  --ink: #0f3e80;
  --text: #0f3e80;
  --muted: #655c70;
  --dim: #655c70;
  --pink: #fb6ec2;
  --pink-soft: #ffd6e9;
  --blue: #b0e5f9;
  --blue-deep: #0f3e80;
  --blue-pale: #e8f6fa;
  --lavender: #d1aade;
  --coral: #fc8f8f;
  --yellow: #f6e68f;
  --green: #cce4d2;
  --green-deep: #285f4c;
  --line: rgba(15, 62, 128, .2);
  --line-strong: rgba(15, 62, 128, .46);
  --border: rgba(15, 62, 128, .22);
  --accent: #fb6ec2;
  --accent2: #b0e5f9;
  --shadow: 8px 8px 0 rgba(15, 62, 128, .12);
  --shadow-soft: 5px 5px 0 rgba(15, 62, 128, .09);
  --radius: 26px;
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --ease-puppy: cubic-bezier(.22, 1, .36, 1);
  --veil: linear-gradient(120deg, rgba(255, 232, 214, .9), rgba(255, 250, 245, .65), rgba(232, 246, 250, .82));
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 110px; }
html, body { touch-action: manipulation; }
body.puppy-theme {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 250, 245, .16), rgba(255, 232, 214, .24)),
    url("custom/liora-background.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.puppy-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(15, 62, 128, .10) .8px, transparent .8px);
  background-size: 22px 22px;
  mask-image: linear-gradient(120deg, #000, transparent 48%, #000);
  animation: none;
}
body.puppy-theme::after {
  content: "";
  position: fixed;
  width: 340px;
  height: 340px;
  right: -160px;
  top: 18%;
  z-index: 0;
  border: 2px solid rgba(15, 62, 128, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(251, 110, 194, .06), 0 0 0 52px rgba(176, 229, 249, .08);
  pointer-events: none;
  animation: none;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
::selection { color: var(--ink); background: var(--pink-soft); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[hidden], .hidden { display: none !important; }

body.puppy-theme .btn,
body.puppy-theme .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(15, 62, 128, .16);
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: transform .2s var(--ease-puppy), box-shadow .2s var(--ease-puppy), background .2s ease;
}
body.puppy-theme .btn:hover:not(:disabled),
body.puppy-theme .button:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(15, 62, 128, .15); }
body.puppy-theme .btn:active:not(:disabled),
body.puppy-theme .button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(15, 62, 128, .16); }
body.puppy-theme .btn.primary,
body.puppy-theme .button.primary {
  color: var(--ink);
  background: var(--pink);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
body.puppy-theme .btn.primary:hover:not(:disabled),
body.puppy-theme .button.primary:hover:not(:disabled) { background: #ff87ce; box-shadow: 6px 6px 0 var(--ink); }
body.puppy-theme .btn.ghost,
body.puppy-theme .button.secondary { background: rgba(255, 250, 245, .56); box-shadow: none; border-color: var(--line-strong); }
body.puppy-theme .btn.danger,
body.puppy-theme .button.danger { color: #782c48; background: #ffe3e6; border-color: #a5445f; }
body.puppy-theme .btn.small,
body.puppy-theme .btn.tiny { min-height: 38px; padding: 8px 12px; font-size: 12px; }
body.puppy-theme .btn:disabled,
body.puppy-theme .button:disabled { opacity: .52; cursor: not-allowed; }

body.puppy-theme .inp,
body.puppy-theme input,
body.puppy-theme select,
body.puppy-theme textarea {
  border: 1.5px solid var(--line-strong);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  box-shadow: none;
}
body.puppy-theme .inp:focus,
body.puppy-theme input:focus,
body.puppy-theme select:focus,
body.puppy-theme textarea:focus { border-color: var(--ink); background: #fff; }
body.puppy-theme input::placeholder { color: #8a8091; opacity: 1; }
.section-kicker,
.eyebrow,
.license-kicker,
.auth-kicker {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.speech-bubble {
  position: relative;
  display: inline-block;
  padding: 10px 15px;
  border: 1.5px solid var(--ink);
  border-radius: 18px 18px 18px 5px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(15, 62, 128, .13);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.speech-bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -8px;
  width: 13px;
  height: 13px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
  transform: rotate(45deg);
}

/* 门禁：一张带邮戳的通行证，而非通用玻璃卡。 */
body.puppy-theme .license-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  min-height: 100dvh;
  align-content: center;
  justify-items: stretch;
  gap: 18px;
  padding: max(26px, env(safe-area-inset-top)) max(5vw, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(5vw, env(safe-area-inset-left));
  background: transparent;
}
body.puppy-theme .license-brand { justify-content: flex-start; width: min(1120px, 100%); margin: 0 auto; color: var(--ink); gap: 12px; }
body.puppy-theme .license-brand img { width: 54px; height: 44px; object-fit: contain; }
body.puppy-theme .license-brand > span { display: flex; flex-direction: column; font-size: 18px; line-height: 1.25; }
body.puppy-theme .license-brand small { margin-top: 4px; font-size: 9px; letter-spacing: .16em; font-weight: 800; }
body.puppy-theme .license-card {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, .92fr) minmax(420px, 1.08fr);
  overflow: visible;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--lavender);
  backdrop-filter: none;
}
body.puppy-theme .license-art {
  min-height: 520px;
  padding: 56px 30px 26px;
  justify-content: flex-end;
  overflow: hidden;
  border: 0;
  border-right: 2px solid var(--ink);
  border-radius: 26px 0 0 26px;
  background-color: var(--blue);
  background-image: radial-gradient(rgba(15, 62, 128, .15) 1px, transparent 1px);
  background-size: 18px 18px;
}
body.puppy-theme .license-art::before {
  content: "LIORA\A POST";
  white-space: pre;
  position: absolute;
  top: 22px;
  right: 22px;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 250, 245, .44);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transform: rotate(10deg);
}
body.puppy-theme .license-art::after { display: none; }
body.puppy-theme .license-art .art-index { position: absolute; top: 24px; left: 24px; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
body.puppy-theme .license-art .speech-bubble { position: absolute; z-index: 3; top: 106px; left: 28px; transform: rotate(-3deg); }
body.puppy-theme .license-art img { z-index: 2; width: min(330px, 82%); margin: 0 auto -8px; filter: drop-shadow(0 12px 12px rgba(15, 62, 128, .12)); animation: puppy-float 6s ease-in-out infinite; }
body.puppy-theme .license-art p { z-index: 2; margin: 4px 0 0; color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1.55; letter-spacing: .08em; }
body.puppy-theme .license-content { position: relative; padding: 54px clamp(34px, 5vw, 70px) 40px; }
body.puppy-theme .license-content::after { content: "↗"; position: absolute; top: 28px; right: 32px; font-size: 30px; font-weight: 400; }
body.puppy-theme .license-content h1 { margin: 0; color: var(--ink); font-size: clamp(40px, 4.4vw, 62px); font-weight: 800; line-height: 1.14; letter-spacing: -.055em; }
body.puppy-theme .license-intro { max-width: 440px; margin: 20px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.8; }
body.puppy-theme .license-form { gap: 12px; }
body.puppy-theme .license-label { color: var(--ink); font-size: 13px; font-weight: 800; }
body.puppy-theme .license-input { min-height: 58px; padding: 14px 16px; border-width: 2px; font-family: "Avenir Next", "PingFang SC", sans-serif; font-size: 17px; font-weight: 700; letter-spacing: .055em; }
body.puppy-theme .license-hint { margin: -2px 0 4px; color: var(--muted); font-size: 11px; line-height: 1.7; }
body.puppy-theme .license-submit { width: 100%; min-height: 54px; justify-content: space-between; padding-inline: 20px; font-size: 15px; }
body.puppy-theme .license-retry { width: 100%; }
body.puppy-theme .license-message { color: var(--muted); }
body.puppy-theme .license-message.is-error { color: #9d3150; }
body.puppy-theme .license-message.is-success { color: var(--green-deep); }
body.puppy-theme .license-footnote { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: 10px; font-weight: 700; }
body.puppy-theme .license-footnote span::before { content: "✓"; margin-right: 5px; color: var(--ink); }
body.puppy-theme .license-outro { width: min(1120px, 100%); margin: 0 auto; color: var(--muted); font-size: 11px; text-align: right; }
@keyframes puppy-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(.8deg); } }

/* 登录：左侧角色叙事，右侧账号服务，标签改为横向分栏。 */
body.puppy-theme #view-auth,
body.puppy-theme #view-console { position: relative; z-index: 2; }
body.puppy-theme .auth-hero { z-index: 0; opacity: .5; }
body.puppy-theme .auth-wrap {
  width: min(1240px, 100%);
  max-width: 1240px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 54px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr);
  align-items: center;
  gap: clamp(46px, 7vw, 90px);
}
body.puppy-theme .auth-brand { grid-column: 1; grid-row: 1; min-width: 0; padding: 0; text-align: left; }
body.puppy-theme .auth-brand .brand-line { justify-content: flex-start; align-items: flex-start; gap: 14px; }
body.puppy-theme .brand-logo-lg { width: 72px; height: 58px; margin: 0; object-fit: contain; }
body.puppy-theme .auth-brand h1 { max-width: 520px; margin: 0; color: var(--ink); font-size: clamp(50px, 6vw, 78px); line-height: 1.05; letter-spacing: -.07em; }
body.puppy-theme .auth-brand .slogan { margin: 24px 0 0; max-width: none; color: var(--ink); font-size: 19px; font-weight: 600; line-height: 1.65; }
body.puppy-theme .auth-scene { position: relative; min-height: 310px; margin-top: 8px; }
body.puppy-theme .auth-scene .speech-bubble { position: absolute; z-index: 2; top: 36px; right: 6%; transform: rotate(3deg); }
body.puppy-theme .auth-mascot { position: absolute; width: 275px; right: 12%; bottom: 0; margin: 0; filter: drop-shadow(0 14px 12px rgba(15, 62, 128, .10)); }
body.puppy-theme .auth-orbits { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
body.puppy-theme .orbit-chip { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); background: rgba(255, 250, 245, .55); font-size: 11px; font-weight: 700; }
body.puppy-theme .auth-card {
  grid-column: 2;
  grid-row: 1;
  display: block;
  align-self: center;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--pink-soft);
}
body.puppy-theme .auth-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin: 0; padding: 26px 28px 20px; }
body.puppy-theme .auth-welcome { display: block; color: var(--ink); font-size: 25px; line-height: 1.25; }
body.puppy-theme .auth-subtitle { display: block; max-width: 290px; margin-top: 6px; line-height: 1.55; }
body.puppy-theme .auth-stamp { flex: 0 0 auto; padding: 5px 9px; border: 1.5px solid var(--ink); border-radius: 5px; color: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: .13em; transform: rotate(7deg); }
body.puppy-theme .auth-tabs { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0; margin: 0; padding: 0 18px; overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: var(--blue-pale); scrollbar-width: thin; }
body.puppy-theme .auth-tab { flex: 1 0 auto; width: auto; min-height: 52px; padding: 10px 12px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--muted); background: transparent; box-shadow: none; font-size: 12px; text-align: center; white-space: nowrap; }
body.puppy-theme .auth-tab.active { color: var(--ink); border-bottom-color: var(--pink); background: transparent; box-shadow: none; }
body.puppy-theme .auth-pane { min-width: 0; padding: 26px 28px 30px; }
body.puppy-theme .fld { margin-bottom: 15px; }
body.puppy-theme .fld-label { color: var(--ink); font-size: 12px; font-weight: 800; }
body.puppy-theme .auth-pane .inp { min-height: 50px; }
body.puppy-theme .auth-pane > .btn { margin-top: 8px; }
body.puppy-theme .form-msg { line-height: 1.6; }

/* 控制台：顶部工作条 + 单张任务桌，去掉模板侧栏。 */
body.puppy-theme .topbar {
  position: sticky;
  inset: 14px 0 auto;
  z-index: 50;
  width: min(1420px, calc(100% - 36px));
  height: auto;
  max-height: none;
  margin: 14px auto 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  background: rgba(255, 250, 245, .93);
  box-shadow: 5px 5px 0 rgba(15, 62, 128, .14);
  backdrop-filter: blur(14px);
}
body.puppy-theme .topbar-row { display: flex; flex: 1; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 9px; width: auto; }
body.puppy-theme .topbar-row2 { flex: 0 0 auto; display: flex; flex-direction: row; margin: 0; gap: 8px; }
body.puppy-theme .topbar .brand { justify-content: flex-start; margin: 0 10px 0 0; text-align: left; }
body.puppy-theme .topbar .brand > span { display: flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.25; }
body.puppy-theme .topbar .brand > span::after { content: none; }
body.puppy-theme .topbar .brand small { margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
body.puppy-theme .brand-logo { width: 45px; height: 36px; margin: 0 7px 0 0; object-fit: contain; }
body.puppy-theme .topbar .user-email { max-width: 180px; padding: 5px 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.puppy-theme .topbar .token-chip { display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 8px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--blue-pale); text-align: left; }
body.puppy-theme .token-label { grid-column: 1; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .09em; }
body.puppy-theme .topbar .token-chip b { grid-column: 1; display: block; color: var(--ink); font-size: 20px; line-height: 1.15; }
body.puppy-theme .topbar .token-chip .peak-badge { grid-column: 2; grid-row: 1 / 3; margin: 0; }
body.puppy-theme .topbar-row .spacer { display: block; flex: 1; min-height: 0; }
body.puppy-theme .connection-label { display: inline-flex; align-items: center; gap: 6px; }
body.puppy-theme .topbar #conn-state { font-size: 10px; }
body.puppy-theme .topbar-row #btn-refresh-balance { width: auto; margin: 0; }
body.puppy-theme .topbar-row2 .theme-anchor,
body.puppy-theme .topbar-row2 .theme-anchor .btn,
body.puppy-theme .topbar-row2 .btn { width: auto; }
body.puppy-theme .topbar::after { content: none; }

body.puppy-theme .console-wrap {
  width: min(1420px, 100%);
  max-width: 1420px;
  margin: 0 auto;
  padding: 24px 18px 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "notice" "desk" "stats" "accounts" "add" "footer";
  gap: 20px;
  align-items: start;
}
body.puppy-theme #notice-stack { grid-area: notice; }
body.puppy-theme #automatch,
body.puppy-theme #kick-notes { grid-column: 1; }
body.puppy-theme .console-hero {
  grid-area: desk;
  position: relative;
  min-height: 330px;
  padding: 46px 400px 40px 46px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background-color: var(--blue);
  background-image: radial-gradient(rgba(15, 62, 128, .13) 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: 8px 8px 0 var(--lavender);
}
body.puppy-theme .console-hero::after { content: "06"; position: absolute; right: 26px; top: 18px; color: rgba(15, 62, 128, .25); font-size: 68px; font-weight: 900; line-height: 1; }
body.puppy-theme .console-hero h2 { margin: 0; color: var(--ink); font-size: clamp(36px, 4vw, 54px); line-height: 1.13; letter-spacing: -.055em; }
body.puppy-theme .console-hero p { max-width: 620px; margin: 18px 0; color: var(--ink); font-size: 14px; line-height: 1.8; }
body.puppy-theme .hero-note { display: inline-block; margin-top: 4px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(255, 250, 245, .58); color: var(--ink); font-size: 11px; font-weight: 700; }
body.puppy-theme .hero-scene { position: absolute; right: 34px; bottom: 0; width: 340px; height: 100%; }
body.puppy-theme .hero-scene .speech-bubble { position: absolute; z-index: 3; right: 16px; top: 54px; transform: rotate(4deg); }
body.puppy-theme .console-hero img { position: absolute; right: 38px; bottom: -18px; width: 265px; filter: drop-shadow(0 12px 12px rgba(15, 62, 128, .12)); }
body.puppy-theme .usage-board { grid-area: stats; min-width: 0; padding: 20px 0 0; }
body.puppy-theme .board-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
body.puppy-theme .board-heading h3 { margin: 0; font-size: 20px; }
body.puppy-theme .board-heading > span { color: var(--muted); font-size: 11px; }
body.puppy-theme .stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.puppy-theme .stat-card { position: relative; min-width: 0; padding: 20px; border: 1.5px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 4px 4px 0 rgba(15, 62, 128, .10); }
body.puppy-theme .stat-card:nth-child(1) { background: var(--paper); }
body.puppy-theme .stat-card:nth-child(2) { background: var(--blue-pale); }
body.puppy-theme .stat-card:nth-child(3) { background: #fff0f7; }
body.puppy-theme .stat-card:nth-child(4) { background: #fff8d9; }
body.puppy-theme .stat-card .stat-k { color: var(--muted); font-size: 11px; font-weight: 800; }
body.puppy-theme .stat-card .stat-v { margin-top: 8px; color: var(--ink); font-family: "Avenir Next", "PingFang SC", sans-serif; font-size: clamp(25px, 3vw, 34px); font-weight: 800; line-height: 1.1; }
body.puppy-theme .stat-card .stat-io { margin-top: 8px; font-size: 11px; }
body.puppy-theme .tok-spark { margin: 12px 0 0; border: 1.5px solid var(--ink); border-radius: 18px; background: var(--paper); }
body.puppy-theme .card { min-width: 0; padding: 24px; border: 1.5px solid var(--ink); border-radius: 24px; background: var(--paper); box-shadow: 6px 6px 0 rgba(15, 62, 128, .10); }
body.puppy-theme .acc-sec { grid-area: accounts; }
body.puppy-theme .acc-head { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: end; gap: 18px; }
body.puppy-theme .acc-heading .acc-title { display: block; color: var(--ink); font-size: 22px; line-height: 1.25; }
body.puppy-theme .acc-title > span { display: inline-grid; place-items: center; min-width: 32px; height: 32px; margin-left: 6px; border-radius: 50%; background: var(--pink-soft); font-size: 15px; }
body.puppy-theme .mode-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; padding: 0; border: 0; border-radius: 0; background: transparent; }
body.puppy-theme .mode-tab { justify-content: center; min-width: 0; min-height: 54px; padding: 8px 9px; border: 1px solid var(--line-strong); border-radius: 13px; color: var(--ink); background: #fff; box-shadow: none; font-size: 12px; }
body.puppy-theme .mode-tab.active,
body.puppy-theme .mode-chip.active,
body.puppy-theme .seg-btn.active { color: var(--ink); background: var(--pink-soft); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
body.puppy-theme .mode-icon { width: 26px; height: 26px; }
body.puppy-theme .ops-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 22px; padding: 16px 0; border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); }
body.puppy-theme .ops-row .spacer { display: block; flex: 1; }
body.puppy-theme #fish-ops,
body.puppy-theme #mode-ops { display: contents; }
body.puppy-theme .report-button { background: var(--yellow); }
body.puppy-theme .sel-line { color: var(--muted); }
body.puppy-theme .acc-table-wrap { max-width: 100%; overflow-x: auto; }
body.puppy-theme .acc-table { min-width: 850px; color: var(--ink); font-size: 12px; }
body.puppy-theme .acc-table th { color: var(--muted); border-bottom: 1.5px solid var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
body.puppy-theme .acc-table td { border-bottom: 1px solid var(--line); }
body.puppy-theme .acc-row:hover > td { background: rgba(251, 110, 194, .05); }
body.puppy-theme .amount-btn,
body.puppy-theme [data-receipt] { border-color: var(--line-strong); color: var(--ink); background: var(--blue-pale); }
body.puppy-theme .empty-box { padding: 34px 20px; color: var(--muted); text-align: center; }
body.puppy-theme .empty-box strong { color: var(--ink); font-size: 18px; }
body.puppy-theme .empty-art { width: 130px; margin: 0 auto 14px; }
body.puppy-theme #add-sec { grid-area: add; display: grid; grid-template-columns: minmax(230px, .75fr) minmax(280px, 1.25fr); align-items: center; gap: 12px 28px; margin: 0; background: #fff5fa; }
body.puppy-theme #add-sec .add-copy { display: flex; flex-direction: column; }
body.puppy-theme #add-sec .add-copy > b { font-size: 21px; }
body.puppy-theme #add-sec .add-form { grid-template-columns: 1fr 1fr; gap: 10px; }
body.puppy-theme #add-form-wrap { grid-column: 1 / -1; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
body.puppy-theme #add-form-wrap .row { margin-top: 10px; }
body.puppy-theme .console-footer { grid-area: footer; color: var(--muted); font-size: 11px; text-align: center; }
body.puppy-theme .back-top { position: static; width: 44px; height: 44px; }

/* 动态弹层、小票与提示保持同一纸张语言。 */
body.puppy-theme .modal-wrap { z-index: 200; }
body.puppy-theme .modal { border: 2px solid var(--ink); border-radius: 24px; color: var(--ink); background: var(--paper); box-shadow: 10px 10px 0 rgba(15, 62, 128, .22); }
body.puppy-theme .modal-head { border-bottom: 1px dashed var(--line-strong); }
body.puppy-theme .modal-title { color: var(--ink); }
body.puppy-theme .receipt-pop,
body.puppy-theme .receipt-modal,
body.puppy-theme .receipt-paper { color: var(--ink); background: var(--paper); border-color: var(--ink); }
body.puppy-theme .toast,
body.puppy-theme .notice,
body.puppy-theme #space-notice,
body.puppy-theme #announcement { border: 1.5px solid var(--ink); border-radius: 15px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow-soft); }

/* 独立制卡间：顶部导航和编辑台式工作区。 */
body.admin-theme { background-color: var(--bg); }
body.admin-theme .cloud-background { z-index: 0; }
body.admin-theme .cloud-background::after { background: linear-gradient(120deg, rgba(255, 232, 214, .20), rgba(255, 250, 245, .08), rgba(232, 246, 250, .18)); }
body.admin-theme #main-content { position: relative; z-index: 2; }
body.admin-theme .login-shell { min-height: 100dvh; padding: 40px 5vw; display: grid; place-items: center; }
body.admin-theme .login-card { width: min(1080px, 100%); display: grid; grid-template-columns: 1.06fr .94fr; overflow: visible; border: 2px solid var(--ink); border-radius: 28px; background: var(--paper); box-shadow: 12px 12px 0 var(--lavender); }
body.admin-theme .login-art { position: relative; min-height: 590px; padding: 32px 38px; overflow: hidden; border-radius: 26px 0 0 26px; background-color: var(--pink-soft); background-image: radial-gradient(rgba(15, 62, 128, .13) 1px, transparent 1px); background-size: 20px 20px; }
body.admin-theme .brand-lockup { color: var(--ink); }
body.admin-theme .brand-lockup small { color: var(--ink); }
body.admin-theme .login-art-copy { position: relative; z-index: 2; margin-top: 64px; }
body.admin-theme .login-art-copy h2 { margin: 0; color: var(--ink); font-size: clamp(38px, 4.5vw, 55px); line-height: 1.14; letter-spacing: -.055em; }
body.admin-theme .login-art-copy p { max-width: 400px; margin-top: 18px; color: var(--ink); font-size: 13px; }
body.admin-theme .login-scene { position: absolute; right: 20px; bottom: 36px; width: 330px; height: 260px; }
body.admin-theme .login-scene .speech-bubble { position: absolute; z-index: 3; top: 0; left: -30px; transform: rotate(-4deg); }
body.admin-theme .login-mascot { position: absolute; right: 6px; bottom: -30px; width: 230px; }
body.admin-theme .art-note { position: absolute; left: 38px; bottom: 26px; color: var(--ink); font-size: 10px; font-weight: 700; }
body.admin-theme .login-form-wrap { padding: 70px 48px 44px; align-self: center; }
body.admin-theme .login-form-wrap h1 { color: var(--ink); font-size: 38px; }
body.admin-theme .login-form-wrap .muted { color: var(--muted); }
body.admin-theme .field > span:first-child,
body.admin-theme .days-fieldset legend { color: var(--ink); font-weight: 800; }
body.admin-theme .password-control input { min-height: 54px; }
body.admin-theme .icon-button { color: var(--ink); }
body.admin-theme .security-note { color: var(--muted); }

body.admin-theme .admin-layout { display: block; width: min(1400px, calc(100% - 36px)); margin: 14px auto 50px; }
body.admin-theme .sidebar { position: sticky; top: 14px; z-index: 40; width: 100%; min-height: 0; margin: 0 0 24px; padding: 12px 14px; display: flex; flex-direction: row; align-items: center; gap: 20px; border: 1.5px solid var(--ink); border-radius: 20px; background: rgba(255, 250, 245, .94); box-shadow: 5px 5px 0 rgba(15, 62, 128, .14); backdrop-filter: blur(14px); }
body.admin-theme .sidebar-brand { flex: 0 0 auto; color: var(--ink); }
body.admin-theme .sidebar-brand small { color: var(--muted); }
body.admin-theme .side-nav { display: flex; flex: 1; flex-direction: row; justify-content: center; gap: 8px; }
body.admin-theme .nav-link { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 7px 14px; border: 1px solid transparent; border-radius: 12px; color: var(--muted); font-size: 12px; font-weight: 800; }
body.admin-theme .nav-link > span:first-child { font-size: 10px; font-weight: 900; }
body.admin-theme .nav-link > span:last-child { display: flex; flex-direction: column; }
body.admin-theme .nav-link small { font-size: 8px; letter-spacing: .12em; }
body.admin-theme .nav-link.active,
body.admin-theme .nav-link:hover { border-color: var(--ink); color: var(--ink); background: var(--pink-soft); }
body.admin-theme .sidebar-bottom { display: flex; align-items: center; gap: 12px; }
body.admin-theme .sidebar-bottom p { display: none; }
body.admin-theme .session-chip,
body.admin-theme .soft-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); background: var(--blue-pale); font-size: 10px; font-weight: 700; }
body.admin-theme .workspace { width: 100%; min-width: 0; }
body.admin-theme .workspace-header { position: relative; min-height: 290px; padding: 42px 390px 36px 42px; overflow: hidden; border: 2px solid var(--ink); border-radius: 28px; background-color: var(--blue); background-image: radial-gradient(rgba(15, 62, 128, .13) 1px, transparent 1px); background-size: 20px 20px; box-shadow: 8px 8px 0 var(--lavender); }
body.admin-theme .workspace-title { position: relative; z-index: 3; }
body.admin-theme .workspace-header h1 { margin: 0; color: var(--ink); font-size: clamp(38px, 4.4vw, 58px); line-height: 1.14; letter-spacing: -.055em; }
body.admin-theme .workspace-header p { max-width: 580px; margin: 16px 0; color: var(--ink); }
body.admin-theme .header-scene { position: absolute; right: 35px; bottom: 0; width: 330px; height: 100%; }
body.admin-theme .header-scene img { position: absolute; right: 0; bottom: -4px; width: 290px; }
body.admin-theme .header-scene .speech-bubble { position: absolute; z-index: 3; top: 44px; left: -12px; transform: rotate(-3deg); }
body.admin-theme .header-actions { position: absolute; z-index: 4; right: 24px; top: 22px; }
body.admin-theme .section-block { margin-top: 28px; }
body.admin-theme .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
body.admin-theme .section-heading h2,
body.admin-theme .panel-heading h2,
body.admin-theme .flow-panel h2,
body.admin-theme .password-intro h2 { color: var(--ink); font-size: 23px; }
body.admin-theme .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.admin-theme .stats-grid .stat-card { min-width: 0; display: flex; align-items: flex-start; gap: 16px; padding: 20px; border: 1.5px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 4px 4px 0 rgba(15, 62, 128, .1); }
body.admin-theme .stats-grid .stat-card:nth-child(2) { background: var(--blue-pale); }
body.admin-theme .stats-grid .stat-card:nth-child(3) { background: #fff0f7; }
body.admin-theme .stats-grid .stat-card:nth-child(4) { background: #fff0e9; }
body.admin-theme .stat-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); background: rgba(255, 255, 255, .55); font-size: 10px; font-weight: 900; }
body.admin-theme .stat-card div { display: grid; grid-template-columns: 1fr auto; align-items: center; flex: 1; }
body.admin-theme .stat-card div > span { color: var(--muted); font-size: 11px; font-weight: 800; }
body.admin-theme .stat-card strong { grid-row: 1 / 3; grid-column: 2; color: var(--ink); font-size: 34px; line-height: 1; }
body.admin-theme .stat-card small { color: var(--muted); font-size: 10px; }
body.admin-theme .dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 18px; margin-top: 20px; }
body.admin-theme .panel { min-width: 0; padding: 24px; border: 1.5px solid var(--ink); border-radius: 22px; color: var(--ink); background: var(--paper); box-shadow: 6px 6px 0 rgba(15, 62, 128, .1); }
body.admin-theme .generator-panel { background: #fff5fa; }
body.admin-theme .day-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
body.admin-theme .day-option { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); background: #fff; font-weight: 700; }
body.admin-theme .day-option.selected { border: 1.5px solid var(--ink); color: var(--ink); background: var(--pink); box-shadow: 3px 3px 0 var(--ink); }
body.admin-theme .input-with-unit { border-color: var(--line-strong); background: #fff; }
body.admin-theme .field-help { color: var(--muted); }
body.admin-theme .flow-panel { background: var(--blue-pale); }
body.admin-theme .flow-list li { border-bottom: 1px dashed var(--line-strong); }
body.admin-theme .flow-list li > span { border: 1px solid var(--ink); color: var(--ink); background: var(--paper); }
body.admin-theme .flow-list strong { color: var(--ink); }
body.admin-theme .flow-list p { color: var(--muted); }
body.admin-theme .cards-panel { margin-top: 20px; }
body.admin-theme .cards-list { color: var(--ink); }
body.admin-theme .card-item,
body.admin-theme .license-item,
body.admin-theme .license-card-item { border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; box-shadow: none; }
body.admin-theme .empty-state { color: var(--muted); }
body.admin-theme .empty-state h3 { color: var(--ink); }
body.admin-theme .background-panel { margin-top: 20px; display: grid; grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.2fr); gap: 24px; background: var(--blue-pale); }
body.admin-theme .admin-bg-controls { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 14px 20px; }
body.admin-theme .admin-bg-controls .field > span { display: flex; justify-content: space-between; gap: 12px; }
body.admin-theme .admin-bg-controls output { font-variant-numeric: tabular-nums; }
body.admin-theme .admin-bg-controls input[type="range"] { width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; accent-color: var(--pink); }
body.admin-theme .admin-bg-controls .button { align-self: end; }
body.admin-theme .admin-bg-controls .field-help { align-self: center; margin: 0; }
body.admin-theme .password-panel { margin-top: 20px; background: #fff8d9; }
body.admin-theme .workspace-footer { color: var(--muted); }
body.admin-theme .dialog { border: 2px solid var(--ink); border-radius: 24px; color: var(--ink); background: var(--paper); box-shadow: 10px 10px 0 rgba(15, 62, 128, .22); }
body.admin-theme .generated-card { border: 1.5px dashed var(--ink); border-radius: 12px; color: var(--ink); background: var(--pink-soft); }
body.admin-theme .toast-region .toast { border: 1.5px solid var(--ink); border-radius: 14px; color: var(--ink); background: var(--paper); }

@media (min-width: 901px) {
  body.puppy-theme .auth-brand h1 { max-width: none; font-size: clamp(46px, 5vw, 68px); white-space: nowrap; }
}

@media (max-width: 1180px) {
  body.puppy-theme .topbar { align-items: flex-start; }
  body.puppy-theme .topbar-row { gap: 7px; }
  body.puppy-theme .topbar .brand { width: 100%; }
  body.puppy-theme .console-hero { padding-right: 330px; }
  body.puppy-theme .hero-scene { right: 4px; width: 320px; }
  body.puppy-theme .acc-head { grid-template-columns: 1fr; }
  body.puppy-theme .mode-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.admin-theme .sidebar { flex-wrap: wrap; }
  body.admin-theme .side-nav { order: 3; flex-basis: 100%; }
  body.admin-theme .sidebar-bottom { margin-left: auto; }
  body.admin-theme .workspace-header { padding-right: 320px; }
  body.admin-theme .header-scene { right: 5px; width: 300px; }
  body.admin-theme .day-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 90px; }
  body.puppy-theme .license-gate { position: fixed; align-content: start; padding: 20px; overflow-y: auto; }
  body.puppy-theme .license-card { grid-template-columns: 1fr; box-shadow: 8px 8px 0 var(--lavender); }
  body.puppy-theme .license-art { min-height: 230px; grid-row: 1; padding: 24px; border-right: 0; border-bottom: 2px solid var(--ink); border-radius: 26px 26px 0 0; }
  body.puppy-theme .license-art img { width: 190px; margin: 0 20px -24px auto; }
  body.puppy-theme .license-art .speech-bubble { top: 76px; left: 26px; }
  body.puppy-theme .license-art p { position: absolute; left: 28px; bottom: 28px; text-align: left; }
  body.puppy-theme .license-content { grid-row: 2; padding: 36px; }
  body.puppy-theme .license-content h1 { font-size: 45px; }
  body.puppy-theme .auth-wrap { grid-template-columns: 1fr; gap: 28px; padding: 36px 24px; }
  body.puppy-theme .auth-brand { grid-column: 1; grid-row: 1; }
  body.puppy-theme .auth-brand h1 { max-width: 560px; font-size: 50px; }
  body.puppy-theme .auth-brand .slogan { font-size: 16px; }
  body.puppy-theme .auth-scene { position: absolute; right: 30px; top: 100px; width: 250px; min-height: 220px; opacity: .94; pointer-events: none; }
  body.puppy-theme .auth-scene .speech-bubble { display: none; }
  body.puppy-theme .auth-mascot { width: 200px; right: 0; }
  body.puppy-theme .auth-brand { position: relative; z-index: 2; }
  body.puppy-theme .auth-brand .slogan,
  body.puppy-theme .auth-orbits { max-width: calc(100% - 210px); }
  body.puppy-theme .auth-card { grid-column: 1; grid-row: 2; width: min(600px, 100%); margin: 0 auto; }
  body.puppy-theme .topbar { position: relative; top: 0; flex-direction: column; }
  body.puppy-theme .topbar-row,
  body.puppy-theme .topbar-row2 { width: 100%; }
  body.puppy-theme .topbar-row2 { justify-content: flex-end; }
  body.puppy-theme .console-hero { min-height: 360px; padding: 38px 300px 34px 34px; }
  body.puppy-theme .hero-scene { width: 280px; }
  body.puppy-theme .console-hero img { width: 230px; right: 20px; }
  body.puppy-theme .hero-scene .speech-bubble { right: 20px; }
  body.puppy-theme .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.puppy-theme #add-sec { grid-template-columns: 1fr; }
  body.admin-theme .login-card { grid-template-columns: 1fr; }
  body.admin-theme .login-art { min-height: 330px; border-radius: 26px 26px 0 0; }
  body.admin-theme .login-art-copy { margin-top: 38px; }
  body.admin-theme .login-scene { width: 250px; height: 230px; }
  body.admin-theme .login-mascot { width: 190px; }
  body.admin-theme .login-form-wrap { padding: 40px; }
  body.admin-theme .workspace-header { min-height: 340px; padding: 38px 280px 32px 34px; }
  body.admin-theme .header-scene { width: 260px; }
  body.admin-theme .header-scene img { width: 240px; }
  body.admin-theme .header-scene .speech-bubble { display: none; }
  body.admin-theme .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.admin-theme .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body.puppy-theme { background-position: center top; background-attachment: scroll; }
  body.puppy-theme::after { width: 220px; height: 220px; right: -130px; }
  body.puppy-theme .license-gate { gap: 14px; padding: max(14px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom)); }
  body.puppy-theme .license-brand img { width: 44px; }
  body.puppy-theme .license-brand > span { font-size: 15px; }
  body.puppy-theme .license-card { border-radius: 22px; box-shadow: 6px 6px 0 var(--lavender); }
  body.puppy-theme .license-art { min-height: 160px; border-radius: 20px 20px 0 0; }
  body.puppy-theme .license-art::before { width: 56px; height: 56px; top: 16px; right: 16px; font-size: 8px; }
  body.puppy-theme .license-art .art-index { top: 16px; left: 18px; }
  body.puppy-theme .license-art .speech-bubble { top: 50px; left: 18px; max-width: 155px; padding: 8px 10px; font-size: 10px; }
  body.puppy-theme .license-art img { width: 140px; margin-right: 28px; margin-bottom: -18px; }
  body.puppy-theme .license-art p { display: none; }
  body.puppy-theme .license-content { padding: 28px 22px 24px; }
  body.puppy-theme .license-content::after { top: 16px; right: 20px; font-size: 23px; }
  body.puppy-theme .license-content h1 { font-size: 36px; }
  body.puppy-theme .license-intro { margin: 15px 0 20px; font-size: 13px; }
  body.puppy-theme .license-outro { text-align: center; }
  body.puppy-theme .auth-wrap { padding: 26px 14px 36px; }
  body.puppy-theme .brand-logo-lg { width: 54px; height: 46px; }
  body.puppy-theme .auth-brand h1 { font-size: 39px; }
  body.puppy-theme .auth-brand .slogan { font-size: 14px; }
  body.puppy-theme .auth-scene { right: 0; top: 100px; width: 140px; min-height: 140px; opacity: .7; }
  body.puppy-theme .auth-mascot { width: 135px; }
  body.puppy-theme .auth-brand .slogan,
  body.puppy-theme .auth-orbits { max-width: calc(100% - 115px); }
  body.puppy-theme .orbit-chip { padding: 5px 8px; font-size: 9px; }
  body.puppy-theme .auth-card { border-radius: 22px; box-shadow: 6px 6px 0 var(--pink-soft); }
  body.puppy-theme .auth-top { padding: 22px 20px 17px; }
  body.puppy-theme .auth-welcome { font-size: 22px; }
  body.puppy-theme .auth-subtitle { font-size: 11px; }
  body.puppy-theme .auth-tabs { padding: 0 8px; }
  body.puppy-theme .auth-tab { min-height: 48px; padding: 9px 11px; }
  body.puppy-theme .auth-pane { padding: 22px 20px 26px; }
  body.puppy-theme .topbar { width: calc(100% - 20px); margin-top: 10px; padding: 10px; border-radius: 17px; }
  body.puppy-theme .topbar .brand { width: auto; margin-right: auto; }
  body.puppy-theme .topbar .brand b { font-size: 13px; }
  body.puppy-theme .topbar .token-chip { order: 3; }
  body.puppy-theme .topbar .user-email { max-width: 150px; }
  body.puppy-theme .topbar-row2 { position: absolute; right: 10px; top: 10px; width: auto; }
  body.puppy-theme .topbar-row2 .btn { min-height: 36px; padding: 7px 9px; font-size: 10px; }
  body.puppy-theme .connection-label { order: 4; }
  body.puppy-theme .console-wrap { padding: 16px 10px 34px; gap: 16px; }
  body.puppy-theme .console-hero { min-height: 410px; padding: 28px 24px 190px; border-radius: 22px; box-shadow: 6px 6px 0 var(--lavender); }
  body.puppy-theme .console-hero h2 { font-size: 36px; }
  body.puppy-theme .console-hero p { font-size: 12px; }
  body.puppy-theme .console-hero::after { font-size: 48px; }
  body.puppy-theme .hero-scene { right: 0; width: 100%; height: 190px; }
  body.puppy-theme .console-hero img { width: 175px; right: 26px; bottom: -8px; }
  body.puppy-theme .hero-scene .speech-bubble { top: 24px; left: 22px; right: auto; font-size: 10px; }
  body.puppy-theme .board-heading { align-items: flex-start; }
  body.puppy-theme .board-heading > span { display: none; }
  body.puppy-theme .stat-grid { gap: 9px; }
  body.puppy-theme .stat-card { padding: 15px; border-radius: 15px; }
  body.puppy-theme .stat-card .stat-v { font-size: 25px; }
  body.puppy-theme .card { padding: 17px 13px; border-radius: 20px; box-shadow: 4px 4px 0 rgba(15, 62, 128, .1); }
  body.puppy-theme .acc-head { gap: 14px; }
  body.puppy-theme .mode-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  body.puppy-theme .mode-tab { min-height: 48px; padding: 7px 5px; font-size: 11px; }
  body.puppy-theme .mode-icon { width: 22px; height: 22px; }
  body.puppy-theme .ops-row { gap: 7px; margin-top: 16px; padding: 13px 0; }
  body.puppy-theme .ops-row .spacer { display: none; }
  body.puppy-theme .ops-row .btn { flex: 1 1 calc(50% - 7px); min-width: 0; padding-inline: 9px; font-size: 11px; }
  body.puppy-theme .ops-row .back-top { flex: 0 0 42px; }
  body.puppy-theme .acc-table-wrap { overflow: visible; }
  body.puppy-theme .acc-table { min-width: 0; }
  body.puppy-theme #add-sec .add-form { grid-template-columns: 1fr; }
  body.puppy-theme .modal { max-width: calc(100vw - 20px); max-height: calc(100dvh - 30px); overflow-y: auto; }
  body.admin-theme .login-shell { padding: 16px 12px 28px; }
  body.admin-theme .login-card { border-radius: 22px; box-shadow: 6px 6px 0 var(--lavender); }
  body.admin-theme .login-art { min-height: 260px; padding: 22px; border-radius: 20px 20px 0 0; }
  body.admin-theme .login-art-copy { margin-top: 28px; }
  body.admin-theme .login-art-copy h2 { font-size: 34px; }
  body.admin-theme .login-art-copy p { max-width: 230px; font-size: 11px; }
  body.admin-theme .login-scene { right: -6px; bottom: 10px; width: 160px; height: 150px; }
  body.admin-theme .login-scene .speech-bubble { display: none; }
  body.admin-theme .login-mascot { width: 140px; }
  body.admin-theme .art-note { display: none; }
  body.admin-theme .login-form-wrap { padding: 30px 22px; }
  body.admin-theme .login-form-wrap h1 { font-size: 31px; }
  body.admin-theme .admin-layout { width: calc(100% - 20px); margin-top: 10px; }
  body.admin-theme .sidebar { top: 8px; gap: 10px; padding: 10px; border-radius: 17px; }
  body.admin-theme .sidebar-brand strong { font-size: 13px; }
  body.admin-theme .sidebar-brand img { width: 40px; height: 34px; }
  body.admin-theme .sidebar-bottom .session-chip { display: none; }
  body.admin-theme .side-nav { gap: 5px; }
  body.admin-theme .nav-link { flex: 1; justify-content: center; min-width: 0; padding: 7px 5px; font-size: 10px; }
  body.admin-theme .nav-link > span:first-child { display: none; }
  body.admin-theme .workspace-header { min-height: 420px; padding: 30px 24px 200px; border-radius: 22px; box-shadow: 6px 6px 0 var(--lavender); }
  body.admin-theme .workspace-header h1 { font-size: 38px; }
  body.admin-theme .workspace-header p { font-size: 12px; }
  body.admin-theme .header-scene { right: 0; bottom: 0; width: 100%; height: 200px; }
  body.admin-theme .header-scene img { width: 220px; right: 12px; }
  body.admin-theme .header-actions { top: auto; left: 24px; right: auto; bottom: 22px; }
  body.admin-theme .section-heading { align-items: flex-start; }
  body.admin-theme .section-heading .soft-badge { max-width: 120px; text-align: center; }
  body.admin-theme .stats-grid { gap: 9px; }
  body.admin-theme .stats-grid .stat-card { padding: 14px; gap: 9px; }
  body.admin-theme .stat-icon { width: 28px; height: 28px; font-size: 8px; }
  body.admin-theme .stat-card strong { font-size: 27px; }
  body.admin-theme .stat-card small { display: none; }
  body.admin-theme .panel { padding: 18px 15px; border-radius: 19px; box-shadow: 4px 4px 0 rgba(15, 62, 128, .1); }
  body.admin-theme .background-panel,
  body.admin-theme .admin-bg-controls { grid-template-columns: 1fr; }
  body.admin-theme .day-options { gap: 6px; }
  body.admin-theme .generate-row { grid-template-columns: 1fr; }
  body.admin-theme .panel-heading { gap: 12px; }
  body.admin-theme .cards-heading { align-items: flex-start; flex-direction: column; }
  body.admin-theme .dialog { max-width: calc(100vw - 24px); }
}

@media (max-width: 380px) {
  body.puppy-theme .license-content { padding-inline: 18px; }
  body.puppy-theme .license-content h1 { font-size: 32px; }
  body.puppy-theme .license-art .speech-bubble { max-width: 135px; }
  body.puppy-theme .topbar .brand b { font-size: 12px; }
  body.puppy-theme .topbar-row2 .theme-anchor { display: none; }
  body.puppy-theme .console-hero h2,
  body.admin-theme .workspace-header h1 { font-size: 32px; }
  body.puppy-theme .mode-tab { font-size: 10px; }
  body.admin-theme .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px), (pointer: coarse) {
  input, select, textarea { font-size: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.puppy-theme *, body.puppy-theme *::before, body.puppy-theme *::after { animation: none !important; transition: none !important; }
  body.puppy-theme .license-art img { transform: none; }
}
