:root {
  color-scheme: light;
  --ink: #242424;
  --muted: #716c66;
  --paper: #fffdf7;
  --cream: #fff6dc;
  --yellow: #ffd166;
  --yellow-dark: #e5a52f;
  --pink: #f96d8f;
  --pink-soft: #ffe0e9;
  --blue: #5f9df7;
  --blue-soft: #e2efff;
  --jade: #55b89a;
  --jade-soft: #ddf5ed;
  --violet: #8869d6;
  --violet-soft: #ece5ff;
  --coral: #ef806f;
  --danger: #bd4338;
  --line: #e9dfcf;
  --shadow: 0 14px 36px rgba(74, 57, 33, .10);
  --shadow-small: 0 7px 18px rgba(74, 57, 33, .09);
  --radius: 24px;
  --radius-small: 14px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 5%, rgba(255, 209, 102, .35), transparent 26rem),
    radial-gradient(circle at 96% 15%, rgba(249, 109, 143, .14), transparent 23rem),
    #f9f5ec;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 12px; }

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--muted);
}
.boot-mark, .brand-mark, .login-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--ink);
}
.boot-mark { animation: bob 1.1s ease-in-out infinite alternate; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(109, 91, 61, .12);
  background: rgba(255, 253, 247, .91);
  backdrop-filter: blur(16px);
}
.header-inner {
  max-width: 1180px;
  min-height: 72px;
  margin: auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand-mark { width: 40px; height: 40px; border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.nav-links { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.nav-link, .text-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  text-decoration: none;
  color: #5d5851;
  cursor: pointer;
}
.nav-link:hover, .nav-link:focus-visible, .text-button:hover { background: var(--cream); color: var(--ink); }
.session-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding: 7px 8px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 13px;
}
.session-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 4px var(--jade-soft); }
.session-chip button { border: 0; background: transparent; cursor: pointer; color: var(--danger); }

