@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&family=Great+Vibes&family=Outfit:wght@300;400;500;600;700;800;900&family=Pacifico&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

:root {
  --duck-yellow: #FFD700;
  --duck-gold: #F4A800;
  --duck-cream: #FFF9E6;
  --duck-cream-2: #F5E4BE;
  --duck-surface: #FFEEA0;
  --duck-blue: #4A90D9;
  --duck-blue-dark: #2565AE;
  --duck-ink: #2D2D2D;
  --duck-muted: #666666;
  --duck-border: #F5E4BE;
  --duck-panel: #FFFBE8;
  --duck-green: #16a34a;
  --duck-red: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --type-xs: 12px;
  --type-sm: 13px;
  --type-base: 14px;
  --type-md: 16px;
  --type-lg: 20px;
  --type-xl: 24px;
  --shadow: 0 10px 24px rgba(100, 50, 0, 0.09), 0 1px 4px rgba(100, 50, 0, 0.06);
  --shadow-soft: 0 6px 18px rgba(100, 50, 0, 0.07), 0 1px 3px rgba(100, 50, 0, 0.05);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
html { font-size: 16px; text-size-adjust: 100%; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: "Outfit", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--duck-ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 215, 0, 0.18), transparent 24rem),
    linear-gradient(135deg, #FFF9E6 0%, #FFF3CC 50%, #FFF9E6 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-size: var(--type-base);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(74, 144, 217, 0.72);
  outline-offset: 3px;
}

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(20px, 4vw, 40px);
  background: linear-gradient(135deg, #1C1000 0%, #2A1800 40%, #3D2200 70%, #1C1000 100%);
  border-bottom: 0;
  box-shadow: 0 4px 22px rgba(80, 40, 0, 0.35);
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.topbar::before {
  width: 280px;
  height: 280px;
  right: -60px;
  top: -110px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.22) 0%, transparent 70%);
  animation: header-glow 4s ease-in-out infinite;
}
.topbar::after {
  width: 180px;
  height: 180px;
  left: -30px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(244, 168, 0, 0.30) 0%, transparent 70%);
}

.brandmark, .nav { position: relative; z-index: 1; }
.brandmark { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-copy,
.brand-copy strong,
.brand-copy span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.brand-copy strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 1px;
  color: var(--duck-yellow);
  text-shadow: none;
  background: linear-gradient(135deg, #FFD700, #FFF9C4, #F4A800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-copy span {
  display: block;
  color: rgba(255, 215, 0, 0.62);
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.2px;
}
.brand-copy .brand-author {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  padding: 8px 15px;
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 215, 0, 0);
  transition: 0.22s;
}
.nav a:hover, .nav a.active {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.20), rgba(255, 215, 0, 0.10));
  color: var(--duck-yellow);
  border-color: rgba(255, 215, 0, 0.40);
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.20);
}
.topbar-home {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: #1C1000;
  background: linear-gradient(135deg, #FFD700, #F4A800);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.20);
}
.topbar-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 215, 0, 0.40);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.20), rgba(255, 215, 0, 0.10));
  color: var(--duck-yellow);
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.16);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 215, 0, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.language-switcher button {
  min-width: 38px;
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 900;
}
.language-switcher button.active {
  background: linear-gradient(135deg, #FFD700, #F4A800);
  color: #1C1000;
}

.psyduck-photo {
  --size: 54px;
  width: var(--size);
  height: var(--size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.18));
}
.psyduck-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  border: none;
  box-shadow: none;
  animation: logo-headache 3s ease-in-out infinite, logo-glow 3s ease-in-out infinite;
}

.main { width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 56px; flex: 1; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: var(--space-lg);
  align-items: center;
  padding: clamp(26px, 4vw, 40px);
  margin-bottom: var(--space-lg);
  background: #fff;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-dashboard {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
}
.hero,
.hero-copy,
.hero-panel,
.task-header,
.task-header-copy,
.task-layout,
.workflow-grid,
.panel,
.task-panel,
.name-panel {
  min-width: 0;
}
.hero-copy { max-width: 760px; }
.hero-slogan {
  display: inline-block;
  margin: 10px 0 14px;
  padding: 7px 18px;
  background: linear-gradient(135deg, #FFD700, #F4A800);
  color: #1C1000;
  font-size: 15px;
  font-weight: 900;
  border-radius: var(--radius-pill);
  letter-spacing: 0.1px;
  box-shadow: 0 4px 14px rgba(244, 168, 0, 0.32);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  margin-bottom: 18px;
  border: 1px solid var(--duck-cream-2);
  border-radius: 999px;
  background: var(--duck-cream);
  color: #7a4a00;
  font-size: 12px;
  font-weight: 900;
}
.hero-kicker img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 9px;
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: 0;
  font-weight: 900;
  color: #1C1000;
  max-width: 12ch;
}
.hero p { color: var(--duck-muted); font-size: var(--type-md); line-height: 1.6; margin: 0; max-width: 680px; }
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-actions .agent-link,
.hero-actions .home-button {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 13px;
}
.hero-secondary {
  background: #fff;
  border: 2px solid var(--duck-cream-2);
  box-shadow: none;
}
.hero-secondary:hover {
  background: var(--duck-cream);
}
.hero-panel {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.32), transparent 28%),
    radial-gradient(circle at 20% 75%, rgba(255, 160, 0, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(28, 16, 0, 0.96), rgba(70, 38, 0, 0.92));
  color: #fef9e7;
  border-radius: var(--radius-lg);
  min-height: 300px;
  padding: 24px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  position: relative;
}
.hero-sticker {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.22));
}
.hero-sticker--main {
  right: 14px;
  bottom: -6px;
  width: min(54%, 224px);
  opacity: 0.96;
  transform: rotate(4deg);
}
.hero-sticker--small {
  width: 74px;
  opacity: 0.78;
}
.hero-sticker--one {
  top: 14px;
  left: 16px;
  transform: rotate(-10deg);
}
.hero-sticker--two {
  right: 160px;
  top: 22px;
  transform: rotate(10deg);
}
.hero-sticker--extra {
  left: 14px;
  bottom: 14px;
  width: 60px;
  opacity: 0.72;
}
.hero-panel code {
  position: relative;
  z-index: 1;
  display: block;
  color: #74f2a2;
  margin-top: 42px;
  margin-left: 66px;
  font-size: var(--type-sm);
  line-height: 1.7;
  white-space: pre-wrap;
}

.tool-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: var(--space-lg);
}
.tool-rail a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: #7a4a00;
  font-size: var(--type-sm);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
  transition: 0.22s;
}
.tool-rail a:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(244, 168, 0, 0.52);
  box-shadow: 0 12px 34px rgba(244, 168, 0, 0.18);
}
.tool-rail img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 9px;
  background: transparent;
}

