:root {
  color-scheme: light;
  --ink: #123227;
  --muted: #42584c;
  --line: #c7ddbd;
  --paper: #fffbea;
  --card: #fff;
  --green: #00753c;
  --green-dark: #004d28;
  --green-pale: #edf8e7;
  --yellow: #ffdb2e;
  --blue: #154bc2;
  --blue-pale: #edf3ff;
  --display: 'Arial Black', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 95% 3%, rgba(219, 229, 210, .45), transparent 25rem), var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
button, a, input { -webkit-tap-highlight-color: rgba(73, 106, 79, .14); }
button, a, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #6e8e66; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }

.page-shell {
  width: 100%;
  max-width: 1044px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: env(safe-area-inset-bottom);
}
.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid rgba(38, 52, 38, .08);
}
.brand { min-height: 44px; display: inline-flex; gap: 9px; align-items: center; flex-shrink: 0; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 17px; font-weight: 500; }
.privacy-chip { display: inline-flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid #dce4d8; border-radius: 99px; background: rgba(255, 255, 252, .8); color: #52624f; font-size: 11px; font-weight: 600; line-height: 1.4; }
.privacy-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #6b946c; box-shadow: 0 0 0 3px #e7efe4; }
.privacy-detail { display: none; }

.intro { max-width: 740px; padding: 32px 0 26px; }
.eyebrow, .step-label { margin: 0 0 13px; color: var(--green); font-size: 10px; line-height: 1.5; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: flex; gap: 9px; align-items: center; }
.eyebrow::before { content: ''; width: 20px; height: 1px; flex: 0 0 20px; background: #789477; }
h1 { margin-bottom: 18px; font-family: var(--display); font-size: clamp(2.15rem, 10.5vw, 2.85rem); font-weight: 500; line-height: 1.02; letter-spacing: -.055em; overflow-wrap: anywhere; }
h1 > span, h1 em { display: block; }
h1 em { color: var(--green); font-weight: 500; }
.intro-copy { max-width: 540px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.upload-card, .list-card { border: 1px solid #e4e7dd; border-radius: 20px; background: var(--card); box-shadow: 0 10px 32px rgba(36, 48, 33, .035); }
.upload-card { padding: 18px 16px; }
.card-topline, .results-head, .list-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-topline { margin-bottom: 18px; }
.card-topline > div:first-child, .results-head > div, .list-heading > div { min-width: 0; }
.step-label { margin-bottom: 7px; color: #657760; font-size: 10px; letter-spacing: .12em; }
.step-label span { color: var(--green); }
.card-topline h2, .results-head h2 { margin: 0; font-family: var(--display); font-size: clamp(1.4rem, 5.7vw, 1.7rem); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
.file-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 1px solid #e2e7de; border-radius: 12px; color: var(--green); background: #f6f8f3; font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.dropzone { width: 100%; min-height: 216px; padding: 22px 12px; border: 1px dashed #afc0a8; border-radius: 14px; background: linear-gradient(140deg, #fafbf8, #f3f7f0); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; transition: border-color .16s ease, background .16s ease; }
.dropzone:focus-visible, .dropzone.is-dragging { border-color: var(--green); background: #edf4e8; }
.upload-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: #e7efe3; }
.upload-symbol svg { width: 21px; height: 21px; }
.upload-cta { min-height: 48px; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 17px; border-radius: 11px; color: #fff; background: var(--green); font-size: 14px; font-weight: 600; line-height: 1.4; }
.upload-cta > span { font-size: 18px; font-weight: 400; }
.upload-hint { color: #64765e; font-size: 12px; line-height: 1.5; }
.hint-drag { display: none; }
.dropzone small { max-width: 28em; color: #6d7968; font-size: 12px; line-height: 1.5; }
.privacy-note { display: flex; gap: 9px; align-items: flex-start; padding-top: 16px; color: #677260; }
.privacy-note p { min-width: 0; margin: 0; font-size: 12px; line-height: 1.65; }
.lock-icon { width: 21px; height: 24px; display: grid; place-items: center; flex: 0 0 21px; color: var(--green); }
.lock-icon svg { width: 18px; height: 18px; }
.status { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; color: #45603f; background: #eff5ea; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.status.is-error { color: #8d4138; background: #fbefec; }
.status.is-loading::before { content: ''; width: 15px; height: 15px; flex: 0 0 15px; margin-top: 3px; border: 2px solid #cfdbca; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.file-guide { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.period-requirement { min-width: 0; margin-bottom: 20px; padding: 16px; border: 2px solid var(--green); border-radius: 16px; background: #fffbe0; scroll-margin-top: 20px; }
.period-eyebrow { margin-bottom: 8px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.period-requirement h3 { margin-bottom: 12px; color: var(--green-dark); font-family: var(--display); font-size: clamp(1.15rem, 5vw, 1.5rem); font-weight: 900; line-height: 1.2; letter-spacing: -.03em; }
.period-requirement > p:not(.period-eyebrow):not(.period-error):not(.period-confirmation-hint) { margin-bottom: 10px; font-size: 14px; line-height: 1.65; }
.period-requirement .period-explanation { color: var(--muted); }
.period-requirement strong { color: var(--green-dark); }
.export-tutorial { min-width: 0; margin: 16px 0; border: 2px solid var(--blue); border-radius: 12px; background: #fff; }
.export-tutorial > summary { min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 12px; color: var(--blue); font-size: 14px; font-weight: 800; line-height: 1.45; list-style: none; cursor: pointer; }
.export-tutorial > summary::-webkit-details-marker { display: none; }
.export-tutorial > summary::marker { content: ''; }
.export-tutorial > summary > span:nth-child(2) { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.export-tutorial > summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.tutorial-play-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 11px; }
.export-tutorial .guide-chevron { width: 16px; color: var(--blue); }
.export-tutorial[open] .guide-chevron { transform: rotate(180deg); }
.tutorial-body { min-width: 0; padding: 0 10px 14px; border-top: 1px solid var(--line); }
.tutorial-video { width: 100%; height: auto; max-width: 360px; display: block; margin: 12px auto; border-radius: 12px; background: var(--paper); aspect-ratio: 3 / 4; }
#tutorial-caption { margin: 12px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.tutorial-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tutorial-actions .text-button { min-width: 0; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.tutorial-file-link { min-height: 44px; width: fit-content; max-width: 100%; display: inline-flex; align-items: center; margin-top: 5px; color: var(--blue); font-size: 12px; line-height: 1.5; text-underline-offset: 3px; }
.period-confirmation { min-height: 48px; display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 2px solid var(--green); border-radius: 11px; background: #fff; font-size: 13px; font-weight: 600; line-height: 1.6; cursor: pointer; }
.period-confirmation input { width: 21px; height: 21px; flex: 0 0 21px; margin: 0; margin-top: 1px; accent-color: var(--green); cursor: pointer; }
.period-confirmation span { min-width: 0; }
.period-confirmation:has(input:checked) { background: var(--green-pale); }
.period-confirmation:has(input[aria-invalid="true"]) { border-color: var(--blue); background: var(--blue-pale); }
.period-confirmation input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.period-confirmation-hint { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.period-error { margin: 12px 0 0; padding: 11px; border: 1px solid var(--blue); border-radius: 9px; color: var(--blue); background: var(--blue-pale); font-size: 12px; font-weight: 700; line-height: 1.6; }
@media (min-width: 681px) {
  .period-requirement { padding: 20px; }
  .period-confirmation { align-items: center; font-size: 14px; }
  .period-confirmation input { margin-top: 0; }
}
.file-guide h3 { margin-bottom: 6px; font-size: 16px; line-height: 1.4; font-weight: 600; }
.guide-intro { margin-bottom: 15px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.guide-item { border-top: 1px solid #e7ebe2; }
.guide-item:last-of-type { border-bottom: 1px solid #e7ebe2; }
.guide-item summary { min-height: 70px; display: flex; align-items: center; gap: 10px; padding: 13px 2px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; line-height: 1.5; }
.guide-item summary::-webkit-details-marker { display: none; }
.guide-item summary::marker { content: ''; }
.guide-item summary > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.guide-item summary small { display: block; margin-top: 3px; color: #6f7c68; font-size: 12px; font-weight: 400; }
.guide-number { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 27px; border-radius: 50%; background: var(--green-pale); color: var(--green-dark); font-size: 12px; }
.guide-chevron { width: 18px; height: 18px; flex: 0 0 18px; margin-left: auto; color: var(--green); transition: transform .15s ease; }
.guide-item[open] .guide-chevron { transform: rotate(180deg); }
.guide-item[open] summary { color: var(--green-dark); }
.guide-body { min-width: 0; padding: 0 2px 17px; color: #53604e; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.guide-body ol { margin: 0; padding-left: 23px; }
.guide-body li { margin-bottom: 12px; padding-left: 3px; }
.guide-body li::marker { color: var(--green); font-weight: 600; }
.guide-body strong { color: #34482f; font-weight: 600; }
.guide-tip { margin: 15px 0 12px; padding: 12px 14px; border-radius: 11px; background: var(--green-pale); }
.guide-source { margin: 0; font-size: 12px; line-height: 1.7; color: #6d7966; }
.guide-source a { color: var(--green-dark); text-underline-offset: 3px; }
.guide-reminder { margin: 14px 0 0; color: #63715c; font-size: 12px; line-height: 1.6; }

.results { margin-top: 40px; scroll-margin-top: 20px; }
.results-head { align-items: center; margin-bottom: 18px; }
.results-head h2 { font-size: clamp(1.45rem, 5.5vw, 1.8rem); }
.text-button { min-height: 44px; flex-shrink: 0; padding: 10px 12px; border: 1px solid #dce4d7; border-radius: 10px; color: var(--green-dark); background: #f1f5ed; font-size: 12px; font-weight: 600; line-height: 1.4; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat-card { min-width: 0; min-height: 110px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 16px; border: 1px solid #e4e7dd; border-radius: 15px; background: rgba(255, 255, 252, .85); }
.stat-highlight { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; align-items: center; column-gap: 14px; min-height: 100px; border-color: #d2dfca; background: #eef4e9; }
.stat-label { margin-bottom: 7px; color: #63705f; font-size: 13px; line-height: 1.45; }
.stat-highlight .stat-label { margin-bottom: 4px; color: var(--green-dark); }
.stat-card strong { margin-bottom: 4px; font-family: var(--display); font-size: clamp(1.7rem, 8vw, 2.1rem); font-weight: 500; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-highlight strong { grid-column: 2; grid-row: 1 / 3; margin: 0; color: var(--green-dark); font-size: 44px; }
.stat-detail { color: #6c7866; font-size: 12px; line-height: 1.5; }

.list-card { padding: 20px 14px 6px; }
.list-heading { align-items: center; margin-bottom: 6px; }
.list-heading .step-label { margin-bottom: 6px; }
.list-heading h3 { margin: 0; font-family: var(--display); font-size: 25px; font-weight: 500; line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
.count-pill { min-width: 38px; flex-shrink: 0; padding: 8px 11px; border-radius: 99px; color: var(--green-dark); background: var(--green-pale); font-size: 12px; font-weight: 700; text-align: center; }
.list-controls { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; padding-top: 14px; padding-bottom: 9px; background: var(--card); }
.list-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 12px; border: 1px solid #e3e8de; border-radius: 13px; background: #f0f3ec; }
.list-tab { min-width: 0; min-height: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 9px 5px; border: 1px solid transparent; border-radius: 9px; color: #62705b; background: transparent; font-size: 12px; font-weight: 600; line-height: 1.4; }
.list-tab span { min-width: 23px; padding: 3px 6px; border-radius: 99px; color: #62705b; background: #e2e9dc; font-size: 11px; text-align: center; }
.list-tab.is-active { border-color: #dce4d7; color: var(--green-dark); background: var(--card); box-shadow: 0 2px 6px rgba(36, 48, 33, .05); }
.list-tab.is-active span { color: var(--green-dark); background: #e7efe3; }
.search-box { min-width: 0; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #dce3d7; border-radius: 11px; background: #fff; }
.search-box:focus-within { border-color: var(--green); outline: 2px solid #d7e5d0; outline-offset: 1px; }
.search-box svg { width: 19px; height: 19px; color: #7b8b73; }
.search-box input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; appearance: none; -webkit-appearance: none; }
.search-box input::placeholder { color: #7a8673; opacity: 1; }
.list-note { margin: 4px 0 9px; color: #6b7864; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.account-list { display: flex; flex-direction: column; }
.account-row { min-width: 0; min-height: 76px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid #e9ece4; }
.account-row:last-child { border-bottom: 0; }
.account-info { min-width: 0; display: flex; align-items: center; gap: 9px; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px; border: 1px solid #dfe6d9; border-radius: 50%; color: #62785a; background: #f0f4ec; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.account-detail { min-width: 0; flex: 1; }
.account-name { color: #333e2f; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.account-tag { margin-top: 4px; color: #6e7a67; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.account-row:not(.is-public) .account-tag { display: none; }
.profile-button { min-width: 73px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border: 1px solid #d6e1ce; border-radius: 10px; color: var(--green-dark); background: #f4f8f0; font-size: 12px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.profile-button svg { width: 14px; height: 14px; }
.profile-label-wide { display: none; }
.empty-state { padding: 32px 12px 36px; text-align: center; }
.empty-check { width: 38px; height: 38px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: var(--green); background: #eaf2e7; }
.empty-state strong { display: block; margin-bottom: 8px; font-size: 14px; }
.empty-state p { margin: 0; color: #6d7866; font-size: 13px; line-height: 1.6; }

.how-it-works { margin: 44px 0 40px; }
.how-it-works h2 { margin-bottom: 24px; font-family: var(--display); font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -.035em; }
.steps-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.how-step { min-width: 0; display: flex; align-items: flex-start; gap: 13px; }
.how-step > span { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px; border: 1px solid #d5e0cf; border-radius: 50%; color: var(--green); font-family: var(--display); font-size: 16px; }
.how-step > div { min-width: 0; }
.how-step strong { display: block; margin: 4px 0 6px; font-size: 14px; font-weight: 600; }
.how-step p { margin: 0; color: #697562; font-size: 13px; line-height: 1.65; }
.footer { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 20px 0 28px; border-top: 1px solid rgba(38, 52, 38, .1); color: #6d7867; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.footer p { margin: 0; }
.footer a { color: #45633e; text-underline-offset: 3px; }
.footer-creator { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 2px; padding-bottom: 8px; }
.footer-signature { flex-basis: 100%; color: #3e5138; font-size: 13px; font-weight: 600; }
.creator-link { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.version-badge { padding: 3px 8px; border: 1px solid #dce4d6; border-radius: 99px; color: #64745c; background: #eff3ea; font-size: 11px; line-height: 1.6; }
.footer-notes { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 359px) {
  .list-tab { flex-direction: column; gap: 4px; }
  .results-head { align-items: flex-start; }
  .text-button { max-width: 84px; padding-inline: 9px; }
  .stat-highlight strong { font-size: 38px; }
}

@media (min-width: 480px) {
  .page-shell { padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right)); }
  .privacy-detail { display: inline; }
  .intro { padding-top: 40px; }
  h1 { font-size: clamp(2.85rem, 8.7vw, 4.5rem); }
  .upload-card { padding: 24px; }
  .list-card { padding-inline: 22px; }
  .list-tab { font-size: 13px; }
  .account-info { gap: 12px; }
  .account-name { font-size: 15px; }
  .profile-label-wide { display: inline; }
  .profile-label-compact { display: none; }
  .profile-button { min-width: 108px; padding-inline: 13px; }
}

@media (min-width: 681px) {
  .page-shell { padding-inline: max(32px, env(safe-area-inset-left)) max(32px, env(safe-area-inset-right)); }
  .topbar { min-height: 78px; }
  .privacy-chip { font-size: 12px; padding: 9px 12px; }
  .intro { padding: 58px 0 36px; }
  .eyebrow { font-size: 11px; letter-spacing: .15em; }
  .intro-copy { font-size: 16px; line-height: 1.75; }
  .upload-card { padding: 28px; }
  .card-topline { margin-bottom: 22px; }
  .card-topline h2 { font-size: 28px; }
  .dropzone { min-height: 228px; }
  .upload-cta { padding-inline: 24px; font-size: 15px; }
  .privacy-note { padding-top: 18px; }
  .privacy-note p { font-size: 13px; }
  .results { margin-top: 58px; }
  .results-head h2 { font-size: 32px; }
  .stats-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
  .stat-card { min-height: 132px; padding: 21px; }
  .stat-highlight { grid-column: auto; display: flex; }
  .stat-highlight strong { font-size: 38px; margin-bottom: 4px; }
  .stat-card strong { font-size: 36px; }
  .list-card { padding: 26px 26px 12px; }
  .list-heading h3 { font-size: 28px; }
  .list-controls { position: static; }
  .list-tabs { max-width: 440px; }
  .account-row { min-height: 80px; gap: 18px; }
  .account-row:not(.is-public) .account-tag { display: block; }
  .avatar { width: 36px; height: 36px; flex-basis: 36px; }
  .how-it-works { margin: 64px 0 54px; }
  .how-it-works h2 { font-size: 32px; }
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
  .footer { flex-direction: row; justify-content: space-between; gap: 28px; }
  .footer-creator { max-width: 42%; }
  .footer-notes { max-width: 53%; }
  .guide-body { padding-inline: 39px 24px; font-size: 14px; }
  .guide-item summary { font-size: 14px; }
}

@media (hover: hover) and (pointer: fine) {
  .dropzone:hover { border-color: var(--green); background: #f0f5ed; }
  .dropzone:hover .upload-cta { background: var(--green-dark); }
  .hint-touch { display: none; }
  .hint-drag { display: inline; }
  .profile-button:hover, .text-button:hover { border-color: #aebe9f; background: #eaf2e4; }
  .list-tab:not(.is-active):hover { background: #e7ede2; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .intro { padding-top: 24px; }
  .dropzone { min-height: 172px; padding-block: 16px; }
}

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

/* SeMeta!: bold lettering, Brazilian colors and playful sticker shapes. */
.in-app-notice { margin: 0 0 18px; padding: 15px; border: 2px solid var(--blue); border-radius: 13px; background: var(--blue-pale); color: #284875; font-size: 13px; line-height: 1.65; }
.in-app-notice p { margin: 7px 0; overflow-wrap: anywhere; }
.in-app-notice .text-button { max-width: none; }
.pdf-actions { display: flex; flex-direction: column; gap: 13px; min-width: 0; grid-column: 1 / -1; }
.pdf-actions[hidden], .download-button[hidden] { display: none; }
.pdf-actions p { margin: 0; color: #284875; font-size: 12px; line-height: 1.65; }
.pdf-file-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 14px; border: 2px solid var(--blue); border-radius: 10px; color: var(--blue); background: #fff; font-size: 14px; font-weight: 800; text-underline-offset: 3px; }
.saved-list-note { display: flex; flex-direction: column; gap: 12px; margin: 0 0 20px; padding: 15px; border: 2px solid var(--green); border-radius: 14px; background: var(--green-pale); color: var(--green-dark); }
.saved-list-note > div { min-width: 0; }
.saved-list-note strong { display: block; font-size: 14px; line-height: 1.5; }
.saved-list-note p { margin: 5px 0 0; font-size: 12px; line-height: 1.6; }
.saved-list-note .analysis-date { font-weight: 700; }
.saved-list-note .text-button { align-self: flex-start; flex-shrink: 0; max-width: none; min-height: 44px; }
.saved-list-note.is-warning { border-color: #a45b17; background: #fff5d6; color: #69420f; }
.text-button:disabled { cursor: wait; opacity: .65; }
@media (min-width: 681px) {
  .saved-list-note { flex-direction: row; align-items: center; justify-content: space-between; gap: 22px; }
  .saved-list-note .text-button { align-self: center; }
}
.download-card { display: flex; flex-direction: column; gap: 16px; margin: 23px 0; padding: 20px 16px; border: 2px solid var(--blue); border-radius: 18px; background: var(--blue-pale); box-shadow: 4px 4px 0 var(--blue); }
.download-copy { min-width: 0; }
.download-eyebrow { display: block; margin-bottom: 8px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.download-copy h3 { margin: 0 0 8px; color: var(--green-dark); font-family: var(--display); font-size: 22px; line-height: 1.15; letter-spacing: -.04em; }
.download-copy p { margin: 0; color: #284875; font-size: 13px; line-height: 1.6; }
.download-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; width: 100%; padding: 12px 16px; border: 2px solid var(--green-dark); border-radius: 11px; color: var(--green-dark); background: var(--yellow); box-shadow: 3px 3px 0 var(--green-dark); font-size: 15px; font-weight: 800; line-height: 1.4; }
.download-button svg { width: 21px; height: 21px; flex-shrink: 0; }
.download-button:disabled { cursor: wait; opacity: .65; }
.pdf-status, .pdf-ready { margin: 0; color: var(--blue); font-size: 12px; line-height: 1.6; }
.pdf-ready { min-height: 44px; align-content: center; text-underline-offset: 3px; }
@media (min-width: 681px) {
  .download-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 28px; padding: 23px; }
  .download-copy h3 { font-size: 24px; }
  .download-button { width: auto; min-width: 220px; }
  .pdf-status, .pdf-ready { grid-column: 1 / -1; }
}
@media (hover: hover) and (pointer: fine) {
  .download-button:not(:disabled):hover { color: #fff; background: var(--green); }
}
body { background: radial-gradient(#00753c14 1.2px, transparent 1.2px) 0 0 / 22px 22px, var(--paper); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline-color: var(--blue); }
.topbar { border-bottom: 2px solid var(--green); }
.brand { gap: 8px; color: var(--green); font-family: var(--display); font-size: 26px; font-weight: 900; letter-spacing: -.065em; }
.brand-mark { width: 34px; height: 34px; background: transparent; border-radius: 0; transform: rotate(-7deg); }
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-bang { color: var(--blue); text-shadow: 2px 2px 0 var(--yellow); }
.privacy-chip { border: 2px solid var(--blue); color: var(--blue); background: #fff; font-weight: 700; }
.privacy-dot { background: var(--green); box-shadow: 0 0 0 3px #fff0a2; }
.intro { max-width: 850px; }
.eyebrow { width: fit-content; max-width: 100%; padding: 7px 10px; border: 2px solid var(--green); border-radius: 9px; background: var(--yellow); font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.eyebrow::before { display: none; }
h1 { color: var(--green); font-size: clamp(2.25rem, 10.7vw, 3.5rem); font-weight: 900; line-height: 1.03; letter-spacing: -.055em; }
h1 em { color: var(--blue); font-style: normal; font-weight: 900; text-shadow: 2px 3px 0 var(--yellow); }
.hero-face { display: inline-block; font-family: var(--sans); font-size: .7em; font-style: normal; vertical-align: middle; letter-spacing: 0; text-shadow: none; }
.hero-punchline { max-width: 630px; margin: 0 0 12px; font-size: clamp(1.15rem, 4.8vw, 1.5rem); font-weight: 800; line-height: 1.3; letter-spacing: -.03em; }
.intro-copy { max-width: 600px; color: var(--muted); }
.hero-stickers { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; padding-bottom: 4px; }
.hero-stickers > span { padding: 7px 10px; border: 2px solid var(--green); border-radius: 9px; color: var(--green-dark); background: var(--yellow); box-shadow: 2px 2px 0 var(--green); font-size: 12px; font-weight: 800; line-height: 1.5; transform: rotate(-2deg); }
.hero-stickers > span:last-child { color: var(--blue); border-color: var(--blue); background: #fff; box-shadow: 2px 2px 0 var(--blue); transform: rotate(1.5deg); }
.upload-card, .list-card { border: 2px solid var(--green); border-radius: 22px; background: #fff; box-shadow: 5px 5px 0 var(--green); }
.step-label { color: var(--green-dark); font-weight: 800; }
.card-topline h2, .results-head h2, .list-heading h3, .how-it-works h2 { color: var(--green-dark); font-weight: 850; line-height: 1.15; letter-spacing: -.045em; }
.file-icon { border: 2px solid var(--blue); background: var(--yellow); color: var(--blue); box-shadow: 2px 2px 0 var(--blue); transform: rotate(5deg); }
.dropzone { border: 2px dashed var(--green); background: #f0f9e6; }
.dropzone:focus-visible, .dropzone.is-dragging { border-color: var(--blue); background: #fff6b6; }
.upload-symbol { width: 44px; height: 44px; border: 2px solid var(--blue); color: var(--blue); background: var(--yellow); transform: rotate(-5deg); }
.upload-cta { border: 2px solid var(--blue); color: #fff; background: var(--blue); box-shadow: 3px 3px 0 var(--green-dark); font-weight: 800; }
.upload-hint, .dropzone small, .privacy-note { color: #38543e; }
.lock-icon { color: var(--blue); }
.status { border: 2px solid var(--green); color: var(--green-dark); background: var(--green-pale); }
.status.is-loading::before { border-color: #c7ddbd; border-top-color: var(--blue); }
.status.is-error { border-color: #b23d29; color: #96301e; background: #fff0ed; }
.file-guide { border-top: 2px dashed var(--line); }
.file-guide h3 { color: var(--blue); font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.guide-item, .guide-item:last-of-type { border-color: var(--line); }
.guide-item summary { font-weight: 750; }
.guide-item summary small, .guide-source, .guide-reminder { color: #49634c; }
.guide-number { border-radius: 8px; background: var(--blue); color: #fff; font-weight: 800; transform: rotate(-4deg); }
.guide-chevron { color: var(--blue); }
.guide-body { color: #365840; }
.guide-body strong { color: var(--green-dark); }
.guide-tip { border-left: 4px solid var(--blue); background: #fff7c3; }
.guide-source a { color: var(--blue); }
.text-button { border: 2px solid var(--blue); color: var(--blue); background: var(--blue-pale); font-weight: 800; }
.stat-card { border: 2px solid var(--green); background: #fff; box-shadow: 2px 2px 0 var(--green); }
.stat-highlight { background: var(--yellow); }
.stat-label { color: var(--green-dark); font-weight: 700; }
.stat-card strong { color: var(--green-dark); font-weight: 900; letter-spacing: -.055em; }
.stat-highlight strong { color: var(--blue); }
.stat-detail { color: #42584c; }
.snapshot-note { margin: 20px 0; padding: 12px 14px; border-left: 4px solid var(--blue); border-radius: 9px; color: #284875; background: var(--blue-pale); font-size: 12px; line-height: 1.65; }
.count-pill { border: 2px solid var(--blue); color: #fff; background: var(--blue); }
.list-controls { background: #fff; }
.list-tabs { border: 2px solid var(--blue); background: var(--blue-pale); }
.list-tab { color: var(--blue); font-weight: 800; }
.list-tab span { color: var(--blue); background: #dbe6ff; }
.list-tab.is-active { border-color: var(--blue); color: var(--blue); background: var(--yellow); box-shadow: 2px 2px 0 var(--blue); }
.list-tab.is-active span { color: #fff; background: var(--blue); }
.search-box { border: 2px solid var(--green); }
.search-box:focus-within { border-color: var(--blue); outline-color: #c4d4ff; }
.search-box svg { color: var(--green); }
.search-box input::placeholder { color: #54715b; }
.list-note { color: #405e4c; }
.account-row { border-bottom-color: #cce0bf; }
.avatar { border: 2px solid var(--blue); color: var(--blue); background: #fff5b7; font-weight: 800; }
.account-name { color: var(--ink); font-weight: 800; }
.account-tag { color: #4b6853; }
.profile-button { border: 2px solid var(--green); color: var(--green-dark); background: var(--yellow); font-weight: 800; }
.empty-check { color: #fff; background: var(--blue); }
.empty-state p, .how-step p { color: #425c4a; }
.how-step > span { border: 2px solid var(--blue); color: #fff; background: var(--blue); box-shadow: 2px 2px 0 var(--yellow); font-weight: 800; }
.how-step strong { color: var(--green-dark); font-size: 15px; font-weight: 800; }
.footer { border-top: 2px solid var(--green); color: #3c5b47; }
.footer a { color: var(--blue); }
.footer-signature { color: var(--green-dark); font-size: 14px; font-weight: 800; }
.version-badge { border: 2px solid var(--blue); color: var(--blue); background: var(--yellow); font-weight: 700; }

@media (min-width: 480px) {
  h1 { font-size: clamp(3.5rem, 8.6vw, 5.5rem); }
}
@media (min-width: 681px) {
  .brand { font-size: 30px; }
  .brand-mark { width: 38px; height: 38px; }
  .eyebrow { font-size: 11px; }
  .hero-punchline { font-size: 26px; }
  .hero-stickers > span { font-size: 13px; }
  .snapshot-note { font-size: 13px; }
}
@media (hover: hover) and (pointer: fine) {
  .dropzone:hover { border-color: var(--blue); background: #fff8cf; }
  .dropzone:hover .upload-cta { background: var(--green); border-color: var(--green); }
  .profile-button:hover { border-color: var(--blue); color: #fff; background: var(--blue); }
  .text-button:hover, .list-tab:not(.is-active):hover { border-color: var(--blue); color: var(--blue); background: #dbe6ff; }
}

.feedback-bar { position: fixed; z-index: 15; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); width: min(900px, calc(100% - 24px)); display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 6px 8px; padding: 10px 12px; border: 2px solid var(--green); border-radius: 15px; color: var(--green-dark); background: var(--yellow); box-shadow: 3px 3px 0 var(--green-dark); transform: translateX(-50%); }
.feedback-bar[hidden] { display: none; }
.feedback-bar > strong { min-width: 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.feedback-actions { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.feedback-direct { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border: 2px solid var(--blue); border-radius: 10px; color: #fff; background: var(--blue); font-size: 13px; font-weight: 800; line-height: 1.4; text-decoration: none; }
.feedback-profile { min-height: 44px; display: inline-flex; align-items: center; color: var(--green-dark); font-size: 11px; font-weight: 700; text-underline-offset: 3px; }
.feedback-close { grid-column: 2; grid-row: 1; width: 44px; height: 44px; padding: 0; border: 1px solid var(--green); border-radius: 10px; color: var(--green-dark); background: transparent; font-size: 24px; line-height: 1; }
body.has-feedback-bar { padding-bottom: calc(var(--feedback-bar-height, 0px) + max(12px, env(safe-area-inset-bottom)) + 24px); }
body.has-feedback-bar .account-toast { bottom: calc(var(--feedback-bar-height, 0px) + max(12px, env(safe-area-inset-bottom)) + 16px); }
@media (min-width: 681px) {
  .feedback-bar { grid-template-columns: minmax(0, 1fr) auto 44px; gap: 12px; }
  .feedback-actions { grid-column: 2; grid-row: 1; }
  .feedback-close { grid-column: 3; }
}
.account-row { row-gap: 10px; }
.category-toggle { grid-column: 1 / -1; justify-self: start; max-width: calc(100% - 41px); min-height: 44px; display: inline-flex; align-items: center; gap: 7px; margin-left: 41px; padding: 8px 12px; border: 2px solid var(--green); border-radius: 999px; color: var(--green-dark); background: #f0f9e6; font-size: 12px; font-weight: 800; line-height: 1.35; text-align: left; overflow-wrap: anywhere; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.category-toggle-icon { width: 19px; height: 19px; display: inline-grid; place-items: center; flex: 0 0 19px; border-radius: 50%; color: #fff; background: var(--green); font-size: 15px; line-height: 1; }
.category-toggle.is-selected { border-color: var(--green-dark); color: #fff; background: var(--green); box-shadow: 2px 2px 0 var(--green-dark); }
.category-toggle.is-selected .category-toggle-icon { color: var(--green-dark); background: var(--yellow); font-size: 12px; }
.account-origin { display: inline-flex; align-items: center; margin: 4px 0 0 2px; padding: 3px 7px; border: 1px solid var(--blue); border-radius: 99px; color: var(--blue); background: var(--blue-pale); font-size: 10px; font-weight: 800; line-height: 1.4; vertical-align: middle; }
.account-origin.is-manual { border-color: var(--green); color: var(--green-dark); background: var(--green-pale); }
.account-toast { position: fixed; z-index: 20; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 8px; padding: 10px; border: 2px solid var(--green-dark); border-radius: 15px; color: #fff; background: var(--green-dark); box-shadow: 3px 3px 0 var(--yellow); transform: translateX(-50%); }
.account-toast[hidden] { display: none; }
.account-toast > span { min-width: 0; flex: 1; font-size: 12px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.toast-undo, .toast-dismiss { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 2px solid var(--yellow); border-radius: 10px; color: var(--green-dark); background: var(--yellow); font-size: 12px; font-weight: 800; }
.toast-undo { padding: 8px 12px; }
.toast-dismiss { width: 44px; padding: 0; font-size: 21px; line-height: 1; }
.category-toggle:focus-visible, .toast-undo:focus-visible, .toast-dismiss:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (min-width: 480px) {
  .category-toggle { max-width: calc(100% - 44px); margin-left: 44px; }
}
@media (min-width: 681px) {
  .category-toggle { max-width: calc(100% - 48px); margin-left: 48px; }
}

.feedback-footer { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 24px; padding: 16px; border: 2px solid var(--green); border-radius: 15px; color: var(--green-dark); background: var(--yellow); box-shadow: 3px 3px 0 var(--green-dark); }
.feedback-footer h2 { margin: 0; font-family: var(--sans); font-size: 16px; font-weight: 800; line-height: 1.4; }
.feedback-footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
@media (min-width: 681px) {
  .feedback-footer { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
}
@media (hover: hover) and (pointer: fine) {
  .category-toggle:not(.is-selected):hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
  .category-toggle.is-selected:hover { border-color: var(--blue); background: var(--green-dark); }
  .toast-undo:hover, .toast-dismiss:hover { border-color: #fff; }
}
