* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #252b27; background: #f5f2eb; }
a { color: #75442c; text-underline-offset: 3px; }
.topbar { max-width: 1420px; margin: auto; padding: 23px 32px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #dcd7cd; }
.topbar > a:first-child { font-size: 1.45rem; font-weight: 800; letter-spacing: -.04em; color: #252b27; text-decoration: none; }
.topbar > a:first-child span { font-size: .9rem; font-weight: 450; letter-spacing: 0; color: #65665d; }
.topbar nav a { font-size: .86rem; }
.demo-main { max-width: 1420px; margin: auto; padding: 0 32px; }
.intro { padding: 46px 0 34px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; color: #75442c; font-weight: 650; font-size: .76rem; margin: 0 0 15px; }
h1 { font-size: clamp(2.05rem, 4vw, 3.35rem); line-height: 1.1; letter-spacing: -.05em; margin: 0 0 18px; font-weight: 760; }
.intro > p:last-child { max-width: 650px; color: #555e56; font-size: 1.04rem; margin: 0; }
.workspace { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.controls { background: #fff; border: 1px solid #dddcd5; padding: 24px; border-radius: 5px; }
h2 { margin: 0 0 9px; font-size: 1.1rem; letter-spacing: -.02em; }
.help { color: #5c635c; font-size: .86rem; margin: 0 0 18px; }
.kitchen-status { margin-top:20px; padding-top:16px; border-top:1px solid #dddcd5; }
.week-summary { padding:12px 0; border-bottom:1px solid #e5e7e3; }
.week-summary p { margin:5px 0; }
.kitchen-publish { display:block; padding:12px 0; min-height:48px; font-weight:650; }
.kitchen-shortcuts { display:flex; gap:8px; flex-wrap:wrap; }
.kitchen-shortcuts a { flex:1; padding:10px 8px; min-height:48px; border:1px solid #d4d8d0; border-radius:4px; font-size:.85rem; text-align:center; }
.status-warning { color:#793b17; border-left:3px solid #b56a2b; padding-left:10px; }
label { display: block; font-size: .84rem; font-weight: 650; margin: 15px 0 6px; }
select, textarea { width: 100%; padding: 12px; border: 1px solid #bfc5bd; color: #252b27; background: #fff; border-radius: 4px; font: inherit; }
textarea { font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; background: #fafaf7; min-height: 200px; }
.embed-heading { border-top: 1px solid #dddcd5; padding-top: 24px; margin-top: 26px; }
button { width: 100%; min-height: 46px; padding: 10px 12px; background: #75442c; color: #fff; border: 0; border-radius: 4px; font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer; margin-top: 10px; }
button:hover { background: #5c331f; }
#copy-status { font-size: .83rem; color: #285640; margin: 10px 0; }
#direct { font-size: .86rem; }
.template { margin-top: 24px; padding-top: 18px; border-top: 1px solid #dddcd5; font-size: .85rem; }
.template p { color: #5c635c; margin-bottom: 0; }
.preview { background: #fff; border: 1px solid #dddcd5; border-radius: 5px; overflow: hidden; }
.preview iframe { border: 0; display: block; }
.mode-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid #dcd7cd; }
.mode-switch a { text-decoration: none; padding: 12px 16px; min-height: 48px; border-bottom: 3px solid transparent; font-weight: 650; color: #555e56; }
.mode-switch a[aria-current] { color: #75442c; border-bottom-color: #75442c; }
.edit-sheet { display: block; color: #fff; background: #75442c; padding: 12px 14px; text-align: center; font-size: .9rem; font-weight: 650; border-radius: 4px; text-decoration: none; margin-top: 16px; min-height: 48px; }
.edit-sheet:hover { background: #5c331f; }
.workflow-hint { margin: 8px 0 20px; font-size: .8rem; }
.direct-link { margin-top: 18px; }
.embed-settings { margin-top: 24px; border-top: 1px solid #dddcd5; padding-top: 18px; }
.embed-settings summary { cursor: pointer; font-size: .88rem; font-weight: 650; min-height: 44px; padding: 10px 0; }
.demo-footer { font-size: .79rem; color: #646960; padding: 28px 0; }
:focus-visible { outline: 3px solid #185abd; outline-offset: 3px; }
@media (max-width: 850px) { .workspace { grid-template-columns: 1fr; } .controls { display: grid; grid-template-columns: 1fr; } .topbar, .demo-main { padding-left: 18px; padding-right: 18px; } .intro { padding-top: 32px; } }
@media (max-width: 420px) { .topbar { align-items: flex-start; gap: 16px; } .topbar nav a { max-width: 110px; text-align: right; } .topbar > a:first-child span { display: block; } }

input[type=date] { width: 100%; min-height: 46px; padding: 10px; font: inherit; border: 1px solid #bfc5bd; border-radius: 4px; color: #252b27; background: #fff; }
.planning-settings { border-top: 1px solid #dddcd5; padding-top: 12px; }
.planning-settings summary { font-weight: 650; font-size: .9rem; cursor: pointer; padding: 10px 0; min-height: 44px; }
.planning-settings a { display: block; font-size: .85rem; margin-bottom: 12px; }
.planning-settings .help { margin: 8px 0 12px; }
button:disabled { opacity: .55; cursor: wait; }
.settings-warning { padding: 14px; background: #fff5df; color: #673a0b; border-left: 3px solid #a15b0b; }

.history-link { display: block; font-size: .86rem; padding: 8px 0; min-height: 44px; margin-bottom: 8px; }
.history-link[hidden] { display: none; }

.mobile-workspace-tabs { display:none; }
@media (max-width:850px) {
  .mobile-workspace-tabs:not([hidden]) { display:flex; gap:0; position:sticky; top:0; z-index:2; background:#f5f2eb; padding:8px 0; margin-bottom:14px; }
  .mobile-workspace-tabs button { width:50%; margin:0; border:1px solid #bfc5bd; border-radius:0; min-height:48px; color:#555e56; background:#fff; }
  .mobile-workspace-tabs button[aria-pressed=true] { color:#fff; background:#75442c; border-color:#75442c; }
  .demo-main[data-pane=edit] .preview, .demo-main[data-pane=preview] .controls { display:none; }
}

.topbar nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 18px;font-size:.86rem}.topbar nav a{font-weight:600}
