:root {
    --dmz-ink: #19384f;
    --dmz-text: #344f63;
    --dmz-muted: #647789;
    --dmz-blue: #3f6f92;
    --dmz-blue-dark: #294f69;
    --dmz-blue-soft: #eef5fa;
    --dmz-green: #4f8a73;
    --dmz-green-soft: #edf7f1;
    --dmz-warm-soft: #fff8ec;
    --dmz-surface: #ffffff;
    --dmz-page: #f7f9fb;
    --dmz-line: #d9e3ea;
    --dmz-shadow: 0 0.55rem 1.6rem rgba(35, 65, 88, 0.07);
}

[hidden] {
    display: none !important;
}

.dmz-tool {
    color: var(--dmz-text);
    background: linear-gradient(180deg, #f6f9fb 0%, #fbfaf7 52%, #f7f9fb 100%);
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

.dmz-tool .container {
    width: min(100%, 48rem);
    max-width: 48rem;
    margin-inline: auto;
    padding-inline: clamp(0.9rem, 3vw, 1.5rem);
}

.dmz-tool p,
.dmz-tool li,
.dmz-tool small {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.dmz-tool .header {
    margin: 0 0 1rem;
    padding: clamp(1.8rem, 5vw, 3rem) 0;
    color: var(--dmz-ink);
    background: linear-gradient(135deg, #eef5fa 0%, #f4f8f6 100%);
    text-align: center;
}

.dmz-tool .header .container {
    padding-bottom: 0;
}

.dmz-tool .header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 0;
    color: var(--dmz-ink);
    font-size: clamp(1.8rem, 5vw, 2.45rem);
}

.dmz-tool .header h1 .emoji {
    font-size: 1.1em;
    line-height: 1;
}

.dmz-tool .header p {
    max-width: 35rem;
    margin: 0.65rem auto 0;
    color: var(--dmz-muted);
    font-size: clamp(0.96rem, 2vw, 1.05rem);
    line-height: 1.65;
}

.dmz-tool .card,
.dmz-tool .question-card,
.dmz-tool .result-card-wrapper {
    opacity: 1;
    transform: none;
    margin: 1rem 0 2rem;
    overflow: hidden;
    border: 0;
    border-radius: 1.15rem;
    background: var(--dmz-surface);
    box-shadow: var(--dmz-shadow);
}

.dmz-tool .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1.1rem clamp(1rem, 3vw, 1.45rem);
    border: 0;
    background: #f1f6f9;
}

.dmz-tool .card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--dmz-ink);
    font-size: clamp(1.08rem, 3vw, 1.3rem);
    line-height: 1.4;
}

.dmz-tool .card-title > span {
    font-size: 1.35em;
    line-height: 1;
}

.dmz-tool .card-body {
    padding: clamp(1.05rem, 3.5vw, 1.65rem);
}

.dmz-tool button,
.dmz-tool a,
.dmz-tool summary,
.dmz-tool label {
    -webkit-tap-highlight-color: transparent;
}