.tool-grid-wrap { margin-top: 24px; }
.tool-grid-head { margin-bottom: 20px; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
  align-items: stretch;
}
.tool-card { min-width: 0; }
.tool-card, .panel {
  border: 1px solid var(--duck-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tool-card { background: var(--duck-panel); }
.panel { background: #fff; }
.tool-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 390px;
  transition: 0.22s;
}
.tool-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.tool-card-thumb {
  width: 96px;
  height: 96px;
  object-fit: contain;
  align-self: flex-start;
  border-radius: var(--radius);
  border: none;
  background: transparent;
}
.tool-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--duck-cream);
  border: 1px solid var(--duck-cream-2);
  color: #7a4a00;
  font-weight: 900;
  transition: 0.22s;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 168, 0, 0.55);
  box-shadow: 0 16px 52px rgba(244, 168, 0, 0.18), var(--shadow);
}
.tool-card:hover .tool-arrow {
  background: linear-gradient(135deg, #FFD700, #F4A800);
  color: var(--duck-ink);
  transform: translateX(2px);
}
.tool-card h2 {
  min-height: 48px;
  margin: 0;
  font-size: var(--type-lg);
  line-height: 1.2;
  font-weight: 800;
}
.tool-card > p {
  min-height: 66px;
  margin: 0;
  color: var(--duck-muted);
  line-height: 1.55;
  font-size: var(--type-base);
}
.tool-card .psy-state { min-height: 68px; }
.tag-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; }
.tag {
  background: var(--duck-cream);
  color: #7a4a00;
  border: 1px solid var(--duck-cream-2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: var(--type-xs);
  font-weight: 800;
}

.home-section { margin-top: 22px; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: end;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: var(--type-xl); line-height: 1.2; font-weight: 800; }
.section-head p { margin: 4px 0 0; color: var(--duck-muted); line-height: 1.5; font-size: var(--type-base); }
.section-head--center {
  justify-content: center;
  text-align: center;
}
.section-head--center p { max-width: 620px; }
.agent-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.agent-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.agent-card-img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  box-shadow: 0 4px 14px rgba(244, 168, 0, 0.16);
}
.agent-kicker {
  display: inline-flex;
  color: #a16207;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.agent-card h3 { margin: 5px 0 7px; font-size: 17px; font-weight: 800; }
.agent-card p { margin: 0; color: var(--duck-muted); font-size: 14px; line-height: 1.5; }
.agent-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.agent-actions span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--duck-cream);
  color: #7a4a00;
  font-size: 11px;
  font-weight: 800;
}
.agent-link, .home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--duck-ink);
  background: linear-gradient(135deg, #FFD700, #F4A800);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 18px rgba(244, 168, 0, 0.30);
  transition: 0.22s;
}
.agent-link:hover, .home-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(244, 168, 0, 0.42); }
.local-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-lg);
  background: #fff;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.local-note img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: var(--radius);
  background: transparent;
  animation: duck-float 5s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(255, 215, 0, 0.22));
}
.local-note h2 { margin: 0 0 6px; font-size: var(--type-lg); line-height: 1.2; }
.local-note p { margin: 0; color: var(--duck-muted); line-height: 1.55; }

.workflow-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.workflow-band article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.workflow-band img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius);
  background: transparent;
  border: none;
}
.workflow-band h2 {
  margin: 0 0 5px;
  font-size: 18px;
}
.workflow-band p {
  margin: 0;
  color: var(--duck-muted);
  font-size: 13px;
  line-height: 1.45;
}

.module-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: var(--space-lg);
  align-items: center;
  overflow: hidden;
}
.module-hero-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 2px solid var(--duck-cream-2);
  background: linear-gradient(135deg, #fff, var(--duck-cream));
  box-shadow: var(--shadow-soft);
}
.module-hero .psy-state { margin-top: 16px; }

.task-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.task-header-copy h1 { margin: 3px 0 5px; font-size: var(--type-xl); line-height: 1.2; }
.task-header-copy p { margin: 0; color: var(--duck-muted); line-height: 1.45; }
.task-switcher { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.task-switcher a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #7a4a00;
  background: var(--duck-cream);
  border: 1px solid var(--duck-cream-2);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.task-switcher a.active {
  background: linear-gradient(135deg, #FFD700, #F4A800);
  color: var(--duck-ink);
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(244, 168, 0, 0.26);
}
.task-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-md);
  align-items: start;
}
.agent-panel {
  position: sticky;
  top: 116px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.agent-panel-head { display: flex; gap: 12px; align-items: center; }
.agent-panel-head img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  box-shadow: 0 4px 14px rgba(244, 168, 0, 0.16);
}
.agent-panel h2 { margin: 4px 0 0; font-size: 21px; }
.agent-panel > p { margin: 12px 0; color: var(--duck-muted); line-height: 1.5; }
.agent-panel .psy-state { box-shadow: none; }
.workflow-grid { display: grid; gap: 12px; }

