:root {
  --bg:#fff8ee;
  --surface:#fffcf7;
  --muted:#f4ebdd;
  --brown:#6b4028;
  --caramel:#d9a36f;
  --lavender:#a79aca;
  --ink:#33251e;
  --secondary:#705c4d;
  --line:#e9d8c6;
  --danger:#a13838;
  --radius:20px;
  font-family:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none;
  color-scheme:light;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,select,textarea {
  font:inherit;
  color:inherit;
}

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

button,a {
  touch-action:manipulation;
}

button {
  cursor:pointer;
}

a {
  color:inherit;
  text-decoration:none;
}

button:disabled {
  cursor:not-allowed;
  opacity:.48;
}

button {
  border:0;
}

p,h1,h2,h3 {
  margin:0;
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid var(--brown);
  outline-offset:4px;
}

h1:focus {
  outline:0;
}

img {
  display:block;
  max-width:100%;
}

svg {
  display:block;
  width:100%;
  height:100%;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

[hidden] {
  display:none!important;
}

.skip-link {
  position:fixed;
  top:-80px;
  left:20px;
  z-index:100;
  background:var(--brown);
  color:var(--bg);
  padding:16px;
  border-radius:12px;
}

.skip-link {
  opacity:0;
  pointer-events:none;
}

.skip-link:focus {
  top:12px;
  opacity:1;
  pointer-events:auto;
}

#main:focus {
  outline:none;
}

.muted {
  color:var(--secondary);
}

.prototype-bar {
  min-height:33px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  background:#eee7dc;
  color:var(--secondary);
  font-size:12px;
  font-weight:500;
  padding:7px 16px;
  text-align:center;
}

.status-dot {
  width:6px;
  height:6px;
  background:var(--brown);
  border-radius:50%;
  flex-shrink:0;
}

.site-header {
  max-width:1280px;
  min-height:100px;
  margin:auto;
  padding:24px 40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.wordmark {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:850;
  font-size:27px;
  letter-spacing:-1.5px;
  color:var(--brown);
  flex-shrink:0;
}

.brand-symbol {
  width:35px;
  height:35px;
  transform:rotate(-10deg);
}

.brand-caption {
  font-size:12px;
  font-weight:500;
  color:var(--secondary);
  letter-spacing:0;
  margin-left:12px;
  padding-left:18px;
  border-left:1px solid var(--line);
}

.site-header {
  flex-wrap:wrap;
}

.site-header nav {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:26px;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
}

.site-header nav a {
  min-height:44px;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--secondary);
}

.site-header nav a[aria-current=page] {
  color:var(--brown);
}

.nav-dashboard {
  border-bottom:1px solid var(--line);
}

.storage-warning {
  max-width:1200px;
  margin:12px auto;
  padding:14px 20px;
  border:1px solid var(--danger);
  color:var(--danger);
  border-radius:12px;
}

.site-footer {
  max-width:1200px;
  margin:0 auto;
  padding:27px 0;
  border-top:1px solid var(--line);
  font-size:12px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:var(--secondary);
}

.site-footer>span:first-child {
  font-weight:700;
}

.site-footer .muted {
  font-weight:400;
  margin-left:10px;
}

.footer-dot {
  margin:0 10px;
}

.eyebrow {
  font-size:12px;
  font-weight:700;
  letter-spacing:1.4px;
  color:var(--secondary);
}

.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  min-height:52px;
  padding:14px 24px;
  border-radius:12px;
  font-size:16px;
  font-weight:650;
  transition:background .18s,transform .18s;
  line-height:1.5;
}

.button:not(:disabled):active {
  transform:translateY(1px);
}

.primary {
  background:var(--brown);
  color:var(--bg);
  border:1px solid var(--brown);
}

.primary:hover {
  background:#55311f;
}

.secondary {
  background:transparent;
  border:1px solid #b69b86;
  color:var(--brown);
}

.secondary:hover {
  background:var(--muted);
}

.danger {
  background:var(--danger);
  color:#fff;
}

.text-button {
  min-height:44px;
  background:none;
  color:var(--secondary);
  font-size:13px;
  padding:10px 4px;
  text-decoration:underline;
  text-underline-offset:4px;
}

.microcopy {
  font-size:13px;
  color:var(--secondary);
  line-height:1.7;
}

.landing {
  max-width:1200px;
  margin:auto;
}

.hero {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  align-items:center;
  gap:74px;
  padding:40px 32px 82px;
}

.hero-copy {
  padding-top:8px;
}

.hero-copy>.eyebrow {
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:500;
  letter-spacing:0;
  font-size:14px;
}

.hero-copy>.eyebrow>span {
  height:7px;
  width:7px;
  background:var(--caramel);
  border-radius:50%;
}

.hero h1 {
  font-size:47px;
  font-weight:750;
  line-height:1.4;
  letter-spacing:-2.6px;
  margin:22px 0 24px;
  word-break:keep-all;
}

.title-accent {
  color:var(--brown);
  position:relative;
}