.dmz-tool .btn {
    min-height: 2.75rem;
    border-radius: 0.75rem;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.dmz-tool .btn-primary {
    border: 1px solid var(--dmz-blue-dark);
    color: #fff;
    background: var(--dmz-blue-dark);
}

.dmz-tool .btn-secondary {
    border: 1px solid var(--dmz-line);
    color: var(--dmz-blue-dark);
    background: #fff;
}

.dmz-tool .full-width {
    width: 100%;
}

.dmz-tool :is(button, a, summary, input):focus-visible,
.dmz-tool .response-choice:focus-within {
    outline: 3px solid #77a9cf;
    outline-offset: 3px;
}

.intro-hero {
    padding: clamp(1.25rem, 4vw, 2rem);
    border-radius: 1rem;
    background: linear-gradient(145deg, #f1f7fb 0%, #eef7f2 100%);
    text-align: center;
}

.intro-hero__emoji {
    display: block;
    margin-bottom: 0.75rem;
    font-size: clamp(3.6rem, 11vw, 5.2rem);
    line-height: 1;
}

.intro-hero__hook {
    max-width: 31rem;
    margin: 0 auto 1rem;
    color: var(--dmz-ink);
    font-size: clamp(1.25rem, 4vw, 1.7rem);
    font-weight: 800;
    line-height: 1.48;
}

.intro-hero p:not(.intro-hero__hook) {
    margin: 0.35rem auto;
    color: var(--dmz-text);
    line-height: 1.65;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.feature-item {
    display: flex;
    min-width: 0;
    min-height: 7.4rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    padding: 0.9rem 0.55rem;
    border: 0;
    border-radius: 0.9rem;
    background: #f7f9fb;
    text-align: center;
    box-shadow: none;
}

.feature-item .feature-icon {
    margin: 0;
    font-size: clamp(2rem, 6vw, 2.65rem);
    line-height: 1;
}

.feature-item strong {
    color: var(--dmz-ink);
    font-size: 0.96rem;
}

.feature-item small {
    display: block;
    color: var(--dmz-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.intro-focus-note {
    margin: 1rem 0 0;
    padding: 1rem;
    border-radius: 0.8rem;
    color: var(--dmz-text);
    background: var(--dmz-warm-soft);
    line-height: 1.7;
}

.intro-focus-note strong {
    color: var(--dmz-ink);
}

.tool-time-note {
    margin: 1rem 0;
    color: var(--dmz-muted);
    text-align: center;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.privacy-notice {
    margin: 1rem 0 0;
    color: var(--dmz-muted);
    font-size: 0.88rem;
    text-align: center;
}

.question-screen {
    padding-bottom: 1rem;
}

.progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dmz-muted);
    font-size: 0.9rem;
}

.progress-heading strong {
    color: var(--dmz-ink);
    white-space: nowrap;
}

.progress-container {
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e4ebf0;
}

.progress-bar {
    width: 5%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--dmz-blue) 0%, var(--dmz-green) 100%);
    transition: width 180ms ease;
}

.dmz-tool .question-card {
    margin-top: 1rem;
}

.question-shell {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.question-heading {
    display: flex;
    min-height: 12rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: clamp(0.75rem, 3vw, 1.35rem) 0.4rem clamp(1.2rem, 4vw, 2rem);
    text-align: center;
}

.question-emoji {
    display: block;
    font-size: clamp(3.8rem, 12vw, 5.2rem);
    line-height: 1;
}

.question-copy {
    max-width: 35rem;
    margin: 0;
    color: var(--dmz-text);
    font-size: clamp(1.16rem, 3.5vw, 1.48rem);
    font-weight: 500;
    line-height: 1.62;
}

.question-copy strong {
    color: var(--dmz-ink);
    font-weight: 850;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    background: linear-gradient(transparent 62%, rgba(126, 186, 157, 0.25) 62%);
}

.question-once-note {
    max-width: 32rem;
    margin: -0.35rem 0 0;
    color: var(--dmz-muted, #5A626A);
    font-size: 0.86rem;
    font-weight: 600;
}

.response-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.response-choice {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 7rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 0.45rem;
    border: 2px solid transparent;
    border-radius: 0.9rem;
    background: #f5f8fa;
    cursor: pointer;
    text-align: center;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

body.tool-standard-ui .response-choice {
    color: var(--dmz-text);
}

.response-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.response-choice__emoji {
    font-size: clamp(2.15rem, 7vw, 2.85rem);
    line-height: 1;
}

.response-choice__label {
    color: inherit;
    font-size: clamp(0.82rem, 2.4vw, 0.95rem);
    font-weight: 700;
    line-height: 1.38;
}

.response-choice__check {
    position: absolute;
    top: 0.5rem;
    right: 0.55rem;
    display: none;
    width: 1.45rem;
    height: 1.45rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--dmz-green);
    font-size: 0.86rem;
    font-weight: 900;
}

.response-choice:has(input:checked) {
    border-color: var(--dmz-green);
    color: var(--dmz-ink);
    background: var(--dmz-green-soft);
    box-shadow: 0 0 0 2px rgba(79, 138, 115, 0.08);
}

.response-choice:has(input:checked) .response-choice__label {
    font-weight: 850;
}

.response-choice:has(input:checked) .response-choice__check {
    display: inline-flex;
}

.question-safety-note {
    margin: -0.8rem 0 1rem;
    padding: clamp(1rem, 3vw, 1.3rem);
    border: 1px solid #c7d9e5;
    border-radius: 1rem;
    background: #f3f8fb;
    scroll-margin-top: calc(var(--header-height, 4.25rem) + 1rem);
}

.question-safety-note[data-status="yes"] {
    border-width: 2px;
    border-color: #a85f54;
    background: #fff5f2;
}

.question-safety-note__heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
}

.question-safety-note__heading > span {
    font-size: 1.8rem;
    line-height: 1;
}

.question-safety-note h3,
.question-safety-note p {
    margin: 0;
}

.question-safety-note h3 {
    color: var(--dmz-ink);
    font-size: 1.08rem;
    line-height: 1.45;
}

.question-safety-note__heading p {
    margin-top: 0.35rem;
    color: var(--dmz-text);
    line-height: 1.6;
}

.current-risk-check {
    margin: 1rem 0 0;
    padding: 0;
    border: 0;
}

.current-risk-check legend {
    padding: 0;
    color: var(--dmz-ink);
    font-weight: 800;
    line-height: 1.5;
}

.current-risk-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.current-risk-choice {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid #bfd0dc;
    border-radius: 0.7rem;
    color: var(--dmz-text);
    background: #fff;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
}

.current-risk-choice:has(input:checked) {
    border-width: 2px;
    border-color: var(--dmz-blue-dark);
    color: var(--dmz-ink);
    background: var(--dmz-blue-soft);
}

.current-risk-choice input {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--dmz-blue-dark);
}

.question-safety-guidance {
    margin-top: 0.8rem !important;
    padding: 0.75rem;
    border-radius: 0.7rem;
    color: var(--dmz-text);
    background: #fff;
    line-height: 1.62;
}

.question-safety-note[data-status="yes"] .question-safety-guidance {
    color: #62372f;
    background: #fff;
    font-weight: 700;
}

.question-safety-continue {
    display: flex;
    min-width: min(100%, 12rem);
    justify-content: center;
    margin: 0.9rem auto 0;
}

.question-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.9rem;
}

.question-nav p {
    margin: 0;
    color: var(--dmz-muted);
    font-size: 0.86rem;
}

.question-nav .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.result-body {
    display: grid;
    gap: 1.25rem;
}

.result-hero {
    padding: clamp(1.3rem, 4vw, 2rem);
    border-radius: 1rem;
    background: linear-gradient(145deg, #eef5fa 0%, #eff7f3 100%);
    text-align: center;
}

.result-hero__emoji {
    display: block;
    margin-bottom: 0.75rem;
    font-size: clamp(4rem, 12vw, 5.4rem);
    line-height: 1;
}

.result-hero h3 {
    margin: 0;
    color: var(--dmz-ink);
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    line-height: 1.45;
}

.result-hero p {
    max-width: 36rem;
    margin: 0.65rem auto 0;
    color: var(--dmz-text);
    line-height: 1.7;
}

.priority-panel {
    padding: clamp(1rem, 3vw, 1.35rem);
    border: 0;
    border-radius: 1rem;
    background: var(--dmz-warm-soft);
}

.priority-panel > h3 {
    margin: 0;
    color: var(--dmz-ink);
    font-size: 1.08rem;
}

.priority-lead {
    margin: 0.65rem 0 0;
    color: var(--dmz-text);
    line-height: 1.65;
}

.priority-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.priority-item {
    padding: 0.9rem;
    border: 1px solid var(--dmz-line);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.78);
}

.priority-item--urgent {
    border-width: 2px;
    border-color: #b9cbd7;
    background: #f7fafc;
}

.priority-item--urgent[data-risk-status="yes"] {
    border-color: #a85f54;
    background: #fff5f2;
}

.priority-item--important {
    border-color: #d3dee5;
}

.priority-item__heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
}