.panel { padding: clamp(24px, 3vw, 32px); }
.panel + .panel { margin-top: 16px; }
.panel h1, .panel h2 { margin: 0 0 12px; font-weight: 800; }
.panel p { color: var(--duck-muted); line-height: 1.55; }
.hero p,
.task-header-copy p,
.task-panel p,
.name-panel p,
.agent-panel > p,
.panel p,
.psy-state p {
  overflow-wrap: anywhere;
}
.controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-weight: 800;
  min-height: 40px;
  background: linear-gradient(135deg, #FFD700, #F4A800, #e0950a);
  color: var(--duck-ink);
  box-shadow: 0 4px 18px rgba(244, 168, 0, 0.40);
  transition: 0.22s;
}
.btn:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(244, 168, 0, 0.55); }
.btn.secondary {
  background: linear-gradient(135deg, #4A90D9, #2565AE, #1a4a8a);
  color: #fff;
  box-shadow: 0 4px 18px rgba(74, 144, 217, 0.40);
}
.btn.secondary:not(:disabled):hover { box-shadow: 0 8px 28px rgba(74, 144, 217, 0.55); }
.btn.danger { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; box-shadow: 0 4px 18px rgba(239, 68, 68, 0.28); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  background: transparent;
  color: var(--duck-muted);
  box-shadow: none;
  border: 2px solid var(--duck-cream-2);
}
.btn-ghost:not(:disabled):hover {
  background: var(--duck-cream);
  color: var(--duck-ink);
  border-color: var(--duck-gold);
  box-shadow: none;
}
.btn-y {
  background: linear-gradient(135deg, #FFD700, #F4A800, #e0950a);
  color: var(--duck-ink);
}
.btn-b {
  background: linear-gradient(135deg, #4A90D9, #2565AE, #1a4a8a);
  color: #fff;
  box-shadow: 0 4px 18px rgba(74, 144, 217, 0.40);
}
.btn-b:not(:disabled):hover { box-shadow: 0 8px 28px rgba(74, 144, 217, 0.55); }
.btn-g {
  background: linear-gradient(135deg, #22c55e, #16a34a, #15803d);
  color: #fff;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.40);
}
.btn-g:not(:disabled):hover { box-shadow: 0 8px 28px rgba(34, 197, 94, 0.55); }
.btn-lg { padding: 12px 28px; font-size: 15px; min-height: 48px; }
.btn-icon { min-width: 36px; padding: 6px 10px; }
.field, textarea, select {
  border: 2px solid var(--duck-cream-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: #fff;
  min-height: 40px;
  color: var(--duck-ink);
  font-size: var(--type-base);
}
.field:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--duck-gold);
  box-shadow: 0 0 0 3px rgba(244, 168, 0, 0.13);
}
.field { width: min(100%, 320px); }
textarea { width: 100%; resize: vertical; min-height: 180px; }
.dropzone {
  border: 3px dashed var(--duck-gold);
  background: linear-gradient(135deg, var(--duck-cream), #FFF3CC);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
}
.dropzone input { max-width: 100%; }
.split { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.list { display: grid; gap: 8px; }
.item {
  border: 1px solid #eaecf0;
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.muted { color: var(--duck-muted); font-size: 13px; }
.output { background: #0f172a; color: #e2e8f0; border-radius: var(--radius-lg); padding: 14px; min-height: 180px; overflow: auto; white-space: pre-wrap; }
.canvas-wrap { overflow: auto; background: #525659; border-radius: var(--radius-lg); padding: 18px; min-height: 300px; }
canvas { max-width: 100%; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.25); }

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}

.download-result {
  margin-top: 18px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 2px solid #bbf7d0;
  border-radius: var(--radius);
  background: #f0fdf4;
}
.download-result[hidden] { display: none; }
.download-result > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.download-result strong {
  color: #166534;
  font-size: 15px;
}
.download-result span {
  color: var(--duck-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.download-result .btn {
  flex: 0 0 auto;
  text-decoration: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: var(--duck-cream);
  color: #7a4a00;
  border: 1px solid var(--duck-cream-2);
}
.badge-y { background: linear-gradient(135deg, #FFD700, #F4A800); color: var(--duck-ink); border-color: transparent; }
.badge-b { background: var(--duck-blue); color: #fff; border-color: transparent; }

.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius);
  background: #fff;
}
.tbl-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl-wrap th, .tbl-wrap td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--duck-border);
  white-space: nowrap;
}
.tbl-wrap th {
  background: var(--duck-cream);
  font-weight: 800;
  font-size: 12px;
  color: var(--duck-muted);
  text-transform: uppercase;
  position: sticky;
  top: 0;
}
.tbl-wrap tr:last-child td { border-bottom: 0; }
.tbl-wrap tr:hover td { background: rgba(255, 249, 230, 0.55); }

.footer { color: var(--duck-muted); font-size: 13px; padding: 24px clamp(16px, 4vw, 56px); border-top: 1px solid var(--duck-border); background: rgba(255,255,255,.62); }

.task-stepper {
  display: grid;
  grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.task-step {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid var(--duck-cream-2);
  border-radius: var(--radius);
  background: var(--duck-cream);
  color: var(--duck-muted);
  text-align: left;
  min-width: 0;
}
.task-step span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--duck-cream-2);
  color: var(--duck-muted);
  font-weight: 900;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 3px;
  transition: background 0.22s, box-shadow 0.22s;
}
.task-step span img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  filter: grayscale(40%) opacity(0.55);
  transition: filter 0.22s;
}
.task-step b { font-size: var(--type-sm); line-height: 1.25; }
.task-step.active {
  border-color: var(--duck-gold);
  color: var(--duck-ink);
  background: linear-gradient(135deg, #fff, var(--duck-cream));
}
.task-step.active span {
  background: linear-gradient(135deg, var(--duck-yellow), var(--duck-gold));
  box-shadow: 0 2px 10px rgba(244, 168, 0, 0.38);
  color: var(--duck-ink);
}
.task-step.active span img {
  filter: none;
}
.task-step.done {
  border-color: rgba(74, 144, 217, 0.38);
  background: #eff6ff;
  color: var(--duck-blue-dark);
}
.task-step.done span {
  background: linear-gradient(135deg, var(--duck-blue), var(--duck-blue-dark));
  box-shadow: 0 2px 10px rgba(74, 144, 217, 0.28);
  color: #fff;
}
.task-step.done span img {
  filter: brightness(0) invert(1) opacity(0.92);
}
.task-panel {
  display: none;
  padding: clamp(20px, 2.5vw, 26px);
  background: #fff;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.task-panel.active { display: block; }
.task-panel-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.task-panel-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--duck-yellow), var(--duck-gold));
  font-weight: 900;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 3px;
}
.task-panel-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius) - 3px);
}
.task-panel h2, .task-panel h3 { margin: 0 0 4px; }
.task-panel h2 { font-size: var(--type-xl); line-height: 1.2; }
.task-panel h3 { font-size: var(--type-lg); line-height: 1.25; }
.task-panel p { margin: 0; color: var(--duck-muted); line-height: 1.42; }

/* Tutorial accordion */
.task-tutorial {
  margin-bottom: 14px;
  border: 1.5px solid var(--duck-cream-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.task-tutorial summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: var(--duck-cream);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--duck-blue-dark);
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}
.task-tutorial summary::-webkit-details-marker { display: none; }
.task-tutorial summary::before {
  content: '▶';
  font-size: 9px;
  transition: transform 0.2s;
  flex-shrink: 0;
  color: var(--duck-gold);
}
.task-tutorial[open] summary::before { transform: rotate(90deg); }
.task-tutorial summary:hover { background: var(--duck-surface); }
.task-tutorial-body {
  padding: 11px 16px;
  background: #fafcff;
  border-top: 1.5px solid var(--duck-cream-2);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--duck-ink);
}
.task-tutorial-body ol {
  margin: 0 0 0 4px;
  padding-left: 20px;
}
.task-tutorial-body li { margin-bottom: 4px; }
.task-tutorial-body li:last-child { margin-bottom: 0; }
.task-tutorial-body strong { color: var(--duck-ink); }
.task-tutorial-section { margin-top: 8px; }
.task-tutorial-section strong {
  display: block;
  margin-bottom: 4px;
  color: var(--duck-blue-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.task-dropzone {
  min-height: 150px;
  display: grid;
  gap: 6px;
  place-content: center;
  padding: 20px;
  border: 3px dashed var(--duck-gold);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--duck-cream), #fff);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.task-dropzone:hover,
.task-dropzone:focus-visible {
  border-color: var(--duck-blue);
  background: linear-gradient(135deg, #eff6ff, #fff);
  box-shadow: 0 8px 24px rgba(74, 144, 217, 0.14);
}
.task-dropzone:active { transform: translateY(1px); }
.task-dropzone input { max-width: 100%; }
.task-dropzone.is-dragging {
  border-color: var(--duck-blue);
  background: #eff6ff;
  box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.14);
  transform: translateY(-1px);
}
.task-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.task-side-grid > * { min-height: 150px; }
.task-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.task-choice {
  display: grid;
  gap: 6px;
  min-height: 150px;
  padding: 16px;
  border: 2px solid var(--duck-cream-2);
  border-radius: var(--radius);
  background: var(--duck-cream);
  color: var(--duck-ink);
  text-align: left;
  min-width: 0;
}
.task-choice.active {
  border-color: var(--duck-gold);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.task-choice span { font-size: 26px; }
.task-choice b { font-size: 17px; }
.task-choice small { color: var(--duck-muted); line-height: 1.35; overflow-wrap: anywhere; }
.task-preview-tools {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.task-preview-tools label {
  display: grid;
  gap: 5px;
  min-width: min(100%, 280px);
  font-size: 12px;
  font-weight: 900;
  color: var(--duck-muted);
  text-transform: uppercase;
}
.task-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.task-stats div {
  padding: 18px;
  border: 2px solid var(--duck-cream-2);
  border-radius: var(--radius);
  background: var(--duck-cream);
  text-align: center;
}
.task-stats strong {
  display: block;
  font-size: 34px;
  color: var(--duck-gold);
}
.task-stats span {
  display: block;
  margin-top: 4px;
  color: var(--duck-muted);
  font-size: 12px;
  font-weight: 900;
}
.task-config-card {
  min-height: 170px;
  padding: 18px;
  border: 2px solid var(--duck-cream-2);
  border-radius: var(--radius);
  background: var(--duck-cream);
}
.task-config-card select,
.task-config-card input,
.task-config-card textarea {
  width: 100%;
}

.pdf-mode-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.pdf-mode-choice .task-choice {
  min-height: 200px;
  gap: 10px;
  align-content: start;
}
.pdf-mode-choice .task-choice img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: var(--radius);
  margin-bottom: 4px;
}
.pdf-mode-choice .task-choice b { font-size: 20px; }
.pdf-mode-choice .task-choice small { font-size: 14px; line-height: 1.5; }
.pdf-tool-suite {
  display: grid;
  gap: 18px;
}
.pdf-tool-suite article {
  display: grid;
  gap: 10px;
}
.pdf-tool-suite h3 {
  margin: 0;
  font-size: 15px;
  color: #1C1000;
}
.pdf-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pdf-control-stack {
  display: grid;
  gap: 10px;
}
.pdf-inline-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 10px;
  align-items: center;
}
.pdf-inline-controls input[type="color"] {
  width: 54px;
  height: 42px;
  padding: 4px;
}
.pdf-mini-upload {
  display: grid;
  gap: 6px;
  color: var(--duck-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.pdf-mini-upload input {
  text-transform: none;
  font-weight: 700;
}
.pdf-roadmap {
  padding: 18px;
  border: 2px dashed var(--duck-blue);
  border-radius: var(--radius);
  background: #eff6ff;
}
.pdf-roadmap strong {
  display: block;
  margin-bottom: 8px;
  color: #1e3a8a;
}
.pdf-review-shell {
  display: grid;
  gap: 14px;
}
.pdf-review-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 38px;
}
.pdf-review-hint {
  color: var(--duck-muted);
  font-size: 12px;
  font-weight: 700;
}
.pdf-review-body {
  min-height: 180px;
}
.pdf-sort-list {
  display: grid;
  gap: 8px;
}
.pdf-sort-item {
  cursor: grab;
}
.pdf-sort-item:active {
  cursor: grabbing;
}
.pdf-sort-item > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pdf-sort-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.pdf-sort-actions button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--duck-blue-dark);
  font-size: 16px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}
.pdf-sort-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  box-shadow: none;
}
.pdf-file-note,
.pdf-empty-review {
  padding: 14px;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius);
  background: var(--duck-cream);
  color: var(--duck-muted);
}
.pdf-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 12px;
}
.pdf-page-card {
  display: grid;
  gap: 9px;
  justify-items: center;
  padding: 12px;
  border: 2px solid var(--duck-cream-2);
  border-radius: var(--radius);
  background: #fff;
  cursor: grab;
  min-width: 0;
}
.pdf-page-card:active {
  cursor: grabbing;
}
.pdf-page-card img {
  width: 100%;
  max-width: 118px;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f8fafc;
  transform: rotate(var(--rotation));
  transition: transform .16s ease;
}
.pdf-page-card strong {
  font-size: 13px;
}
.pdf-page-card div {
  display: flex;
  gap: 6px;
}
.pdf-annotate-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.pdf-annotate-wrap canvas {
  cursor: crosshair;
  width: auto;
  max-width: 100%;
  height: auto;
}
.pdf-annotation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.pdf-text-preview {
  max-height: 380px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius-lg);
  background: #0f172a;
  color: #e2e8f0;
  white-space: pre-wrap;
  line-height: 1.55;
}