.title-accent:after {
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:8px;
  background:var(--caramel);
  opacity:.45;
  z-index:-1;
  border-radius:8px;
  transform:rotate(-2deg);
}

.hero-description {
  font-size:15px;
  line-height:1.95;
  color:var(--secondary);
  word-break:keep-all;
}

.hero-meta {
  display:flex;
  align-items:center;
  gap:12px;
  margin:28px 0 18px;
  font-size:12px;
  color:var(--secondary);
}

.hero-meta i {
  display:block;
  width:3px;
  height:3px;
  background:#b69b86;
  border-radius:50%;
}

.hero-cta {
  min-width:264px;
  justify-content:space-between;
  padding:17px 24px;
  min-height:58px;
}

.hero-copy>.microcopy {
  margin-top:12px;
  font-size:12px;
}

.hero-visual {
  position:relative;
  padding:68px 12px 0 0;
  max-width:452px;
  width:100%;
  justify-self:end;
}

.photo-frame {
  position:relative;
  overflow:hidden;
  border-radius:24px;
  border:7px solid #f2e5d4;
  aspect-ratio:3/4;
  background:var(--muted);
}

.photo-frame img {
  width:100%;
  height:100%;
  object-fit:contain;
}

.photo-tag {
  position:absolute;
  left:22px;
  bottom:20px;
  background:rgba(255,248,238,.94);
  border-radius:30px;
  padding:8px 14px;
  font-size:11px;
  font-weight:600;
  color:var(--brown);
}

.speech {
  position:absolute;
  top:8px;
  left:-37px;
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:0 6px 24px #6b40280a;
  padding:16px 20px;
  border-radius:16px 16px 16px 2px;
  font-size:14px;
  transform:rotate(-5deg);
  z-index:1;
  white-space:nowrap;
}

.speech span {
  color:var(--brown);
  margin-left:12px;
  font-size:21px;
}

.maru-card {
  position:relative;
  margin:12px -13px 0 46px;
  padding:22px 26px;
  background:#f1e8f6;
  border-radius:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  border:1px solid #e0d4e8;
  transform:rotate(2deg);
}

.maru-card .eyebrow {
  font-size:10px;
  letter-spacing:2px;
  color:#6b577b;
}

.maru-card h2 {
  font-size:24px;
  margin-top:7px;
  letter-spacing:-1px;
}

.maru-card h2 span {
  font-size:13px;
  color:var(--secondary);
  font-weight:500;
  margin-left:10px;
  letter-spacing:0;
}

.maru-paw {
  width:38px;
  height:38px;
  color:#8a75a8;
  transform:rotate(14deg);
}

.photo-decoration {
  position:absolute;
  right:-28px;
  top:4px;
  color:var(--caramel);
  font-size:67px;
  font-weight:200;
  transform:rotate(15deg);
}

.welcome-strip {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--line);
  padding:30px 32px 32px;
}

.welcome-strip>div {
  padding:0 26px;
  border-right:1px solid var(--line);
}

.welcome-strip>div:first-child {
  padding-left:0;
}

.welcome-strip>div:last-child {
  border:0;
}

.strip-number {
  font-size:11px;
  letter-spacing:2px;
  color:var(--secondary);
}

.welcome-strip h2 {
  font-size:16px;
  font-weight:650;
  margin-top:9px;
}

.welcome-strip p {
  font-size:13px;
  color:var(--secondary);
  margin-top:7px;
}

.local-note {
  text-align:center;
  font-size:12px;
  color:var(--secondary);
  padding:18px 24px 32px;
  line-height:1.7;
}

.survey-shell {
  max-width:680px;
  margin:24px auto 60px;
}

.survey-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
  font-size:13px;
  color:var(--secondary);
}

.survey-top strong {
  font-size:19px;
  color:var(--brown);
  margin-right:4px;
}

.back-link {
  display:inline-flex;
  align-items:center;
  min-height:44px;
}

.survey-progress {
  display:block;
  appearance:none;
  width:100%;
  height:5px;
  border:0;
  background:var(--line);
  border-radius:99px;
  overflow:hidden;
}

.survey-progress::-webkit-progress-bar {
  background:var(--line);
}

.survey-progress::-webkit-progress-value {
  background:var(--brown);
  border-radius:99px;
  transition:width .18s;
}

.survey-progress::-moz-progress-bar {
  background:var(--brown);
}

.question-card {
  padding:36px 38px 16px;
  margin-top:24px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:0 8px 32px #6b402804;
}

.question-kicker {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  font-size:12px;
  color:var(--secondary);
  margin-bottom:20px;
}

.type-pill {
  font-size:11px;
  background:var(--muted);
  padding:6px 10px;
  border-radius:99px;
  white-space:nowrap;
}

.question-card h1 {
  font-size:27px;
  line-height:1.5;
  font-weight:700;
  letter-spacing:-1.1px;
  word-break:keep-all;
}

.question-help {
  font-size:14px;
  line-height:1.8;
  margin:14px 0 27px;
  color:var(--secondary);
  word-break:keep-all;
}

.choices {
  border:0;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
  min-width:0;
}

