:root {
    --paper: #fff;
    --paper-deep: #f5f5f2;
    --white: #fff;
    --ink: #181816;
    --muted: #62645c;
    --red: #181816;
    --red-hover: #343530;
    --olive: #62645c;
    --line: #e3e3df;
    --serif: 'DM Sans', sans-serif;
    --workspace-paper: #fff;
    --workspace-ink: #181816;
    --workspace-red: #181816;
    --workspace-line: #e3e3df;
    --yf-lime: #d9f95b;
    --yf-tomato: #eb4e35;
}
html { scroll-padding-top: 104px; }
body { background: #fff; color: var(--ink); font-size: 16px; }
::selection { color: var(--ink); background: var(--yf-lime); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 800; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.container { width: min(1280px, calc(100% - 96px)); }
.eyebrow { color: var(--muted); font-size: 12px; }
.button { min-height: 52px; padding: 13px 24px; border-radius: 12px; font-size: 15px; font-weight: 700; }
.button-primary, .button-cream { background: var(--yf-lime); color: var(--ink); border-color: transparent; }
.button-primary:hover, .button-cream:hover { background: #d0ee58; color: var(--ink); }
.button-secondary { background: #fff; border-color: #d2d3cb; color: var(--ink); }
.button-secondary:hover { background: var(--paper-deep); border-color: var(--ink); }
.button-small, .text-button { min-height: 44px; }
.text-button { font: inherit; font-weight: 600; padding: 8px 0; }
.yf-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #ededeb; }
.yf-header-inner { min-height: 80px; display: flex; align-items: center; gap: 32px; }
.yf-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex-shrink: 0; font-size: 32px; line-height: 1; font-weight: 800; letter-spacing: -.065em; }
.yf-brand > span:first-child { font-size: 35px; letter-spacing: 0; }
.yf-desktop-nav { display: flex; gap: 28px; align-items: center; margin-left: auto; }
.yf-desktop-nav a, .yf-login { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.yf-desktop-nav a:hover, .yf-login:hover { text-decoration: underline; text-underline-offset: 5px; }
.yf-header-actions, .yf-desktop-actions { display: flex; align-items: center; gap: 24px; }
.yf-desktop-actions .button { font-size: 14px; min-height: 44px; padding: 10px 18px; white-space: nowrap; }
.yf-header-actions form { margin: 0; }
.yf-country, .yf-mobile-menu { position: relative; }
.yf-country summary, .yf-mobile-menu summary { display: flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; min-height: 44px; gap: 7px; font-weight: 700; font-size: 13px; }
.yf-country summary::-webkit-details-marker, .yf-mobile-menu summary::-webkit-details-marker { display: none; }
.yf-market-dot { height: 5px; width: 5px; border-radius: 50%; background: var(--ink); }
.yf-country-options, .yf-mobile-menu nav { position: absolute; right: 0; top: calc(100% + 12px); width: 270px; max-width: calc(100vw - 40px); padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 48px #18181614; }
.yf-country-options { width: 235px; }
.yf-country-options > a, .yf-country-options > span { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 8px; min-height: 44px; font-size: 14px; }
.yf-country-options a:hover { background: var(--paper-deep); border-radius: 8px; }
.yf-country-options small { font-size: 11px; color: var(--muted); }
.yf-current-market, .yf-country-options [aria-current] { font-weight: 700; }
.yf-mobile-menu { display: none; }
.yf-mobile-menu summary { width: 44px; border: 1px solid var(--line); border-radius: 12px; }
.yf-mobile-menu nav > a, .yf-mobile-menu nav form > button { display: flex; align-items: center; min-height: 48px; padding: 12px; font-size: 15px; border-radius: 10px; font-weight: 600; }
.yf-mobile-menu nav > a:hover { background: var(--paper-deep); }
.yf-mobile-menu nav > .button { margin-top: 8px; background: var(--yf-lime); }
.yf-footer { background: #fff; border-top: 1px solid var(--line); padding: 72px 0 24px; }
.yf-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; padding-bottom: 64px; }
.yf-footer-line { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.035em; margin-top: 28px; }
.yf-footer-line span { color: var(--muted); }
.yf-footer nav { display: flex; flex-direction: column; align-items: flex-start; }
.yf-footer nav h2 { margin-bottom: 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.yf-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; }
.yf-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.yf-footer nav p { color: var(--muted); font-size: 13px; margin-top: 14px; }
.yf-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; font-size: 13px; color: var(--muted); }
.yf-footer-bottom > span:last-child { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.yf-footer-bottom strong { color: var(--ink); }
/* Shared owner and authentication screens keep their existing forms and routes. */
.auth-story h1, .auth-card h1, .auth-card h2, .login-caption, .workspace-heading h1,
.restaurant-monogram, .editor-heading h2, .publish-panel h2, .admin-restaurant h2, .auth-photo span { font-family: var(--sans); font-weight: 800; }
.auth-story h1 { letter-spacing: -.055em; }
.auth-story h1 em { color: var(--ink); }
.auth-story > p, .page-heading p, .form-footnote, .auth-switch, .field small, .optional,
.editor-panel > .muted, .sidebar-tip, .saved-dish p, .publish-panel p { color: var(--muted); }
.auth-card { border-radius: 20px; box-shadow: none; }
.field input, .field select, .field textarea { min-height: 48px; border-color: #d8d9d1; border-radius: 10px; font-size: 16px; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.checkbox-label { font-size: 14px; color: var(--muted); }
.checkbox-label input { accent-color: var(--ink); }
.check-list li:before { background: var(--yf-lime); color: var(--ink); }
.auth-switch a, .directory-sources a, .directory-notice a { color: var(--ink); text-decoration: underline; }
.login-caption { font-size: 18px; color: var(--muted); font-weight: 600; }
.editor-panel, .admin-restaurant { border-color: var(--line); border-radius: 16px; }
.publish-panel, .sidebar-tip, .restaurant-monogram, .menu-document, .directory-sources,
.empty-state, .upload-zone, .pdf-review-link { background: var(--paper-deep); border-color: var(--line); color: var(--ink); }
.workspace-sidebar { top: 104px; }
.workspace-sidebar nav a:hover { background: var(--paper-deep); color: var(--ink); }
.notice { background: #f4f8e9; border-color: #dfe8c6; color: #34401b; font-size: 14px; }
.notice-error { background: #fff2ed; color: #8b3022; border-color: #efcdc4; }
.upload-zone:hover { background: #f1f5e7; border-color: #62645c; }
.upload-symbol { background: var(--yf-lime); color: var(--ink); }
.form-actions .muted, .editor-heading > .muted { font-size: 12px; }
.pagination a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.pagination [aria-current="page"] { color: var(--ink); background: var(--yf-lime); }
@media (max-width: 1199px) {
    .yf-desktop-nav, .yf-desktop-actions { display: none; }
    .yf-header-actions { margin-left: auto; gap: 18px; }
    .yf-mobile-menu { display: block; }
}
@media (max-width: 900px) {
    .container { width: calc(100% - 64px); }
    .yf-footer-grid { gap: 32px; grid-template-columns: 1.3fr 1fr 1fr; }
    .yf-footer-bottom { align-items: flex-start; }
    .yf-footer-bottom > span:last-child { gap: 8px; flex-direction: column; align-items: flex-end; }
}
@media (max-width: 600px) {
    .container { width: calc(100% - 40px); }
    .yf-header-inner { min-height: 64px; gap: 12px; }
    .yf-brand { font-size: 28px; gap: 8px; }
    .yf-brand > span:first-child { font-size: 31px; }
    .yf-header-actions { gap: 12px; }
    .yf-country summary { gap: 5px; font-size: 12px; }
    .yf-country-options { right: -56px; }
    .yf-footer { padding-top: 48px; }
    .yf-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-bottom: 36px; }
    .yf-footer-grid > div { grid-column: 1 / -1; }
    .yf-footer-line { font-size: 20px; margin-top: 20px; }
    .yf-footer nav a { font-size: 13px; }
    .yf-footer-bottom { flex-direction: column; gap: 16px; }
    .yf-footer-bottom > span:last-child { align-items: flex-start; }
    .auth-card .form-grid { grid-template-columns: 1fr; }
    .auth-story h1 br { display: initial; }
    .workspace-sidebar { position: static; }
    .checkbox-label { font-size: 13px; }
}
@media (max-width: 360px) { .yf-brand { font-size: 25px; gap: 5px; } .yf-brand > span:first-child { font-size: 27px; } .yf-header-actions { gap: 8px; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .button:hover { transform: none; }
}