.priority-item__heading strong {
    min-width: 0;
    color: var(--dmz-ink);
}

.priority-item__heading em {
    padding: 0.24rem 0.48rem;
    border-radius: 999px;
    color: var(--dmz-blue-dark);
    background: var(--dmz-blue-soft);
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 750;
    white-space: nowrap;
}

.priority-item p {
    margin: 0.55rem 0 0;
    color: var(--dmz-text);
    font-size: 0.9rem;
    line-height: 1.62;
}

.result-count-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.result-count-grid article {
    display: flex;
    min-width: 0;
    min-height: 6.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 0.45rem;
    border: 0;
    border-radius: 0.85rem;
    background: #f5f8fa;
    text-align: center;
}

.result-count-grid article > span {
    font-size: 1.7rem;
}

.result-count-grid strong {
    color: var(--dmz-ink);
    font-size: clamp(1.2rem, 4vw, 1.55rem);
}

.result-count-grid small {
    color: var(--dmz-muted);
    line-height: 1.3;
}

.few-match-panel {
    padding: 1.1rem;
    border-radius: 0.9rem;
    background: var(--dmz-green-soft);
}

.few-match-panel h3 {
    margin: 0;
    color: var(--dmz-ink);
    font-size: 1.05rem;
}

.few-match-panel p {
    margin: 0.55rem 0 0;
    line-height: 1.65;
}