.choice {
  display:flex;
  gap:14px;
  align-items:center;
  position:relative;
  border:1px solid #b8a18e;
  border-radius:12px;
  min-height:62px;
  padding:16px 18px;
  cursor:pointer;
  background:#fffefa;
  transition:background .18s,border .18s;
  line-height:1.6;
}

.choice:hover {
  background:var(--bg);
  border-color:var(--brown);
}

.choice.selected {
  background:#f8eddf;
  border:2px solid var(--brown);
  padding:15px 17px;
}

.choice:has(input:focus-visible) {
  outline:3px solid var(--brown);
  outline-offset:3px;
}

.choice input {
  position:absolute;
  left:18px;
  top:20px;
  opacity:0;
  width:24px;
  height:24px;
  margin:0;
}

.choice-marker {
  height:22px;
  width:22px;
  min-width:22px;
  border:1.5px solid var(--secondary);
  border-radius:50%;
  display:grid;
  place-items:center;
  color:var(--bg);
  font-size:13px;
  line-height:1;
  font-weight:700;
}

.choice-marker.square {
  border-radius:6px;
}

.selected .choice-marker {
  background:var(--brown);
  border-color:var(--brown);
}

.choice-label {
  font-size:15px;
  flex:1;
  word-break:keep-all;
}

.choice-letter {
  font-size:11px;
  color:#806b5a;
  min-width:14px;
  text-align:right;
}

.other-field {
  margin-top:20px;
}

.other-field>label {
  font-size:14px;
  font-weight:600;
  display:block;
  margin-bottom:10px;
}

.other-field>label span {
  font-size:12px;
  font-weight:400;
  color:var(--secondary);
  margin-left:8px;
}

textarea {
  width:100%;
  min-width:0;
  resize:vertical;
  border:1px solid var(--secondary);
  border-radius:12px;
  background:#fffefa;
  padding:17px;
  line-height:1.8;
  font-size:16px;
  min-height:120px;
}

textarea::placeholder {
  color:var(--secondary);
}

.textarea-meta {
  display:flex;
  justify-content:space-between;
  gap:14px;
  font-size:12px;
  color:var(--secondary);
  line-height:1.8;
  margin-top:10px;
}

.textarea-meta>span:last-child {
  white-space:nowrap;
}

.error-message {
  font-size:14px;
  line-height:1.6;
  color:var(--danger);
  min-height:22px;
  margin:14px 0 0;
}

.survey-actions {
  display:grid;
  grid-template-columns:112px 1fr;
  gap:12px;
  position:relative;
  background:var(--surface);
  padding:16px 0 4px;
  z-index:2;
}

.survey-actions .primary {
  justify-content:space-between;
}

.survey-reassurance {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:24px;
  color:var(--secondary);
  font-size:13px;
  line-height:1.7;
}

.survey-reassurance small {
  font-size:11px;
}

.tiny-paw {
  display:inline-block;
  width:26px;
  height:26px;
  color:var(--brown);
  flex-shrink:0;
}

.done-page {
  max-width:580px;
  margin:36px auto 80px;
  text-align:center;
}

.thank-you-gallery {
  display:grid;
  gap:16px;
  width:min(100%, 560px);
  margin:0 auto 30px;
}

.thank-you-gallery figure {
  margin:0;
}

.thank-you-gallery img {
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}

.done-page h1 {
  font-size:38px;
  line-height:1.45;
  letter-spacing:-1.6px;
  margin:14px 0 20px;
}

.done-description {
  font-size:15px;
  line-height:1.9;
  color:var(--secondary);
}

.your-choice {
  margin:28px 0;
  padding:24px;
  background:#f2eaf7;
  border:1px solid #ded2e8;
  border-radius:20px;
}

.your-choice p {
  font-size:16px;
  line-height:1.7;
  margin-top:12px;
}

.done-actions {
  display:grid;
  gap:12px;
  margin-bottom:20px;
}

body[data-page=dashboard] {
  background:#fcf8f2;
}

.dashboard-shell {
  max-width:1280px;
  padding:28px 40px 70px;
  margin:0 auto;
  display:grid;
  grid-template-columns:178px minmax(0,1fr);
  gap:42px;
}

.dashboard-sidebar {
  position:sticky;
  top:30px;
  align-self:start;
  padding-top:8px;
}

.dashboard-sidebar .eyebrow {
  font-size:10px;
  letter-spacing:1.8px;
}

.dashboard-sidebar h2 {
  font-size:17px;
  margin:12px 0 28px;
  letter-spacing:-.6px;
}

.dashboard-sidebar nav {
  display:grid;
  gap:7px;
}

.dashboard-sidebar nav button {
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 12px;
  min-height:48px;
  background:transparent;
  border-radius:10px;
  color:var(--secondary);
  font-size:10px;
  text-align:left;
}

.dashboard-sidebar nav button span {
  font-size:13px;
}

.dashboard-sidebar nav button:hover,.dashboard-sidebar nav button.active {
  color:var(--brown);
  background:#f0e6d9;
}

