/* Controlled Calm Color System v2. Inter bytes/license remain an open gate;
   system font is a disclosed staging fallback, not an approved replacement. */
.hosted-field{--navy:#0B3F63;--blue:#1D6FA3;--border:#DDE7ED;--green:#1D6FA3;--cream:#F7F2D5;background:#F5F9FC;color:var(--navy);padding-bottom:100px}
.hosted-field header{background:white;color:var(--navy);border-bottom:1px solid var(--border);padding:12px max(16px,calc((100vw - 1080px)/2));gap:16px}
.hosted-field header a{display:flex;align-items:center;gap:12px;color:var(--navy);font-size:1.1rem}.hosted-field header img{width:85px;max-height:40px;object-fit:contain}
.hosted-field header a span{display:inline}
.hosted-field .qualification{background:#E9F4FA;color:#5E6B74;padding:6px 16px;font-size:.75rem;text-align:center}
.hosted-field main{padding-bottom:30px}.hosted-field main>nav{border-bottom:1px solid var(--border);padding-bottom:12px;gap:8px}.hosted-field main>nav button,.hosted-field main>nav select{font-size:.8rem;padding:8px}
.hosted-field main>nav label{margin:0;display:flex;align-items:center;gap:8px;font-size:.8rem}
.hosted-field h1{font-size:1.65rem;margin:14px 0}.hosted-field h2{font-size:1.1rem}.hosted-field h3{font-size:1rem;text-transform:capitalize}.hosted-field p{line-height:1.5}
.hosted-field button{border-color:var(--border);color:var(--navy);border-radius:12px;min-height:44px}.hosted-field button:hover{border-color:var(--blue);background:#E9F4FA}.hosted-field .primary,.hosted-field button[type=submit]{background:var(--blue);color:white}
.hosted-field .freshness{font-size:.75rem;color:#5E6B74;overflow-wrap:anywhere}.hosted-field .source-note{font-size:.85rem;color:#3E7F82}.hosted-field .card{border-color:var(--border);text-align:left;box-shadow:0 3px 12px #0b3f6305}.hosted-field .card small{color:#5E6B74}.hosted-field .card button{margin-top:10px}
.hosted-field details{border-color:var(--border);margin-top:0}.room-grid{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.room-grid .room-snapshot{border-left:4px solid #DDF1E8}.room-grid details[data-key=context]{border-left:4px solid #6FA8A3}.room-grid details[data-key=findings]{border-left:4px solid #A99BCD}
.home-hero{background:url('/assets/brand/sage-home-organic-background-approved.png') center/cover;display:flex;align-items:center;gap:28px;border-radius:18px;padding:24px}.sage-hero{width:180px;height:220px;object-fit:contain}.home-hero h1{font-size:2rem}.eyebrow{font-size:.85rem;color:#3E7F82}.home-ribbon{width:100%;height:65px;object-fit:cover;object-position:center;margin:8px 0 20px}
.hosted-field .bottom-nav{position:fixed;z-index:20;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:6px max(8px,calc((100vw - 700px)/2)) max(6px,env(safe-area-inset-bottom));background:white;border-top:1px solid var(--border);box-shadow:0 -3px 18px #0b3f6308}
.hosted-field .bottom-nav button{border:0;background:transparent;border-radius:8px;padding:5px 2px;display:flex;flex-direction:column;gap:3px;align-items:center;color:#5E6B74;font-size:.75rem;min-width:0}.bottom-nav img{width:27px;height:27px}.hosted-field .bottom-nav [aria-current=page]{color:var(--blue);font-weight:700;background:#E9F4FA}.bottom-nav [data-section=capture] img{width:49px;height:49px;margin-top:-22px}.bottom-nav [data-section=capture]{color:var(--blue)}
.hosted-field .helpers img{width:95px;height:120px;object-fit:contain;display:block;margin:auto}.hosted-field .helpers .card{text-align:center}.review-card{border-left:4px solid #A99BCD;margin:12px 0}.review-state{background:#F0ECF8;padding:12px;border-radius:10px}.raw-text{white-space:pre-wrap}.target{padding:12px;background:#E9F4FA;border-radius:10px}.hosted-field #notice{color:#3E7F82}.hosted-field footer{color:#5E6B74}.hosted-field :focus-visible{outline:3px solid var(--blue)}
.field-dialog{border:1px solid #DDE7ED;border-radius:16px;color:#0B3F63;background:#F5F9FC;width:min(720px,96vw);max-height:88dvh;padding:22px;overflow:auto}.field-dialog::backdrop{background:#0b3f6377}.field-dialog .card{margin:10px 0}.field-dialog input{width:100%}.field-dialog .permission-note{font-size:.8rem;color:#5E6B74}.camera{width:100%;max-height:45dvh;background:#0B3F63;border-radius:12px}.hosted-field #saved-media>*{max-width:100%;max-height:60vh}.hosted-field .return{margin-bottom:8px}
@media(max-width:600px){.room-grid{grid-template-columns:1fr}.home-hero{padding:14px;gap:10px}.sage-hero{width:95px;height:155px}.home-hero h1{font-size:1.45rem}.home-hero .actions{gap:5px}.home-hero button{padding:8px;font-size:.85rem}.home-ribbon{height:44px}.hosted-field .helpers{grid-template-columns:repeat(2,minmax(0,1fr))}.hosted-field main>nav>*{flex:1 1 40%}.field-dialog{padding:14px}.hosted-field .bottom-nav>*{flex:initial}.hosted-field{padding-bottom:100px}}

/* SCR-008 phone/tablet Add / Capture anchor; six immutable ordered actions.
   In-flow placement keeps all content and permanent navigation reachable. */
.hosted-field .room-dock{margin-top:18px;padding:12px 8px;background:white;border:1px solid var(--border);border-radius:18px;box-shadow:0 3px 12px #0b3f6305}
.room-dock h2{margin:0 6px 8px}.dock-room,.room-dock #dock-gaps{font-size:.8rem;margin:8px 6px;overflow-wrap:anywhere}
.dock-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px}
.hosted-field .dock-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;padding:8px 0;border:0;font-size:.75rem;min-height:72px}
.dock-actions img{width:36px;height:36px}.dock-actions small{display:none}.dock-actions span{font-weight:600}
.room-return{border-left:3px solid var(--blue);padding:0 12px;margin-bottom:12px}.room-return p{overflow-wrap:anywhere}
.hosted-field{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px));scroll-padding-bottom:100px}
@media(min-width:760px){.room-dock{padding:14px}.dock-actions{gap:10px}.hosted-field .dock-actions button{font-size:.9rem;padding:10px}.dock-actions small{display:block;font-size:.65rem}.dock-actions img{width:44px;height:44px}}

@media(min-width:1000px){.hosted-field .dock-actions button{display:grid;grid-template-columns:44px 1fr;grid-template-rows:auto auto;text-align:left;column-gap:8px}.dock-actions img{grid-row:1 / 3}.dock-actions span{align-self:end}.dock-actions small{align-self:start}}

.room-local-capture{display:flow-root}.hosted-field{overflow-anchor:none}
