/* F7 Reference-to-Build Studio. Scoped to .rbs-page to preserve shared F6 design. */
.rbs-page{--forest:#183d30;--moss:#315b43;--gold:#c4a35a;--linen:#ede7d8;--cream:#fbf8f0;--ink:#26392f;--taupe:#a99b82;--line:#ddd2be;--muted:#607164;--shadow:0 16px 45px rgba(24,61,48,.10)}
.rbs-page *,.rbs-page *:before,.rbs-page *:after{box-sizing:border-box}
.rbs-page [hidden]{display:none!important}
.rbs-page{background:var(--cream);color:var(--ink);font:16px/1.65 Georgia, "Times New Roman",serif}
.rbs-page button,.rbs-page input,.rbs-page textarea,.rbs-page select{font:inherit}
.rbs-page button{cursor:pointer}
.rbs-page a{color:var(--moss);text-underline-offset:3px}
.rbs-page a:hover{color:#805f26}
.rbs-page img{max-width:100%;display:block}
.rbs-page h1,.rbs-page h2,.rbs-page h3,.rbs-page p{margin-top:0}
.rbs-page h1,.rbs-page h2,.rbs-page h3{line-height:1.18}
.rbs-page h1{font-weight:normal;font-size:clamp(2.5rem,6vw,4.8rem);letter-spacing:-.035em}
.rbs-page h2{font-size:clamp(1.7rem,3vw,2.5rem);font-weight:normal}
.rbs-page h3{font-size:1.27rem;font-weight:normal}
.rbs-page .wrap{width:min(1190px,calc(100% - 40px));margin:auto}
.rbs-page .crumbs{padding:16px 0;font:.82rem system-ui,sans-serif;color:var(--muted)}
.rbs-page .crumbs a{text-decoration:none}
.rbs-page .hero{position:relative;overflow:hidden;background:radial-gradient(ellipse at 90% 20%,#45664b,transparent 38%),linear-gradient(130deg,#1a3c2f,#10291f);color:#f8f2e5}
.rbs-page .hero:before{content:"✣";position:absolute;font-size:23rem;color:rgba(196,163,90,.08);right:1%;top:-8rem;line-height:1}
.rbs-page .hero .wrap{position:relative;padding:65px 0 60px}
.rbs-page .eyebrow{font:700 .75rem system-ui,sans-serif;text-transform:uppercase;letter-spacing:.24em;color:var(--gold)}
.rbs-page .hero p{font-size:1.15rem;max-width:690px;color:#e8e1d1}
.rbs-page .hero h1{max-width:700px;margin:18px 0}
.rbs-page .hero .accent{color:#ead2a0}
.rbs-page .hero-actions,.rbs-page .buttons{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.rbs-page .btn{border:1px solid var(--gold);background:var(--gold);color:#1c3028;padding:12px 18px;border-radius:3px;text-decoration:none;font:700 .82rem system-ui,sans-serif;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px}
.rbs-page .btn:hover,.rbs-page .btn:focus-visible{background:#e1c37e;color:#1c3028}
.rbs-page .btn.ghost{background:transparent;color:var(--forest);border-color:var(--moss)}
.rbs-page .hero .btn.ghost{color:#f7f3e8;border-color:#bac8b2}
.rbs-page .hero .btn.ghost:hover{background:#284c3b}
.rbs-page .btn.small{padding:10px 13px;min-height:38px;font-size:.75rem}
.rbs-page .btn:focus-visible,.rbs-page .chip:focus-visible,.rbs-page input:focus-visible,.rbs-page textarea:focus-visible,.rbs-page a:focus-visible{outline:3px solid #b58a35;outline-offset:3px}
.rbs-page .chips{display:flex;gap:8px;flex-wrap:wrap}
.rbs-page .chip{background:transparent;border:1px solid #bdc8b7;border-radius:50px;padding:9px 15px;color:var(--forest);font:700 .78rem system-ui,sans-serif}
.rbs-page .chip[aria-pressed=true],.rbs-page .chip:hover{background:var(--forest);border-color:var(--forest);color:white}
.rbs-page .intro{padding:42px 0 18px}
.rbs-page .intro-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.rbs-page .info-block{border-top:2px solid var(--gold);padding:17px 20px 13px;background:#f2ece0}
.rbs-page .info-block strong{display:block;font-size:1rem;margin-bottom:5px;color:var(--forest)}
.rbs-page .info-block p{font-size:.9rem;margin:0}
.rbs-page .section-head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:16px;margin:36px 0 20px}
.rbs-page .section-head p{margin:6px 0 0;color:var(--muted);max-width:720px}
.rbs-page .search{display:block;width:min(270px,100%);padding:11px 13px;border:1px solid #b5b6a8;border-radius:3px;background:white;color:var(--ink);font:.85rem system-ui,sans-serif}
.rbs-page .toolbar{display:flex;gap:16px;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:22px}
.rbs-page .count{font:.78rem system-ui,sans-serif;color:var(--muted)}
.rbs-page .gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px}
.rbs-page .ref-card{background:#fffdf9;border:1px solid var(--line);box-shadow:var(--shadow);display:flex;flex-direction:column;min-width:0}
.rbs-page .ref-photo{position:relative;aspect-ratio:4/3;overflow:hidden;background:linear-gradient(135deg,#dde1d0,#a2b29f);display:flex;align-items:center;justify-content:center}
.rbs-page .ref-photo img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.rbs-page .ref-photo img:hover{transform:scale(1.035)}
.rbs-page .ref-photo .photo-alt{position:absolute;inset:20px;display:none;align-items:center;justify-content:center;text-align:center;color:#385346}
.rbs-page .photo-tag{position:absolute;top:12px;left:12px;background:#193b2ff2;color:#fff;padding:5px 9px;font:700 .67rem system-ui,sans-serif;letter-spacing:.06em}
.rbs-page .ref-body{padding:21px 20px 20px;display:flex;flex-direction:column;flex:1}
.rbs-page .ref-body h3{margin:0 0 6px;font-size:1.35rem}
.rbs-page .ref-body p{margin:6px 0 16px;font-size:.92rem}
.rbs-page .meta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:11px}
.rbs-page .meta span{font:700 .68rem system-ui,sans-serif;color:#365545;background:#e8ecdf;padding:5px 8px;border-radius:2px}
.rbs-page .credit{font:.73rem/1.5 system-ui,sans-serif;color:#526a5a;margin-top:auto;padding-top:10px}
.rbs-page .credit a{font-weight:700}
.rbs-page .ref-body .btn{margin-top:14px}
.rbs-page .workspace{margin:64px 0 60px;padding:30px 32px;background:#f4efe4;border:1px solid #d5c5aa;box-shadow:var(--shadow)}
.rbs-page .workspace[hidden],.rbs-page .ref-card[hidden]{display:none}
.rbs-page .ws-head{display:flex;gap:16px;justify-content:space-between;align-items:start;flex-wrap:wrap;border-bottom:1px solid #d9cdb8;padding-bottom:18px}
.rbs-page .ws-head h2{margin:7px 0 5px}
.rbs-page .ws-sub{margin:0;color:var(--muted)}
.rbs-page .ws-kicker{font:700 .72rem system-ui,sans-serif;color:#8d6d2c;letter-spacing:.16em;text-transform:uppercase}
.rbs-page .compare{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0 22px}
.rbs-page .image-well{background:#fffdf8;border:1px solid #daceb8;min-width:0}
.rbs-page .image-well .image-title{font:700 .75rem system-ui,sans-serif;letter-spacing:.08em;padding:12px 14px;background:#e7dfce;color:#254535;text-transform:uppercase}
.rbs-page .image-well img,.rbs-page .image-well .empty-upload{width:100%;height:300px;object-fit:contain;background:#e6e4da}
.rbs-page .image-well .empty-upload{display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;padding:22px;color:#647263;gap:6px}
.rbs-page .image-well .empty-upload strong{font-weight:normal;font-size:1.13rem}
.rbs-page .image-well .caption{font:.8rem/1.55 system-ui,sans-serif;color:#4d5d50;padding:13px 14px}
.rbs-page .upload-wrap{padding:0 14px 15px}
.rbs-page .upload-wrap input{font:.8rem system-ui,sans-serif;max-width:100%}
.rbs-page .workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.rbs-page .panel{background:#fffdf8;border:1px solid #daceb8;padding:23px}
.rbs-page .panel h3{font-size:1.32rem;color:var(--forest);margin-bottom:13px}
.rbs-page .panel ul{padding-left:21px;margin-top:8px}
.rbs-page .panel li{margin:5px 0}
.rbs-page .panel h4{font-size:.88rem;text-transform:uppercase;letter-spacing:.09em;color:#78642d;font-family:system-ui,sans-serif;margin:21px 0 7px}
.rbs-page .pack-note{font-size:.9rem;background:#eff0e5;border-left:3px solid var(--gold);padding:12px 14px;margin-top:12px}
.rbs-page .toggle-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font:.8rem system-ui,sans-serif;color:var(--muted)}
.rbs-page .toggle-row input{accent-color:var(--forest);width:16px;height:16px}
.rbs-page .checklist{display:grid;gap:9px}
.rbs-page .task{display:flex;gap:12px;align-items:start;background:#f2f0e7;padding:11px 13px;font:.86rem/1.5 system-ui,sans-serif}
.rbs-page .task input{margin:3px 0 0;width:17px;height:17px;accent-color:var(--moss)}
.rbs-page .progress-line{height:8px;background:#dce0d3;overflow:hidden;border-radius:10px;margin:15px 0 5px}
.rbs-page .progress-line span{display:block;height:100%;background:var(--moss);width:0;transition:width .2s}
.rbs-page .progress-text{font:.78rem system-ui,sans-serif;color:var(--muted)}
.rbs-page .notes{display:block;width:100%;min-height:115px;resize:vertical;margin:12px 0;border:1px solid #c9c2b2;padding:13px;background:white;color:var(--ink);font:.9rem/1.55 Georgia,serif}
.rbs-page .ws-actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:22px;align-items:center}
.rbs-page .save-state{font:.75rem system-ui,sans-serif;color:#516c58}
.rbs-page .fine{font:.79rem/1.65 system-ui,sans-serif;color:#5a6d60}
.rbs-page .disclaimer{background:#edf0e5;border-top:1px solid #c9d3bf;padding:23px 0}
.rbs-page .disclaimer p{margin:0;font-size:.83rem}
.rbs-page .toast{position:fixed;right:20px;bottom:18px;padding:12px 18px;background:#1b3f30;color:white;font:.8rem system-ui,sans-serif;border:1px solid #dec588;box-shadow:0 5px 18px #0003;display:none;max-width:min(420px,calc(100vw - 40px));z-index:15}
.rbs-page .toast.show{display:block}
.rbs-page .muted{color:var(--muted)}
.rbs-page .nothing{background:#e7e8dc;padding:20px;border:1px dashed #b3c2b0}
@media(max-width:960px){.rbs-page .gallery{grid-template-columns:repeat(2,1fr)}
.rbs-page .workspace-grid{grid-template-columns:1fr}
.rbs-page .compare{gap:14px}}
@media(max-width:640px){.rbs-page .wrap{width:min(100% - 26px,1190px)}
.rbs-page .hero .wrap{padding:44px 0}
.rbs-page .intro-grid,.rbs-page .gallery,.rbs-page .compare{grid-template-columns:1fr}
.rbs-page .workspace{padding:20px 15px;margin:48px 0}
.rbs-page .image-well img,.rbs-page .image-well .empty-upload{height:240px}
.rbs-page .panel{padding:18px}
.rbs-page .hero h1{font-size:2.65rem}
.rbs-page .section-head{margin-top:25px}}
@media(prefers-reduced-motion:reduce){.rbs-page *,.rbs-page *:before,.rbs-page *:after{transition:none!important}}
@media print{.rbs-page .crumbs,.rbs-page .hero-actions,.rbs-page .gallery-section,.rbs-page .ws-actions,.rbs-page .upload-wrap,.rbs-page .toast,.rbs-page .disclaimer,.rbs-page .search,.rbs-page .chips{display:none!important}
.rbs-page .hero{background:none;color:#111;padding:0}
.rbs-page .hero p,.rbs-page .hero .accent{color:#111}
.rbs-page .hero .wrap{padding:10px 0}
.rbs-page .workspace{display:block!important;box-shadow:none;margin:10px 0;padding:12px}
.rbs-page .compare,.rbs-page .workspace-grid{break-inside:avoid}
.rbs-page .panel,.rbs-page .image-well{break-inside:avoid}
.rbs-page .image-well img{height:190px}
.rbs-page .notes{border:0;padding:4px}}
/* The global F6 Back-to-Top control should remain accessible above the F7 toast. */
.rbs-page #toast{z-index:1010;bottom:78px;right:22px;}
.rbs-page .hero{max-width:none;margin:0;padding:0;text-align:left;border:0;border-radius:0;box-shadow:none}
.rbs-page .hero .wrap{max-width:1190px}
.rbs-page .ws-actions .btn{min-height:44px}
@media (max-width:640px){.rbs-page .ws-actions .btn{width:100%;}.rbs-page .hero h1{line-height:1.15}}
@media print{header,.main-nav,.featured-nav-shortcut,footer,.back-to-top{display:none!important}}


/* F7 polish: align the new studio with the site's rounded heritage cards and buttons. */
main.rbs-page { border:1px solid #C4A35A; border-radius:16px; box-shadow:0 6px 24px rgba(24,61,48,.06); }
.rbs-page .hero {
  border:1px solid #C4A35A!important; border-radius:14px;
  outline:none!important; outline-offset:0!important;
  box-shadow:0 8px 25px rgba(24,61,48,.12);
}
.rbs-page .hero:before {pointer-events:none}
.rbs-page .btn, .rbs-page .chip {border-radius:10px}
.rbs-page .btn {background:#183D30; color:#FFFAEF; border-color:#C4A35A; }
.rbs-page .btn:hover, .rbs-page .btn:focus-visible {background:#315B43; color:#fff}
.rbs-page .btn.ghost{background:#FAF6ED; color:#183D30; border-color:#C4A35A}
.rbs-page .btn.ghost:hover,.rbs-page .btn.ghost:focus-visible{background:#EDE7D8;color:#183D30}
.rbs-page .hero .btn.ghost{background:transparent;color:#FFF9EC;border-color:#C4A35A}
.rbs-page .hero .btn.ghost:hover{background:#315B43;color:#fff}
.rbs-page .ref-card,.rbs-page .info-block,.rbs-page .workspace,
.rbs-page .image-well,.rbs-page .panel,.rbs-page .pack-note,
.rbs-page .task,.rbs-page .search,.rbs-page .notes,
.rbs-page .nothing { border-radius:12px; }
.rbs-page .ref-card,.rbs-page .info-block,.rbs-page .workspace,
.rbs-page .image-well,.rbs-page .panel {border-color:#C4A35A}
.rbs-page .ref-card{overflow:hidden}
.rbs-page .ref-photo{border-radius:11px 11px 0 0}
.rbs-page .ref-photo .photo-tag{border-radius:7px}
.rbs-page .meta span{border-radius:7px}
.rbs-page .image-well{overflow:hidden}
.rbs-page .image-well .image-title{border-radius:11px 11px 0 0}
.rbs-page .notes,.rbs-page .search{border-color:#B9A46F}
.rbs-page .ws-actions .btn{min-height:45px}
.rbs-page .toast{border-radius:12px}
.rbs-page .reference-saves{scroll-margin-top:22px; margin-bottom:52px;}
.rbs-page .ref-saves-heading{margin:24px 0 17px}
.rbs-page .ref-saves-heading h2{margin:4px 0 12px}
.rbs-page .ref-saves-content{display:grid;gap:18px}
.rbs-page .saved-projects-panel{border:1px solid #C4A35A;border-radius:14px;padding:22px;background:#FAF6ED;box-shadow:0 4px 15px rgba(24,61,48,.06)}
.rbs-page .saved-ref-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.rbs-page .saved-ref-heading h3{margin:0;color:#183D30;font-size:1.35rem;font-weight:bold}
.rbs-page .saved-ref-heading>span{font:.78rem system-ui,sans-serif;color:#315B43}
.rbs-page .saved-ref-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rbs-page .saved-ref-card{display:flex;flex-direction:column;min-width:0;padding:20px;background:#FFFCF5;border:1px solid #C4A35A;border-radius:12px;box-shadow:0 3px 9px rgba(24,61,48,.05)}
.rbs-page .saved-ref-top{display:flex;align-items:center;gap:7px;justify-content:space-between;flex-wrap:wrap}
.rbs-page .saved-ref-kind{font:700 .7rem system-ui,sans-serif;text-transform:uppercase;letter-spacing:.055em;color:#6F5824}
.rbs-page .saved-ref-date{font:.75rem system-ui,sans-serif;color:#536A57}
.rbs-page .saved-ref-card h4{font-size:1.24rem;color:#183D30;margin:10px 0 7px}
.rbs-page .saved-ref-card .saved-ref-meta{font-size:.86rem;line-height:1.5;color:#315B43;margin:0 0 14px}
.rbs-page .saved-ref-details{margin:auto 0 15px}
.rbs-page .saved-ref-details summary{cursor:pointer;color:#315B43;text-decoration:underline;text-underline-offset:3px;font-weight:700;font-size:.85rem}
.rbs-page .saved-ref-note,.rbs-page .draft-preview{overflow-wrap:anywhere;white-space:pre-wrap;font-size:.86rem;line-height:1.55;color:#425B4A;margin:10px 0 16px}
.rbs-page .saved-ref-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.rbs-page .saved-ref-actions .btn{flex:1 1 145px;text-align:center}
.rbs-page .ref-empty{grid-column:1 / -1;margin:0;padding:13px 16px;border:1px dashed #C4A35A;border-radius:10px;color:#315B43;background:#F5F0E5;font-size:.92rem}
.rbs-page .drafts-panel>.fine{margin:0 0 14px}
.rbs-page .saved-ref-card button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:700px){.rbs-page .saved-ref-grid{grid-template-columns:1fr}.rbs-page .saved-projects-panel{padding:16px}}

/* F8: Preserve the existing studio display typography with one semantic h1 on the page. */
.rbs-page h2.rbs-page-display-title{font-weight:normal;font-size:clamp(2.5rem,6vw,4.8rem);letter-spacing:-.035em;max-width:700px;margin:18px 0;line-height:1.18}
.rbs-page .hero h2.rbs-page-display-title{
    font-size:clamp(2.5rem,5.5vw,4.5rem);
    color:#fff8eb;
    font-weight:500;
    text-shadow:0 2px 12px rgba(0,0,0,.20);
}
.rbs-page .hero h2.rbs-page-display-title .accent{
    color:#e7ca8a;
}
@media(max-width:640px){.rbs-page .hero h2.rbs-page-display-title{line-height:1.15}}

/* F9: spacious, legible studio controls on 320px screens. */
@media (max-width: 380px) {
    .rbs-page .wrap { width: calc(100% - 18px); }
    .rbs-page .hero .wrap { padding: 32px 0; }
    .rbs-page .hero h2.rbs-page-display-title {
        font-size: clamp(2rem, 10.5vw, 2.35rem);
        overflow-wrap: anywhere;
        line-height: 1.16;
    }
    .rbs-page .hero-actions .btn,
    .rbs-page .ws-actions .btn { flex: 1 1 100%; text-align: center; }
    .rbs-page .saved-ref-card { padding: 15px; }
    .rbs-page .saved-ref-actions .btn { flex-basis: 100%; }
    .rbs-page input[type="file"] { max-width: 100%; }
}