.sidebar-note {
  margin-top:50px;
  padding:22px 16px;
  background:#efe8f4;
  border-radius:16px;
}

.sidebar-note p {
  font-size:15px;
  line-height:1.7;
  margin:12px 0;
  color:#544464;
}

.sidebar-note small {
  font-size:11px;
  color:#675775;
}

.dashboard-main {
  min-width:0;
}

.dashboard-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:30px;
}

.dashboard-heading h1 {
  font-size:34px;
  line-height:1.45;
  letter-spacing:-1.6px;
  margin-top:10px;
}

.dashboard-heading .eyebrow {
  font-size:11px;
  letter-spacing:1px;
}

.export-button {
  font-size:12px;
  min-height:43px;
  padding:10px 16px;
  white-space:nowrap;
}

.data-notice {
  display:flex;
  align-items:center;
  gap:12px;
  background:#efe9f5;
  border:1px solid #e0d6eb;
  border-radius:14px;
  padding:18px 20px;
  color:#554365;
}

.notice-icon {
  border:1px solid #77628b;
  border-radius:50%;
  width:20px;
  height:20px;
  text-align:center;
  font-family:serif;
  font-size:14px;
  flex-shrink:0;
}

.data-notice strong {
  font-size:13px;
  font-weight:650;
}

.data-notice p {
  font-size:11px;
  line-height:1.8;
  margin-top:4px;
}

.data-tag {
  font-size:10px;
  background:#e1d6eb;
  padding:6px 9px;
  border-radius:6px;
  white-space:nowrap;
  margin-left:auto;
}

.dashboard-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin:22px 0 20px;
}

.segmented {
  display:flex;
  background:#eee7dd;
  border-radius:10px;
  padding:4px;
  gap:3px;
}

.segmented button {
  font-size:12px;
  padding:10px 14px;
  border-radius:7px;
  background:transparent;
  color:var(--secondary);
  min-height:42px;
}

.segmented button[aria-pressed=true] {
  background:var(--surface);
  box-shadow:0 1px 4px #33251e0a;
  color:var(--brown);
  font-weight:650;
}

.segmented button span {
  font-size:10px;
  background:#eee7dd;
  padding:2px 5px;
  border-radius:4px;
  margin-left:5px;
}

.filters {
  display:grid;
  grid-template-columns:1fr 1fr 1.7fr auto;
  gap:12px;
  padding:17px 18px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
}

.filter {
  display:grid;
  gap:7px;
  min-width:0;
}

.filter>span {
  font-size:10px;
  color:var(--secondary);
}

.filter select {
  font-size:12px;
  width:100%;
  min-height:42px;
  padding:9px 30px 9px 10px;
  border:1px solid #ac9480;
  background:#fffefa;
  border-radius:7px;
  text-overflow:ellipsis;
}

.filter-reset {
  align-self:end;
  font-size:11px;
  white-space:nowrap;
  padding-left:8px;
}

.dash-section {
  margin-top:34px;
  scroll-margin-top:20px;
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.section-heading h2 {
  font-size:18px;
  font-weight:700;
  letter-spacing:-.5px;
}

.section-heading>span {
  font-size:11px;
  color:var(--secondary);
}

.overview-stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin-bottom:18px;
  padding:21px 0;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
}

.overview-stats>div {
  padding:0 21px;
  border-right:1px solid var(--line);
}

.overview-stats>div:last-child {
  border:0;
}

.overview-stats span {
  display:block;
  font-size:11px;
  color:var(--secondary);
}

.overview-stats strong {
  display:block;
  font-size:28px;
  font-weight:650;
  letter-spacing:-1px;
  margin-top:8px;
}

.overview-stats small {
  font-size:11px;
  font-weight:400;
  letter-spacing:0;
  margin-left:5px;
}

.metric-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:13px;
}

.metric-card {
  border:1px solid var(--line);
  border-radius:17px;
  padding:20px;
  background:#f8eddf;
}

.metric-card.lavender {
  background:#eee8f4;
  border-color:#ddd2e7;
}

.metric-card.rose {
  background:#f5eae4;
  border-color:#e9d9ce;
}

.metric-icon {
  width:25px;
  height:25px;
  color:var(--brown);
  margin-bottom:15px;
  display:grid;
  place-items:center;
  font-size:25px;
}

.lavender .metric-icon {
  color:#6d5688;
}

.metric-card h3 {
  font-size:12px;
  line-height:1.7;
  font-weight:550;
  min-height:40px;
  word-break:keep-all;
}

.metric-value {
  font-size:38px;
  font-weight:650;
  letter-spacing:-1.8px;
  color:var(--brown);
  line-height:1.35;
  margin-top:6px;
}

.metric-value span {
  font-size:20px;
  margin-left:3px;
}

.metric-card p {
  font-size:11px;
  margin-top:5px;
  color:var(--secondary);
}

.metric-card>small {
  display:block;
  font-size:10px;
  line-height:1.8;
  margin-top:16px;
  color:var(--secondary);
}

.chart-note {
  font-size:11px;
  line-height:1.8;
  color:var(--secondary);
  margin-top:13px;
}

