/* Shared tokens and accessible controls. No build step or remote assets. */
@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/vazirmatn/Vazirmatn-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
:root {
    --font-ui: "Vazirmatn", Tahoma, sans-serif;
    --ink: #18283e;
    --muted: #566477;
    --primary: #315fa6;
    --primary-hover: #234b86;
    --line: #dfe3e8;
    --control-border: #8290a1;
    --paper: #ffffff;
    --canvas: #f6f7f9;
    --subtle: #f0f2f5;
    --focus: #2563eb;
    --focus-halo: #2563eb1f;
    --on-primary: #ffffff;
    --art-ink: #718096;
    --art-surface: #edf0f4;
    --overlay: #ffffffb3;
    --on-dark-muted: #d5dfec;
    --watermark: #ffffff10;
    --watermark-accent: #ffffff40;
    --info: #254d7e;
    --info-surface: #eaf1fb;
    --success: #236341;
    --success-surface: #e9f5ed;
    --warning: #7a4a0b;
    --warning-surface: #fff3da;
    --danger: #9e3036;
    --danger-surface: #fcecee;
    --danger-border: #e2b8bd;
    font-family: var(--font-ui);
    color: var(--ink);
    background: var(--canvas);
    line-height: 1.85;
    font-size: 15px;
    font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--primary); text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
