
:root{--bg:#17241b;--panel:#382318;--line:#a5713c;--txt:#fff6e5;--muted:#e5c9a4;--accent:#ffc45d;--soft:#66381c;--wood:url('/assets/wood.webp');--gold:#ffd27a;--edge:#b97228;--ink:#40270f;--paper:#f7e5bb}
body{background:radial-gradient(ellipse at 50% 0,#31432a,#17241b 70%);color:var(--txt)}
.homestead-banner{display:flex;justify-content:center;align-items:center;background:radial-gradient(ellipse at center,#31502e,#17241b 80%);height:112px;overflow:hidden;position:relative;border-bottom:2px solid #8e572a}
.homestead-banner img{object-fit:contain;height:100%;width:auto;max-width:100%;display:block}
header,.panel,.card,.timeline,.tabs,dialog,.stock-card{background-image:linear-gradient(180deg,#ffffff09,#00000015),var(--wood);background-size:auto,1000px 256px;background-color:#602f16;border-color:#b87b3c}
header,.panel,.card,dialog{border:3px solid #b97936;border-radius:15px;box-shadow:inset 0 0 0 1px #f5c27a,inset 0 0 0 4px #6b371a,0 3px 10px #0008}
header{border-radius:12px;position:relative;z-index:2;margin:4px 9px 0;padding:9px 14px;min-height:56px;height:auto;gap:10px}
h1,h2,h3,.brand b,#stageTitle{font-family:Georgia,'Times New Roman',serif;text-shadow:0 1px 1px #0008;letter-spacing:0}
button,select,.btn,.viewtop button{color:#fff4db;background:linear-gradient(180deg,#c0743538,#21100031),var(--wood);background-size:auto,650px 165px;border:1px solid #ecae67;box-shadow:inset 0 1px 0 #ffd49b88,inset 0 -2px 0 #3a1c0d,0 2px 4px #0006;border-radius:9px;font-weight:650;text-shadow:0 1px 1px #351700}
button:hover,.btn:hover{background:linear-gradient(#ac6a36,#73421e);color:#fff7df}button.active,button.primary,.primary,.tabs button.active,.viewtop button.active{background:linear-gradient(#ffe3a0,#ffbd51 52%,#df912d);border-color:#ffe0a0;color:#44230e;text-shadow:none;box-shadow:inset 0 0 0 1px #a96b22,inset 0 2px 0 #fff3c1,0 2px 5px #0007}
button:disabled{opacity:.46;box-shadow:none}.quickdoor button{background:linear-gradient(#79983b,#455c24);border-color:#b7ce73;color:#fff8df}.quickdoor small{color:#f4dbb6}.logo{background:linear-gradient(#ffe5a7,#d99b3c);color:#4c290f;border:1px solid #f6d18c;box-shadow:0 2px 6px #0006}.brand small{display:block}
.view{border:5px solid #a96121;border-radius:11px;box-shadow:inset 0 0 0 2px #ffd28a}.viewtop{z-index:2}.viewtop button{min-width:32px}.tip{background:#fff0cfe6;color:#422811;border:1px solid #e6bc82;box-shadow:0 1px 5px #0004}.timeline{border-top:2px solid #e1a359;position:relative}.timeline .row.between{padding-right:0}.playrow #all{font-family:Georgia,serif;font-size:18px}.tabs{border-bottom:3px solid #c38a48;padding:8px 6px;gap:5px}.tabs button{background:transparent;color:#f9e5c2;border:1px solid transparent;box-shadow:none;text-shadow:0 1px 1px #000;font-size:11px}.tabs button.active{border-color:#ffe0a0}.tabs button span{color:inherit}.tabbody{background:linear-gradient(135deg,#f8e8c4,#ead0a0);color:var(--ink);--txt:#432a13;--muted:#6c4a2d;--line:#ba9869;--accent:#8a460e;--soft:#edcd96;color-scheme:light}.tabbody h2,.tabbody h3{color:#4c2b13;text-shadow:none}.tabbody a{color:#874108}.tabbody .note{color:#573a22;background:#fff5df88;border-color:#ad6a25}.tabbody .hint,.tabbody .footer-note,.tabbody .muted,.tabbody small{color:#6c4a2d}.tabbody input[type=search]{background:#fff9e9;color:#40270f;border-color:#b98d55}.tabbody select{background:#fff0ca;color:#40270f;text-shadow:none;border-color:#ad814a}.tabbody button.active span{color:#532f13}.tabbody .list button span{color:#ffdfab}.tabbody .list button.active span{color:#532f13}.tabbody .stock-card{background:#fff4d8;color:#442a12}.tabbody .stockrow[data-stock-code]:hover{background:#e5c38b}.stock-card .stock-part-row .status-hold{color:#9e3219}.tabbody .diagram{background:#fffaf0;border:1px solid #c8ab7c}.material-actions button{color:#fff4db}.video-type{color:#6c4a2d}.diagram-modal{color:#fff6e5}.diagram-foot{color:#f0d3ac}.diagram-dialog-header{border-color:#c38a48}.zoom-viewport{color:#40270f;background:#fff4d8}
.model-zoom{position:absolute;right:10px;bottom:48px;display:flex;flex-direction:column;gap:5px;z-index:3}.model-zoom button{font-size:20px;line-height:1;padding:3px;min-width:38px;min-height:38px;background:linear-gradient(#8d532b,#522a14);color:#fff6e5;touch-action:manipulation}.model-zoom button:focus-visible{outline:3px solid #ffe0a0}.model-zoom[hidden]{display:none!important}.view.expanded,.view:fullscreen{border:0;border-radius:0}.view.expanded .model-zoom,.view:fullscreen .model-zoom{bottom:60px}.animal-deco{width:67px;height:67px;border:3px solid #bd853d;border-radius:50%;object-fit:cover;box-shadow:0 2px 5px #0005;pointer-events:none;flex-shrink:0}.stage-deco{display:flex;align-items:center;gap:12px;justify-content:space-between}.stage-deco .hint{margin:8px 0 10px;flex:1}.stage-deco img{width:56px;height:56px}.hero-art{width:min(230px,27vw);aspect-ratio:1;object-fit:cover;border-radius:18px;border:4px solid #be813a;box-shadow:0 4px 12px #0006}.hero{align-items:center}.hero p{color:var(--muted)}.cardbody{background:linear-gradient(135deg,#f8e8c4,#e8ce9a);color:#40270f}.cardbody .muted,.cardbody .notice{color:#65472c}.cardbody .eyebrow{color:#82420c}.cardbody h3{text-shadow:none}.cardbody .meta span{background:#d8b778;color:#4c3217}.local{color:#e6d0ad}.tag{background:#4b2816ed;border:1px solid #deab64}.sectionhead h2{font-size:23px}.cover{border-bottom:3px solid #c7904b}.brand img{border:1px solid #e8be7c}
@media(min-width:761px){body.viewer-page main{height:calc(100dvh - 184px);min-height:480px;grid-template-columns:minmax(0,1fr) minmax(350px,410px)}body.viewer-page main.collapsed{grid-template-columns:minmax(0,1fr) 66px}.viewer-page .sidebar{min-width:0}.homestead-banner{height:110px}.viewer-page header{min-height:59px}.viewer-page .homestead-banner img{max-width:760px}.viewer-page .tabs button{font-size:10px}}
@media(max-width:760px){.homestead-banner{height:clamp(74px,22vw,112px)}header{margin:3px 6px 0;padding:7px 10px;min-height:52px}.viewer-page header .brand h1{font-size:15px}.viewer-page header small{font-size:10px}.viewer-page header .logo{width:34px;height:34px;flex-shrink:0}.view{border-width:4px;height:clamp(270px,43dvh,490px)}.viewtop{top:6px;left:6px;right:6px}.viewtop button{padding:6px;min-height:34px;font-size:10px}.viewtop .row{gap:3px}.model-zoom{right:7px;bottom:43px}.model-zoom button{min-width:34px;min-height:35px}.tabs{padding:6px 4px;gap:3px}.tabs button{font-size:10px;min-height:45px}.playrow #all{font-size:16px}.hero-art{width:104px}.hero{flex-direction:row;align-items:center}.hero h1{font-size:clamp(26px,6.5vw,42px)}.hero>div{min-width:0}.stage-deco img{width:48px;height:48px}.viewer-page .tip{font-size:9px}.cardbody .actions{gap:6px}}
@media(max-width:360px){.viewtop{flex-wrap:wrap}.tabs{grid-template-columns:repeat(3,1fr)}.brand h1{font-size:13px}.hero-art{width:78px}}
/* Small hardware details on the wooden frames; decorative only. */
.viewer-page .brand h1 small{display:inline;font-size:.73em;font-weight:normal}.viewer-page .brand h1{line-height:1.3}.panel,.card{position:relative}header::before,header::after,.panel::before,.panel::after,.card::before,.card::after{content:"";width:7px;height:7px;border-radius:50%;background:radial-gradient(circle at 32% 27%,#fff 0%,#d1d1c5 24%,#87877d 60%,#3b3831 84%);border:1px solid #49290d;box-shadow:0 1px 2px #0009;position:absolute;z-index:4;pointer-events:none;top:4px}header::before,.panel::before,.card::before{left:4px}header::after,.panel::after,.card::after{right:4px}.viewer-page .viewtop{top:10px}.tabbody .stages button{border-color:#c98f52}.tabbody h2{font-size:18px;font-weight:700}.stage-deco{min-height:42px}

/* V1.5 — hand-finished workshop theme, compact desktop composition. */
:root{--frame-light:#ffce80;--frame-mid:#ae631e;--frame-dark:#482209;--cream:#fff0d0;--paper:#f8e3b9}
body{background:radial-gradient(ellipse at 50% 6%,#3d5030 0%,#243822 45%,#142218 100%);font-synthesis:none}
.homestead-banner{isolation:isolate;background:#1e3420;border-bottom:3px solid #ce8e39;box-shadow:0 3px 12px #0009,inset 0 -8px 20px #0005}
.homestead-banner::before{content:"";position:absolute;z-index:-1;inset:-24px;background:linear-gradient(90deg,#11231890,#1c301c35 35%,#1c301c35 65%,#11231890),url('/assets/homestead-banner.webp') center 52%/cover;filter:blur(9px) saturate(.8) brightness(.69);opacity:.9}
.homestead-banner img{filter:drop-shadow(0 3px 6px #0009);height:100%;max-width:100%;object-fit:contain}
header,.panel,.card,dialog{border:4px solid #a65f22;border-radius:19px;box-shadow:inset 0 0 0 1px #ffe1a5,inset 0 0 0 3px #b66a25,inset 0 0 0 5px #60300e,0 0 0 1px #482409,0 5px 12px #0008;background-image:linear-gradient(180deg,#f5b44e19,#43160018 45%,#3212003e),var(--wood);background-size:auto,1000px 260px}
header{border-radius:15px;padding:11px 17px;min-height:62px;box-shadow:inset 0 0 0 1px #ffe1a5,inset 0 0 0 3px #ce893f,inset 0 0 0 5px #653313,0 4px 9px #0008}
header::before,header::after,.panel::before,.panel::after,.card::before,.card::after{width:9px;height:9px;top:5px;background:radial-gradient(circle at 30% 27%,#fff,#e0d7c8 25%,#918d80 51%,#514a3f 73%,#302719 100%);box-shadow:0 1px 2px #000b,inset 0 0 0 1px #fff5}
header::before,.panel::before,.card::before{left:5px}header::after,.panel::after,.card::after{right:5px}
button,select,.btn,.viewtop button{background-image:linear-gradient(180deg,#f9bc6a36 0%,#a14e1020 37%,#2b100744 75%,#200e0660 100%),var(--wood);border:1px solid #f4bc76;border-radius:11px;box-shadow:inset 0 1px 1px #ffe1a9a0,inset 0 0 0 2px #7f3f18,inset 0 -3px 1px #3e1c09,0 3px 5px #0007;letter-spacing:.01em}
button:hover:not(:disabled),.btn:hover{filter:brightness(1.13);background-image:linear-gradient(180deg,#ffd18c36,#47200415),var(--wood)}
button.active,button.primary,.primary,.tabs button.active,.viewtop button.active{background-image:linear-gradient(180deg,#fff1b4 0%,#ffd16b 35%,#fbb342 66%,#db8125 100%);border-color:#ffe9b1;box-shadow:inset 0 0 0 2px #b87424,inset 0 3px 1px #fff4cc, inset 0 -3px 1px #b47121,0 3px 6px #0008;text-shadow:0 1px 0 #fff0b4;color:#3e200c}
button:disabled{filter:none;opacity:.5}.tabs button:not(.active){box-shadow:none;border-color:transparent;background:transparent}.tabs button:not(.active):hover{background:#ffd18c26;filter:none}
.view{border:6px solid #b16a27;border-radius:13px;box-shadow:0 0 0 1px #482407,inset 0 0 0 1px #f5c27a}.view.expanded,.view:fullscreen{border:0;border-radius:0}
.timeline{border-top:3px solid #f1b968;padding:14px 19px;background-image:linear-gradient(180deg,#eaae5520,#35120642),var(--wood)}
.timeline #stageTitle{font-size:clamp(16px,1.3vw,20px);color:#fff4d7;text-shadow:0 2px 2px #3e1d0b}.timeline .stagebadge{font-weight:750;letter-spacing:.09em;color:#ffd79c}.timeline .marker{color:#f5ddb8}.timeline input[type=range]{accent-color:#ffbd4b}
.quickdoor button{background:linear-gradient(#8ea94b,#637c2e 52%,#3a501e);border-color:#d0df82;box-shadow:inset 0 0 0 2px #526a20,inset 0 2px 0 #c9da8d,0 3px 5px #0006}.quickdoor button:hover:not(:disabled){background:linear-gradient(#a6bf59,#597629)}
.tabs{background-image:linear-gradient(180deg,#eaae5530,#36160535),var(--wood);border-bottom:4px solid #b8752e;padding:8px 7px;gap:5px}.tabs button span{font-size:21px;text-shadow:0 2px 1px #331c0b}.tabs button.active span{text-shadow:none}
.tabbody,.cardbody{background:radial-gradient(ellipse at 50% 15%,#fff1d5 10%,#f4dfb5 65%,#e9c993 100%);color:var(--ink)}.tabbody .tabpane{padding:17px}.tabbody .tabpane h2{font-size:20px}.tabbody .tabpane .hint{line-height:1.55}.tabbody .stages button{min-height:43px;padding-left:13px}.tabbody .stages{gap:7px}.tabbody .stock-card{box-shadow:0 2px 5px #8c552229;border-radius:12px}.tabbody .gestures b{color:#48290c}.tabbody .animal-deco{border:2px solid #a46a29;box-shadow:0 2px 6px #4d2f1855}
.tip{background:#fff0d7ef;border:1px solid #d49c55;border-radius:12px;color:#422b16;font-weight:600}.model-zoom button{background-image:linear-gradient(#a86b37,#4c230d),var(--wood)}
/* Project card thumbnails are image elements, separate from the immutable catalog cover. */
.cover{background:#b48a4d;position:relative;overflow:hidden;isolation:isolate}.cover .project-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.cover.portrait-cover{background:radial-gradient(ellipse,#f4d7a4,#8b592e);}.cover.portrait-cover .project-thumb{object-fit:contain}.cover .tag{z-index:1;box-shadow:0 2px 6px #0006}
.dashboard-page .hero{position:relative;isolation:isolate;padding:22px 26px;border:3px solid #bd813c;border-radius:20px;overflow:hidden;box-shadow:inset 0 0 0 1px #fdcd83,0 4px 11px #0007;background:linear-gradient(100deg,#283f25,#354e30 65%,#22351e)}.dashboard-page .hero::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 80% 50%,#cf9b5120,transparent 70%);pointer-events:none}.dashboard-page .hero h1{color:#fff2d6}.dashboard-page .hero-art{border-radius:15px;border:3px solid #c68a41}.dashboard-page .sectionhead{padding:12px 17px;margin:17px 0 12px;border:2px solid #c08743;border-radius:13px;background:linear-gradient(#e0a65a22,#3b180d35),var(--wood);box-shadow:inset 0 0 0 1px #f6c681,0 3px 6px #0005}.dashboard-page .sectionhead small{color:#ffdb9f}.dashboard-page .cardbody{padding:20px 23px}.dashboard-page .cardbody h3{font-size:25px}.dashboard-page .cardbody .notice{color:#65472c}.dashboard-page .local{background:#162719bb;border:1px solid #9a6d37;border-radius:12px;padding:12px 16px;margin-top:16px}.dashboard-page .meta span{border:1px solid #c49a60;background:#e4c48b}
.thumb-field{margin:16px 0 0;padding:12px;border:1px solid #d49b59;border-radius:12px;min-width:0;background:#311b1166}.thumb-field legend{font-weight:700;padding:0 6px;color:#ffe5b8}.thumb-preview{display:flex;gap:12px;align-items:center;margin:0 0 10px}.thumb-preview img{width:110px;height:75px;object-fit:cover;border:2px solid #daa35a;border-radius:8px;background:#e7ce9f}.thumb-preview img.portrait{object-fit:contain}.thumb-preview span{font-size:13px;color:#ffe2af}.thumb-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.thumb-options .thumb-choice{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;padding:5px;font-size:11px;line-height:1.2;min-height:0}.thumb-choice img{width:100%;height:58px;object-fit:contain;background:#bd945c;border-radius:6px}.thumb-choice[aria-pressed=true]{background:linear-gradient(#ffe3a0,#e5a94d);color:#40230a;border-color:#fff1bd;text-shadow:none;box-shadow:inset 0 0 0 2px #bd7d2e}.thumb-field .upload-photo{display:inline-block;padding:9px 12px;margin:12px 0 4px;border:1px solid #e1b16d;border-radius:9px;background:#77512c;color:#fff2d9;cursor:pointer}.thumb-field input[type=file]{width:100%;font-size:12px;padding:5px;background:#fff3d9;color:#44290e;border:1px solid #c28b47;min-height:36px}.photo-help{display:block;font-size:11px;margin-top:6px;color:#f2d6ac;line-height:1.4}.dashboard-page dialog{padding:22px}.dashboard-page dialog input:not([type=file]),.dashboard-page dialog textarea,.dashboard-page dialog select{background:#fff4da;color:#39210d;border-color:#bc854b;text-shadow:none}.dashboard-page dialog input::placeholder,.dashboard-page dialog textarea::placeholder{color:#98734d}
@media(min-width:761px){.homestead-banner{height:128px}.homestead-banner img{max-width:850px!important}.dashboard-page header{max-width:1260px;margin:6px auto 0}.dashboard-page main{max-width:1180px;padding:18px 20px 30px}.dashboard-page .hero{margin:0 0 12px;min-height:148px;padding:18px 25px}.dashboard-page .hero-art{width:144px}.dashboard-page .hero h1{font-size:clamp(32px,3.4vw,45px)}.dashboard-page .grid:has(.card:only-child){grid-template-columns:minmax(0,1fr)}.dashboard-page .grid>.card:only-child{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}.dashboard-page .grid>.card:only-child .cover{aspect-ratio:auto;min-height:275px;border-bottom:0;border-right:3px solid #c7904b}.dashboard-page .grid>.card:only-child .cardbody{display:flex;flex-direction:column;justify-content:center}.dashboard-page .cardbody p{margin:8px 0}.viewer-page header{max-width:1540px;margin:5px auto 0;min-height:62px;width:calc(100% - 24px)}body.viewer-page main{width:100%;max-width:1564px;margin:0 auto;height:calc(100dvh - 198px);min-height:490px;padding:10px 12px 12px;gap:13px;grid-template-columns:minmax(0,1fr) minmax(365px,440px)}body.viewer-page main.collapsed{grid-template-columns:minmax(0,1fr) 67px}.viewer-page .homestead-banner{height:128px}.viewer-page .tabs button{font-size:11px}.viewer-page .viewtop button{min-height:40px;font-size:13px}.viewer-page .timeline .playrow #all{font-size:20px}.viewer-page .stage-deco img{width:64px;height:64px}}
@media(min-width:761px) and (max-width:1050px){body.viewer-page main{grid-template-columns:minmax(0,1fr) minmax(310px,350px)}.viewer-page .tabs button{font-size:10px}.viewer-page .viewtop button{font-size:11px;padding:7px}.dashboard-page header{margin-left:10px;margin-right:10px}}
@media(max-width:760px){header{min-height:52px;border-width:3px;padding:7px 11px;border-radius:12px}.panel,.card{border-width:3px;border-radius:15px}.view{border-width:4px}.timeline{padding:10px 11px}.tabs{padding:7px 4px;gap:3px}.tabs button span{font-size:19px}.tabbody .tabpane{padding:13px}.tabbody .tabpane h2{font-size:18px}.viewer-page .timeline #stageTitle{font-size:15px}.dashboard-page .hero{padding:13px 12px;margin:2px 0 12px;border-radius:15px}.dashboard-page .hero-art{width:93px}.dashboard-page .hero h1{font-size:clamp(25px,6vw,35px)}.dashboard-page .cardbody{padding:16px}.dashboard-page .cardbody h3{font-size:22px}.dashboard-page .sectionhead{padding:9px 13px}.dashboard-page dialog{padding:15px}.thumb-preview img{width:92px;height:67px}}
@media(prefers-reduced-motion:no-preference){button,.btn{transition:filter .12s ease,box-shadow .12s ease}button:active:not(:disabled),.btn:active{transform:translateY(1px)}}
/* Actual illustrated frame artwork, extracted from the approved visual concept.
   The middle is transparent; model contents and all controls stay live. */
.homestead-banner::before{inset:0;background:linear-gradient(90deg,#0c211993,transparent 36%,transparent 64%,#0c211993),url('/assets/header-canopy.webp') center top/auto 100% repeat-x;filter:none;opacity:1}
.homestead-banner img{border-radius:0;mask-image:linear-gradient(90deg,transparent 0%,#000 3%,#000 97%,transparent 100%)}
.viewer-page .view:not(.expanded):not(:fullscreen){border:12px solid #a96021;border-image:url('/assets/illustrated-frame.webp') 35 / 12px / 0 round;border-radius:15px;box-shadow:none;background-clip:padding-box}
.viewer-page .timeline .quickdoor{position:relative;min-height:40px;padding-right:48px}.viewer-page .timeline .quickdoor::after{content:"";position:absolute;right:5px;top:50%;transform:translateY(-50%);width:42px;height:42px;background:url('/assets/goat-art.webp') center/cover;border:2px solid #f4be71;box-shadow:0 2px 4px #0008;border-radius:50%;pointer-events:none}
.viewer-page .timeline .playrow #all{letter-spacing:.015em;text-shadow:0 1px 0 #fff2bd}
@media(max-width:760px){.viewer-page .view:not(.expanded):not(:fullscreen){border-width:8px;border-image-width:8px}.viewer-page .timeline .quickdoor{padding-right:36px}.viewer-page .timeline .quickdoor::after{width:33px;height:33px;right:0}}
.tabs .tab-icon svg{display:block;width:22px;height:22px;filter:drop-shadow(0 1px 1px #35170799)}.tabs button.active .tab-icon svg{filter:none}.tabs button{font-weight:700}.viewer-page .timeline .playrow #all{background-image:linear-gradient(180deg,#fff0bd66,#fff0bd00 30%,#bd650c35 100%),linear-gradient(0deg,#e6a044dd,#ffd67ddd),var(--wood)}.viewer-page .view:not(.expanded):not(:fullscreen){border-image-repeat:stretch}

/* V1.7 - separated project picture and model cover. */
.project-identity{display:flex;align-items:flex-start;gap:15px;min-width:0}.project-title-block{min-width:0;flex:1}.project-title-block .eyebrow{margin:0 0 6px!important}.project-title-block h3{overflow-wrap:anywhere}.project-avatar{display:block;width:72px;height:72px;flex:none;object-fit:cover;border:2px solid #e9ad52;border-radius:15px;background:#729044;box-shadow:0 0 0 1px #693407,0 3px 7px #45240860}.avatar-edit{padding:0!important;min-height:0!important;border:0!important;background:none!important;box-shadow:none!important;flex:none}.avatar-edit:hover .project-avatar{outline:2px solid #9c591d;outline-offset:2px}.dashboard-page .cover{background:#8fa56d}.dashboard-page .cover .project-thumb{object-fit:cover}.dashboard-page .card{background:#f5dfb7}.dashboard-page .thumb-preview img,.dashboard-page .thumb-preview img.portrait{width:92px;height:92px;object-fit:cover}.thumb-options{grid-template-columns:repeat(4,minmax(0,1fr))}.thumb-choice img{height:auto;aspect-ratio:1;object-fit:cover}.thumb-choice span{min-height:2.3em;display:flex;align-items:center;text-align:center}.dashboard-page .cardbody .actions{gap:10px;align-items:center}.project-pdf-link{font-weight:700;white-space:nowrap;text-decoration:none}.viewer-page header .brand{gap:14px;min-width:0;flex:1}.viewer-page header .logo.home-button{display:flex;flex-direction:column;justify-content:center;gap:2px;width:65px;height:54px;min-width:65px;color:#4b280b;border:2px solid #ffda8a;border-radius:12px;background:linear-gradient(#fff1bc,#efae47);box-shadow:inset 0 0 0 1px #a85f1c,0 3px 5px #321900a0;font-weight:800;font-size:12px;text-decoration:none}.home-button svg{width:23px;height:23px}.viewer-page .brand .project-avatar{width:56px;height:56px;border-radius:12px}.viewer-page .project-heading{min-width:0}.viewer-page .project-heading h1{overflow-wrap:anywhere}.viewer-page header .project-pdf-link{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:10px 16px;color:#fff0cd;border:1px solid #e9b46c;border-radius:11px;background-image:linear-gradient(#ffcb7a2e,#381b0b55),var(--wood);box-shadow:inset 0 1px 1px #ffe1a9a0,inset 0 0 0 2px #7f3f18,0 3px 5px #0007}.viewer-page header .project-heading h1 small{white-space:nowrap}
@media(min-width:761px){.dashboard-page .grid>.card:only-child{grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);padding:9px;gap:8px;background:radial-gradient(ellipse,#fff1d5,#e9c993)}.dashboard-page .grid>.card:only-child .cover{border:2px solid #b87b36;border-radius:11px;min-height:272px}.dashboard-page .grid>.card:only-child .cardbody{background:transparent;padding:15px 13px 15px 8px}.viewer-page header{min-height:76px}.viewer-page main{height:calc(100dvh - 212px)}.dashboard-page .project-avatar{width:83px;height:83px}}
@media(max-width:760px){.project-identity{gap:10px}.project-avatar{width:57px;height:57px;border-radius:11px}.viewer-page header{height:auto;min-height:65px;gap:7px;padding:8px}.viewer-page header .brand{gap:7px}.viewer-page header .logo.home-button{width:43px;min-width:43px;height:44px;font-size:10px;border-radius:9px}.home-button svg{width:19px;height:19px}.viewer-page header .project-avatar{width:42px;height:42px;border-radius:9px}.viewer-page header .project-pdf-link{font-size:11px;min-height:38px;padding:7px;gap:3px}.viewer-page .project-heading h1{font-size:14px;line-height:1.22}.viewer-page .project-heading>small{font-size:9px;display:block;line-height:1.25}.thumb-options{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-page .actions .project-pdf-link{flex:0 0 auto}}

/* V1.8: accessible wrapping rows; independently layered, centered card artwork. */
.viewer-page .tabbody .list{gap:7px;padding:3px 4px 5px 2px;scrollbar-gutter:stable;max-height:340px;}
.viewer-page .tabbody #cutList{max-height:320px;}
.viewer-page .tabbody .list>button{display:block;flex:0 0 auto;flex-shrink:0;height:auto;min-height:56px;max-height:none;white-space:normal;overflow-wrap:anywhere;text-align:left;line-height:1.35;padding:10px 12px;}
.viewer-page .tabbody .list>button>span{display:block;line-height:1.35;margin-top:4px;white-space:normal;overflow-wrap:anywhere;font-size:11px;}
.viewer-page .tabbody .stages button,.viewer-page .tabbody .tools button,.viewer-page .tabbody .secondary-actions button,.viewer-page .tabbody .material-actions button,.viewer-page .tabbody .stock-part-row button{min-height:44px;height:auto;white-space:normal;overflow-wrap:anywhere;line-height:1.35;padding:10px 12px;}
.viewer-page .tabbody .tools>*{min-width:0;}
.viewer-page .tabbody .material-plan-head{flex-wrap:wrap;align-items:center;}
.viewer-page .tabbody .material-plan-head>div{min-width:0;flex:1 1 135px;overflow-wrap:anywhere;}
.viewer-page .tabbody .material-plan-head button{white-space:normal;flex:0 1 auto;}
.viewer-page .tabbody .material-plan-head h2{line-height:1.35;}
.viewer-page .tabbody .stock-part-row{line-height:1.45;overflow-wrap:anywhere;}
.viewer-page .tabbody .stock-part-row .row,.viewer-page .tabbody .material-actions{gap:8px;}
.viewer-page .tabbody .stages button{flex:0 0 auto;}
.viewer-page .tabbody button:focus-visible,.dashboard-page .cardbody button:focus-visible{outline:3px solid #855219;outline-offset:2px;}
.homestead-scene-host{position:relative;isolation:isolate;}
.homestead-scene{position:absolute;z-index:0;left:50%;top:var(--scene-center,50%);width:var(--scene-size,90%);aspect-ratio:1;transform:translate(-50%,-50%);background-position:center;background-size:contain;background-repeat:no-repeat;pointer-events:none;user-select:none;opacity:var(--scene-opacity,.38);mask-image:radial-gradient(ellipse at center,#000 48%,#000c 66%,transparent 99%);}
.viewer-page .tabbody.homestead-scene-host>.tabpane{position:relative;z-index:1;}
.dashboard-page .cardbody.homestead-scene-host>:not(.homestead-scene){position:relative;z-index:1;}
.viewer-page .tabbody .stage-deco>.animal-deco{display:none;}
.viewer-page .tabbody .stock-card{background:rgba(255,244,216,.73);}
.viewer-page .tabbody .note{background:rgba(255,248,230,.82);}
.viewer-page .tabbody .info dd,.viewer-page .tabbody .cutdetail p,.viewer-page .tabbody .gestures,.viewer-page .tabbody .hint,.viewer-page .tabbody .footer-note,.viewer-page .tabbody .video-card p{color:#50341e;}
.viewer-page .tabbody .info h3,.viewer-page .tabbody h2,.viewer-page .tabbody h3,.dashboard-page .cardbody h3{color:#42230b;}
.viewer-page .tabbody .diagram,.zoom-viewport{background:#fffaf0;}
.viewer-page .tabbody .scene-setting{margin:14px 0 6px;padding:10px;border:1px solid #b68d55;border-radius:9px;background:#fff4d8b8;}
.viewer-page .tabbody .scene-setting label{display:block;font-weight:700;line-height:1.4;margin-bottom:5px;}
.viewer-page .tabbody .scene-setting select{width:100%;}
@media(max-width:760px){.viewer-page .tabbody .list>button{min-height:54px;padding:10px 11px}.viewer-page .tabbody .list{max-height:300px}.viewer-page .tabbody #cutList{max-height:280px}}
.viewer-page .tabbody .list>button.active,.viewer-page .tabbody .stages>button.active{background:linear-gradient(180deg,#ffe6a5,#f5b94e 55%,#e9a23b);color:#3d210c;border-color:#f6cb7d;text-shadow:none;box-shadow:inset 0 0 0 1px #9b6221,inset 0 1px 0 #fff3cc,0 2px 5px #0005;}
.viewer-page .tabbody .list>button.active>span{color:#57340e;text-shadow:none;}


/* V1.9: glazed parchment controls; retain solid wood frames and navigation.
   The illustration remains behind the scroll content, never over the text. */
.viewer-page .tabbody,.dashboard-page .cardbody{
  --txt:#2e1b0b;--muted:#49331d;--accent:#703500;--line:#b48a54;--ink:#2e1b0b;
  color:#2e1b0b;
}
.viewer-page .tabbody .tabpane{font-size:13px;line-height:1.5}
.viewer-page .tabbody h2,.viewer-page .tabbody h3,.viewer-page .tabbody h4,
.dashboard-page .cardbody h3{color:#30200f;text-shadow:0 1px 1px #fff4dc;}
.viewer-page .tabbody :is(p,small,.hint,.muted,.footer-note,.video-type,.stocklegend,.info dt,.info dd,.cutdetail dt,.cutdetail dd,.cutdetail .key,.video-card p,.gestures,.status,.material-plan-note){color:#392513;}
/* Grained tinted glass: an actual translucent fill, rather than an opaque wood bitmap. */
.viewer-page .tabbody button:not(.active):not(.primary):not([aria-pressed="true"]){
  color:#321c0a;
  background:repeating-linear-gradient(177deg,#9b602012 0px,#9b602012 1px,transparent 1px,transparent 5px),linear-gradient(180deg,rgba(255,241,201,.82),rgba(211,153,83,.55));
  border:1px solid #a3682f;
  box-shadow:inset 0 1px 1px #fff4d8,inset 0 -2px 0 #98602740,0 2px 3px #63361130;
  text-shadow:0 1px 1px #fff4d9;
  font-weight:700;
}
.viewer-page .tabbody button:not(.active):not(.primary):not([aria-pressed="true"]):hover:not(:disabled){background:linear-gradient(180deg,#ffe8b7db,#dda758bb);color:#281708;filter:none;}
.viewer-page .tabbody button:disabled{opacity:.68;cursor:default;}
.viewer-page .tabbody .list>button>span{color:#3f2915;text-shadow:0 1px 0 #fff5e1;font-weight:600;}
.viewer-page .tabbody :is(.list,.stages)>button.active,.viewer-page .tabbody button[aria-pressed="true"],.viewer-page .tabbody button.primary{
  background:linear-gradient(180deg,#ffedb3ef,#ffc65cdd 58%,#e7a13ecf);color:#321c0a;border:1px solid #a3631b;
  box-shadow:inset 0 0 0 1px #fff0b9,0 2px 4px #63361140;text-shadow:none;
}
.viewer-page .tabbody .list>button.active>span{color:#3c250b;text-shadow:none;}
/* Local readable surfaces, not an opaque veil across the whole card. */
.viewer-page .tabbody :is(.video-card,.info,.stock-card,.scene-setting,.note,.checks,.gestures,.material-plan-meta span,.stocklegend){
  background:rgba(255,247,226,.63);border-radius:8px;
}
.viewer-page .tabbody .video-card{padding:12px 10px;margin:8px 0;border:1px solid #b88b5266;}
.viewer-page .tabbody .info{padding:8px 10px;}
.viewer-page .tabbody :is(.checks,.gestures,.stocklegend){padding:8px;}
.viewer-page .tabbody .note{background:rgba(255,249,233,.82);color:#422712;}
.viewer-page .tabbody .stock-card{background-image:none;background-color:rgba(255,246,222,.67);}
.viewer-page .tabbody :is(td,th){background-color:rgba(255,247,225,.58);color:#2e1b0b;}
.viewer-page .tabbody th{font-weight:750;background-color:rgba(255,238,200,.78);}
.viewer-page .tabbody a{color:#713300;text-decoration:underline;text-underline-offset:2px;font-weight:650;}
.viewer-page .tabbody :is(input[type=search],select){background:rgba(255,249,231,.9);color:#2e1b0b;border-color:#a77a43;text-shadow:none;}
.viewer-page .tabbody input::placeholder{color:#68533d;opacity:1;}
.viewer-page .tabbody .stockrow.selected,.viewer-page .tabbody .stock-card summary{color:#713300;font-weight:750;}
/* Small text directly on art gets a restrained parchment halo. */
.viewer-page .tabbody :is(.hint,.footer-note,.cutdetail p,.material-plan-note,.video-type){text-shadow:0 1px 1px #fff5df,0 -1px 1px #fff5df;}
.viewer-page .tabbody .diagram,.zoom-viewport{background:#fffaf0;}
.viewer-page .tabbody .list{gap:7px;}
.dashboard-page .thumb-choice span{overflow-wrap:anywhere;line-height:1.25;}

/* V1.10: compact, opt-in model navigation help; no pointer interception outside the panel. */
.viewer-page .model-help{position:absolute;left:12px;bottom:12px;z-index:5;max-width:calc(100% - 70px);}
.viewer-page #modelHelpToggle{display:grid;place-items:center;min-width:40px;min-height:40px;width:40px;height:40px;padding:4px;border-radius:50%;color:#fff1d0;box-shadow:0 2px 5px #0005;}
.viewer-page #modelHelpToggle.active{color:#38220f;}
.viewer-page .model-help-panel{position:absolute;left:0;bottom:48px;width:min(315px,calc(100vw - 90px));max-height:min(285px,calc(43dvh - 96px));overflow:auto;overscroll-behavior:contain;padding:12px;background:#fff1d9f5;color:#392513;border:2px solid #b87836;border-radius:12px;box-shadow:0 4px 15px #0006;font:13px/1.4 system-ui,sans-serif;}
.viewer-page .model-help-panel[hidden]{display:none!important;}
.viewer-page .model-help-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;}
.viewer-page .model-help-heading strong{font-size:15px;}
.viewer-page #modelHelpClose{min-width:32px;min-height:32px;padding:0 8px;font-size:20px;line-height:1;}
.viewer-page .model-help-panel dl{margin:4px 0 0;}
.viewer-page .model-help-panel dt{font-weight:750;margin-top:7px;}
.viewer-page .model-help-panel dd{margin:1px 0 0;}
@media(max-width:760px){.viewer-page .model-help{left:9px;bottom:9px}.viewer-page .model-help-panel{max-height:210px;width:min(290px,calc(100vw - 90px))}.viewer-page #modelHelpToggle{width:44px;height:44px;min-width:44px;min-height:44px}}