.details-card {
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
}

.details-card>summary {
  cursor:pointer;
  padding:17px 18px;
  font-size:13px;
  line-height:1.7;
}

.details-card>summary span {
  font-size:11px;
  color:var(--secondary);
  margin-left:12px;
}

.demographics {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  padding:12px 20px 24px;
}

.demographics h3 {
  font-size:13px;
  margin-bottom:22px;
}

.demographics .bar-label {
  font-size:11px;
}

.two-columns {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.chart-card {
  border:1px solid var(--line);
  border-radius:17px;
  background:var(--surface);
  padding:23px 22px;
  min-width:0;
}

.card-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:26px;
}

.card-heading h3 {
  font-size:15px;
  font-weight:650;
  letter-spacing:-.5px;
}

.card-heading>span {
  font-size:10px;
  color:var(--secondary);
}

.count-badge {
  background:var(--muted);
  border-radius:6px;
  padding:5px 9px;
}

.bar-chart {
  display:grid;
  gap:20px;
}

.bar-label {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  font-size:12px;
  line-height:1.65;
  margin-bottom:8px;
  word-break:keep-all;
}

.bar-label>span:last-child {
  white-space:nowrap;
  display:flex;
  align-items:center;
  gap:6px;
  flex-shrink:0;
}

.bar-label strong {
  font-size:12px;
  font-weight:650;
}

.bar-label small {
  font-size:10px;
  color:var(--secondary);
}

.bar-track {
  height:7px;
  background:#f0e9df;
  border-radius:99px;
  overflow:hidden;
}

.bar-fill {
  display:block;
  height:100%;
  background:#ac8264;
  border-radius:99px;
}

.bar-dog {
  background:var(--caramel);
}

.bar-social {
  background:var(--lavender);
}

.bar-dating {
  background:var(--brown);
}

.bar-none,.bar-unsure {
  background:#ae9d8b;
}

.difficulty-note {
  background:var(--muted);
  border-radius:10px;
  padding:14px;
  margin-top:25px;
  font-size:11px;
  line-height:1.7;
}

.difficulty-note>span {
  display:block;
  margin-top:5px;
  font-size:18px;
  font-weight:600;
}

.difficulty-note>span small {
  font-size:11px;
  font-weight:400;
}

.difficulty-note p {
  color:var(--secondary);
  font-size:10px;
  margin-top:7px;
}

.opinion-toolbar {
  display:flex;
  gap:12px;
  align-items:flex-end;
}

.search-field {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:43px;
  border:1px solid #ac9480;
  background:var(--surface);
  padding:0 13px;
  border-radius:9px;
  flex:1;
}

.search-field>span:not(.sr-only) {
  font-size:26px;
  color:var(--secondary);
}

.search-field input {
  background:none;
  border:0;
  min-height:42px;
  width:100%;
  min-width:0;
  font-size:13px;
}

.opinion-toolbar .filter {
  min-width:160px;
}

.opinion-counts {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  font-size:11px;
  color:var(--secondary);
  margin:18px 0;
}

.opinion-counts strong {
  font-weight:600;
  color:var(--ink);
  margin-left:3px;
}

.matched-count {
  margin-left:auto;
}

.opinion-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.opinion-card {
  padding:20px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  min-width:0;
}

.opinion-card>div {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-size:10px;
  color:var(--secondary);
}

.opinion-category {
  background:var(--muted);
  border-radius:5px;
  padding:4px 7px;
}

.opinion-card p {
  font-size:13px;
  line-height:1.8;
  margin:16px 0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.opinion-card>small {
  font-size:10px;
  color:var(--secondary);
}

.load-more {
  display:flex;
  margin:20px auto 0;
  min-height:43px;
  font-size:12px;
}

.empty-inline {
  grid-column:1/-1;
  text-align:center;
  padding:35px 15px;
  font-size:13px;
  color:var(--secondary);
  border:1px dashed #b69b86;
  border-radius:12px;
}

.insight-intro {
  font-size:12px;
  line-height:1.9;
  color:var(--secondary);
  margin-bottom:18px;
}

.insight-card {
  background:#f3eadc;
  border:1px solid #dfd0bc;
  border-radius:16px;
  padding:24px;
}

.insight-card .eyebrow {
  font-size:10px;
  letter-spacing:1px;
}

.insight-card h3 {
  font-size:17px;
  line-height:1.6;
  margin:14px 0 8px;
  letter-spacing:-.5px;
}

.insight-card h3 small {
  font-size:10px;
  font-weight:500;
  display:inline-block;
  padding:2px 5px;
  border-radius:4px;
  background:#e4d8c8;
  white-space:nowrap;
  vertical-align:middle;
}

.evidence {
  font-size:11px;
  color:var(--brown);
}

.insight-card p {
  font-size:12px;
  line-height:1.9;
  margin-top:10px;
  color:var(--secondary);
}

.small-sample {
  display:block;
  margin-top:14px;
  font-size:11px;
  color:var(--brown);
}

.next-note {
  background:#efe8f4;
  border:1px solid #ddd2e7;
  border-radius:14px;
  padding:23px;
  margin-top:16px;
  color:#5d4d6c;
}

.next-note strong {
  font-size:13px;
}

.next-note p {
  font-size:13px;
  line-height:1.8;
  margin-top:9px;
}

.next-note>span {
  display:block;
  font-size:11px;
  line-height:1.8;
  margin-top:7px;
}

.empty-state {
  text-align:center;
  padding:36px 20px;
  background:var(--surface);
  border:1px dashed #b69b86;
  border-radius:16px;
  margin-bottom:20px;
}

.empty-paw {
  display:block;
  width:38px;
  height:38px;
  color:var(--caramel);
  margin:0 auto 16px;
}

.empty-state h3 {
  font-size:17px;
}

.empty-state p {
  font-size:13px;
  color:var(--secondary);
  margin:10px 0 20px;
}

.empty-state .button {
  font-size:13px;
  min-height:45px;
}

dialog {
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--surface);
  color:var(--ink);
  padding:30px;
  max-width:460px;
  width:calc(100% - 32px);
  box-shadow:0 20px 80px #33251e26;
}

