:root {
    color-scheme: light;
    --ink: #20251f;
    --muted: #687067;
    --cream: #f5f1e8;
    --paper: #fffdf8;
    --green: #245c45;
    --green-dark: #163d2d;
    --gold: #d8a94e;
    --danger: #9a312c;
    --line: #ddd8cb;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 10%, rgba(216, 169, 78, .18), transparent 28rem),
        linear-gradient(145deg, #faf7ef, var(--cream));
}

.shell { width: min(100% - 32px, 760px); margin: 0 auto; padding: 42px 0 64px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.brand-mark {
    width: 42px; height: 42px; display: grid; place-items: center;
    border-radius: 50%; background: var(--green); color: white; font: 700 22px Georgia, serif;
}
.brand-name { font: 600 18px Georgia, serif; letter-spacing: .04em; }
.card {
    background: rgba(255, 253, 248, .96); border: 1px solid rgba(221, 216, 203, .9);
    border-radius: 24px; padding: clamp(24px, 6vw, 52px); box-shadow: 0 22px 60px rgba(45, 48, 38, .10);
}
.eyebrow { color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 10px 0 12px; font: 600 clamp(36px, 8vw, 58px)/1.03 Georgia, serif; letter-spacing: -.035em; }
h2 { margin: 0; font: 600 23px/1.2 Georgia, serif; }
p { color: var(--muted); line-height: 1.65; }
label { display: block; margin: 28px 0 9px; font-weight: 750; }
input, textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 13px; background: white;
    color: var(--ink); padding: 15px 16px; font: inherit; outline: none;
}
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(36, 92, 69, .13); }
.pin { font-size: 28px; font-weight: 750; letter-spacing: .32em; text-align: center; font-variant-numeric: tabular-nums; }
button {
    border: 0; border-radius: 13px; padding: 14px 20px; background: var(--green); color: white;
    font-family: inherit; font-size: 16px; font-weight: 750;
    cursor: pointer; transition: transform .15s ease, background .15s ease;
}
button:hover { background: var(--green-dark); transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .65; transform: none; }
.primary { width: 100%; margin-top: 18px; }
.error { color: var(--danger); min-height: 1.4em; font-weight: 650; }
.hidden { display: none !important; }
.header-row { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 28px; }
.table-name { color: var(--muted); margin: 5px 0 0; }
.server-name { color: var(--ink); margin: 2px 0 0; }
.request-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.request-card {
    display: flex; flex-direction: column; text-align: left; min-height: 150px; padding: 20px;
    color: var(--ink); background: white; border: 1px solid var(--line); box-shadow: none;
}
.request-card:hover { color: white; border-color: var(--green); }
.request-title { font: 600 21px Georgia, serif; }
.request-description { margin-top: 9px; color: var(--muted); font-weight: 450; line-height: 1.45; }
.request-card:hover .request-description { color: rgba(255,255,255,.78); }
.section { margin-top: 34px; }
.activity { display: grid; gap: 10px; margin-top: 14px; }
.activity-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.status { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.quiet { background: transparent; color: var(--muted); padding: 8px; font-size: 14px; }
.quiet:hover { background: transparent; color: var(--ink); transform: none; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(22, 31, 26, .55); }
.modal-card { width: min(100%, 520px); background: var(--paper); border-radius: 20px; padding: 28px; box-shadow: 0 20px 70px rgba(0,0,0,.25); }
.modal-actions { display: flex; justify-content: end; gap: 10px; margin-top: 20px; }
.secondary { background: #e8e4da; color: var(--ink); }
.thank-you-shell, .session-status-shell { width: min(100% - 32px, 620px); }
.thank-you-card, .session-status-card { text-align: center; padding-block: clamp(48px, 10vw, 80px); }
.thank-you-card p, .session-status-card p { max-width: 34rem; margin: 0 auto; font-size: 18px; }
.thank-you-mark, .session-closed-mark {
    width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 24px;
    border-radius: 50%; background: var(--green); color: white; font-size: 32px; font-weight: 750;
}
@media (max-width: 600px) {
    .shell { padding-top: 24px; }
    .request-grid { grid-template-columns: 1fr; }
    .header-row { flex-direction: column; }
}
