:root {
  --ink: #172d31;
  --muted: #637973;
  --green: #126b5d;
  --green-dark: #0c554a;
  --mint: #dff5ec;
  --mint-soft: #f1faf6;
  --cream: #fffaf0;
  --orange: #ef7b4a;
  --yellow: #f5cd67;
  --line: #dce8e3;
  --white: #fff;
  --danger: #b94a3c;
  --shadow: 0 16px 45px rgba(23, 72, 58, .12);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  background: linear-gradient(180deg, var(--cream) 0, #fff 360px);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-text-size-adjust: 100%;
}
button, input, select { font: inherit; }
button, label, select, input[type="date"], input[type="text"] { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  padding: 10px max(4vw, 18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(220, 232, 227, .88);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
}
.app-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(18, 107, 93, .2);
  flex: 0 0 auto;
}
.app-brand-icon img { width: 100%; height: 100%; display: block; }
.app-brand strong { display: block; font-size: 15px; letter-spacing: .01em; }
.app-brand small { display: block; color: var(--muted); font-size: 9px; margin-top: 2px; }
.site-link {
  color: var(--green);
  border: 1px solid #c8ddd6;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  background: #fff;
}

main { min-height: calc(100vh - 180px); }
.setup-view, .dashboard-view { width: min(1120px, 100%); margin: 0 auto; padding: 0 22px 80px; }
.setup-hero { padding: 68px 0 38px; max-width: 780px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}
.setup-hero h1, .dashboard-hero h1, .legal-card h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.16;
  letter-spacing: -.055em;
}
.setup-hero > p:not(.eyebrow) { max-width: 720px; margin: 20px 0 0; color: var(--muted); line-height: 1.9; font-size: 15px; }
.privacy-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.privacy-chips span { background: #fff; border: 1px solid var(--line); color: var(--green); border-radius: 999px; padding: 9px 13px; font-size: 11px; font-weight: 800; }

.profile-form { display: grid; gap: 18px; }
.form-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 34px rgba(28, 76, 63, .06);
}
.form-card-primary { border-color: #bcded1; box-shadow: var(--shadow); }
.form-card-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
.step-number { width: 38px; height: 38px; border-radius: 12px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 900; flex: 0 0 auto; }
.form-card-heading h2 { margin: 1px 0 5px; font-size: 22px; letter-spacing: -.025em; }
.form-card-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.field-grid { display: grid; gap: 22px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { min-width: 0; padding: 0; margin: 0; border: 0; }
.field.full-width { grid-column: 1 / -1; }
.field > label, .field > legend { display: block; margin: 0 0 9px; font-size: 12px; font-weight: 900; }
.required { display: inline-block; margin-left: 4px; color: var(--orange); font-size: 9px; }
.field input[type="date"], .field input[type="text"], .field select {
  width: 100%;
  min-height: 51px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfffd;
  border: 1px solid #c9dbd5;
  border-radius: 12px;
  outline: none;
}
.field input[type="date"]:focus, .field input[type="text"]:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(18, 107, 93, .12); }
.field > small { display: block; margin-top: 8px; color: #7a8d88; font-size: 10px; line-height: 1.6; }

.choice-grid { display: grid; gap: 9px; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice-card { cursor: pointer; position: relative; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px;
  border: 1px solid #cdded8;
  border-radius: 13px;
  background: #fff;
  transition: .18s ease;
}
.choice-card b { font-size: 12px; }
.choice-card small { color: var(--muted); font-size: 9px; margin-top: 5px; }
.choice-card input:checked + span { border-color: var(--green); background: var(--mint-soft); box-shadow: inset 0 0 0 1px var(--green); }
.choice-card input:focus-visible + span { outline: 3px solid rgba(18, 107, 93, .18); }

.segmented, .yes-no { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.yes-no { grid-template-columns: repeat(2, 1fr); }
.segmented label, .yes-no label, .check-grid label { cursor: pointer; position: relative; }
.segmented input, .yes-no input, .check-grid input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span, .yes-no span, .check-grid span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 9px;
  border: 1px solid #cdded8;
  border-radius: 11px;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  transition: .18s ease;
}
.segmented input:checked + span, .yes-no input:checked + span, .check-grid input:checked + span { border-color: var(--green); background: var(--mint-soft); color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.segmented input:focus-visible + span, .yes-no input:focus-visible + span, .check-grid input:focus-visible + span { outline: 3px solid rgba(18, 107, 93, .18); }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }

.form-submit-wrap { text-align: center; padding: 20px 0 0; }
.create-button {
  width: min(480px, 100%);
  min-height: 60px;
  border: 0;
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(18, 107, 93, .24);
}
.create-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.form-submit-wrap p { color: var(--muted); font-size: 10px; margin: 13px 0 0; }

.dashboard-view { padding-top: 42px; }
.dashboard-hero {
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 48px;
  border-radius: 30px;
  background: linear-gradient(125deg, #fff3cf 0%, #eaf8f2 58%, #d8f0e7 100%);
  overflow: hidden;
  position: relative;
}
.dashboard-hero::after { content: "📦"; position: absolute; right: 25%; bottom: -30px; font-size: 120px; opacity: .1; transform: rotate(-8deg); }
.dashboard-hero > div { position: relative; z-index: 1; }
.dashboard-hero h1 { font-size: clamp(40px, 6vw, 68px); }
.move-summary { margin: 17px 0 0; color: var(--green); font-weight: 900; }
.progress-ring {
  --progress: 0deg;
  width: 174px;
  height: 174px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--progress), rgba(255,255,255,.75) 0);
  box-shadow: 0 18px 40px rgba(28, 76, 63, .15);
}
.progress-ring::before { content: ""; position: absolute; width: 136px; height: 136px; border-radius: 50%; background: #fff; }
.progress-ring > div { position: relative; z-index: 1; text-align: center; }
.progress-ring strong { display: block; font-size: 34px; color: var(--green); }
.progress-ring span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }

.next-task-card, .install-hint, .data-card {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.next-task-card { margin: -24px 28px 0; position: relative; z-index: 4; padding: 19px 22px; box-shadow: var(--shadow); }
.next-task-card > span { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #fff4d8; font-size: 20px; }
.next-task-card small { display: block; color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .12em; margin-bottom: 5px; }
.next-task-card strong { display: block; font-size: 13px; line-height: 1.5; }
.install-hint { margin-top: 18px; padding: 15px 18px; background: var(--mint-soft); }
.install-hint p { flex: 1; margin: 0; font-size: 11px; color: #425f58; line-height: 1.55; }
.install-hint button { border: 0; border-radius: 10px; padding: 10px 13px; background: var(--green); color: #fff; font-size: 10px; font-weight: 900; cursor: pointer; }


.local-procedure-card {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28, 76, 63, .055);
  scroll-margin-top: 90px;
}
.local-procedure-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.local-procedure-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.local-procedure-heading > p { max-width: 470px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.75; text-align: right; }
.local-procedure-summary { margin: 18px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--mint-soft); color: #345e55; font-size: 10px; font-weight: 800; line-height: 1.7; }
.local-procedure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.local-link-group { border: 1px solid #deebe6; border-radius: 16px; padding: 16px; background: #fcfffd; }
.local-link-group h3 { margin: 0 0 10px; font-size: 13px; }
.local-link-list { display: grid; gap: 8px; }
.local-search-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 10px 12px; border: 1px solid #d5e4df; border-radius: 11px; background: #fff; color: var(--green); font-size: 10px; font-weight: 900; }
.local-search-link:hover { border-color: var(--green); background: var(--mint-soft); }
.local-search-link span:first-child { min-width: 0; }
.local-search-link small { display: block; margin-top: 2px; color: #7b8d88; font-size: 8px; font-weight: 700; }
.local-search-link .arrow { flex: 0 0 auto; font-size: 14px; }
.local-procedure-official { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.local-procedure-official a { padding: 10px 12px; border-radius: 999px; background: var(--green); color: #fff; font-size: 9px; font-weight: 900; }
.local-procedure-note { margin: 12px 0 0; color: #7a8d88; font-size: 9px; line-height: 1.7; }

.dashboard-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 42px 0 24px; }
.filter-scroll { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-scroll button, .toolbar-actions button {
  border: 1px solid #cbdcd6;
  border-radius: 999px;
  background: #fff;
  color: #4e6862;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}
.filter-scroll button.is-active { border-color: var(--green); background: var(--green); color: #fff; }
.toolbar-actions { display: flex; gap: 7px; }
.toolbar-actions button { border-radius: 10px; }

.task-section { padding-top: 8px; }
.task-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.task-heading h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.task-heading > p { max-width: 420px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; text-align: right; }
.task-list { display: grid; gap: 12px; }
.task-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(28, 76, 63, .045);
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease;
}
.task-card:hover { transform: translateY(-1px); border-color: #bcd4cb; }
.task-card.is-done { opacity: .62; background: #f7faf8; }
.task-check-wrap { cursor: pointer; display: block; position: relative; }
.task-check-wrap input { position: absolute; opacity: 0; }
.task-checkbox {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #b9cec7;
  border-radius: 10px;
  color: transparent;
  font-size: 15px;
  font-weight: 900;
  transition: .16s ease;
}
.task-check-wrap input:checked + .task-checkbox { color: #fff; border-color: var(--green); background: var(--green); }
.task-check-wrap input:focus-visible + .task-checkbox { outline: 4px solid rgba(18, 107, 93, .15); }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.category-tag, .due-tag { display: inline-flex; align-items: center; border-radius: 999px; font-size: 9px; font-weight: 900; }
.category-tag { color: var(--green); background: var(--mint-soft); padding: 6px 9px; }
.due-tag { padding: 6px 9px; background: #f2f6f4; color: #60736f; }
.due-tag.is-overdue { color: var(--danger); background: #fff0ed; }
.due-tag.is-today { color: #8a5900; background: #fff1bd; }
.due-tag.is-soon { color: #9a6414; background: #fff6dd; }
.task-content h3 { margin: 13px 0 7px; font-size: 17px; line-height: 1.5; letter-spacing: -.02em; }
.task-card.is-done h3 { text-decoration: line-through; }
.task-content p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.task-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; color: var(--green); font-size: 10px; font-weight: 900; }
.task-link:hover { text-decoration: underline; }
.pr-label { display: inline-block; padding: 3px 5px; border-radius: 4px; background: var(--orange); color: #fff; font-size: 8px; line-height: 1; }
.empty-tasks { padding: 58px 20px; text-align: center; border: 2px dashed #d6e5df; border-radius: 20px; background: #fff; }
.empty-tasks span { font-size: 40px; }
.empty-tasks h3 { margin: 12px 0 5px; }
.empty-tasks p { margin: 0; color: var(--muted); font-size: 11px; }

.data-card { justify-content: space-between; padding: 22px; margin-top: 28px; }
.data-card > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.data-card > div > span { grid-row: 1 / span 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--mint-soft); }
.data-card h2 { margin: 0 0 5px; font-size: 13px; }
.data-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.data-card button { border: 1px solid #e4c4bd; border-radius: 9px; background: #fff; color: var(--danger); padding: 10px 12px; font-size: 9px; font-weight: 900; cursor: pointer; white-space: nowrap; }

.app-footer { padding: 40px 22px calc(34px + var(--safe-bottom)); text-align: center; border-top: 1px solid var(--line); background: #fff; }
.app-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.app-footer a { color: #5f756f; font-size: 10px; font-weight: 800; }
.app-footer p { margin: 20px 0 0; color: #91a09c; font-size: 9px; }

.update-toast { position: fixed; left: 50%; bottom: calc(18px + var(--safe-bottom)); z-index: 100; transform: translateX(-50%); width: min(440px, calc(100% - 28px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 13px; background: var(--ink); color: #fff; box-shadow: 0 15px 36px rgba(0,0,0,.22); font-size: 10px; }
.update-toast button { border: 0; border-radius: 8px; background: #fff; color: var(--ink); padding: 8px 10px; font-size: 9px; font-weight: 900; }
.noscript { position: fixed; inset: auto 12px 12px; z-index: 200; padding: 14px; background: #7a291e; color: #fff; text-align: center; border-radius: 10px; }

.legal-page { background: var(--cream); }
.legal-page main { width: min(900px, 100%); margin: auto; padding: 50px 20px 80px; }
.legal-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(26px, 6vw, 58px); box-shadow: var(--shadow); }
.legal-card h1 { font-size: clamp(34px, 6vw, 54px); }
.legal-lead { color: var(--muted); line-height: 1.8; }
.legal-card section { padding: 24px 0; border-top: 1px solid #edf2ef; }
.legal-card section:first-of-type { margin-top: 28px; }
.legal-card h2 { margin: 0 0 10px; font-size: 18px; }
.legal-card section p { margin: 0; color: #526b65; font-size: 12px; line-height: 2; }
.legal-card a { color: var(--green); text-decoration: underline; }
.updated { color: #81918d; font-size: 10px; margin: 20px 0 0; }

.offline-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.offline-card { width: min(520px, 100%); padding: 50px 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; text-align: center; box-shadow: var(--shadow); }
.offline-card > span { font-size: 60px; }
.offline-card h1 { margin: 14px 0; font-size: 30px; }
.offline-card p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.offline-card a { display: inline-block; margin-top: 12px; padding: 13px 20px; border-radius: 11px; background: var(--green); color: #fff; font-size: 11px; font-weight: 900; }

@media (max-width: 800px) {
  .two-columns { grid-template-columns: 1fr; }
  .dashboard-hero { padding: 38px 30px; }
  .task-heading { align-items: flex-start; flex-direction: column; }
  .task-heading > p { text-align: left; }
  .local-procedure-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .local-procedure-heading > p { text-align: left; }
  .local-procedure-grid { grid-template-columns: 1fr; }
  .dashboard-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-actions { align-self: flex-end; }
}

@media (max-width: 600px) {
  body { background: linear-gradient(180deg, var(--cream) 0, #fff 250px); }
  .app-header { min-height: 64px; padding: 8px 14px; }
  .app-brand-icon { width: 41px; height: 41px; border-radius: 12px; }
  .app-brand strong { font-size: 12px; line-height: 1.25; }
  .app-brand small { display: none; }
  .site-link { padding: 9px 11px; font-size: 10px; }
  .setup-view, .dashboard-view { padding-left: 14px; padding-right: 14px; padding-bottom: 58px; }
  .setup-hero { padding: 44px 4px 27px; }
  .setup-hero h1 { font-size: clamp(34px, 10vw, 43px); }
  .setup-hero > p:not(.eyebrow) { font-size: 12px; line-height: 1.8; }
  .form-card { padding: 20px 16px; border-radius: 19px; }
  .form-card-heading { margin-bottom: 21px; }
  .choice-grid.three { grid-template-columns: 1fr; }
  .choice-card span { min-height: 66px; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-view { padding-top: 16px; }
  .dashboard-hero { min-height: auto; padding: 28px 22px 34px; border-radius: 22px; flex-direction: column; align-items: flex-start; }
  .dashboard-hero h1 { font-size: 42px; }
  .progress-ring { width: 132px; height: 132px; align-self: center; }
  .progress-ring::before { width: 103px; height: 103px; }
  .progress-ring strong { font-size: 28px; }
  .dashboard-hero::after { right: -10px; bottom: -38px; }
  .next-task-card { margin: -18px 12px 0; padding: 16px; }
  .next-task-card strong { font-size: 11px; }
  .install-hint { align-items: flex-start; }
  .install-hint button { align-self: center; }
  .local-procedure-card { padding: 20px 15px; border-radius: 18px; }
  .local-procedure-heading h2 { font-size: 22px; }
  .local-search-link { min-height: 48px; }
  .dashboard-toolbar { margin-top: 30px; }
  .toolbar-actions { width: 100%; align-self: auto; }
  .toolbar-actions button { flex: 1; }
  .task-heading h2 { font-size: 26px; }
  .task-card { grid-template-columns: 36px minmax(0, 1fr); padding: 17px 14px; gap: 9px; border-radius: 15px; }
  .task-checkbox { width: 31px; height: 31px; }
  .task-content h3 { font-size: 15px; }
  .task-content p { font-size: 10px; }
  .data-card { align-items: stretch; flex-direction: column; }
  .data-card button { align-self: flex-end; }
  .legal-page main { padding: 26px 13px 55px; }
  .legal-card { border-radius: 20px; }
}

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

@media print {
  body { background: #fff; }
  .app-header, .app-footer, .next-task-card, .install-hint, .dashboard-toolbar, .data-card, .update-toast { display: none !important; }
  .dashboard-view { width: 100%; padding: 0; }
  .dashboard-hero { min-height: 0; padding: 20px 0; background: #fff; border-bottom: 2px solid #222; border-radius: 0; }
  .dashboard-hero::after { display: none; }
  .dashboard-hero h1 { font-size: 28px; }
  .progress-ring { width: auto; height: auto; background: none; box-shadow: none; }
  .progress-ring::before { display: none; }
  .progress-ring strong { font-size: 22px; }
  .task-heading { margin-top: 20px; }
  .task-list { gap: 6px; }
  .task-card { break-inside: avoid; box-shadow: none; padding: 10px; border-radius: 6px; grid-template-columns: 30px 1fr; }
  .task-checkbox { width: 24px; height: 24px; border-radius: 5px; }
  .task-content h3 { margin: 7px 0 3px; font-size: 12px; }
  .task-content p { font-size: 8px; line-height: 1.5; }
  .task-link { display: none; }
}

/* v1.4: address-based automatic moving-scope detection */
.scope-detection {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 15px 17px;
  border: 1px solid #c9ded6;
  border-radius: 15px;
  background: var(--mint-soft);
  transition: border-color .18s ease, background .18s ease;
}
.scope-detection-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--green);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}
.scope-detection small { display: block; margin-bottom: 4px; color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.scope-detection strong { display: block; font-size: 14px; line-height: 1.45; }
.scope-detection p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.scope-detection.is-waiting { background: #fbfdfc; border-style: dashed; }
.scope-detection.is-waiting .scope-detection-icon { background: #8aa09a; }
.scope-detection.is-error { background: #fff4f1; border-color: #e5b7ad; }
.scope-detection.is-error .scope-detection-icon { background: var(--danger); }
.scope-detection.is-error small { color: var(--danger); }
.scope-detection.is-valid { background: var(--mint-soft); border-color: #9fcfbe; }
.scope-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 9px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #c8ded6;
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
}
@media (max-width: 600px) {
  .scope-detection { align-items: flex-start; padding: 14px; }
  .scope-detection-icon { width: 38px; height: 38px; }
  .scope-detection strong { font-size: 13px; }
}