dialog::backdrop {
  background:#33251e60;
}

dialog h2 {
  font-size:22px;
  line-height:1.5;
  margin:14px 0;
}

dialog p {
  font-size:14px;
  line-height:1.9;
  color:var(--secondary);
}

.dialog-actions {
  display:flex;
  gap:10px;
  margin-top:26px;
}

.dialog-actions>.button {
  flex:1;
  font-size:14px;
  padding:12px;
}

@media(min-width:1400px) {
  .hero {
    padding-top:64px;
    padding-bottom:100px;
    gap:100px;
  }
  .hero h1 {
    font-size:51px;
  }
  .hero-visual {
    max-width:470px;
  }
}

@media(max-width:1100px) {
  .site-header {
    padding:22px 28px;
  }
  .site-footer {
    margin:0 28px;
  }
  .hero {
    gap:42px;
    padding:35px 40px 60px;
  }
  .hero h1 {
    font-size:39px;
  }
  .hero-visual {
    max-width:370px;
  }
  .brand-caption {
    display:none;
  }
  .speech {
    left:-15px;
    font-size:12px;
    padding:12px 15px;
  }
  .photo-decoration {
    right:-17px;
    font-size:50px;
  }
  .dashboard-shell {
    padding:24px 28px 60px;
    grid-template-columns:145px minmax(0,1fr);
    gap:24px;
  }
  .dashboard-sidebar h2 {
    font-size:15px;
  }
  .dashboard-sidebar nav button {
    padding:12px 6px;
    gap:8px;
  }
  .dashboard-sidebar nav button span {
    font-size:12px;
  }
  .metric-card {
    padding:16px;
  }
  .bar-label>span:last-child {
    display:block;
    text-align:right;
  }
  .bar-label small {
    display:block;
  }
  .filters {
    grid-template-columns:1fr 1fr;
  }
  .filter-reset {
    justify-self:end;
  }
  .demographics {
    grid-template-columns:1fr;
    gap:30px;
  }
  .chart-card {
    padding:20px 17px;
  }
  .card-heading {
    align-items:flex-start;
  }
  .dashboard-heading h1 {
    font-size:30px;
  }
}

