:root{--bg:#06101c;--bg2:#071726;--panel:#0a2034;--panel2:#0b2943;--line:#1d496b;--line-soft:#16364f;--text:#f6f8fc;--muted:#9bb0c6;--blue:#2e9bff;--cyan:#52d5ff;--green:#42e390;--green-bg:#0b392f;--yellow:#ffd15c;--yellow-bg:#332b16;--red:#ff4f5f;--sidebar:260px;--radius:16px;--shadow:0 18px 48px rgba(0,0,0,.26)}
*{box-sizing:border-box}html{background:#030b14}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text);background:radial-gradient(circle at 28% -10%,rgba(26,113,174,.24),transparent 30%),radial-gradient(circle at 95% 0,rgba(17,92,150,.18),transparent 28%),linear-gradient(180deg,#071522 0,#030b14 100%);min-height:100vh}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}svg{width:1.15em;height:1.15em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.workspace-shell{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:18px 16px 16px;border-right:1px solid rgba(71,144,195,.26);background:linear-gradient(180deg,rgba(5,19,33,.96),rgba(3,12,21,.985));display:flex;flex-direction:column;z-index:50}.brand-lockup{height:72px;display:flex;align-items:center;padding:0 8px 14px;border-bottom:1px solid rgba(85,155,205,.17)}.brand-logo{display:block;max-width:100%;width:auto;height:58px;object-fit:contain;filter:drop-shadow(0 0 16px rgba(63,166,255,.22))}.brand-logo--mobile{height:42px;max-width:170px}.brand-copy{display:flex;flex-direction:column;margin-left:10px}.brand-copy strong{font-family:Georgia,serif;font-size:23px;font-weight:500}.brand-copy span{font-size:11px;color:#d9e2ed}.side-nav{display:flex;flex-direction:column;gap:5px;padding-top:18px}.side-link{min-height:46px;border-radius:10px;padding:0 13px;color:#c6d4e3;text-decoration:none;display:flex;align-items:center;gap:12px;font-size:14px;border:1px solid transparent}.side-link svg{font-size:20px}.side-link:hover{background:rgba(31,98,147,.14)}.side-link.is-active{color:white;background:linear-gradient(90deg,rgba(14,76,132,.62),rgba(22,73,110,.2));border-color:rgba(62,143,205,.22);box-shadow:inset 3px 0 0 #32aaff,0 0 20px rgba(42,146,255,.08)}.nav-badge,.tab-badge,.notification-badge{margin-left:auto;display:grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:50px;background:#2384ef;color:white;font-size:11px}.nav-badge--alert,.tab-badge--alert{background:var(--red)}.sidebar-spacer{flex:1}.support-card,.account-card{border:1px solid rgba(62,121,165,.32);background:rgba(10,32,51,.68);border-radius:12px;color:#dce7f2}.support-card{padding:12px;display:flex;align-items:center;gap:10px;text-decoration:none;margin-bottom:12px}.support-card strong,.support-card small,.account-card span{display:block}.support-card strong{font-size:12px}.support-card small{font-size:10px;color:var(--muted);margin-top:2px}.support-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#0872d7;color:white}.account-card{min-height:66px;padding:11px;display:flex;align-items:center;gap:10px}.account-card>span:not(.avatar){min-width:0;flex:1}.account-card small{font-size:9px;color:var(--muted)}.account-card strong{display:block;font-size:12px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-card svg{font-size:12px}.workspace-main{min-width:0}.topbar{height:74px;display:flex;align-items:center;padding:0 26px;border-bottom:1px solid rgba(81,143,189,.16);gap:18px}.breadcrumbs{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted);min-width:0}.breadcrumbs a{color:var(--muted);text-decoration:none}.breadcrumbs strong{font-weight:600;color:#edf5fd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:14px}.language-switcher{display:flex;align-items:center;gap:7px;height:34px;padding:3px 7px;border:1px solid rgba(75,139,188,.28);background:rgba(8,24,38,.8);border-radius:18px}.language-switcher a{display:grid;place-items:center;min-width:25px;height:28px;padding:0 9px;text-align:center;text-decoration:none;color:#95a8bb;font-size:11px;font-weight:750;letter-spacing:.08em;border-radius:14px}.language-switcher a.is-active{background:linear-gradient(180deg,#f1deab 0%,#e1ca8f 100%);color:#0d2235;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 0 0 1px rgba(240,221,169,.16)}.language-switcher span{width:1px;height:13px;background:#516478}.searchbox{width:240px;height:38px;border:1px solid rgba(75,139,188,.28);background:rgba(12,35,55,.72);border-radius:9px;display:flex;align-items:center;padding:0 12px;color:var(--muted)}.searchbox input{width:100%;border:0;outline:0;background:transparent;color:white;padding-left:8px;font:inherit;font-size:12px}.icon-button{position:relative;width:38px;height:38px;border:0;background:transparent;color:#e6f1fc}.notification-badge{position:absolute;right:-2px;top:-3px;margin:0;background:var(--red);min-width:18px;height:18px;padding:0}.avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:linear-gradient(145deg,#3f8fff,#1954c9);border:1px solid #6facff;color:white;box-shadow:0 0 18px rgba(40,131,244,.22)}.avatar--small{width:34px;height:34px}.mobile-menu-button,.mobile-brand{display:none}.project-page{padding:0 26px 28px;max-width:1600px;margin:0 auto}.panel{border:1px solid rgba(75,145,195,.48);background:linear-gradient(135deg,rgba(12,42,67,.94),rgba(5,24,39,.94));border-radius:var(--radius);box-shadow:inset 0 1px 0 rgba(255,255,255,.018),var(--shadow)}.project-hero{position:relative;margin-top:14px;padding:20px;min-height:150px;display:grid;grid-template-columns:150px minmax(240px,1fr) 320px 230px;gap:20px;align-items:center}.project-visual{height:112px;border:1px solid rgba(94,176,235,.7);border-radius:12px;background:radial-gradient(circle at 70% 20%,rgba(58,179,255,.45),transparent 35%),linear-gradient(135deg,#0b2842,#04121f);display:grid;place-items:center;overflow:hidden}.screen-art{width:88px;height:65px;border:2px solid #a7d9ff;border-radius:5px;transform:perspective(180px) rotateY(-8deg) rotateX(3deg);background:linear-gradient(135deg,#0c2134,#183f5f);box-shadow:0 14px 28px rgba(32,152,255,.28)}.screen-art span{display:block;height:5px;margin:8px 10px;background:linear-gradient(90deg,#4098dc,#182e44);border-radius:4px}.project-identity .tag,.tag{display:inline-block;padding:5px 9px;border-radius:8px;background:rgba(102,145,184,.25);border:1px solid rgba(124,174,218,.35);color:#bdd3e6;font-size:11px}.project-identity h1{font-size:26px;line-height:1.12;margin:8px 0 7px}.project-identity p{margin:0;color:#d0dce7;font-size:13px;line-height:1.5;max-width:570px}.project-facts{align-self:stretch;padding:6px 20px 6px 0;border-right:1px solid rgba(74,127,166,.25)}.status-pill{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:9px;background:rgba(11,87,64,.66);border:1px solid rgba(50,219,139,.65);color:#7ff0b3;font-weight:700;font-size:12px}.status-dot{display:grid;place-items:center;width:16px;height:16px;border-radius:4px;background:#38d782;color:#062517;font-size:11px}.project-facts dl{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0 0}.project-facts dt{color:var(--muted);font-size:11px;margin-bottom:7px}.project-facts dd{font-size:13px;font-weight:650;margin:0}.contact-card{display:grid;grid-template-columns:46px 1fr;gap:10px;align-items:center}.avatar--contact{width:44px;height:44px;background:linear-gradient(145deg,#9c704f,#553726)}.contact-card small,.contact-card span{display:block;color:var(--muted);font-size:9px}.contact-card strong{display:block;font-size:12px;margin:2px 0}.contact-actions{grid-column:1/-1;display:flex;justify-content:center;gap:12px;margin-top:4px}.contact-actions button{width:34px;height:34px;border-radius:50%;border:1px solid rgba(73,150,208,.4);background:#0b3658;color:#65bcff}.project-tabs{display:flex;align-items:center;gap:8px;border-bottom:1px solid rgba(88,144,184,.25);min-height:60px;overflow-x:auto;scrollbar-width:none}.project-tabs::-webkit-scrollbar{display:none}.project-tab{position:relative;flex:0 0 auto;height:60px;display:flex;align-items:center;gap:8px;padding:0 28px;color:#c7d3df;text-decoration:none;font-size:13px}.project-tab.is-active{color:white;background:linear-gradient(180deg,rgba(16,70,111,.4),rgba(11,35,55,.12));border-radius:11px 11px 0 0}.project-tab.is-active:after{content:"";position:absolute;height:3px;bottom:0;left:0;right:0;background:#2eb2ff;box-shadow:0 0 10px #2eb2ff}.tab-badge{margin:0;background:var(--red);height:19px;min-width:19px}.overview-top-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(320px,1fr);gap:12px}.progress-panel,.approval-panel{min-height:206px;padding:18px}.section-title h2,.latest-heading h2{font-size:16px;margin:0}.mobile-progress-value{display:none}.progress-layout{height:150px;display:flex;align-items:center;gap:28px}.progress-ring{--progress:68;width:112px;height:112px;border-radius:50%;background:conic-gradient(#41d9ff calc(var(--progress)*1%),#2671f0 calc(var(--progress)*1%),rgba(65,111,147,.25) 0);padding:8px;box-shadow:0 0 24px rgba(41,153,255,.35);flex:0 0 auto}.progress-ring:before{content:"";display:block;position:absolute}.progress-ring>div{height:100%;border-radius:50%;background:#0a2135;display:grid;place-items:center;font-size:23px;font-weight:700}.stage-track{position:relative;display:grid;grid-template-columns:repeat(6,1fr);flex:1;gap:0;padding-top:4px}.stage-track:before{content:"";position:absolute;top:21px;left:8%;right:8%;height:3px;background:linear-gradient(90deg,#38df8a 0 54%,#3497ff 54% 68%,#405a72 68%);border-radius:4px}.stage{position:relative;text-align:center;display:flex;flex-direction:column;align-items:center;min-width:74px;z-index:1}.stage-node{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#173651;border:2px solid #6f8aa4;color:#9fb0c2;margin-bottom:12px}.stage--done .stage-node{background:#0d7351;border-color:#3ce698;color:#8affc4}.stage--active .stage-node{width:30px;height:30px;background:#1f5dcb;border:3px solid #75c7ff;color:white;box-shadow:0 0 14px #339aff;margin-top:-2px;margin-bottom:10px}.stage strong{font-size:11px;font-weight:600}.stage small{font-size:10px;color:var(--muted);margin-top:4px}.stage--active strong,.stage--active small{color:#7fc6ff}.approval-panel{border-color:rgba(226,170,49,.62);background:radial-gradient(circle at 90% 0,rgba(255,179,52,.12),transparent 42%),linear-gradient(135deg,rgba(37,39,31,.95),rgba(34,27,15,.86));display:flex;flex-direction:column}.approval-heading{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;color:var(--yellow)}.approval-heading h2{font-size:15px;margin:0}.approval-heading b{width:25px;height:25px;border-radius:50%;background:var(--yellow);color:#2b230e;display:grid;place-items:center;font-size:12px}.approval-icon{font-size:19px}.approval-item{display:grid;grid-template-columns:72px 1fr auto;gap:12px;align-items:center;margin:16px 0 13px}.approval-thumb{height:50px;border-radius:8px;background:linear-gradient(145deg,#d6e8f8,#5a8db6);padding:6px}.approval-thumb span{display:block;height:100%;border-radius:4px;background:linear-gradient(#fff,#d7e9f4)}.approval-item strong{font-size:12px}.approval-item p{font-size:11px;color:#d7d4ca;line-height:1.4;margin:4px 0 0}.approval-item svg{font-size:13px}.button{border:0;text-decoration:none}.button--approval{min-height:40px;border-radius:9px;background:linear-gradient(180deg,#ffda71,#f0b839);color:#241b08;font-weight:750;font-size:12px;display:flex;align-items:center;justify-content:center;gap:10px}.button--approval svg{font-size:14px}.work-grid{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(280px,.85fr);gap:12px;margin-top:12px}.current-work-panel{display:grid;grid-template-columns:1.2fr .92fr;min-height:240px;padding:18px}.current-work-main{padding-right:22px;border-right:1px solid rgba(87,142,182,.32)}.accent-title{margin:0 0 18px;color:#59c7ff;font-size:16px;display:flex;gap:9px;align-items:center}.gear-icon{font-size:19px}.current-heading{display:flex;align-items:center;gap:12px}.current-icon{width:44px;height:44px;border-radius:9px;display:grid;place-items:center;background:#0d5890;border:1px solid #54c0ff;color:#5ed2ff;font-size:19px}.current-heading strong,.current-heading span{display:block}.current-heading strong{font-size:14px}.current-heading span{font-size:13px;margin-top:3px;color:#d5e0ea}.current-work-main>p{font-size:12px;line-height:1.55;color:#c7d6e4}.deadline-note{margin-top:14px;min-height:38px;border-radius:8px;border:1px solid rgba(65,132,180,.34);background:rgba(19,56,84,.66);display:flex;align-items:center;gap:9px;padding:0 12px;font-size:11px;color:#dce8f3}.current-work-checklist{padding-left:22px}.current-work-checklist h3{font-size:12px;margin:1px 0 13px}.current-work-checklist i{font-style:normal}.current-work-checklist ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}.current-work-checklist li{display:flex;gap:9px;font-size:11px;color:#c9d7e3;align-items:center}.current-work-checklist li span{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-size:10px}.current-work-checklist .is-done span{background:#35d27d;color:#052718}.current-work-checklist .is-progress span{background:#2c4d6a;color:#98b3ca}.next-step{display:flex;gap:11px;margin-top:18px}.next-arrow{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:linear-gradient(#2686ef,#145ac3);font-size:21px}.next-step strong{font-size:12px}.next-step p{font-size:11px;color:#c6d4df;line-height:1.45;margin:4px 0 0}.client-action-panel{display:flex;align-items:flex-start;justify-content:center;gap:14px;padding:30px 20px;text-align:center}.success-icon{width:34px;height:34px;border:2px solid #4aec8e;border-radius:50%;display:grid;place-items:center;color:#5cf099;font-size:20px;flex:0 0 auto}.client-action-panel h2{font-size:14px;margin:3px 0 14px}.client-action-panel p{font-size:11px;line-height:1.55;color:#c4d1dd;max-width:260px;margin:0 auto}.latest-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}.latest-card{min-height:300px;padding:16px}.latest-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px}.latest-heading a{flex:0 0 auto;display:flex;align-items:center;gap:4px;padding:7px 10px;border:1px solid rgba(45,146,220,.4);border-radius:18px;background:rgba(10,64,102,.45);font-size:10px;color:#93d4ff;text-decoration:none}.latest-heading a svg{font-size:12px}.event-list,.document-list,.message-list{display:flex;flex-direction:column}.event-row{display:grid;grid-template-columns:58px 32px 1fr;gap:9px;align-items:center;min-height:66px;border-top:1px solid rgba(91,134,166,.18)}.event-row:first-child{border-top:0}.event-row time{font-size:9px;color:#a8bccd;line-height:1.35}.event-icon{width:30px;height:30px;border-radius:7px;display:grid;place-items:center;background:#0a7c5d;border:1px solid #1ed59a;color:#73ffca}.event-icon--stage{background:#07538b;border-color:#249ae4;color:#56c2ff}.event-icon--file{background:#334c66;border-color:#6688a8;color:#d5e4f2}.event-row strong,.document-row strong{display:block;font-size:10px}.event-row small,.document-row small{display:block;font-size:9px;color:#9db1c1;margin-top:4px;line-height:1.35}.document-row{display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;min-height:66px;border-top:1px solid rgba(91,134,166,.18)}.document-row:first-child{border-top:0}.doc-thumb{width:42px;height:46px;border-radius:6px;background:linear-gradient(#f7fbff,#a9c9df);color:#3577a6;display:grid;place-items:center}.doc-status{padding:4px 7px;border-radius:12px;border:1px solid #316c99;background:#0b3453;color:#9fd7ff;font-size:8px;white-space:nowrap}.doc-status--pending{color:#ffd267;border-color:#9f6d06;background:#32270d}.doc-status--approved{color:#66eca3;border-color:#157e50;background:#0b3324}.message-row{position:relative;display:grid;grid-template-columns:36px 1fr;gap:10px;min-height:96px;padding:11px 0;border-top:1px solid rgba(91,134,166,.18)}.message-row:first-child{border-top:0}.avatar--message{width:34px;height:34px;font-size:12px}.message-meta{display:flex;gap:6px;align-items:baseline}.message-meta strong{font-size:10px}.message-meta time{font-size:8px;color:#8ca5b9}.message-row p{font-size:10px;line-height:1.5;color:#c7d5e0;margin:5px 0 0}.unread-dot{position:absolute;right:1px;top:15px;width:7px;height:7px;border-radius:50%;background:#1ea7ff}.sidebar-backdrop{display:none}


/* Phase 1 visual/mobile hardening v2 — 2026-10-06 */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.workspace-shell,
.workspace-main,
.project-page,
.project-hero,
.project-identity,
.project-facts,
.contact-card,
.overview-top-grid,
.work-grid,
.current-work-panel,
.current-work-main,
.current-work-checklist,
.latest-grid,
.latest-card,
.event-row,
.document-row,
.message-row {
  min-width: 0;
}

.brand-lockup {
  height: 92px;
  padding: 0 2px 14px;
  justify-content: center;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 224px;
  height: auto;
  max-height: 74px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 14px rgba(48, 153, 255, .28));
}

.brand-logo--mobile {
  width: 148px;
  max-width: 148px;
  height: auto;
  max-height: 46px;
}

/* Keep icon geometry independent from generic text/span rules. */
.contact-card .avatar--contact,
.current-heading .current-icon,
.accent-title .gear-icon,
.approval-heading .approval-icon,
.event-row .event-icon,
.support-card .support-icon {
  display: grid;
  place-items: center;
}

.contact-card .avatar--contact {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #eef8ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  background:
    radial-gradient(circle at 30% 24%, rgba(135, 214, 255, .34), transparent 30%),
    linear-gradient(145deg, #1d72bd, #12365f 72%);
  border: 1px solid rgba(111, 194, 255, .82);
  box-shadow: inset 0 0 14px rgba(117, 201, 255, .12), 0 0 18px rgba(37, 144, 234, .20);
}

.contact-card small,
.contact-card > div > span {
  display: block;
}

.contact-actions button {
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(145deg, rgba(9, 65, 107, .94), rgba(5, 42, 72, .96));
  border-color: rgba(76, 174, 240, .52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 6px 16px rgba(0,0,0,.18);
}
.contact-actions button svg { width: 16px; height: 16px; }
.contact-actions button:hover { border-color: rgba(97, 200, 255, .88); color: #a9e2ff; }

.support-icon {
  background: linear-gradient(145deg,#128df0,#0861bf);
  border: 1px solid rgba(111,197,255,.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 7px 16px rgba(0,78,155,.22);
}
.support-icon svg { width: 15px; height: 15px; }

.gear-icon,
.approval-icon,
.current-icon,
.event-icon {
  flex: 0 0 auto;
}

.accent-title .gear-icon {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  color: #69d5ff;
  background: linear-gradient(145deg, rgba(16,96,153,.74), rgba(8,48,79,.92));
  border: 1px solid rgba(75,185,244,.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.accent-title .gear-icon svg { width: 15px; height: 15px; }

.current-heading .current-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: #77ddff;
  background:
    radial-gradient(circle at 30% 22%, rgba(94,207,255,.22), transparent 34%),
    linear-gradient(145deg,#116ca9,#0b416c);
  border: 1px solid rgba(88,199,255,.86);
  box-shadow: inset 0 0 16px rgba(104,205,255,.11), 0 8px 20px rgba(0,91,158,.18);
}
.current-heading .current-icon svg { width: 23px; height: 23px; }
.current-heading > div { min-width: 0; }

.approval-heading .approval-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #ffd45f;
  background: linear-gradient(145deg, rgba(118,82,4,.56), rgba(53,39,8,.90));
  border: 1px solid rgba(255,202,65,.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 14px rgba(255,183,33,.08);
}
.approval-heading .approval-icon svg { width: 16px; height: 16px; }

.event-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #84ffe0;
  background: linear-gradient(145deg,#0b8c67,#07543f);
  border: 1px solid rgba(38,221,164,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 5px 14px rgba(0,0,0,.14);
}
.event-icon svg { width: 17px; height: 17px; }
.event-icon--stage {
  color: #7dd7ff;
  background: linear-gradient(145deg,#0a68a8,#08446f);
  border-color: rgba(55,177,244,.72);
}
.event-icon--file {
  color: #dceeff;
  background: linear-gradient(145deg,#466680,#2b4359);
  border-color: rgba(128,171,207,.68);
}

.doc-thumb {
  position: relative;
  width: 44px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #2574a8;
  background: linear-gradient(155deg,#fbfdff 0%,#d9edf9 52%,#a5cadf 100%);
  border: 1px solid rgba(219,242,255,.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 5px 12px rgba(0,0,0,.15);
}
.doc-thumb::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 8px;
  right: 8px;
  height: 3px;
  border-radius: 3px;
  background: #5ba9d3;
  box-shadow: 0 7px 0 rgba(71,145,186,.75), 0 14px 0 rgba(71,145,186,.54), 0 21px 0 rgba(71,145,186,.38);
}
.doc-thumb svg { display: none; }

.latest-heading h2 {
  min-width: 0;
  line-height: 1.15;
}

.event-row > div,
.document-row > div,
.message-row > div,
.approval-item > div:not(.approval-thumb),
.current-work-checklist li i,
.next-step > div {
  min-width: 0;
}

.event-row strong,
.event-row small,
.document-row strong,
.document-row small,
.message-row p,
.approval-item p,
.current-work-checklist li i,
.next-step p {
  overflow-wrap: anywhere;
}

.project-tabs {
  max-width: 100%;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}


/* Phase 1 UI polish v3 — 2026-10-06
   Official logo preview hardening, desktop latest-card headers,
   and mobile 3x2 project navigation for iOS / Android / Samsung. */
.brand-lockup {
  min-width: 0;
  overflow: hidden;
}
.brand-logo {
  display: block;
  width: 100%;
  max-width: 206px;
  height: auto;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
  border: 0;
}
.mobile-brand .brand-logo,
.brand-logo--mobile {
  width: min(154px, 100%);
  max-width: 154px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
  border: 0;
}

.tab-icon { display: none; }
.tab-label { min-width: 0; }

/* Prevent the action pills from covering long headings on desktop/tablet cards. */
.latest-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 10px;
  row-gap: 7px;
}
.latest-heading h2 {
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.18;
}
.latest-heading a {
  position: relative;
  z-index: 1;
  justify-self: end;
  max-width: 100%;
  white-space: nowrap;
}


/* Phase 1 UI polish v4 — 2026-10-06
   History icon completion, next-step visual refinement, avatar centering. */

/* Span-based avatars were inheriting display:block from account/contact text rules.
   Reassert a single centering contract for every avatar variant. */
.avatar,
.account-card .avatar,
.contact-card .avatar,
.message-row .avatar {
  display: grid;
  place-items: center;
  align-content: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.account-card .avatar--small {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 17px;
  font-weight: 500;
}

/* A calmer step-forward mark that belongs to the same glass icon family
   as the rest of the workspace instead of reading as a floating CTA. */
.next-step { align-items: center; }
.next-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  color: #82d8ff;
  background:
    radial-gradient(circle at 28% 20%, rgba(110,213,255,.20), transparent 36%),
    linear-gradient(145deg, rgba(16,102,166,.95), rgba(7,58,102,.96));
  border: 1px solid rgba(85,190,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 6px 18px rgba(0,91,158,.16);
  font-size: 0;
}
.next-arrow svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

/* Make the new mobile History glyph visually match the other project tabs. */


/* Phase 2 — Client home / project cards */
.brand-lockup,
.mobile-brand { text-decoration: none; }
.dashboard-page {
  padding: 22px 26px 36px;
  max-width: 1600px;
  margin: 0 auto;
}
.dashboard-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  gap: 22px;
  padding: 24px;
  align-items: stretch;
}
.dashboard-welcome__intro { min-width: 0; }
.dashboard-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #77c9ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
}
.dashboard-welcome h1,
.projects-index-hero h1 {
  margin: 0;
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.08;
}
.dashboard-welcome__intro > p,
.projects-index-hero p {
  margin: 9px 0 0;
  max-width: 760px;
  color: #bed0df;
  font-size: 14px;
  line-height: 1.55;
}
.client-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.client-meta-pills > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(83, 154, 204, .28);
  border-radius: 10px;
  background: rgba(6, 28, 46, .54);
  color: #c8d7e4;
  font-size: 11px;
  line-height: 1;
}
.client-meta-pills svg { width: 14px; height: 14px; color: #74caff; flex: 0 0 auto; }
.dashboard-contact {
  min-width: 0;
  border-left: 1px solid rgba(79, 145, 193, .24);
  padding: 2px 0 2px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dashboard-contact__label { color: var(--muted); font-size: 10px; margin-bottom: 10px; }
.dashboard-contact__person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.dashboard-contact__person .avatar--contact {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, #1f78be, #0e406d);
  border-color: rgba(105, 197, 255, .72);
  font-size: 12px;
  font-weight: 800;
}
.dashboard-contact__person div { min-width: 0; }
.dashboard-contact__person strong { display: block; font-size: 14px; }
.dashboard-contact__person small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.dashboard-contact__actions { display: flex; gap: 9px; margin: 14px 0 0 59px; }
.dashboard-contact__actions button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(80, 173, 235, .48);
  background: linear-gradient(145deg, rgba(9, 72, 119, .95), rgba(5, 42, 72, .95));
  color: #6dccff;
}
.dashboard-contact__actions svg { width: 17px; height: 17px; }

.dashboard-attention {
  margin-top: 14px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-color: rgba(218, 159, 21, .62);
  background: linear-gradient(135deg, rgba(52, 43, 18, .96), rgba(18, 28, 34, .96));
}
.dashboard-attention__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(255, 194, 49, .65);
  background: rgba(104, 76, 7, .34);
  color: var(--yellow);
}
.dashboard-attention__icon svg { width: 20px; height: 20px; }
.dashboard-attention__copy { min-width: 0; }
.dashboard-attention__heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.dashboard-attention__heading h2 { margin: 0; color: #ffd45f; font-size: 15px; }
.dashboard-attention__heading span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffd45f;
  color: #2d250f;
  font-size: 9px;
  font-weight: 800;
}
.dashboard-attention__copy > strong { display: block; font-size: 12px; }
.dashboard-attention__copy p { margin: 4px 0 0; color: #d7c99f; font-size: 11px; }
.dashboard-attention__button { min-width: 220px; justify-content: center; }

.dashboard-section { margin-top: 24px; }
.dashboard-section__heading,
.projects-index-hero__row,
.projects-index-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.dashboard-section__heading h2,
.projects-index-section__heading h2 { margin: 0; font-size: 20px; }
.dashboard-section__heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.dashboard-section__actions { display: flex; align-items: center; gap: 10px; }
.dashboard-section__actions > a,
.latest-heading a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(58, 146, 209, .46);
  border-radius: 999px;
  color: #9ed8ff;
  text-decoration: none;
  background: rgba(6, 49, 82, .54);
  font-size: 10px;
}
.dashboard-section__actions > a svg,
.latest-heading a svg { width: 13px; height: 13px; }
.count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(84, 157, 205, .28);
  color: #b6cadb;
  background: rgba(9, 34, 53, .6);
  font-size: 10px;
  white-space: nowrap;
}
.workspace-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 13px;
}
.workspace-project-card {
  position: relative;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
}
.workspace-project-card.has-attention {
  border-color: rgba(210, 159, 32, .62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02), 0 14px 38px rgba(0,0,0,.22), 0 0 26px rgba(199, 144, 10, .06);
}
.workspace-project-card__top {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
}
.workspace-project-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  color: #79d2ff;
  border: 1px solid rgba(75, 175, 237, .62);
  background: radial-gradient(circle at 30% 22%, rgba(96, 210, 255, .20), transparent 35%), linear-gradient(145deg, #0d4d7a, #072b49);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 9px 22px rgba(0, 93, 154, .16);
}
.workspace-project-icon svg { width: 28px; height: 28px; stroke-width: 1.55; }
.workspace-project-card__identity { min-width: 0; }
.workspace-project-card__identity h3 { margin: 6px 0 5px; font-size: 18px; line-height: 1.14; }
.workspace-project-card__identity p { margin: 0; color: #b8cad8; font-size: 11px; line-height: 1.45; }
.workspace-project-card__top > .status-pill { align-self: start; white-space: nowrap; }
.workspace-project-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(218, 159, 21, .5);
  background: rgba(82, 60, 8, .24);
  color: #ffd15c;
  font-size: 9px;
  font-weight: 750;
}
.workspace-project-alert svg { width: 13px; height: 13px; }
.workspace-project-progress { margin-top: 16px; }
.workspace-project-progress__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.workspace-project-progress__head strong { color: #fff; font-size: 14px; }
.workspace-project-progress__bar { height: 7px; margin-top: 7px; border-radius: 999px; background: rgba(58, 88, 112, .32); overflow: hidden; }
.workspace-project-progress__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #39dc91, #39c8ff, #287eff); box-shadow: 0 0 13px rgba(48, 166, 255, .24); }
.workspace-project-facts {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, .7fr);
  gap: 14px;
  margin: 15px 0 0;
  padding: 13px 0;
  border-top: 1px solid rgba(74, 132, 175, .18);
  border-bottom: 1px solid rgba(74, 132, 175, .18);
}
.workspace-project-facts div { min-width: 0; }
.workspace-project-facts dt { color: var(--muted); font-size: 9px; margin-bottom: 5px; }
.workspace-project-facts dd { margin: 0; color: #eef6fc; font-size: 11px; font-weight: 650; line-height: 1.35; }
.workspace-project-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(57, 163, 236, .56);
  background: linear-gradient(90deg, rgba(9, 91, 151, .62), rgba(7, 54, 92, .5));
  color: #dff4ff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 750;
}
.workspace-project-open:hover { border-color: rgba(83, 194, 255, .82); background: linear-gradient(90deg, rgba(12, 111, 181, .72), rgba(7, 64, 107, .62)); }
.workspace-project-open svg { width: 15px; height: 15px; }

.dashboard-activity { margin-top: 18px; padding: 18px; }
.dashboard-event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin-top: 9px; }
.dashboard-event {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(71, 126, 166, .17);
}
.dashboard-event:nth-child(-n+2) { border-top: 0; }
.dashboard-event .event-icon { width: 34px; height: 34px; }
.dashboard-event > div { min-width: 0; }
.project-chip {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 4px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(43, 112, 164, .18);
  border: 1px solid rgba(66, 148, 207, .25);
  color: #82caff;
  font-size: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-event strong { display: block; font-size: 11px; line-height: 1.35; }
.dashboard-event time { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }

.projects-index-page { padding-top: 24px; }
.projects-index-hero { padding: 4px 2px 18px; }
.projects-index-hero__row { align-items: center; }
.projects-index-section { margin-top: 4px; }
.projects-index-section__heading { align-items: center; }
.projects-index-section__heading > span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(35, 132, 239, .18);
  border: 1px solid rgba(63, 151, 225, .32);
  color: #9dd6ff;
  font-size: 10px;
}
.projects-index-completed { margin-top: 20px; padding: 18px; }
.empty-projects { display: flex; align-items: center; gap: 10px; padding: 17px 0 2px; color: var(--muted); }
.empty-projects > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(30, 134, 91, .18); border: 1px solid rgba(66, 220, 143, .35); color: #55e59c; }
.empty-projects p { margin: 0; font-size: 11px; }


.client-action-panel--top { min-height: 206px; align-content: center; }


/* Phase 2 refinement v2 — aligned project actions + floating language switcher */
.workspace-project-grid {
  align-items: stretch;
}
.workspace-project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.workspace-project-facts {
  margin-bottom: 12px;
}
.workspace-project-open {
  margin-top: auto;
}

.floating-language-switcher {
  position: fixed;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 85;
  background: rgba(6,17,28,.94);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dashboard-page,
.project-page {
  padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}

/* Stage line can now follow the active stage of each concrete project. */
.stage-track:before {
  background: linear-gradient(
    90deg,
    #38df8a 0 var(--stage-done-end, 54%),
    #3497ff var(--stage-done-end, 54%) var(--stage-active-end, 68%),
    #405a72 var(--stage-active-end, 68%)
  );
}


/* Phase 2 refinement v3 — mobile project status stays in the top-right corner. */


/* Phase 2 v4 — canonical mobile Project Card header.
   Every project card, including future dynamically-added cards, uses the same
   top-left project icon + top-right status layout without overlapping content. */

/* Project Stages v1.0 — base component styles.
   Responsive behavior lives in client-workspace-responsive-v5.css. */
.stage--action .stage-node {
  width: 30px;
  height: 30px;
  margin-top: -2px;
  margin-bottom: 10px;
  background: #6a4d08;
  border: 3px solid #ffd15c;
  color: #fff1ba;
  box-shadow: 0 0 14px rgba(255, 199, 63, .34);
}

.stages-summary-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .72fr) minmax(230px, .82fr);
  gap: 20px;
  align-items: center;
  margin-top: 12px;
  padding: 18px;
}
.stages-summary-copy,
.stages-summary-progress,
.stages-current-summary,
.stage-card,
.stage-card__heading,
.stage-card__heading > div,
.stage-card__meta,
.stage-card__expanded,
.stage-detail-block,
.stage-client-action,
.stage-client-action > div,
.stage-related-grid,
.stage-related-card,
.stage-related-row,
.stage-related-row > div,
.stage-completed-details,
.stage-completed-details__body {
  min-width: 0;
}
.stages-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #7ecbff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}
.stages-summary-copy h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}
.stages-summary-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.stages-summary-progress {
  padding: 2px 0;
}
.stages-summary-progress__value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.stages-summary-progress__value strong {
  font-size: 24px;
  line-height: 1;
  color: #ecf8ff;
}
.stages-summary-progress__value span {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}
.stages-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(67, 101, 128, .32);
  border: 1px solid rgba(90, 149, 192, .22);
}
.stages-progress-bar > span {
  display: block;
  width: var(--stage-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d80ff, #43d9ff);
  box-shadow: 0 0 16px rgba(49, 167, 255, .34);
}
.stages-current-summary {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(73, 149, 205, .3);
  border-radius: 12px;
  background: rgba(5, 28, 46, .55);
}
.stages-current-summary > span:first-child {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.stages-current-summary > strong {
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.stages-roadmap {
  position: relative;
  margin-top: 14px;
}
.stages-roadmap::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 27px;
  width: 2px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(52, 209, 139, .9), rgba(58, 150, 224, .7) 55%, rgba(64, 90, 114, .55));
}
.stage-roadmap-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
}
.stage-roadmap-item:last-child { padding-bottom: 0; }
.stage-rail {
  display: flex;
  justify-content: center;
  padding-top: 18px;
}
.stage-marker {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  border: 2px solid #66849d;
  background: #102b42;
  color: #a9bdcd;
  box-shadow: 0 0 0 6px #05111d;
}
.stage-marker svg { width: 17px; height: 17px; }
.stage-roadmap-item--done .stage-marker {
  border-color: #46df95;
  background: #0d6348;
  color: #91ffc6;
}
.stage-roadmap-item--active .stage-marker {
  border-color: #61bfff;
  background: #115f9b;
  color: #d7f2ff;
  box-shadow: 0 0 0 6px #05111d, 0 0 18px rgba(47, 161, 255, .28);
}
.stage-roadmap-item--action .stage-marker {
  border-color: #ffd15c;
  background: #6f5008;
  color: #fff0b6;
  box-shadow: 0 0 0 6px #05111d, 0 0 18px rgba(255, 192, 45, .2);
}
.stage-roadmap-item--paused .stage-marker {
  border-color: #9aaabd;
  background: #334353;
  color: #e2e8ef;
}
.stage-roadmap-item--future .stage-marker {
  border-color: #45627a;
  background: #0b2337;
  color: #7892a7;
}

.stage-card {
  padding: 17px 18px;
}
.stage-card--active {
  border-color: rgba(75, 179, 248, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02), 0 14px 38px rgba(0,0,0,.24), 0 0 24px rgba(36, 149, 236, .08);
}
.stage-card--action {
  border-color: rgba(224, 170, 45, .62);
  background: linear-gradient(135deg, rgba(52, 43, 17, .72), rgba(7, 27, 43, .95) 52%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 14px 38px rgba(0,0,0,.24), 0 0 24px rgba(210, 158, 31, .07);
}
.stage-card--future { opacity: .82; }
.stage-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}
.stage-card__heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.stage-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(77, 153, 209, .32);
  background: rgba(11, 54, 85, .52);
  color: #88cdf8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.stage-roadmap-item--done .stage-number { color: #7bf0ae; border-color: rgba(62, 211, 137, .32); background: rgba(12, 85, 61, .34); }
.stage-roadmap-item--action .stage-number { color: #ffd979; border-color: rgba(241, 189, 61, .36); background: rgba(97, 69, 6, .3); }
.stage-card__heading h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.stage-card__heading p {
  margin: 5px 0 0;
  color: #b9cad8;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.stage-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  max-width: 360px;
}
.stage-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(104, 142, 172, .42);
  background: rgba(31, 54, 73, .5);
  color: #c6d4df;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.stage-status--done { color: #79efad; border-color: rgba(57, 214, 134, .48); background: rgba(10, 77, 54, .42); }
.stage-status--active { color: #9ddcff; border-color: rgba(68, 169, 238, .55); background: rgba(10, 73, 117, .46); }
.stage-status--action { color: #ffd970; border-color: rgba(235, 184, 58, .58); background: rgba(93, 67, 8, .45); }
.stage-status--paused { color: #d1d9e2; border-color: rgba(151, 165, 181, .42); background: rgba(68, 80, 92, .42); }
.stage-status--future { color: #94a8ba; border-color: rgba(88, 119, 145, .35); background: rgba(26, 47, 65, .4); }
.stage-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  color: #aebfce;
  font-size: 10px;
  white-space: nowrap;
}
.stage-period svg { width: 14px; height: 14px; color: #65bfff; }

.stage-card__expanded {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(85, 139, 177, .2);
}
.stage-detail-block {
  padding: 13px 14px;
  border: 1px solid rgba(67, 128, 172, .25);
  border-radius: 11px;
  background: rgba(5, 27, 44, .44);
}
.stage-detail-block--wide { grid-column: 1 / -1; }
.stage-detail-label {
  display: block;
  margin-bottom: 8px;
  color: #76caff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.stage-detail-block > p,
.stage-next-step p {
  margin: 0;
  color: #c9d6e1;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.stage-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stage-checklist li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: #d2dee8;
  font-size: 11px;
  line-height: 1.45;
}
.stage-checklist li > span:first-child {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: -1px;
  border-radius: 50%;
  background: rgba(39, 193, 112, .18);
  border: 1px solid rgba(65, 223, 143, .42);
  color: #6aedaa;
}
.stage-checklist li svg { width: 12px; height: 12px; }
.stage-checklist li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.stage-next-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.stage-next-step > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(23, 111, 184, .75), rgba(10, 61, 105, .88));
  border: 1px solid rgba(81, 181, 245, .45);
  color: #9bdcff;
}
.stage-next-step svg { width: 17px; height: 17px; }

.stage-client-action {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(241, 186, 52, .54);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(88, 65, 10, .46), rgba(36, 31, 18, .5));
}
.stage-client-action__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(116, 82, 5, .56);
  border: 1px solid rgba(255, 204, 77, .55);
  color: #ffd767;
}
.stage-client-action__icon svg { width: 19px; height: 19px; }
.stage-client-action strong {
  display: block;
  color: #ffe397;
  font-size: 12px;
}
.stage-client-action p {
  margin: 4px 0 0;
  color: #d7c9a1;
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.stage-client-action__button {
  min-width: 190px;
  min-height: 40px;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.stage-related-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.stage-related-card {
  overflow: hidden;
  border: 1px solid rgba(70, 135, 181, .26);
  border-radius: 11px;
  background: rgba(5, 27, 44, .42);
}
.stage-related-card--approval { border-color: rgba(209, 160, 42, .3); }
.stage-related-card__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(74, 126, 164, .2);
}
.stage-related-card__heading > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: rgba(22, 95, 147, .46);
  color: #85d1ff;
}
.stage-related-card__heading svg { width: 14px; height: 14px; }
.stage-related-card__heading strong { font-size: 10px; }
.stage-related-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 9px 12px;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid rgba(72, 119, 153, .13);
}
.stage-related-card__heading + .stage-related-row { border-top: 0; }
.stage-related-row strong,
.stage-related-row small {
  display: block;
  overflow-wrap: anywhere;
}
.stage-related-row strong { font-size: 10px; }
.stage-related-row small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.stage-related-row > svg { width: 14px; height: 14px; color: #79caff; }

.stage-completed-details {
  margin-top: 12px;
  border-top: 1px solid rgba(75, 127, 164, .18);
}
.stage-completed-details summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding-top: 6px;
  color: #8ed3ff;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.stage-completed-details summary::-webkit-details-marker { display: none; }
.stage-completed-details summary svg { width: 13px; height: 13px; transition: transform .18s ease; }
.stage-completed-details[open] summary svg { transform: rotate(90deg); }
.stage-completed-details__body {
  display: grid;
  gap: 12px;
  padding: 3px 0 4px;
}
.stage-completed-details__body > p {
  margin: 0;
  color: #bfceda;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.stage-completed-documents {
  overflow: hidden;
  border: 1px solid rgba(70, 135, 181, .22);
  border-radius: 10px;
  background: rgba(5, 27, 44, .34);
}
.stages-footnote {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0 68px;
  padding: 11px 13px;
  border: 1px solid rgba(71, 123, 159, .22);
  border-radius: 11px;
  color: #9eb1c1;
  background: rgba(5, 22, 36, .42);
}
.stages-footnote svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; color: #70bde9; }
.stages-footnote p { margin: 0; font-size: 9px; line-height: 1.5; }


/* R1-D CLIENT UI RESTORATION - STAGING REVIEW */
/* A&A ITLab — Client Workspace | R1-D client component restoration.
   Deliberately scoped to the client views; existing dashboard, hero, stages
   and navigation remain styled by the established foundation. */

/* Shared components, keyboard access and long bilingual content */
.workspace-body .global-page,
.workspace-body .profile-page,
.workspace-body .documents-page,
.workspace-body .approvals-page,
.workspace-body .messages-page,
.workspace-body .history-project-page {min-width:0}
.workspace-body .global-page {width:min(100%, 1480px);margin:0 auto;padding:22px 26px 44px}
.workspace-body .global-page *,
.workspace-body .profile-page *,
.workspace-body .documents-page *,
.workspace-body .approvals-page *,
.workspace-body .messages-workspace * {min-width:0}
.workspace-body :is(.global-page,.profile-page,.documents-page,.approvals-page,.messages-workspace) :is(h1,h2,h3,p) {overflow-wrap:anywhere}
.workspace-body :is(.global-page,.profile-page,.documents-page,.approvals-page,.messages-workspace) :is(a,button,input,textarea,select):focus-visible,
.auth-body :is(a,button,input,textarea):focus-visible {outline:2px solid #80d7ff;outline-offset:3px}
.workspace-body :is(.global-page,.profile-page,.documents-page,.approvals-page,.messages-workspace) a {text-underline-offset:3px}
.workspace-body :is(.global-page,.profile-page,.documents-page,.approvals-page,.messages-workspace) button {font:inherit;cursor:pointer}
.workspace-body :is(.global-page,.profile-page,.documents-page,.approvals-page,.messages-workspace) button:disabled,
.auth-body button:disabled {opacity:.52;cursor:not-allowed}
.workspace-body :is(.global-page,.profile-page,.documents-page,.approvals-page,.messages-workspace) :is(input,textarea,select) {font:inherit;color:#f0f7ff;max-width:100%}
.workspace-body :is(.global-page,.profile-page,.documents-page,.approvals-page,.messages-workspace) textarea {resize:vertical}
.workspace-body :is(.global-page,.profile-page,.documents-page,.approvals-page,.messages-workspace) :is(input,textarea)::placeholder {color:#829bb2}
.workspace-body :is(.global-page,.profile-page,.documents-page,.approvals-page,.messages-workspace) :is(a,button) svg {flex:none}
.workspace-body :is(.global-page,.profile-page,.documents-page,.approvals-page,.messages-workspace) :is(.panel,.global-approval-card,.document-card,.approval-card) {min-width:0}

/* Authentication pages use a separate workspace-auth layout. */
.auth-body {min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:38px 18px 65px;background:radial-gradient(circle at 17% 0,rgba(33,120,190,.20),transparent 38%),radial-gradient(circle at 86% 88%,rgba(26,74,128,.18),transparent 39%),#05101c}
.auth-shell {width:min(100%,520px);margin:0 auto;display:flex;flex-direction:column;align-items:stretch;gap:22px}
.auth-brand {display:flex;justify-content:center;align-items:center;padding:5px 0 8px;min-height:76px}
.auth-brand .brand-logo {width:auto;max-width:min(260px,90%);max-height:76px;height:auto;object-fit:contain}
.auth-card {width:100%;min-width:0;padding:34px 36px;border:1px solid rgba(111,173,220,.34);border-radius:18px;background:linear-gradient(147deg,rgba(16,45,70,.98),rgba(7,23,39,.98));box-shadow:0 25px 72px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.04)}
.auth-eyebrow {display:block;color:#86caff;font-size:11px;font-weight:750;letter-spacing:.13em;text-transform:uppercase;margin-bottom:9px}
.auth-card h1 {font-size:clamp(23px,3vw,29px);line-height:1.2;margin:0 0 12px;letter-spacing:-.025em}
.auth-intro,.auth-greeting,.auth-card>p {font-size:13px;line-height:1.65;color:#b7cce0;margin:0 0 22px}
.auth-greeting {color:#f3f8ff;font-weight:700;margin-bottom:8px}
.auth-form {display:grid;gap:17px}.auth-form--compact {gap:18px}
.auth-field {display:grid;gap:8px;min-width:0}
.auth-field>label {font-size:12px;font-weight:700;color:#e5f1fa}
.auth-input-wrap {position:relative;display:flex;align-items:center;border:1px solid rgba(111,172,211,.43);border-radius:10px;background:rgba(4,17,30,.64);min-height:46px;transition:border-color .2s,box-shadow .2s}
.auth-input-wrap:focus-within {border-color:#59bfff;box-shadow:0 0 0 3px rgba(63,160,245,.12)}
.auth-input-wrap.has-error {border-color:#e88691}
.auth-input {border:0!important;outline:none!important;box-shadow:none!important;background:transparent!important;color:#fff!important;font:inherit;font-size:14px;width:100%;min-width:0;min-height:44px;padding:10px 13px}
.auth-input::placeholder {color:#8fa6bb}
.auth-password-toggle {display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;background:transparent;color:#a6cbe8;cursor:pointer}
.auth-password-toggle svg {width:19px;height:19px}
.auth-password-toggle svg[hidden] {display:none!important}
.auth-field-error {font-size:11px;line-height:1.5;color:#ffadb4;margin:0}
.auth-field-hint {font-size:11px;color:#9fb5c9;line-height:1.5;margin:0}
.auth-field-error[hidden] {display:none}
.auth-checkbox {display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.5;color:#bed0df;cursor:pointer}
.auth-checkbox input {width:16px;height:16px;margin:2px 0 0;flex:none;accent-color:#50b1fa}
.auth-checkbox a,.auth-text-link {color:#8dd2ff;text-decoration:none;font-weight:650}
.auth-text-link:hover,.auth-checkbox a:hover {text-decoration:underline}
.auth-login-row {display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center}
.auth-primary-button,.auth-secondary-button {display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:12px 18px;border-radius:10px;text-decoration:none;text-align:center;font-size:13px;font-weight:800;cursor:pointer;transition:filter .18s,transform .18s}
.auth-primary-button {width:100%;border:1px solid rgba(255,226,150,.60);background:linear-gradient(180deg,#f4d98f,#e6bd66);color:#21200f;box-shadow:0 9px 20px rgba(0,0,0,.18)}
.auth-secondary-button {border:1px solid rgba(106,169,213,.43);background:rgba(13,52,82,.7);color:#dbf0ff}
.auth-primary-button:hover,.auth-secondary-button:hover {filter:brightness(1.08)}
.auth-primary-button:active,.auth-secondary-button:active {transform:translateY(1px)}
.auth-access-note {margin:20px 0 0!important;padding-top:15px;border-top:1px solid rgba(85,144,185,.22);text-align:center;color:#94a9bb!important;font-size:11px!important}
.auth-alert {display:flex;gap:12px;align-items:flex-start;margin:0 0 20px;padding:12px;border:1px solid rgba(243,110,126,.42);border-radius:10px;background:rgba(113,29,43,.26)}
.auth-alert>span {display:grid;place-items:center;border-radius:50%;background:#a73e50;width:23px;height:23px;flex:none;font-weight:800}
.auth-alert strong {font-size:12px}.auth-alert p {margin:4px 0 0;color:#ffcad0;font-size:12px;line-height:1.5}
.auth-footer {margin:0;text-align:center;color:#829bb0;font-size:11px;line-height:1.6}
.auth-inline-actions {margin-top:18px;text-align:center;font-size:12px}
.auth-invite-meta,.auth-readonly {display:grid;gap:11px;margin:0 0 20px;padding:15px;border:1px solid rgba(79,139,184,.28);background:rgba(2,15,26,.42);border-radius:10px}
.auth-meta-item,.auth-readonly {min-width:0}.auth-meta-item span,.auth-readonly>span {display:block;font-size:11px;color:#95afc6;margin-bottom:4px}.auth-meta-item strong,.auth-readonly strong {font-size:12px;overflow-wrap:anywhere}
.auth-state {text-align:center}.auth-state>p {margin:12px 0 20px}.auth-state-icon {width:56px;height:56px;margin:0 auto 17px;border-radius:16px;display:grid;place-items:center;background:rgba(26,108,167,.27);border:1px solid rgba(102,194,246,.35);color:#95ddff}
.auth-state--success .auth-state-icon {color:#86e9b7;background:rgba(15,92,65,.35)}
.auth-state--warning .auth-state-icon {color:#f2d68a;background:rgba(119,87,20,.23)}
.auth-state--danger .auth-state-icon {color:#ff9fa9;background:rgba(109,34,46,.30)}
.auth-state-icon svg {width:26px;height:26px}.auth-state-actions {display:flex;flex-direction:column;gap:10px;margin-top:24px}.auth-state-actions .auth-secondary-button {width:100%}
.auth-submit-spinner {width:16px;height:16px;border:2px solid currentColor;border-bottom-color:transparent;border-radius:50%;animation:auth-r1d-spin .9s linear infinite}
@keyframes auth-r1d-spin {to{transform:rotate(360deg)}}
.auth-body .floating-language-switcher {position:fixed;right:14px;bottom:14px;z-index:5;box-shadow:0 9px 20px rgba(0,0,0,.25)}

/* Common global hub headers, filters, buttons and empty states */
.global-page-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:2px 0 20px}
.global-page-heading>span,.global-page-heading>div>span {display:block;color:#71bff5;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.12em;margin-bottom:8px}
.global-page-heading h1 {margin:0;font-size:clamp(23px,3vw,29px);line-height:1.2;letter-spacing:-.025em}
.global-page-heading p {margin:9px 0 0;color:#b5c9da;line-height:1.6;font-size:13px;max-width:780px}
.global-card-project {display:grid;gap:3px;min-width:0}
.global-card-project>span {font-size:10px;color:#8baccc}
.global-card-project strong {font-size:12px;color:#e7f5ff;line-height:1.4}
.global-card-project a {color:inherit;text-decoration:none}.global-card-project a:hover {text-decoration:underline}
.global-filter-panel,.history-filter-panel {display:grid;gap:14px;padding:17px 18px;margin-bottom:18px}
.global-project-filter,.global-type-filter,.history-filter-chips {display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.global-project-filter--panel {padding:14px 17px;margin-bottom:20px}
.global-filter-chip {display:inline-flex;align-items:center;justify-content:center;min-height:34px;max-width:100%;padding:7px 13px;border:1px solid rgba(89,148,194,.36);border-radius:20px;background:rgba(14,50,78,.54);color:#bed9ec;text-decoration:none;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.global-filter-chip--secondary {background:rgba(5,28,47,.52);border-color:rgba(86,133,170,.30)}
.global-filter-chip.is-active {border-color:#57bafb;background:rgba(25,114,178,.36);color:#fff;box-shadow:inset 0 0 0 1px rgba(84,193,255,.15)}
.global-filter-chip:hover {border-color:#68b9eb;color:#fff}
.global-search {display:flex;align-items:center;gap:10px;min-height:42px;padding:0 12px;border-radius:9px;border:1px solid rgba(85,153,202,.34);background:rgba(2,17,29,.57)}
.global-search svg {color:#87beda;width:17px;height:17px}
.global-search input {flex:1;min-width:0;border:0;background:transparent;outline:0;padding:10px 0;color:white;font-size:13px}
.global-primary-link,.global-secondary-link {display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:38px;padding:9px 14px;border-radius:9px;font:inherit;font-size:12px;font-weight:750;text-decoration:none;cursor:pointer;max-width:100%;text-align:center}
.global-primary-link {border:1px solid rgba(76,164,230,.65);background:linear-gradient(180deg,#1978be,#0c517f);color:#f7fcff}
.global-primary-link--action {border-color:#f1cb70;background:linear-gradient(180deg,#f7d988,#e8bf65);color:#241e0d}
.global-secondary-link {border:1px solid rgba(97,158,205,.38);background:rgba(16,66,102,.32);color:#9bdaff}
.global-primary-link:hover,.global-secondary-link:hover {filter:brightness(1.11)}
.global-primary-link svg,.global-secondary-link svg {width:15px;height:15px}
.global-empty-state,.history-empty-state,.notification-empty-state {display:flex;align-items:center;justify-content:center;gap:14px;min-height:130px;padding:28px;color:#b8ccdd;text-align:center}
.global-empty-state svg,.history-empty-state>span,.notification-empty-state>span {display:grid;place-items:center;width:42px;height:42px;flex:none;color:#91d7ff}
.global-empty-state p,.history-empty-state p,.notification-empty-state p {font-size:13px;line-height:1.5;margin:6px 0 0}
.history-empty-state strong,.notification-empty-state strong {font-size:14px;color:#edf6ff}

/* Project documents */
.documents-toolbar-panel {display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,330px);gap:12px 24px;align-items:center;margin:18px 0 16px;padding:20px}
.documents-eyebrow,.approvals-eyebrow,.messages-eyebrow {display:block;color:#79c9fa;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;margin-bottom:8px}
.documents-heading h2,.approvals-heading h2 {font-size:21px;margin:0 0 7px}
.documents-heading p,.approvals-heading p {color:#afc5d8;font-size:12px;line-height:1.6;margin:0}
.documents-search {display:flex;align-items:center;gap:10px;border-radius:10px;background:rgba(3,19,33,.58);border:1px solid rgba(88,152,202,.38);padding:0 11px;min-height:42px}
.documents-search>span {display:flex;color:#8bc7ed}.documents-search input {min-width:0;flex:1;width:100%;padding:10px 0;border:0;background:transparent;outline:0;font-size:13px}
.documents-filter-chips {grid-column:1/-1;display:flex;flex-wrap:wrap;gap:7px;padding-top:12px;border-top:1px solid rgba(77,135,173,.2)}
.document-filter-chip {padding:8px 12px;border-radius:20px;border:1px solid rgba(95,153,193,.32);background:rgba(8,43,69,.48);color:#bcd7e9;font-size:12px;text-decoration:none}
.document-filter-chip.is-active {color:white;background:rgba(23,111,176,.40);border-color:#55b6f8}
.documents-archive-link,.documents-archive-heading a {display:inline-flex;align-items:center;gap:8px;color:#9dd8ff;font-size:12px;text-decoration:none}
.documents-archive-link {grid-column:1/-1}.documents-archive-heading {grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:10px}
.documents-list {display:grid;gap:14px}.document-card {overflow:hidden;padding:0}.document-card--archive {opacity:.82}
.document-card__header {display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:20px 22px;border-bottom:1px solid rgba(76,134,178,.25)}
.document-card__title-group {display:flex;align-items:flex-start;gap:14px;min-width:0;flex:1}
.document-file-icon,.global-document-icon {display:grid;place-items:center;flex:none;width:48px;height:52px;border-radius:11px;border:1px solid rgba(88,180,241,.46);background:linear-gradient(145deg,#174d75,#0b2945);color:#8dd7ff}
.document-file-icon svg,.global-document-icon svg {width:24px;height:24px}
.document-card__title-group h2 {font-size:17px;line-height:1.3;margin:0 0 10px}
.document-badges,.global-card-badges {display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.document-badges>span,.global-card-badges>span,.document-status-badge {display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:750;line-height:1.3;border:1px solid rgba(105,160,204,.34);background:rgba(15,55,85,.7);border-radius:20px;padding:5px 9px;color:#c7e4f8}
.document-approval-badge,.global-card-badges .is-action {border-color:rgba(244,198,83,.45)!important;background:rgba(126,89,16,.19)!important;color:#f3d887!important}
.document-status-badge--current,.global-card-badges .is-current {color:#9ff3c5!important;border-color:rgba(68,190,126,.37)!important}
.document-status-badge--archive,.global-card-badges .is-archive {color:#b9bed0!important}
.document-status-badge--previous {color:#aec9de}
.document-meta {display:grid;gap:7px;text-align:right;color:#9fb8cc;font-size:11px;white-space:nowrap}
.document-meta span {display:flex;align-items:center;justify-content:flex-end;gap:6px}.document-meta svg {width:13px;height:13px}
.document-card__body {padding:17px 22px 12px}
.document-stage {display:flex;flex-wrap:wrap;align-items:center;gap:9px;font-size:12px;margin-bottom:12px}.document-stage span {color:#9ab6ca}.document-stage strong {color:#e6f3fc}
.document-description {margin:0 0 14px;color:#bdcfde;font-size:12px;line-height:1.65}
.document-approval-callout {display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;border:1px solid rgba(236,193,96,.38);border-radius:11px;background:rgba(117,80,15,.13)}
.document-approval-callout__icon {display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:#f1d381;background:rgba(148,105,24,.28)}
.document-approval-callout strong {font-size:12px}.document-approval-callout p {margin:4px 0 0;color:#dcc79f;font-size:11px;line-height:1.5}
.document-approval-action {min-height:38px;padding:9px 12px;white-space:normal;text-align:center;font-size:11px;text-decoration:none;border-radius:9px}
.document-archive-reason {padding:12px;border-radius:9px;background:rgba(112,87,65,.18);color:#dacaba;font-size:12px}.document-archive-reason p {margin:4px 0 0}
.document-card__footer {display:grid;gap:14px;padding:14px 22px 18px;border-top:1px solid rgba(75,136,180,.20)}
.document-primary-actions {display:flex;flex-wrap:wrap;gap:9px}
.document-action {display:inline-flex;align-items:center;gap:8px;min-height:37px;padding:8px 14px;color:#a3d9ff;text-decoration:none;font-weight:700;font-size:12px;border-radius:9px;border:1px solid rgba(90,161,213,.44);background:rgba(11,62,96,.33)}
.document-action--primary {background:linear-gradient(180deg,#1974b4,#0d507e);color:white}
.document-action:hover {filter:brightness(1.13)}
.document-versions {border-top:1px solid rgba(90,148,184,.22);padding-top:10px}
.document-versions>summary {display:flex;align-items:center;justify-content:space-between;gap:7px;cursor:pointer;color:#99d4ff;font-size:12px;font-weight:700;list-style:none;min-height:28px}
.document-versions>summary::-webkit-details-marker {display:none}
.document-versions>summary svg {transition:transform .2s}
.document-versions[open]>summary svg {transform:rotate(90deg)}
.document-versions__panel {padding:14px 0 0}.document-versions__panel h3 {margin:0 0 10px;font-size:13px}
.document-version-list {display:grid;gap:8px}
.document-version-row {display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid rgba(69,135,185,.3);background:rgba(3,20,34,.45);border-radius:10px;padding:11px 12px}
.document-version-heading {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.document-version-heading strong {font-size:12px}.document-version-meta {display:block;margin-top:5px;color:#93afc6;font-size:11px}
.document-version-main p {font-size:11px;color:#b9d0e0;margin:7px 0 0}
.document-version-actions {display:flex;flex-wrap:wrap;gap:10px}.document-version-actions a {font-size:11px;font-weight:700;color:#83d2ff;text-decoration:none}
.documents-empty-state {display:flex;align-items:center;gap:13px;padding:26px;margin-top:15px}
.documents-empty-state>span {color:#87d2ff}.documents-empty-state strong {font-size:13px}

/* Project approvals */
.approvals-summary-panel {display:flex;justify-content:space-between;align-items:center;gap:22px;margin:18px 0 24px;padding:20px 22px}
.approvals-summary-stats {display:flex;gap:10px}
.approval-stat {min-width:116px;padding:12px 14px;border-radius:10px;text-align:center;background:rgba(9,38,63,.72);border:1px solid rgba(91,151,195,.27)}
.approval-stat strong {display:block;font-size:27px;line-height:1.15}.approval-stat span {display:block;color:#aec3d5;font-size:10px;margin-top:5px;line-height:1.4}
.approval-stat--active strong {color:#f5d47c}
.approvals-section {margin:18px 0 24px}
.approvals-section__heading,.global-approval-section>header,.notification-section>header {display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:12px}
.approvals-section__eyebrow,.global-approval-section>header span,.notification-section>header span {display:block;color:#89bdda;font-size:10px;letter-spacing:.1em;text-transform:uppercase;font-weight:750;margin-bottom:4px}
.approvals-section__heading h2,.global-approval-section>header h2,.notification-section>header h2 {font-size:17px;margin:0}
.approval-count-badge,.global-approval-section>header b,.notification-section>header b {display:grid;place-items:center;border-radius:16px;min-width:28px;height:28px;padding:0 9px;background:rgba(151,108,24,.22);border:1px solid rgba(241,197,94,.45);color:#f5d985;font-size:12px}
.approval-count-badge--muted,.global-approval-section>header b.is-muted {background:rgba(52,82,106,.35);border-color:rgba(111,158,196,.32);color:#b5c8d7}
.approval-card {padding:0;margin-bottom:13px;overflow:hidden}
.approval-card__header {display:flex;justify-content:space-between;align-items:center;gap:14px;padding:19px 21px;border-bottom:1px solid rgba(72,137,179,.22)}
.approval-card__identity {display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.approval-card__identity h3 {font-size:16px;margin:0 0 6px;line-height:1.35}
.approval-card__icon {display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:11px;color:#8fd2ff;background:rgba(17,92,145,.32);border:1px solid rgba(77,158,214,.35)}
.approval-created {color:#94aec4;font-size:11px}
.approval-status {display:inline-flex;justify-content:center;align-items:center;padding:7px 11px;border-radius:20px;font-size:11px;font-weight:750;line-height:1.25;background:rgba(120,82,15,.25);border:1px solid rgba(244,193,81,.43);color:#f7d587;text-align:center}
.approval-status--approved {background:rgba(15,95,62,.27);border-color:rgba(69,196,124,.40);color:#96edbb}
.approval-status--changes_requested {background:rgba(117,41,52,.24);border-color:rgba(240,115,133,.45);color:#ffbdc4}
.approval-status--withdrawn {background:rgba(65,82,104,.32);border-color:rgba(130,155,177,.32);color:#b4c7d7}
.approval-context-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;padding:17px 21px 4px}
.approval-context-grid--completed {padding-bottom:15px}
.approval-context-item {display:grid;align-content:start;gap:6px;min-width:0;border:1px solid rgba(78,135,175,.24);background:rgba(2,20,35,.35);border-radius:10px;padding:12px}
.approval-context-item>span {font-size:10px;color:#9eb7c8}.approval-context-item strong {font-size:12px;line-height:1.45;overflow-wrap:anywhere}.approval-context-item small {color:#99b6c9;font-size:10px}
.approval-description {margin:14px 21px;font-size:12px;line-height:1.65;color:#c2d4e0}
.approval-admin-note,.approval-decision-record {display:flex;gap:11px;margin:12px 21px;padding:13px;border:1px solid rgba(76,147,195,.27);border-radius:11px;background:rgba(16,60,91,.26)}
.approval-admin-note__icon {display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:8px;background:rgba(25,108,158,.30);color:#91d7ff}
.approval-admin-note strong,.approval-decision-record>span {font-size:11px;color:#cdeaff}
.approval-admin-note p,.approval-decision-record p {margin:6px 0 0;font-size:12px;color:#c3d6e4;line-height:1.6}
.approval-decision-record {display:block}.approval-decision-record small {color:#99b3ca}
.approval-material-actions,.approval-card__footer {padding:8px 21px 16px}
.approval-material-link {display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-size:12px;font-weight:750;color:#8bd3ff}
.approval-material-link svg {width:16px;height:16px}
.approval-decision-panel {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;border-top:1px solid rgba(81,144,186,.24);padding:19px 21px 21px;background:rgba(2,17,30,.24)}
.approval-decision-panel form {display:flex;flex-direction:column;gap:11px;min-width:0}
.approval-field {display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}
.approval-field>span {font-size:12px;font-weight:700;color:#d4e8f5}
.approval-field textarea {display:block;width:100%;min-height:86px;border-radius:10px;background:rgba(2,18,31,.7);border:1px solid rgba(96,154,195,.42);padding:11px 12px;font-size:13px;line-height:1.5;resize:vertical}
.approval-field textarea:focus {border-color:#68c7ff;outline:0;box-shadow:0 0 0 3px rgba(72,155,217,.15)}
.approval-confirm {width:100%;min-height:43px;border-radius:10px;padding:11px 14px;font-size:12px;font-weight:800;border:1px solid transparent}
.approval-confirm--approve {background:linear-gradient(180deg,#f6db92,#eac06a);border-color:#f6d689;color:#241c0d}
.approval-confirm--changes {background:rgba(18,68,103,.7);border-color:rgba(103,170,217,.55);color:#daefff}
.approval-confirm:hover {filter:brightness(1.08)}
.approvals-empty-state {display:flex;align-items:center;gap:12px;padding:25px}.approvals-empty-state>span {color:#84e6b9}.approvals-empty-state strong {font-size:13px}.approvals-empty-state p {margin:5px 0 0;color:#b5cbd9;font-size:12px}

/* Global documents and global approvals */
.global-document-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.global-document-card,.global-approval-card {padding:18px 19px;min-width:0}
.global-document-card__head,.global-approval-card__head {display:flex;align-items:flex-start;gap:13px;margin-bottom:12px}
.global-document-card__head>div,.global-approval-card__head>div {flex:1;min-width:0}
.global-document-card__head h2,.global-approval-card__head h3 {font-size:16px;line-height:1.4;margin:6px 0 0}
.global-card-badges {margin:12px 0}.global-document-card>p,.global-approval-card>p {font-size:12px;line-height:1.65;color:#b8cbd9;margin:12px 0}
.global-document-meta {display:grid;gap:6px;border-top:1px solid rgba(94,146,183,.21);padding:12px 0;margin-top:8px}
.global-document-meta>span {color:#9fb9cb;font-size:10px}.global-document-meta strong {font-size:12px}.global-document-meta small {color:#92afc2;font-size:10px}
.global-document-card .global-primary-link {margin-top:8px}
.global-approval-section {margin:21px 0 25px}.global-approval-section--active .global-approval-card {border-color:rgba(235,186,76,.43)}
.global-approval-section>header {margin-bottom:12px}.global-completed-approvals {display:grid;gap:12px}
.global-approval-icon {display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:10px;border:1px solid rgba(101,185,240,.37);background:rgba(23,97,148,.38);color:#8ad9ff}
.global-approval-status {display:inline-flex;align-items:center;justify-content:center;margin-left:auto;max-width:165px;flex:none;padding:6px 9px;border-radius:18px;background:rgba(132,96,23,.23);border:1px solid rgba(226,182,80,.44);color:#f4db94;font-size:10px;font-weight:800;text-align:center}
.global-approval-status.is-approved {background:rgba(24,93,63,.29);border-color:rgba(65,180,119,.35);color:#9bdfbb}
.global-approval-status.is-changes_requested {background:rgba(120,43,56,.27);border-color:rgba(235,114,126,.35);color:#ffd1d4}
.global-approval-context {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}
.global-approval-context--compact {grid-template-columns:repeat(2,minmax(0,1fr))}
.global-approval-context>div {display:grid;gap:5px;padding:11px 12px;border-radius:9px;background:rgba(4,24,39,.53);border:1px solid rgba(77,142,187,.25)}
.global-approval-context span {color:#9eb8ca;font-size:10px}.global-approval-context strong {font-size:12px;line-height:1.45;overflow-wrap:anywhere}.global-approval-context small {font-size:10px;color:#98aec2}

/* Messages: list + in-project thread + standalone focus variant */
.global-thread-list {display:grid;gap:12px}
.global-thread-card {display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;padding:18px 20px}
.global-thread-card.has-unread {border-color:rgba(66,159,225,.65)}
.global-thread-card__icon {display:grid;place-items:center;width:46px;height:46px;border-radius:11px;background:rgba(18,96,148,.36);border:1px solid rgba(82,170,228,.35);color:#8dd5ff}
.global-thread-card__meta {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:9px;font-size:11px}.global-thread-card__meta time {color:#9aadc0}
.global-thread-card__body p {color:#b6cad8;font-size:12px;line-height:1.6;margin:6px 0 0}
.global-thread-card__actions {display:flex;align-items:flex-end;flex-direction:column;gap:9px}
.global-unread-badge {padding:5px 9px;border-radius:15px;background:#125e96;color:#ebfaff;font-size:10px}
.messages-workspace {margin-top:14px;overflow:hidden}
.messages-header {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 21px;border-bottom:1px solid rgba(88,148,188,.25)}
.messages-header__copy h2 {font-size:19px;margin:0 0 7px}.messages-header__copy p {font-size:12px;line-height:1.55;color:#b7cbdd;margin:0}
.messages-header__actions {display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.messages-contact {display:flex;align-items:center;gap:8px}.messages-contact small {display:block;font-size:10px;color:#99b5c9}.messages-contact strong {display:block;font-size:12px;margin-top:4px}
.avatar--message-contact,.avatar--message-item {flex:none;width:36px;height:36px;font-size:12px}
.messages-expand {display:inline-flex;align-items:center;gap:6px;color:#97d9ff;text-decoration:none;font-size:11px;font-weight:750}
.messages-conversation {position:relative;min-height:220px;max-height:min(65vh,650px);overflow-y:auto;padding:18px 21px;overscroll-behavior:contain}
.messages-workspace--expanded .messages-conversation {max-height:calc(100dvh - 320px);min-height:250px}
.message-day-separator,.message-unread-separator {display:flex;align-items:center;justify-content:center;margin:14px 0;gap:10px;color:#9cbbcf;font-size:11px}
.message-day-separator:before,.message-day-separator:after,.message-unread-separator:before,.message-unread-separator:after {content:"";height:1px;max-width:90px;flex:1;background:rgba(93,150,189,.23)}
.message-unread-separator {color:#f1d085}
.message-item {display:flex;align-items:flex-start;gap:10px;margin:12px 0;max-width:90%}
.message-item--client {margin-left:auto;flex-direction:row-reverse}
.message-item .message-card {min-width:0;flex:1;border-radius:11px;border:1px solid rgba(92,154,194,.29);background:rgba(8,39,63,.65);padding:12px 14px}
.message-item--client .message-card {background:rgba(17,70,111,.56);border-color:rgba(78,166,227,.42)}
.message-card__header {display:flex;align-items:baseline;flex-wrap:wrap;justify-content:space-between;gap:10px}
.message-card__header strong {font-size:11px}.message-card__header time {font-size:10px;color:#95adbf}
.message-text {font-size:12px;line-height:1.65;color:#d4e4ee;margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.message-context {display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;align-items:center;margin-top:11px;padding:10px;border:1px solid rgba(84,152,195,.34);border-radius:8px;background:rgba(2,21,38,.5);color:#e6f5ff;text-decoration:none}
.message-context__icon {display:grid;place-items:center;color:#a6d8fc}.message-context small {display:block;color:#a8bccd;font-size:10px}.message-context strong {font-size:11px}.message-context b {color:#7fcaff;font-size:10px}
.message-attachments {display:grid;gap:8px;margin-top:11px}.message-attachment {display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px;border:1px solid rgba(78,131,172,.28);background:rgba(4,25,40,.57);border-radius:8px}
.message-attachment__icon {display:grid;place-items:center;color:#8fd8ff}.message-attachment strong {display:block;font-size:11px;overflow-wrap:anywhere}.message-attachment small {color:#9bb5c9;font-size:10px}.message-attachment__actions a {color:#8dd7ff;font-size:11px;text-decoration:none}
.messages-empty-state {display:grid;justify-items:center;gap:8px;min-height:160px;align-content:center;text-align:center;color:#a5c3d8}.messages-empty-state>span {color:#96d6ff}.messages-empty-state strong {font-size:13px}.messages-empty-state p {font-size:12px;margin:0}
.messages-new-indicator {position:sticky;bottom:5px;display:block;margin:7px auto;padding:7px 12px;border-radius:20px;border:1px solid rgba(80,168,223,.45);background:#12568b;color:#fff;font-size:11px}
.messages-new-indicator[hidden] {display:none!important}
.message-composer {padding:14px 19px 18px;border-top:1px solid rgba(92,149,189,.24);background:rgba(3,19,34,.35)}
.message-composer__row {display:flex;align-items:flex-end;gap:10px}
.message-attach-button {display:grid;place-items:center;position:relative;flex:none;width:42px;height:42px;border-radius:10px;border:1px solid rgba(106,171,211,.42);background:rgba(23,78,115,.51);color:#bde6ff;cursor:pointer}
.message-attach-button input[type=file] {position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.message-composer__row>textarea {flex:1;min-height:43px;max-height:180px;border-radius:10px;border:1px solid rgba(93,156,202,.42);background:rgba(3,18,32,.72);padding:11px 12px;font-size:12px;line-height:1.5}
.message-send-button {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:10px 14px;border-radius:9px;border:1px solid rgba(89,173,232,.51);color:white;background:linear-gradient(180deg,#187fca,#0e558a);font-size:12px;font-weight:750}
.messages-workspace>form:not(.message-composer) {padding:5px 21px}.messages-workspace>form:not(.message-composer) button {background:transparent;border:1px solid rgba(103,154,190,.34);border-radius:8px;color:#91d6ff;padding:8px 12px;font-size:11px}
.messages-workspace>p[role=status],.messages-workspace>div[role=alert],.messages-workspace>p:not(.messages-header p) {margin:12px 21px;font-size:12px;color:#b9d0e1}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Standalone focus page: content only; page layout comes from its separate Blade layout. */
.messages-focus-main {max-width:1160px;margin:0 auto;padding:15px 22px 32px}
.messages-focus-main .messages-workspace {margin-top:0}

/* Profile, forms, preferences and avatar crop dialog */
.profile-page {width:min(100%,1450px);margin:0 auto;padding:22px 26px 50px}
.profile-heading {margin-bottom:18px}.profile-heading>span,.profile-section-card>header span {color:#8ec9f3;text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.12em}
.profile-heading h1 {font-size:27px;line-height:1.2;margin:8px 0}.profile-heading p {font-size:13px;color:#b1c7d8;line-height:1.6;margin:0}
.profile-layout {display:grid;grid-template-columns:minmax(260px,315px) minmax(0,1fr);gap:15px;align-items:start}
.profile-identity-card {padding:23px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}
.profile-avatar-shell {position:relative;width:108px;height:108px;margin:2px auto 6px}
.avatar--profile {display:grid;place-items:center;width:108px;height:108px;font-size:35px;border-radius:50%;font-weight:750}
.profile-avatar-edit {position:absolute;right:-2px;bottom:3px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(123,197,243,.54);color:#ebf7ff;background:#12598c}
.profile-identity-card h2 {margin:3px 0 0;font-size:18px;line-height:1.35}.profile-identity-card>p {margin:2px 0 5px;color:#a9c2d4;font-size:12px;line-height:1.5}
.profile-access-badge {display:inline-flex;align-items:center;gap:7px;border-radius:17px;padding:6px 11px;border:1px solid rgba(79,178,123,.36);background:rgba(19,86,55,.31);color:#b4efd2;font-size:11px}
.profile-access-badge i {width:7px;height:7px;border-radius:50%;background:#67de9d}
.profile-avatar-actions {display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:10px}
.profile-identity-card>small {color:#9cb5c7;font-size:11px;line-height:1.55}.profile-save-status {color:#9fe7c4;font-size:11px;line-height:1.5}
.profile-content-grid {display:grid;gap:14px}
.profile-section-card {padding:20px 22px}.profile-section-card>header {margin-bottom:18px}.profile-section-card>header h2 {font-size:17px;margin:5px 0 0}
.profile-form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.profile-field {display:flex;flex-direction:column;gap:7px;min-width:0}
.profile-field>span {color:#bcd2e2;font-size:11px;font-weight:700}
.profile-field input {width:100%;min-height:40px;border-radius:9px;padding:9px 11px;border:1px solid rgba(100,159,198,.38);background:rgba(3,22,38,.62);font-size:13px}
.profile-field input[readonly] {color:#9db7c9;background:rgba(31,53,72,.45)}
.profile-field small {color:#94aabf;font-size:10px;line-height:1.45}
.profile-field--wide {grid-column:1/-1}
.profile-section-actions {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:17px}
.profile-button {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:9px 13px;border-radius:9px;border:1px solid rgba(98,167,214,.45);background:rgba(18,67,101,.47);color:#d6edff;font:inherit;font-size:12px;font-weight:750;cursor:pointer;text-align:center}
.profile-button--primary {background:linear-gradient(180deg,#f1d992,#e7bd6d);color:#201c0d;border-color:rgba(247,211,136,.7)}
.profile-button--ghost {background:transparent;color:#9ed3f6}.profile-button--secondary {background:rgba(20,84,132,.53)}
.profile-button--danger {color:#ffc2c7;border-color:rgba(210,100,114,.45);background:rgba(106,35,47,.26)}
.profile-button:hover:not(:disabled) {filter:brightness(1.1)}
.profile-setting-row {display:flex;align-items:center;justify-content:space-between;gap:16px}.profile-setting-row strong {font-size:12px}.profile-setting-row small {display:block;color:#a2bacc;margin-top:5px;font-size:11px;line-height:1.5}
.profile-language-choice {display:flex;align-items:center;gap:4px;border-radius:22px;border:1px solid rgba(85,157,206,.40);background:rgba(2,17,32,.6);padding:3px;flex:none}
.profile-language-choice form {margin:0}.profile-language-choice button {min-width:42px;min-height:30px;border:0;background:transparent;color:#9ebed3;border-radius:18px;font-size:11px;font-weight:750}
.profile-language-choice button.is-active {color:#092033;background:#f0d899}
.profile-security-summary {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.profile-security-summary>div {display:grid;gap:6px;padding:12px;border:1px solid rgba(78,136,178,.25);border-radius:9px;background:rgba(3,22,37,.40)}
.profile-security-summary span {color:#9ab6c8;font-size:10px}.profile-security-summary strong {font-size:12px;overflow-wrap:anywhere}.profile-security-summary small {color:#91aabe;font-size:10px}
.profile-security-actions {display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}.profile-security-actions form {margin:0}
.profile-password-panel {display:grid;gap:12px;margin-top:16px;padding:16px;border-radius:12px;border:1px solid rgba(92,150,188,.32);background:rgba(3,22,37,.45)}
.profile-password-panel[hidden] {display:none!important}.profile-password-error {font-size:11px;color:#ffb5bd}
.profile-crop-dialog {position:fixed;inset:0;z-index:500;display:grid;place-items:center;padding:18px}
.profile-crop-dialog[hidden] {display:none!important}
.profile-crop-backdrop {position:absolute;inset:0;background:rgba(0,7,15,.80);backdrop-filter:blur(5px)}
.profile-crop-card {position:relative;z-index:1;width:min(100%,520px);max-height:calc(100dvh - 36px);overflow-y:auto;padding:20px}
.profile-crop-card>header {display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.profile-crop-card>header span {font-size:10px;color:#98c9eb;text-transform:uppercase}.profile-crop-card>header h2 {font-size:18px;margin:5px 0}.profile-crop-card>header p {color:#a8c3d7;font-size:11px;line-height:1.5}
.profile-crop-close {display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:8px;background:rgba(20,69,100,.60);border:1px solid rgba(104,164,199,.35);color:#e4f3fc;font-size:21px}
.profile-crop-stage {display:grid;place-items:center;min-height:240px;overflow:hidden;border-radius:11px;background:#031322;margin:12px 0;border:1px solid rgba(98,159,191,.3);touch-action:none}
.profile-crop-stage canvas {display:block;width:min(100%,320px);height:auto;aspect-ratio:1}
.profile-zoom {display:flex;gap:12px;align-items:center;font-size:12px;color:#c5dbeb}.profile-zoom input {min-width:0;flex:1;accent-color:#55b9f5}
.profile-crop-actions {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin-top:14px}

/* Activity history */
.history-filter-group {display:grid;gap:9px}.history-filter-label {display:block;color:#a9c4d7;font-size:11px;font-weight:750}
.history-project-heading {display:flex;justify-content:space-between;align-items:center;gap:14px;padding:19px 21px;margin:18px 0 12px}
.history-project-heading span {color:#82c8f4;font-size:10px;text-transform:uppercase;letter-spacing:.1em}
.history-project-heading h2 {font-size:18px;margin:6px 0}.history-project-heading p {margin:0;color:#adc4d7;font-size:12px;line-height:1.5}
.history-project-heading>strong {font-size:25px;color:#f0d28d}
.history-filter-chips--project {padding:12px 15px;margin-bottom:15px}
.history-timeline {display:grid;gap:19px;margin-top:15px}
.history-day__header {display:flex;align-items:center;gap:9px;color:#a9c3d8;font-size:12px;margin:0 0 12px}
.history-day__header b {padding:4px 8px;border:1px solid rgba(103,163,204,.32);border-radius:12px;font-size:10px;color:#e5f3fb}
.history-day__events {display:grid;gap:10px;border-left:1px solid rgba(87,150,191,.35);padding-left:19px;margin-left:15px}
.history-event {position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:13px;padding:16px 17px;margin-left:-36px}
.history-event__rail {display:flex;justify-content:center;padding-top:2px}
.history-event__dot {display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(26,93,144,.55);border:1px solid rgba(99,178,233,.36);color:#91d9ff}
.history-event--success .history-event__dot,.history-event--positive .history-event__dot {color:#83e4ae;background:rgba(31,109,73,.34)}
.history-event--warning .history-event__dot {color:#f5d28d;background:rgba(108,80,29,.32)}
.history-event__body {min-width:0}.history-event__topline {display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.history-event__title-group h3 {font-size:13px;line-height:1.45;margin:3px 0 0}
.history-event__topline time {white-space:nowrap;font-size:10px;color:#9aafc2}
.history-event__body>p {margin:8px 0;font-size:12px;line-height:1.65;color:#b7ccdb}
.history-event__meta {display:flex;flex-wrap:wrap;gap:12px;margin:11px 0;color:#9eb9ce;font-size:10px}
.history-event__meta span {display:inline-flex;align-items:center;gap:6px}.history-event__meta svg {width:13px;height:13px}
.history-event__link {display:inline-flex;gap:7px;align-items:center;color:#92d7ff;font-size:11px;text-decoration:none;font-weight:750}

/* Notifications */
.notification-page-heading__actions {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px}
.notification-page-heading__actions>strong {font-size:11px;color:#b3ccdd;font-weight:650}
.notification-mark-all {min-height:34px}
.notification-section {margin:22px 0}
.notification-list {display:grid;gap:11px}
.notification-card {display:grid;grid-template-columns:40px minmax(0,1fr);gap:13px;padding:17px 18px}
.notification-card.is-unread {border-color:rgba(63,156,228,.67)}
.notification-card__icon {display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:rgba(20,104,160,.34);color:#a2dcff;border:1px solid rgba(85,160,209,.34)}
.notification-card__header {display:flex;justify-content:space-between;align-items:flex-start;gap:13px}
.notification-card__header h3 {font-size:14px;margin:6px 0 0;line-height:1.45}
.notification-card__header time {font-size:10px;color:#99b1c4;white-space:nowrap}
.notification-card__badges {display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.notification-badge-pill {padding:5px 8px;border-radius:13px;border:1px solid rgba(105,171,216,.31);color:#aacfe5;font-size:10px}
.notification-badge-pill.is-unread {color:#91d7ff;background:rgba(21,105,162,.22)}
.notification-badge-pill.is-action {color:#f0da99;border-color:rgba(230,187,85,.38);background:rgba(112,83,26,.24)}
.notification-badge-pill.is-complete {color:#a3ecc3;border-color:rgba(85,178,117,.35);background:rgba(23,94,65,.2)}
.notification-card__body>p {margin:9px 0;font-size:12px;line-height:1.65;color:#c0d5e3}
.notification-card__body>form {margin:8px 0}.notification-card__body>form button {padding:6px 10px;color:#91d5ff;background:transparent;border-radius:8px;border:1px solid rgba(97,157,195,.33);font-size:11px}
.notification-card__context {display:flex;align-items:baseline;flex-wrap:wrap;gap:7px;margin:11px 0;color:#a5c0d3;font-size:11px}.notification-card__context strong {color:#e4f2ff}
.notification-card__link {margin-top:4px}
.notification-empty-state {margin-top:18px}

/* Tablet, phone and narrow window: no horizontal page overflow */
@media(max-width:1180px){
  .profile-layout {grid-template-columns:minmax(220px,275px) minmax(0,1fr)}
  .global-document-grid {grid-template-columns:minmax(0,1fr)}
  .approval-context-grid,.global-approval-context {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .workspace-body .global-page,.profile-page {padding:16px 16px 32px}
  .documents-toolbar-panel {grid-template-columns:minmax(0,1fr)}
  .documents-search {width:100%}
  .profile-layout {grid-template-columns:minmax(0,1fr)}
  .profile-identity-card {max-width:none}
  .approvals-summary-panel {align-items:flex-start;flex-direction:column}
  .approvals-summary-stats {width:100%}
  .approval-stat {flex:1;min-width:0}
  .messages-header {align-items:flex-start;flex-direction:column}
  .messages-focus-main {padding:12px 12px 22px}
}
@media(max-width:600px){
  .auth-body {padding:20px 12px 75px;align-items:flex-start}
  .auth-shell {gap:14px}.auth-brand {min-height:62px}.auth-brand .brand-logo {max-height:55px}
  .auth-card {padding:23px 19px;border-radius:14px}
  .auth-body .floating-language-switcher {right:10px;bottom:10px}
  .workspace-body .global-page,.profile-page {padding:14px 12px 28px}
  .global-page-heading {flex-direction:column;gap:12px}
  .global-filter-panel,.history-filter-panel {padding:13px}
  .global-approval-card__head {flex-wrap:wrap}.global-approval-status {margin-left:0}
  .global-approval-context,.global-approval-context--compact {grid-template-columns:minmax(0,1fr)}
  .global-thread-card {grid-template-columns:40px minmax(0,1fr)}
  .global-thread-card__actions {grid-column:2;flex-direction:row;justify-content:flex-start;flex-wrap:wrap}
  .global-document-card,.global-approval-card {padding:14px}
  .document-card__header {flex-direction:column;padding:16px}
  .document-card__body {padding:16px}.document-card__footer {padding:13px 16px 16px}
  .document-meta {text-align:left;white-space:normal}.document-meta span {justify-content:flex-start}
  .document-approval-callout {grid-template-columns:28px minmax(0,1fr)}
  .document-approval-action {grid-column:1/-1;width:100%}
  .document-version-row {align-items:flex-start;flex-direction:column}
  .approvals-summary-panel {padding:16px}
  .approval-card__header {flex-wrap:wrap;padding:15px}
  .approval-context-grid {grid-template-columns:minmax(0,1fr);padding:14px 15px 3px}
  .approval-description {margin:12px 15px}.approval-admin-note,.approval-decision-record {margin:12px 15px}
  .approval-material-actions,.approval-card__footer {padding:8px 15px 13px}
  .approval-decision-panel {grid-template-columns:minmax(0,1fr);padding:15px}
  .approval-field textarea {min-height:75px}
  .profile-form-grid,.profile-security-summary {grid-template-columns:minmax(0,1fr)}
  .profile-section-card {padding:16px}.profile-setting-row {align-items:flex-start;flex-direction:column}
  .messages-conversation {padding:13px;max-height:60vh}
  .message-item {max-width:100%}.message-attachment {grid-template-columns:24px minmax(0,1fr)}
  .message-attachment__actions {grid-column:2}
  .message-context {grid-template-columns:26px minmax(0,1fr)}.message-context b {grid-column:2}
  .message-composer {padding:12px}.message-composer__row {flex-wrap:wrap}
  .message-composer__row>textarea {flex-basis:calc(100% - 60px)}
  .message-send-button {margin-left:auto}
  .notification-card {padding:14px;grid-template-columns:32px minmax(0,1fr)}
  .notification-card__header {flex-direction:column;gap:5px}.notification-card__header time {white-space:normal}
  .history-event__topline {flex-direction:column;gap:6px}.history-event__topline time {white-space:normal}
  .history-project-heading {padding:15px}
}
@media(prefers-reduced-motion:reduce){.auth-submit-spinner{animation:none}.document-versions>summary svg{transition:none}}
/* Contextual variants: never alter document/approval states in the database. */
.approval-card--active {border-color:rgba(223,180,82,.42)}
.approval-card--completed {border-color:rgba(78,140,184,.30)}
.completed-approvals-list {display:grid;gap:12px}
.approval-context-item--document {background:rgba(13,47,74,.48)}
.global-approval-card.is-completed {border-color:rgba(77,135,173,.30)}
.global-approval-status.is-pending {color:#f4db94}
.global-approval-status.is-withdrawn {color:#bdc8d4;border-color:rgba(119,156,185,.32)}
.notification-section--action .notification-card.is-action {border-color:rgba(215,175,86,.38)}
.notification-filter-panel {margin-bottom:18px}
.profile-security-card {border-color:rgba(88,158,205,.48)}
.profile-field.is-readonly>span {color:#91a9ba}
.auth-input-wrap--single .auth-input {padding-right:13px}
.history-day {min-width:0}

/* END R1-D CLIENT UI RESTORATION */