.name-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.name-step {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid var(--duck-cream-2);
  border-radius: var(--radius);
  background: var(--duck-cream);
  color: var(--duck-muted);
  text-align: left;
  min-width: 0;
}
.name-step span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--duck-cream-2);
  color: var(--duck-muted);
  font-weight: 900;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 3px;
  transition: background 0.22s, box-shadow 0.22s;
}
.name-step span img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  filter: grayscale(40%) opacity(0.55);
  transition: filter 0.22s;
}
.name-step b { font-size: var(--type-sm); line-height: 1.25; }
.name-step.active {
  border-color: var(--duck-gold);
  color: var(--duck-ink);
  background: linear-gradient(135deg, #fff, var(--duck-cream));
}
.name-step.active span {
  background: linear-gradient(135deg, var(--duck-yellow), var(--duck-gold));
  box-shadow: 0 2px 10px rgba(244, 168, 0, 0.38);
  color: var(--duck-ink);
}
.name-step.active span img {
  filter: none;
}
.name-step.done {
  border-color: rgba(74, 144, 217, 0.38);
  background: #eff6ff;
  color: var(--duck-blue-dark);
}
.name-step.done span {
  background: linear-gradient(135deg, var(--duck-blue), var(--duck-blue-dark));
  box-shadow: 0 2px 10px rgba(74, 144, 217, 0.28);
  color: #fff;
}
.name-step.done span img {
  filter: brightness(0) invert(1) opacity(0.92);
}
.name-panel {
  display: none;
  padding: clamp(20px, 2.5vw, 26px);
  background: #fff;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.name-panel.active { display: block; }
.name-panel-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.name-panel-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--duck-yellow), var(--duck-gold));
  font-weight: 900;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 3px;
}
.name-panel h2, .name-panel h3 { margin: 0 0 4px; }
.name-panel h2 { font-size: var(--type-xl); line-height: 1.2; }
.name-panel h3 { font-size: var(--type-lg); line-height: 1.25; }
.name-panel p { margin: 0; color: var(--duck-muted); line-height: 1.42; }
.name-input-grid, .name-config-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}
.name-file-only {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.name-file-drop {
  min-height: 150px;
  display: grid;
  gap: 6px;
  place-content: center;
  padding: 20px;
  border: 3px dashed var(--duck-gold);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--duck-cream), #fff);
  text-align: center;
  cursor: pointer;
}
.name-file-drop input { display: none; }
.name-file-drop span {
  font-size: 12px;
  font-weight: 900;
  color: var(--duck-blue-dark);
  text-transform: uppercase;
}
.name-file-drop strong { font-size: 18px; }
.name-file-drop small {
  max-width: 720px;
  color: var(--duck-muted);
  line-height: 1.4;
}
.name-mode-choice {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}
.name-mode-choice .task-choice {
  position: relative;
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 142px;
  align-content: center;
  cursor: pointer;
}
.name-mode-choice .task-choice img {
  grid-row: 1 / span 3;
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.name-mode-choice .task-choice b,
.name-mode-choice .task-choice small {
  grid-column: 2;
}
.name-choice-action {
  grid-column: 2;
  width: max-content;
  padding: 5px 10px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--duck-cream-2);
  color: var(--duck-blue-dark);
  font-size: 12px !important;
  font-weight: 900;
}
.name-mode-choice .task-choice.active .name-choice-action {
  background: var(--duck-yellow);
  border-color: var(--duck-gold);
  color: var(--duck-ink);
}
.name-custom-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}
.name-custom-upload[hidden] { display: none; }
.name-custom-editor {
  margin-top: 22px;
  padding: 18px;
  border: 2px solid var(--duck-cream-2);
  border-radius: var(--radius-lg);
  background: var(--duck-cream);
}
.name-custom-editor[hidden] { display: none; }
.name-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.name-editor-head > span {
  padding: 5px 10px;
  border-radius: 99px;
  background: #fff;
  color: var(--duck-blue-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.name-editor-grid {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.name-editor-controls {
  display: grid;
  gap: 12px;
}
.name-control-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1.5px solid var(--duck-cream-2);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 3px 12px rgba(45,45,45,.045);
}
.name-control-section--field {
  border-color: rgba(244,168,0,.48);
  background: linear-gradient(135deg, #fff, var(--duck-cream));
}
.name-control-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.name-control-title > span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--duck-yellow), var(--duck-gold));
  color: var(--duck-ink);
  font-size: 12px;
  font-weight: 900;
}
.name-control-title div {
  display: grid;
  min-width: 0;
}
.name-control-title b {
  color: var(--duck-ink);
  font-size: 14px;
}
.name-control-title small {
  color: var(--duck-muted);
  font-size: 11px;
  line-height: 1.35;
}
.name-editor-controls .name-label { margin: 2px 0 -4px; }
.name-editor-controls input[type="number"],
.name-editor-controls input[type="color"],
.name-editor-controls select {
  width: 100%;
  min-height: 42px;
  border: 2px solid var(--duck-cream-2);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 7px 10px;
}
.name-editor-controls input:focus,
.name-editor-controls select:focus {
  outline: 3px solid rgba(74,144,217,.14);
  border-color: var(--duck-blue);
}
.name-field-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.name-field-tabs button {
  min-height: 42px;
  border: 2px solid var(--duck-cream-2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--duck-ink);
  font-weight: 900;
  cursor: pointer;
}
.name-field-tabs button span {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
}
.name-field-tabs button.active {
  border-color: var(--duck-gold);
  background: var(--duck-yellow);
  box-shadow: 0 3px 10px rgba(244,168,0,.2);
}
.name-font-select { font-weight: 700; }
.name-font-preview {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px 12px;
  border: 1px dashed var(--duck-gold);
  border-radius: var(--radius-sm);
  background: var(--duck-cream);
  color: var(--duck-ink);
  font-family: "Times New Roman", serif;
  font-size: 24px;
  text-align: center;
}
.name-inline-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  gap: 9px;
}
.name-inline-controls label {
  display: grid;
  gap: 5px;
  color: var(--duck-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.name-color-control input[type="color"] {
  padding: 4px;
  cursor: pointer;
}
.name-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.name-toggle {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1.5px solid var(--duck-cream-2);
  border-radius: var(--radius-sm);
  background: var(--duck-cream);
  cursor: pointer;
}
.name-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.name-toggle > span {
  width: 30px;
  height: 18px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 99px;
  background: #d6d3d1;
  transition: background .2s;
}
.name-toggle > span::after {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .2s;
}
.name-toggle input:checked + span { background: var(--duck-blue); }
.name-toggle input:checked + span::after { transform: translateX(12px); }
.name-toggle b {
  color: var(--duck-ink);
  font-size: 12px;
}
.name-rotation-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.name-rotation-presets button {
  min-height: 36px;
  padding: 5px;
  border: 1.5px solid var(--duck-cream-2);
  border-radius: 8px;
  background: var(--duck-cream);
  color: var(--duck-ink);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.name-rotation-presets button:hover,
.name-rotation-presets button.active {
  border-color: var(--duck-blue);
  background: #eff6ff;
  color: var(--duck-blue-dark);
}
.name-range-control {
  display: grid;
  gap: 7px;
}
.name-range-control > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--duck-muted);
  font-size: 12px;
}
.name-range-control output {
  min-width: 48px;
  padding: 3px 7px;
  border-radius: 99px;
  background: #eff6ff;
  color: var(--duck-blue-dark);
  font-weight: 900;
  text-align: center;
}
.name-range-control input[type="range"] {
  width: 100%;
  accent-color: var(--duck-gold);
  cursor: pointer;
}
.name-reset-button { width: 100%; justify-content: center; }
.name-editor-canvas-shell {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border-radius: var(--radius);
  background: #525659;
  overflow: auto;
}
.name-canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(255,255,255,.94);
  color: var(--duck-muted);
  font-size: 12px;
}
.name-canvas-toolbar span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.name-canvas-toolbar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--duck-gold);
  box-shadow: 0 0 0 4px rgba(244,168,0,.17);
}
.name-canvas-toolbar b { color: var(--duck-ink); }
.name-canvas-toolbar small { color: var(--duck-muted); }
.name-editor-canvas-shell canvas {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
  cursor: crosshair;
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
}
.name-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 900;
  color: var(--duck-muted);
  text-transform: uppercase;
}
.name-config-card {
  padding: 15px;
  border: 2px solid var(--duck-cream-2);
  border-radius: var(--radius);
  background: var(--duck-cream);
}
.task-config-card,
.name-config-card,
.task-choice,
.pdf-page-card,
.item {
  min-width: 0;
}
.name-config-card select,
.name-config-card input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 2px solid var(--duck-cream-2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--duck-ink);
}
.name-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.name-row-2 span {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--duck-muted);
}
.name-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--duck-muted);
  font-size: 13px;
  font-weight: 700;
}
.name-check input { width: auto; min-height: auto; }
.name-config-note {
  margin-top: 7px !important;
  color: var(--duck-muted);
  font-size: 13px;
}
.name-table-wrap { margin-top: 14px; }
.name-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.name-table-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.name-table-title small {
  color: var(--duck-muted);
  font-size: 12px;
  line-height: 1.4;
}
.name-table-head span {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--duck-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.name-preview-tools {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.name-preview-tools label {
  display: grid;
  gap: 5px;
  min-width: min(100%, 280px);
  font-size: 12px;
  font-weight: 900;
  color: var(--duck-muted);
  text-transform: uppercase;
}
.name-preview-tools select {
  min-height: 40px;
  padding: 8px 10px;
  border: 2px solid var(--duck-cream-2);
  border-radius: 8px;
}
.name-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.name-canvas-wrap canvas {
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* Horizontal preview split: controls left | canvas right */
.preview-split {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.preview-split-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 100px;
}
.preview-split-controls .name-preview-tools {
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 0;
}
.preview-split-controls .name-preview-tools label {
  min-width: 0;
}
.preview-split-controls .actions {
  flex-direction: column;
  margin-top: 0;
}
.preview-split-controls .actions .btn {
  width: 100%;
  justify-content: center;
}
.preview-split-canvas .canvas-wrap {
  padding: 14px;
  background: #525659;
  border-radius: var(--radius-lg);
  min-height: 300px;
}
.preview-split-canvas .name-canvas-wrap canvas {
  max-width: 100%;
}
.preview-record-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--duck-cream);
  border: 1.5px solid var(--duck-cream-2);
  border-radius: var(--radius);
  font-size: 13px;
}
.preview-record-summary strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--duck-ink);
}
.preview-record-summary span {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  color: var(--duck-muted);
  background: #fff;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid var(--duck-cream-2);
}
.preview-record-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.name-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.name-stats div {
  padding: 18px;
  border: 2px solid var(--duck-cream-2);
  border-radius: var(--radius);
  background: var(--duck-cream);
  text-align: center;
}
.name-stats strong {
  display: block;
  font-size: 34px;
  color: var(--duck-gold);
}
.name-stats span {
  display: block;
  margin-top: 4px;
  color: var(--duck-muted);
  font-size: 12px;
  font-weight: 900;
}
.name-progress {
  margin-top: 18px;
}
.name-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
}
.name-progress > span {
  display: block;
  height: 13px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--duck-cream-2);
}
.name-progress i {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--duck-yellow), var(--duck-gold));
  transition: width .2s;
}