@media(max-width:767px) {
  .site-header {
    min-height:80px;
    padding:17px 20px;
    gap:16px;
  }
  .wordmark {
    font-size:24px;
    gap:8px;
  }
  .brand-symbol {
    height:29px;
    width:29px;
  }
  .site-header nav {
    gap:16px;
    font-size:12px;
  }
  .nav-dashboard {
    gap:5px!important;
  }
  .site-footer {
    margin:0 20px;
    padding:24px 0;
    flex-direction:column;
    gap:8px;
    font-size:11px;
  }
  .hero {
    display:flex;
    flex-direction:column-reverse;
    gap:38px;
    padding:24px 26px 36px;
  }
  .hero-visual {
    width:75%;
    max-width:310px;
    padding:50px 8px 0 0;
    align-self:center;
  }
  .photo-frame {
    border-width:5px;
    aspect-ratio:3/4;
  }
  .speech {
    top:0;
    left:-28px;
    font-size:11px;
    padding:9px 13px;
  }
  .speech span {
    font-size:17px;
    margin-left:5px;
  }
  .photo-tag {
    font-size:9px;
    padding:6px 10px;
    left:15px;
    bottom:19px;
  }
  .maru-card {
    padding:14px 18px;
    margin:10px -11px 0 25px;
    border-radius:13px;
    gap:16px;
  }
  .maru-card .eyebrow {
    font-size:8px;
    letter-spacing:1.5px;
  }
  .maru-card h2 {
    font-size:19px;
    margin-top:4px;
  }
  .maru-card h2 span {
    font-size:11px;
    margin-left:6px;
  }
  .maru-paw {
    width:27px;
    height:27px;
  }
  .photo-decoration {
    right:-14px;
    top:-4px;
    font-size:43px;
  }
  .hero-copy {
    width:100%;
    padding-top:0;
  }
  .hero-copy>.eyebrow {
    font-size:11px;
    gap:7px;
  }
  .hero h1 {
    font-size:32px;
    line-height:1.4;
    letter-spacing:-1.7px;
    margin:17px 0 19px;
  }
  .hero-description {
    font-size:13px;
    line-height:1.9;
  }
  .hero-description br:first-child {
    display:none;
  }
  .hero-meta {
    font-size:11px;
    gap:9px;
    margin:22px 0 15px;
  }
  .hero-cta {
    width:100%;
    min-height:56px;
    font-size:15px;
  }
  .hero-copy>.microcopy {
    font-size:11px;
    text-align:center;
  }
  .welcome-strip {
    grid-template-columns:1fr;
    padding:0 26px 10px;
    border:0;
  }
  .welcome-strip>div,.welcome-strip>div:first-child {
    padding:20px 0 20px 39px;
    border-right:0;
    border-top:1px solid var(--line);
    position:relative;
  }
  .welcome-strip>div:last-child {
    border-top:1px solid var(--line);
  }
  .strip-number {
    position:absolute;
    left:0;
    top:25px;
    font-size:10px;
  }
  .welcome-strip h2 {
    margin-top:0;
    font-size:14px;
  }
  .welcome-strip p {
    font-size:12px;
    margin-top:6px;
  }
  .local-note {
    font-size:10px;
    line-height:1.9;
    padding:10px 26px 30px;
  }
  .survey-shell {
    margin:10px 20px 40px;
  }
  .question-card {
    padding:25px 20px 15px;
    border-radius:18px;
    margin-top:20px;
  }
  .question-card h1 {
    font-size:23px;
    line-height:1.5;
    letter-spacing:-.8px;
  }
  .question-kicker {
    font-size:10px;
    gap:8px;
    margin-bottom:17px;
  }
  .type-pill {
    font-size:10px;
    padding:5px 8px;
  }
  .question-help {
    font-size:13px;
    margin:12px 0 23px;
  }
  .choice {
    padding:15px 14px;
    gap:12px;
    min-height:62px;
  }
  .choice.selected {
    padding:14px 13px;
  }
  .choice-label {
    font-size:14px;
  }
  .choice-letter {
    display:none;
  }
  .choice-marker {
    height:20px;
    width:20px;
    min-width:20px;
  }
  .survey-actions {
    grid-template-columns:92px 1fr;
    gap:10px;
    padding-top:14px;
    padding-bottom:max(4px,env(safe-area-inset-bottom));
  }
  .survey-actions .button {
    padding:12px 16px;
    font-size:14px;
  }
  .textarea-meta {
    flex-direction:column;
    gap:3px;
    font-size:11px;
  }
  .textarea-meta>span:last-child {
    align-self:flex-end;
  }
  .survey-reassurance {
    font-size:12px;
  }
  .survey-reassurance small {
    font-size:10px;
  }
  .done-page {
    margin:25px 24px 50px;
  }
  .done-page h1 {
    font-size:32px;
  }
  .done-description {
    font-size:14px;
  }
  .your-choice p {
    font-size:14px;
  }
  .done-actions .button {
    font-size:14px;
  }
  .dashboard-shell {
    padding:12px 20px 45px;
    display:block;
  }
  .dashboard-sidebar {
    position:static;
    padding:0;
    margin-bottom:24px;
  }
  .dashboard-sidebar>.eyebrow,.dashboard-sidebar>h2,.sidebar-note {
    display:none;
  }
  .dashboard-sidebar nav {
    display:flex;
    overflow-x:auto;
    gap:5px;
    padding-bottom:5px;
  }
  .dashboard-sidebar nav button {
    min-height:40px;
    padding:10px;
    white-space:nowrap;
  }
  .dashboard-sidebar nav button span {
    font-size:11px;
  }
  .dashboard-heading {
    margin-bottom:23px;
    align-items:flex-start;
    gap:10px;
  }
  .dashboard-heading h1 {
    font-size:27px;
    line-height:1.5;
    letter-spacing:-1px;
  }
  .dashboard-heading .eyebrow {
    font-size:10px;
  }
  .export-button {
    font-size:10px;
    padding:8px 10px;
    min-height:39px;
    gap:5px;
    margin-top:2px;
  }
  .data-notice {
    padding:15px 14px;
    align-items:flex-start;
    gap:10px;
  }
  .data-notice strong {
    font-size:12px;
    line-height:1.8;
  }
  .data-notice p {
    font-size:10px;
  }
  .data-tag {
    display:none;
  }
  .notice-icon {
    margin-top:3px;
  }
  .dashboard-toolbar {
    flex-wrap:wrap;
    gap:8px;
    margin:17px 0 13px;
  }
  .segmented {
    width:100%;
  }
  .segmented button {
    flex:1;
    font-size:12px;
    padding:10px 8px;
  }
  .dashboard-toolbar>.text-button {
    font-size:11px;
    margin-left:auto;
    min-height:32px;
    padding:4px;
  }
  .filters {
    padding:15px;
    gap:12px;
    grid-template-columns:1fr 1fr;
  }
  .filter select {
    font-size:12px;
    min-height:44px;
  }
  .filter:has(#filter-dog) {
    grid-column:1/-1;
  }
  .filter-reset {
    grid-column:2;
    min-height:32px;
    padding:0;
  }
  .dash-section {
    margin-top:28px;
  }
  .section-heading {
    display:block;
    margin-bottom:15px;
  }
  .section-heading h2 {
    font-size:17px;
    line-height:1.5;
  }
  .section-heading>span {
    display:block;
    margin-top:5px;
    font-size:10px;
  }
  .overview-stats {
    padding:17px 0;
    grid-template-columns:repeat(2,1fr);
    gap:20px 0;
  }
  .overview-stats>div {
    padding:0 18px;
  }
  .overview-stats>div:nth-child(2) {
    border:0;
  }
  .overview-stats span {
    font-size:10px;
  }
  .overview-stats strong {
    font-size:26px;
    margin-top:5px;
  }
  .metric-grid {
    grid-template-columns:1fr;
    gap:10px;
  }
  .metric-card {
    display:grid;
    grid-template-columns:30px 1fr auto;
    gap:3px 12px;
    padding:17px 18px;
    align-items:center;
  }
  .metric-icon {
    margin:0;
    grid-row:1/3;
    width:24px;
    height:24px;
  }
  .metric-card h3 {
    min-height:0;
    font-size:12px;
    grid-column:2;
    grid-row:1;
  }
  .metric-value {
    grid-column:3;
    grid-row:1/3;
    margin:0;
    font-size:30px;
  }
  .metric-value span {
    font-size:15px;
  }
  .metric-card p {
    grid-column:2;
    font-size:10px;
    margin-top:3px;
  }
  .metric-card>small {
    grid-column:2/4;
    font-size:9px;
    margin-top:6px;
  }
  .chart-note {
    font-size:10px;
    line-height:1.9;
  }
  .details-card>summary {
    font-size:12px;
    padding:15px;
  }
  .details-card>summary span {
    display:block;
    margin-left:0;
    font-size:10px;
    margin-top:3px;
  }
  .two-columns {
    grid-template-columns:1fr;
    gap:13px;
  }
  .chart-card {
    padding:22px 18px;
  }
  .card-heading h3 {
    font-size:14px;
  }
  .card-heading {
    margin-bottom:22px;
  }
  .bar-label {
    font-size:12px;
  }
  .bar-label>span:last-child {
    display:flex;
    gap:7px;
  }
  .bar-label small {
    display:inline;
  }
  .opinion-toolbar {
    align-items:stretch;
    flex-direction:column;
    gap:10px;
  }
  .opinion-toolbar .filter {
    grid-template-columns:64px 1fr;
    align-items:center;
  }
  .opinion-counts {
    gap:9px;
    font-size:10px;
  }
  .matched-count {
    width:100%;
    margin-left:0;
  }
  .opinion-grid {
    grid-template-columns:1fr;
  }
  .opinion-card {
    padding:18px;
  }
  .opinion-card p {
    font-size:13px;
  }
  .insight-card {
    padding:22px;
  }
  .insight-card h3 {
    font-size:16px;
  }
  .insight-card p {
    font-size:12px;
  }
  .next-note {
    padding:21px;
  }
  .next-note p {
    font-size:12px;
  }
  .insight-intro {
    font-size:11px;
  }
  .prototype-bar {
    font-size:10px;
    gap:5px;
  }
  .storage-warning {
    margin:10px 20px;
    font-size:12px;
  }
}

