:root {
  --forest: #243c32;
  --forest-2: #355b4b;
  --sage: #e8efea;
  --sage-2: #d6e2d9;
  --cream: #f8f7f2;
  --paper: #ffffff;
  --ink: #1e2b25;
  --muted: #68766f;
  --line: #dfe5e0;
  --gold: #b89151;
  --gold-light: #f5eddc;
  --red: #9a443b;
  --shadow: 0 10px 26px rgba(36, 60, 50, .07);
}
* { box-sizing: border-box; }
html { background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #8fb8a1; outline-offset: 2px; }
.app-frame { min-height: 100vh; display: flex; }
.sidebar { width: 246px; background: var(--forest); color: #fff; padding: 27px 16px 18px; display: flex; flex-direction: column; flex-shrink: 0; }
.brand-lockup { display: flex; gap: 11px; align-items: center; padding: 0 9px 34px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; color: var(--forest); background: #e8d9b7; border-radius: 13px; font-size: 23px; flex-shrink: 0; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 23px; letter-spacing: -.4px; }
.brand-subtitle { font-size: 9px; letter-spacing: 1.5px; color: #b9c9bf; margin-top: 4px; }
.side-nav { display: grid; gap: 7px; }
.nav-link { display: flex; gap: 12px; align-items: center; border: 0; color: #d8e2dc; background: transparent; border-radius: 10px; padding: 12px 13px; text-align: left; font-size: 13px; transition: .15s ease; }
.nav-link > span { font-size: 19px; width: 22px; text-align: center; color: #c4d4ca; }
.nav-link:hover { background: rgba(255,255,255,.08); }
.nav-link.active { color: var(--forest); background: #f1f1e9; font-weight: 650; }
.nav-link.active > span { color: var(--forest); }
.sidebar-bottom { margin-top: auto; }
.privacy-note { display: flex; gap: 9px; align-items: flex-start; border-top: 1px solid rgba(255,255,255,.16); padding: 20px 10px 17px; color: #f4f7f4; }
.privacy-dot, .chip-dot { width: 7px; height: 7px; display: inline-block; border-radius: 100%; background: #9bc1a6; margin-top: 5px; flex-shrink: 0; }
.privacy-note strong { display: block; font-size: 11px; font-weight: 650; }
.privacy-note small { display: block; color: #b8c8bf; margin-top: 4px; font-size: 10px; }
.main-area { flex: 1; min-width: 0; max-width: 1600px; margin: 0 auto; padding: 0 40px; }
.topbar { height: 82px; display: flex; justify-content: flex-end; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.mobile-brand { display: none; }
.preview-chip { display: flex; align-items: center; gap: 7px; background: #eef2ee; color: #617269; font-size: 9px; letter-spacing: 1.1px; padding: 8px 10px; border-radius: 30px; font-weight: 750; }
.preview-chip .chip-dot { background: var(--gold); margin: 0; width: 6px; height: 6px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 11px 15px; font-size: 12px; font-weight: 650; transition: .15s ease; }
.button-primary { background: var(--forest); color: #fff; }
.button-primary:hover { background: var(--forest-2); }
.button-secondary { color: var(--forest); background: #fff; border-color: var(--line); }
.button-secondary:hover { border-color: #b5c9ba; background: #fbfcfb; }
.button-text { color: var(--forest-2); background: transparent; border: 0; padding: 8px; }
.button-danger { background: #fff3f0; color: var(--red); border-color: #f1d5d1; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.preview-banner { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; margin: 20px 0 27px; background: #f6eedf; border: 1px solid #e9dec9; border-radius: 12px; color: #66583f; font-size: 11px; line-height: 1.5; }
.preview-banner strong { font-weight: 750; }
.banner-icon { font-size: 15px; }
.banner-close { border: 0; background: transparent; color: #887959; font-size: 20px; line-height: 1; margin-left: auto; padding: 0 2px; }
.view-content { min-height: 500px; padding-bottom: 40px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 1.7px; font-size: 9px; font-weight: 800; margin-bottom: 8px; }
h1, h2, h3, p { margin-top: 0; }
h1, .serif-title { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.6px; }
h1 { font-size: clamp(29px, 3vw, 40px); line-height: 1.12; margin-bottom: 8px; }
h2 { font-size: 18px; font-weight: 730; letter-spacing: -.2px; margin-bottom: 7px; }
h3 { font-size: 14px; margin-bottom: 6px; }
.subtitle { color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 680px; margin-bottom: 0; }
.eyebrow-label { color: var(--muted); font-size: 10px; letter-spacing: 1.2px; font-weight: 750; text-transform: uppercase; }
.hero { background: var(--forest); color: #fff; border-radius: 20px; padding: clamp(24px, 4vw, 42px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(210px, .6fr); gap: 25px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.hero:after { content: ""; position: absolute; height: 265px; width: 265px; border: 1px solid rgba(238,225,195,.12); border-radius: 50%; right: -77px; top: -74px; box-shadow: 0 0 0 28px rgba(238,225,195,.025), 0 0 0 58px rgba(238,225,195,.02); pointer-events: none; }
.hero .eyebrow { color: #d7bc83; }
.hero h1 { font-size: clamp(34px, 4vw, 48px); max-width: 540px; margin-bottom: 14px; }
.hero p { font-size: 13px; line-height: 1.65; color: #d8e3dc; max-width: 520px; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.hero .button-primary { background: #e9d9b8; color: var(--forest); }
.hero .button-secondary { color: #fff; background: transparent; border-color: rgba(255,255,255,.28); }
.hero-stat-wrap { display: flex; align-items: center; justify-content: center; z-index: 1; }
.hero-stat { width: 180px; height: 180px; border: 1px solid rgba(245,237,220,.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column; background: rgba(255,255,255,.035); }
.hero-stat-number { font-family: Georgia, serif; font-size: 60px; line-height: 1; color: #f0d8a9; }
.hero-stat-label { margin-top: 9px; color: #d9e4dd; text-transform: uppercase; font-size: 9px; letter-spacing: 1.5px; }
.section-row { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 14px; gap: 12px; }
.section-row h2 { margin: 0; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.quick-card { text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; min-height: 138px; padding: 17px; display: flex; flex-direction: column; align-items: flex-start; transition: .15s ease; }
.quick-card:hover { border-color: #b5cabb; transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--forest); background: var(--sage); font-size: 20px; margin-bottom: 16px; }
.quick-card strong { font-size: 12px; margin-bottom: 5px; }
.quick-card small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 16px; margin-top: 28px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 20px; min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.panel-head h2 { margin-bottom: 5px; }
.panel-head p { color: var(--muted); font-size: 11px; margin: 0; }
.empty-state { text-align: center; padding: 29px 16px 25px; background: #fbfcfa; border: 1px dashed #d7e0d9; border-radius: 12px; }
.empty-icon { font-size: 31px; margin-bottom: 11px; color: #7f9989; }
.empty-state h3 { font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.empty-state p { font-size: 11px; line-height: 1.55; max-width: 370px; margin: 0 auto 16px; color: var(--muted); }
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 19px 0 0; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 14px 15px; }
.stat-card span { color: var(--muted); display: block; font-size: 10px; line-height: 1.4; }
.stat-card strong { font-family: Georgia, serif; display: block; font-size: 27px; font-weight: 500; margin-top: 7px; }
.status-tag { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 100px; background: var(--sage); color: var(--forest-2); font-size: 9px; font-weight: 750; white-space: nowrap; }
.status-tag.gold { color: #765a28; background: var(--gold-light); }
.status-tag.red { color: #933e37; background: #fae9e6; }
.toolbar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.search-box { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 180px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 12px; }
.search-box span { color: #86948b; font-size: 18px; }
.search-box input { min-width: 0; width: 100%; border: 0; outline: none; background: transparent; padding: 11px 0; font-size: 12px; }
.field, .select-field { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 9px; padding: 11px 12px; width: 100%; min-height: 42px; font-size: 12px; }
.field::placeholder, textarea::placeholder { color: #9aa59e; }
label.form-label { display: block; font-size: 11px; font-weight: 700; color: #405147; margin-bottom: 7px; }
.field-group { min-width: 0; }
.field-help { color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-section { margin-top: 23px; border-top: 1px solid var(--line); padding-top: 20px; }
.form-section h2 { font-size: 14px; margin-bottom: 15px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.photo-box { border: 1px dashed #cbd8cf; border-radius: 12px; padding: 17px; background: #fbfcfa; }
.photo-box input[type=file] { display: block; width: 100%; margin-top: 10px; font-size: 11px; }
.photo-preview { width: 90px; max-height: 120px; object-fit: cover; border-radius: 8px; margin-top: 10px; display: none; }
.prototype-inline { padding: 11px 12px; background: #f7f1e5; border-radius: 9px; color: #74603a; font-size: 10px; line-height: 1.5; }
.bottle-list { display: grid; gap: 10px; }
.bottle-card { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: #fff; }
.bottle-thumb { width: 52px; height: 62px; background: var(--sage); border-radius: 10px; display: grid; place-items: center; font-size: 25px; color: var(--forest-2); }
.bottle-card h3 { margin-bottom: 4px; font-size: 13px; }
.bottle-meta { color: var(--muted); font-size: 10px; line-height: 1.5; }
.bottle-qty { text-align: right; }
.bottle-qty strong { display: block; font-size: 16px; }
.bottle-qty small { color: var(--muted); font-size: 9px; }
.menu-header { background: var(--forest); border-radius: 17px; color: white; text-align: center; padding: 34px 20px; margin-bottom: 20px; }
.menu-header .eyebrow { color: #e2ca95; }
.menu-header h1 { font-size: 39px; }
.menu-header p { color: #dae4de; font-size: 12px; margin: 0 auto; max-width: 560px; line-height: 1.55; }
.menu-tabs { display: flex; gap: 8px; margin-bottom: 19px; }
.menu-tab { border: 1px solid var(--line); border-radius: 100px; background: #fff; padding: 9px 14px; font-size: 11px; color: var(--muted); }
.menu-tab.active { color: #fff; background: var(--forest); border-color: var(--forest); }
.menu-section { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 19px; margin-bottom: 12px; }
.menu-section h2 { font-family: Georgia, serif; font-weight: 500; font-size: 24px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.menu-item { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px dotted #d7dfd9; }
.menu-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.menu-item h3 { font-size: 13px; margin-bottom: 3px; }
.menu-item p { font-size: 10px; color: var(--muted); line-height: 1.5; margin: 0; }
.menu-item-meta { flex: 0 0 auto; text-align: right; font-size: 10px; color: var(--muted); line-height: 1.6; }
.menu-empty { text-align: center; padding: 32px 10px; color: var(--muted); font-size: 12px; }
.pairing-form { display: grid; gap: 14px; }
textarea.field { min-height: 95px; resize: vertical; }
.result-placeholder { background: #fbfcfa; border: 1px dashed #d7e0d9; border-radius: 12px; padding: 25px; text-align: center; }
.result-placeholder .empty-icon { font-size: 28px; }
.result-placeholder p { max-width: 480px; margin: 0 auto; font-size: 11px; color: var(--muted); line-height: 1.55; }
.setting-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; border-bottom: 1px solid var(--line); padding: 14px 0; }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong { font-size: 12px; display: block; }
.setting-row p { font-size: 10px; color: var(--muted); margin: 5px 0 0; line-height: 1.5; }
.app-footer { border-top: 1px solid var(--line); padding: 18px 0 24px; display: flex; justify-content: space-between; color: #8b978f; font-size: 9px; letter-spacing: .8px; }
.mobile-nav { display: none; }
.hidden { display: none !important; }
@media (max-width: 1050px) {
  .main-area { padding: 0 24px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-stat { width: 150px; height: 150px; }
  .hero-stat-number { font-size: 48px; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .app-frame { display: block; }
  .main-area { padding: 0 16px 76px; }
  .topbar { height: 62px; justify-content: space-between; gap: 10px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; font-family: Georgia, serif; font-size: 19px; font-weight: 600; }
  .brand-mark.small { width: 29px; height: 29px; border-radius: 9px; font-size: 17px; }
  .preview-chip { padding: 7px 8px; font-size: 8px; letter-spacing: .7px; }
  .top-add { padding: 9px 11px; font-size: 11px; }
  .preview-banner { margin: 13px 0 21px; padding: 10px; font-size: 10px; gap: 8px; }
  .preview-banner span:not(.banner-icon) { display: inline; }
  .view-content { min-height: 420px; }
  .hero { grid-template-columns: 1fr; padding: 25px 21px; border-radius: 16px; }
  .hero h1 { font-size: 36px; }
  .hero-stat-wrap { display: none; }
  .hero-actions .button { flex: 1; }
  .section-row { margin-top: 24px; }
  .quick-grid { gap: 9px; }
  .quick-card { min-height: 127px; padding: 13px; }
  .quick-icon { width: 32px; height: 32px; margin-bottom: 12px; }
  .two-col { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
  .panel { padding: 15px; }
  .stat-strip { gap: 7px; }
  .stat-card { padding: 11px; }
  .stat-card strong { font-size: 23px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 19px; }
  .page-heading .button { align-self: stretch; }
  h1 { font-size: 32px; }
  .form-grid { grid-template-columns: 1fr; gap: 13px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .bottle-card { grid-template-columns: 43px minmax(0,1fr) auto; gap: 9px; padding: 11px; }
  .bottle-thumb { width: 43px; height: 55px; font-size: 22px; }
  .bottle-qty strong { font-size: 14px; }
  .toolbar { gap: 7px; }
  .search-box { flex-basis: 100%; }
  .menu-header { padding: 28px 15px; }
  .menu-header h1 { font-size: 33px; }
  .menu-section { padding: 15px; }
  .menu-item { gap: 10px; }
  .menu-item-meta { font-size: 9px; }
  .app-footer { font-size: 8px; padding-bottom: 18px; }
  .mobile-nav { display: grid; position: fixed; bottom: 0; left: 0; right: 0; grid-template-columns: repeat(5,1fr); gap: 0; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); z-index: 10; backdrop-filter: blur(12px); }
  .mobile-nav .nav-link { color: #6b7971; display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; border-radius: 9px; padding: 5px 0; }
  .mobile-nav .nav-link > span { color: inherit; font-size: 18px; line-height: 1.15; }
  .mobile-nav .nav-link small { font-size: 9px; }
  .mobile-nav .nav-link.active { color: var(--forest); background: transparent; }
  .nav-add { width: 42px; height: 42px; border: 0; border-radius: 15px; color: white; background: var(--forest); font-size: 28px; line-height: 1; justify-self: center; align-self: center; box-shadow: 0 4px 12px rgba(36,60,50,.22); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