table, th, td, bdi, code, output { font-family: inherit; }
button, a, input, select { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.55; }
h1 { font-size: clamp(1.65rem, 3.1vw, 2.65rem); letter-spacing: -.6px; margin-bottom: 14px; }
h2 { font-size: 1.3rem; margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
p { margin-bottom: 16px; }
small { font-size: .8rem; }
bdi { font-variant-numeric: tabular-nums; }
input[type=number], output, .amount-display, .quantity-stats { font-variant-numeric: tabular-nums; }
article, section, aside, .panel { min-width: 0; overflow-wrap: anywhere; }
main, .site-nav, .site-footer { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
main { padding-block: 40px 72px; min-height: calc(100vh - 172px); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 94px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
.brand small { display: block; font-size: .67rem; letter-spacing: 1.8px; font-weight: 500; text-align: right; }
.brand-mark { width: 43px; height: 46px; display: grid; place-content: center; color: var(--on-primary); background: var(--ink); border-radius: 12px 12px 3px 12px; font-size: 32px; position: relative; }
.brand-mark span { color: var(--on-dark-muted); position: absolute; font-size: 10px; right: 7px; top: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; font-size: .9rem; color: var(--muted); padding: 12px 0; }
.nav-links a[aria-current] { color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--primary); }
.nav-links a span { margin-inline-start: 8px; }
.site-footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; color: var(--muted); font-size: .8rem; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .4px; color: var(--muted); margin-bottom: 10px; }
.intro { color: var(--muted); max-width: 660px; }
.intro p { margin-bottom: 0; }
.page-heading { margin-bottom: 28px; }
.muted, .helper { color: var(--muted); }
.helper { font-size: .78rem; margin-block: 10px 16px; }
.centered { text-align: center; }
.panel, article:not(.product-card), section { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
section { margin-block: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; }
.section-heading .eyebrow { margin-bottom: 4px; }
.section-heading > .muted { font-size: .8rem; }
label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 18px; }
input:not([type=checkbox]), select { display: block; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--paper); color: var(--ink); margin-top: 7px; min-width: 0; }
input[type=number], input[type=datetime-local] { direction: ltr; }
input::placeholder { color: var(--muted); font-weight: 400; }
input[aria-invalid=true] { border-color: var(--danger); }
button, .action-link { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; border: 1px solid var(--primary); border-radius: 8px; background: var(--primary); color: var(--on-primary); padding: 10px 20px; cursor: pointer; text-decoration: none; font-size: .9rem; font-weight: 600; line-height: 1.7; }
button:hover, .action-link:hover { background: var(--primary-hover); color: var(--on-primary); }
.full-width { width: 100%; justify-content: space-between; }
.secondary { background: transparent; color: var(--ink); border-color: var(--control-border); margin-block: 8px; }
.secondary:hover { background: var(--subtle); color: var(--ink); }
/* Cancellation remains secondary; semantic red is reserved for feedback/status. */
.danger { color: var(--ink); border-color: var(--control-border); background: transparent; }
.danger:hover { color: var(--ink); background: var(--subtle); }
.notice, .error { padding: 16px 22px; border-radius: 10px; margin-bottom: 24px; font-size: .9rem; }
.notice { background: var(--info-surface); color: var(--info); border-inline-start: 3px solid var(--info); }
.error { background: var(--danger-surface); color: var(--danger); }
.field-error { font-size: .8rem; color: var(--danger); }
.field-error:empty { display: none; }
.empty-state { padding: 48px; text-align: center; border: 1px dashed var(--control-border); border-radius: 14px; color: var(--muted); grid-column: 1 / -1; }
.empty-state h2 { color: var(--ink); }
.check { display: flex; align-items: start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; font-weight: 400; }
.check input { width: 19px; height: 19px; flex-shrink: 0; margin-top: 4px; accent-color: var(--primary); }
.skip-link { position: fixed; top: -100px; right: 20px; z-index: 10; background: var(--paper); padding: 14px; }
.skip-link:focus { top: 10px; }
[hidden] { display: none !important; }
button:disabled { cursor: not-allowed; opacity: .55; }
.date-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.date-card { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 1px solid var(--control-border); border-radius: 10px; background: var(--paper); color: var(--ink); text-decoration: none; text-align: center; }
.date-card time { font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.date-weekday { font-size: .9rem; font-weight: 700; }
.date-state { font-size: .72rem; color: var(--muted); }
a.date-card:hover { border-color: var(--primary); background: var(--subtle); }
.date-card[aria-current] { border-color: var(--primary); background: var(--info-surface); box-shadow: inset 0 0 0 1px var(--primary); }
.date-card[aria-current] .date-weekday { color: var(--primary); }
.date-card-full .date-state { color: var(--warning); }
.date-card-inactive { border-color: var(--line); background: var(--subtle); color: var(--muted); }
.product-availability { font-size: .8rem; color: var(--muted); }
.full-products-heading { margin-top: 30px; }
.quote-form { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 20px; }
.quote-summary { border-top: 1px solid var(--line); padding-top: 18px; margin-block: 18px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.quote-table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .8rem; }
.quote-table th, .quote-table td { text-align: start; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.quote-table th { background: var(--subtle); }
.quote-table .sku { margin: 6px 0 0; }
.quote-history { margin-block: 20px; font-size: .85rem; }
.quote-history summary { cursor: pointer; min-height: 44px; color: var(--primary); padding-block: 10px; }

/* Public catalog and reservation details. */
.catalog-hero { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-block: 12px 34px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.catalog-hero .page-heading { margin: 0; }
.hero-note { min-width: 245px; border-inline-start: 1px solid var(--line); padding-inline-start: 30px; }
.hero-note ol { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.hero-note li { display: flex; align-items: center; gap: 12px; margin-block: 8px; }
.hero-note li span { font-size: .75rem; display: grid; place-content: center; border: 1px solid var(--line); border-radius: 50%; width: 27px; height: 27px; }
.reservation-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product-card { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.product-card:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px var(--focus-halo); }
.product-art { height: 144px; background: var(--art-surface); display: flex; align-items: center; justify-content: center; position: relative; color: var(--art-ink); }
.product-card:nth-child(2n) .product-art { background: var(--subtle); color: var(--art-ink); }
.product-art svg { width: 105px; height: 100px; transform: rotate(-8deg); }
.product-art > span { position: absolute; inset-inline-start: 16px; top: 14px; font-size: .7rem; color: var(--muted); border: 1px solid var(--line); background: var(--overlay); padding: 2px 9px; border-radius: 30px; }
.product-body { padding: 22px; }
.sku { font-size: .75rem; letter-spacing: 1px; color: var(--muted); display: block; text-align: right; overflow-wrap: anywhere; margin-bottom: 6px; }
.product-pack { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.unit-price { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; margin-bottom: 18px; }
.unit-price strong { font-size: 1.6rem; line-height: 1.4; }
.unit-price small { font-weight: 400; }
.unit-price > span { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.quantity-field { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin: 0; }
.quantity-field > span { font-weight: 600; font-size: .85rem; }
.quantity-field small { display: block; color: var(--muted); font-weight: 400; }
.quantity-field input { width: 90px; text-align: center; font-size: 1.2rem; font-weight: 600; background: var(--canvas); }
.reservation-sidebar { position: sticky; top: 24px; border-top: 3px solid var(--line); padding: 26px; }
.reservation-sidebar h2 { margin-bottom: 8px; }
.summary-note { background: var(--subtle); border-radius: 9px; padding: 16px; margin-block: 22px; font-size: .8rem; }
.summary-note p { margin: 4px 0 0; color: var(--muted); }
.receipt-layout { max-width: 850px; margin-inline: auto; }
.receipt-line { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.receipt-line p { margin: 4px 0; font-size: .85rem; color: var(--muted); }
.receipt-total { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-top: 24px; }
.receipt-total strong { font-size: 1.6rem; }
.receipt-layout > .notice { margin-top: 20px; }

/* Staff entry and operational queue. */
.login-layout { display: grid; grid-template-columns: 1fr 1fr; max-width: 960px; margin: 24px auto; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; min-height: 550px; }
.login-story { background: var(--ink); color: var(--on-primary); padding: 50px 40px; position: relative; overflow: hidden; }
.login-story .eyebrow { color: var(--on-dark-muted); }
.login-story h2 { font-size: 1.9rem; margin-top: 30px; }
.login-story p:not(.eyebrow) { font-size: .9rem; color: var(--on-dark-muted); }
.story-monogram { font-size: 200px; line-height: 1; position: absolute; bottom: -30px; left: 45px; color: var(--watermark); }
.story-monogram span { font-size: 50px; color: var(--watermark-accent); }
.login-panel { padding: 48px 40px; }
.login-panel h1 { font-size: 1.8rem; }
.login-panel .intro { font-size: .9rem; }
.back-link { font-size: .85rem; }
.workspace-header { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.workspace-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.workspace-actions button { margin: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; }
.jump a { padding: 8px 18px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--paper); min-height: 44px; }
.queue-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 24px; padding-bottom: 12px; }
.queue-tabs a { color: var(--muted); text-decoration: none; min-height: 44px; display: flex; align-items: center; padding: 9px 16px; border-radius: 8px; }
.queue-tabs a[aria-current] { background: var(--ink); color: var(--on-primary); }
.queue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.queue-card { display: flex; flex-direction: column; }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-top strong { font-size: 1.1rem; }
.reservation-code { font-size: .78rem; color: var(--muted); display: block; }
.badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 30px; padding: 4px 11px; background: var(--warning-surface); color: var(--warning); font-size: .72rem; font-weight: 600; white-space: nowrap; line-height: 1.8; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-approved { background: var(--success-surface); color: var(--success); }
.badge-closed { background: var(--subtle); color: var(--muted); }
.badge-cancelled, .badge-expired { background: var(--danger-surface); color: var(--danger); }
.contact-link { font-size: .8rem; align-self: start; margin-bottom: 14px; }
.queue-lines { margin-bottom: 20px; border-top: 1px solid var(--line); }
.queue-lines p { padding-block: 12px; margin: 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.queue-lines small { color: var(--muted); display: block; }
.queue-card > form:last-child { margin-top: auto; }
.queue-card > form:last-child button { font-size: .8rem; }
.pagination { display: flex; gap: 16px; margin-block: 24px; }
.pagination a { padding: 8px; min-height: 44px; }
#products, #users { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 36px; }

/* Intake: quantity entry and a server-calculated review before confirmation. */
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 26px; padding: 18px 0; margin: 0 0 24px; border-block: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.steps li { display: flex; align-items: center; gap: 9px; }
.steps li span { width: 29px; height: 29px; display: grid; place-content: center; border-radius: 50%; background: var(--subtle); font-size: .8rem; }
.steps li[aria-current] { font-weight: 700; color: var(--ink); }
.steps li[aria-current] span { background: var(--ink); color: var(--on-primary); }
.intake-form-layout, .review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; align-items: start; }
.intake-form-layout > .grid { grid-template-columns: 1fr; }
.intake-line { margin: 0; }
.intake-line h2 { margin-bottom: 6px; }
.intake-line label { margin-top: 18px; }
.intake-line .accepted-quantity { font-size: 1.35rem; max-width: 180px; background: var(--canvas); font-weight: 700; }
.intake-line .secondary { font-size: .8rem; }
.intake-summary { position: sticky; top: 24px; margin: 0; border-top: 3px solid var(--line); }
.amount-display { background: var(--subtle); padding: 20px; border-radius: 10px; margin-block: 18px; }
.amount-display > span { display: block; font-size: .8rem; color: var(--muted); }
.amount-display strong { font-size: 2rem; display: block; line-height: 1.7; }
.amount-display small { font-size: .9rem; font-weight: 400; }
.amount-display .badge { display: inline-flex; margin-top: 8px; }
.review-lines .received-line:first-child { margin-top: 0; }
.review-lines .received-line { margin-bottom: 16px; }
.received-line { min-width: 0; overflow-wrap: anywhere; }
.quantity-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block: 18px; }
.quantity-stats > div { padding: 12px 8px; background: var(--subtle); border-radius: 8px; text-align: center; }
.quantity-stats dt { font-size: .75rem; color: var(--muted); }
.quantity-stats dd { font-size: 1.5rem; font-weight: 700; margin: 0; }
.quantity-stats .accepted { background: var(--art-surface); }
.line-amount { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 0; font-size: .9rem; }

@media (max-width: 950px) {
    .reservation-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
    .product-grid { grid-template-columns: 1fr; }
    .intake-form-layout, .review-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
    .hero-note { min-width: 220px; }
    .login-story, .login-panel { padding: 36px 28px; }
    .workspace-header { flex-direction: column; margin-bottom: 24px; }
}
@media (max-width: 720px) {
    main, .site-nav, .site-footer { width: calc(100% - 32px); }
    main { padding-block: 24px 44px; }
    .site-nav { min-height: 80px; gap: 12px; }
    .brand { font-size: 1.05rem; gap: 8px; }
    .brand-mark { width: 34px; height: 39px; font-size: 28px; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: .75rem; }
    .nav-links a span { display: none; }
    .catalog-hero { display: block; padding: 4px 0 24px; margin-bottom: 24px; }
    .hero-note { border: 0; padding: 20px 0 0; min-width: 0; }
    .hero-note > .eyebrow { display: none; }
    .hero-note ol { display: flex; gap: 8px; font-size: .68rem; justify-content: space-between; }
    .hero-note li { display: block; margin: 0; }
    .hero-note li span { margin-bottom: 6px; }
    .reservation-layout, .intake-form-layout, .review-layout { grid-template-columns: 1fr; gap: 24px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-body { padding: 14px; }
    .product-art { height: 108px; }
    .product-art svg { width: 77px; }
    .product-art > span { font-size: .7rem; top: 8px; inset-inline-start: 8px; padding: 1px 6px; }
    .product-body h3 { font-size: 1rem; }
    .sku { font-size: .72rem; letter-spacing: 0; }
    .product-pack { font-size: .8rem; min-height: 40px; margin-bottom: 12px; }
    .unit-price strong { font-size: 1.35rem; }
    .unit-price > span { font-size: .72rem; }
    .quantity-field { display: block; }
    .quantity-field > span { font-size: .8rem; display: flex; justify-content: space-between; gap: 6px; }
    .quantity-field input { width: 100%; margin-top: 8px; }
    .reservation-sidebar, .intake-summary { position: static; padding: 22px; }
    .section-heading > .muted { font-size: .72rem; }
    .section-heading h2 { font-size: 1.1rem; }
    .login-layout { grid-template-columns: 1fr; margin: 0; min-height: 0; }
    .login-story { padding: 24px; }
    .login-story h2 { font-size: 1.4rem; margin-top: 16px; }
    .login-story p:not(.eyebrow) { display: none; }
    .story-monogram { font-size: 160px; left: 20px; bottom: -50px; }
    .login-panel { padding: 28px 24px; }
    .workspace-actions { width: 100%; }
    .workspace-actions .action-link { flex: 1; font-size: .8rem; }
    .queue-tabs { gap: 4px; }
    .queue-tabs a { font-size: .77rem; padding: 9px 10px; }
    .queue-grid { grid-template-columns: 1fr; }
    .jump { margin-bottom: 24px; }
    .steps { gap: 14px; justify-content: space-between; font-size: .75rem; }
    .steps li { gap: 5px; }
    .steps li span { width: 25px; height: 25px; }
    .panel, article:not(.product-card), section { padding: 20px; }
    .quantity-stats { gap: 5px; }
    .quantity-stats dt { font-size: .72rem; }
    .receipt-line { align-items: start; gap: 12px; flex-direction: column; }
    .receipt-total { flex-wrap: wrap; }
    .site-footer { font-size: .7rem; }
    .site-footer bdi { display: none; }
}
@media (max-width: 360px) {
    .product-grid { grid-template-columns: 1fr; }
    .product-pack { min-height: 0; }
    .quantity-field { display: flex; }
    .quantity-field input { width: 90px; }
    .nav-links { gap: 10px; }
    .hero-note ol { font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .site-footer, .jump, .workspace-actions, button, .skip-link { display: none; }
    body { background: white; color: black; }
    main { width: 100%; padding: 0; }
    .review-layout, .intake-form-layout { display: block; }
    .intake-summary { position: static; }
    section, article { break-inside: avoid; box-shadow: none; }
}
.product-art-photo { background: #fff; }
.product-art-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Staff panel shell: compact RTL sidebar, collapsing below 860px. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.staff-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: start; min-height: 100vh; }
.staff-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--paper); border-inline-end: 1px solid var(--line); padding: 16px 12px; overflow-y: auto; }
.staff-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.staff-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; }
.staff-brand .brand-mark { width: 34px; height: 38px; font-size: 24px; }
.staff-brand .brand-mark span { font-size: 8px; right: 5px; top: 2px; }
.staff-menu-button { display: none; min-height: 40px; padding: 4px 16px; margin: 0; background: transparent; color: var(--ink); border-color: var(--control-border); }
.staff-menu-button:hover { background: var(--subtle); color: var(--ink); }
.staff-nav-wrap { display: flex; flex-direction: column; flex: 1; gap: 16px; }
.staff-nav { display: flex; flex-direction: column; gap: 2px; }
.staff-nav a { display: flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .88rem; }
.staff-nav a:hover { background: var(--subtle); }
.staff-nav a[aria-current] { background: var(--ink); color: var(--on-primary); font-weight: 600; }
.staff-account { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; font-size: .8rem; }
.staff-account p { margin-bottom: 6px; }
.staff-account small { display: block; color: var(--muted); }
.staff-account a { display: block; padding-block: 6px; }
.staff-account button { width: 100%; min-height: 40px; margin: 6px 0 0; font-size: .8rem; }
.staff-body { min-width: 0; }
.staff-body main { width: 100%; max-width: 1100px; margin: 0; padding: 28px 32px 56px; min-height: 0; }
.staff-body .page-heading { margin-bottom: 18px; }
.staff-body h1 { font-size: 1.5rem; margin-bottom: 6px; }
.staff-body .page-heading .intro p { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.back-link { font-size: .85rem; margin-bottom: 8px; }
.group-title { font-size: .95rem; color: var(--muted); margin: 22px 0 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.stat strong { font-size: 1.6rem; line-height: 1.3; }
.stat span { font-size: .8rem; color: var(--muted); }
.stat:hover { border-color: var(--primary); }
.stat-attention { background: var(--warning-surface); border-color: #e3c58d; }
.stat-attention span { color: var(--warning); }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.data-table th { text-align: start; background: var(--subtle); font-weight: 600; font-size: .78rem; color: var(--muted); padding: 8px 12px; white-space: nowrap; }
.data-table td { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:hover { background: #fafbfc; }
.data-table .row-action { text-align: end; white-space: nowrap; }
.data-table .row-action .action-link { min-height: 36px; padding: 2px 14px; margin: 0; font-size: .8rem; gap: 8px; }
.data-table .cell-sub { display: block; color: var(--muted); line-height: 1.5; }
.data-table .thumb-cell { width: 56px; padding-inline-end: 0; }
.thumb { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: block; }
.price-table input { min-height: 38px; padding: 4px 10px; max-width: 150px; }
.filter-bar, .inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 16px; }
.filter-bar label, .inline-form label { min-width: 190px; font-size: .8rem; }
.filter-bar input, .filter-bar select, .inline-form input { min-height: 40px; }
.filter-bar button, .inline-form button { min-height: 40px; margin: 0; }
.detail-wrap { max-width: 640px; }
.detail-wrap .queue-card, .detail-wrap .panel { padding: 20px; }
.staff-body .queue-tabs { margin-bottom: 14px; padding-bottom: 8px; }
.staff-body .queue-tabs a { min-height: 38px; padding: 4px 12px; font-size: .85rem; }
@media (max-width: 860px) {
    .staff-shell { display: block; }
    .staff-sidebar { position: static; height: auto; padding: 10px 16px; border-inline-end: 0; border-bottom: 1px solid var(--line); overflow: visible; }
    .staff-bar { margin-bottom: 0; }
    .js .staff-menu-button { display: inline-flex; }
    .js .staff-nav-wrap { display: none; margin-top: 10px; }
    .js .staff-nav-wrap.open { display: flex; }
    .staff-nav a { min-height: 44px; }
    .staff-nav-wrap { margin-top: 10px; }
    .staff-body main { padding: 20px 16px 40px; }
}
@media (max-width: 720px) {
    .staff-body main { width: 100%; padding: 20px 16px 40px; }
    .table-wrap { border: 0; background: transparent; overflow: visible; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
    .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .data-table tr { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 4px; }
    .data-table td { border: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 12px; text-align: end; }
    .data-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .75rem; text-align: start; flex-shrink: 0; }
    .data-table .row-action { justify-content: stretch; padding-top: 8px; }
    .data-table .row-action .action-link { width: 100%; min-height: 44px; }
    .data-table .thumb-cell { width: 100%; padding-bottom: 0; }
    .data-table .thumb-cell:empty { display: none; }
    .price-table input { max-width: 130px; }
    .workspace-header { flex-direction: column; gap: 8px; }
}
/* Hamrah Delivery brand tokens. Declared last so one block drives public and staff screens. */
:root {
    --navy: #08244C;
    --navy-hover: #0f3a75;
    --teal: #007F79;
    --teal-surface: #E6F6F4;
    --teal-line: #9fd6d1;
    --canvas: #F5F7FA;
    --paper: #ffffff;
    --subtle: #eef2f6;
    --art-surface: #E6F6F4;
    --ink: #14253d;
    --primary: var(--navy);
    --primary-hover: var(--navy-hover);
    --focus: #007F79;
    --focus-halo: #007f791f;
    --info: #08244C;
    --info-surface: #E6F6F4;
}
h1, h2, h3, .unit-price strong, .stat strong { color: var(--navy); }
.login-story h2 { color: #fff; }
.login-story { background: var(--navy); }
.story-symbol { position: absolute; bottom: -24px; left: 24px; width: 240px; height: auto; opacity: .14; }
.notice { border-inline-start-color: var(--teal); color: var(--navy); }
.check input { accent-color: var(--teal); }
.brand { gap: 10px; color: var(--navy); }
.brand-symbol { display: block; height: auto; flex-shrink: 0; }
.brand-word { font-size: 1.4rem; font-weight: 800; line-height: 1.3; color: var(--navy); letter-spacing: 0; }
.brand-word small { display: block; font-size: .7rem; font-weight: 500; letter-spacing: 0; color: var(--muted); text-align: start; }
.site-header { border-bottom: 1px solid var(--line); }
.nav-links a[aria-current] { color: var(--teal); border-bottom-color: var(--teal); }

/* Public catalog: prominent date selection, readable sold-out state. */
.catalog-hero { border-bottom-color: var(--teal-line); }
.catalog-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
.hero-note li span { background: var(--teal-surface); border-color: var(--teal-line); color: var(--teal); font-weight: 700; }
#date-heading { font-size: 1.35rem; }
section[aria-labelledby="date-heading"] { background: var(--paper); border-color: var(--teal-line); border-width: 1px 1px 1px 1px; }
.date-cards { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.date-card { padding: 14px 8px; border-width: 1.5px; border-color: var(--line); background: var(--paper); color: var(--navy); }
.date-weekday { font-size: 1rem; }
.date-card time { font-size: .88rem; color: var(--ink); }
.date-state { font-size: .75rem; font-weight: 600; color: var(--teal); }
a.date-card:hover { border-color: var(--teal); background: var(--teal-surface); }
.date-card[aria-current] { border-color: var(--teal); background: var(--teal-surface); box-shadow: 0 0 0 2px var(--teal); }
.date-card[aria-current] .date-weekday, .date-card[aria-current] .date-state { color: var(--teal); }
.date-card-full { background: var(--warning-surface); border-color: #e3c58d; }
.date-card-full .date-state { color: var(--warning); }
.date-card-full[aria-current] { background: var(--warning-surface); border-color: var(--teal); }
.date-card-inactive { background: var(--canvas); color: var(--muted); border-style: dashed; }
.product-art-photo { background: #fff; }
.product-card:focus-within { border-color: var(--teal); box-shadow: 0 0 0 2px var(--focus-halo); }
.product-card-full { background: var(--canvas); border-style: dashed; border-color: var(--control-border); }
.product-card-full .product-art-photo img { filter: grayscale(.55); }
.product-card-full .unit-price strong, .product-card-full h3 { color: var(--navy); }
.product-card-full .badge { font-size: .8rem; }
.reservation-sidebar { border-top-color: var(--teal); }
.amount-display { background: var(--teal-surface); }
.amount-display strong { color: var(--navy); }
.summary-note { background: var(--teal-surface); color: var(--navy); }
.summary-note p { color: var(--ink); }
.badge-approved { background: var(--teal-surface); color: #00605b; }
.badge-closed { background: #e8edf3; color: #3b4b61; }
.badge-cancelled, .badge-expired { background: var(--danger-surface); color: #8a2429; }
.steps li[aria-current] span { background: var(--teal); }

/* Staff panel: teal marks the selected item; tables stay light. */
.staff-sidebar { background: var(--paper); }
.staff-nav a { color: var(--navy); border-inline-start: 3px solid transparent; border-radius: 6px; }
.staff-nav a:hover { background: var(--canvas); }
.staff-nav a[aria-current] { background: var(--teal-surface); color: var(--teal); border-inline-start-color: var(--teal); font-weight: 700; }
.staff-brand .brand-word { font-size: 1.05rem; }
.staff-body { background: var(--canvas); }
.queue-tabs a[aria-current], .jump a[aria-current] { background: var(--teal-surface); color: var(--teal); box-shadow: inset 0 -2px 0 var(--teal); font-weight: 700; }
.queue-tabs a { color: var(--ink); }
.stat { border-color: var(--line); }
.stat:hover { border-color: var(--teal); }
.stat-attention { background: var(--teal-surface); border-color: var(--teal-line); }
.stat-attention span { color: var(--teal); font-weight: 600; }
.table-wrap { border-color: var(--line); background: var(--paper); }
.data-table th { background: transparent; color: var(--muted); border-bottom: 1px solid var(--line); font-weight: 600; padding: 12px 14px; }
.data-table td { padding: 12px 14px; border-top: 1px solid #eef1f5; }
.data-table tbody tr:first-child td { border-top: 0; }
.data-table tbody tr:hover { background: var(--canvas); }
.data-table .row-action .action-link { background: transparent; color: var(--navy); border-color: var(--control-border); }
.data-table .row-action .action-link:hover { background: var(--teal-surface); border-color: var(--teal); color: var(--teal); }
.thumb { border-color: #eef1f5; }
@media (max-width: 860px) { .staff-body { background: var(--canvas); } }

/* Public update: minimal header, hero copy, compact dates, white product cards, guide. */
.site-nav { justify-content: flex-start; }
.catalog-hero { display: block; }
.hero-copy .eyebrow { color: var(--teal); font-size: .95rem; }
.hero-copy .intro p { max-width: 38rem; font-size: 1.02rem; line-height: 1.9; }
.guide-link { display: inline-block; margin-top: 8px; color: var(--teal); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--teal-line); padding-bottom: 2px; }
.section-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-title-row h2 { margin: 0; }
.istanbul-time { font-size: .82rem; color: var(--muted); }
.date-cards { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.date-card { padding: 8px 6px; gap: 2px; border-radius: 10px; }
.date-weekday { font-size: .88rem; }
.date-card time { font-size: .8rem; }
.date-state { font-size: .7rem; }
.date-card[aria-current] { background: var(--teal-surface); border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.date-more { margin-top: 10px; }
.product-card, .product-card-full { background: #fff; border: 1px solid var(--line); border-style: solid; }
.product-art, .product-card:nth-child(2n) .product-art, .product-art-photo { background: #fff; border-bottom: 1px solid var(--line); }
.product-card-full .product-art-photo img { filter: none; }
.product-card .product-pack { min-height: 0; margin-bottom: 8px; }
.product-card .unit-price { border: 0; padding: 0; margin: 4px 0 12px; }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-row .quantity-field { display: flex; align-items: center; gap: 8px; }
.product-row .quantity-field input { width: 72px; margin: 0; }
.product-row .product-availability { margin: 0; font-size: .78rem; white-space: nowrap; }
.line-total { margin: 8px 0 0; }
.line-total[hidden] { display: none; }
.guide { max-width: 760px; margin-inline: auto; background: transparent; border: 0; padding: 0; }
.guide-steps { list-style: none; counter-reset: g; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.guide-steps li { counter-increment: g; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 16px 18px; position: relative; padding-inline-start: 58px; }
.guide-steps li::before { content: counter(g, persian); position: absolute; inset-inline-start: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-content: center; background: var(--teal-surface); color: var(--teal); font-weight: 700; }
.guide-steps h2 { font-size: 1.1rem; margin: 0 0 6px; }
.guide-steps p { margin: 0; line-height: 1.9; }
.guide-note { color: var(--muted); font-size: .88rem; }
.guide-cta { display: inline-block; }
@media (max-width: 640px) {
    .date-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .date-cards[data-collapsed="true"] .date-extra { display: none; }
    .product-row { gap: 6px; }
    .product-row .quantity-field > span { display: none; }
    .product-row .product-availability { font-size: .72rem; white-space: normal; }
}
@media (min-width: 641px) { .date-more { display: none; } .date-extra { display: flex !important; } }

/* Reservation tracking page. */
.skip-link { position: fixed; top: 0; right: 16px; z-index: 100; transform: translateY(-200%); background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 0 0 8px 8px; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.track-summary { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; display: grid; gap: 10px; }
.track-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.track-meta dt { font-size: .75rem; color: var(--muted); }
.track-meta dd { margin: 2px 0 0; font-weight: 700; }
.track-meta small { font-weight: 400; color: var(--muted); }
.code-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copy-code { padding: 4px 12px; font-size: .8rem; min-height: 0; }
.copy-state { font-size: .75rem; color: var(--teal); font-weight: 400; }
.wa-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 12px; background: var(--teal-surface); border-color: var(--teal-line); }
.wa-card h2 { font-size: 1rem; margin: 0 0 4px; }
.wa-card p { margin: 0; font-size: .85rem; line-height: 1.8; }
.receipt-items { padding: 6px 18px 14px; }
.receipt-items .receipt-line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 9px 0; }
.receipt-items .line-qty { color: var(--muted); font-size: .85rem; }
.receipt-items .line-sum { font-weight: 700; min-width: 70px; text-align: end; }
.receipt-items .receipt-total { padding-top: 14px; }
.receipt-items .receipt-total strong { font-size: 1.3rem; }
@media (max-width: 640px) { .receipt-items .receipt-line { grid-template-columns: 1fr auto; } .receipt-items .line-qty { grid-column: 1; grid-row: 2; } .receipt-items .line-sum { grid-row: 1 / span 2; grid-column: 2; } }
.wa-actions { flex: 1 1 100%; display: grid; gap: 12px; justify-items: start; }
.wa-manual { width: 100%; background: #fff; border: 1px solid var(--teal-line); border-radius: 10px; padding: 12px 14px; }
.wa-manual h3 { margin: 0 0 4px; font-size: .9rem; }
.wa-manual dl { margin: 10px 0 0; display: grid; gap: 10px; }
.wa-manual dt { font-size: .75rem; color: var(--muted); }
.wa-manual dd { margin: 2px 0 0; }
.ltr-value { direction: ltr; unicode-bidi: isolate; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Tracking by public code. */
.site-nav { justify-content: space-between; }
.nav-links a { font-weight: 700; color: var(--teal); }
.track-page { max-width: 640px; margin-inline: auto; }
.track-form { display: grid; gap: 12px; margin-bottom: 14px; }
.track-result { display: grid; gap: 12px; }
.track-access { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; justify-items: start; }
.track-access p { margin: 0; line-height: 1.9; }
.booked-code { background: var(--teal-surface); border: 2px solid var(--teal); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.booked-code h2 { margin: 0 0 4px; font-size: 1.1rem; }
.booked-code p { margin: 4px 0; }
.booked-value { font-size: 1.5rem; letter-spacing: 1px; }

/* Email accounts / reservation workflow */
textarea { display: block; width: 100%; min-height: 96px; padding: 10px 12px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--paper); color: var(--ink); margin-top: 7px; font: inherit; resize: vertical; }
.rejection-card { border-color: var(--danger); background: var(--danger-surface); }
.rejection-card h2 { color: var(--danger); margin-top: 0; }
.countdown { color: var(--primary); font-weight: 700; }
.next-step-line { margin: 10px 0 0; line-height: 1.9; }
.next-step .cell-sub { display: block; margin-top: 4px; }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.account-actions form { margin: 0; }

/* 48-hour countdown: calm, yellow below 24 h, red below 6 h, expired */
.countdown-card { text-align: center; background: var(--teal-surface); border: 1px solid var(--teal-line); border-radius: 12px; padding: 12px 16px; color: var(--navy); }
.countdown-card p { margin: 0; }
.cd-label { font-size: .85rem; font-weight: 600; }
.cd-time { font-size: 2.3rem; font-weight: 800; letter-spacing: .04em; line-height: 1.3; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.cd-sub { font-size: .78rem; color: var(--muted); line-height: 1.7; }
.countdown-card.cd-warn { background: var(--warning-surface); border-color: #e3c58d; color: var(--warning); }
.countdown-card.cd-danger { background: var(--danger-surface); border-color: var(--danger-border); color: var(--danger); }
.countdown-card.cd-expired { background: var(--danger-surface); border-color: var(--danger); color: var(--danger); }
.countdown-card.cd-warn .cd-sub, .countdown-card.cd-danger .cd-sub, .countdown-card.cd-expired .cd-sub { color: inherit; }

/* Customer reservation pages: card layout, product table, stacked phone form */
.reserve-page { --rp-shadow: 0 1px 2px rgba(8, 36, 76, .06), 0 2px 8px rgba(8, 36, 76, .04); }
.reserve-page .page-heading { margin-bottom: 12px; }
.reserve-page .back-link { margin: 0 0 6px; }
.reserve-page .track-summary, .reserve-page .wa-card, .reserve-page .panel { border-radius: 14px; box-shadow: var(--rp-shadow); }
.reserve-page .notice { padding: 10px 14px; margin-bottom: 10px; }
.rp-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--rp-shadow); padding: 16px 18px; margin-bottom: 12px; }
.rp-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; margin-bottom: 10px; }
.rp-card h2, .rp-card h2 label { font-size: 1.02rem; font-weight: 700; color: var(--navy); margin: 0; }
.rp-card h2 label { display: inline; }
.rp-hint { font-size: .78rem; color: var(--muted); line-height: 1.7; }
.rp-lead { font-size: .86rem; line-height: 1.9; margin: 0 0 12px; }
.rp-status { border-inline-start: 4px solid var(--teal); padding-block: 12px; }
.rp-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.rp-status .track-meta { gap: 4px 26px; }
.rp-status .rp-hint { margin: 8px 0 0; display: block; }
.rp-alert { border-color: var(--danger-border); background: var(--danger-surface); }
.rp-alert ul { margin: 6px 0; padding-inline-start: 18px; }
/* four-column product table */
.rp-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .9rem; }
.rp-table th, .rp-table td { padding: 10px 8px; vertical-align: middle; }
.rp-table thead th { font-size: .74rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--line); background: transparent; white-space: nowrap; padding-block: 6px; }
.rp-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.rp-table .c-name { width: auto; text-align: start; font-weight: 600; }
.rp-table .c-qty { width: 104px; text-align: center; }
.rp-table .c-price { width: 130px; text-align: center; }
.rp-table .c-sum { width: 120px; text-align: end; font-weight: 700; }
.rp-table thead .c-sum { font-weight: 600; }
.rp-table input[type=number] { width: 76px; min-height: 38px; margin: 0 auto; padding: 4px 6px; text-align: center; font-size: 1rem; font-weight: 600; background: var(--canvas); border-radius: 8px; }
.rp-table tfoot th, .rp-table tfoot td { border-top: 2px solid var(--navy); padding-top: 12px; }
.rp-table tfoot th { text-align: start; font-size: .9rem; color: var(--navy); }
.rp-table tfoot th small { font-weight: 400; color: var(--muted); }
.rp-grand { font-size: 1.35rem; color: var(--navy); }
.rp-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.rp-actions button, .rp-date-row button { min-height: 40px; margin: 0; padding: 4px 18px; }
.rp-date-row { display: flex; gap: 8px; }
.rp-date-row select { margin: 0; flex: 1; min-height: 44px; }
/* phone form: stacked, full width */
.rp-field { display: grid; gap: 6px; margin-bottom: 12px; }
.rp-field label { margin: 0; font-size: .86rem; font-weight: 600; }
.rp-field select, .rp-field input { margin: 0; width: 100%; min-height: 46px; }
.rp-submit .full-width { width: 100%; min-height: 48px; margin-top: 2px; }
.rp-discard { text-align: end; margin-top: 4px; }
.rp-discard button { min-height: 36px; font-size: .8rem; }
@media (max-width: 560px) {
    .reserve-page .rp-card { padding: 14px; }
    .rp-table, .rp-table tbody, .rp-table tfoot, .rp-table tr, .rp-table th, .rp-table td { display: block; }
    .rp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .rp-table tbody tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 8px; padding: 10px 0; }
    .rp-table tbody tr + tr { border-top: 1px solid var(--line); }
    .rp-table tbody tr + tr > * { border-top: 0; }
    .rp-table th, .rp-table td { padding: 0; width: auto !important; }
    .rp-table .c-name { grid-column: 1 / -1; }
    .rp-table .c-qty, .rp-table .c-price, .rp-table .c-sum { text-align: start; }
    .rp-table td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 400; color: var(--muted); margin-bottom: 2px; }
    .rp-table input[type=number] { margin: 0; width: 100%; max-width: 92px; }
    .rp-table tfoot tr { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--navy); padding-top: 10px; }
    .rp-table tfoot th, .rp-table tfoot td { border-top: 0; padding: 0; }
    .rp-date-row { flex-direction: column; }
}

/* Customer shell: header user menu, auth actions, reservation list cards, notices */
.site-nav { gap: 16px; min-height: 76px; }
.nav-links { margin-inline-end: auto; margin-inline-start: 24px; gap: 22px; }
.nav-links a { color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; padding: 8px 0; }
.nav-links a:hover { color: var(--navy); }
.nav-links a[aria-current] { color: var(--teal); border-bottom-color: var(--teal); }
.auth-actions { display: flex; gap: 8px; align-items: center; }
.auth-actions a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 18px; border-radius: 8px; text-decoration: none; font-size: .88rem; font-weight: 700; border: 1px solid var(--navy); }
.auth-login { color: var(--navy); background: transparent; }
.auth-login:hover { background: var(--teal-surface); border-color: var(--teal); color: var(--teal); }
.auth-register { color: #fff; background: var(--navy); }
.auth-register:hover { background: var(--navy-hover); color: #fff; }
.user-menu { position: relative; }
.user-trigger { min-height: 42px; padding: 3px 10px 3px 12px; gap: 8px; background: var(--paper); color: var(--navy); border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 600; box-shadow: 0 1px 2px #08244c0f; }
.user-trigger:hover { background: var(--teal-surface); color: var(--navy); border-color: var(--teal-line); }
.user-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; flex-shrink: 0; }
.user-email { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-caret { transition: transform .15s; }
.user-trigger[aria-expanded="true"] .user-caret { transform: rotate(180deg); }
.user-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30; min-width: 240px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px #08244c26; padding: 6px; }
.user-panel[hidden] { display: none; }
.user-panel-head { margin: 0; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); font-size: .74rem; color: var(--muted); display: grid; line-height: 1.6; }
.user-panel-head bdi { color: var(--navy); font-weight: 700; font-size: .82rem; overflow-wrap: anywhere; }
.user-panel a, .user-panel button { display: flex; width: 100%; min-height: 42px; margin: 2px 0 0; padding: 6px 12px; align-items: center; justify-content: flex-start; border: 0; border-radius: 8px; background: transparent; color: var(--navy); font-size: .88rem; font-weight: 600; text-decoration: none; cursor: pointer; text-align: start; }
.user-panel a:hover, .user-panel button:hover { background: var(--teal-surface); color: var(--teal); }
.user-panel form { margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 2px; }
.user-panel form button { color: var(--danger); }
.user-panel form button:hover { background: var(--danger-surface); color: var(--danger); }

.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; border: 1px solid var(--teal-line); border-inline-start-width: 4px; background: var(--teal-surface); color: var(--navy); box-shadow: 0 1px 2px #08244c0d; }
.notice::before { content: "✓"; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-size: .75rem; font-weight: 800; line-height: 1; }
ul.error { list-style: none; padding: 14px 18px; border: 1px solid var(--danger-border); border-inline-start: 4px solid var(--danger); border-radius: 12px; display: grid; gap: 4px; }
ul.error li::before { content: "!"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-inline-end: 8px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 800; }

.rl-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.rl-toolbar .action-link { min-height: 42px; margin: 0; }
.rl-count { margin: 0; color: var(--muted); }
.rl-count strong { color: var(--navy); font-size: 1.1rem; }
.rl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.rl-card { display: flex; flex-direction: column; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 1px 3px #08244c0f; }
.rl-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rl-code { color: var(--muted); font-size: .8rem; }
.rl-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 12px 0; border-block: 1px solid var(--line); }
.rl-meta dt { font-size: .74rem; color: var(--muted); }
.rl-meta dd { margin: 0; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.rl-next { margin: 0; font-size: .86rem; line-height: 1.9; flex: 1; }
.rl-next .countdown { display: block; color: var(--teal); }
.rl-next .cell-sub { display: block; color: var(--danger); }
.rl-card .action-link { width: 100%; min-height: 44px; margin: 0; }
.rl-card .action-link.rl-secondary { background: transparent; color: var(--navy); border-color: var(--control-border); }
.rl-card .action-link.rl-secondary:hover { background: var(--teal-surface); border-color: var(--teal); color: var(--teal); }
.rl-empty { display: grid; justify-items: center; gap: 4px; background: var(--paper); border-radius: 14px; padding: 40px 24px; }
.rl-empty p { max-width: 460px; margin: 0 0 12px; }

.badge { padding: 3px 12px; font-size: .76rem; }

@media (max-width: 720px) {
    .site-nav { flex-wrap: wrap; min-height: 0; padding-block: 10px; row-gap: 6px; }
    .brand { margin-inline-end: auto; }
    .nav-links { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; border-top: 1px solid var(--line); padding-top: 4px; }
    .nav-links a { font-size: .82rem; white-space: nowrap; padding: 8px 0; }
    .user-email { display: none; }
    .user-trigger { padding: 3px 6px 3px 10px; }
    .user-panel { min-width: min(260px, calc(100vw - 32px)); }
    .rl-list { grid-template-columns: 1fr; }
    .rl-toolbar .action-link { padding-inline: 14px; }
    .auth-actions a { min-height: 38px; padding-inline: 14px; }
}

/* Home hero: mirrored image keeps products on the left; RTL text sits on the right. */
.home-hero { position: relative; display: flex; align-items: center; min-height: 380px; margin-bottom: 30px; padding: 0; border: 1px solid var(--teal-line); border-radius: 16px; overflow: hidden; background: #eef3f7; }
.home-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.home-hero .hero-copy { position: relative; z-index: 1; width: min(44%, 520px); margin: 0; padding: 32px clamp(20px, 4vw, 56px); text-align: right; }
.home-hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.45; margin-bottom: 6px; text-wrap: balance; }
.hero-tagline { margin: 0 0 14px; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; color: var(--teal); }
.home-hero .hero-copy .intro p { max-width: 30rem; font-size: 1rem; line-height: 1.9; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 18px; }
.hero-cta { background: var(--navy); border-color: var(--navy); color: #fff; padding-inline: 24px; white-space: nowrap; }
.hero-cta:hover { background: var(--teal); border-color: var(--teal); }
.home-hero .guide-link { margin-top: 0; }
@media (max-width: 860px) {
    .home-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; background: #fff; }
    .home-hero-img { position: static; display: block; height: 210px; order: 2; }
    .home-hero .hero-copy { width: auto; padding: 24px 20px 20px; }
    .home-hero .hero-copy .intro p { max-width: none; font-size: .95rem; }
    .hero-cta { width: 100%; }
}
