*,*::before,*::after{box-sizing:border-box;margin:0}
:root{--amber-50:#fffbeb;--amber-100:#fef3c7;--amber-200:#fde68a;--amber-500:#f59e0b;--amber-700:#b45309;--amber-800:#92400e;--amber-900:#78350f;--stone-50:#fafaf9;--stone-100:#f5f5f4;--stone-200:#e7e5e4;--stone-300:#d6d3d1;--stone-400:#a8a29e;--stone-500:#78716c;--stone-600:#57534e;--stone-700:#44403c;--stone-800:#292524;--stone-900:#1c1917;--red-600:#dc2626;--green-600:#16a34a;--max-width:1400px;--sidebar:420px}
html{font-size:16px;line-height:1.6}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;background:var(--stone-50);color:var(--stone-800);min-height:100vh}
.site-header{background:var(--amber-900);color:var(--amber-50);position:sticky;top:0;z-index:100}
.header-inner{max-width:var(--max-width);margin:0 auto;padding:0.75rem 1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.logo{font-size:1.5rem;font-weight:800;color:var(--amber-50);text-decoration:none;letter-spacing:-0.02em}
.logo::before{content:"🍺 ";font-size:1.25rem}
.main-nav{display:flex;gap:1.5rem}
.main-nav a{color:var(--amber-200);text-decoration:none;font-size:0.9375rem;font-weight:500;padding:0.25rem 0;border-bottom:2px solid transparent;transition:border-color 0.15s}
.main-nav a:hover,.main-nav a.active{color:var(--amber-50);border-bottom-color:var(--amber-500)}
.workspace{display:grid;grid-template-columns:var(--sidebar) 1fr;max-width:var(--max-width);margin:0 auto;min-height:calc(100vh - 60px)}
.builder-panel{background:#fff;border-right:1px solid var(--stone-200);padding:1.5rem;overflow-y:auto;max-height:calc(100vh - 60px)}
.preview-panel{background:var(--stone-100);padding:1.5rem;overflow-y:auto;max-height:calc(100vh - 60px)}
.panel-header{margin-bottom:1.25rem}
.panel-header h1{font-size:1.375rem;font-weight:700;color:var(--stone-900);letter-spacing:-0.01em}
.panel-sub{font-size:0.875rem;color:var(--stone-500);margin-top:0.25rem}
.preset-bar{display:flex;align-items:center;gap:0.75rem;margin-bottom:1.25rem;padding:0.875rem;background:var(--amber-50);border:1px solid var(--amber-200);border-radius:0.5rem}
.preset-bar label{font-size:0.875rem;font-weight:500;color:var(--amber-800)}
.preset-bar select{flex:1;padding:0.5rem;border:1px solid var(--stone-300);border-radius:0.375rem;background:#fff;font-size:0.875rem}
.form-sections{display:flex;flex-direction:column;gap:1.25rem}
.form-section{background:var(--stone-50);border:1px solid var(--stone-200);border-radius:0.5rem;padding:1rem}
.form-section h2{font-size:0.9375rem;font-weight:600;color:var(--stone-700);text-transform:uppercase;letter-spacing:0.04em;margin-bottom:0.875rem}
.field-row{display:flex;gap:0.75rem;margin-bottom:0.75rem}
.field{flex:1;min-width:0}
.field-wide{flex:2}
.field label{display:block;font-size:0.8125rem;font-weight:500;color:var(--stone-600);margin-bottom:0.375rem}
.field input,.field select,.field textarea{width:100%;padding:0.5625rem 0.75rem;border:1px solid var(--stone-300);border-radius:0.375rem;background:#fff;font-size:0.875rem;color:var(--stone-800);transition:border-color 0.15s}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--amber-500);box-shadow:0 0 0 3px var(--amber-100)}
.field input::placeholder,.field textarea::placeholder{color:var(--stone-400)}
.checkbox-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0.5rem}
.check-label{display:flex;align-items:center;gap:0.5rem;font-size:0.8125rem;color:var(--stone-700);cursor:pointer;padding:0.375rem;border-radius:0.25rem;transition:background 0.1s}
.check-label:hover{background:var(--stone-100)}
.check-label input{width:1rem;height:1rem;accent-color:var(--amber-700);flex-shrink:0}
.action-bar{display:flex;gap:0.5rem;margin-top:1.25rem;flex-wrap:wrap}
.btn-primary,.btn-secondary{padding:0.625rem 1.125rem;border-radius:0.375rem;font-size:0.875rem;font-weight:500;cursor:pointer;transition:all 0.15s;border:none}
.btn-primary{background:var(--amber-700);color:#fff}
.btn-primary:hover{background:var(--amber-800)}
.btn-secondary{background:var(--stone-200);color:var(--stone-700)}
.btn-secondary:hover{background:var(--stone-300)}
.history-section{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--stone-200)}
.history-section h2{font-size:0.9375rem;font-weight:600;color:var(--stone-700);margin-bottom:0.75rem}
.history-list{display:flex;flex-direction:column;gap:0.5rem}
.history-item{display:flex;align-items:center;justify-content:space-between;padding:0.625rem 0.875rem;background:var(--stone-100);border-radius:0.375rem;font-size:0.8125rem}
.history-item-name{font-weight:500;color:var(--stone-800)}
.history-item-date{color:var(--stone-500);font-size:0.75rem}
.history-item-actions{display:flex;gap:0.375rem}
.history-btn{padding:0.25rem 0.5rem;font-size:0.75rem;border:none;border-radius:0.25rem;background:var(--stone-200);color:var(--stone-600);cursor:pointer}
.history-btn:hover{background:var(--stone-300)}
.history-empty{color:var(--stone-500);font-size:0.8125rem;font-style:italic}
.preview-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}
.preview-header h2{font-size:1.125rem;font-weight:600;color:var(--stone-700)}
.preview-tag{font-size:0.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.06em;color:var(--green-600);background:#dcfce7;padding:0.25rem 0.625rem;border-radius:9999px}
.preview-page{background:#fff;border:1px solid var(--stone-300);border-radius:0.5rem;padding:1.5rem;box-shadow:0 1px 3px rgba(0,0,0,0.08);max-width:680px;margin:0 auto}
.sheet-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1.25rem;padding-bottom:0.875rem;border-bottom:2px solid var(--amber-200)}
.sheet-title-block h3{font-size:1.25rem;font-weight:700;color:var(--stone-900);margin-bottom:0.25rem}
.sheet-style{font-size:0.875rem;color:var(--stone-500)}
.sheet-meta{text-align:right;font-size:0.8125rem;color:var(--stone-600);line-height:1.7}
.sheet-meta strong{color:var(--stone-700)}
.sheet-section{margin-bottom:1.125rem;padding-bottom:1rem;border-bottom:1px solid var(--stone-200)}
.sheet-section:last-of-type{border-bottom:none}
.sheet-section h4{font-size:0.8125rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;color:var(--amber-800);margin-bottom:0.625rem}
.sheet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0.5rem}
.sheet-cell{background:var(--stone-50);padding:0.5rem 0.625rem;border-radius:0.25rem;border:1px solid var(--stone-200)}
.cell-label{display:block;font-size:0.6875rem;text-transform:uppercase;letter-spacing:0.04em;color:var(--stone-500);margin-bottom:0.125rem}
.cell-value{display:block;font-size:0.875rem;color:var(--stone-700);font-weight:500}
.sheet-table{width:100%;border-collapse:collapse;font-size:0.8125rem}
.sheet-table th{text-align:left;padding:0.5rem 0.625rem;background:var(--stone-100);border-bottom:1px solid var(--stone-300);font-weight:600;color:var(--stone-600);font-size:0.6875rem;text-transform:uppercase;letter-spacing:0.04em}
.sheet-table td{padding:0.5rem 0.625rem;border-bottom:1px solid var(--stone-200);color:var(--stone-700)}
.sheet-table tbody tr:last-child td{border-bottom:none}
.tasting-grid{display:flex;flex-direction:column;gap:0.5rem}
.tasting-item{display:flex;align-items:center;gap:0.75rem}
.tasting-label{font-size:0.75rem;font-weight:600;text-transform:uppercase;letter-spacing:0.04em;color:var(--stone-500);width:5.5rem;flex-shrink:0}
.tasting-lines{flex:1;height:1.5rem;border-bottom:1px dotted var(--stone-300)}
.sheet-footer{margin-top:1rem;padding-top:0.875rem;border-top:1px solid var(--stone-200);font-size:0.75rem;color:var(--stone-500)}
.sheet-footer p{margin-bottom:0.375rem}
.sheet-version{color:var(--stone-400);font-size:0.6875rem}
.support-content{background:#fff;border-top:1px solid var(--stone-200);padding:2.5rem 1.5rem}
.support-inner{max-width:720px;margin:0 auto}
.support-content h2{font-size:1.25rem;font-weight:700;color:var(--stone-900);margin-bottom:0.875rem;margin-top:1.75rem}
.support-content h2:first-child{margin-top:0}
.support-content h3{font-size:1rem;font-weight:600;color:var(--stone-800);margin-bottom:0.625rem;margin-top:1.5rem}
.support-content p{margin-bottom:0.875rem;color:var(--stone-700);font-size:0.9375rem}
.support-content ul{margin-bottom:1rem;padding-left:1.25rem}
.support-content li{margin-bottom:0.5rem;color:var(--stone-700);font-size:0.9375rem}
.support-content strong{color:var(--stone-800)}
.compare-table{width:100%;border-collapse:collapse;margin:1rem 0;font-size:0.875rem}
.compare-table th,.compare-table td{padding:0.625rem 0.875rem;text-align:left;border:1px solid var(--stone-200)}
.compare-table th{background:var(--stone-100);font-weight:600;color:var(--stone-700);font-size:0.75rem;text-transform:uppercase;letter-spacing:0.04em}
.compare-table td{color:var(--stone-700)}
.faq-block{margin-top:1.5rem}
.faq-block dt{font-weight:600;color:var(--stone-800);margin-top:1rem;margin-bottom:0.375rem;font-size:0.9375rem}
.faq-block dd{color:var(--stone-700);font-size:0.9375rem;margin-left:0;padding-left:1rem;border-left:3px solid var(--amber-200)}
.support-footer{margin-top:2rem;padding-top:1rem;border-top:1px solid var(--stone-200);font-size:0.8125rem;color:var(--stone-500)}
.support-footer a{color:var(--amber-700)}
.site-footer{background:var(--stone-900);color:var(--stone-400);padding:1.25rem 1.5rem}
.footer-inner{max-width:var(--max-width);margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.footer-inner a{color:var(--stone-300);text-decoration:none}
.footer-inner a:hover{color:var(--amber-200)}
.footer-inner nav{display:flex;gap:1.25rem}
@media (max-width:960px){.workspace{grid-template-columns:1fr}.builder-panel{max-height:none;border-right:none;border-bottom:1px solid var(--stone-200)}.preview-panel{max-height:none}.sheet-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.header-inner{flex-wrap:wrap}.main-nav{gap:1rem}.field-row{flex-direction:column}.checkbox-grid{grid-template-columns:1fr}.sheet-grid{grid-template-columns:1fr}.sheet-header{flex-direction:column;gap:0.75rem}.sheet-meta{text-align:left}.preview-page{padding:1rem}.footer-inner{flex-direction:column;text-align:center}}
@media print{.site-header,.action-bar,.history-section,.support-content,.site-footer{display:none!important}.workspace{grid-template-columns:1fr;display:block}.builder-panel{display:none}.preview-panel{max-height:none;overflow:visible;background:#fff}.preview-page{border:none;box-shadow:none;max-width:none}}
.sheet-section.hidden{display:none}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
