:root { --paper:#f0e8da; --cream:#faf4e9; --wine:#682d3e; --deep-wine:#4d1f2d; --muted:#73534f; --rule:#c2a398; --sans:"Segoe UI",Arial,sans-serif; --serif:"Palatino Linotype",Georgia,serif; }
* { box-sizing:border-box; } [hidden] { display:none!important; }
body { margin:0; background:var(--paper); color:var(--wine); font-family:var(--sans); }
button,input,select,textarea { font:inherit; } button { cursor:pointer; } button:disabled { opacity:.6; cursor:wait; }
button { color:var(--wine); border:1px solid var(--rule); background:var(--cream); border-radius:4px; padding:9px 13px; }
button:hover:not(:disabled) { border-color:var(--wine); } :focus-visible { outline:2px solid var(--wine); outline-offset:3px; }
input,textarea,select { color:var(--deep-wine); background:var(--cream); border:1px solid var(--rule); border-radius:3px; padding:10px; min-width:0; }
textarea { width:100%; min-height:100px; resize:vertical; } h2 { font:400 25px var(--serif); } p { line-height:1.6; }
.primary { background:var(--wine); color:var(--cream); border-color:var(--wine); }
.local-badge { position:relative; z-index:2; padding:8px 16px; text-align:center; font-size:11px; color:var(--muted); border-bottom:1px solid #c2a39855; background:var(--paper); }
.connection { display:block; font-size:11px; padding:9px; color:var(--muted); }
.hub-tools { display:flex; justify-content:center; align-items:center; gap:14px; flex-wrap:wrap; margin:14px 0 28px; }
.hub-tools button { font-size:12px; } #projectPagination { display:flex; gap:8px; align-items:center; font-size:11px; }
.inbox { text-align:left; margin-block:28px; } .inbox h2 { margin-bottom:14px; }
.request-row { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; text-align:left; margin-bottom:8px; padding:14px 16px; }
.request-row strong { font-weight:550; display:block; font-size:14px; } .request-row small { display:block; color:var(--muted); margin-top:5px; }
.status-pill { flex:0 0 auto; font-size:11px; background:#682d3e0d; padding:6px 9px; border-radius:20px; }
.empty { font-size:13px; color:var(--muted); } .admin-shell { max-width:1150px; margin:0 auto; padding:40px 32px 100px; }
.admin-header { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:32px; }
.brand-name { font:400 19px var(--serif); margin:0 0 8px; } .admin-header h1 { font:400 clamp(30px,4vw,46px) var(--serif); margin:0; }
.admin-filter { display:flex; gap:14px; align-items:center; flex-wrap:wrap; } .admin-filter label { font-size:13px; }
.prototype-note { font-size:12px; color:var(--muted); margin-bottom:28px; }
.admin-projects { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; }
.admin-project { border:1px solid var(--rule); border-radius:4px; padding:18px; background:#faf4e966; }
.admin-project h3 { font-size:16px; font-weight:500; margin:0 0 9px; } .admin-project p { font-size:12px; color:var(--muted); }
.button-row { display:flex; gap:8px; flex-wrap:wrap; } .button-row button { font-size:12px; }
.button-row .project-app-link { display:inline-flex; align-items:center; font-size:12px; border:1px solid var(--wine); border-radius:4px; padding:9px 13px; text-decoration:none; }
.project-app-connection { border-block:1px solid #c2a39870; padding:12px 0 14px; margin:14px 0; }
.admin-project .project-app-status { margin:0 0 10px; }
.project-tile-group { min-width:0; display:flex; flex-direction:column; gap:10px; }
.project-live-link { align-self:flex-start; padding:3px 0; color:var(--wine); font-size:12px; text-underline-offset:4px; }
#copyAppLink { width:100%; font-size:13px; }
dialog { color:var(--wine); background:var(--cream); border:1px solid var(--rule); border-radius:6px; box-shadow:0 20px 90px #32121f33; }
dialog::backdrop { background:#2c18264d; } .form-dialog { width:min(540px,calc(100% - 28px)); padding:25px; max-height:90svh; overflow:auto; }
.dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:22px; }
.dialog-heading h2 { margin:0; } .close-button { border:0; padding:6px 10px; background:transparent; font-size:21px; }
.field { display:grid; gap:7px; margin-bottom:17px; font-size:13px; } .field select,.field input { width:100%; }
.form-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:15px; } .form-error { color:var(--wine); font-size:12px; line-height:1.6; margin:12px 0 0; }
.conversation-dialog { width:min(660px,calc(100% - 28px)); } .conversation-meta { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:16px; font-size:12px; }
.messages { display:grid; gap:10px; max-height:38svh; overflow:auto; margin-bottom:20px; padding-right:5px; }
.message { padding:13px 16px; background:var(--paper); border-left:2px solid var(--rule); }
.message.admin { border-color:var(--wine); background:#682d3e0b; } .message small { font-size:11px; color:var(--muted); }
.message p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; margin:6px 0 0; }
.toast { position:fixed; bottom:22px; left:50%; transform:translateX(-50%); max-width:min(540px,90vw); padding:13px 20px; background:var(--deep-wine); color:var(--cream); border-radius:4px; z-index:30; font-size:13px; }
.review-dialog { width:min(1250px,calc(100% - 24px)); height:94svh; max-height:94svh; padding:0; overflow:hidden; }
.review-layout { height:100%; display:flex; flex-direction:column; } .review-toolbar { padding:15px 20px; border-bottom:1px solid var(--rule); display:flex; gap:12px; align-items:center; flex-wrap:wrap; flex:0 0 auto; background:var(--cream); }
.review-toolbar h2 { font-size:19px; margin:0 auto 0 0; } .review-toolbar button,.review-toolbar select { font-size:12px; }
.review-toolbar .active { background:var(--wine); color:var(--cream); } .review-note { padding:8px 20px; background:var(--paper); margin:0; font-size:11px; color:var(--muted); }
.review-scroll { position:relative; flex:1; overflow:auto; background:#ddd6cd; padding:20px; }
.review-canvas { position:relative; container-type:inline-size; min-height:630px; color:#18373c; background:#f7f8f5; max-width:1000px; margin:0 auto; overflow:hidden; }
.sample-header { padding:25px 32px; display:flex; gap:20px; justify-content:space-between; border-bottom:1px solid #18373c22; font-size:13px; }
.sample-header strong { font-size:20px; } .sample-content { padding:32px; }
.sample-content h2 { font:400 39px var(--serif); color:#18373c; margin:0 0 14px; } .sample-content p { color:#557071; font-size:14px; }
.sample-layout { display:grid; grid-template-columns:1.5fr 1fr; gap:24px; margin-top:26px; }
.sample-block { border:1px solid #18373c25; padding:24px; background:white; } .sample-block h3 { font-size:16px; margin:0 0 18px; }
.sample-item { border-top:1px solid #18373c16; padding:15px 0; font-size:13px; display:flex; justify-content:space-between; gap:12px; }
.sample-art { height:170px; background:linear-gradient(145deg,#d8e1db,#eef1e7); display:grid; place-items:center; margin-bottom:25px; }
.sample-art svg { width:180px; height:130px; } .sample-action { background:#18373c; color:#fff; padding:10px 15px; border:0; }
.annotation-layer { position:absolute; inset:0; z-index:3; background:#21132155; cursor:crosshair; touch-action:none; }
.annotation-layer.drawing { background:transparent; } .selection-box { position:absolute; border:2px solid var(--wine); background:transparent; box-shadow:0 0 0 10000px #21132155; pointer-events:none; }
.annotation-popover { position:fixed; width:min(320px,calc(100vw - 24px)); max-height:calc(100svh - 24px); overflow:auto; padding:18px; background:var(--cream); color:var(--wine); border:1px solid var(--wine); border-radius:4px; box-shadow:0 10px 45px #32121f33; z-index:7; }
.annotation-popover h3 { margin:0 0 12px; font-size:15px; font-weight:500; } .annotation-popover textarea { min-height:90px; }
.annotation-popover .field { margin-bottom:10px; } .annotation-popover .form-actions button { font-size:12px; }
.annotation-pin { position:absolute; width:25px; height:25px; border:1px solid var(--cream); border-radius:50%; padding:0; background:var(--wine); color:var(--cream); font-size:11px; z-index:2; transform:translate(-3px,-3px); }
.saved-area { position:absolute; border:2px solid var(--wine); background:#682d3e0c; pointer-events:none; z-index:1; }
@container(max-width:640px) { .sample-layout{grid-template-columns:1fr}.sample-content{padding:22px}.sample-header{padding:20px} }
@media(max-width:640px) { .admin-shell{padding:28px 18px 70px}.admin-header{align-items:flex-start;flex-direction:column;gap:12px}.review-scroll{padding:8px}.review-toolbar{padding:10px;gap:7px}.request-row{align-items:flex-start}.status-pill{font-size:10px}.review-dialog{width:calc(100% - 10px)} }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }



    :root {
      --paper: #f0e8da;
      --cream: #faf4e9;
      --wine: #682d3e;
      --deep-wine: #4d1f2d;
      --muted: #73534f;
      --rule: #c2a398;
      --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
      --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    }
    * { box-sizing: border-box; }
    html { min-width: min(320px, 100%); background: var(--paper); }
    body {
      margin: 0; color: var(--wine); font-family: var(--sans); -webkit-font-smoothing: antialiased;
      background: radial-gradient(ellipse at 50% 25%, #fffaf2a6, transparent 72%);
    }
    button, input { font: inherit; -webkit-tap-highlight-color: transparent; }
    button { cursor: pointer; }
    button:disabled { cursor: wait; }
    [hidden] { display: none !important; }
    ::selection { color: var(--cream); background: var(--wine); }
    :focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }
    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .page { position: relative; isolation: isolate; min-height: 100svh; overflow: hidden; }
    .masthead { position: relative; z-index: 1; display: flex; justify-content: center; padding: 35px 24px 0; }
    .brand { display: flex; align-items: center; gap: 10px; }
    .brand-mark { width: 34px; height: 37px; }
    .wordmark { font-family: var(--serif); font-size: 18px; font-weight: 400; letter-spacing: -.025em; }
    .landing {
      position: relative; z-index: 1; width: min(100% - 64px, 1080px); margin: 0 auto;
      min-height: calc(100svh - 72px); padding: 74px 0 155px;
      display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    }
    h1 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.07em; }
    .welcome { display: block; margin-bottom: 22px; font-size: clamp(25px, 2.7vw, 35px); font-style: italic; letter-spacing: -.035em; }
    .name { display: block; font-size: clamp(68px, 8.1vw, 116px); }
    .name span { white-space: nowrap; }
    .ampersand { display: inline-block; margin-inline: .035em; font-style: italic; font-weight: 400; }
    .welcome-copy { margin: 25px 0 0; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.65; font-weight: 400; letter-spacing: -.01em; }
    .welcome-copy span { display: block; }
    .lookup-panel { width: min(100%, 568px); margin-top: 39px; }
    .landing-details {
      position: absolute; top: 48px; left: 50%; transform: translateX(-50%);
      width: min(calc(100vw - 112px), 1440px); display: flex; justify-content: space-between; gap: 80px; text-align: left;
    }
    .landing-detail { width: 260px; max-width: 100%; color: var(--muted); }
    .landing-detail h2 { margin: 0 0 10px; color: var(--wine); font: 400 21px/1.3 var(--serif); letter-spacing: -.02em; }
    .landing-detail p { margin: 0; font-size: 13px; line-height: 1.7; }
    .landing-contact a {
      display: inline-block; margin-top: 12px; padding-block: 4px; max-width: 100%; overflow-wrap: anywhere;
      color: var(--wine); font-size: 13px; text-decoration-color: var(--rule); text-underline-offset: 4px;
    }
    .landing-contact a:hover { text-decoration-color: var(--wine); }
    #lookupView { position: relative; }
    .landing-process { position: absolute; top: calc(100% + 30px); left: 50%; transform: translateX(-50%); width: min(100%, 460px); }
    .landing-process h2 { font-size: 19px; margin-bottom: 8px; }
    .lookup-row { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--rule); border-radius: 5px; background: #faf4e967; transition: border-color .2s ease, box-shadow .2s ease; }
    .lookup-row:focus-within { border-color: var(--wine); box-shadow: 0 0 0 3px #682d3e0b; }
    .reference-input { display: block; flex: 1 1 0; width: 100%; min-width: 0; height: 55px; border: 0; border-radius: 0; padding: 12px 18px; color: var(--deep-wine); background: transparent; font-size: 16px; outline: none; }
    .reference-input::placeholder { color: var(--muted); opacity: 1; }
    .reference-input:not(:placeholder-shown) { font: 23px Consolas, "Courier New", monospace; letter-spacing: .18em; }
    .reference-input:focus-visible { outline: 2px solid var(--wine); outline-offset: -3px; border-radius: 2px; }
    .reference-input[aria-invalid="true"] { box-shadow: inset 0 -2px var(--wine); }
    .find-button { display: flex; align-items: center; justify-content: center; flex: 0 0 185px; gap: 17px; border: 0; border-radius: 2px; padding: 14px 18px; background: var(--wine); color: var(--cream); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .2s ease; }
    .find-button:hover:not(:disabled) { background: var(--deep-wine); }
    .find-button:focus-visible { outline-offset: 3px; }
    .find-button svg { width: 20px; height: 20px; flex: 0 0 auto; transition: transform .2s ease; }
    .find-button:hover:not(:disabled) svg { transform: translateX(3px); }
    .find-button[aria-busy="true"] svg { display: none; }
    .find-button[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; flex: 0 0 auto; border: 1px solid #faf4e955; border-top-color: var(--cream); border-radius: 50%; animation: turn .75s linear infinite; }
    .status { margin: 0; color: var(--wine); font-size: 12px; line-height: 1.6; }
    .status:not(:empty) { margin: 17px auto 0; max-width: 430px; }
    .match-view { animation: arrive .35s ease both; }
    .match-heading { margin: 0; font-family: var(--serif); font-size: 31px; font-weight: 400; letter-spacing: -.025em; }
    .project-strip { max-width: 100%; margin: 22px auto 13px; padding: 7px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
    .project-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 60px; gap: 10px; width: max-content; margin-inline: auto; }
    .project-tile { display: grid; place-items: center; width: 60px; aspect-ratio: 1; padding: 0; overflow: hidden; border: 1px solid #682d3e60; border-radius: 4px; background: #faf4e9a6; color: var(--wine); opacity: .6; transition: opacity .22s ease, transform .22s ease, border-color .22s ease; }
    button.project-tile:hover, button.project-tile:focus-visible { opacity: 1; border-color: var(--wine); transform: translateY(-2px); }
    .project-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .project-add span { font: 300 34px/1 var(--sans); margin-top: -3px; }
    .project-placeholder { border-style: dashed; }
    .project-feedback { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
    .project-feedback:not(:empty) { margin: 0 auto 12px; max-width: 390px; }
    .reset-button { border: 0; border-bottom: 1px solid var(--rule); padding: 7px 0; color: var(--wine); background: transparent; font-size: 12px; }
    .ornament { position: absolute; z-index: 0; color: var(--wine); pointer-events: none; }
    .pie-art { width: clamp(140px, 17vw, 260px); left: -34px; top: 55%; transform: rotate(-17deg); opacity: .72; }
    .pop-art { width: clamp(138px, 16.5vw, 250px); right: -26px; top: 50%; transform: rotate(13deg); opacity: .72; }
    .bottom-line { position: absolute; inset: auto 0 0; width: 100%; height: 65px; color: var(--wine); opacity: .14; pointer-events: none; }
    .intro, .lookup-panel { animation: arrive .7s cubic-bezier(.2,.65,.3,1) both; }
    .lookup-panel { animation-delay: .08s; }
    @keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes turn { to { transform: rotate(360deg); } }
    @media (min-width: 1600px) { .pie-art { left: 3%; } .pop-art { right: 3%; } }
    @media (max-width: 1000px) {
      .pie-art { top: auto; bottom: 33px; left: -45px; width: 165px; opacity: .5; }
      .pop-art { top: auto; bottom: 31px; right: -40px; width: 165px; opacity: .5; }
    }
    @media (max-width: 640px) {
      .masthead { padding-top: 25px; }
      .wordmark { font-size: 17px; }
      .brand-mark { width: 29px; height: 32px; }
      .landing { width: calc(100% - 48px); min-height: calc(100svh - 57px); padding: 62px 0 130px; }
      .welcome { font-size: 27px; margin-bottom: 19px; }
      .name { font-size: clamp(65px, 12vw, 82px); }
      .name span { display: block; }
      .ampersand { margin-inline: .015em; }
      .welcome-copy { margin-top: 24px; font-size: 15px; }
      .lookup-panel { margin-top: 31px; width: min(100%, 430px); }
      .lookup-row { flex-direction: column; gap: 0; padding: 5px; }
      .reference-input { flex: 0 0 auto; text-align: center; height: 60px; }
      .find-button { flex: 0 0 auto; min-height: 50px; }
      .pie-art { bottom: 20px; left: -47px; width: 135px; opacity: .42; }
      .pop-art { bottom: 18px; right: -43px; width: 135px; opacity: .42; }
      .bottom-line { height: 35px; }
    }
    @media (max-width: 380px) {
      .landing { width: calc(100% - 36px); padding-top: 43px; }
      .name { font-size: 62px; }
      .welcome-copy { font-size: 14px; }
    }
    @media (max-width: 1000px), (max-height: 800px) {
      .landing:not(.hub-open) { justify-content: flex-start; padding-top: 38px; }
      .landing-details { position: static; transform: none; width: 100%; max-width: 740px; margin-bottom: 54px; gap: 40px; }
      .landing-process { position: static; transform: none; margin: 30px auto 0; }
    }
    @media (max-width: 640px) {
      .landing-details { gap: 24px; margin-bottom: 44px; }
      .landing-detail h2 { font-size: 19px; }
      .landing-detail p, .landing-contact a { font-size: 12px; }
      .landing-process { width: min(100%, 360px); }
    }
    @media (max-width: 480px) {
      .landing-details { flex-direction: column; align-items: center; gap: 25px; text-align: center; }
      .landing-detail { width: 290px; }
      .landing-process { width: min(100%, 360px); }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    }
  

/* Private hub and accessible authentication controls. */
button { min-height:38px; } input, select, textarea { font-size:16px; }
.landing.hub-open { padding-top:65px; justify-content:flex-start; }
.landing.hub-open .lookup-panel { width:min(100%,740px); margin-top:0; }
.landing.hub-open .intro { display:none; }
.landing.hub-open .landing-details { display:none; }
.landing.hub-open .project-tile { opacity:.9; }
.pagination { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px; margin:16px 0; font-size:12px; }
.pagination:empty { display:none; } .pagination button { font-size:12px; }
.auth-panel { width:min(440px,calc(100% - 40px)); margin:80px auto; }
.auth-panel h1 { font-size:46px; letter-spacing:-.04em; margin-bottom:25px; }
.auth-panel h2 { margin-top:0; } .auth-panel p { font-size:14px; }
.auth-panel .field { margin-top:18px; } .auth-panel .primary { width:100%; }
.otp-field { max-width:250px; margin:25px auto 18px; text-align:left; }
.otp-field input { text-align:center; letter-spacing:.25em; font-size:23px; }
.small-copy { font-size:14px; } .setup-secret { overflow-wrap:anywhere; padding:12px; border:1px solid var(--rule); font-size:13px; user-select:all; }
.enrol-qr-frame { display:grid; place-items:center; width:fit-content; max-width:100%; margin:18px auto 15px; padding:11px; border:1px solid var(--rule); border-radius:6px; background:#fff; }
.enrol-qr-frame img { display:block; width:min(228px,calc(100vw - 100px)); height:auto; aspect-ratio:1; image-rendering:pixelated; }
#enrolManual { font-size:12px; margin:0 0 21px; } #enrolManual summary { cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
#enrolManual .setup-secret { margin:11px 0; }
.recovery-list { display:grid; grid-template-columns:1fr 1fr; gap:8px; font-family:Consolas,monospace; padding:15px; border:1px solid var(--rule); }
.admin-tools { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.client-table { display:grid; gap:12px; margin-top:20px; }
.client-row { border:1px solid var(--rule); padding:15px; border-radius:4px; overflow-wrap:anywhere; }
.client-row h3 { margin:0 0 7px; font-size:16px; } .client-row p { margin:5px 0 12px; font-size:13px; }
.checkbox-field { display:flex; gap:10px; align-items:center; font-size:13px; margin-block:15px; }
.checkbox-field input { width:18px; height:18px; } .form-error:empty { margin:0; }
.sample-label { text-transform:uppercase; letter-spacing:.06em; font-size:10px; }
.project-tile img { pointer-events:none; }
.publish-project { color:var(--muted); font-size:14px; margin-top:0; }
.connection-warning { border-left:3px solid var(--wine); background:#682d3e0a; padding:12px 15px; font-size:13px; line-height:1.6; }
.uploaded-preview { display:block; width:100%; height:70svh; min-height:360px; border:0; background:#fff; }
.review-canvas.external-review { min-height:0; background:var(--cream); }
.connected-preview { padding:clamp(28px,5vw,64px); min-height:420px; color:var(--wine); background:var(--cream); }
.connected-preview h2 { font:400 clamp(28px,4vw,44px)/1.2 var(--serif); margin:15px 0; overflow-wrap:anywhere; }
.connected-url { font-size:14px; overflow-wrap:anywhere; }
.external-app { display:inline-flex; align-items:center; min-height:44px; padding:12px 22px; margin:12px 0; text-decoration:none; }
.preview-feedback { display:block; margin:20px auto; }
@media(max-width:640px) { .landing.hub-open{padding-top:35px}.request-row{flex-direction:column}.auth-panel{margin-top:45px}.admin-filter select{width:100%}.sample-header{flex-wrap:wrap}.form-dialog{padding:20px}.review-toolbar button{min-height:38px} }

/* Company, project and individual access workspace. */
.admin-shell { max-width:1540px; padding:32px 42px 70px; }
.admin-header { margin-bottom:18px; }
.admin-header h1 { font-size:clamp(27px,3vw,40px); letter-spacing:-.035em; }
.workspace-layout { display:grid; grid-template-columns:265px minmax(0,1fr); gap:35px; margin-top:18px; align-items:start; }
.client-sidebar { border-right:1px solid #c2a39888; padding:0 22px 25px 0; position:sticky; top:25px; }
.sidebar-heading,.section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.sidebar-heading h2 { font:400 19px var(--serif); margin:0; }
.small-button { font-size:12px; padding:8px 10px; min-height:34px; }
.client-branch { margin:16px 0; }
.tree-company,.tree-project { display:flex; text-align:left; width:100%; background:transparent; border-color:transparent; padding:11px 10px; gap:9px; }
.tree-company strong { display:block; font-size:14px; font-weight:500; overflow-wrap:anywhere; }
.tree-company small,.tree-project small { display:block; margin-top:4px; font-size:11px; color:var(--muted); }
.tree-arrow { flex:0 0 14px; font-size:18px; }
.tree-company.selected,.tree-project.selected { background:#682d3e0c; border-color:#c2a39870; }
.tree-projects { margin:0 0 8px 25px; border-left:1px solid #c2a39877; padding-left:11px; }
.tree-project { display:block; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.tree-more { display:block; background:transparent; border:0; font-size:11px; text-align:left; padding:8px; }
.client-sidebar .pagination { font-size:10px; gap:6px; }
.workspace-content { min-width:0; }
.breadcrumbs { display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-size:12px; color:var(--muted); margin-bottom:22px; }
.breadcrumbs button { padding:0; border:0; background:transparent; min-height:28px; text-align:left; font-size:12px; }
.breadcrumbs span { overflow-wrap:anywhere; }
.workspace-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:25px; margin-bottom:30px; }
.workspace-heading h2 { margin:9px 0 12px; font:400 clamp(28px,3.5vw,45px)/1.1 var(--serif); letter-spacing:-.035em; overflow-wrap:anywhere; }
.workspace-heading .button-row { flex:0 0 auto; padding-top:15px; }
.eyebrow { text-transform:uppercase; letter-spacing:.09em; font-size:10px; margin:0; color:var(--muted); }
.workspace-summary { font-size:12px; color:var(--muted); margin:0; }
.workspace-content h3 { font:400 22px var(--serif); margin:0 0 18px; }
.workspace-tabs { display:flex; gap:24px; border-bottom:1px solid var(--rule); margin-bottom:28px; }
.workspace-tabs button { border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; padding:12px 3px; font-size:13px; }
.workspace-tabs button[aria-selected="true"] { border-bottom-color:var(--wine); color:var(--deep-wine); }
.admin-projects { grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr)); }
.admin-project { padding:22px; }
.project-name-button { font:400 22px var(--serif); text-align:left; border:0; padding:0; background:transparent; margin:0 0 9px; overflow-wrap:anywhere; }
.admin-project h3 { font-size:22px; }
.admin-project .project-member-count { margin-bottom:20px; }
.company-people { margin-top:35px; }
.section-heading { margin-bottom:15px; }
.section-heading h3 { margin:0; }
.people-list { display:grid; gap:9px; }
.person-row { display:flex; justify-content:space-between; align-items:center; gap:18px; border:1px solid #c2a398aa; padding:16px; border-radius:4px; background:#faf4e955; }
.person-details { min-width:0; display:grid; gap:5px; }
.person-details strong { font-size:14px; font-weight:500; overflow-wrap:anywhere; }
.person-details small { font-size:11px; color:var(--muted); overflow-wrap:anywhere; }
.person-row button { font-size:12px; flex:0 0 auto; }
.person-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:8px; }
.person-actions .temporary-password-button { border-color:var(--wine); }
.person-password-note { flex-basis:100%; text-align:right; color:var(--muted); font-size:11px; }
.password-help { color:var(--muted); font-size:12px; line-height:1.6; margin:10px 0 18px; }
.password-tools { margin-top:-5px; }
.password-tools button { font-size:12px; }
#temporaryPasswordForm .form-actions { flex-wrap:wrap; }
#testAppLaunch { display:inline-flex; align-items:center; padding:9px 13px; border:1px solid var(--wine); border-radius:4px; text-decoration:none; font-size:13px; }
.access-row { align-items:center; }
.access-row .access-person { flex:1; min-width:0; border:0; padding:0; background:transparent; }
.access-person { justify-content:flex-start; cursor:pointer; }
.access-person input { flex:0 0 18px; width:18px; height:18px; accent-color:var(--wine); }
.invited-email { text-align:left; margin:17px 0 0; font-size:12px; }
.invited-email input { background:#faf4e966; padding:13px 16px; }
.invited-email small { color:var(--muted); line-height:1.5; }
.signin-heading { margin:0 0 20px; font:400 25px var(--serif); }
.client-signin-form { width:min(100%,400px); margin:22px auto 0; text-align:left; }
.client-signin-form .invited-email { margin-top:0; margin-bottom:17px; }
.client-signin-form input { min-height:46px; padding:12px 14px; background:#faf4e9a6; }
.client-auth-submit { width:100%; min-height:45px; }
.client-auth-options { margin:13px 0 0; }
.client-auth-options button { border:0; background:transparent; padding:7px; text-decoration:underline; text-underline-offset:4px; }
.signin-note { font-size:12px; line-height:1.65; color:var(--muted); max-width:390px; margin:12px auto; }
.client-company-list { display:grid; gap:10px; width:min(100%,400px); margin:24px auto; }
.client-company-choice { text-align:left; padding:15px 18px; font-size:15px; overflow-wrap:anywhere; }
.app-signin-note { text-align:left; margin:0; font-size:11px; }
.landing.hub-open .lookup-panel { width:min(100%,960px); }
.landing.hub-open .project-strip { overflow:visible; padding:0; margin:28px 0 20px; }
.landing.hub-open .project-grid { grid-auto-flow:row; grid-auto-columns:auto; width:100%; grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr)); gap:16px; }
.landing.hub-open .project-tile { display:flex; align-items:center; gap:18px; width:100%; aspect-ratio:auto; min-height:145px; padding:22px; text-align:left; border-color:var(--rule); }
.landing.hub-open .project-tile img { width:64px; height:64px; flex:0 0 64px; border-radius:3px; opacity:.8; }
.tile-details { display:grid; gap:9px; min-width:0; }
.tile-details strong { font:400 22px/1.2 var(--serif); overflow-wrap:anywhere; }
.tile-details small { font-size:11px; color:var(--muted); }
.tile-link { font-size:11px; }
.landing.hub-open .inbox { margin-top:40px; }
@media(max-width:1000px) {
  .admin-shell { padding-inline:25px; }
  .workspace-layout { grid-template-columns:225px minmax(0,1fr); gap:22px; }
  .client-sidebar { padding-right:15px; }
  .workspace-heading { flex-direction:column; gap:12px; }
  .workspace-heading .button-row { padding-top:0; }
}
@media(max-width:700px) {
  .admin-shell { padding:25px 18px 60px; }
  .workspace-layout { grid-template-columns:1fr; gap:24px; }
  .client-sidebar { position:static; border-right:0; border-bottom:1px solid #c2a39888; padding:0 0 18px; }
  #clientTree { max-height:260px; overflow:auto; }
  .client-branch { margin:8px 0; }
  .breadcrumbs { margin-bottom:15px; }
  .person-row { align-items:flex-start; gap:12px; }
  .person-row:not(.access-person) { flex-direction:column; }
  .person-actions { justify-content:flex-start; }
  .person-password-note { text-align:left; }
  .access-row .access-person { width:100%; }
  .access-row .temporary-password-button { margin-left:30px; }
  .workspace-tabs { gap:22px; }
  .landing.hub-open .project-tile { padding:18px; gap:14px; }
}

/* Studio desk: a presentation layer over the existing authenticated controls. */
body[data-role="client"] .studio-entry,body[data-role="admin"] .admin-shell,body[data-role="admin"] .auth-panel { line-height:1.5; }
body[data-role="client"] .studio-entry button,body[data-role="admin"] .admin-shell button,body[data-role="admin"] .auth-panel button { border-radius:5px; line-height:1.45; }
body[data-role] .primary:hover:not(:disabled) { background:var(--deep-wine); color:var(--cream); }
body[data-role] .form-dialog { border-radius:7px; }
body[data-role] .dialog-heading h2 { font-size:30px; line-height:1.15; letter-spacing:-.025em; }
body[data-role] .studio-entry .form-error,body[data-role] .auth-panel .form-error,body[data-role] .form-dialog .form-error,body[data-role] .prototype-note,body[data-role] .password-help { font-size:13px; }

/* The invitation and returning-client forms retain their own IDs and states. */
body[data-role="client"] .masthead { justify-content:flex-start; width:min(1200px,calc(100% - 70px)); margin:auto; padding:27px 0 24px; border-bottom:1px solid var(--rule); }
body[data-role="client"] .brand { gap:11px; }
body[data-role="client"] .brand-mark { width:36px; height:38px; }
body[data-role="client"] .wordmark { font-size:26px; letter-spacing:-.045em; }
body[data-role="client"] .landing:not(.hub-open) { width:min(1200px,calc(100% - 70px)); min-height:calc(100svh - 91px); padding:65px 0 85px; display:grid; grid-template-columns:minmax(0,1.16fr) minmax(330px,.88fr); gap:54px 80px; align-items:start; justify-content:normal; text-align:left; }
body[data-role="client"] .landing:not(.hub-open) .intro { padding-top:30px; align-self:start; }
body[data-role="client"] .landing:not(.hub-open) .welcome { margin-bottom:17px; font-size:32px; }
body[data-role="client"] .landing:not(.hub-open) .name { font-size:clamp(70px,7.5vw,104px); line-height:.98; letter-spacing:-.065em; }
body[data-role="client"] .landing:not(.hub-open) .name span { display:inline; }
body[data-role="client"] .landing:not(.hub-open) .welcome-copy { font-size:17px; margin-top:26px; max-width:390px; }
body[data-role="client"] .studio-entry { width:100%; min-width:0; margin:0; padding:29px; border:1px solid var(--rule); border-radius:7px; background:var(--cream); box-shadow:0 12px 32px #4d1f2d04; }
body[data-role="client"] .studio-entry .signin-heading { font-size:31px; letter-spacing:-.03em; line-height:1.15; margin-bottom:23px; }
body[data-role="client"] .studio-entry .match-heading { font-size:31px; line-height:1.17; overflow-wrap:anywhere; }
body[data-role="client"] .studio-entry .welcome-copy { font-size:14px; margin-top:15px; }
body[data-role="client"] .studio-entry .client-signin-form { width:100%; margin:23px 0 0; }
body[data-role="client"] .studio-entry .field { font-size:14px; }
body[data-role="client"] .studio-entry .client-signin-form input { background:var(--paper); min-height:48px; border-radius:4px; }
body[data-role="client"] .studio-entry .client-auth-submit { min-height:47px; font-size:14px; }
body[data-role="client"] .studio-entry .hub-tools { justify-content:flex-start; margin:16px 0; gap:10px 16px; }
body[data-role="client"] .studio-entry .hub-tools button { font-size:13px; max-width:100%; overflow-wrap:anywhere; }
body[data-role="client"] .studio-entry .client-auth-options button { padding:6px 0; text-align:left; }
body[data-role="client"] .studio-entry .signin-note { font-size:13px; margin:14px 0 0; }
body[data-role="client"] .studio-entry .status { font-size:13px; max-width:none; }
body[data-role="client"] .studio-entry .landing-process { position:static; transform:none; width:100%; margin:25px 0 0; padding-top:22px; border-top:1px solid #c2a39880; }
body[data-role="client"] .studio-entry .landing-process h2 { font-size:21px; }
body[data-role="client"] .studio-entry .landing-process p { font-size:13px; }
body[data-role="client"] .landing-details { position:static; transform:none; grid-column:1/-1; width:100%; max-width:none; margin:0; padding-top:24px; border-top:1px solid var(--rule); gap:60px; justify-content:space-between; align-items:start; }
body[data-role="client"] .landing-details .landing-detail { width:auto; max-width:410px; flex:1; }
body[data-role="client"] .landing-detail h2 { font-size:23px; }
body[data-role="client"] .landing-detail p,body[data-role="client"] .landing-contact a { font-size:14px; }
body[data-role="client"] .pie-art { width:177px; top:445px; bottom:auto; left:max(26px,calc((100% - 1200px)/2 + 8px)); transform:rotate(-13deg); opacity:.62; }
body[data-role="client"] .pop-art { width:151px; top:419px; bottom:auto; right:auto; left:max(203px,calc((100% - 1200px)/2 + 188px)); transform:rotate(10deg); opacity:.62; }

/* Private client desk: shared projects and the existing conversation side by side. */
body[data-role="client"] .landing.hub-open { width:min(1200px,calc(100% - 70px)); display:block; min-height:calc(100svh - 91px); padding:44px 0 80px; text-align:left; }
body[data-role="client"] .landing.hub-open .studio-entry { width:100%; padding:0; margin:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
body[data-role="client"] .studio-hub-heading { max-width:780px; margin-bottom:34px; }
body[data-role="client"] .studio-hub-heading .match-heading { font:400 13px/1.6 var(--sans); color:var(--muted); letter-spacing:.025em; margin:0 0 15px; overflow-wrap:anywhere; }
body[data-role="client"] .studio-title { font:400 clamp(39px,4.4vw,58px)/1.06 var(--serif); letter-spacing:-.05em; max-width:680px; margin:0; color:var(--wine); }
body[data-role="client"] .studio-desk { display:grid; grid-template-columns:minmax(0,1.75fr) minmax(270px,1fr); gap:38px; align-items:start; }
body[data-role="client"] .studio-projects { min-width:0; }
body[data-role="client"] .landing.hub-open .project-strip { margin:0 0 18px; padding:0; overflow:visible; }
body[data-role="client"] .landing.hub-open .project-grid { display:grid; grid-auto-flow:row; grid-template-columns:minmax(0,1fr); width:100%; gap:22px; }
body[data-role="client"] .project-tile-group { padding:20px 0 0; gap:12px; border-top:1px solid var(--rule); align-items:flex-start; }
body[data-role="client"] .project-tile-group:first-child { padding:24px; border:1px solid var(--rule); border-radius:7px; background:var(--cream); }
body[data-role="client"] .landing.hub-open .project-tile { width:100%; min-height:82px; padding:0; gap:20px; border:0; border-radius:0; background:transparent; opacity:1; box-shadow:none; }
body[data-role="client"] .landing.hub-open .project-tile:hover,body[data-role="client"] .landing.hub-open .project-tile:focus-visible { transform:none; }
body[data-role="client"] .landing.hub-open .project-tile:hover .tile-link { text-decoration:underline; text-underline-offset:4px; }
body[data-role="client"] .landing.hub-open .project-tile img { width:64px; height:70px; flex:0 0 64px; border-radius:5px; opacity:.85; }
body[data-role="client"] .project-tile-group:first-child .project-tile { min-height:120px; }
body[data-role="client"] .project-tile-group:first-child .project-tile img { width:90px; height:102px; flex-basis:90px; }
body[data-role="client"] .tile-details { gap:8px; }
body[data-role="client"] .tile-details strong { font-size:25px; letter-spacing:-.025em; line-height:1.15; }
body[data-role="client"] .project-tile-group:first-child .tile-details strong { font-size:32px; }
body[data-role="client"] .tile-details small { font-size:13px; line-height:1.5; }
body[data-role="client"] .tile-link { font-size:13px; line-height:1.5; }
body[data-role="client"] .project-live-link { display:inline-flex; align-items:center; justify-content:center; max-width:100%; min-height:44px; align-self:flex-start; padding:10px 16px; margin:0; border:1px solid var(--wine); border-radius:5px; background:var(--wine); color:var(--cream); text-decoration:none; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
body[data-role="client"] .project-live-link:hover:not(:disabled) { background:var(--deep-wine); color:var(--cream); }
body[data-role="client"] .project-tile-group>button:not(.project-tile):not(.project-live-link) { min-height:40px; padding:7px 0; border:0; border-bottom:1px solid var(--rule); border-radius:0; background:transparent; font-size:13px; text-align:left; }
body[data-role="client"] .project-tile-group .app-signin-note { font-size:13px; margin:0; line-height:1.6; }
body[data-role="client"] .project-feedback:not(:empty) { margin:0; max-width:none; font-size:13px; }
body[data-role="client"] .studio-projects>.hub-tools { padding-top:18px; border-top:1px solid var(--rule); margin:23px 0 0; justify-content:flex-start; }
body[data-role="client"] #newRequest { background:var(--wine); border-color:var(--wine); color:var(--cream); padding:10px 17px; min-height:44px; font-size:14px; }
body[data-role="client"] #logoutButton { background:transparent; border:0; text-decoration:underline; text-underline-offset:5px; }
body[data-role="client"] .studio-desk>.inbox { margin:0; min-width:0; }
body[data-role="client"] .studio-desk>.inbox h2 { font:400 27px/1.2 var(--serif); margin:0; padding:0 0 17px; border-bottom:1px solid var(--rule); letter-spacing:-.025em; }
body[data-role="client"] .studio-desk .request-row { margin:0; padding:21px 0; border:0; border-bottom:1px solid var(--rule); border-radius:0; background:transparent; gap:14px; align-items:flex-start; }
body[data-role="client"] .studio-desk .request-row:hover { background:#faf4e94d; }
body[data-role="client"] .studio-desk .request-row>span:first-child { min-width:0; overflow-wrap:anywhere; }
body[data-role="client"] .studio-desk .request-row strong { font-size:15px; line-height:1.5; font-weight:500; }
body[data-role="client"] .studio-desk .request-row small { font-size:13px; line-height:1.6; }
body[data-role="client"] .studio-desk .status-pill { border:1px solid var(--rule); background:transparent; padding:4px 9px; font-size:11px; }
body[data-role="client"] .studio-desk .empty { margin-top:18px; font-size:14px; }
body[data-role="client"] .landing.hub-open .connection { margin-top:29px; padding:18px 0 0; border-top:1px solid var(--rule); font-size:12px; }
body[data-role="client"]:has(.hub-open) .ornament { top:auto; bottom:0; opacity:.12; }
body[data-role="client"]:has(.hub-open) .pie-art { left:-25px; }
body[data-role="client"]:has(.hub-open) .pop-art { left:auto; right:-17px; }

/* Administrator desk: quiet navigation, distinct primary app action, all tools retained. */
body[data-role="admin"] .auth-panel { background:var(--cream); border:1px solid var(--rule); border-radius:7px; padding:29px; width:min(460px,calc(100% - 36px)); margin:70px auto; }
body[data-role="admin"] .auth-panel h1 { font-size:44px; line-height:1.08; }
body[data-role="admin"] .auth-panel .brand-name { font-size:23px; margin-bottom:24px; }
body[data-role="admin"] .admin-shell { max-width:1400px; padding:30px 35px 75px; }
body[data-role="admin"] .admin-header { align-items:center; gap:24px; margin-bottom:0; padding-bottom:25px; border-bottom:1px solid var(--rule); }
body[data-role="admin"] .admin-header .brand-name { font-size:24px; margin-bottom:8px; }
body[data-role="admin"] .admin-header h1 { font:400 clamp(27px,3vw,38px)/1.1 var(--serif); letter-spacing:-.035em; }
body[data-role="admin"] .admin-tools { gap:8px 18px; }
body[data-role="admin"] .admin-tools button { background:transparent; border:0; border-bottom:1px solid transparent; border-radius:0; padding:7px 0; font-size:13px; }
body[data-role="admin"] .admin-tools button:hover { border-bottom-color:var(--wine); }
body[data-role="admin"] .admin-shell>.connection { padding:15px 0 6px; margin:0; font-size:12px; }
body[data-role="admin"] .workspace-layout { grid-template-columns:225px minmax(0,1fr); gap:38px; margin-top:22px; }
body[data-role="admin"] .client-sidebar { top:25px; padding-right:22px; border-right-color:var(--rule); }
body[data-role="admin"] .sidebar-heading { align-items:flex-start; gap:10px; }
body[data-role="admin"] .sidebar-heading h2 { font-size:21px; }
body[data-role="admin"] .tree-company strong { font-weight:550; }
body[data-role="admin"] .tree-project { font-size:13px; }
body[data-role="admin"] .tree-company small,body[data-role="admin"] .tree-project small { font-size:12px; }
body[data-role="admin"] .breadcrumbs { font-size:13px; margin-bottom:20px; }
body[data-role="admin"] .breadcrumbs button { font-size:13px; }
body[data-role="admin"] .workspace-heading { gap:24px; margin-bottom:27px; }
body[data-role="admin"] .workspace-heading h2 { font-size:clamp(32px,3.6vw,47px); line-height:1.12; margin:9px 0 12px; }
body[data-role="admin"] .eyebrow { font-size:11px; letter-spacing:.07em; overflow-wrap:anywhere; }
body[data-role="admin"] .workspace-summary { font-size:14px; }
body[data-role="admin"] .workspace-tabs { gap:26px; margin-bottom:25px; }
body[data-role="admin"] .workspace-tabs button { font-size:14px; border-radius:0; }
body[data-role="admin"] .workspace-content h3 { font-size:25px; line-height:1.2; }
body[data-role="admin"] .admin-projects { grid-template-columns:repeat(auto-fit,minmax(min(330px,100%),1fr)); gap:20px; }
body[data-role="admin"] .admin-project { padding:25px; background:var(--cream); border-radius:7px; }
body[data-role="admin"] .project-name-button { font-size:29px; min-height:40px; line-height:1.2; letter-spacing:-.025em; }
body[data-role="admin"] .admin-project h3 { font-size:29px; }
body[data-role="admin"] .admin-project p { font-size:13px; line-height:1.65; }
body[data-role="admin"] .admin-project .project-member-count { margin-bottom:22px; }
body[data-role="admin"] .project-app-connection { padding:17px 0 19px; margin:18px 0; }
body[data-role="admin"] .button-row { gap:9px 14px; align-items:center; }
body[data-role="admin"] .button-row button,body[data-role="admin"] .button-row .project-app-link { font-size:13px; }
body[data-role="admin"] .button-row .project-app-link { color:var(--wine); }
body[data-role="admin"] .project-app-connection .primary.project-app-link { display:inline-flex; min-height:43px; padding:10px 17px; border-radius:5px; color:var(--cream); }
body[data-role="admin"] .admin-project>.button-row button { background:transparent; border:0; border-bottom:1px solid var(--rule); border-radius:0; padding:7px 0; min-height:39px; text-align:left; }
body[data-role="admin"] .person-row { border-color:#c2a398aa; background:#faf4e980; border-radius:6px; }
body[data-role="admin"] .person-details small { font-size:13px; line-height:1.5; }
body[data-role="admin"] .person-row button { font-size:13px; }
body[data-role="admin"] .request-row { background:#faf4e980; border-color:#c2a398aa; padding:17px; }
body[data-role="admin"] .request-row small { font-size:12px; }
body[data-role="admin"] .inbox { margin-top:32px; }

@media(max-width:1100px) {
  body[data-role="client"] .landing:not(.hub-open) { gap:46px; grid-template-columns:minmax(0,1fr) minmax(310px,.95fr); }
  body[data-role="client"] .landing:not(.hub-open) .name { font-size:clamp(64px,8.5vw,85px); }
  body[data-role="client"] .studio-desk { grid-template-columns:minmax(0,1.4fr) minmax(255px,1fr); gap:27px; }
  body[data-role="admin"] .workspace-layout { grid-template-columns:205px minmax(0,1fr); gap:27px; }
  body[data-role="admin"] .workspace-heading { flex-direction:column; gap:15px; }
  body[data-role="admin"] .workspace-heading .button-row { padding-top:0; }
}
@media(max-width:800px) {
  body[data-role="client"] .masthead { width:calc(100% - 48px); padding:23px 0 21px; }
  body[data-role="client"] .landing:not(.hub-open) { width:calc(100% - 48px); display:flex; flex-direction:column; align-items:stretch; gap:34px; padding:32px 0 150px; }
  body[data-role="client"] .landing:not(.hub-open) .studio-entry { order:1; width:min(100%,520px); align-self:center; }
  body[data-role="client"] .landing:not(.hub-open) .intro { order:2; padding:0; text-align:left; }
  body[data-role="client"] .landing:not(.hub-open) .landing-details { order:3; gap:28px; }
  body[data-role="client"] .landing:not(.hub-open) .name { font-size:66px; }
  body[data-role="client"] .landing:not(.hub-open) .welcome { font-size:25px; margin-bottom:14px; }
  body[data-role="client"] .landing:not(.hub-open) .welcome-copy { font-size:16px; margin-top:21px; }
  body[data-role="client"] .pie-art { top:auto; bottom:0; left:15px; width:145px; opacity:.5; }
  body[data-role="client"] .pop-art { top:auto; bottom:-5px; left:159px; width:120px; opacity:.5; }
  body[data-role="client"] .landing.hub-open { width:calc(100% - 48px); padding-top:34px; }
  body[data-role="client"] .studio-desk { grid-template-columns:minmax(0,1fr); gap:36px; }
  body[data-role="client"] .studio-hub-heading { margin-bottom:29px; }
  body[data-role="client"] .studio-desk>.inbox { margin-top:0; }
  body[data-role="client"] .studio-desk .request-row { flex-direction:row; }
  body[data-role="admin"] .admin-shell { padding:25px 24px 65px; }
  body[data-role="admin"] .workspace-layout { grid-template-columns:minmax(0,1fr); gap:26px; }
  body[data-role="admin"] .client-sidebar { position:static; border-right:0; border-bottom:1px solid var(--rule); padding:0 0 19px; }
  body[data-role="admin"] #clientTree { max-height:250px; overflow:auto; }
}
@media(max-width:480px) {
  body[data-role="client"] .masthead { width:calc(100% - 36px); padding:20px 0; }
  body[data-role="client"] .brand-mark { width:31px; height:33px; }
  body[data-role="client"] .wordmark { font-size:24px; }
  body[data-role="client"] .landing:not(.hub-open),body[data-role="client"] .landing.hub-open { width:calc(100% - 36px); }
  body[data-role="client"] .landing:not(.hub-open) { padding-top:25px; gap:31px; }
  body[data-role="client"] .studio-entry { padding:22px; }
  body[data-role="client"] .studio-entry .signin-heading,body[data-role="client"] .studio-entry .match-heading { font-size:29px; }
  body[data-role="client"] .studio-hub-heading .match-heading { font-size:13px; }
  body[data-role="client"] .studio-entry .otp-field { max-width:100%; }
  body[data-role="client"] .landing:not(.hub-open) .name { font-size:58px; }
  body[data-role="client"] .landing:not(.hub-open) .name span { display:inline; }
  body[data-role="client"] .landing-details { flex-direction:column; text-align:left; align-items:stretch; gap:25px; }
  body[data-role="client"] .landing-details .landing-detail { width:auto; max-width:none; }
  body[data-role="client"] .landing.hub-open { padding-top:28px; }
  body[data-role="client"] .studio-title { font-size:40px; line-height:1.08; }
  body[data-role="client"] .project-tile-group:first-child { padding:20px; }
  body[data-role="client"] .landing.hub-open .project-tile { gap:15px; }
  body[data-role="client"] .project-tile-group:first-child .project-tile { min-height:95px; }
  body[data-role="client"] .project-tile-group:first-child .project-tile img { width:54px; height:68px; flex-basis:54px; }
  body[data-role="client"] .project-tile-group:first-child .tile-details strong { font-size:28px; }
  body[data-role="client"] .landing.hub-open .project-tile img { width:48px; height:58px; flex-basis:48px; }
  body[data-role="client"] .tile-details strong { font-size:24px; }
  body[data-role="client"] .studio-desk .request-row { flex-direction:column; gap:12px; }
  body[data-role="client"] .studio-entry .hub-tools button { font-size:13px; }
  body[data-role="admin"] .auth-panel { margin:30px auto; padding:22px; }
  body[data-role="admin"] .admin-shell { padding:23px 18px 60px; }
  body[data-role="admin"] .admin-header { flex-direction:column; align-items:flex-start; gap:17px; padding-bottom:21px; }
  body[data-role="admin"] .admin-header h1 { font-size:29px; }
  body[data-role="admin"] .workspace-heading h2 { font-size:35px; }
  body[data-role="admin"] .workspace-summary { font-size:13px; }
  body[data-role="admin"] .workspace-tabs { gap:20px; }
  body[data-role="admin"] .workspace-tabs button { font-size:13px; }
  body[data-role="admin"] .admin-project { padding:20px; }
  body[data-role="admin"] .button-row { gap:9px 13px; }
  body[data-role="admin"] .admin-project .button-row>* { max-width:100%; overflow-wrap:anywhere; }
  body[data-role="admin"] .person-row { padding:15px; }
  body[data-role="admin"] .person-actions { justify-content:flex-start; }
  body[data-role="admin"] .person-password-note { text-align:left; }
}

/* Welcome artwork stays with its heading, rather than the page edges. */
body[data-role="client"] .landing:not(.hub-open) { align-items:center; }
body[data-role="client"] .landing:not(.hub-open) .intro { padding-top:0; align-self:center; text-align:center; min-width:0; }
body[data-role="client"] .landing:not(.hub-open) .intro .welcome-copy { margin-inline:auto; }
body[data-role="client"] .welcome-art { display:flex; align-items:flex-end; justify-content:center; gap:clamp(10px,2vw,22px); width:min(100%,370px); margin:22px auto 0; pointer-events:none; }
body[data-role="client"] .welcome-art .ornament { position:static; inset:auto; flex:0 1 auto; max-width:100%; height:auto; opacity:.72; overflow:visible; }
body[data-role="client"] .welcome-art .pie-art { width:58%; transform:translateY(10px) rotate(-9deg); }
body[data-role="client"] .welcome-art .pop-art { width:35%; transform:rotate(8deg); }
body[data-role="client"] .welcome-art .can-bubble { transform-box:fill-box; transform-origin:center; opacity:0; animation:pop-bubble-rise 7.4s linear infinite; }
body[data-role="client"] .welcome-art .bubble-one { --bubble-drift:-12px; --bubble-mid:-5px; animation-delay:-.6s; }
body[data-role="client"] .welcome-art .bubble-two { --bubble-drift:9px; --bubble-mid:3px; animation-delay:-2.4s; }
body[data-role="client"] .welcome-art .bubble-three { --bubble-drift:-6px; --bubble-mid:-2px; animation-delay:-4.2s; }
body[data-role="client"] .welcome-art .bubble-four { --bubble-drift:15px; --bubble-mid:6px; animation-delay:-6s; }
body[data-role="client"] .welcome-art .pie-steam { transform-box:fill-box; transform-origin:center bottom; animation:pie-steam-wave 6s ease-in-out infinite; }
body[data-role="client"] .welcome-art .steam-two { animation-delay:-2s; }
body[data-role="client"] .welcome-art .steam-three { animation-delay:-4s; }
@keyframes pop-bubble-rise {
  0% { opacity:0; transform:translate(0,7px) scale(.45); }
  14% { opacity:.8; }
  70% { opacity:.72; transform:translate(var(--bubble-mid),-42px) scale(1); }
  87% { opacity:.65; }
  97%,100% { opacity:0; transform:translate(var(--bubble-drift),-65px) scale(1.5); }
}
@keyframes pie-steam-wave {
  0%,100% { opacity:.5; transform:translateX(-2px) skewX(-5deg); }
  50% { opacity:.85; transform:translate(2px,-3px) skewX(5deg); }
}
@media(max-width:800px) {
  body[data-role="client"] .landing:not(.hub-open) { padding-bottom:65px; }
  body[data-role="client"] .welcome-art { width:min(100%,330px); margin-top:16px; }
}
@media(prefers-reduced-motion:reduce) {
  body[data-role="client"] .welcome-art .can-bubble { animation:none !important; transform:none; opacity:0; }
  body[data-role="client"] .welcome-art .bubble-one { opacity:.65; }
  body[data-role="client"] .welcome-art .pie-steam { animation:none !important; transform:none; opacity:.7; }
}
