.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

:root {
    --ink: #18322c;
    --muted: #687b75;
    --paper: #f7f5ee;
    --card: #fffefa;
    --line: #deddd3;
    --green: #1f6f5c;
    --green-dark: #165244;
    --mint: #dcebe4;
    --sun: #e8a848;
    --coral: #d76c57;
    --shadow: 0 12px 35px rgba(33, 51, 45, .08);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .32; background-image: radial-gradient(rgba(31,111,92,.13) .55px, transparent .55px); background-size: 12px 12px; }
a { color: var(--green); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
h1 { margin-bottom: 1rem; font-size: clamp(2.35rem, 6vw, 4.9rem); line-height: .98; }
h2 { margin-bottom: .2rem; font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { margin-bottom: .25rem; }
em { color: var(--green); font-weight: 400; }

.app-shell { min-height: 100vh; padding-bottom: 6.5rem; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; height: 74px; padding: 0 max(1rem, calc((100vw - 1180px)/2)); border-bottom: 1px solid rgba(24,50,44,.09); background: rgba(247,245,238,.9); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px 4px 12px 4px; color: white; background: var(--green); font-family: Georgia, serif; font-size: 1.35rem; }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand small { margin-top: .25rem; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.avatar-button { width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--green-dark); background: var(--mint); font-size: .75rem; font-weight: 800; }
.page-frame { position: relative; z-index: 1; width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) 0; }
.bottom-nav { position: fixed; z-index: 25; bottom: 1rem; left: 50%; display: flex; gap: .25rem; padding: .45rem; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; background: rgba(24,50,44,.95); box-shadow: 0 12px 40px rgba(24,50,44,.3); backdrop-filter: blur(20px); }
.bottom-nav a { display: flex; align-items: center; gap: .45rem; padding: .75rem 1rem; border-radius: 14px; color: #d9e4e0; font-size: .8rem; font-weight: 700; }
.bottom-nav a span { font-size: 1.1rem; }
.bottom-nav a.active { color: var(--ink); background: #f6f2e6; }
.loading-screen { display: grid; place-items: center; min-height: 55vh; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--mint); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow { margin-bottom: .6rem; color: var(--green); font-size: .72rem; font-weight: 850; letter-spacing: .17em; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.page-heading h1 { max-width: 850px; margin-bottom: 0; }
.page-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.household-pill { padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--card); white-space: nowrap; }
.hero { min-height: 67vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.guest-hero { max-width: 850px; }
.guest-hero p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-size: 1.15rem; line-height: 1.7; }
.content-narrow { max-width: 680px; margin: 0 auto; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .72rem 1.1rem; border: 1px solid transparent; border-radius: 11px; font-weight: 750; transition: .16s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--green); box-shadow: 0 7px 18px rgba(31,111,92,.2); }
.button.primary:hover { background: var(--green-dark); }
.button.ghost { color: var(--green); border-color: var(--line); background: transparent; }
.button.small { min-height: 36px; padding: .45rem .75rem; font-size: .82rem; }
.button.wide { width: 100%; margin-top: .5rem; }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.text-button, .icon-button { border: 0; color: var(--green); background: transparent; font-weight: 750; }
.icon-button { font-size: 1.4rem; }

.segmented { display: flex; gap: .25rem; margin-bottom: 1.25rem; padding: .25rem; border-radius: 12px; background: #e9e7de; }
.segmented button { flex: 1; padding: .7rem; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 700; }
.segmented button.active { color: var(--ink); background: var(--card); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.form-card, .inline-form-card { padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.form-card label { display: grid; gap: .45rem; margin-bottom: 1rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.form-card.wide-card { margin-bottom: 2rem; }
.form-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.form-card-heading h2 { margin: 0; }
.compact-form { box-shadow: none; }
.form-grid { display: grid; gap: 1rem; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inline-fields { display: grid; grid-template-columns: 90px 1fr; gap: .5rem; }
input, select, textarea { width: 100%; min-height: 43px; padding: .68rem .75rem; border: 1px solid #cbcfc8; border-radius: 10px; color: var(--ink); background: white; outline: none; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,111,92,.1); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }
.check-row { display: flex !important; grid-template-columns: none !important; align-items: center; gap: .55rem !important; }
.validation-message, .validation-summary-errors { color: #a83d2d; font-size: .78rem; }
.weekday-picker { display: flex; gap: .5rem; margin: 0 0 1rem; padding: 0; border: 0; }
.weekday-picker legend { width: 100%; margin-bottom: .5rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.weekday-picker label input { position: absolute; opacity: 0; }
.weekday-picker label span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: white; }
.weekday-picker label:has(input:checked) span { color: white; border-color: var(--green); background: var(--green); }
.member-picker { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.member-picker legend { padding: 0 .35rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.member-picker label { display: flex; align-items: center; gap: .4rem; margin: 0; padding: .45rem .65rem; border-radius: 9px; background: #f0eee7; }
.form-actions { display: flex; justify-content: flex-end; gap: .6rem; }

.auth-layout { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(2rem, 8vw, 8rem); min-height: 65vh; }
.auth-copy p:not(.eyebrow) { max-width: 530px; color: var(--muted); line-height: 1.7; }
.auth-card { padding: 2rem; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.auth-card label { display: grid; gap: .45rem; margin-bottom: 1rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.fine-print, .muted { color: var(--muted); font-size: .78rem; line-height: 1.5; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 3rem; }
.metric-grid article { display: flex; align-items: baseline; gap: .8rem; padding: 1.35rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.metric-grid article span:last-child { color: var(--muted); font-size: .83rem; }
.metric-number { font-family: Georgia, serif; color: var(--green); font-size: 2.2rem; }
.section-block { margin-bottom: 2.5rem; }
.muted-section, .spotlight { padding: 1.5rem; border-radius: 20px; background: #ece9df; }
.spotlight { background: var(--mint); }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-title .eyebrow { margin-bottom: .25rem; }
.section-title h2 { margin-bottom: 0; }
.empty-state { display: grid; place-items: center; min-height: 180px; padding: 2rem; border: 1px dashed #bdc7c1; border-radius: 18px; color: var(--muted); text-align: center; background: rgba(255,255,255,.45); }
.empty-state span { color: var(--sun); font-family: Georgia, serif; font-size: 2rem; }
.chore-list { display: grid; gap: .65rem; }
.chore-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: 0 4px 16px rgba(33,51,45,.04); }
.chore-card.completed { opacity: .58; }
.effort-badge { display: grid; flex: 0 0 auto; place-items: center; width: 39px; height: 39px; border-radius: 11px; color: var(--green-dark); background: var(--mint); font-weight: 850; }
.chore-main { min-width: 0; flex: 1; }
.chore-main h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chore-main p, .chore-main small { margin: 0; color: var(--muted); font-size: .8rem; }
.chore-title-row { display: flex; align-items: center; gap: .65rem; }
.status { padding: .18rem .42rem; border-radius: 99px; color: var(--muted); background: #edede8; font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.status.completed { color: var(--green-dark); background: var(--mint); }
.chore-meta { display: flex; gap: .5rem; margin-top: .45rem; }
.chore-meta span { padding: .18rem .4rem; border-radius: 5px; color: #80551c; background: #f8e7c9; font-size: .68rem; font-weight: 700; }
.complete-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #aabeb7; border-radius: 50%; color: var(--green); background: white; font-size: 1.1rem; }
.complete-button:hover { color: white; background: var(--green); }
.upcoming-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.upcoming-strip article { display: grid; gap: .35rem; padding: 1rem; border-radius: 12px; background: rgba(255,255,255,.65); }
.upcoming-strip strong { color: var(--green); font-size: .72rem; text-transform: uppercase; }
.upcoming-strip small { color: var(--muted); }
.filter-row { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.chip { padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--card); }
.chip.active { color: white; border-color: var(--green); background: var(--green); }
.day-group { margin-bottom: 2rem; }
.day-group > h2 { margin-bottom: .75rem; font-size: 1.35rem; }
.completion-panel { display: flex; gap: .6rem; margin: -.35rem .6rem .5rem; padding: .7rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: #f1efe7; }
.completion-panel input { min-width: 150px; flex: 1; min-height: 36px; }
.file-button { display: inline-flex; align-items: center; justify-content: center; padding: .5rem .7rem; border: 1px dashed #9baca6; border-radius: 9px; color: var(--green); background: white; cursor: pointer; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.file-button input { display: none; }
.template-list { display: grid; gap: .6rem; }
.template-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.template-card > div:first-child { min-width: 0; flex: 1; }
.template-card h3, .template-card p { margin: 0; }
.template-card p { margin-top: .2rem; color: var(--muted); font-size: .75rem; }
.audience-pill { padding: .3rem .55rem; border-radius: 99px; color: var(--green-dark); background: var(--mint); font-size: .68rem; font-weight: 800; white-space: nowrap; }
.template-actions { display: flex; align-items: center; gap: .4rem; }
.button.danger { color: white; background: #a84535; }
.danger-text { color: #a84535; }
.archived-chores { margin-top: .8rem; padding: .8rem 1rem; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.archived-chores summary { cursor: pointer; font-size: .8rem; font-weight: 800; }
.archived-chores article { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.archived-chores article:last-child { border-bottom: 0; }
.archived-chores article div { display: grid; flex: 1; }
.archived-chores article small { margin-top: .15rem; }

.content-columns { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; }
.inline-form-card { display: grid; grid-template-columns: 1fr 130px 160px auto; gap: .6rem; margin-bottom: 1rem; padding: .75rem; box-shadow: none; }
.member-list, .absence-list { display: grid; gap: .6rem; }
.member-list article, .absence-list article { display: flex; align-items: center; gap: .8rem; padding: .9rem; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.member-list article > div:nth-child(2), .absence-list article > div { display: grid; flex: 1; }
.member-list span, .absence-list span, .absence-list small { color: var(--muted); font-size: .75rem; }
.member-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: white; background: var(--green); font-family: Georgia, serif; }
.connected { color: var(--green) !important; font-size: .68rem !important; font-weight: 800; text-transform: uppercase; }
.invitation-box { display: grid; gap: .4rem; margin-top: 1rem; padding: 1rem; border-radius: 13px; color: var(--green-dark); background: var(--mint); }
.invitation-box p, .invitation-box small { margin: 0; }
.invitation-box code { overflow-wrap: anywhere; color: var(--ink); }

.week-control { display: grid; gap: .35rem; min-width: 190px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.spot-check-form { display: grid; grid-template-columns: 1fr 1fr 1.15fr 1.4fr auto auto; gap: .6rem; }
.spot-check-form > * { min-width: 0; }
.pass-fail { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 43px; padding: .4rem; border-radius: 10px; background: white; }
.pass-fail label { font-size: .75rem; font-weight: 700; }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.review-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.review-card.locked { border-color: #a9c5ba; background: #f5faf7; }
.review-card-head { display: flex; align-items: center; gap: .7rem; }
.review-card-head > div:nth-child(2) { flex: 1; }
.review-card-head h3 { margin: 0; }
.review-card-head span { color: var(--muted); font-size: .72rem; }
.review-card-head > strong { font-family: Georgia, serif; color: var(--green); font-size: 1.8rem; }
.score-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1rem 0; }
.score-row div { display: grid; padding: .7rem; border-radius: 10px; text-align: center; background: #f0eee7; }
.score-row span { font-weight: 850; }
.score-row small { color: var(--muted); font-size: .64rem; }
.explanation { min-height: 2.5rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.review-adjust { display: grid; grid-template-columns: 130px 1fr auto; align-items: end; gap: .55rem; }
.review-adjust label { color: var(--muted); font-size: .7rem; font-weight: 700; }
.review-adjust input { margin-top: .3rem; }
blockquote { margin: 1rem 0 0; padding: .7rem 1rem; border-left: 3px solid var(--green); color: var(--muted); background: var(--mint); }
.check-history { display: grid; gap: .5rem; }
.check-history article { display: flex; align-items: center; gap: .75rem; padding: .8rem; border-bottom: 1px solid rgba(24,50,44,.1); }
.check-history article > div { flex: 1; }
.check-history p { margin: .15rem 0 0; color: var(--muted); font-size: .78rem; }
.check-history small { color: var(--muted); }
.result-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); }
.result-dot.pass { background: var(--green); }

.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.settings-card { display: flex; align-items: flex-start; gap: 1rem; min-height: 230px; padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.settings-card h2 { font-size: 1.45rem; }
.settings-card p { color: var(--muted); font-size: .85rem; line-height: 1.6; }
.settings-icon { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--green); background: var(--mint); font-weight: 900; }
.status-line { display: inline-block; padding: .35rem .55rem; border-radius: 7px; font-size: .68rem; font-weight: 800; }
.status-line.ready { color: var(--green-dark); background: var(--mint); }
.status-line.waiting { color: #80551c; background: #f8e7c9; }
.notice { padding: .8rem 1rem; border-radius: 11px; font-size: .82rem; }
.notice.error { color: #7c2d21; background: #f8ded8; }
.notice.success { color: var(--green-dark); background: var(--mint); }
.floating-notice { position: fixed; z-index: 50; right: 1rem; bottom: 6.8rem; max-width: 420px; box-shadow: var(--shadow); }
.skeleton-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.skeleton-grid div { height: 130px; border-radius: 16px; background: linear-gradient(100deg, #e8e6de 35%, #f4f2eb 50%, #e8e6de 65%); background-size: 300% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position-x: -300%; } }

@media (max-width: 850px) {
    .auth-layout, .content-columns { grid-template-columns: 1fr; }
    .auth-copy { display: none; }
    .settings-grid, .review-grid { grid-template-columns: 1fr; }
    .spot-check-form { grid-template-columns: 1fr 1fr; }
    .inline-form-card { grid-template-columns: 1fr 1fr; }
    .upcoming-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .app-shell { padding-bottom: 5.7rem; }
    .topbar { height: 62px; }
    .page-frame { width: min(100% - 1.2rem, 1180px); padding-top: 1.8rem; }
    .page-heading { display: grid; gap: 1rem; }
    .page-heading-actions { justify-content: flex-start; }
    .page-heading h1 { font-size: 2.55rem; }
    .bottom-nav { bottom: .5rem; width: calc(100% - 1rem); justify-content: space-around; border-radius: 16px; }
    .bottom-nav a { flex-direction: column; flex: 1; gap: .15rem; padding: .5rem .25rem; font-size: .62rem; }
    .metric-grid { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
    .metric-grid article { display: grid; gap: .15rem; padding: .8rem .6rem; }
    .metric-number { font-size: 1.65rem; }
    .form-grid.two, .spot-check-form, .review-adjust { grid-template-columns: 1fr; }
    .completion-panel { flex-wrap: wrap; }
    .completion-panel input { flex-basis: 100%; }
    .chore-card { gap: .65rem; padding: .8rem; }
    .chore-title-row { align-items: flex-start; flex-direction: column; gap: .2rem; }
    .upcoming-strip { display: flex; overflow-x: auto; }
    .upcoming-strip article { min-width: 155px; }
    .inline-form-card { grid-template-columns: 1fr; }
    .score-row { gap: .25rem; }
    .review-card { padding: 1rem; }
    .template-card { align-items: flex-start; flex-wrap: wrap; }
    .template-actions { width: 100%; }
    .audience-pill { margin-left: auto; }
}