.result-section {
    padding: clamp(1rem, 3vw, 1.35rem);
    border: 0;
    border-radius: 1rem;
    background: #f7f9fb;
}

.result-section__heading {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

.result-section__heading > span {
    font-size: 1.55rem;
    line-height: 1;
}

.result-section__heading h3,
.result-section__heading p {
    margin: 0;
}

.result-section__heading h3 {
    color: var(--dmz-ink);
    font-size: 1.08rem;
}

.result-section__heading p {
    margin-top: 0.25rem;
    color: var(--dmz-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.zone-grid {
    display: grid;
    gap: 0.65rem;
}

.zone-card {
    padding: 0.95rem;
    border: 0;
    border-radius: 0.8rem;
    background: #fff;
}

.zone-card__heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
}

.zone-card__heading strong {
    min-width: 0;
    color: var(--dmz-ink);
    line-height: 1.45;
}

.zone-card__heading em {
    color: var(--dmz-blue-dark);
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.zone-card p {
    margin: 0.5rem 0 0 1.9rem;
    color: var(--dmz-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.scene-list {
    display: grid;
    gap: 0.75rem;
}

.scene-card {
    padding: 1rem;
    border: 0;
    border-radius: 0.85rem;
    background: #fff;
}

.scene-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
    color: var(--dmz-muted);
    font-size: 0.78rem;
}

.scene-card__meta em {
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    color: var(--dmz-blue-dark);
    background: var(--dmz-blue-soft);
    font-style: normal;
    font-weight: 750;
    white-space: nowrap;
}

.scene-card h4 {
    margin: 0;
    color: var(--dmz-ink);
    font-size: 1rem;
    line-height: 1.55;
}

.scene-card > p {
    margin: 0.5rem 0 0;
    color: var(--dmz-text);
    font-size: 0.88rem;
    line-height: 1.62;
}

.scene-card .scene-card__action {
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 0.7rem;
    background: var(--dmz-green-soft);
}

.scene-card__action strong {
    color: var(--dmz-green);
    font-size: 0.78rem;
}

.all-scenes-details {
    margin-top: 0.8rem;
}

.all-scenes-details > summary {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border: 1px solid var(--dmz-line);
    border-radius: 0.75rem;
    color: var(--dmz-blue-dark);
    background: #fff;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.all-scenes-details > summary::after {
    content: "⌄";
    margin-left: 0.55rem;
    font-size: 1rem;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform 160ms ease;
}

.all-scenes-details > summary::-webkit-details-marker {
    display: none;
}

.all-scenes-details[open] > summary {
    margin-bottom: 0.75rem;
    background: var(--dmz-blue-soft);
}

.all-scenes-details[open] > summary::after {
    transform: rotate(180deg);
}

.today-distance {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: clamp(1rem, 3vw, 1.35rem);
    border: 0;
    border-radius: 1rem;
    background: linear-gradient(145deg, #eef7f2 0%, #e6f2eb 100%);
}

.today-distance__emoji {
    flex: 0 0 auto;
    font-size: clamp(2.6rem, 8vw, 3.5rem);
    line-height: 1;
}

.today-distance h3,
.today-distance p {
    margin: 0;
}

.today-distance h3 {
    color: var(--dmz-ink);
    font-size: 1.08rem;
}

.today-distance p {
    margin-top: 0.35rem;
    color: var(--dmz-text);
    font-weight: 650;
    line-height: 1.65;
}

.result-next-tools {
    padding: clamp(1rem, 3vw, 1.35rem);
    border-radius: 1rem;
    background: #f7f9fb;
}

.result-next-tools > h3 {
    margin: 0 0 0.85rem;
    color: var(--dmz-ink);
    font-size: 1.08rem;
    text-align: center;
}

.next-tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.next-tool-card {
    display: flex;
    min-height: 4.9rem;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--dmz-line);
    border-radius: 0.8rem;
    color: var(--dmz-text);
    background: #fff;
    text-decoration: none;
}

.next-tool-card > span:first-child {
    flex: 0 0 auto;
    font-size: 1.65rem;
}

.next-tool-card > span:last-child {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.next-tool-card strong {
    color: var(--dmz-ink);
}

.next-tool-card small {
    color: var(--dmz-muted);
    line-height: 1.45;
}

.result-actions {
    display: grid;
    justify-items: center;
    gap: 0.8rem;
    padding: 1rem;
    text-align: center;
}

.result-actions p {
    margin: 0;
    color: var(--dmz-muted);
    font-size: 0.88rem;
}

.result-actions .btn {
    min-width: min(100%, 15rem);
}

.result-disclaimer {
    margin: 0;
    color: var(--dmz-muted);
    font-size: 0.82rem;
    line-height: 1.58;
    text-align: center;
}

.toast-message {
    position: fixed;
    z-index: 10001;
    right: 1rem;
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    max-width: min(22rem, calc(100vw - 2rem));
}

@media (any-hover: hover) {
    .dmz-tool .btn-secondary:hover,
    .next-tool-card:hover,
    .all-scenes-details > summary:hover {
        color: var(--dmz-blue-dark);
        border-color: #a9c4d7;
        background: var(--dmz-blue-soft);
    }

    .dmz-tool .btn-primary:hover {
        border-color: var(--dmz-blue);
        background: var(--dmz-blue);
    }

    .response-choice:hover {
        border-color: #b9cedc;
        background: var(--dmz-blue-soft);
        transform: translateY(-1px);
    }
}

@media (max-width: 48rem) {
    .dmz-tool .header {
        padding-block: 1.55rem;
    }

    .dmz-tool .card-header {
        align-items: flex-start;
    }

    .feature-item {
        min-height: 6.8rem;
        padding-inline: 0.35rem;
    }

    .question-heading {
        min-height: 10.5rem;
    }

    .response-choice {
        min-height: 6.5rem;
    }

    .question-nav p {
        display: none;
    }

    .question-nav {
        justify-content: flex-start;
    }

    .priority-item__heading,
    .zone-card__heading {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .priority-item__heading em,
    .zone-card__heading em {
        grid-column: 2;
        justify-self: start;
    }

    .zone-card p {
        margin-left: 0;
    }
}

@media (max-width: 30rem) {
    .dmz-tool .container {
        padding-inline: 0.75rem;
    }

    .dmz-tool .card-body {
        padding: 0.95rem;
    }

    .dmz-tool .card-header {
        padding: 0.95rem;
    }

    .feature-grid,
    .response-grid,
    .result-count-grid {
        gap: 0.45rem;
    }

    .feature-item {
        min-height: 6.35rem;
    }

    .feature-item small {
        font-size: 0.72rem;
    }

    .response-choice {
        min-height: 4.75rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 0.75rem 3rem 0.75rem 0.9rem;
        text-align: left;
    }

    .response-grid,
    .result-count-grid,
    .current-risk-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .response-choice__emoji {
        flex: 0 0 auto;
        font-size: 2rem;
    }

    .response-choice__check {
        top: 0.35rem;
        right: 0.35rem;
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.74rem;
    }

    .response-choice__label {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .result-count-grid article {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        min-height: 3.75rem;
        justify-content: start;
        gap: 0.65rem;
        padding: 0.65rem 0.8rem;
        text-align: left;
    }

    .result-count-grid small {
        font-size: 0.82rem;
    }

    .scene-card__meta {
        align-items: flex-start;
    }

    .today-distance {
        align-items: flex-start;
    }

}

/* #intro-card and .feature-item get their surface flipped to a dark
   background by shared site styles, but .feature-item strong/small,
   .tool-time-note, and .privacy-notice stay pinned to --dmz-ink/--dmz-muted
   (fixed dark colors meant for the fixed light cards elsewhere in this
   tool). Reset those specific spots to a light color so they stay readable
   against the flipped dark surface. */
@media (prefers-color-scheme: dark) {
    .feature-item strong {
        color: #e8eaed;
    }

    .feature-item small,
    .tool-time-note,
    .privacy-notice {
        color: #bdc1c6;
    }

    .progress-heading {
        color: #bdc1c6;
    }

    .progress-heading strong {
        color: #e8eaed;
    }

    .dmz-tool .result-card-wrapper .card-title,
    .dmz-tool .result-next-tools > h3 {
        color: #e8eaed;
    }
}

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

@media (forced-colors: active) {
    .dmz-tool .card,
    .response-choice,
    .priority-panel,
    .priority-item,
    .result-count-grid article,
    .result-section,
    .zone-card,
    .scene-card,
    .today-distance,
    .next-tool-card {
        border: 1px solid CanvasText;
        box-shadow: none;
    }

    .question-safety-note,
    .current-risk-choice {
        border: 1px solid CanvasText;
        box-shadow: none;
    }

    .response-choice:has(input:checked) {
        border: 3px solid Highlight;
    }

    .response-choice__check {
        color: HighlightText;
        background: Highlight;
    }

    .current-risk-choice:has(input:checked) {
        border: 3px solid Highlight;
    }
}

body.dmz-tool.tool-standard-ui .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.dmz-tool.tool-standard-ui .feature-item {
    border: 0 !important;
    background: #f7f9fb !important;
    box-shadow: none !important;
}

body.dmz-tool.tool-standard-ui .feature-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* Keep the privacy promise readable without presenting it as another card. */
body.dmz-tool.tool-standard-ui #intro-card .privacy-notice {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.dmz-tool .result-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center !important;
}

body.dmz-tool .result-actions .btn {
    order: 1;
    justify-self: center;
}

body.dmz-tool .result-actions p {
    order: 2;
    width: 100%;
}

@media (max-width: 48rem) {
    body.dmz-tool.tool-standard-ui #intro-card .feature-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.55rem;
    }

    body.dmz-tool.tool-standard-ui #intro-card .feature-item {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        min-height: 0;
        align-items: center;
        gap: 0.2rem 0.72rem;
        padding: 0.68rem 0.75rem;
        text-align: left;
    }

    body.dmz-tool.tool-standard-ui #intro-card .feature-item .feature-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
        margin: 0;
        font-size: 2.2rem;
    }

    body.dmz-tool.tool-standard-ui #intro-card .feature-item strong,
    body.dmz-tool.tool-standard-ui #intro-card .feature-item small {
        grid-column: 2;
        margin: 0;
    }

    body.dmz-tool.tool-standard-ui #intro-card .card-header {
        text-align: center;
    }

    body.dmz-tool.with-sticky-header .fab-stack-container.site-chrome-fab-stack {
        top: calc(env(safe-area-inset-top, 0px) + (var(--header-height, 4.25rem) - 44px) / 2) !important;
        inset-block-start: calc(env(safe-area-inset-top, 0px) + (var(--header-height, 4.25rem) - 44px) / 2) !important;
        right: calc(max(1rem, env(safe-area-inset-right, 0px)) + 44px + 0.75rem) !important;
        inset-inline-end: calc(max(1rem, env(safe-area-inset-right, 0px)) + 44px + 0.75rem) !important;
        bottom: auto !important;
        inset-block-end: auto !important;
        width: 44px !important;
        height: 44px !important;
        z-index: 5001 !important;
    }

    body.dmz-tool.with-sticky-header .emergency-fab {
        width: 44px !important;
        height: 44px !important;
    }

    body.dmz-tool.with-sticky-header .emergency-modal {
        top: calc(
            env(safe-area-inset-top, 0px)
            + var(--header-height, 4.25rem)
            + var(--site-journey-bar-height, 0rem)
            + 0.75rem
        ) !important;
        inset-block-start: calc(
            env(safe-area-inset-top, 0px)
            + var(--header-height, 4.25rem)
            + var(--site-journey-bar-height, 0rem)
            + 0.75rem
        ) !important;
        right: max(0.75rem, env(safe-area-inset-right, 0px)) !important;
        left: max(0.75rem, env(safe-area-inset-left, 0px)) !important;
        inset-inline: max(0.75rem, env(safe-area-inset-left, 0px)) max(0.75rem, env(safe-area-inset-right, 0px)) !important;
        bottom: auto !important;
        inset-block-end: auto !important;
        width: auto !important;
        max-height: calc(
            100dvh
            - var(--header-height, 4.25rem)
            - var(--site-journey-bar-height, 0rem)
            - 1.5rem
            - env(safe-area-inset-bottom, 0px)
        ) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        transform-origin: 100% 0;
    }
}