.psy-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #fff, var(--duck-cream));
  border: 2px solid var(--duck-cream-2);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
  animation: psy-fade .28s ease;
}
.psy-state-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius);
  flex: 0 0 auto;
  background: transparent;
  border: none;
}
.sticker-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--duck-border);
  box-shadow: var(--shadow-soft);
}
.sticker-shelf img {
  width: 100%;
  height: 104px;
  object-fit: contain;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: rgba(255, 249, 230, 0.76);
  transition: transform 0.18s ease, background 0.18s ease;
}
.sticker-shelf img:hover {
  transform: translateY(-3px) rotate(-2deg);
  background: #fff;
}
.psy-state-copy { min-width: 0; }
.psy-state-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.psy-state-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: var(--duck-ink);
  background: linear-gradient(135deg, #FFD700, #F4A800);
}
.psy-state-agent {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(74, 144, 217, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--duck-blue-dark);
  font-size: 12px;
  font-weight: 850;
}
.psy-state-agent b {
  margin-left: 4px;
  color: var(--duck-ink);
  white-space: nowrap;
}
.psy-state-agent-role {
  margin-top: 5px !important;
  font-size: 12px !important;
}
.psy-state--with-agent {
  align-items: flex-start;
}
.psy-state p {
  margin: 5px 0 0;
  color: var(--duck-muted);
  font-size: 13px;
  line-height: 1.35;
}
.psy-state--compact {
  display: inline-flex;
  width: auto;
  padding: 6px 8px;
}
.psy-state--compact .psy-state-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.psy-state--compact .psy-state-badge { font-size: 11px; padding: 4px 8px; }
.psy-state--success { border-color: rgba(34, 197, 94, 0.42); }
.psy-state--success .psy-state-badge { background: linear-gradient(135deg, #bbf7d0, #22c55e); color: #052e16; }
.psy-state--warning { border-color: rgba(244, 168, 0, 0.55); }
.psy-state--warning .psy-state-img, .psy-state--error .psy-state-img { animation: psy-shake 3.6s ease-in-out infinite; }
.psy-state--error { border-color: rgba(239, 68, 68, 0.46); }
.psy-state--error .psy-state-badge { background: linear-gradient(135deg, #fecaca, #ef4444); color: #450a0a; }
.psy-state--secure { border-color: rgba(74, 144, 217, 0.44); }
.psy-state--secure .psy-state-badge, .psy-state--detective .psy-state-badge { background: linear-gradient(135deg, #dbeafe, #4A90D9); color: #0f3460; }
.psy-state--night .psy-state-badge { background: linear-gradient(135deg, #1e3a8a, #0f172a); color: #fef3c7; }
.psy-state--caffeine .psy-state-img { animation: psy-bob 2.2s ease-in-out infinite; }
.pdf-output-name {
  min-height: 172px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  border-style: dashed;
}
.pdf-output-name > span {
  color: var(--duck-blue-dark);
  font-size: 12px;
  font-weight: 950;
}
.pdf-output-name > strong {
  color: var(--duck-ink);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.05;
}
.pdf-output-name .field {
  min-height: 42px;
  text-align: center;
  font-weight: 850;
}
.pdf-output-name small {
  color: var(--duck-muted);
  font-size: 12px;
  font-weight: 750;
}
@keyframes psy-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes psy-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes psy-shake { 0%, 100% { transform: rotate(0); } 46% { transform: rotate(0); } 50% { transform: rotate(-2deg); } 54% { transform: rotate(2deg); } 58% { transform: rotate(0); } }
@keyframes header-glow { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes logo-headache { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-6deg); } 70% { transform: rotate(5deg); } }
@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.42)); }
  50% { filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.72)); }
}

/* Floating sticker decorations */
.float-duck {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.15));
  animation: duck-float 4s ease-in-out infinite;
}
.float-duck--a { animation-duration: 3.8s; }
.float-duck--b { animation-duration: 4.6s; animation-delay: -1.2s; }
.float-duck--c { animation-duration: 5.2s; animation-delay: -2.4s; }
.float-duck--d { animation-duration: 4.1s; animation-delay: -0.7s; }
@keyframes duck-float {
  0%, 100% { transform: translateY(0) rotate(var(--duck-rot, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--duck-rot, 0deg)); }
}

