:root {
    --ink: #20231f;
    --muted: #6f756c;
    --paper: #f5f3ec;
    --card: #fffdf8;
    --accent: #25634b;
    --accent-dark: #174635;
    --line: #dedbd2;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
a { color: inherit; }
.shell { width: min(100% - 32px, 980px); margin: 0 auto; padding: 34px 0 70px; }
.narrow { width: min(100% - 32px, 680px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--accent); border-radius: 9px; }
.hero { padding: 84px 0 34px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 800px; margin-bottom: 20px; font: 700 clamp(2.7rem, 8vw, 5.6rem)/.98 Georgia, serif; letter-spacing: -.05em; }
.lead { max-width: 650px; color: var(--muted); font-size: 1.15rem; line-height: 1.65; }
.upload-card, .status-card { padding: clamp(24px, 5vw, 46px); background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 55px rgba(38, 42, 36, .08); }
.upload-card { display: grid; gap: 12px; }
label { margin-top: 9px; font-weight: 750; }
input[type="email"], input[type="password"], input[type="file"] { width: 100%; padding: 14px; font: inherit; color: var(--ink); background: white; border: 1px solid #c8c8c0; border-radius: 9px; }
input:focus { outline: 3px solid rgba(37, 99, 75, .18); border-color: var(--accent); }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: 3px solid rgba(37, 99, 75, .28); outline-offset: 3px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; margin-top: 12px; padding: 11px 20px; color: white; font: 750 1rem/1 inherit; text-decoration: none; background: var(--accent); border: 0; border-radius: 9px; cursor: pointer; }
button:hover, .button:hover { background: var(--accent-dark); }
.button.secondary { color: var(--accent); background: #e5eee9; }
.hint, .privacy-note { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.privacy-note { margin: 4px 0 0; text-align: center; }
.notice { margin-bottom: 16px; padding: 14px 16px; border-radius: 9px; }
.notice.error { color: #7c2929; background: #f9e3e1; border: 1px solid #edc2bf; }
.notice.success { color: #19553c; background: #dff1e7; border: 1px solid #b8deca; }
.notice.info { color: #274b66; background: #e5f0f7; border: 1px solid #c4dce9; }
button:disabled { cursor: not-allowed; opacity: .55; }
.status-card { margin-top: 80px; }
.status-card h1 { font: 700 2.7rem/1.05 Georgia, serif; }
.status-card > p { color: var(--muted); line-height: 1.65; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.menu-page { background: #f4f0e6; }
.menu-shell { width: min(100%, 760px); min-height: 100vh; margin: 0 auto; padding: 0 20px 50px; background: #fffef9; }
.menu-header { margin: 0 -20px 36px; padding: 54px 24px 38px; text-align: center; background: #1f513f; color: white; }
.menu-header .eyebrow { color: #c9e2d6; }
.menu-header h1 { margin-bottom: 8px; font: 700 clamp(2.35rem, 9vw, 4.4rem)/1 Georgia, serif; letter-spacing: -.035em; }
.menu-header > p:last-child { margin-bottom: 0; color: #e3eee8; }
.table-pill { display: inline-block; margin-bottom: 24px; padding: 7px 12px; color: #194231; background: #fff; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.menu-category { margin: 0 0 42px; }
.menu-category h2 { margin-bottom: 8px; padding-bottom: 12px; font: 700 1.65rem/1.2 Georgia, serif; border-bottom: 2px solid #1f513f; }
.menu-item { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid #e7e4dc; }
.menu-item-main { min-width: 0; }
.menu-item h3 { margin-bottom: 6px; font-size: 1rem; line-height: 1.3; }
.menu-item p { margin-bottom: 5px; color: #666b64; font-size: .92rem; line-height: 1.45; }
.menu-item small { color: #8a6c4f; font-size: .76rem; }
.price { flex: 0 0 auto; white-space: nowrap; font-size: .95rem; }
.menu-footer { padding-top: 10px; color: #8a8e87; font-size: .78rem; text-align: center; }
.print-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.print-toolbar span { color: var(--muted); }
.qr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.qr-card { padding: 20px; text-align: center; background: white; border: 1px dashed #999; }
.qr-card img { width: 150px; height: 150px; }
.qr-card h2 { margin: 8px 0 4px; font: 700 1.4rem/1 Georgia, serif; }
.qr-card p { margin: 0; color: var(--muted); font-size: .78rem; }
.admin-login { margin-top: 70px; }
.admin-login h1 { font: 700 2.7rem/1 Georgia, serif; }
.admin-shell { width: min(100% - 32px, 1120px); margin: 0 auto; padding: 28px 0 70px; }
.admin-header, .admin-title, .admin-card-top, .admin-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.admin-header { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.logout-form { margin: 0; }
.logout-form button { min-height: auto; margin: 0; padding: 6px; color: var(--muted); font-size: .9rem; background: transparent; }
.logout-form button:hover { color: var(--ink); background: transparent; }
.admin-tag { padding: 4px 7px; color: var(--accent); background: #e1ece6; border-radius: 5px; font-size: .7rem; text-transform: uppercase; }
.admin-title { margin: 44px 0 24px; }
.admin-title h1 { margin: 0; font: 700 2.8rem/1 Georgia, serif; }
.admin-title > span { color: var(--muted); }
.admin-list { display: grid; gap: 14px; }
.admin-card { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.admin-card h2 { margin: 10px 0 4px; font-size: 1.22rem; }
.admin-card p, .admin-card time { margin: 0; color: var(--muted); font-size: .86rem; }
.status { display: inline-block; padding: 5px 8px; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #eee; border-radius: 5px; }
.status.pending { color: #7d5813; background: #fbefc9; }
.status.approved { color: #19553c; background: #dff1e7; }
.status.rejected, .status.failed { color: #7c2929; background: #f9e3e1; }
.source-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.source-list a { padding: 6px 9px; color: #4f554e; font-size: .78rem; text-decoration: none; background: #f3f2ed; border-radius: 5px; }
.admin-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 14px; }
.admin-actions form { margin: 0; }
.admin-actions button, .admin-actions .button { min-height: 39px; margin: 0; padding: 8px 13px; font-size: .84rem; }
.admin-actions .danger { color: #872f2f; background: #f6e4e2; }
.empty { padding: 50px; color: var(--muted); text-align: center; background: white; border: 1px solid var(--line); }
@media (max-width: 620px) {
    .hero { padding-top: 58px; }
    .qr-grid { grid-template-columns: 1fr; }
    .print-toolbar { align-items: flex-start; flex-direction: column; }
    .admin-title, .admin-card-top { align-items: flex-start; flex-direction: column; }
}
@media print {
    .print-toolbar { display: none; }
    .shell { width: 100%; padding: 0; }
    .qr-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .qr-card { break-inside: avoid; height: 54mm; }
}