.page-shell { max-width: 1180px; margin: 0 auto; padding: 34px 24px 64px; }
.narrow { max-width: 850px; }
.surface-card {
  border: 1px solid rgba(106, 86, 52, .13);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .94);
  box-shadow: var(--shadow-small);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 322px;
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: center;
  gap: 40px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .38), transparent 55%),
    var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 9px 9px 0 var(--ink);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .38);
}
.hero::before { width: 230px; height: 230px; right: -55px; top: -70px; }
.hero::after { width: 100px; height: 100px; left: 53%; bottom: -55px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 10px;
  color: #8e6121;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin-bottom: 18px; max-width: 680px; font-size: clamp(38px, 6vw, 68px); line-height: 1.04; letter-spacing: -.055em; }
.hero-lead { max-width: 670px; margin-bottom: 24px; color: #594a35; font-size: 18px; line-height: 1.75; }
.benefit-row { display: flex; flex-wrap: wrap; gap: 10px; }
.benefit-pill { padding: 9px 13px; border: 1px solid rgba(36, 36, 36, .3); border-radius: 999px; background: rgba(255,255,255,.5); font-size: 14px; font-weight: 700; }
.hero-visual { position: relative; z-index: 1; min-height: 220px; display: grid; place-items: center; }
.file-stack { position: relative; width: 230px; height: 190px; }
.file-sheet {
  position: absolute;
  width: 145px;
  height: 175px;
  padding: 22px 18px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
}
.file-sheet.one { left: 4px; top: 8px; transform: rotate(-9deg); background: var(--blue-soft); }
.file-sheet.two { right: 7px; top: 0; transform: rotate(9deg); background: var(--pink-soft); }
.file-sheet.three { left: 44px; top: 11px; transform: rotate(0); }
.file-type { font-size: 31px; font-weight: 950; }
.file-line { display: block; height: 8px; margin-top: 14px; border-radius: 9px; background: #d9d1c5; }
.file-line.short { width: 65%; }

.section-head { margin: 52px 0 20px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-head h2 { margin-bottom: 3px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; }
.section-head p { margin: 0; color: var(--muted); }
.category-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.category-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 17px;
  background: white;
  cursor: pointer;
  font-weight: 700;
}
.category-pill.active, .category-pill:hover { border-color: var(--ink); background: var(--ink); color: white; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-card {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 27px; }
.tool-icon { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); font-size: 20px; font-weight: 950; }
.tool-icon.jade { background: var(--jade-soft); }
.tool-icon.blue { background: var(--blue-soft); }
.tool-icon.coral { background: #ffe1db; }
.tool-icon.violet { background: var(--violet-soft); }
.tool-arrow { font-size: 29px; color: #8d877d; }
.tool-title { margin-bottom: 8px; font-size: 19px; font-weight: 900; }
.tool-description { margin: 0; color: var(--muted); line-height: 1.55; }

.privacy-strip { margin-top: 24px; padding: 20px 24px; display: flex; align-items: center; gap: 14px; color: #5d574f; }
.privacy-strip strong { color: var(--ink); }
.shield { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 13px; background: var(--jade-soft); color: #167456; font-weight: 900; }

.page-heading { margin-bottom: 24px; padding: 32px; }
.page-heading h1 { margin-bottom: 10px; font-size: clamp(32px, 5vw, 50px); letter-spacing: -.045em; }
.page-heading p { margin-bottom: 0; color: var(--muted); line-height: 1.7; }
.back-link { display: inline-flex; margin-bottom: 17px; color: #61584b; text-decoration: none; font-weight: 750; }
.back-link:hover { color: var(--pink); }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 20px; align-items: start; }
.panel { padding: 26px; }
.panel h2 { margin-bottom: 18px; font-size: 22px; }
.drop-zone {
  min-height: 164px;
  padding: 28px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  border: 2px dashed #cabb9f;
  border-radius: 20px;
  background: #fffaf0;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.drop-zone.dragover { border-color: var(--pink); background: var(--pink-soft); }
.drop-zone strong { font-size: 18px; }
.drop-zone span { color: var(--muted); font-size: 14px; }
.drop-icon { font-size: 33px; line-height: 1; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.file-list { margin-top: 16px; display: grid; gap: 9px; }
.file-row { padding: 12px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.file-badge { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--blue-soft); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.file-size { margin-top: 3px; color: var(--muted); font-size: 12px; }
.row-actions { display: flex; gap: 4px; }
.icon-button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: #f5f1e9; cursor: pointer; }
.icon-button:hover { background: var(--pink-soft); }

.form-stack { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label, .field-label { font-size: 13px; font-weight: 850; color: #5f584e; }
.field-hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.control, select, textarea {
  width: 100%;
  min-height: 45px;
  border: 1px solid #dcd2c2;
  border-radius: 12px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  outline: none;
}
.control:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(95, 157, 247, .17); }
textarea { min-height: 155px; resize: vertical; line-height: 1.65; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 5px; border-radius: 14px; background: #f2eee6; }
.segmented button { border: 0; border-radius: 10px; padding: 10px; background: transparent; cursor: pointer; }
.segmented button.active { background: white; box-shadow: 0 3px 10px rgba(50,40,20,.10); font-weight: 850; }
.range-line { display: grid; grid-template-columns: 1fr 48px; align-items: center; gap: 10px; }
input[type="range"] { accent-color: var(--pink); }
.check-line { display: flex; align-items: flex-start; gap: 10px; color: #514b43; line-height: 1.55; }
.check-line input { margin-top: 4px; accent-color: var(--pink); }

.media-preview { position: relative; overflow: hidden; min-height: 280px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 18px; background: #282828; touch-action: none; }
.media-preview img.media, .media-preview video { display: block; max-width: 100%; max-height: 460px; object-fit: contain; }
.watermark-preview { position: absolute; z-index: 2; max-width: 80%; padding: 5px 8px; color: white; font-weight: 850; cursor: grab; user-select: none; touch-action: none; text-shadow: 0 2px 4px rgba(0,0,0,.7); transform-origin: center; }
.watermark-preview.outline { -webkit-text-stroke: 1px #111; text-shadow: none; }
.watermark-preview.plain { text-shadow: none; }
.watermark-preview.pixel { font-family: ui-monospace, monospace; letter-spacing: .02em; }
.watermark-preview img { display: block; max-width: 180px; max-height: 130px; object-fit: contain; }
.pos-top-left { left: 4%; top: 5%; }
.pos-top-center { left: 50%; top: 5%; transform: translateX(-50%); }
.pos-top-right { right: 4%; top: 5%; }
.pos-middle-left { left: 4%; top: 50%; transform: translateY(-50%); }
.pos-center { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pos-middle-right { right: 4%; top: 50%; transform: translateY(-50%); }
.pos-bottom-left { left: 4%; bottom: 5%; }
.pos-bottom-center { left: 50%; bottom: 5%; transform: translateX(-50%); }
.pos-bottom-right { right: 4%; bottom: 5%; }

.primary-button, .secondary-button, .danger-button {
  min-height: 48px;
  border-radius: 13px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 850;
}
.primary-button { border: 2px solid var(--ink); background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); }
.primary-button:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--ink); }
.primary-button:disabled { cursor: not-allowed; opacity: .56; transform: none; box-shadow: none; }
.secondary-button { border: 1px solid var(--line); background: white; }
.danger-button { border: 1px solid #e6b7b1; background: #fff3f1; color: var(--danger); }
.full-button { width: 100%; }

.progress-card { padding: 30px; text-align: center; }
.status-orb { width: 74px; height: 74px; margin: 0 auto 18px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 24px; background: var(--blue-soft); box-shadow: 5px 5px 0 var(--ink); font-size: 30px; font-weight: 950; }
.status-orb.done { background: var(--jade-soft); }
.status-orb.failed { background: #ffe0dc; }
.progress-track { overflow: hidden; height: 12px; margin: 18px 0 10px; border-radius: 99px; background: #e7e0d6; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--yellow)); transition: width .3s ease; }
.muted { color: var(--muted); }
.error-box { padding: 13px 15px; border: 1px solid #efb8b1; border-radius: 12px; background: #fff0ee; color: #8f3028; line-height: 1.55; }
.success-box { padding: 15px; border: 1px solid #b8dfd2; border-radius: 13px; background: var(--jade-soft); color: #275f4d; }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.summary-card { padding: 22px; border-radius: 19px; }
.summary-card span { display: block; color: var(--muted); font-size: 13px; }
.summary-card strong { display: block; margin-top: 9px; font-size: 26px; }
.summary-card.income { background: var(--jade-soft); }
.summary-card.expense { background: var(--pink-soft); }
.summary-card.balance { background: var(--blue-soft); }
.records { margin-top: 20px; }
.record-row { padding: 15px 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 13px; align-items: center; border-bottom: 1px solid var(--line); }
.record-row:last-child { border-bottom: 0; }
.record-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; font-weight: 900; }
.record-dot.income { background: var(--jade-soft); color: #26725a; }
.record-dot.expense { background: var(--pink-soft); color: #a63854; }
.record-main { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; }
.record-meta { margin-top: 4px; color: var(--muted); font-size: 12px; }
.positive { color: #2c8065; }
.negative { color: #c04d60; }
.empty-state { padding: 30px; text-align: center; color: var(--muted); }

.exchange-result { margin: 18px 0; padding: 25px; border: 2px solid var(--ink); border-radius: 18px; background: var(--yellow); text-align: center; box-shadow: 5px 5px 0 var(--ink); }
.exchange-result strong { display: block; margin: 8px 0; font-size: clamp(34px, 7vw, 55px); letter-spacing: -.04em; }
.swap-button { align-self: end; min-height: 45px; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; font-size: 22px; }
.translation-result { margin-top: 18px; padding: 22px; border-radius: 16px; background: var(--blue-soft); white-space: pre-wrap; line-height: 1.75; }

.policy { padding: 32px; line-height: 1.8; }
.policy h2 { margin-top: 30px; margin-bottom: 8px; font-size: 20px; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { color: #59534c; }
.policy a { color: #315fa7; }
.callout { padding: 17px 19px; border-left: 4px solid var(--yellow-dark); border-radius: 0 13px 13px 0; background: var(--cream); color: #564c3e; line-height: 1.7; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1fr) minmax(380px, 520px); }
.login-art { position: relative; overflow: hidden; padding: 8vw; display: flex; flex-direction: column; justify-content: center; background: var(--yellow); border-right: 3px solid var(--ink); }
.login-art::after { content: ""; position: absolute; width: 370px; height: 370px; right: -140px; bottom: -130px; border: 3px solid var(--ink); border-radius: 50%; background: rgba(255,255,255,.25); }
.login-art h1 { margin: 25px 0 17px; max-width: 640px; font-size: clamp(44px, 7vw, 78px); line-height: 1; letter-spacing: -.06em; }
.login-art p { max-width: 620px; color: #5e4c32; font-size: 18px; line-height: 1.75; }
.login-panel { padding: 48px; display: grid; align-content: center; background: var(--paper); }
.login-panel h2 { margin-bottom: 10px; font-size: 30px; }
.login-reasons { margin: 22px 0; display: grid; gap: 10px; }
.reason { display: flex; gap: 10px; color: #5d574f; }
.reason b { color: var(--ink); }
.login-form { display: grid; gap: 16px; }
.login-form .control { min-height: 52px; }
.login-note { margin-top: 15px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; max-width: min(90vw, 500px); padding: 12px 18px; border-radius: 12px; background: #242424; color: white; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 18px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.food-heading { background: linear-gradient(135deg, var(--paper), #fff0c6); }
.food-category-row { margin-bottom: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.food-category { min-height: 48px; border: 1px solid var(--line); border-radius: 14px; background: white; cursor: pointer; font-weight: 850; }
.food-category:hover, .food-category.active { border: 2px solid var(--ink); background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.food-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 22px; align-items: stretch; }
.food-wheel-card, .food-result-panel { padding: 28px; }
.food-wheel-card { display: grid; place-items: center; background: linear-gradient(180deg, #fffdf7, #fff7e2); }
.wheel-stage { position: relative; width: min(430px, 78vw); height: min(430px, 78vw); display: grid; place-items: center; }
.food-wheel {
  position: relative;
  width: 400px;
  height: 400px;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  border: 7px solid var(--ink);
  border-radius: 50%;
  background: var(--wheel-gradient);
  box-shadow: 9px 10px 0 var(--ink), inset 0 0 0 5px rgba(255,255,255,.48);
  transition: transform 4.2s cubic-bezier(.12, .72, .08, 1);
}
.food-wheel::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(36,36,36,.32) 0deg 1deg, transparent 1deg 45deg); pointer-events: none; }
.wheel-pointer { position: absolute; z-index: 6; top: -3px; left: 50%; width: 0; height: 0; border-left: 21px solid transparent; border-right: 21px solid transparent; border-top: 48px solid var(--ink); transform: translateX(-50%); filter: drop-shadow(0 4px 0 rgba(255,255,255,.9)); }
.wheel-center { position: absolute; z-index: 4; left: 50%; top: 50%; width: 76px; height: 76px; display: grid; place-items: center; border: 5px solid var(--ink); border-radius: 50%; background: var(--paper); box-shadow: 4px 5px 0 var(--ink); transform: translate(-50%, -50%); font-size: 31px; font-weight: 950; }
.wheel-label { position: absolute; z-index: 2; left: 50%; top: 50%; width: 92px; text-align: center; font-size: 13px; font-weight: 900; line-height: 1.25; transform: translate(-50%, -50%) rotate(var(--label-angle)) translateY(-145px) rotate(calc(-1 * var(--label-angle))); transform-origin: center; }
.wheel-actions { width: min(420px, 100%); margin-top: 28px; display: grid; grid-template-columns: 1.4fr .8fr; gap: 12px; }
.spin-button { font-size: 18px; }
.food-result-panel h2 { margin-bottom: 8px; font-size: 30px; }
.food-result { min-height: 180px; margin: 24px 0; padding: 22px; display: grid; place-content: center; justify-items: center; border: 2px solid var(--ink); border-radius: 20px; background: var(--pink-soft); box-shadow: 5px 5px 0 var(--ink); text-align: center; }
.food-result span, .food-result small { color: #766a61; }
.food-result strong { margin: 11px 0; font-size: clamp(28px, 4vw, 43px); letter-spacing: -.04em; }
.candidate-list > span, .food-history > span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 800; }
.candidate-list > div { display: flex; flex-wrap: wrap; gap: 7px; }
.candidate-list b { padding: 7px 10px; border-radius: 999px; background: var(--cream); font-size: 12px; }
.food-history { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); }
.food-history > div { padding: 8px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px dashed var(--line); }
.food-history small { color: var(--muted); }

.edge-pet {
  position: fixed;
  z-index: 14;
  top: 51%;
  width: 104px;
  height: 114px;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 7px 5px rgba(67,52,79,.13));
}
.edge-pet-left { left: 12px; animation: pet-float-left 3.8s ease-in-out infinite; }
.edge-pet-right { right: 10px; animation: pet-float-right 4.1s ease-in-out infinite .45s; }
.edge-pet::after {
  content: attr(data-message);
  position: absolute;
  top: -38px;
  width: 160px;
  padding: 9px 11px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  opacity: 0;
  pointer-events: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  transform: translateY(8px) scale(.94);
  transition: .18s ease;
}
.edge-pet-left::after { left: 58px; }
.edge-pet-right::after { right: 58px; }
.edge-pet:hover::after, .edge-pet:focus-visible::after, .edge-pet.excited::after { opacity: 1; transform: translateY(0) scale(1); }
.edge-pet.excited .pixel-pet { animation: pet-excited .32s steps(2) 3; }
.pixel-pet { position: absolute; left: 22px; top: 30px; display: inline-block; width: 5px; height: 5px; margin: 0 55px 50px 0; background: transparent; transform: scale(1.28); transform-origin: center; image-rendering: pixelated; }
.pixel-cat { box-shadow:
  5px 0 0 #f96d8f,10px 0 0 #f96d8f,45px 0 0 #f96d8f,50px 0 0 #f96d8f,
  5px 5px 0 #f96d8f,10px 5px 0 #f96d8f,15px 5px 0 #f96d8f,40px 5px 0 #f96d8f,45px 5px 0 #f96d8f,50px 5px 0 #f96d8f,
  5px 10px 0 #f96d8f,10px 10px 0 #f96d8f,15px 10px 0 #f96d8f,20px 10px 0 #f96d8f,25px 10px 0 #f96d8f,30px 10px 0 #f96d8f,35px 10px 0 #f96d8f,40px 10px 0 #f96d8f,45px 10px 0 #f96d8f,50px 10px 0 #f96d8f,
  0 15px 0 #f96d8f,5px 15px 0 #f96d8f,10px 15px 0 #f96d8f,15px 15px 0 #43344f,20px 15px 0 #f96d8f,25px 15px 0 #f96d8f,30px 15px 0 #f96d8f,35px 15px 0 #f96d8f,40px 15px 0 #43344f,45px 15px 0 #f96d8f,50px 15px 0 #f96d8f,55px 15px 0 #f96d8f,
  0 20px 0 #f96d8f,5px 20px 0 #f96d8f,10px 20px 0 #f96d8f,15px 20px 0 #f96d8f,20px 20px 0 #f96d8f,25px 20px 0 #43344f,30px 20px 0 #43344f,35px 20px 0 #f96d8f,40px 20px 0 #f96d8f,45px 20px 0 #f96d8f,50px 20px 0 #f96d8f,55px 20px 0 #f96d8f,
  0 25px 0 #f96d8f,5px 25px 0 #ffb3c6,10px 25px 0 #ffb3c6,15px 25px 0 #f96d8f,20px 25px 0 #f96d8f,25px 25px 0 #f96d8f,30px 25px 0 #f96d8f,35px 25px 0 #f96d8f,40px 25px 0 #f96d8f,45px 25px 0 #ffb3c6,50px 25px 0 #ffb3c6,55px 25px 0 #f96d8f,
  0 30px 0 #f96d8f,5px 30px 0 #f96d8f,10px 30px 0 #f96d8f,15px 30px 0 #f96d8f,20px 30px 0 #f96d8f,25px 30px 0 #f96d8f,30px 30px 0 #f96d8f,35px 30px 0 #f96d8f,40px 30px 0 #f96d8f,45px 30px 0 #f96d8f,50px 30px 0 #f96d8f,55px 30px 0 #f96d8f,
  5px 35px 0 #f96d8f,10px 35px 0 #f96d8f,15px 35px 0 #f96d8f,20px 35px 0 #fff,25px 35px 0 #fff,30px 35px 0 #fff,35px 35px 0 #fff,40px 35px 0 #f96d8f,45px 35px 0 #f96d8f,50px 35px 0 #f96d8f,
  5px 40px 0 #f96d8f,10px 40px 0 #f96d8f,15px 40px 0 #f96d8f,20px 40px 0 #fff,25px 40px 0 #fff,30px 40px 0 #fff,35px 40px 0 #fff,40px 40px 0 #f96d8f,45px 40px 0 #f96d8f,50px 40px 0 #f96d8f,
  10px 45px 0 #43344f,15px 45px 0 #43344f,40px 45px 0 #43344f,45px 45px 0 #43344f;
}
.pixel-fox { box-shadow:
  5px 0 0 #ff9e7d,50px 0 0 #ff9e7d,5px 5px 0 #ff9e7d,10px 5px 0 #ff9e7d,45px 5px 0 #ff9e7d,50px 5px 0 #ff9e7d,
  5px 10px 0 #ff9e7d,10px 10px 0 #ff9e7d,15px 10px 0 #ff9e7d,40px 10px 0 #ff9e7d,45px 10px 0 #ff9e7d,50px 10px 0 #ff9e7d,
  5px 15px 0 #ff9e7d,10px 15px 0 #ff9e7d,15px 15px 0 #ff9e7d,20px 15px 0 #ff9e7d,25px 15px 0 #ff9e7d,30px 15px 0 #ff9e7d,35px 15px 0 #ff9e7d,40px 15px 0 #ff9e7d,45px 15px 0 #ff9e7d,50px 15px 0 #ff9e7d,
  0 20px 0 #ff9e7d,5px 20px 0 #ff9e7d,10px 20px 0 #ff9e7d,15px 20px 0 #43344f,20px 20px 0 #ff9e7d,25px 20px 0 #ff9e7d,30px 20px 0 #ff9e7d,35px 20px 0 #ff9e7d,40px 20px 0 #43344f,45px 20px 0 #ff9e7d,50px 20px 0 #ff9e7d,55px 20px 0 #ff9e7d,
  0 25px 0 #ff9e7d,5px 25px 0 #ffb3c6,10px 25px 0 #ffb3c6,15px 25px 0 #ff9e7d,20px 25px 0 #fff,25px 25px 0 #fff,30px 25px 0 #fff,35px 25px 0 #fff,40px 25px 0 #ff9e7d,45px 25px 0 #ffb3c6,50px 25px 0 #ffb3c6,55px 25px 0 #ff9e7d,
  0 30px 0 #ff9e7d,5px 30px 0 #ff9e7d,10px 30px 0 #ff9e7d,15px 30px 0 #fff,20px 30px 0 #fff,25px 30px 0 #43344f,30px 30px 0 #43344f,35px 30px 0 #fff,40px 30px 0 #fff,45px 30px 0 #ff9e7d,50px 30px 0 #ff9e7d,55px 30px 0 #ff9e7d,
  5px 35px 0 #ff9e7d,10px 35px 0 #ff9e7d,15px 35px 0 #ff9e7d,20px 35px 0 #fff,25px 35px 0 #fff,30px 35px 0 #fff,35px 35px 0 #fff,40px 35px 0 #ff9e7d,45px 35px 0 #ff9e7d,50px 35px 0 #ff9e7d,
  5px 40px 0 #ff9e7d,10px 40px 0 #ff9e7d,15px 40px 0 #ff9e7d,20px 40px 0 #fff,25px 40px 0 #fff,30px 40px 0 #fff,35px 40px 0 #fff,40px 40px 0 #ff9e7d,45px 40px 0 #ff9e7d,50px 40px 0 #ff9e7d,
  10px 45px 0 #43344f,15px 45px 0 #43344f,40px 45px 0 #43344f,45px 45px 0 #43344f;
}

@keyframes pet-float-left { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-15px) rotate(3deg); } }
@keyframes pet-float-right { 0%,100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-11px) rotate(-3deg); } }
@keyframes pet-excited { 0%,100% { transform: scale(1.28) rotate(0); } 50% { transform: scale(1.34) translateY(-8px) rotate(5deg); } }

@keyframes bob { to { transform: translateY(-8px) rotate(2deg); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 36px; }
  .hero-visual { display: none; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .workspace-grid { grid-template-columns: 1fr; }
  .food-layout { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { min-height: 35vh; border-right: 0; border-bottom: 3px solid var(--ink); }
  .login-art h1 { font-size: clamp(40px, 10vw, 62px); }
}

@media (max-width: 680px) {
  .header-inner { min-height: 64px; padding: 9px 15px; gap: 10px; }
  .brand-name { display: none; }
  .nav-links { gap: 0; overflow-x: auto; }
  .nav-link { padding: 9px 10px; font-size: 13px; }
  .session-chip span:not(.session-dot) { display: none; }
  .session-chip { padding-left: 9px; }
  .page-shell { padding: 22px 15px 50px; }
  .hero { min-height: 0; padding: 28px 23px; border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }
  .hero h1 { font-size: 39px; }
  .hero-lead { font-size: 16px; }
  .section-head { margin-top: 42px; align-items: flex-start; flex-direction: column; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 160px; }
  .privacy-strip { align-items: flex-start; }
  .page-heading, .panel, .policy { padding: 21px; }
  .two-cols { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
  .login-art { padding: 42px 25px; min-height: 300px; }
  .login-panel { padding: 35px 22px 50px; }
  .media-preview { min-height: 220px; }
  .food-category-row { grid-template-columns: 1fr 1fr; }
  .food-wheel-card, .food-result-panel { padding: 19px; }
  .wheel-stage { width: min(330px, 82vw); height: min(330px, 82vw); }
  .food-wheel { width: 312px; height: 312px; border-width: 6px; }
  .wheel-label { width: 76px; font-size: 11px; transform: translate(-50%, -50%) rotate(var(--label-angle)) translateY(-110px) rotate(calc(-1 * var(--label-angle))); }
  .wheel-center { width: 62px; height: 62px; font-size: 25px; }
  .wheel-actions { grid-template-columns: 1fr; }
}

@media (max-width: 1280px) {
  .edge-pet { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
