:root {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #213a34;
    background: #f6f5f0;
    font-size: 16px;
    line-height: 1.55;
    --green: #153c35;
    --border: #d9ded6;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
header,
main,
footer {
    max-width: 1040px;
    margin: auto;
    padding: 24px max(20px, env(safe-area-inset-left));
}
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 750;
    text-decoration: none;
}
.brand span {
    font-size: 18px;
}
.private {
    font-size: 12px;
    color: #52665f;
}
.hero {
    padding: 30px 0;
}
.hero h1 {
    font-size: clamp(32px, 7vw, 52px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 700px;
}
h1 {
    font-size: 32px;
    line-height: 1.2;
}
h2 {
    font-size: 21px;
}
h3 {
    font-size: 18px;
}
p {
    max-width: 70ch;
}
a {
    color: var(--green);
    text-underline-offset: 4px;
}
a,
button,
input,
textarea,
select,
summary {
    touch-action: manipulation;
}
button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid var(--green);
    border-radius: 12px;
    background: var(--green);
    color: white;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    white-space: normal;
}
button:disabled {
    opacity: 0.65;
    cursor: wait;
}
.secondary {
    background: transparent;
    color: var(--green);
}
:focus-visible {
    outline: 3px solid #bd6907;
    outline-offset: 4px;
}
.eyebrow {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.12em;
    font-weight: 750;
    color: #53685a;
}
.navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 2;
}
.navigation a {
    flex: 1;
    max-width: 200px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 650;
    border-radius: 10px;
}
.navigation a[aria-current="page"] {
    background: #e6eee7;
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.stats a {
    padding: 18px 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    font-size: 13px;
    background: white;
}
.stats strong {
    display: block;
    font-size: 32px;
}
.cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin: 20px 0;
}
.card {
    display: block;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    overflow-wrap: anywhere;
}
.card h2 {
    margin: 0;
}
.card p {
    margin: 10px 0;
}
.heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.badge {
    background: #e8eee4;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    text-transform: capitalize;
}
.notice,
.warning {
    background: #fff1d9;
    border-radius: 12px;
    padding: 16px;
    color: #674a20;
    overflow-wrap: anywhere;
}
.empty {
    padding: 36px 20px;
    border: 1px dashed #9baaa0;
    border-radius: 18px;
    text-align: center;
}
.empty p {
    margin: 14px auto;
}
.muted,
small {
    color: #52655d;
}
form {
    max-width: 600px;
    margin: 20px 0;
}
label {
    display: block;
    font-weight: 600;
    margin: 16px 0;
}
label span {
    font-weight: 400;
    color: #52655d;
}
input,
textarea,
select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #9dab9f;
    background: white;
    color: #213a34;
    border-radius: 10px;
    font: inherit;
    font-size: 16px;
}
textarea {
    min-height: 120px;
    resize: vertical;
}
.pager {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
}
.pager a,
.pager span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
details {
    margin: 20px 0;
}
summary {
    cursor: pointer;
    min-height: 48px;
    padding: 12px 0;
    font-weight: 600;
}
.check {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
}
.check input {
    width: 24px;
    min-height: 24px;
    flex-shrink: 0;
    margin: 0;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.actions form {
    margin: 0;
}
dt {
    font-size: 13px;
    color: #52655d;
    margin-top: 16px;
}
dd {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.timeline {
    padding-left: 24px;
}
.timeline li {
    padding: 4px 0 20px 12px;
    border-left: 2px solid var(--border);
}
section {
    margin-bottom: 36px;
}
footer {
    font-size: 12px;
    color: #52655d;
}
.skip {
    position: absolute;
    top: -100px;
}
.skip:focus {
    top: 8px;
    left: 8px;
    background: #fff;
    padding: 12px;
    z-index: 10;
}
[hidden] {
    display: none !important;
}
main {
    overflow-wrap: anywhere;
}
#feedback:empty {
    display: none;
}
@media (min-width: 720px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stats a {
        padding: 24px;
        font-size: 16px;
    }
    header,
    main {
        padding-top: 32px;
    }
    .private {
        font-size: 14px;
    }
}
main a:not(.card) {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.stats a:not(.card) {
    display: block;
}

.scan-video {
    width: 100%;
    max-height: 45vh;
    object-fit: cover;
    border-radius: 0.75rem;
    background: #153c35;
}
.scan-result {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--line, #c8d7d0);
    border-radius: 0.75rem;
}
.scan-result img {
    width: 7.5rem;
    height: 10rem;
    object-fit: contain;
    margin-bottom: 0.75rem;
}
.scan-result h2 {
    overflow-wrap: anywhere;
}
