.test-figure-page{display:grid;gap:1rem}.test-figure-page h1{margin-top:0}.back-link{color:#1b6048;font-weight:800}:root{color:#18201c;background:#f3f1e8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}.button{display:inline-flex;align-items:center;justify-content:center;min-height:2.5rem;border:1px solid transparent;border-radius:6px;padding:.55rem .9rem;cursor:pointer;font-weight:700;transition:background .14s ease,border-color .14s ease,color .14s ease}.button:disabled{cursor:not-allowed;opacity:.6}.button.primary{background:#1b3328;color:#fffdf4}.button.primary:hover{background:#28513f}.button.secondary{background:#fffdf7;border-color:#c6c0ad;color:#1f2923}.button.secondary:hover{border-color:#8f8875}.button.danger{background:#fff9f7;border-color:#c99489;color:#8f1f10}.button.danger:hover{background:#f6e1dd}.text-button{border:0;background:none;color:#1a6048;cursor:pointer;font-weight:700;padding:0}.landing-page{min-height:100vh}.topbar,.app-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem clamp(1rem,4vw,3rem)}.brand,.brand-link{font-size:1.05rem;font-weight:800}.hero{display:grid;grid-template-columns:minmax(0,.95fr) minmax(300px,1.05fr);gap:clamp(1.5rem,6vw,5rem);align-items:center;min-height:calc(100vh - 5rem);padding:clamp(2rem,6vw,5rem) clamp(1rem,7vw,6rem) 4rem}.hero-copy{max-width:640px}.eyebrow{color:#52645d;font-size:.9rem;font-weight:800;margin:0 0 .8rem;text-transform:uppercase}.hero h1{font-size:clamp(3rem,8vw,6rem);line-height:.95;margin:0}.lede{color:#415049;font-size:clamp(1.05rem,2vw,1.35rem);line-height:1.55;margin:1.2rem 0 1.8rem}.drawing-sheet{display:flex;justify-content:center;min-width:0}.sheet-frame{position:relative;width:min(100%,470px);aspect-ratio:.707 / 1;background:linear-gradient(90deg,rgba(30,35,30,.06) 1px,transparent 1px),linear-gradient(rgba(30,35,30,.06) 1px,transparent 1px),#fffef9;background-size:34px 34px;border:2px solid #1d211e;box-shadow:0 24px 60px #1e201a2e}.figure-title{position:absolute;top:7%;left:50%;transform:translate(-50%);color:#111;font:700 .85rem Arial,sans-serif}.assembly{position:absolute;top:18%;right:13%;bottom:15%;left:13%;border:1px solid #111}.block,.leader,.numeral{position:absolute;display:block}.block{border:2px solid #111;background:#fffef9}.block-large{left:21%;top:32%;width:42%;height:24%}.block-small{left:53%;top:23%;width:24%;height:17%}.block-tall{left:28%;top:57%;width:20%;height:28%}.leader{height:1px;background:#111;transform-origin:left center}.leader-one{left:64%;top:26%;width:28%;transform:rotate(-18deg)}.leader-two{left:47%;top:68%;width:34%;transform:rotate(22deg)}.numeral{color:#111;font:700 .85rem Arial,sans-serif}.numeral-one{right:2%;top:13%}.numeral-two{right:6%;bottom:20%}.app-shell{min-height:100vh}.app-header{border-bottom:1px solid #d5cfbf;background:#fbf9ef}.app-header p{color:#697269;margin:.25rem 0 0}.header-actions,.modal-actions,.inline-form{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.content-band{width:min(1120px,calc(100% - 2rem));margin:0 auto;padding:clamp(1.5rem,4vw,3rem) 0}.section-heading,.project-detail-heading{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1.5rem}.section-heading h1,.project-detail-heading h1{font-size:clamp(2rem,4vw,3rem);margin:0}.section-heading p,.placeholder-panel p,.empty-state p{color:#5d685f;line-height:1.55}.notice{background:#fffdf7;border:1px solid #d7d0bd;border-radius:6px;margin:1rem 0;padding:.9rem 1rem}.notice.error{background:#fff7f5;border-color:#d79b8e;color:#8f1f10}.notice.compact{margin:.75rem 0}.test-project-section{background:#fff6bf;border:1px solid #d7a900;border-radius:8px;margin-bottom:1.5rem;padding:1rem}.test-project-section h2{font-size:1.2rem;margin:0}.test-project-section p{color:#5f5120;line-height:1.5;margin:.45rem 0 1rem}.empty-state,.placeholder-panel,.import-panel,.figure-card,.reference-section{background:#fffdf7;border:1px solid #d7d0bd;border-radius:8px;padding:clamp(1.25rem,3vw,2rem)}.import-panel{margin-bottom:1.25rem}.panel-heading,.figure-card-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.panel-heading{margin-bottom:1.1rem}.panel-heading h2,.compact-heading h2{font-size:1.45rem;margin:0}.panel-heading p,.compact-heading p,.muted{color:#5d685f;line-height:1.55;margin:.35rem 0 0}.mode-toggle{display:flex;flex-wrap:wrap;gap:.55rem}.mode-toggle label{display:inline-flex;align-items:center;gap:.4rem;background:#f7f2e3;border:1px solid #d7d0bd;border-radius:6px;color:#28322c;cursor:pointer;font-weight:700;min-height:2.4rem;padding:.45rem .65rem}.import-form,.markdown-fields,.figure-list{display:grid;gap:1rem}.import-form label,.markdown-fields label,.markdown-preview-grid label{display:grid;gap:.45rem;font-weight:800}.source-textarea{width:100%;min-height:11rem;resize:vertical;border:1px solid #bdb6a4;border-radius:6px;background:#fffef9;color:#1f2923;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9rem;line-height:1.45;padding:.75rem}.source-textarea.large{min-height:15rem}.source-textarea.preview{min-height:8rem;background:#f8f5e9}.markdown-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.import-actions{display:flex;justify-content:flex-end}.compact-heading{margin-top:1.5rem}.figure-card{padding:0;overflow:hidden}.figure-card.expanded{border-color:#a9a28f}.figure-card-summary{width:100%;border:0;background:transparent;color:inherit;cursor:pointer;padding:1rem;text-align:left}.figure-number{color:#1b3328;flex:0 0 auto;font-size:clamp(1.45rem,3vw,2rem);font-weight:900;line-height:1}.figure-meta{display:grid;gap:.55rem;justify-items:end;min-width:0}.figure-meta strong{font-size:1.05rem;overflow-wrap:anywhere}.figure-card-tags{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:.55rem}.pill{background:#e6eee9;border:1px solid #bfd4c9;border-radius:999px;color:#1f4a39;display:inline-flex;font-size:.82rem;font-weight:800;padding:.25rem .55rem}.numeral-count{color:#5d685f;font-size:.9rem;font-weight:700}.figure-card-details{border-top:1px solid #e1dbc9;display:grid;gap:.7rem;padding:1rem}.figure-card-details h3{font-size:.95rem;margin:.25rem 0 0}.figure-card-details p{color:#354039;line-height:1.6;margin:0;white-space:pre-wrap}.linked-numerals,.reference-grid{display:grid;gap:.75rem;margin:0}.linked-numerals div,.reference-grid div{border-top:1px solid #e5dfce;padding-top:.75rem}.linked-numerals dt,.reference-grid dt{color:#1f2923;font-weight:900}.linked-numerals dt span{color:#5d685f;font-weight:700;margin-left:.4rem}.linked-numerals dd,.reference-grid dd{color:#4d5952;line-height:1.55;margin:.25rem 0 0}.reference-section{margin-top:1rem}.reference-section summary{cursor:pointer;font-weight:900}.reference-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));margin-top:1rem}.reference-grid dt{display:flex;gap:.5rem}.reference-grid dt span{color:#1b6048;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.project-list{display:grid;gap:.75rem}.project-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#fffdf7;border:1px solid #d7d0bd;border-radius:8px;padding:1rem}.project-row h2{font-size:1.1rem;margin:0}.project-row p,.project-id{color:#697269;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.82rem;overflow-wrap:anywhere;margin:.35rem 0 0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#1b1f1b6b;padding:1rem}.modal{width:min(100%,460px);background:#fffdf7;border-radius:8px;padding:1.4rem;box-shadow:0 20px 70px #00000038}.modal h2{margin-top:0}.modal label{display:block;font-weight:700;margin-bottom:.45rem}.modal input,.inline-form input{width:100%;border:1px solid #bdb6a4;border-radius:6px;min-height:2.6rem;padding:.55rem .7rem}.modal-actions{justify-content:flex-end;margin-top:1rem}.inline-form{align-items:stretch}.inline-form input{min-width:min(460px,100%)}.auth-status{display:grid;min-height:100vh;place-items:center;align-content:center;gap:1rem;padding:1rem;text-align:center}.auth-status h1{margin:0}.spinner{width:2.5rem;height:2.5rem;border:4px solid rgba(27,51,40,.18);border-top-color:#1b3328;border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 760px){.hero{grid-template-columns:1fr;min-height:auto;padding-top:2rem}.topbar,.app-header,.section-heading,.project-detail-heading,.project-row{align-items:stretch;flex-direction:column}.header-actions{width:100%}.header-actions .button{flex:1}}
