:root {
    color-scheme: dark;
    --ink: #171311;
    --paper: #f3ecdf;
    --paper-2: #e8ddcc;
    --muted: #a99b8b;
    --line: rgba(255, 255, 255, .11);
    --amber: #e89035;
    --amber-bright: #ffad52;
    --green: #72c49a;
    --red: #e77b6f;
    --shadow: 0 28px 80px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}
button, input, select { font: inherit; }
button { cursor: pointer; }

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 15%, rgba(232, 144, 53, .2), transparent 28rem),
        radial-gradient(circle at 90% 90%, rgba(115, 79, 46, .22), transparent 30rem),
        #14110f;
}
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.auth-card {
    width: min(100%, 470px);
    padding: clamp(34px, 7vw, 58px);
    background: rgba(35, 29, 25, .94);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
}
.wordmark, .mini-mark {
    display: grid;
    place-items: center;
    background: var(--amber);
    color: #1b1209;
    font-family: Georgia, serif;
    font-weight: 900;
    letter-spacing: -.08em;
    transform: rotate(-3deg);
}
.wordmark { width: 70px; height: 70px; border-radius: 50% 48% 46% 52%; margin-bottom: 28px; font-size: 25px; }
.mini-mark { width: 42px; height: 42px; border-radius: 50%; font-size: 15px; }
.eyebrow { margin: 0 0 10px; color: var(--amber-bright); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.auth-card h1 { margin-bottom: 12px; font: 700 clamp(32px, 7vw, 46px)/1.02 Georgia, serif; letter-spacing: -.035em; }
.auth-intro { color: var(--muted); margin-bottom: 30px; }
.auth-form { display: grid; gap: 18px; }
.auth-form label, .override-grid label { display: grid; gap: 8px; }
.auth-form label span, .override-grid label span { font-size: 13px; font-weight: 700; }
input, select {
    width: 100%;
    color: var(--paper);
    background: #231e1a;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
}
input:focus, select:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232,144,53,.14); }
.field-note { margin: -8px 0 0; color: var(--muted); font-size: 12px; }
.button { border: 0; border-radius: 9px; padding: 11px 17px; font-weight: 800; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--amber); color: #201308; }
.button-primary:hover { background: var(--amber-bright); }
.button-secondary { background: var(--paper); color: #241a13; }
.button-quiet { background: transparent; border: 1px solid var(--line); color: var(--paper); }
.notice { margin: 0 0 28px; border-radius: 10px; padding: 13px 16px; font-size: 14px; border: 1px solid; }
.notice-success { background: rgba(114,196,154,.11); border-color: rgba(114,196,154,.35); color: #a9e2c4; }
.notice-error { background: rgba(231,123,111,.1); border-color: rgba(231,123,111,.35); color: #f2aaa2; }

.topbar {
    height: 74px;
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 72px);
    background: rgba(23, 19, 17, .9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup div:last-child { display: grid; line-height: 1.15; }
.brand-lockup strong { font-family: Georgia, serif; font-size: 17px; }
.brand-lockup span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.dashboard { width: min(1480px, calc(100% - 40px)); margin: 0 auto; }
.hero {
    min-height: 390px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    align-items: end;
    gap: 70px;
    padding: 80px 0 66px;
    border-bottom: 1px solid var(--line);
}
.hero h1 { margin: 0; max-width: 900px; font: 700 clamp(55px, 7.5vw, 110px)/.88 Georgia, serif; letter-spacing: -.055em; }
.hero > p { color: #c6b8aa; font-size: clamp(16px, 1.5vw, 21px); max-width: 520px; margin-bottom: 5px; }
.dashboard > .notice { margin-top: 30px; }
.section { padding: 70px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font: 700 clamp(35px, 4vw, 58px)/1 Georgia, serif; letter-spacing: -.035em; }
.section-heading > p { max-width: 470px; color: var(--muted); margin: 0; text-align: right; }
.screen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.screen-card { display: grid; grid-template-columns: 58px 1fr; gap: 16px; padding: 22px; background: #211c18; border: 1px solid var(--line); border-radius: 16px; }
.screen-icon { grid-row: span 2; align-self: center; width: 44px; height: 58px; padding: 3px; border: 2px solid #74685d; border-radius: 5px; }
.screen-icon span { display: block; width: 100%; height: 100%; background: linear-gradient(145deg, #382e27, #191512); }
.screen-icon.is-online { border-color: var(--green); box-shadow: 0 0 18px rgba(114,196,154,.17); }
.screen-detail { display: grid; }
.screen-detail strong { font-size: 16px; }
.screen-detail span, .screen-presence { color: var(--muted); font-size: 12px; }
.screen-presence { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #74685d; }
.status-dot.is-online { background: var(--green); box-shadow: 0 0 0 4px rgba(114,196,154,.1); }
.text-link { color: var(--amber-bright); font-size: 12px; text-decoration: none; justify-self: end; align-self: end; }
.text-link:hover { text-decoration: underline; }
.location-block + .location-block { margin-top: 55px; }
.location-title { display: flex; align-items: baseline; gap: 13px; margin-bottom: 16px; }
.location-title h3 { margin: 0; font: 700 27px Georgia, serif; }
.location-title span { color: var(--muted); font-size: 12px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.menu-card { overflow: hidden; background: #211c18; border: 1px solid var(--line); border-radius: 17px; }
.menu-preview { position: relative; aspect-ratio: 9 / 10.7; overflow: hidden; background: #0c0a09; }
.menu-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 58%, rgba(0,0,0,.72)); pointer-events: none; }
.menu-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.menu-card:hover .menu-preview img { transform: scale(1.015); }
.menu-preview > span { position: absolute; z-index: 2; left: 20px; bottom: 15px; font: 700 29px Georgia, serif; }
.missing-image { height: 100%; display: grid; place-items: center; color: var(--muted); }
.menu-card-body { padding: 18px; }
.file-meta { display: grid; margin-bottom: 16px; }
.file-meta strong { font-size: 12px; word-break: break-word; }
.file-meta span { color: var(--muted); font-size: 11px; }
.upload-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.file-button { min-width: 0; overflow: hidden; position: relative; display: grid; place-items: center; border: 1px dashed rgba(255,255,255,.22); border-radius: 9px; color: #cdbfb2; font-size: 12px; font-weight: 700; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-button:focus-within { border-color: var(--amber); }
.settings-form { display: grid; gap: 26px; }
.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.settings-card { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #211c18; }
.settings-card legend { padding: 0 7px; font: 700 19px Georgia, serif; }
.settings-card > p { color: var(--muted); font-size: 12px; margin: 15px 0 0; }
.time-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.time-row span { font-size: 13px; }
.time-row input { width: 126px; padding: 8px 10px; }
.override-panel { display: grid; grid-template-columns: .8fr 2.2fr; gap: 40px; align-items: start; padding: 28px; background: var(--paper-2); color: #251b14; border-radius: 16px; }
.override-panel h3 { margin-bottom: 7px; font: 700 24px Georgia, serif; }
.override-panel p { margin: 0; color: #6b5d51; font-size: 13px; }
.override-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.override-grid select { background: #fffaf1; color: #251b14; border-color: rgba(50,35,25,.2); }
.settings-form > .button { justify-self: start; }
footer { width: min(1480px, calc(100% - 40px)); margin: 0 auto; display: flex; justify-content: space-between; padding: 28px 0 45px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; gap: 30px; min-height: 0; }
    .screen-grid, .menu-grid, .schedule-grid { grid-template-columns: 1fr; }
    .menu-grid { grid-template-columns: repeat(3, 1fr); }
    .override-panel { grid-template-columns: 1fr; gap: 24px; }
    .override-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .dashboard { width: min(100% - 28px, 1480px); }
    .topbar { padding: 0 14px; }
    .brand-lockup div:last-child { display: none; }
    .hero { padding: 55px 0 45px; }
    .hero h1 { font-size: clamp(47px, 16vw, 72px); }
    .section { padding: 48px 0; }
    .section-heading { display: grid; gap: 13px; }
    .section-heading > p { text-align: left; }
    .menu-grid { grid-template-columns: 1fr; }
    .menu-preview { aspect-ratio: 9 / 8; }
    .screen-card { grid-template-columns: 50px 1fr; }
    .upload-form { grid-template-columns: 1fr; }
    .file-button { min-height: 43px; }
    footer { width: calc(100% - 28px); display: grid; gap: 6px; }
}