/* Sticker parade row on home */
.sticker-parade {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow: hidden;
  padding: 10px 0;
  margin-bottom: 16px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.sticker-parade-track {
  display: flex;
  gap: 12px;
  animation: parade-scroll 28s linear infinite;
  flex-shrink: 0;
}
.sticker-parade-track img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius);
  background: rgba(255,249,230,0.9);
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(244,168,0,0.18);
}
@keyframes parade-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Step completion hook animation */
@keyframes step-done-pop {
  0% { transform: scale(0.88); opacity: 0.6; }
  55% { transform: scale(1.06); }
  80% { transform: scale(0.97); }
  100% { transform: scale(1); opacity: 1; }
}
.task-step.done, .name-step.done {
  animation: step-done-pop 0.36s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Psyduck toast notification */
.psyduck-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  background: #fff;
  border: 2px solid rgba(34, 197, 94, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: 340px;
  min-width: 220px;
  animation: toast-slide-in 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.psyduck-toast--warn { border-color: rgba(244, 168, 0, 0.55); }
.psyduck-toast--error { border-color: rgba(239, 68, 68, 0.45); }
.psyduck-toast img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex: 0 0 auto;
}
.psyduck-toast-copy { min-width: 0; }
.psyduck-toast-copy b {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--duck-ink);
  line-height: 1.3;
}
.psyduck-toast-copy span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--duck-muted);
  line-height: 1.4;
}
@keyframes toast-slide-in {
  from { transform: translateX(24px) scale(0.94); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes toast-slide-out {
  from { transform: translateX(0) scale(1); opacity: 1; }
  to { transform: translateX(24px) scale(0.94); opacity: 0; }
}
.psyduck-toast--out { animation: toast-slide-out 0.26s ease forwards; }

/* Celebration sticker pop */
@keyframes sticker-pop {
  0% { transform: scale(0) rotate(-15deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(5deg); opacity: 1; }
  80% { transform: scale(0.95) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.sticker-pop {
  animation: sticker-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* tool-card sticker hover pop */
.tool-card:hover .tool-card-thumb {
  animation: sticker-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--duck-cream); }
::-webkit-scrollbar-thumb { background: var(--duck-gold); border-radius: 99px; }

@media (max-width: 1180px) {
  .brand-badge { display: none; }
}

@media (max-width: 900px) {
  .hero, .split, .module-hero, .task-layout, .task-header { grid-template-columns: 1fr; }
  .main {
    width: calc(100vw - 32px);
    max-width: 1180px;
  }
  .hero h1 { max-width: 14ch; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .tool-rail a {
    gap: 6px;
    min-height: 48px;
    padding: 8px 10px;
    font-size: 12px;
  }
  .tool-rail img {
    width: 28px;
    height: 28px;
  }
  .tool-card {
    padding: 20px;
  }
  .tool-card-thumb {
    width: 78px;
  }
  .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticker-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .task-stepper, .task-choice-grid, .task-side-grid, .task-stats {
    grid-template-columns: 1fr;
  }
  .task-stepper,
  .name-stepper {
    padding: 10px;
    gap: 8px;
  }
  .task-step,
  .name-step {
    min-height: 56px;
  }
  .pdf-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pdf-page-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  }
  .workflow-band { grid-template-columns: 1fr; }
  .topbar {
    width: 100vw;
    max-width: 100vw;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: auto;
    gap: 10px 14px;
    padding: 10px 16px 8px;
    overflow: hidden;
  }
  .brandmark { width: auto; max-width: 100%; }
  .nav {
    grid-column: 1 / -1;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 1px 0 4px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 34px;
    padding: 7px 12px;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
  }
  .topbar-actions {
    width: auto;
    max-width: 100%;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  .task-switcher {
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .agent-panel { position: static; }
  .brand-copy strong { font-size: 24px; }
  .psyduck-photo { --size: 58px; }
  .module-hero-img { height: 180px; }
  .name-stepper,
  .name-input-grid,
  .name-file-only,
  .name-custom-upload,
  .name-config-grid,
  .name-stats {
    grid-template-columns: 1fr;
  }
  .name-mode-choice,
  .name-editor-grid { grid-template-columns: 1fr; }
  .name-editor-canvas-shell { position: static; }
  .name-panel { padding: 22px 16px; }
  .name-preview-tools { align-items: stretch; }
  .name-preview-tools .btn { justify-content: center; }
  .name-canvas-wrap { padding: 12px; }
  .name-canvas-wrap canvas { max-width: 480px; }
  .preview-split { grid-template-columns: 1fr; }
  .preview-split-controls { position: static; }
  .preview-split-controls .actions { flex-direction: row; flex-wrap: wrap; }
  .preview-split-controls .actions .btn { width: auto; flex: 1; min-width: 120px; }
}
@media (max-width: 620px) {
  .topbar {
    width: 100vw;
    max-width: 100vw;
    gap: 8px 10px;
    padding: 9px 12px 7px;
  }
  .brandmark {
    gap: 8px;
  }
  .brand-copy strong {
    font-size: 21px;
  }
  .brand-copy > span:not(.brand-author) { display: none; }
  .brand-copy .brand-author { font-size: 9px; margin-top: 1px; }
  .psyduck-photo { --size: 42px; }
  .nav {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    gap: 5px;
  }
  .nav a {
    min-height: 40px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
  }
  .topbar-actions {
    gap: 6px;
  }
  .language-switcher { padding: 2px; }
  .language-switcher button { min-width: 38px; min-height: 38px; padding: 4px 8px; }
  .topbar-home {
    min-height: 40px;
    padding: 6px 9px;
    font-size: 10px;
  }
  .name-canvas-wrap { padding: 10px; }
  .name-canvas-wrap canvas { max-width: 100%; }
  .name-custom-editor { padding: 12px; }
  .name-editor-head { flex-direction: column; }
  .name-editor-head > span { white-space: normal; }
  .name-editor-grid { gap: 12px; }
  .name-inline-controls { grid-template-columns: minmax(0, 1fr) 82px; }
  .name-rotation-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .name-canvas-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .name-table-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .name-editor-canvas-shell { padding: 10px; }
  .pdf-sort-item {
    align-items: stretch;
    flex-direction: column;
  }
  .pdf-sort-actions {
    justify-content: flex-end;
  }
  .pdf-sort-actions button {
    width: 42px;
    height: 40px;
  }
  .tool-grid { grid-template-columns: 1fr; gap: 12px; }
  .tool-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tool-rail a {
    min-height: 58px;
    padding: 8px 6px;
    flex-direction: column;
    font-size: 11px;
    line-height: 1.15;
  }
  .tool-rail img {
    width: 24px;
    height: 24px;
  }
  .tool-card {
    padding: 18px;
    gap: 12px;
    min-height: 250px;
  }
  .tool-card-thumb {
    width: 68px;
    height: 68px;
  }
  .tool-card h2 {
    min-height: 0;
    font-size: 18px;
    line-height: 1.2;
  }
  .tool-card > p { min-height: 0; }
  .tool-card .psy-state { display: none; }
  .tool-card .agent-link {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 11px;
  }
  .tool-arrow {
    width: 28px;
    height: 28px;
  }
  .agent-grid { grid-template-columns: 1fr; }
  .sticker-shelf { grid-template-columns: 1fr; }
  .main {
    width: calc(100vw - 24px);
    max-width: 1180px;
    padding-top: 18px;
  }
  .hero-dashboard { padding: 28px 18px; }
  .hero { overflow: hidden; }
  .hero h1 { font-size: 34px; max-width: 100%; }
  .hero p { font-size: 15px; }
  .hero-slogan { font-size: 13px; }
  .hero-kicker { max-width: 100%; }
  .hero-actions .agent-link,
  .hero-actions .home-button { width: 100%; }
  .hero-panel { min-height: 220px; }
  .hero-panel code { margin-left: 0; margin-top: 36px; font-size: 12px; }
  .panel { padding: 22px 16px; }
  .task-panel { padding: 22px 16px; }
  .section-head h2,
  .task-header-copy h1,
  .task-panel h2,
  .name-panel h2 {
    font-size: 21px;
  }
  .pdf-tool-grid {
    grid-template-columns: 1fr;
  }
  .pdf-inline-controls {
    grid-template-columns: 1fr;
  }
  .pdf-inline-controls input[type="color"] {
    width: 100%;
  }
  .pdf-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .local-note { grid-template-columns: 1fr; }
  .workflow-band article { grid-template-columns: 1fr; }
  .psy-state { align-items: flex-start; }
  .psy-state-img { width: 58px; height: 58px; }
  .name-row-2 { grid-template-columns: 1fr; }
  .name-panel-head { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar::before,
  .psyduck-photo img,
  .float-duck,
  .sticker-parade-track,
  .psy-state-img,
  .task-step.done,
  .name-step.done {
    animation: none !important;
  }
}

/* Redesign layer: bright yellow-white tool hub, light task workspaces, semantic tool accents. */
.home-page {
  --hub-bg: #fffdf5;
  --hub-surface: rgba(255, 255, 255, 0.78);
  --hub-surface-strong: rgba(255, 250, 224, 0.96);
  --hub-border: rgba(214, 163, 16, 0.24);
  --hub-ink: #2d260f;
  --hub-muted: #71684e;
  color-scheme: light;
  color: var(--hub-ink);
  background:
    radial-gradient(ellipse 100% 62% at 50% -12%, rgba(255, 215, 0, 0.28), transparent 60%),
    radial-gradient(ellipse 48% 40% at 94% 42%, rgba(255, 236, 148, 0.34), transparent 58%),
    radial-gradient(ellipse 48% 44% at 3% 78%, rgba(244, 168, 0, 0.14), transparent 56%),
    linear-gradient(145deg, #fffef9 0%, #fff9df 48%, #fffdf5 100%),
    var(--hub-bg);
}

.home-page .topbar {
  min-height: 66px;
  padding-block: 8px;
  background: rgba(13, 9, 3, 0.88);
  border-bottom: 1px solid var(--hub-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.home-page .topbar::before,
.home-page .topbar::after {
  opacity: 0.6;
}

.home-page .brand-copy strong {
  font-size: 22px;
}

.home-page .main {
  padding-top: 28px;
}

.home-page .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 4.5vw, 58px);
  border-color: rgba(214, 163, 16, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 218, 0.82));
  box-shadow: 0 18px 60px rgba(139, 99, 0, 0.13), inset 0 1px 0 #fff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.home-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 110% at 0% 65%, rgba(255, 215, 0, 0.14), transparent 68%);
}

.home-page .hero-copy,
.home-page .hero-panel {
  position: relative;
  z-index: 1;
}

.home-page .hero-kicker {
  color: #805000;
  border-color: rgba(214, 163, 16, 0.3);
  background: rgba(255, 247, 205, 0.88);
}

.home-page .hero h1 {
  color: var(--hub-ink);
  background: linear-gradient(140deg, #2d260f 0%, #765000 58%, var(--duck-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-page .hero p:not(.hero-slogan) {
  color: var(--hub-muted);
}

.home-page .hero-secondary {
  color: var(--hub-ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--hub-border);
}

.home-page .hero-secondary:hover {
  background: #fff7cf;
}

.home-page .hero-panel {
  border: 1px solid rgba(255, 215, 0, 0.15);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 215, 0, 0.3), transparent 29%),
    radial-gradient(circle at 15% 82%, rgba(74, 144, 217, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(34, 21, 3, 0.96), rgba(8, 6, 3, 0.94));
}

.home-page .tool-rail a {
  color: var(--hub-ink);
  border-color: var(--hub-border);
  background: var(--hub-surface);
  box-shadow: 0 8px 24px rgba(139, 99, 0, 0.08), inset 0 1px 0 #fff;
}

.home-page .tool-rail a:hover {
  color: #805000;
  border-color: rgba(255, 215, 0, 0.34);
  background: var(--hub-surface-strong);
}

.home-page .section-head h2,
.home-page .local-note h2 {
  color: var(--hub-ink);
}

.home-page .section-head p,
.home-page .local-note p {
  color: var(--hub-muted);
}

.home-page .tool-card {
  --tool-accent: var(--duck-blue);
  --tool-accent-rgb: 74, 144, 217;
  position: relative;
  isolation: isolate;
  min-height: 370px;
  color: var(--hub-ink);
  border-color: var(--hub-border);
  background:
    radial-gradient(circle at 94% 6%, rgba(var(--tool-accent-rgb), 0.12), transparent 35%),
    var(--hub-surface);
  box-shadow: 0 12px 38px rgba(139, 99, 0, 0.1), inset 0 1px 0 #fff;
}

.home-page .tool-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--tool-accent);
  opacity: 0.88;
}

.home-page .tool-card--invitation { --tool-accent: #4a90d9; --tool-accent-rgb: 74, 144, 217; }
.home-page .tool-card--name-tags { --tool-accent: #9b70d9; --tool-accent-rgb: 155, 112, 217; }
.home-page .tool-card--pdf { --tool-accent: #f28b46; --tool-accent-rgb: 242, 139, 70; }
.home-page .tool-card--markdown { --tool-accent: #22b986; --tool-accent-rgb: 34, 185, 134; }
.home-page .tool-card--hacker { --tool-accent: #28aeca; --tool-accent-rgb: 40, 174, 202; }
.home-page .tool-card--attendance { --tool-accent: #f4a800; --tool-accent-rgb: 244, 168, 0; }
.home-page .tool-card--arcade { --tool-accent: #df5974; --tool-accent-rgb: 223, 89, 116; }

.home-page .tool-card:hover {
  border-color: rgba(var(--tool-accent-rgb), 0.58);
  box-shadow: 0 18px 54px rgba(139, 99, 0, 0.14), 0 0 34px rgba(var(--tool-accent-rgb), 0.1);
}

.home-page .tool-arrow {
  color: var(--tool-accent);
  border-color: rgba(var(--tool-accent-rgb), 0.3);
  background: rgba(var(--tool-accent-rgb), 0.12);
}

.home-page .tool-card:hover .tool-arrow {
  color: #fff;
  background: var(--tool-accent);
}

.tool-card-persona {
  display: inline-flex;
  width: fit-content;
  color: var(--tool-accent, var(--duck-blue-dark));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.home-page .tool-card > p {
  color: var(--hub-muted);
}

.home-page .tool-card .psy-state {
  color: var(--hub-ink);
  border-color: rgba(var(--tool-accent-rgb), 0.2);
  background: rgba(var(--tool-accent-rgb), 0.08);
  box-shadow: none;
}

.home-page .tool-card .psy-state p {
  color: var(--hub-muted);
}

.home-page .tag {
  color: var(--hub-muted);
  border-color: var(--hub-border);
  background: rgba(255, 248, 213, 0.72);
}

.home-page .local-note {
  border-color: rgba(74, 144, 217, 0.28);
  background:
    radial-gradient(circle at 4% 50%, rgba(74, 144, 217, 0.14), transparent 24%),
    var(--hub-surface);
  box-shadow: 0 12px 36px rgba(139, 99, 0, 0.1);
}

.home-page .footer {
  color: var(--hub-muted);
  border-top-color: var(--hub-border);
  background: rgba(255, 252, 237, 0.82);
}

@media (max-width: 620px) {
  .home-page .hero {
    padding: 28px 18px;
  }

  .home-page .tool-card {
    min-height: 270px;
  }
}

/* ============================================================
   Mascot enhancements — maximize Psyduck presence, purposeful
   ============================================================ */

/* Hero: large Psyduck avatar in copy area */
.hero-duck-avatar {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-duck-avatar img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  flex: 0 0 auto;
  animation: logo-headache 3s ease-in-out infinite, logo-glow 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 28px rgba(255, 215, 0, 0.50));
}
.hero-duck-avatar-copy {
  display: grid;
  gap: 3px;
}
.hero-duck-avatar-copy strong {
  font-size: 18px;
  font-weight: 900;
  color: var(--duck-yellow);
  line-height: 1.1;
}
.hero-duck-avatar-copy span {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.72;
}
.home-page .hero-duck-avatar-copy strong { color: #8a5700; }
.home-page .hero-duck-avatar-copy span   { color: var(--hub-muted); }

/* Hero panel: 5th accent sticker (top-right corner) */
.hero-sticker--accent {
  top: 6px;
  right: 10px;
  width: 64px;
  opacity: 0.82;
}
.float-duck--e { animation-duration: 3.5s; animation-delay: -1.9s; }

/* Section head mascot above section title */
.section-head-mascot {
  display: block;
  width: 66px;
  height: 66px;
  object-fit: contain;
  margin: 0 auto 14px;
  animation: duck-float 5s ease-in-out infinite;
  filter: drop-shadow(0 5px 14px rgba(255, 215, 0, 0.34));
}
.home-page .section-head-mascot {
  filter: drop-shadow(0 6px 18px rgba(255, 215, 0, 0.52));
}

/* Tool rail: mascot sticker-pop on hover */
.tool-rail a:hover img {
  animation: sticker-pop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Footer: flex layout with mascot */
.footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-mascot {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  animation: duck-float 6s ease-in-out infinite;
  opacity: 0.88;
}

/* Desktop: keep thumb at 96px; tablets/mobile use existing media query sizes */
@media (max-width: 900px) {
  .tool-card-thumb { width: 78px; height: 78px; }
  .hero-duck-avatar img { width: 88px; height: 88px; }
}
@media (max-width: 620px) {
  .tool-card-thumb { width: 68px; height: 68px; }
  .hero-duck-avatar img { width: 72px; height: 72px; }
  .section-head-mascot { width: 52px; height: 52px; margin-bottom: 10px; }
  .footer-mascot { width: 32px; height: 32px; }
}

/* ============================================================
   Motion & smart-UI layer — chuẩn hoá hoạt ảnh + tiện ích thông minh
   ============================================================ */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.18s;
  --dur-base: 0.28s;
  --dur-slow: 0.55s;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Scroll-reveal: class chỉ được JS gắn vào, không JS thì nội dung hiện bình thường */
.psy-reveal {
  opacity: 0;
  transform: translateY(20px);
}
.psy-reveal--in {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

/* Micro-interactions chuẩn cho nút và lựa chọn */
.btn:not(:disabled):active,
.agent-link:active,
.home-button:active,
.tool-rail a:active {
  transform: translateY(0) scale(0.98);
  transition-duration: var(--dur-fast);
}
.task-choice {
  transition:
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}
.task-choice:hover { transform: translateY(-2px); }

/* Nút tìm công cụ trên topbar */
.topbar-search {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 215, 0, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.topbar-search:hover {
  border-color: rgba(255, 215, 0, 0.52);
  background: rgba(255, 215, 0, 0.12);
  color: var(--duck-yellow);
}
.topbar-search kbd {
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  font: inherit;
  font-size: 10px;
}

/* Bảng tìm nhanh công cụ (Ctrl/Cmd + K) */
.psy-palette {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(16px, 12vh, 120px) 16px 16px;
}
.psy-palette[hidden] { display: none; }
.psy-palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 16, 0, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: psy-fade var(--dur-base) ease;
}
.psy-palette-panel {
  position: relative;
  width: min(560px, 100%);
  overflow: hidden;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 24px 80px rgba(28, 16, 0, 0.28), 0 4px 18px rgba(28, 16, 0, 0.14);
  animation: palette-pop var(--dur-base) var(--ease-spring);
}
@keyframes palette-pop {
  from { opacity: 0; transform: translateY(-14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.psy-palette-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--duck-border);
  background: linear-gradient(135deg, #fff, var(--duck-cream));
}
.psy-palette-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--duck-ink);
}
.psy-palette-search input:focus { outline: none; }
.psy-palette-search kbd {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid var(--duck-cream-2);
  border-radius: 7px;
  background: #fff;
  color: var(--duck-muted);
  font-size: 11px;
  font-weight: 800;
}
.psy-palette-list {
  max-height: min(50vh, 380px);
  overflow: auto;
  padding: 8px;
  display: grid;
  gap: 3px;
}
.psy-palette-label {
  padding: 8px 10px 4px;
  color: var(--duck-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.psy-palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  min-width: 0;
}
.psy-palette-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}
.psy-palette-item div {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.psy-palette-item b {
  font-size: 14px;
  color: var(--duck-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.psy-palette-item small {
  color: var(--duck-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.psy-palette-item kbd {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid var(--duck-cream-2);
  border-radius: 6px;
  background: var(--duck-cream);
  color: var(--duck-muted);
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
}
.psy-palette-item.active {
  border-color: rgba(244, 168, 0, 0.55);
  background: linear-gradient(135deg, #fff, var(--duck-cream));
  box-shadow: 0 3px 12px rgba(244, 168, 0, 0.14);
}
.psy-palette-item.active kbd { opacity: 1; }
.psy-palette-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px 16px;
  color: var(--duck-muted);
  font-size: 13px;
  text-align: center;
}
.psy-palette-empty img { width: 64px; height: 64px; object-fit: contain; }
.psy-palette-foot {
  padding: 9px 16px;
  border-top: 1px solid var(--duck-border);
  background: var(--duck-cream);
  color: var(--duck-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

/* Dùng gần đây trên trang chủ */
.recent-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  padding: 12px 16px;
  border: 1px solid var(--duck-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}
.recent-tools[hidden] { display: none; }
.recent-tools-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7a4a00;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.recent-tools-label img { width: 28px; height: 28px; object-fit: contain; }
.recent-tools a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--duck-cream-2);
  border-radius: 999px;
  background: var(--duck-cream);
  color: var(--duck-ink);
  font-size: 13px;
  font-weight: 800;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.recent-tools a img { width: 26px; height: 26px; object-fit: contain; }
.recent-tools a:hover {
  transform: translateY(-2px);
  border-color: var(--duck-gold);
  background: #fff;
}

/* Nút lên đầu trang */
.psy-top-btn {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #F4A800);
  color: #1C1000;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(244, 168, 0, 0.42);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-fast) ease;
}
.psy-top-btn.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.psy-top-btn:hover { box-shadow: 0 12px 32px rgba(244, 168, 0, 0.55); }

@media (max-width: 900px) {
  .topbar-search kbd,
  .topbar-search-label { display: none; }
  .topbar-search { min-width: 38px; justify-content: center; padding: 6px 10px; }
  .psy-top-btn { left: 14px; bottom: 14px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .psy-reveal,
  .psy-reveal--in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .psy-palette-panel,
  .psy-palette-backdrop,
  .psyduck-toast,
  .sticker-pop,
  .tool-card:hover .tool-card-thumb,
  .tool-rail a:hover img,
  .hero-duck-avatar img,
  .section-head-mascot,
  .footer-mascot,
  .local-note img {
    animation: none !important;
  }
}
