/* Gallery and workshop layout. Colors and controls live in theme.css. */
body { line-height: 1.6; }
header, main, footer { width: min(1460px, calc(100% - 40px)); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0; border-bottom: 1px solid var(--line); }
main { padding: 28px 0; }
nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
nav a { font-size: .88rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
nav a[aria-current=page] { color: var(--accent); border-bottom: 2px solid var(--accent); }
nav form { margin: 0; }
.hero { padding: 55px 0 60px; max-width: 850px; }
h1 { font-size: clamp(36px, 5.8vw, 66px); line-height: 1.12; letter-spacing: -.045em; margin: 20px 0 24px; font-weight: 740; }
h2 { font-size: 30px; letter-spacing: -.025em; margin: 8px 0 20px; }
h3 { font-size: 23px; line-height: 1.3; margin: 8px 0; }
.hero p { max-width: 610px; color: var(--muted); font-size: 19px; }
.hero-meta { display: flex; align-items: center; gap: 13px; font-size: 13px; margin-top: 30px; color: var(--muted); }
.dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pill { padding: 7px 15px; border: 1px solid var(--line); border-radius: 30px; font-size: 12px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.build { overflow: hidden; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.14); }
.build video { width: 100%; aspect-ratio: 16/10; object-fit: contain; background: var(--navy); display: block; }
.build-text { padding: 25px 28px; }
.build-text p { color: var(--muted); font-size: 14px; }
.build-text a { font-size: 13px; color: var(--accent); }
.build-text .eyebrow { font-size: 10px; }
footer { margin-top: 65px; padding: 22px 0 30px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .83rem; color: var(--muted); }
label { display: block; font-size: 13px; margin-top: 14px; }
input[type=checkbox] { width: auto; }
.login { max-width: 580px; padding: 60px 0; }
.login h1 { font-size: 45px; }
.login p { color: var(--muted); }
.login input { width: 100%; margin: 8px 0 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 30px 0; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--surface); }
.stat strong { display: block; font-size: 27px; }
.stat span, .note { font-size: 13px; color: var(--muted); }
.tabs { display: flex; gap: 8px; overflow: auto; padding-bottom: 14px; }
.tabs button { white-space: nowrap; background: transparent; color: var(--muted); border-color: var(--line); }
.tabs button:hover { background: var(--hover); color: var(--cream); }
.tabs button[aria-current=page] { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 15px 0 30px; }
.toolbar input { flex: 1; min-width: 180px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
table { border-collapse: collapse; min-width: 100%; font-size: 13px; }
th { text-align: left; white-space: nowrap; background: var(--table-head); color: var(--cream); font-size: 10px; letter-spacing: .6px; padding: 15px; }
td { padding: 8px; border-top: 1px solid var(--line); }
tbody tr:hover { background: rgba(169,202,239,.04); }
td input { border: 1px solid transparent; background: transparent; min-width: 125px; width: 100%; padding: 7px; }
td input:focus, td input:hover { border-color: var(--line); background: var(--field); }
td:nth-last-child(1) input { min-width: 260px; }
td a { color: var(--accent); }
.swatch { display: block; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.editor { max-width: 740px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 18px 0; }
.editor input:not([type=checkbox]), .editor select { display: block; width: 100%; margin: 6px 0 15px; }
.editor small { color: var(--muted); overflow-wrap: anywhere; }
.job { padding: 18px; border-bottom: 1px solid var(--line); }
.job span { display: block; color: var(--muted); font-size: 13px; }
#message { font-size: 13px; color: var(--muted); }
@media(max-width:700px) {
  header, main, footer { width: calc(100% - 24px); }
  header { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  nav { gap: 18px; }
  main { padding: 20px 0; }
  .hero { padding: 35px 0 40px; }
  .gallery { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 14px; }
  .stat strong { font-size: 23px; }
  .section-head { align-items: flex-start; }
  footer { flex-direction: column; text-align: center; }
  .brand { font-size: .94rem; }
}

.swatch-multi { border-color:rgba(255,255,255,.5); }
.swatch-unknown { display:grid; place-items:center; color:var(--muted); font-weight:700; background:repeating-linear-gradient(135deg,var(--field),var(--field) 5px,var(--surface) 5px,var(--surface) 10px); }

.passkey-settings { max-width:720px; margin-inline:auto; }
.passkey-settings form { display:grid; gap:12px; max-width:440px; }
.passkey-settings form[hidden] { display:none; }
.passkey-list { list-style:none; padding:0; }
.passkey-list li { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 0; border-bottom:1px solid var(--line); }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#passkey-login { margin-top:16px; }

.management-actions { display:flex; align-items:center; flex-wrap:wrap; gap:20px; }
#workshop > .section-head { flex-wrap:wrap; }

/* Public workshop: a personal welcome and a warm doorway into Kitchen Craft. */
.workshop-welcome { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(230px,.8fr); align-items:center; gap:clamp(24px,5vw,80px); padding:48px clamp(22px,4vw,58px); margin:10px 0 32px; border:1px solid rgba(218,183,125,.25); border-radius:24px; background:radial-gradient(ellipse at 92% 25%,rgba(187,137,69,.18),transparent 65%),linear-gradient(130deg,rgba(41,69,103,.65),rgba(13,29,55,.8)); }
.workshop-intro .eyebrow { color:#e1c394; letter-spacing:.15em; line-height:1.7; }
.workshop-intro h1 { margin:15px 0 24px; font-size:clamp(38px,5vw,64px); max-width:550px; }
.workshop-intro p { color:var(--muted); max-width:590px; font-size:clamp(16px,1.5vw,18px); line-height:1.8; }
.workshop-intro p:first-of-type { color:var(--cream); font-size:clamp(18px,1.7vw,22px); }
.workshop-jump { display:inline-flex; gap:16px; align-items:center; margin-top:12px; color:#e1c394; font-weight:650; text-decoration:none; border-bottom:1px solid rgba(225,195,148,.45); padding-bottom:6px; }
.workshop-maker { margin:0; text-align:center; }
.workshop-maker img { display:block; width:min(100%,290px); height:auto; border-radius:50%; margin-inline:auto; box-shadow:0 15px 45px rgba(0,0,0,.3); border:3px solid rgba(225,195,148,.55); }
.workshop-maker figcaption { margin-top:18px; color:var(--cream); font-size:15px; letter-spacing:.025em; }
.workshop-maker figcaption span { color:var(--muted); font-size:13px; }
.kitchen-feature { display:flex; gap:24px; align-items:center; padding:26px 32px; margin:0 0 48px; border:1px solid rgba(218,183,125,.35); border-radius:18px; background:linear-gradient(105deg,rgba(126,89,44,.28),rgba(41,69,103,.35)); text-decoration:none; transition:border-color .15s,background .15s; }
.kitchen-feature:hover { border-color:#e1c394; background-color:rgba(187,137,69,.1); }
.kitchen-feature-icon { flex:none; width:74px; height:86px; color:#e1c394; }
.kitchen-feature-icon svg { width:100%; height:100%; }
.kitchen-feature-copy { flex:1; min-width:0; }
.kitchen-feature-copy .eyebrow { color:#e1c394; font-size:10px; line-height:1.7; }
.kitchen-feature-copy h2 { margin:4px 0 6px; }
.kitchen-feature-copy > span:last-child { color:var(--muted); font-size:15px; }
.kitchen-feature-arrow { flex:none; font-size:26px; color:#e1c394; }
#projects { scroll-margin-top:24px; }
#projects > .section-head { margin-bottom:12px; flex-wrap:wrap; }
@media(max-width:650px) {
 .workshop-welcome { grid-template-columns:1fr; padding:26px 22px; gap:30px; border-radius:18px; }
 .workshop-maker { display:flex; gap:18px; align-items:center; text-align:left; }
 .workshop-maker img { width:100px; margin:0; }
 .workshop-maker figcaption { margin:0; }
 .kitchen-feature { padding:22px 18px; gap:14px; margin-bottom:36px; }
 .kitchen-feature-icon { width:42px; height:54px; }
 .kitchen-feature-arrow { font-size:22px; }
 .kitchen-feature-copy h2 { font-size:25px; }
}
@media(prefers-reduced-motion:reduce) { .kitchen-feature { transition:none; } }
.recovery-settings { margin-top:32px; border-top:1px solid var(--line); padding-top:20px; }
.recovery-codes { font-size:clamp(10px,2.6vw,14px); padding:12px; border:1px solid var(--line); border-radius:8px; background:var(--field); overflow:auto; }
.recovery-login { margin-top:24px; }
.recovery-login summary { cursor:pointer; }
.security-activity { max-width:720px; margin-inline:auto; }
.security-activity ul { padding-left:18px; }
.security-activity li { margin-bottom:12px; font-size:14px; }
.security-activity time { display:block; color:var(--muted); font-size:12px; }
#recovery-codes-panel { margin-top:20px; }

.security-setup-notice { padding:18px 22px; margin-bottom:24px; border:1px solid #e1c394; border-radius:12px; background:rgba(187,137,69,.12); }
.security-setup-notice p { margin:6px 0; color:var(--muted); }

/* Kitchen Craft and the small, public Board Balm catalog. */
.kitchen-breadcrumb { gap:12px; font-size:14px; color:var(--muted); padding:4px 0 22px; }
.kitchen-breadcrumb a { color:var(--cream); }
.kitchen-welcome { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:clamp(24px,5vw,70px); padding:34px 0 44px; }
.kitchen-welcome h1 { max-width:560px; }
.kitchen-welcome p { max-width:540px; color:var(--muted); font-size:20px; }
.kitchen-welcome > img { width:100%; height:auto; border-radius:22px; box-shadow:0 18px 45px rgba(0,0,0,.2); }
.spoon-story { max-width:800px; margin:10px 0 56px; padding-left:24px; border-left:3px solid #d8b27a; }
.spoon-story p, .balm-intro { color:var(--muted); font-size:17px; max-width:830px; }
#board-balm { scroll-margin-top:24px; }
#board-balm > .section-head { flex-wrap:wrap; }
.balm-products { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:28px 0 52px; }
.balm-product { border:1px solid var(--line); border-radius:18px; overflow:hidden; background:var(--surface); display:flex; flex-direction:column; }
.balm-product-art { display:block; background:#f4e7ca; padding:20px; }
.balm-product-art img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; border-radius:10px; }
.balm-product-copy { display:flex; flex-direction:column; flex:1; padding:24px; }
.balm-product-copy h3 { font-size:30px; }
.balm-product-copy > p { color:var(--muted); }
.balm-product-copy .product-link { margin-top:auto; }
.product-size { font-size:14px; color:var(--muted); }
.product-link { display:inline-flex; gap:12px; align-items:center; color:#e1c394; font-weight:650; text-decoration:none; padding-block:8px; }
.product-link:hover { text-decoration:underline; }
.balm-care { display:grid; grid-template-columns:1fr 1.5fr; gap:35px; border:1px solid rgba(218,183,125,.3); border-radius:20px; padding:30px; background:rgba(187,137,69,.08); }
.balm-care h2 { max-width:320px; }
.balm-care ol { list-style-position:inside; margin:0; padding:0; display:grid; gap:20px; }
.balm-care li span { display:block; padding-left:20px; color:var(--muted); }
.cookery-connection { margin:52px 0 10px; padding-top:28px; border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:24px; }
.cookery-connection p { max-width:750px; color:var(--muted); }
.cookery-connection > a { flex:none; }
.balm-detail { display:grid; grid-template-columns:1fr 1.05fr; align-items:start; gap:clamp(24px,5vw,70px); padding:25px 0; }
.balm-detail-art { background:#f4e7ca; padding:28px; border-radius:22px; }
.balm-detail-art img { display:block; width:100%; height:auto; border-radius:12px; }
.balm-detail-copy h1 { margin-top:12px; }
.balm-detail-copy h2 { font-size:23px; margin:25px 0 8px; }
.balm-detail-copy p { color:var(--muted); }
.balm-detail-copy .product-lead { font-size:19px; color:var(--cream); }
@media(max-width:850px) { .balm-products { gap:16px; }.balm-product-copy { padding:18px; }.balm-product-art { padding:12px; } }
@media(max-width:650px) {
 .kitchen-welcome, .balm-detail { grid-template-columns:1fr; gap:25px; padding-top:12px; }
 .kitchen-welcome p { font-size:18px; }
 .balm-products, .balm-care { grid-template-columns:1fr; }
 .balm-product { display:grid; grid-template-columns:minmax(100px,.8fr) minmax(0,1fr); }
 .balm-product-art { display:flex; align-items:center; padding:12px; }
 .balm-product-copy { padding:18px 14px; }
 .balm-product-copy .eyebrow { font-size:9px; letter-spacing:.12em; }
 .balm-product-copy h3 { font-size:25px; }
 .balm-product-copy p { font-size:14px; }
 .balm-product-copy .product-link { font-size:14px; }
 .balm-care { padding:24px; }
 .cookery-connection { align-items:flex-start; flex-direction:column; }
 .balm-detail-art { padding:18px; }
}
@media(max-width:360px) { .balm-product { display:flex; }.balm-product-art { padding:18px; }.balm-product-copy { padding:20px; } }
.cookery-logo-link { display:flex; flex-direction:column; align-items:center; gap:12px; text-decoration:none; color:#e1c394; font-weight:650; font-size:14px; }
.cookery-logo-link img { width:160px; height:160px; object-fit:contain; border-radius:14px; background:white; }
.cookery-logo-link:hover > span { text-decoration:underline; }

/* Finished-project cards link to their associated timelapses. */
.project-intro { color:var(--muted); margin-bottom:26px; }
.project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.project-card { border:1px solid var(--line); border-radius:18px; overflow:hidden; background:var(--surface); display:flex; flex-direction:column; }
.project-image-link { position:relative; display:block; background:var(--surface); }
.project-image-link img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; }
.project-play { position:absolute; right:18px; bottom:18px; display:grid; place-items:center; width:45px; height:45px; border:1px solid rgba(255,255,255,.65); border-radius:50%; background:rgba(13,29,55,.8); color:var(--cream); font-size:16px; padding-left:3px; }
.project-image-link:hover .project-play { background:var(--navy); }
.project-card-copy { display:flex; flex-direction:column; gap:12px; flex:1; padding:16px; }
.project-card-copy h4 { font-size:21px; line-height:1.3; margin:0; }
.project-card-copy h4 a { text-decoration:none; }
.project-card-copy h4 a:hover { text-decoration:underline; }
.project-card-copy p { color:var(--muted); font-size:15px; }
.project-card-copy > .product-link { margin-top:auto; }
.project-card-meta { margin-top:auto; display:flex; justify-content:space-between; gap:12px; align-items:center; color:var(--muted); font-size:12px; flex-wrap:wrap; }
.project-card-meta .eyebrow { font-size:10px; }
.rendering-caption { color:var(--muted); font-size:11px; margin-top:10px; }
.project-welcome { display:grid; grid-template-columns:1fr 1.25fr; gap:40px; align-items:center; margin:20px 0 48px; }
.project-welcome > div > p { color:var(--muted); font-size:19px; }
.project-welcome figure { margin:0; }
.project-welcome img { display:block; width:100%; height:auto; border-radius:18px; }
.project-welcome figcaption { color:var(--muted); font-size:12px; text-align:right; margin-top:8px; }
#build-videos { scroll-margin-top:25px; }
#build-videos > .section-head { margin-bottom:24px; flex-wrap:wrap; }
.project-back { margin-top:35px; }
@media(max-width:1000px) { .project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .project-grid,.project-welcome { grid-template-columns:1fr; }.project-welcome { gap:24px; }.project-card-copy { padding:16px; } }

/* Management uses the screen width; workbook values wrap instead of clipping. */
.management-page main { width:calc(100% - 40px); max-width:2400px; }
.management-page .tabs { flex-wrap:wrap; }
.management-page table { width:100%; table-layout:fixed; }
.management-page th { white-space:normal; overflow-wrap:anywhere; padding:10px 6px; letter-spacing:.2px; }
.management-page td { padding:6px 4px; vertical-align:top; }
.management-page td textarea { display:block; width:100%; min-width:0; min-height:32px; padding:6px 4px; border:1px solid transparent; background:transparent; color:inherit; font:inherit; line-height:1.4; resize:none; overflow:hidden; overflow-wrap:anywhere; box-sizing:border-box; }
.management-page td textarea:hover,.management-page td textarea:focus { border-color:var(--line); background:var(--field); }
.management-page table[data-sheet="Filament Inventory"] th:first-child,.management-page table[data-sheet="Color Palette"] th:first-child { width:50px; }
.management-page td a { overflow-wrap:anywhere; }
@media(max-width:900px) { .management-page main { width:calc(100% - 24px); }.management-page table { min-width:1000px; } }

.bapa-bio { display:grid; grid-template-columns:minmax(200px,360px) minmax(0,700px); align-items:center; gap:clamp(28px,5vw,80px); max-width:1160px; margin:36px auto 60px; }
.bapa-bio>img { width:100%; height:auto; border-radius:50%; }
.bapa-bio p { color:var(--muted); font-size:18px; line-height:1.8; }
@media(max-width:700px) { .bapa-bio { grid-template-columns:1fr; margin:16px auto 32px; }.bapa-bio>img { max-width:260px; margin:auto; } }

.stock-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:18px; }
.stock-card { padding:20px; border:1px solid var(--line); border-radius:14px; background:var(--field); }
.stock-card[hidden] { display:none; }.stock-heading { display:flex; align-items:center; gap:12px; }.stock-heading h3 { margin:0; font-size:17px; }.stock-heading .swatch { flex-shrink:0; }.stock-balance { display:block; font-size:23px; margin-top:18px; }.stock-card p { line-height:1.5; }.stock-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }.stock-actions button { padding:9px 12px; }.stock-status { color:var(--accent); }.workbook-archive { margin:16px 0; color:var(--muted); }.workbook-archive select { margin:12px 0; max-width:100%; }.stock-dialog { max-width:540px; width:calc(100% - 32px); max-height:90dvh; overflow:auto; border:1px solid var(--line); border-radius:16px; background:var(--navy); color:var(--cream); padding:24px; box-sizing:border-box; }.stock-dialog::backdrop { background:#000b; }.stock-dialog label { display:block; margin:16px 0; }.stock-dialog input { display:block; width:100%; box-sizing:border-box; margin-top:6px; }.stock-dialog button { margin-right:8px; }

.material-group { margin:30px 0 38px; }.material-group>h3 { font-size:26px; margin:0 0 8px; }.material-description { color:var(--muted); line-height:1.6; margin:0 0 18px; }.stock-heading h4 { margin:0; font-size:17px; }.material-group[hidden] { display:none; }

.project-other { margin:36px 0; padding-top:26px; border-top:1px solid var(--line); }
.project-other-links { display:flex; flex-wrap:wrap; gap:16px 28px; }

/* Project browsing and practical build details. */
.project-tools { display:grid; grid-template-columns:2fr 1fr auto; gap:24px; align-items:end; padding:24px; margin:24px 0; border:1px solid var(--line); border-radius:16px; background:var(--chip-bg); }
.project-tools label { display:grid; gap:8px; font-size:14px; }
.project-tools input,.project-tools select { width:100%; margin:0; min-width:0; }
.project-tools p { color:var(--muted); white-space:nowrap; }
.project-card[hidden],.project-tools[hidden],.project-group[hidden] { display:none; }
.project-group { margin:30px 0 40px; }
.project-group-heading { display:flex; flex-wrap:wrap; gap:10px 18px; align-items:baseline; margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.project-group-heading h3 { margin:0; font-size:25px; }
.project-group-heading > span { color:var(--muted); font-size:13px; }
.project-material-summary { border-top:1px solid var(--line); padding-top:14px; font-size:14px!important; }
.project-material-summary span { display:block; color:var(--cream); font-weight:650; margin-bottom:4px; }
.project-quicknav { position:sticky; top:0; z-index:5; background:var(--navy); border:1px solid var(--line); border-radius:12px; padding:14px 20px; gap:24px; }
.project-quicknav a { padding:6px 0; color:var(--cream); }
.project-details { display:grid; grid-template-columns:1fr 1fr; gap:40px; padding:32px; border:1px solid var(--line); border-radius:18px; background:var(--chip-bg); margin:0 0 48px; scroll-margin-top:100px; }
.project-details p { color:var(--muted); }
.project-filament { border-left:1px solid var(--line); padding-left:32px; }
#build-videos,#other-projects-heading { scroll-margin-top:100px; }
.project-other-links a { max-width:100%; overflow-wrap:anywhere; }
@media(max-width:650px) { .project-tools,.project-details { grid-template-columns:1fr; gap:18px; padding:22px; }.project-tools p { margin:0; }.project-filament { border-left:0; border-top:1px solid var(--line); padding:20px 0 0; }.project-quicknav { gap:10px 20px; }.project-quicknav a { font-size:13px; } }

/* Private shop workflow */
.shop-navigation{padding-bottom:.65rem;border-bottom:1px solid var(--border,#ccc)}
.shop-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:1rem;margin:1rem 0}
.shop-stat{display:flex;flex-direction:column;gap:.5rem;border:1px solid var(--border,#ccc);border-radius:12px;padding:1rem;min-width:0}
.shop-stat strong{font-size:1.6rem}.shop-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin:.5rem 0}
.shop-actions button{white-space:normal}.inventory-dialog fieldset{min-width:0;margin:.75rem 0;padding:.75rem;border:1px solid var(--border,#ccc);border-radius:8px}
#inventory-app[data-view^="shop-"] .inventory-table td{overflow-wrap:anywhere}
