/* Stavix client portal — warm paper, sage and quiet sandstone. */
:root{--portal-blue:#335e4f;--portal-navy:#20372c;--portal-bg:#f1f3ee;--portal-line:#c5d1c3;--portal-text:#23382d;--portal-muted:#4b5c50;--portal-green:#3b664c;--portal-radius:18px}
body.portal-studio,body.portal-studio-auth{font-family:Inter,"Segoe UI",system-ui,sans-serif;background:#f1f3ee;color:var(--portal-text);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
.portal-studio *, .portal-studio-auth *{box-sizing:border-box}
.portal-studio [hidden],.portal-studio-auth [hidden]{display:none!important}
.portal-studio a,.portal-studio button,.portal-studio-auth a,.portal-studio-auth button{transition:background .16s ease,box-shadow .16s ease,transform .16s ease,border-color .16s ease}
.portal-studio :is(a,button,input,select,textarea,summary):focus-visible,.portal-studio-auth :is(a,button,input,select,textarea):focus-visible{outline:3px solid #a7c4b2;outline-offset:3px}
.portal-studio svg{width:20px;height:20px;flex:none}
.portal-studio-sidebar{position:fixed;z-index:45;inset:0 auto 0 0;width:224px;padding:34px 20px 22px;display:flex;flex-direction:column;background:#fff;border-right:1px solid var(--portal-line);overflow:auto}
.portal-studio .portal-brand{align-items:flex-start;gap:10px;padding:0 8px 32px}
.portal-studio .portal-brand-copy strong{font-size:14px;font-weight:650;line-height:1.4;white-space:normal}
.portal-studio .portal-brand-copy small{display:block;color:var(--portal-muted);font-size:12px;margin-top:5px;white-space:normal}
.portal-studio .portal-brand-mark,.portal-studio .portal-brand-logo{width:36px;height:36px;border-radius:11px;background:#f1f5f3;box-shadow:none;border:0}
.portal-studio .portal-brand-mark img{width:100%;height:100%;object-fit:contain}
.portal-studio .portal-main-nav{display:flex;flex-direction:column;gap:7px;margin:0;align-items:stretch;overflow:visible}
.portal-studio .portal-main-nav a{display:flex;gap:12px;align-items:center;padding:12px 14px;min-height:46px;border-radius:11px;color:#4f5d56;font-size:14px;font-weight:500;white-space:normal}
.portal-studio .portal-main-nav a svg{width:19px;height:19px;opacity:.88}
.portal-studio .portal-main-nav a:hover{background:#f4f7f2;color:#2e4e42}
.portal-studio .portal-main-nav a.active{background:#eaf1e9;color:#315344}
.portal-studio .portal-main-nav a b{margin-left:auto;min-width:22px;border-radius:7px;background:#f7ecd5;color:#6c5531;text-align:center;font-size:12px;font-weight:600;padding:2px 5px}
.portal-studio .portal-main-nav .portal-studio-pending-link{margin-top:13px;border-top:1px solid #cfd7cd;border-radius:0 0 10px 10px;padding-top:20px}
.portal-studio-sidebar-note{margin:auto 8px 24px;padding:30px 0 0;color:#505d54;font-size:12px;line-height:1.7}
.portal-studio-sidebar-note>span{display:block;color:#475f4e;margin-bottom:8px}
.portal-studio-sidebar-note strong{font-weight:500;color:#485f53}
.portal-studio-sidebar-note p{margin:5px 0 0}
.portal-studio-powered{padding:16px 8px 0;border-top:1px solid #cfd7cd;display:grid;gap:8px;color:#505d55;font-size:12px}
.portal-studio-powered img{display:block;width:97px;max-height:34px;object-fit:contain;object-position:left center;opacity:.8}
.portal-studio-close,.portal-studio-menu{display:none}
.portal-studio .portal-topbar{height:88px;margin-left:224px;background:rgba(255,255,255,.88);border-color:#cad3c9;box-shadow:none;backdrop-filter:blur(16px)}
.portal-studio .portal-topbar-inner{max-width:none;padding:0 clamp(22px,3.5vw,58px);gap:18px}
.portal-studio-location{display:flex;align-items:center;gap:14px;min-width:0}
.portal-studio-location>div{display:grid;gap:4px;min-width:0}
.portal-studio-location small{font-size:12px;color:#4f5c53}
.portal-studio-location strong{font-size:14px;font-weight:550;color:#3a4f45;max-width:42vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.portal-studio .portal-user-menu{gap:16px;flex-shrink:0}
.portal-studio .portal-bell{background:transparent;border:0;color:#4d5d54;box-shadow:none}
.portal-studio .portal-bell b{background:#b78b62}
.portal-studio .portal-avatar{width:36px;height:36px;border-radius:50%;background:#e8eee4;color:#4b5e49;font-weight:550;font-size:13px}
.portal-studio-profile{position:relative}
.portal-studio-profile summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none}
.portal-studio-profile summary::-webkit-details-marker{display:none}
.portal-studio-profile summary>.portal-user-name{font-weight:500;color:#4a5a50;font-size:13px;max-width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.portal-studio-profile summary>svg{width:14px;height:14px;color:#4f5d53}
.portal-studio-profile-panel{position:absolute;right:0;top:calc(100% + 14px);min-width:210px;padding:15px;background:#fff;border:1px solid var(--portal-line);border-radius:14px;box-shadow:0 15px 45px #243a2917;z-index:60;display:grid;gap:11px}
.portal-studio-profile-panel>strong{font-size:13px;font-weight:600;color:#334e3e;padding-bottom:9px;border-bottom:1px solid #cfd7cd}
.portal-studio-profile-panel a,.portal-studio-profile-panel button{font-size:13px;font-weight:500;color:#4f5e50;padding:4px 0}
.portal-studio .portal-language{height:36px;min-height:36px;background:#f7f9f5;border:1px solid #cad3c7;box-shadow:none;border-radius:9px;gap:5px;position:relative}
.portal-studio .portal-language select{font-size:12px;height:34px;min-height:34px;padding:4px 21px 4px 27px;background:transparent;border:0;max-width:80px;color:#4e5d52;cursor:pointer}
.portal-studio .portal-language>span{position:absolute;left:9px;top:8px;font-size:13px;pointer-events:none;color:#4c5e4c}
.portal-studio .portal-main{margin:0 0 0 224px;max-width:none;padding:34px clamp(22px,3.5vw,58px) 42px;min-width:0}
.portal-studio h1,.portal-studio h2,.portal-studio h3{color:#243c31;letter-spacing:-.035em}
.portal-studio h1{font-size:32px;font-weight:550;line-height:1.2}
.portal-studio h2{font-size:19px;font-weight:550;line-height:1.3}
.portal-studio h3{font-weight:550}
.portal-studio .portal-button,.portal-studio-auth .portal-button{border-radius:10px;padding:10px 16px;min-height:40px;font-size:13px;font-weight:550;display:inline-flex;align-items:center;justify-content:center;gap:10px;line-height:1.4;box-shadow:none;white-space:normal}
.portal-studio .portal-button.primary,.portal-studio-auth .portal-button.primary{background:var(--portal-accent);border:1px solid var(--portal-accent);color:#fff}
.portal-studio .portal-button.primary:hover,.portal-studio-auth .portal-button.primary:hover{filter:brightness(.96);box-shadow:0 5px 15px #49634d18;transform:translateY(-1px)}
.portal-studio .portal-button.secondary{border:1px solid #c2cfc1;background:#f9fbf7;color:#415a49}
.portal-studio .portal-button svg{width:15px;height:15px}
.portal-studio .portal-text-action{color:#435f4e;font-weight:500}
.portal-studio .portal-status{border-radius:6px;padding:4px 9px;font-size:12px;font-weight:550;background:#eef2ea;color:#4e5e4c;border:0;letter-spacing:0}
.portal-studio .portal-status.active,.portal-studio .portal-status.approved,.portal-studio .portal-status.paid,.portal-studio .portal-status.accepted{background:#eaf2e7;color:#466040}
.portal-studio .portal-status.rejected,.portal-studio .portal-status.cancelled{background:#faece6;color:#705344}
.portal-studio .portal-count{display:inline-flex;align-items:center;justify-content:center;margin-left:9px;padding:3px 8px;min-width:24px;min-height:23px;border-radius:7px;background:#e9eee5;color:#4e5e49;font-size:12px;font-weight:500;letter-spacing:0}
.portal-studio-eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#4b5e4e;font-weight:600}
.portal-studio-welcome{position:relative;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:26px 34px;min-height:220px;border:1px solid #cad3c4;border-radius:21px;background:linear-gradient(105deg,#f0f3e9,#f4f6ed 63%,#e7eee4);overflow:hidden}
.portal-studio-welcome>div:first-child{position:relative;z-index:1;max-width:600px}
.portal-studio-welcome h1{margin:9px 0 12px}
.portal-studio-heading-dot{color:#69563f}
.portal-studio-welcome p{margin:0 0 23px;color:#505e4f;font-size:14px;font-weight:400;line-height:1.7;max-width:430px}
.portal-studio-welcome-art{width:260px;height:200px;position:relative;flex-shrink:0;align-self:stretch;margin:-14px -9px -14px 0}
.portal-studio-welcome-art>img{width:100%;height:100%;object-fit:cover;border-radius:18px;opacity:.94;transform:rotate(3deg)}
.portal-studio-welcome-art>span{position:absolute;left:-16px;bottom:8px;display:grid;place-items:center;width:48px;height:48px;background:#fff;border:1px solid #cfd7cc;border-radius:14px;box-shadow:0 7px 25px #50634810;color:#456046;transform:rotate(-5deg)}
.portal-studio-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:26px 0 32px;background:#fff;border:1px solid #cad4c9;border-radius:15px;overflow:hidden}
.portal-studio-summary article{display:flex;align-items:center;gap:13px;padding:20px 22px;position:relative}
.portal-studio-summary article+article:before{content:"";position:absolute;left:0;top:22%;bottom:22%;width:1px;background:#ecf0e9}
.portal-studio-stat-icon{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:12px;background:#f1f5ed;color:#4b5e49}
.portal-studio-summary article:nth-child(2) .portal-studio-stat-icon{background:#edf1f2;color:#485e5e}
.portal-studio-summary article.has-attention .portal-studio-stat-icon{background:#faf2e3;color:#635734}
.portal-studio-summary article:nth-child(4) .portal-studio-stat-icon{background:#f6ede7;color:#645848}
.portal-studio-summary strong{display:block;font-size:25px;font-weight:550;line-height:1.25;letter-spacing:-.04em;color:#384e3e}
.portal-studio-summary small{font-size:12px;color:#505c4d;display:block;margin-top:4px}
.portal-studio-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:28px;align-items:start}
.portal-studio-section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}
.portal-studio-section-heading h2{margin:5px 0 0;display:flex;align-items:center}
.portal-studio-section-heading p{margin:6px 0 0;color:#505c4d;font-size:12px}
.portal-studio-project-tools{display:flex;gap:10px;justify-content:space-between;align-items:center;margin:18px 0 15px}
.portal-studio-search{position:relative;display:flex;align-items:center;flex:1;min-width:0;margin:0}
.portal-studio-search>svg{position:absolute;left:12px;width:16px;height:16px;color:#4c5e4b;pointer-events:none}
.portal-studio-search input{width:100%;min-width:0;height:38px;border:1px solid #c5d0c1;border-radius:10px;padding:8px 10px 8px 36px;background:#fff;font-size:12px;color:#4c5d49}
.portal-studio-search input::placeholder{color:#505e4b}
.portal-studio-filter{display:flex;gap:2px;padding:3px;background:#eaf0e5;border-radius:9px;flex-shrink:0}
.portal-studio-filter button{border:0;background:transparent;border-radius:7px;padding:7px 12px;font-size:12px;font-weight:500;color:#4e5e4b;cursor:pointer}
.portal-studio-filter button.active{background:#fff;color:#4a5e44;box-shadow:0 2px 4px #39513206}
.portal-studio-project-list{display:grid;gap:16px}
.portal-studio-project-card{display:grid;grid-template-columns:minmax(145px,.85fr) minmax(0,1.4fr);border:1px solid #c7d2c5;background:#fff;border-radius:17px;overflow:hidden;box-shadow:0 5px 20px #34502e03;min-width:0}
.portal-studio-project-card:hover{border-color:#b4c7b1;box-shadow:0 10px 25px #48694009;transform:translateY(-3px)}
.portal-studio-project-cover{position:relative;min-height:218px;overflow:hidden;background:#edf2e8}
.portal-studio-project-cover>img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;transition:transform .4s ease}
.portal-studio-project-card:hover .portal-studio-project-cover>img{transform:scale(1.035)}
.portal-studio-project-cover .portal-status{position:absolute;top:15px;left:15px;background:#fffffff0;color:#4c5e49;box-shadow:0 4px 9px #35522a0b}
.portal-studio-project-copy{padding:23px 22px 18px;min-width:0}
.portal-studio .portal-project-number{font-size:11px;letter-spacing:.08em;color:#505d49;font-weight:500}
.portal-studio-project-copy h3{font-size:19px;line-height:1.3;margin:7px 0 9px}
.portal-studio-address{display:flex;align-items:center;gap:5px;color:#515c4d;font-size:12px;line-height:1.5;margin:0 0 22px}
.portal-studio-address svg{width:13px;height:13px}
.portal-studio-progress-label{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px;font-size:12px;color:#505c4c}
.portal-studio-progress-label strong{font-size:12px;color:#4e5f48;font-weight:600}
.portal-studio .portal-progress{height:5px;border-radius:6px;background:#edf1e8;overflow:hidden}
.portal-studio .portal-progress span{display:block;max-width:100%;height:100%;background:#9db791;border-radius:6px;transform-origin:left;animation:portalStudioProgress .8s ease-out both}
.portal-studio-project-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:24px;padding-top:13px;border-top:1px solid #d1d9ce}
.portal-studio-project-bottom>span{display:flex;gap:5px;align-items:center;color:#505c4a;font-size:12px}
.portal-studio-project-bottom strong{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:550;color:#486044}
.portal-studio-project-bottom svg{width:13px;height:13px}
.portal-studio-dashboard-aside{display:grid;gap:24px;padding-top:4px}
.portal-studio-decisions{border:1px solid #cbd0c2;background:#fffcf5;border-radius:17px;overflow:hidden}
.portal-studio-decisions>header{display:flex;gap:12px;align-items:center;padding:20px 20px 16px}
.portal-studio-decisions>header .portal-studio-stat-icon{background:#f5eddb;color:#625835;width:36px;height:36px}
.portal-studio-decisions h2{margin:0;font-size:16px}
.portal-studio-decisions header p{margin:4px 0 0;font-size:12px;color:#5c5b48}
.portal-studio-decisions header .portal-count{margin-left:auto;background:#f2e6ca;color:#665834}
.portal-studio .portal-studio-decisions .portal-approval-queue{display:block;padding:0 20px 7px}
.portal-studio .portal-studio-decisions .portal-approval-queue-item{display:block;border:0;border-top:1px solid #d0d2c3;border-radius:0;background:transparent;padding:15px 0;box-shadow:none}
.portal-studio-decisions .portal-approval-queue-copy small{font-size:11px;display:block;color:#5c5b45;margin-bottom:5px}
.portal-studio-decisions .portal-approval-queue-copy strong{font-size:13px;color:#5b5b45;font-weight:550;display:block}
.portal-studio-decisions .portal-approval-queue-copy p{font-size:12px;color:#5b5946;line-height:1.5;margin:5px 0 11px}
.portal-studio-decisions .portal-button.secondary{min-height:33px;font-size:12px;padding:7px 11px;border-color:#cac8b0;color:#61593c;background:#fffdfa;justify-content:space-between;width:100%}
.portal-studio-all-clear{text-align:center;padding:13px 24px 25px;color:#4b5e47;font-size:13px}
.portal-studio-all-clear>span{display:grid;place-items:center;width:38px;height:38px;margin:0 auto 11px;border-radius:50%;background:#edf4e6;color:#4b6042}
.portal-studio-all-clear strong{display:block;font-weight:550;color:#4d5f46}
.portal-studio-all-clear p{font-size:12px;margin:7px 0 0;color:#505d49;line-height:1.7}
.portal-studio-activity{padding:21px 21px 7px;background:#fff;border:1px solid #c9d3c4;border-radius:17px}
.portal-studio-activity h2{font-size:16px}
.portal-studio-feed a{display:flex;gap:13px;position:relative;padding:13px 0;align-items:flex-start;min-width:0}
.portal-studio-feed a:not(:last-child):after{content:"";position:absolute;left:4px;top:29px;bottom:-14px;width:1px;background:#e7ede0}
.portal-studio-feed-dot{margin-top:8px;position:relative;z-index:1;width:9px;height:9px;border-radius:50%;background:#b1c4a1;flex-shrink:0;box-shadow:0 0 0 3px #f4f7ef}
.portal-studio-feed a:nth-child(2n) .portal-studio-feed-dot{background:#c6b493;box-shadow:0 0 0 3px #faf6ee}
.portal-studio-feed a>div{display:grid;gap:3px;min-width:0;flex:1}
.portal-studio-feed small{font-size:11px;color:#515e4a}
.portal-studio-feed strong{font-size:12px;color:#505d49;font-weight:550}
.portal-studio-feed a>div>span{font-size:12px;color:#505e48}
.portal-studio-feed time{font-size:11px;color:#525e4a;padding-top:3px}
.portal-studio-footer{margin-left:224px;padding:18px clamp(22px,3.5vw,58px) 28px;display:flex;justify-content:space-between;gap:18px;font-size:12px;color:#505d49;border-top:1px solid #cfd7cc}
/* Project details, documents, communication and account share the same visual language. */
.portal-studio .portal-back{color:#4d5f47;font-weight:500;font-size:12px;margin-bottom:14px;display:inline-flex}
.portal-studio .portal-project-hero{border:1px solid #c7d2c2;border-radius:19px;background:linear-gradient(110deg,#eef3e7,#f4f6ed);padding:25px 30px;box-shadow:none;display:flex;align-items:center;justify-content:space-between;gap:24px;color:#374e31}
.portal-studio .portal-project-hero h1{font-size:29px;margin:8px 0 10px;color:#3a5134}
.portal-studio .portal-project-hero p{color:#505e48;font-size:13px;margin:0;line-height:1.6}
.portal-studio .portal-project-code{color:#4e5d46;font-weight:500;font-size:12px;letter-spacing:.08em;background:transparent;padding:0}
.portal-studio-project-ring{width:112px;height:112px;position:relative;flex-shrink:0;color:#475f3c;background:transparent!important;box-shadow:none!important;min-width:112px!important;padding:0!important;display:block!important}
.portal-studio-project-ring>svg{width:112px;height:112px}
.portal-studio-project-ring>div{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center}
.portal-studio-project-ring strong{font-size:23px!important;font-weight:550!important;color:#4b6044}
.portal-studio-project-ring span{font-size:11px;color:#4d5e43;margin-top:1px}
.portal-studio .portal-tabs{display:flex;flex-wrap:nowrap;overflow:auto;gap:5px;border:0;border-bottom:1px solid #c5d0bf;padding:12px 0 0;margin:16px 0 23px;scrollbar-width:thin;scroll-margin-top:100px}
.portal-studio .portal-tabs a{flex-shrink:0;border:0;border-radius:0;padding:12px 14px 14px;background:transparent;color:#505d47;font-size:12px;font-weight:500;border-bottom:2px solid transparent}
.portal-studio .portal-tabs a.active{color:#465f3c;border-color:#8dac73;background:transparent;box-shadow:none}
.portal-studio .portal-tab-badge{background:#f1e7cb;color:#645833;font-size:11px;border-radius:5px;padding:2px 5px}
.portal-studio .portal-global-decision-bar,.portal-studio .portal-project-decision-strip{background:#fdf9ec;border:1px solid #d0d0b7;box-shadow:none;border-radius:13px;color:#625938}
.portal-studio .portal-global-decision-icon{background:#f4ebce;color:#625833;border-radius:10px}
.portal-studio .portal-global-decision-copy strong{color:#635938;font-weight:550;font-size:13px}
.portal-studio .portal-global-decision-copy small,.portal-studio .portal-global-decision-copy span{color:#5d593d}
.portal-studio-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:22px}
.portal-studio-shortcuts a{display:flex;align-items:center;gap:10px;padding:14px 15px;background:#fff;border:1px solid #c9d3c3;border-radius:12px;color:#4e5e46;font-size:12px;font-weight:500;min-width:0}
.portal-studio-shortcuts a>svg:last-child{margin-left:auto;width:13px;height:13px}
.portal-studio-shortcuts a:hover{background:#f8fbf4;border-color:#b9cab0}
.portal-studio .portal-card,.portal-studio .portal-timeline,.portal-studio .portal-diary{border-color:#c7d2c1;border-radius:16px;background:#fff;box-shadow:0 6px 25px #44563803}
.portal-studio .portal-card>header{background:transparent;border-bottom:1px solid #cfd7ca;padding:19px 22px}
.portal-studio .portal-card h2{font-size:17px}
.portal-studio .portal-stats{gap:13px;margin:20px 0 22px}
.portal-studio .portal-stats article{border:1px solid #c8d2c2;box-shadow:none;background:#fff;border-radius:13px;padding:18px 20px}
.portal-studio .portal-stats article small{color:#505d46;font-size:12px}
.portal-studio .portal-stats article strong{font-size:15px;font-weight:550;color:#4d5d44;margin-top:9px}
.portal-studio .portal-stats article a{font-size:12px;color:#4c5e3e;overflow-wrap:anywhere}
.portal-studio .portal-toolbar{margin:20px 0}
.portal-studio .portal-search{position:relative;width:100%;max-width:420px}
.portal-studio .portal-search>span{position:absolute;left:12px;top:9px;color:#4c6040;pointer-events:none}
.portal-studio .portal-search input{border:1px solid #c5d0be;background:#fff;border-radius:10px;padding:10px 14px 10px 35px;min-height:40px;font-size:13px;box-shadow:none;color:#4e5e44;width:100%}
.portal-studio .portal-resource-list article,.portal-studio .portal-approval-queue-item{background:#fff;border:1px solid #c7d2c0;border-radius:13px;padding:16px 20px;box-shadow:none}
.portal-studio .portal-resource-list strong,.portal-studio .portal-approval-queue-copy strong{font-weight:550;font-size:14px;color:#4b6040}
.portal-studio .portal-resource-list small,.portal-studio .portal-resource-list p{color:#505e45;font-size:12px}
.portal-studio .portal-resource-icon{background:#f1f5e9;border-radius:10px;color:#4d6040}
.portal-studio .portal-empty-inline,.portal-studio .portal-empty-state{border:1px dashed #c1cfb8;border-radius:13px;background:#fbfcf8;color:#4f5d43;font-size:13px;padding:26px}
.portal-studio .portal-empty-state>svg{width:30px;height:30px;color:#4b5e39}
.portal-studio .portal-resource-list,.portal-studio .portal-approval-queue{gap:12px}
.portal-studio .portal-activity a{padding:15px 20px;border-color:#cfd7ca}
.portal-studio .portal-activity-icon{background:#f0f4e6;color:#4f5f3e;box-shadow:none}
.portal-studio .portal-activity strong{font-size:13px;font-weight:550;color:#4c6040}
.portal-studio .portal-activity small,.portal-studio .portal-activity time{font-size:12px;color:#505e45}
.portal-studio .portal-attention-card{padding:25px;background:#fbfaf2!important;border-color:#ccd0ba;box-shadow:none;color:#5d5a39}
.portal-studio .portal-attention-card strong{font-size:35px;color:#5e5b37;font-weight:500}
.portal-studio .portal-attention-card p{font-size:13px;color:#5b593c}
.portal-studio .portal-gallery{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.portal-studio .portal-gallery>a{border:1px solid #c7d2bf;background:#fff;border-radius:14px;overflow:hidden;box-shadow:none;transition:transform .2s ease,box-shadow .2s ease}
.portal-studio .portal-gallery>a:hover{transform:translateY(-3px);box-shadow:0 10px 24px #4e633312}
.portal-studio .portal-gallery img{height:190px;object-fit:cover;transition:transform .3s ease}
.portal-studio .portal-gallery>a:hover img{transform:scale(1.025)}
.portal-studio .portal-gallery>a>span{padding:13px 15px}
.portal-studio .portal-gallery strong{font-size:13px;font-weight:550;color:#505e43}
.portal-studio .portal-gallery small{font-size:12px;color:#515d42}
.portal-studio .portal-timeline article,.portal-studio .portal-diary article{border-color:#cdd7c3;padding:18px 22px}
.portal-studio .portal-timeline strong,.portal-studio .portal-diary strong{font-weight:550;font-size:13px;color:#4e5e41}
.portal-studio .portal-timeline small,.portal-studio .portal-diary p{font-size:12px;color:#505e41}
.portal-studio .portal-timeline-dot{background:#b2c693;box-shadow:0 0 0 4px #f3f7eb}
.portal-studio .portal-message-form,.portal-studio .portal-messages{border-color:#c7d2be;border-radius:15px;background:#fff;box-shadow:none;padding:22px}
.portal-studio .portal-message-form-title strong{font-weight:550;font-size:16px;color:#4d5e3e}
.portal-studio .portal-message-form-title small{font-size:12px;color:#4f5d3e}
.portal-studio :is(.portal-message-form,.portal-settings-form) label{font-size:12px;font-weight:500;color:#4e5d3f}
.portal-studio :is(.portal-message-form,.portal-settings-form) :is(input,select,textarea){width:100%;border:1px solid #c5d1bb;border-radius:9px;padding:11px 12px;font-size:14px;font-weight:400;background:#fbfdf8;color:#4b6037;box-shadow:none;min-width:0}
.portal-studio .portal-message-form textarea{min-height:140px;resize:vertical}
.portal-studio .portal-messages article{border:0;border-radius:13px;background:#f1f6e9;margin-bottom:15px;color:#4c5f3c}
.portal-studio .portal-messages article.outgoing{background:#f7f4e9;color:#5d5b3a}
.portal-studio .portal-messages article p{font-size:14px;line-height:1.65;font-weight:400}
.portal-studio .portal-message-meta strong{font-size:12px;font-weight:550}
.portal-studio .portal-message-meta small,.portal-studio .portal-message-state{font-size:11px;color:#505e3d}
.portal-studio .portal-file-control{background:#f9fbf5;border-color:#c4d0ba;border-radius:10px}
.portal-studio .portal-file-button{background:#edf3e4;color:#4d5e3b;font-weight:500;font-size:12px}
.portal-studio .portal-account-grid{gap:24px}
.portal-studio .portal-account-card>header p{font-size:12px;color:#4f5f3e}
.portal-studio .portal-notification-panel{border-radius:15px;border-color:#c6d2bb;box-shadow:0 18px 50px #4d66371a;background:#fff}
.portal-studio .portal-notification-panel>header{background:#f6f9ef;border-color:#cad5c2;color:#4c5e3e}
.portal-studio .portal-notification-panel button{font-size:12px;font-weight:500;color:#4d5f3b}
.portal-studio .portal-dialog{border:1px solid #c5d2ba;border-radius:19px;background:#fff;box-shadow:0 25px 70px #314f2530}
.portal-studio .portal-dialog h2{font-size:22px}
.portal-studio .portal-dialog p{font-size:14px;color:#4e5e40;line-height:1.7}
.portal-studio .portal-confirm{background:#21382770;backdrop-filter:blur(5px);z-index:100}
.portal-studio .portal-document-preview{border-color:#c6d2bb;border-radius:13px;overflow:hidden;background:#eef3e5}
.portal-studio .portal-pdf-frame{width:100%;height:72vh;min-height:420px}
.portal-studio .portal-viewer-head{gap:14px;margin-bottom:20px}
.portal-studio .portal-table-wrap{max-width:100%;overflow:auto}
.portal-studio .portal-change-order-detail-table td{font-weight:400}
.portal-studio .manual-layout{min-width:0}
.portal-studio .manual-toc{top:106px}
/* Read-only photo preview. */
.portal-studio-lightbox{border:0;padding:0;max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);width:min(1060px,calc(100vw - 40px));border-radius:18px;background:#f8faf4;color:#415e36;box-shadow:0 25px 80px #152e1966}
.portal-studio-lightbox::backdrop{background:#1f3526bf;backdrop-filter:blur(8px)}
.portal-studio-lightbox header{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;background:#fff;border-bottom:1px solid #c7d3bd;font-size:13px}
.portal-studio-lightbox button{width:35px;height:35px;border:1px solid #c3d0b8;background:#fff;border-radius:9px;cursor:pointer;color:#4b603c;display:grid;place-items:center;padding:8px}
.portal-studio-lightbox button svg{width:19px;height:19px}
.portal-studio-lightbox figure{margin:0;display:flex;align-items:center;justify-content:center;padding:18px;min-height:200px;position:relative}
.portal-studio-lightbox figure img{max-width:100%;max-height:65dvh;object-fit:contain;border-radius:10px}
.portal-studio-lightbox footer{display:flex;align-items:center;gap:15px;padding:12px 20px;background:#fff;border-top:1px solid #c8d3bd;font-size:13px}
.portal-studio-lightbox footer span{flex:1;overflow-wrap:anywhere}
.portal-studio-lightbox footer a{font-size:12px;color:#4b5f3b;white-space:nowrap}
.portal-studio-password-wrap{position:relative}
.portal-studio-password-wrap input{padding-right:45px!important}
.portal-studio-password-wrap button{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:34px;height:34px;display:grid;place-items:center;border:0;background:transparent;cursor:pointer;color:#4c603b;padding:7px}
.portal-studio-password-wrap svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
/* Authentication is part of the same portal, not a separate visual theme. */
.portal-studio-auth{min-height:100dvh;display:grid;place-items:center;padding:70px 24px;background:radial-gradient(ellipse at 5% 10%,#edf3e5,transparent 70%),#f7f9f2}
.portal-studio-auth .portal-auth-layout{display:grid;grid-template-columns:1.1fr 1fr;max-width:980px;width:100%;min-height:570px;border:1px solid #c7d3b8;border-radius:25px;overflow:hidden;box-shadow:0 20px 60px #667a3f0b;background:#fff}
.portal-studio-auth .portal-auth-intro{padding:42px;background:linear-gradient(145deg,#eff5e5,#edf2df);position:relative;overflow:hidden;color:#4c603c;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}
.portal-studio-auth .portal-auth-intro:after{content:"";display:block;background:url('portal-studio-art.svg') center/contain no-repeat;width:290px;height:205px;position:absolute;bottom:25px;right:35px;transform:rotate(-4deg);opacity:.92}
.portal-studio-auth .portal-auth-brand-logo{width:165px;max-height:63px;object-fit:contain;object-position:left center;margin-bottom:40px;filter:none}
.portal-studio-auth .portal-auth-intro h1{font-size:29px;font-weight:550;letter-spacing:-.04em;line-height:1.2;color:#495e39;margin:0 0 17px}
.portal-studio-auth .portal-auth-intro p{color:#4e5d3b;font-size:14px;font-weight:400;max-width:300px;line-height:1.8;margin:0;position:relative;z-index:1}
.portal-studio-auth .portal-auth-card{padding:53px 42px;border:0;border-radius:0;background:#fff;box-shadow:none;max-width:none;width:auto;align-self:center}
.portal-studio-auth .portal-auth-card h2{font-size:23px;color:#4b5f39;letter-spacing:-.035em;font-weight:550;margin:0 0 10px}
.portal-studio-auth .portal-auth-card>p{font-size:13px;color:#505f3e;line-height:1.8;margin:0 0 25px}
.portal-studio-auth .portal-auth-card label{font-size:12px;font-weight:500;color:#4b6036;display:grid;gap:8px;margin-bottom:17px}
.portal-studio-auth .portal-auth-card :is(input,select){border:1px solid #c6d2ba;border-radius:10px;background:#fbfdf7;padding:12px;font-size:14px;min-width:0;width:100%;color:#485e37}
.portal-studio-auth .portal-auth-card .portal-button.primary{width:100%;margin-top:3px}
.portal-studio-auth .portal-auth-link,.portal-studio-auth .portal-login-site-link{font-size:12px;font-weight:500;color:#4b5e38;margin-top:17px;display:block}
.portal-studio-auth .portal-auth-language{position:absolute;right:30px;top:24px}
@keyframes portalStudioProgress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(min-width:1800px){.portal-studio .portal-main{max-width:1600px;margin-right:auto}}
@media(max-width:1200px){.portal-studio-sidebar{width:192px;padding-left:15px;padding-right:15px}.portal-studio .portal-topbar,.portal-studio .portal-main,.portal-studio-footer{margin-left:192px}.portal-studio-welcome-art{width:200px}.portal-studio-summary article{padding:18px 15px;gap:9px}.portal-studio-dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:20px}.portal-studio-project-card{grid-template-columns:1fr}.portal-studio-project-cover{min-height:175px}.portal-studio-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.portal-studio-sidebar{transform:translateX(-102%);visibility:hidden;transition:transform .2s ease,visibility .2s;z-index:80;width:260px;padding:30px 21px}.portal-studio-sidebar.is-open{transform:translateX(0);visibility:visible}.portal-studio .portal-topbar,.portal-studio .portal-main,.portal-studio-footer{margin-left:0}.portal-studio .portal-topbar{height:74px}.portal-studio .portal-topbar-inner{padding:0 24px}.portal-studio .portal-main{padding:26px 24px 35px}.portal-studio-menu,.portal-studio-close{display:grid;place-items:center;width:36px;height:36px;padding:8px;border:1px solid #c6d2bf;background:#fafcf7;border-radius:9px;color:#4b5e3d;cursor:pointer}.portal-studio-close{position:absolute;top:12px;right:12px;width:29px;height:29px}.portal-studio .portal-brand{padding-top:20px}.portal-studio-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:75;background:#263c2f66;backdrop-filter:blur(3px);border:0;width:100%;height:100%}.portal-studio-menu-open{overflow:hidden}.portal-studio-welcome-art{width:240px}.portal-studio-project-card{grid-template-columns:1fr 1.3fr}.portal-studio-summary article{padding:18px}.portal-studio .portal-content-grid{grid-template-columns:1fr}.portal-studio-location strong{max-width:40vw}}
@media(max-width:760px){.portal-studio .portal-topbar{height:68px}.portal-studio .portal-topbar-inner{padding:0 16px;gap:10px}.portal-studio-location{gap:10px}.portal-studio-location small{font-size:11px}.portal-studio-location strong{font-size:12px;max-width:34vw}.portal-studio .portal-user-menu{gap:9px}.portal-studio-profile summary>.portal-user-name{display:none}.portal-studio-profile summary>svg{display:none}.portal-studio .portal-avatar{width:32px;height:32px}.portal-studio .portal-language{height:32px;min-height:32px}.portal-studio .portal-language select{height:30px;min-height:30px;font-size:12px;max-width:64px;padding:3px 17px 3px 23px}.portal-studio .portal-language>span{top:6px;left:7px}.portal-studio .portal-main{padding:20px 16px 28px}.portal-studio-welcome{padding:25px;min-height:205px}.portal-studio-welcome h1{font-size:27px}.portal-studio-welcome p{font-size:13px;max-width:320px}.portal-studio-welcome-art{position:absolute;right:-45px;bottom:-35px;width:190px;height:160px;opacity:.32;transform:rotate(10deg)}.portal-studio-welcome>div:first-child{max-width:90%}.portal-studio-summary{grid-template-columns:repeat(2,minmax(0,1fr));margin:18px 0 26px}.portal-studio-summary article{padding:17px 16px;gap:12px}.portal-studio-summary article:nth-child(3):before{display:none}.portal-studio-summary article:nth-child(n+3){border-top:1px solid #d0d9cc}.portal-studio-summary strong{font-size:24px}.portal-studio-summary small{font-size:11px}.portal-studio-stat-icon{width:36px;height:36px}.portal-studio-dashboard-grid{grid-template-columns:1fr;gap:25px}.portal-studio-project-card{grid-template-columns:1fr 1.45fr}.portal-studio-project-cover{min-height:220px}.portal-studio-project-copy{padding:19px 17px}.portal-studio-project-copy h3{font-size:17px}.portal-studio-project-bottom{flex-wrap:wrap;gap:10px}.portal-studio-project-bottom strong{margin-left:auto}.portal-studio-dashboard-aside{grid-template-columns:1fr 1fr;gap:15px}.portal-studio-decisions>header{padding:17px 15px}.portal-studio .portal-studio-decisions .portal-approval-queue{padding:0 15px 5px}.portal-studio-activity{padding:17px 16px 7px}.portal-studio-footer{padding:18px 16px;flex-wrap:wrap;font-size:11px}.portal-studio .portal-project-hero{padding:22px 20px}.portal-studio .portal-project-hero h1{font-size:25px}.portal-studio-project-ring,.portal-studio-project-ring>svg{width:90px;height:90px;min-width:90px!important}.portal-studio .portal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-studio .portal-global-decision-bar{display:flex;flex-wrap:wrap;gap:10px;padding:14px}.portal-studio .portal-global-decision-copy{flex:1;min-width:150px}.portal-studio .portal-global-decision-bar>.portal-button{margin-left:auto}.portal-studio .portal-account-grid,.portal-studio .portal-message-layout{grid-template-columns:1fr}.portal-studio .portal-resource-list article{display:flex;flex-wrap:wrap;gap:10px;padding:15px}.portal-studio .portal-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-studio .portal-gallery img{height:155px}.portal-studio .portal-notification-panel{position:fixed;left:12px;right:12px;top:76px;width:auto;max-height:75dvh}.portal-studio .portal-notification-list{max-height:62dvh}.portal-studio .portal-tabs a{padding:11px 12px;font-size:12px}.portal-studio .portal-panel .portal-section-heading h2{font-size:19px}.portal-studio :is(input,select,textarea){font-size:16px!important}.portal-studio .portal-studio-search input{min-height:40px;font-size:13px!important}.portal-studio .portal-language select{font-size:12px!important}.portal-studio .portal-main .manual-layout{display:block}.portal-studio .manual-toc{position:static}.portal-studio-auth{padding:65px 18px 25px}.portal-studio-auth .portal-auth-layout{grid-template-columns:1fr;max-width:480px;min-height:0;border-radius:20px}.portal-studio-auth .portal-auth-intro{padding:30px 32px 25px}.portal-studio-auth .portal-auth-intro:after{width:140px;height:105px;bottom:-20px;right:-5px;opacity:.25}.portal-studio-auth .portal-auth-brand-logo{width:135px;max-height:48px;margin-bottom:20px}.portal-studio-auth .portal-auth-intro h1{font-size:24px;margin-bottom:10px}.portal-studio-auth .portal-auth-intro p{font-size:12px;max-width:320px}.portal-studio-auth .portal-auth-card{padding:30px 32px}.portal-studio-auth .portal-auth-card :is(input,select){font-size:16px}.portal-studio-lightbox{max-width:calc(100vw - 20px);width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.portal-studio-lightbox figure{padding:10px}.portal-studio-lightbox footer{padding:12px;gap:8px}.portal-studio-lightbox footer a{font-size:11px}}
@media(max-width:480px){.portal-studio-project-card{grid-template-columns:1fr}.portal-studio-project-cover{min-height:185px}.portal-studio-project-copy{padding:21px}.portal-studio-project-bottom{flex-wrap:nowrap}.portal-studio-dashboard-aside{grid-template-columns:1fr}.portal-studio-project-tools{gap:8px}.portal-studio-filter button{padding:8px 9px;font-size:11px}.portal-studio .portal-studio-search input{font-size:12px!important;padding-left:32px}.portal-studio .portal-project-hero{gap:13px}.portal-studio .portal-project-hero h1{font-size:23px}.portal-studio .portal-project-hero p{font-size:12px}.portal-studio-project-ring,.portal-studio-project-ring>svg{width:78px;height:78px;min-width:78px!important}.portal-studio-project-ring strong{font-size:17px!important}.portal-studio-project-ring span{font-size:10px}.portal-studio-shortcuts{gap:8px}.portal-studio-shortcuts a{padding:12px;font-size:12px;gap:8px}.portal-studio-shortcuts a>svg:first-child{width:17px}.portal-studio .portal-gallery img{height:130px}.portal-studio .portal-stats article{padding:15px}.portal-studio .portal-viewer-head{flex-wrap:wrap}.portal-studio .portal-pdf-frame{height:65dvh;min-height:350px}.portal-studio-location strong{max-width:30vw}}
@media(prefers-reduced-motion:reduce){.portal-studio *, .portal-studio-auth *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.portal-studio-sidebar,.portal-studio .portal-topbar,.portal-studio-footer,.portal-studio-backdrop{display:none!important}.portal-studio .portal-main{margin:0;padding:0;max-width:100%}.portal-studio-lightbox{display:none}}

@media(max-width:760px){.portal-studio-menu,.portal-studio .portal-bell{min-width:40px;min-height:40px}.portal-studio-lightbox button{min-width:40px;min-height:40px}.portal-studio .portal-studio-filter button{min-height:38px}}

/* Isolate the new shell from legacy navigation and auth layout rules. */
.portal-studio .portal-main-nav{position:static;inset:auto;justify-content:flex-start;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;padding:0}
.portal-studio .portal-main-nav a{flex:none;flex-direction:row}
.portal-studio .portal-main-nav a>span{display:block;width:auto;height:auto;background:none;border-radius:0;color:inherit;font-size:inherit;flex:1;min-width:0}
.portal-studio .portal-project-hero .portal-studio-project-ring span{color:#485b50}
.portal-studio .portal-tabs a{border-bottom:2px solid transparent!important}
.portal-studio .portal-tabs a.active{border-bottom-color:#8aab94!important}
.portal-studio .portal-stats article:before{display:none}
.portal-studio .portal-language select{width:64px;max-width:64px;padding:0 6px 0 10px;font-weight:500}
.portal-studio .portal-language>span{display:none}
.portal-studio .portal-search{padding:0;border:0;background:transparent;box-shadow:none}
.portal-studio-auth .portal-auth-layout{align-items:stretch;gap:0}
.portal-studio-auth .portal-auth-intro{align-self:stretch;min-height:570px;padding-bottom:250px}
.portal-studio-auth .portal-auth-intro:after{width:300px;height:205px;bottom:25px;right:35px}
.portal-studio-auth .portal-auth-card form{gap:13px}
.portal-studio-auth .portal-auth-card label{margin:0}
.portal-studio-auth .portal-auth-card .portal-button{margin-top:10px}
.portal-studio-auth .portal-auth-language .portal-language{background:#fff;border:1px solid #c4d0c2;padding:4px;border-radius:9px;box-shadow:none}
.portal-studio-auth .portal-language>span{display:none}
.portal-studio-auth .portal-language select{width:65px;font-weight:500;font-size:12px;background:transparent;padding:5px 8px}
@media(max-width:1000px){.portal-studio .portal-main-nav{position:static;display:flex!important}}
@media(max-width:760px){.portal-studio-auth .portal-auth-intro{min-height:0;padding-bottom:28px}.portal-studio-auth .portal-auth-intro:after{width:140px;height:105px;bottom:-20px;right:-5px}.portal-studio .portal-language select{width:52px;padding-left:7px}.portal-studio .portal-main-nav a{font-size:14px;padding:12px;gap:12px}.portal-studio .portal-main-nav a>span{width:auto;height:auto}.portal-studio-summary small{font-size:12px}.portal-studio .portal-studio-search input{font-size:13px!important}}
@media(max-width:760px){.portal-studio .portal-avatar{display:grid;place-items:center}.portal-studio-location strong{max-width:24vw}.portal-studio-location small{max-width:24vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portal-studio .portal-user-menu{gap:6px}.portal-studio .portal-bell{width:36px;min-width:36px}}
.portal-studio .portal-document-preview{border:1px solid #c6d1c2;box-shadow:0 10px 30px #354d3c08;border-radius:15px}
.portal-studio .portal-document-approval{border:1px solid #c6d1c2;box-shadow:none;border-radius:15px;background:#fff}
.portal-studio .portal-document-approval label{font-weight:500;font-size:13px}
.portal-studio .portal-document-approval textarea{font-family:inherit;font-weight:400;border-color:#c2cfbf;border-radius:10px;background:#fcfdf9;color:var(--portal-text)}
.portal-studio .portal-document-approval textarea::placeholder{font-weight:400;color:#526156}
.portal-studio .portal-approval-note{background:#f3f6ef;font-weight:400}

/* 209.64.258: readable text and clearer boundaries, same calm portal layout. */
.portal-studio :is(.portal-studio-search input,.portal-search input,.portal-language,.portal-message-form input,.portal-message-form select,.portal-message-form textarea,.portal-settings-form input,.portal-settings-form select,.portal-settings-form textarea,.portal-document-approval textarea),.portal-studio-auth .portal-auth-card :is(input,select){border-color:#7d8f7e}
.portal-studio :is(input,textarea)::placeholder,.portal-studio-auth :is(input,textarea)::placeholder{color:#58685c;opacity:1}
.portal-studio :is(a,button,input,select,textarea,summary):focus-visible,.portal-studio-auth :is(a,button,input,select,textarea):focus-visible{outline-color:#4f725d}
.portal-studio :is(.portal-card,.portal-stats article,.portal-studio-activity,.portal-message-form,.portal-messages,.portal-account-card,.portal-document-approval){box-shadow:0 4px 16px #29463408}
.portal-studio-summary article+article:before{background:#c5d1c3}
.portal-studio .portal-card>header{background:#f7f9f5}
.portal-studio .portal-tabs a.active{border-bottom-color:#52745b!important}
.portal-studio .portal-progress{background:#e0e8dc}.portal-studio .portal-progress span{background:#6b8e72}
.portal-studio .portal-notification-list :is(p,small,time){color:#4b5c50}
.portal-studio .portal-bell b{background:#87603e;color:#fff}
.portal-studio .manual-layout{--manual-muted:#4b5c50;--manual-border:#c5d1c3}
