:root {
    background: #f7f0e6;
    color: #202b25;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 100%;
    line-height: 1.5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.auth-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(17rem, 0.8fr) minmax(0, 1.2fr); }
.intro {
    background: #21372e;
    color: #ffecd9;
    display: grid;
    align-content: center;
    gap: 1.25rem;
    padding: clamp(2rem, 8vw, 7rem);
    border-bottom: 0.5rem solid #c87855;
}
.wordmark { font: 700 clamp(2.25rem, 5vw, 4.25rem)/1 Georgia, serif; letter-spacing: -0.08em; }
.wordmark span { color: #ffb184; }
.intro p { max-width: 25ch; margin: 0; color: #f1e9dc; }
.access { display: grid; justify-items: stretch; align-content: center; margin: 0 auto; padding: clamp(1rem, 5vw, 4rem); width: min(100%, 43rem); }
.panel { background: #fffaf4; border: 1px solid #dfd3c7; border-radius: 0.9rem; padding: clamp(1.15rem, 5vw, 2.25rem); min-width: 0; }
h1, h2 { line-height: 1.15; margin: 0 0 0.9rem; }
h1 { font: 700 clamp(1.75rem, 5vw, 2.4rem)/1.05 Georgia, serif; }
h2 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
form, .fields { display: grid; gap: 0.85rem; }
label { display: grid; gap: 0.25rem; font-weight: 600; }
input, select, textarea, button { min-height: 2.75rem; font: inherit; border-radius: 0.4rem; }
input, select, textarea { min-width: 0; width: 100%; border: 1px solid #786e63; background: #fff; color: inherit; padding: 0.5rem 0.65rem; }
input[type="checkbox"] { width: 1.2rem; min-height: 1.2rem; margin: 0.2rem 0; }
.check { grid-template-columns: auto 1fr; align-items: center; justify-content: start; }
button { border: 1px solid #21372e; padding: 0.45rem 0.85rem; background: #21372e; color: white; font-weight: 650; cursor: pointer; }
button:disabled { opacity: 0.65; cursor: wait; }
button.secondary { background: transparent; color: #21372e; }
button.secondary:hover { background: #e9eee8; }
:focus-visible { outline: 3px solid #a84927; outline-offset: 3px; }
.notice { padding: 0.65rem 0.85rem; background: #f2e0d2; border: 1px solid #d6af98; border-radius: 0.4rem; }
.notice[data-kind="success"] { background: #e7f2e8; border-color: #82a38b; color: #1e462e; }
.notice[data-kind="error"] { background: #fae8e3; border-color: #bd7667; color: #752d20; }
.password-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.5rem; }
.password-control button { max-width: 10rem; }
.hint { font-size: 0.94rem; margin: 0; }
meter { width: 100%; }
.invitation-recipient { overflow-wrap: anywhere; }
details { margin-bottom: 1rem; }
.actions a { display: inline-flex; align-items: center; color: #21372e; padding: 0.5rem; }
nav button[aria-current] { border-width: 2px; background: #e9eee8; }
details > summary { cursor: pointer; padding-block: 0.4rem; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.product-photo { display: block; max-inline-size: min(100%, 18rem); max-block-size: 12rem; object-fit: contain; }
.recipe-text { white-space: pre-wrap; }
fieldset { min-inline-size: 0; border: 1px solid #bdc7ba; }
.team-forms { display: grid; gap: 1rem; margin-top: 1rem; }
.section { border-top: 1px solid #dfd3c7; padding-top: 1rem; margin-top: 1.25rem; }
canvas { max-width: 100%; height: auto; margin: 0 0 0.6rem; image-rendering: pixelated; }
code, output { overflow-wrap: anywhere; }
output { display: block; padding: 0.65rem; background: #e9eee8; }
ul { padding-inline-start: 1.3rem; }
li { margin-block: 0.3rem; }
@media (max-width: 48rem) {
    .auth-shell { grid-template-columns: 1fr; }
    .intro { padding: 1.25rem max(1rem, calc((100vw - 40rem) / 2)); gap: 0; align-content: start; }
    .intro p { display: none; }
    .access { align-content: start; }
    .password-control { grid-template-columns: 1fr; }
    .password-control button { justify-self: start; max-width: none; }
}
