/* ---------------------------------------------------------------- buttons: one primary (black pill) */
button, .btn { font: 500 1rem/1.2 var(--font); padding: 14px 26px; border-radius: 999px; border: 2px solid var(--black); background: var(--black); color: var(--white);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color .15s, color .15s, transform .1s; }
button:hover, .btn:hover { background: #333; border-color: #333; color: var(--white); }
button:active, .btn:active { transform: scale(.98); }
button.plain, .btn.plain { background: var(--white); color: var(--black); }
button.plain:hover, .btn.plain:hover { background: var(--black); color: var(--white); border-color: var(--black); }
button.quiet { background: var(--white); color: var(--ink); border: 1px solid var(--line-strong); padding: 9px 16px; font-size: 0.92rem; }
button.quiet:hover { background: var(--row); color: var(--ink); border-color: var(--line-strong); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.big { font-size: 1.1rem; padding: 18px 32px; }
.btn.on-dark { background: var(--white); color: var(--black); border-color: var(--white); }
.btn.on-dark:hover { background: var(--peri); border-color: var(--peri); color: var(--black); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- forms */
label { display: block; font-weight: 500; font-size: 0.92rem; color: var(--ink); margin: 16px 0 6px; }
label small { font-weight: 400; color: var(--mute); float: right; font-size: 0.85rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); transition: border-color .15s; }
input:hover, select:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--anchor); box-shadow: 0 0 0 3px var(--peri); }
input:disabled { background: var(--row); color: var(--mute); }
input::placeholder { color: #8E8E8E; }
select { appearance: none; padding-right: 38px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23141A2E' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
input[type=file] { font: inherit; font-size: 0.92rem; color: var(--mute); max-width: 100%; }
input[type=file]::file-selector-button { font: 500 0.92rem var(--font); margin-right: 12px; padding: 9px 16px; border: 2px solid var(--black); border-radius: 999px; background: var(--white); color: var(--black); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--black); color: var(--white); }
input[type=checkbox], input[type=radio] { accent-color: var(--anchor); width: 18px; height: 18px; margin: 0; flex: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 14px; }
.check { font-weight: 400; color: var(--ink); font-size: 0.97rem; display: flex; gap: 10px; align-items: center; }
.hint { color: var(--mute); font-size: 0.92rem; margin: 6px 0 0; }
.msg { font-size: 0.95rem; min-height: 1.5em; margin: 10px 0 0; font-weight: 500; }
.msg.bad { color: var(--bad); }
input[type=range] { width: 100%; accent-color: var(--anchor); }

/* ---------------------------------------------------------------- boxes */
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step h2 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.step h2 em { font-style: normal; font-weight: 400; color: var(--mute); font-size: 0.9rem; margin-left: auto; }

/* ---------------------------------------------------------------- designer */
.designer-head h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 8px; }
.designer-head .sub { font-size: 1.1rem; color: var(--mute); margin: 0; }
canvas#cake { width: 100%; height: auto; max-width: 520px; display: block; margin: 0 auto; cursor: grab; touch-action: none; }
.note { color: var(--mute); font-size: 0.92rem; max-width: 760px; margin: 4px auto 16px; }
.stage .actions { max-width: 760px; margin: 0 auto; }
.cakes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.cakes button, .fonts button { background: var(--white); color: var(--ink); border: 2px solid var(--line); border-radius: 10px; font-weight: 400; }
.cakes button { flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 11px 13px; }
.cakes button span { font-weight: 700; }
.cakes button small { color: var(--mute); font-size: 0.85rem; }
.cakes button:hover, .fonts button:hover { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.cakes button.on, .fonts button.on { border-color: var(--black); background: var(--sky); box-shadow: inset 0 0 0 1px var(--black); }
.fonts { display: flex; gap: 8px; flex-wrap: wrap; }
.fonts button { font-size: 1.15rem; padding: 7px 16px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 36px; height: 36px; border-radius: 50%; padding: 0; border: 1px solid rgba(0,0,0,.18); }
.swatches button:hover { border-color: rgba(0,0,0,.4); }
.swatches button.on { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--black); }
.swatches button.match { background: repeating-linear-gradient(45deg, #fff 0 4px, #DDD 4px 8px); }
.sheet { background: var(--sky); border-color: var(--sky); }
.sheet-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 10px 0 0; font-size: 0.9rem; line-height: 1.4; }
.sheet-grid dt { font-weight: 500; color: var(--mute); }
.sheet-grid dd { margin: 0; color: var(--ink); }
.desk-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
.logo-controls { margin-top: 6px; }

/* ---------------------------------------------------------------- badges */
.pill { display: inline-block; font-size: 0.8rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.mute { background: var(--row); color: var(--mute); }

/* ---------------------------------------------------------------- alerts */
.banner { border-radius: var(--radius); padding: 16px 20px; margin: 0 0 12px; font-size: 0.97rem; border: 1px solid; }
.banner.ok { background: var(--ok-bg); color: #0F4D2B; border-color: #BFE5CC; }
.banner.warn { background: var(--warn-bg); color: #5E3900; border-color: #F3D9A4; }
.banner .hint { color: inherit; }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { background: transparent; color: var(--mute); border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 14px 10px; font-weight: 500; font-size: 0.97rem; }
.tabs button:hover { background: transparent; color: var(--ink); }
.tabs button:active { transform: none; }
.tabs button.on { color: var(--anchor); border-bottom-color: var(--anchor); }
.panels .lede { color: var(--mute); margin: 0 0 14px; max-width: 72ch; }

/* ---------------------------------------------------------------- upcoming */
.upcoming { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.month { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin: 24px 0 8px; }
#upcomingList > .month:first-child { margin-top: 0; }
.cake-row { display: grid; grid-template-columns: 64px 130px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 18px; background: var(--white); border-bottom: 1px solid var(--line); }
.cake-row:last-child { border-bottom: 0; }
.cake-row canvas { width: 64px; height: 64px; display: block; grid-column: 1; grid-row: 1; }
.cake-row .when { grid-column: 2; grid-row: 1; font-size: 0.92rem; color: var(--mute); line-height: 1.35; }
.cake-row .when b { display: block; color: var(--ink); font-size: 1rem; }
.cake-row .when small { display: block; font-size: 0.85rem; }
.cake-row .who { grid-column: 3; grid-row: 1; }
.cake-row .side { grid-column: 4; grid-row: 1; display: flex; align-items: center; gap: 14px; }
#upcomingList .cake-row .who b, .sample-list .cake-row .who b { display: block; }
.cake-row .who span { color: var(--mute); font-size: 0.92rem; }
.cake-row.off .when b { color: var(--mute); }
.cake-row.off canvas { filter: grayscale(1); opacity: .45; }
.cake-row.off .who b { color: var(--mute); }
.cake-row button { padding: 8px 16px; font-size: 0.88rem; white-space: nowrap; }

#exceptions { border: 1px solid var(--line); border-radius: var(--radius); }
#exceptions .cake-row { grid-template-columns: minmax(0, 1fr) auto !important; padding: 14px 16px; border-left: 4px solid var(--warn); }
#exceptions .cake-row .who, #exceptions .cake-row .side { grid-column: auto; grid-row: auto; }
#exceptions .who .hint { display: block; margin-top: 2px; }
#exceptions .cake-row button { padding: 9px 16px; }

/* ---------------------------------------------------------------- import and tables */
.drop { border: 2px dashed var(--cornflower); border-radius: var(--radius); padding: 32px 20px; text-align: center; background: var(--tint-bg); transition: background .15s, border-color .15s; }
.drop.over { border-color: var(--anchor); background: var(--sky); }
.counts { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.82rem; font-weight: 500; color: var(--mute); white-space: nowrap; background: var(--tint-bg); }
tbody tr:hover td { background: var(--tint-bg); }
tbody tr:last-child td { border-bottom: 0; }
tr.err td { background: var(--bad-bg); }
td .why { color: var(--bad); font-size: 0.85rem; margin-top: 4px; }
td.actions { display: table-cell; white-space: nowrap; }
td.actions > * + * { margin-left: 6px; }
td input[type=text] { padding: 7px 10px; font-size: 0.9rem; border-width: 1px; border-radius: 8px; }
td select { padding: 7px 34px 7px 10px; font-size: 0.9rem; min-width: 150px; border-width: 1px; border-radius: 8px; }
td button { padding: 7px 14px; font-size: 0.88rem; white-space: nowrap; }
tr.off td { color: var(--mute); }

/* ---------------------------------------------------------------- landing */
.cake-shadow { filter: drop-shadow(16px 24px 22px rgba(20, 26, 46, .16)); }
.hero { background: var(--sky); }
.hero-in { max-width: var(--measure); margin: 0 auto; padding: 56px 24px 64px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: center; min-height: min(760px, calc(100vh - 60px)); }
.hero h1 { font-size: clamp(2.8rem, 5.4vw, 4.7rem); line-height: 1; letter-spacing: -0.03em; }
.hero .lede { font-size: 1.25rem; max-width: 34ch; margin: 22px 0 10px; }
.hero .price { font-size: 1.25rem; font-weight: 700; margin: 0 0 28px; }
.hero canvas#heroCake { width: 100%; max-width: 680px; height: auto; display: block; justify-self: center; }

.sample { max-width: var(--measure); margin: 0 auto; padding: 88px 24px 0; display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.sample h2, .how h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.sample-copy p { color: var(--mute); font-size: 1.08rem; margin: 14px 0 0; max-width: 42ch; }
.sample-list .cake-row { pointer-events: none; }

.how { max-width: var(--measure); margin: 0 auto; padding: 96px 24px 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
.how-copy p { font-size: 1.08rem; color: var(--mute); margin: 16px 0 0; max-width: 56ch; }
.how-copy p b { color: var(--ink); font-weight: 700; }
.how-copy h2 { margin-bottom: 8px; }
.how canvas { width: 100%; max-width: 380px; height: auto; display: block; justify-self: center; }

.band { max-width: calc(var(--measure) - 48px); margin: 80px auto 0; background: var(--black); color: var(--white); border-radius: 20px; padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.band p { margin: 8px 0 0; font-size: 1.1rem; color: #D4D8E2; }
.one-cake { max-width: var(--measure); margin: 22px auto 0; padding: 0 24px; font-size: 1.05rem; color: var(--mute); }
.one-cake a { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------------- sign up and log in */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; max-width: 1160px; margin: 0 auto; padding: 48px 24px 0; align-items: start; }
.signup .intro { position: sticky; top: 24px; }
.signup h1, .login h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.signup .lede { font-size: 1.15rem; color: var(--mute); margin: 16px 0 0; max-width: 40ch; }
.signup .price { font-size: 1.4rem; font-weight: 700; margin: 24px 0 0; }
.signup .price span { color: var(--anchor-hover); background: var(--sky); padding: 2px 10px; border-radius: 8px; }
.plain-steps { margin-top: 26px; border-top: 1px solid var(--line); }
.plain-steps p { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--mute); }
.plain-steps b { color: var(--ink); }
.form-box { border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.form-box h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; }
.form-box .part { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-go { margin-top: 24px; }
.login { max-width: 460px; margin: 0 auto; padding: 64px 24px 0; }
.login .lede { color: var(--mute); font-size: 1.1rem; margin: 12px 0 24px; }
.login-new { margin-top: 18px; text-align: center; }

/* ---------------------------------------------------------------- app extras */
#summary { background: var(--sky); border-color: transparent; }
#summary h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
#summary canvas { display: block; }
#summary .hint:empty { display: none; }
.empty { padding: 48px 20px; text-align: center; background: var(--tint-bg); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty b { display: block; font-size: 1.25rem; color: var(--ink); margin-bottom: 4px; }
.empty .plate { display: block; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--peri); position: relative; }
.empty .plate::after { content: ""; position: absolute; left: 33px; top: -16px; width: 6px; height: 20px; border-radius: 3px; background: var(--ink); }
#noCompany.empty { margin-top: 24px; }
#noCompany h1 { font-size: 2rem; }
#noCompany .btn { margin-top: 18px; }
#loading, #gate { display: flex; align-items: center; gap: 12px; padding: 48px 0; color: var(--mute); }
#loading::before, #gate::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--anchor); animation: turn .8s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.radio-set { display: grid; gap: 8px; }
.radio-set .check { margin: 0; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.radio-set .check:has(input:checked) { border-color: var(--black); background: var(--sky); }
.board-h { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; margin: 40px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.board-h small { font-size: 0.9rem; font-weight: 400; color: var(--mute); letter-spacing: 0; }
#orders .month { margin: 18px 0 8px; }
#orders .month:first-child { margin-top: 0; }
#orders td:first-child { min-width: 150px; }
#bakeryForm { margin-top: 16px; }
#noExceptions { padding: 28px 20px; }
#noExceptions .plate { width: 48px; height: 48px; }
#noExceptions .plate::after { left: 21px; }

/* Add your people (js/import.js) */
.ways { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.way { background: var(--white); color: var(--ink); border: 1px solid var(--line-strong); padding: 9px 16px; font-size: 0.92rem; border-radius: 999px; }
.way.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.way-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.way-panel > .hint:first-child { margin-top: 0; }
.way-panel code { background: var(--row); padding: 1px 6px; border-radius: 4px; font-size: 0.9em; }
#pasteBox { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; line-height: 1.5; margin: 10px 0; }
.way-panel .actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.linklike { text-decoration: underline; cursor: pointer; }
.linkbox { display: flex; gap: 8px; margin: 10px 0; }
.linkbox input { flex: 1; min-width: 0; }
.way-panel details { margin-top: 12px; }
.way-panel summary { cursor: pointer; font-weight: 500; }
#joinBlurb { width: 100%; margin: 10px 0; }
#review { margin-top: 16px; }
.pickers { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.picker { display: grid; gap: 4px; font-size: 0.85rem; min-width: 150px; }
.picker .col { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.picker select { padding: 7px 34px 7px 10px; font-size: 0.9rem; }
input.fix { padding: 6px 10px; font-size: 0.9rem; width: 120px; }
.modes { display: grid; gap: 8px; margin: 14px 0 4px; }
.modes label { display: block; position: relative; padding-left: 28px; font-size: 0.95rem; }
.modes label input { position: absolute; left: 0; top: 3px; }
#handTable { min-width: 660px; }
#handTable input, #handTable select { min-width: 0; }
#handTable input, #handTable select { padding: 7px 10px; font-size: 0.92rem; min-width: 0; }
#handTable select { padding-right: 32px; }
#handTable td { padding: 6px 8px; }
.cakePick { padding: 6px 32px 6px 10px; font-size: 0.88rem; max-width: 190px; }
@media (max-width: 600px) { .linkbox { flex-direction: column; } .picker { min-width: 0; flex: 1 1 45%; } }

/* ================================================================ brand layer (from the logo)
   The logo's uneven dark-brown ink line is the system's line: 2px ink borders with slightly mismatched
   corner radii, flat 2px ink offsets instead of blurred shadows. Plate blue is the accent. */
:root {
  --berry: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7.2c4.6-.1 7.1 2.5 6.5 6.2-.6 3.7-3.7 7.2-6.5 7.9-2.9-.8-5.9-4.3-6.5-7.9C4.9 9.7 7.4 7.1 12 7.2z' fill='%23D9574B' stroke='%2346281F' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M8.3 7.7c1.3-.1 2.6-1.5 3.7-2.9 1 1.5 2.4 2.7 3.6 2.9-1.1.9-2.4 1.3-3.6 1.3-1.3 0-2.6-.4-3.7-1.3z' fill='%238C9C74' stroke='%2346281F' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M12.1 4.9 11.8 2.6' stroke='%2346281F' stroke-width='1.6' stroke-linecap='round'/%3E%3Cg fill='%2346281F'%3E%3Ccircle cx='9.6' cy='12.1' r='.75'/%3E%3Ccircle cx='14.6' cy='11.9' r='.75'/%3E%3Ccircle cx='12.1' cy='14.9' r='.75'/%3E%3Ccircle cx='10.1' cy='17.4' r='.65'/%3E%3Ccircle cx='14' cy='17.2' r='.65'/%3E%3C/g%3E%3C/svg%3E");
  --plate-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 40'%3E%3Cpath d='M5 22.5c.4-7.6 19-13.1 43.4-13 24.2.2 43 5.7 42.6 13.4-.4 7.4-19.3 12.6-43.5 12.4C23.2 35.1 4.7 29.8 5 22.5z' fill='%2390A2C6' stroke='%2346281F' stroke-width='2.4' stroke-linejoin='round'/%3E%3Cpath d='M22 21.2c2-3.6 12.7-5.8 26.2-5.7 13.3.1 24 2.5 25.7 6' fill='none' stroke='%2346281F' stroke-width='1.6' stroke-linecap='round' opacity='.75'/%3E%3C/svg%3E");
}
button, .btn { font-weight: 500; background: var(--plate-deep); color: var(--paper); border: var(--line-w) solid var(--ink); border-radius: var(--radius); box-shadow: var(--offset); transition: transform .1s, box-shadow .1s, background-color .15s; }
button:hover, .btn:hover { background: var(--plate-deeper); border-color: var(--ink); color: var(--paper); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
button:active, .btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
button.plain, .btn.plain { background: var(--paper); color: var(--ink); }
button.plain:hover, .btn.plain:hover { background: var(--sponge); color: var(--ink); border-color: var(--ink); }
button.quiet { background: var(--paper); color: var(--ink); border: var(--line-w) solid var(--ink); box-shadow: none; }
button.quiet:hover { background: var(--sponge); color: var(--ink); border-color: var(--ink); box-shadow: var(--offset); }
.btn.on-dark { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn.on-dark:hover { background: var(--sponge); color: var(--ink); border-color: var(--ink); }
button:disabled, button:disabled:hover { transform: none; box-shadow: none; }

input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=url], select, textarea {
  background-color: var(--paper); border: var(--line-w) solid var(--ink); border-radius: var(--radius-sm); }
input:hover, select:hover { border-color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--plate-tint), 0 0 0 5px var(--plate-deep); }
input::placeholder { color: #9A8576; }
input:disabled { background: var(--row); border-color: var(--line-strong); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2346281F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
input[type=file]::file-selector-button { font-family: var(--font); border: var(--line-w) solid var(--ink); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); box-shadow: var(--offset); }
input[type=file]::file-selector-button:hover { background: var(--sponge); color: var(--ink); }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--plate-deep); }
label { color: var(--ink); }

.step, .form-box, .way-panel { background: var(--paper); border: var(--line-w) solid var(--ink); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--ink); }
.step h2, .form-box h2, #summary h2, .board-h { font-weight: 400; letter-spacing: 0; }
.step h2 { font-size: 1.35rem; }
.form-box h2 { font-size: 1.55rem; }
.board-h { font-size: 1.55rem; }
.board-h small { font-family: var(--font); }
.sheet { background: var(--sponge); border-color: var(--ink); }
.sheet-grid dt { color: var(--ink-soft); }

.cakes button, .fonts button { background: var(--paper); color: var(--ink); border: var(--line-w) solid var(--rule); border-radius: var(--radius-sm); box-shadow: none; }
.cakes button:hover, .fonts button:hover { background: var(--paper); border-color: var(--ink); transform: none; box-shadow: none; }
.cakes button.on, .fonts button.on { background: var(--plate-tint); border-color: var(--ink); box-shadow: var(--offset); }
.swatches button, .swatches button:hover { border: var(--line-w) solid var(--ink); box-shadow: none; transform: none; }
.swatches button.on, .swatches button.on:hover { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--plate-deep); }

.pill { border: 1.5px solid currentColor; font-weight: 500; }
.pill.mute { background: var(--row); color: var(--ink-soft); }
.banner { border: var(--line-w) solid var(--ink); border-radius: var(--radius); color: var(--ink); }
.banner.ok { background: var(--plate-tint); color: var(--ink); border-color: var(--ink); }
.banner.warn { background: var(--sponge); color: var(--ink); border-color: var(--ink); }

.tabs { border-bottom: var(--line-w) solid var(--ink); gap: 6px; }
.tabs button { background: transparent; color: var(--ink-soft); border: var(--line-w) solid transparent; border-bottom: 0; border-radius: 10px 12px 0 0; box-shadow: none; margin-bottom: -2px; }
.tabs button:hover { background: var(--sponge); color: var(--ink); transform: none; box-shadow: none; }
.tabs button.on { background: var(--paper); color: var(--ink); border-color: var(--ink); border-bottom: var(--line-w) solid var(--paper); }

.upcoming, #exceptions { background: var(--paper); border: var(--line-w) solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.cake-row { background: var(--paper); border-bottom: 1px solid var(--rule); }
.month { font-family: var(--display); font-weight: 400; font-size: 1.25rem; }
#exceptions .cake-row { border-left: 6px solid var(--straw); }

.tw { background: var(--paper); border: var(--line-w) solid var(--ink); border-radius: var(--radius); }
th, td { border-bottom: 1px solid var(--rule); }
thead th { background: var(--sponge); color: var(--ink); font-weight: 500; border-bottom: var(--line-w) solid var(--ink); }
tbody tr:hover td { background: #FBF0DA; }
.drop { border: var(--line-w) dashed var(--ink); background: var(--cream); border-radius: var(--radius); }
.drop.over { border-color: var(--plate-deep); background: var(--plate-tint); }
.way { background: var(--paper); color: var(--ink); border: var(--line-w) solid var(--ink); border-radius: var(--radius-sm); box-shadow: none; }
.way:hover { background: var(--sponge); color: var(--ink); box-shadow: var(--offset); }
.way.on, .way.on:hover { background: var(--plate-deep); color: var(--paper); border-color: var(--ink); box-shadow: var(--offset); }
.radio-set .check { border: var(--line-w) solid var(--rule); border-radius: var(--radius-sm); }
.radio-set .check:has(input:checked) { border-color: var(--ink); background: var(--plate-tint); }

/* landing */
.cake-shadow { filter: none; }
.hero { background: transparent; border-bottom: var(--line-w) solid var(--ink); }
.hero h1 { font-size: clamp(2.9rem, 5.6vw, 4.9rem); line-height: 1.02; letter-spacing: 0; }
.hero h1 em { font-style: normal; color: var(--straw); }
.hero .price { font-weight: 500; }
.hero .price b { background: var(--pink); border: var(--line-w) solid var(--ink); border-radius: var(--radius-sm); padding: 1px 10px; font-weight: 700; }
.hero-logo { width: 100%; max-width: 440px; height: auto; display: block; justify-self: center; }
.sample h2, .how h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.how-copy p { padding-left: 34px; position: relative; color: var(--ink-soft); }
.how-copy p::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; background: var(--berry) no-repeat center / contain; }
.how-copy p b, .plain-steps b { color: var(--ink); }
.band { background: var(--pink); color: var(--ink); border: var(--line-w) solid var(--ink); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--ink); }
.band p { color: var(--ink-soft); }
.band .btn.on-dark { background: var(--plate-deep); color: var(--paper); }
.band .btn.on-dark:hover { background: var(--plate-deeper); color: var(--paper); }
.one-cake a { color: var(--plate-deep); }

/* sign up, log in, join */
.signup .price span { color: var(--ink); background: var(--pink); border: var(--line-w) solid var(--ink); border-radius: var(--radius-sm); }
.plain-steps { border-top: var(--line-w) solid var(--ink); }
.plain-steps p { border-bottom: 1px solid var(--rule); padding-left: 34px; position: relative; color: var(--ink-soft); }
.plain-steps p::before { content: ""; position: absolute; left: 0; top: 15px; width: 22px; height: 22px; background: var(--berry) no-repeat center / contain; }
.form-box .part { border-top: 1px solid var(--rule); }

/* app and admin: palette, type, ink lines; no illustration beyond the empty plate and spinner */
#summary { background: var(--plate-tint); border: var(--line-w) solid var(--ink); }
.empty { background: var(--paper); border: var(--line-w) dashed var(--ink); border-radius: var(--radius); }
.empty .plate { width: 96px; height: 70px; border-radius: 0; background: var(--berry) no-repeat 50% 0 / 30px 30px, var(--plate-svg) no-repeat 50% 100% / 96px 40px; }
.empty .plate::after { display: none; }
#noExceptions .plate { width: 72px; height: 52px; background-size: 24px 24px, 72px 30px; }
#loading::before, #gate::before { width: 26px; height: 26px; border: 0; border-radius: 0; background: var(--berry) no-repeat center / contain; animation: wobble 1s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
.cake-row canvas { mix-blend-mode: multiply; } /* thumbnails are drawn on white; multiply lets the paper show through */
.step h2 em { font-family: var(--font); }
.hero-in { min-height: min(640px, calc(100vh - 66px)); padding-top: 40px; padding-bottom: 48px; }

/* Offset shadows only on primary buttons and the CTA band; everything else keeps the ink outline alone. */
.step, .form-box, .way-panel, #summary { box-shadow: none; }
button.plain, .btn.plain, button.quiet, .btn.on-dark, .way, .way.on, .cakes button.on, .fonts button.on, input[type=file]::file-selector-button { box-shadow: none; }
button.plain:hover, .btn.plain:hover, button.quiet:hover, .way:hover, .way.on:hover { box-shadow: none; transform: none; }
.band .btn.on-dark { box-shadow: var(--offset); }
#bakeryMsg:empty { display: none; }
#bakeryForm { padding-bottom: 22px; }
.sample-list .cake-row { min-height: 92px; }
@media (min-width: 861px) { canvas#cake { margin-top: -42px; } }

/* Baker portal */
.bakery { max-width: 1100px; margin: 0 auto; padding: 28px 16px 60px; }
.bake-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.bake-head h1 { margin: 0 0 4px; }
.bake-howto { max-width: 70ch; }
.bake-day { margin-top: 28px; }
.bake-day h2 { font-size: 1.35rem; margin: 0 0 12px; display: flex; align-items: baseline; gap: 12px; }
.bake-day h2 em { font-style: normal; font-weight: 400; font-size: 0.95rem; color: var(--mute); }
.bake-list { display: grid; gap: 14px; }
.bake-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; padding: 16px; background: var(--white); border: 2px solid var(--ink); border-radius: 12px 10px 12px 11px; }
.bake-card.is-problem { background: var(--bad-bg); }
.bake-cake { width: 180px; height: 180px; display: block; }
.bake-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.bake-card h3 { margin: 0 0 6px; font-size: 1.25rem; }
.bake-card h3 small { font-weight: 400; color: var(--mute); font-size: 0.9rem; margin-left: 6px; }
.bake-card p { margin: 4px 0; }
.bake-msg { font-size: 1.15rem; }
.bake-allergy { color: var(--bad); font-weight: 500; }
.bake-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .bake-card { grid-template-columns: 1fr; } .bake-cake { width: 140px; height: 140px; } }
@media print {
  .site-header, .site-footer, .bake-head .actions, .bake-howto, .bake-actions, .msg { display: none !important; }
  body { background: #fff !important; }
  .bakery { max-width: none; padding: 0; }
  .bake-card { break-inside: avoid; page-break-inside: avoid; border: 1px solid #000; border-radius: 0; box-shadow: none; }
  .bake-day { break-before: page; page-break-before: always; }
  .bake-day:first-child { break-before: auto; page-break-before: auto; }
  .bake-msg { font-size: 1.4rem; }
}

/* Footer mascots and the bottom-of-page cake burst (js/main.js) */
.footer-mascots { display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 0 16px 18px; margin-top: -58px; }
.footer-mascots img { width: 120px; height: auto; display: block; filter: drop-shadow(3px 4px 0 rgba(70, 40, 31, .18)); }
.footer-mascots img:nth-child(2) { width: 150px; }
.footer-mascots img:nth-child(4) { width: 96px; }
@keyframes cc-hop { 0% { transform: translateY(0); } 35% { transform: translateY(-26px) rotate(-4deg); } 70% { transform: translateY(0); } 85% { transform: translateY(-8px); } 100% { transform: translateY(0); } }
.footer-mascots.hop img { animation: cc-hop .75s cubic-bezier(.3, .7, .3, 1) both; }
.footer-mascots.hop img:nth-child(2) { animation-delay: .08s; }
.footer-mascots.hop img:nth-child(3) { animation-delay: .16s; }
.footer-mascots.hop img:nth-child(4) { animation-delay: .24s; }
@media (max-width: 640px) { .footer-mascots { gap: 10px; margin-top: -40px; } .footer-mascots img { width: 20vw; max-width: 84px; } .footer-mascots img:nth-child(2) { width: 25vw; max-width: 104px; } .footer-mascots img:nth-child(4) { width: 16vw; max-width: 68px; } }
@media (prefers-reduced-motion: reduce) { .footer-mascots.hop img { animation: none; } }
@media print { .footer-mascots { display: none !important; } }