@media(max-width:359px) {
  .site-header {
    padding:15px 16px;
  }
  .wordmark {
    font-size:21px;
  }
  .brand-symbol {
    width:25px;
    height:25px;
  }
  .site-header nav {
    gap:9px;
    font-size:11px;
  }
  .hero {
    padding-left:20px;
    padding-right:20px;
  }
  .hero h1 {
    font-size:29px;
  }
  .survey-shell {
    margin-left:16px;
    margin-right:16px;
  }
  .question-card {
    padding:23px 16px 13px;
  }
  .question-kicker {
    flex-wrap:wrap;
  }
  .question-card h1 {
    font-size:22px;
  }
  .dashboard-shell {
    padding-left:16px;
    padding-right:16px;
  }
  .dashboard-heading {
    flex-direction:column;
  }
  .export-button {
    align-self:flex-end;
    margin-top:-12px;
  }
  .dialog-actions {
    flex-direction:column;
  }
}

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

@media print {
  .prototype-bar,.site-header nav,.dashboard-sidebar,.dashboard-toolbar,.filters,.export-button,.text-button,.site-footer {
    display:none;
  }
  .dashboard-shell {
    display:block;
    padding:0;
  }
  .chart-card,.metric-card,.insight-card {
    break-inside:avoid;
  }
  .data-notice {
    display:block;
  }
  .data-tag {
    display:block;
  }
}
