:root {
--brand-black:#111111;
--brand-white:#FFFFFF;
--surface-primary:#FFFFFF;
--card-bg:#FFFFFF;
--bg-color:#F9FAFB;
--bg:var(--bg-color);
--border-color:#E5E7EB;
--surface-soft:#F3F4F6;
--text-primary:#111111;
--text-secondary:#6B7280;
--text-muted:#9CA3AF;
--module-neutral:#767b82;
--module-site-documentation:#71947a;
--module-analysis-coordination:#668ea0;
--module-project-management:#877ca1;

/* interactive UI */
--accent:#111111;
--accent-soft:#F3F4F6;
--accent-hover:#000000;

/* system colors */
--success:#10B981;
--warning:#F59E0B;
--error:#EF4444;
--status-active-bg:rgba(34,197,94,0.12);
--status-active-border:rgba(34,197,94,0.25);
--status-active-text:#22c55e;
--status-active-bg-hover:rgba(34,197,94,0.18);
--status-active-border-hover:rgba(34,197,94,0.4);
--status-upcoming-bg:rgba(245,158,11,0.14);
--status-upcoming-border:rgba(245,158,11,0.28);
--status-upcoming-text:#f59e0b;
--status-upcoming-bg-hover:rgba(245,158,11,0.2);
--status-upcoming-border-hover:rgba(245,158,11,0.38);
--status-completed-bg:rgba(148,163,184,0.14);
--status-completed-border:rgba(148,163,184,0.22);
--status-completed-text:#94a3b8;
--status-completed-bg-hover:rgba(148,163,184,0.2);
--status-completed-border-hover:rgba(148,163,184,0.32);
--metric-open:#2563eb;
--metric-progress:#0891b2;
--metric-review:#d97706;
--metric-overdue:#dc2626;
--metric-completed:#16a34a;
--page-top-spacing:0px;
--layout-width:1280px;

/* Authenticated fluid workspace layout system */
--portal-page-gutter:clamp(20px, 2.25vw, 48px);
--portal-workspace-max:2400px;
--portal-content-max:1600px;
--portal-reading-max:820px;
}

.role-pill{
display:inline-flex;
align-items:center;
justify-content:center;
min-height:26px;
padding:0 10px;
border:1px solid var(--border-color);
border-radius:999px;
font-size:11px;
line-height:1;
font-weight:800;
letter-spacing:.01em;
white-space:nowrap;
background:rgba(71,85,105,.15);
border-color:rgba(71,85,105,.45);
color:#cbd5e1;
}

.role-pill-super-admin{
background:rgba(190,18,60,.15);
border-color:rgba(190,18,60,.45);
color:#fda4af;
}

.role-pill-admin{
background:rgba(126,34,206,.15);
border-color:rgba(126,34,206,.45);
color:#d8b4fe;
}

.role-pill-project-manager{
background:rgba(37,99,235,.15);
border-color:rgba(37,99,235,.45);
color:#93c5fd;
}

.role-pill-general-superintendent{
background:rgba(194,65,12,.15);
border-color:rgba(194,65,12,.45);
color:#fdba74;
}

.role-pill-superintendent{
background:rgba(180,83,9,.15);
border-color:rgba(180,83,9,.45);
color:#fbbf24;
}

.role-pill-laborer{
background:rgba(87,83,78,.16);
border-color:rgba(87,83,78,.48);
color:#d6d3d1;
}

.role-pill-client{
background:rgba(15,118,110,.15);
border-color:rgba(15,118,110,.45);
color:#5eead4;
}

.role-pill-viewer{
background:rgba(51,65,85,.16);
border-color:rgba(51,65,85,.48);
color:#bfdbfe;
}

.role-pill-team-member{
background:rgba(79,70,229,.15);
border-color:rgba(79,70,229,.45);
color:#c7d2fe;
}

[data-theme="light"] .role-pill{
background:rgba(71,85,105,.10);
border-color:rgba(71,85,105,.38);
color:#334155;
}

[data-theme="light"] .role-pill-super-admin{
background:rgba(225,29,72,.10);
border-color:rgba(190,18,60,.48);
color:#9f1239;
}

[data-theme="light"] .role-pill-admin{
background:rgba(126,34,206,.10);
border-color:rgba(107,33,168,.48);
color:#581c87;
}

[data-theme="light"] .role-pill-project-manager{
background:rgba(37,99,235,.10);
border-color:rgba(29,78,216,.48);
color:#1e40af;
}

[data-theme="light"] .role-pill-general-superintendent{
background:rgba(234,88,12,.11);
border-color:rgba(194,65,12,.50);
color:#9a3412;
}

[data-theme="light"] .role-pill-superintendent{
background:rgba(217,119,6,.12);
border-color:rgba(180,83,9,.50);
color:#92400e;
}

[data-theme="light"] .role-pill-laborer{
background:rgba(120,113,108,.12);
border-color:rgba(87,83,78,.44);
color:#44403c;
}

[data-theme="light"] .role-pill-client{
background:rgba(15,118,110,.10);
border-color:rgba(15,118,110,.48);
color:#115e59;
}

[data-theme="light"] .role-pill-viewer{
background:rgba(51,65,85,.10);
border-color:rgba(51,65,85,.42);
color:#1e3a8a;
}

[data-theme="light"] .role-pill-team-member{
background:rgba(79,70,229,.10);
border-color:rgba(67,56,202,.45);
color:#3730a3;
}

[data-theme="dark"]{
--metric-open:#60a5fa;
--metric-progress:#22d3ee;
--metric-review:#fbbf24;
--metric-overdue:#f87171;
--metric-completed:#4ade80;
--module-neutral:#aeb4bd;
--module-site-documentation:#8fb39a;
--module-analysis-coordination:#86afc0;
--module-project-management:#aaa0c2;
}

.module-family--neutral{--module-family-color:var(--module-neutral)}
.module-family--site-documentation{--module-family-color:var(--module-site-documentation)}
.module-family--analysis-coordination{--module-family-color:var(--module-analysis-coordination)}
.module-family--project-management{--module-family-color:var(--module-project-management)}

.module-title-icon[class*="module-family--"]{
color:var(--module-family-color,var(--module-neutral));
}

* { box-sizing: border-box; }

html, body {
min-height:100%;
max-width:100%;
}

body{
margin:0;
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
background:var(--bg);
color:var(--text-primary);
overflow-y:auto;
transition:
background-color .35s ease,
color .35s ease;
}

body *:not(svg):not(path){
transition:
background .25s ease,
color .25s ease,
border-color .25s ease,
box-shadow .25s ease;
}

.header-search input{
width:240px;
padding:8px 12px;
border-radius:8px;
border:1px solid var(--border-color);
background:var(--surface-soft);
}

#header-component {
  width: 100%;
  display: block;
  position: relative;
  z-index: 2100;
  overflow: visible;
}

.no-transition *{
transition:none !important;
}

.card,
.system-bar,
.portal-footer-inner,
.recent-captures,
.recent-thumb,
.project-card{
transition:
background .35s ease,
background-color .35s ease,
border-color .35s ease,
color .35s ease,
box-shadow .35s ease;
}

/* =========================
   Dark Mode
========================= */

[data-theme="dark"] {

--brand-white:#161A1F;
--surface-primary:#161A1F;
--card-bg:#14181C;

--surface-soft:#1A1D21;

--text-primary:#F1F5F9;
--text-secondary:#94A3B8;
--text-muted:#64748B;

--border-color:#2A2F36;

--bg:#0A0A0B;

--accent:#ffffff;

}

.project-hero h1{
color:#fff;
}

.project-hero .subtitle{
color:rgba(255,255,255,.85);
}

.page-shell{
width:100%;
flex:1 0 auto;
display:block;
min-width:0;
}

.page-shell > .page-content{
width:min(
calc(100% - (var(--portal-page-gutter) * 2)),
var(--portal-workspace-max)
);
margin-inline:auto;
min-width:0;
display:block;
}

/* Shared width utilities for authenticated application surfaces. */
.portal-workspace{
width:min(
calc(100% - (var(--portal-page-gutter) * 2)),
var(--portal-workspace-max)
);
margin-inline:auto;
min-width:0;
}

.portal-content{
width:min(
calc(100% - (var(--portal-page-gutter) * 2)),
var(--portal-content-max)
);
margin-inline:auto;
min-width:0;
}

.portal-reading{
width:min(
calc(100% - (var(--portal-page-gutter) * 2)),
var(--portal-reading-max)
);
margin-inline:auto;
min-width:0;
}

.portal-fluid-grid{
display:grid;
grid-template-columns:repeat(auto-fit, minmax(min(100%, 280px), 1fr));
gap:clamp(14px, 1.25vw, 22px);
min-width:0;
}

.portal-toolbar{
display:flex;
align-items:center;
justify-content:space-between;
flex-wrap:wrap;
gap:12px;
min-width:0;
}

.portal-toolbar-group{
display:flex;
align-items:center;
flex-wrap:wrap;
gap:10px;
min-width:0;
}

.portal-shrink-safe{
min-width:0;
}

.portal-wrap-safe{
min-width:0;
overflow-wrap:anywhere;
}

.portal-workspace > *,
.portal-content > *,
.page-content > *{
min-width:0;
}

.project-page{
flex:1 0 auto;
display:block;
width:100%;
padding-bottom:60px;
}

.project-page .gallery-hero{
margin:28px auto 0;
padding:28px 0 0;
}

/* ================= HERO ================= */
.hero{
  position:relative;
  margin-top:var(--page-top-spacing);
  height:55vh;
  min-height:460px;
  max-height:600px;
  background-size:cover;
  background-position:center;
  color:var(--brand-white);
  z-index:1;
}

.hero::after{
content:"";
position:absolute;
inset:0;
background:linear-gradient(to top,rgba(0,0,0,0.55),rgba(0,0,0,0.12));
z-index:1;
}

.hero-content{
position:absolute;
bottom:100px;
left:50%;
transform:translateX(-50%);
width:min(
calc(100% - (var(--portal-page-gutter) * 2)),
var(--portal-workspace-max)
);
min-width:0;
z-index:2;

display:flex;
flex-direction:column;
align-items:flex-start;
text-align:left;

color:#fff;
}

.hero-title{
font-size:34px;
font-weight:650;
letter-spacing:-0.5px;
margin-bottom:8px;
color:#fff;
text-shadow:0 2px 10px rgba(0,0,0,0.4);
}

.hero-address{
font-size:15px;
font-weight:400;
margin-bottom:14px;
color:rgba(255,255,255,0.85);
}

.hero-breadcrumbs{
display:flex;
align-items:center;
gap:8px;
margin-bottom:14px;
font-size:12px;
color:rgba(255,255,255,0.75);
}

.hero-breadcrumbs a{
color:inherit;
text-decoration:none;
}

.hero-breadcrumbs a:hover{
color:var(--brand-white);
}

.hero-breadcrumbs .sep{
opacity:.65;
}

/* Project page uses project-hero markup instead of the generic hero classes.
   Mirror the hero treatment here so the background image fills correctly. */
.project-hero{
  position: relative;
  margin: 0;
  height: clamp(220px, 31vh, 340px);
  min-height: 220px;
  max-height: 340px;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  color: var(--brand-white);
  z-index: 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 18px 36px rgba(15,23,42,.08);
  transition:transform .18s ease, box-shadow .18s ease;
  isolation:isolate;
}

.project-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:inherit;
  background-size:inherit;
  background-position:inherit;
  background-repeat:inherit;
  transform:scale(1);
  transition:transform .3s ease;
  z-index:0;
}

.project-hero:hover{
  transform:translateY(-2px);
  box-shadow:0 24px 42px rgba(15,23,42,.12);
}

.project-hero:hover::before{
  transform:scale(1.03);
}

.project-hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.12) 0%, rgba(15,23,42,0.2) 38%, rgba(15,23,42,0.54) 100%);
  z-index: 1;
}

.project-hero-content{
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 24px 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  justify-content: flex-end;
  color: #fff;
}

.project-hero-content .hero-breadcrumbs,
.project-hero-content .hero-title,
.project-hero-content .hero-address,
.project-hero-content #projectStatus{
  align-self: flex-start;
  text-align: left;
}

.project-section{
  display:flex;
  flex-direction:column;
  gap:28px;
  margin-top:24px;
  width:100%;
  position:relative;
}

@media (max-width: 980px){
  .project-hero{
    height: clamp(220px, 34vw, 280px);
    min-height: 220px;
    max-height: 280px;
  }

  .project-hero-content{
    padding: 20px 20px 18px;
  }
}

@media (max-width: 640px){
  .project-hero{
    height: clamp(220px, 48vw, 240px);
    min-height: 220px;
    max-height: 240px;
    border-radius: 20px;
  }

  .project-hero-content{
    padding: 18px 18px 16px;
  }

  .hero-title{
    font-size: 28px;
    margin-bottom: 6px;
  }

  .hero-address{
    margin-bottom: 10px;
    font-size: 14px;
  }
}

/* =========================
   Navigation
========================= */

.theme-toggle{
appearance:none;
border:1px solid var(--border-color);
border-radius:999px;
padding:0;
width:64px;
height:32px;
display:inline-flex;
align-items:center;
justify-content:center;
background:#e6ebf0;
box-shadow:inset 0 1px 0 rgba(255,255,255,0.76);
cursor:pointer;
color:var(--text-primary);
transition:background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
overflow:visible;
position:relative;
isolation:isolate;
}

.theme-toggle::before{
content:"";
position:absolute;
inset:-6px 0;
}

.theme-toggle:hover{
background:#dde4eb;
border-color:rgba(15,23,42,0.24);
box-shadow:inset 0 1px 0 rgba(255,255,255,0.82), 0 8px 20px rgba(15,23,42,0.1);
}

.theme-toggle:focus-visible{
outline:none;
box-shadow:0 0 0 3px rgba(17,17,17,0.09), 0 10px 22px rgba(15,23,42,0.14);
}

@media (hover:hover) and (pointer:fine){
  .theme-toggle:hover{
    transform:translateY(-1px);
  }
}

[data-theme="dark"] .theme-toggle{
background:#1a1d21;
border-color:rgba(255,255,255,0.12);
box-shadow:inset 0 1px 0 rgba(255,255,255,0.03);
}

[data-theme="dark"] .theme-toggle:hover{
border-color:rgba(255,255,255,0.18);
box-shadow:inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 22px rgba(0,0,0,0.28);
}

[data-theme="dark"] .theme-toggle:focus-visible{
box-shadow:0 0 0 3px rgba(255,255,255,0.08), 0 8px 22px rgba(0,0,0,0.32);
}

.theme-toggle-track{
position:relative;
width:100%;
height:100%;
display:block;
border-radius:inherit;
color:inherit;
overflow:hidden;
}

.theme-toggle-glyph{
position:absolute;
top:50%;
width:14px;
height:14px;
display:block;
z-index:2;
background:currentColor;
opacity:.42;
transform:translateY(-50%);
transition:opacity .2s ease, color .2s ease;
mask-repeat:no-repeat;
mask-position:center;
mask-size:contain;
-webkit-mask-repeat:no-repeat;
-webkit-mask-position:center;
-webkit-mask-size:contain;
pointer-events:none;
}

.theme-toggle-glyph--sun{
left:9px;
mask-image:url('/assets/icons/ui/sun.svg');
-webkit-mask-image:url('/assets/icons/ui/sun.svg');
}

.theme-toggle-glyph--moon{
right:9px;
mask-image:url('/assets/icons/ui/moon.svg');
-webkit-mask-image:url('/assets/icons/ui/moon.svg');
}

.theme-toggle-thumb{
position:absolute;
top:3px;
left:3px;
width:26px;
height:26px;
border-radius:50%;
background:var(--surface-primary);
border:1px solid rgba(15,23,42,0.14);
box-shadow:0 10px 20px rgba(15,23,42,0.16);
display:flex;
align-items:center;
justify-content:center;
transition:transform .2s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
pointer-events:none;
color:var(--text-primary);
overflow:hidden;
}

[data-theme="dark"] .theme-toggle-thumb{
background:#f4f4f5;
border-color:rgba(255,255,255,0.2);
box-shadow:0 8px 18px rgba(0,0,0,0.3);
color:#111111;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-thumb{
transform:translateX(32px);
}

.theme-toggle[aria-pressed="false"] .theme-toggle-glyph--sun,
.theme-toggle[aria-pressed="true"] .theme-toggle-glyph--moon{
opacity:1;
}

[data-theme="dark"] .theme-toggle-glyph--sun{
color:rgba(255,255,255,.72);
}

[data-theme="dark"] .theme-toggle-glyph--moon{
color:#111111;
}

.theme-toggle-thumb-icon{
width:13px;
height:13px;
min-width:13px;
min-height:13px;
display:block;
background-color:#111111;
mask-repeat:no-repeat;
mask-position:center;
mask-size:100% 100%;
-webkit-mask-repeat:no-repeat;
-webkit-mask-position:center;
-webkit-mask-size:100% 100%;
mask-image:url('/assets/icons/ui/sun.svg');
-webkit-mask-image:url('/assets/icons/ui/sun.svg');
flex-shrink:0;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-thumb-icon{
mask-image:url('/assets/icons/ui/moon.svg');
-webkit-mask-image:url('/assets/icons/ui/moon.svg');
}

[data-theme="dark"] .theme-toggle-thumb-icon{
background-color:#ffffff;
}

@media (prefers-reduced-motion:reduce){
  .theme-toggle,
  .theme-toggle-glyph,
  .theme-toggle-thumb{
    transition-duration:0.01ms;
  }

  .theme-toggle:hover{
    transform:none;
  }
}

.back-to-top{
position:fixed;
right:24px;
bottom:24px;
width:44px;
height:44px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
background:#ffffff;
color:#111111;
font-size:16px;
border:1px solid rgba(15,23,42,0.1);
box-shadow:0 6px 16px rgba(0,0,0,0.2);
z-index:1000;
opacity:0;
pointer-events:none;
transition:all .25s ease;
}

.back-to-top.show{
opacity:1;
pointer-events:auto;
}

.back-to-top:hover,
.back-to-top:focus-visible{
transform:translateY(-2px);
box-shadow:0 10px 22px rgba(0,0,0,0.24);
}

.back-to-top:focus-visible{
outline:none;
box-shadow:0 0 0 3px rgba(255,255,255,0.12), 0 10px 22px rgba(0,0,0,0.24);
}

[data-theme="dark"] .back-to-top{
background:#1a1d21;
color:#fff;
border-color:rgba(255,255,255,0.08);
}

.nav{
position:relative;
top:auto;
z-index:2100;
width:100%;
display:flex;
justify-content:center;
pointer-events:auto;
background:transparent;
backdrop-filter:none;
margin-top:12px;
padding:0;
isolation:isolate;
overflow:visible;
}

[data-theme="dark"] .nav{
background:transparent;
border-bottom:none;
}

[data-theme="dark"] .nav-inner{
background:var(--card-bg);
border:1px solid var(--border-color);
backdrop-filter:blur(12px);
-webkit-backdrop-filter:blur(12px);
box-shadow:0 8px 24px rgba(0,0,0,0.28);
}

.nav.scrolled{
box-shadow:none;
}

.nav-inner{
width:min(
calc(100% - (var(--portal-page-gutter) * 2)),
var(--portal-workspace-max)
);
margin-inline:auto;
min-width:0;
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
padding:16px 22px;
background:var(--card-bg);
border:1px solid var(--border-color);
border-radius:16px;
box-shadow:0 10px 24px rgba(15,23,42,0.06);
backdrop-filter:blur(12px);
transform:translateZ(0);
overflow:visible;
}

/* Soft depth separation on scroll */
.nav.scrolled .nav-inner{
box-shadow:0 14px 32px rgba(15,23,42,0.10);
}

[data-theme="dark"] .nav.scrolled .nav-inner{
box-shadow:0 14px 36px rgba(0,0,0,0.38);
}

.nav-logo img {
  height: 60px;
  transition: filter .25s ease;
}

.nav-controls{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:1 1 auto;
  min-width:0;
}

/* Dark mode logo adjustment */
[data-theme="dark"] .nav-logo img{
  filter: brightness(0) invert(1) contrast(90%);
}

[data-theme="dark"] .nav-logo img[data-client-dark-logo="true"]{
  filter: none;
}

.nav-user {
  text-align: right;
  position:relative;
  z-index:1;
  overflow:visible;
}

.nav-user .name {
  font-size: 14px;
  font-weight: 600;
}

.nav-user .meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.nav-user a {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
}

.nav-user a:hover {
  color: var(--text-primary);
}

/* =========================
   User Dropdown
========================= */

.user-dropdown {
  position: relative;
  z-index:2200;
}

.user-trigger {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 2px 0;
}

.archlenz-user-avatar{
  width:38px;
  height:38px;
  min-width:38px;
  min-height:38px;
  max-width:42px;
  max-height:42px;
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  border:1px solid var(--border-color);
  border-radius:999px;
  overflow:hidden;
  position:relative;
  background:var(--surface-soft);
  color:var(--text-primary);
  line-height:1;
  font-weight:850;
  text-transform:uppercase;
}

.archlenz-user-avatar img,
.archlenz-user-avatar-image{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  display:block;
  object-fit:cover;
  border-radius:inherit;
  grid-area:1 / 1;
}

.archlenz-user-avatar-initials{
  grid-area:1 / 1;
  font-size:13px;
  letter-spacing:0;
}

.archlenz-header-avatar{
  width:46px !important;
  height:46px !important;
  flex-basis:46px !important;
}

.user-trigger-mobile{
  display:none;
}

.user-trigger:hover {
  opacity: 0.8;
}

.chevron {
  font-size: 11px;
  opacity: 0.6;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 244px;
  max-width: min(244px, calc(100vw - 24px));
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(15,23,42,0.12);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: 2300;
}

[data-theme="dark"] .dropdown-menu{
background:var(--card-bg);
border:1px solid var(--border-color);
box-shadow:0 18px 36px rgba(0,0,0,0.42);
}

.dropdown-menu.open {
  display: flex;
}

.dropdown-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  line-height:1.35;
  padding:2px 8px 0;
}

.dropdown-company,
.dropdown-meta {
  font-size: 12px;
  color: var(--text-secondary);
  line-height:1.45;
  padding:1px 8px 0;
}

.dropdown-role{
  font-size:11px;
  color:var(--text-muted);
  line-height:1.4;
  padding:1px 8px 3px;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 7px 0;
}

.dropdown-section-label{
  font-size:10px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-muted);
  padding:1px 8px 4px;
}

.dropdown-action,
.dropdown-logout {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-primary);
  padding: 7px 8px;
  min-height: 36px;
  width: 100%;
  text-align: left;
  display: inline-flex;
  align-items:center;
  gap:9px;
  opacity: 1;
  transition:background .18s ease, border-color .18s ease, color .18s ease;
}

.dropdown-action:hover,
.dropdown-logout:hover {
  background: var(--surface-soft);
  border-color: var(--border-color);
}

.dropdown-action.is-active{
  background:var(--surface-soft);
  border-color:var(--border-color);
  color:var(--text-primary);
  font-weight:600;
  box-shadow:inset 0 0 0 1px rgba(17,17,17,0.04);
}

[data-theme="dark"] .dropdown-action.is-active{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.05);
}

.dropdown-action.is-active::after{
  content:"";
  width:12px;
  height:12px;
  margin-left:auto;
  flex:0 0 12px;
  border-radius:999px;
  background:currentColor;
  opacity:.18;
}

.dropdown-action-icon{
  width:15px;
  height:15px;
  flex:0 0 15px;
  display:inline-block;
  background-color:currentColor;
  opacity:.8;
  mask-repeat:no-repeat;
  mask-position:center;
  mask-size:contain;
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-position:center;
  -webkit-mask-size:contain;
}

.dropdown-action:hover .dropdown-action-icon,
.dropdown-action.is-active .dropdown-action-icon,
.dropdown-logout:hover .dropdown-action-icon{
  opacity:1;
}

/* =========================
   Container
========================= */

.container{
width:100%;
}

@media (max-width:1024px){
  :root{
    --portal-page-gutter:24px;
  }
}

@media (max-width:768px){
  :root{
    --portal-page-gutter:16px;
  }
}

@media (max-width:480px){
  :root{
    --portal-page-gutter:12px;
  }
}

.breadcrumbs,
.gallery-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

.breadcrumbs a,
.gallery-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover,
.gallery-breadcrumbs a:hover {
  color: var(--text-primary);
}

.breadcrumbs .sep,
.gallery-breadcrumbs .sep {
  opacity: 0.55;
}

.breadcrumb-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px 20px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.breadcrumb-row .breadcrumbs,
.breadcrumb-row .gallery-breadcrumbs{
  margin:0;
  flex:1 1 auto;
  min-width:0;
}

.project-switcher{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  max-width:min(100%, 320px);
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--border-color);
  background:var(--card-bg);
  box-shadow:0 14px 30px rgba(15,23,42,.05);
  flex:0 0 auto;
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.project-switcher[hidden]{
  display:none;
}

.project-switcher-label{
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-secondary);
  white-space:nowrap;
}

.project-switcher-select{
  min-height:40px;
  width:100%;
  min-width:0;
  border:none;
  background:transparent;
  color:var(--text-primary);
  font:inherit;
  font-size:14px;
  font-weight:600;
}

.project-switcher:hover{
  border-color:rgba(15,23,42,.14);
  box-shadow:0 18px 34px rgba(15,23,42,.07);
}

.project-switcher:focus-within{
  border-color:rgba(15,23,42,.18);
  box-shadow:0 0 0 3px rgba(15,23,42,.06), 0 18px 34px rgba(15,23,42,.07);
}

@media (max-width: 720px){
  .breadcrumb-row{
    align-items:stretch;
  }

  .project-switcher{
    width:100%;
    max-width:none;
    justify-content:space-between;
  }
}

h1 {
  font-size: 30px;
  font-weight: 650;
  margin-bottom: 6px;
}

.subtitle {
  color: var(--text-secondary);
  margin-bottom: 20px; /* tightened to make room for controls */
  font-size: 15px;
}


/* =========================
   Status Filter Pills
========================= */

.status-filters{
display:flex;
justify-content:center;
gap:14px;
margin:20px 0 30px;
}

.status-pill,
.project-tab,
.tab-btn{
display:inline-flex;
align-items:center;
justify-content:center;
gap:8px;
min-height:40px;
padding:8px 16px;
border-radius:999px;
background:#ffffff;
color:#111111;
border:1px solid rgba(15,23,42,0.08);
font-size:13px;
font-weight:600;
letter-spacing:.3px;
cursor:pointer;
box-shadow:0 2px 8px rgba(15,23,42,0.02);
transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.status-pill:hover,
.project-tab:hover,
.tab-btn:hover{
background:#f3f4f6;
color:#111111;
border-color:rgba(15,23,42,0.12);
transform:translateY(-1px);
box-shadow:0 8px 18px rgba(15,23,42,0.08);
}

.status-pill:focus-visible,
.project-tab:focus-visible,
.tab-btn:focus-visible{
outline:none;
box-shadow:0 0 0 3px rgba(17,17,17,0.09), 0 8px 18px rgba(15,23,42,0.12);
}

.status-pill.active,
.project-tab.active,
.tab-btn.active{
background:#111111;
color:#ffffff;
border-color:#111111;
box-shadow:0 10px 22px rgba(15,23,42,0.16);
}

[data-theme="dark"] .status-pill,
[data-theme="dark"] .project-tab,
[data-theme="dark"] .tab-btn{
background:#1a1d21;
color:var(--text-primary);
border-color:var(--border-color);
box-shadow:none;
}

[data-theme="dark"] .status-pill:hover,
[data-theme="dark"] .project-tab:hover,
[data-theme="dark"] .tab-btn:hover{
background:#23272e;
color:#ffffff;
border-color:rgba(255,255,255,0.14);
box-shadow:0 10px 22px rgba(0,0,0,0.26);
}

[data-theme="dark"] .status-pill:focus-visible,
[data-theme="dark"] .project-tab:focus-visible,
[data-theme="dark"] .tab-btn:focus-visible{
box-shadow:0 0 0 3px rgba(255,255,255,0.08), 0 8px 18px rgba(0,0,0,0.26);
}

[data-theme="dark"] .status-pill.active,
[data-theme="dark"] .project-tab.active,
[data-theme="dark"] .tab-btn.active{
background:#111111;
color:#ffffff;
border-color:#111111;
box-shadow:0 10px 22px rgba(0,0,0,0.34);
}

.status-pill.active .status-count{
color:#fff;
opacity:1;
}

.status-count{
margin-left:6px;
font-size:11px;
opacity:.7;
padding:1px 6px;
border-radius:6px;
}

/* =========================
   System Intelligence Bar
========================= */

.project-system-bar{
flex:0 0 auto;
width:100%;
max-width:760px;
margin:22px auto 28px auto;
background:rgba(255,255,255,.92);
border:1px solid var(--border-color);
border-radius:18px;
padding:12px 20px;
box-shadow:0 8px 24px rgba(0,0,0,0.05);
backdrop-filter:blur(14px);
}

[data-theme="dark"] .project-system-bar{
background:#0F172A;
border-color:#0F172A;
}

.system-row{
display:flex;
align-items:center;
justify-content:center;
gap:36px;
flex-wrap:nowrap;
font-size:14px;
color:var(--text-secondary);
}

.system-row strong {
  color: var(--text-primary);
  font-weight: 600;
}

.project-system-bar strong {
  color: var(--text-primary);
  font-weight: 600;
}

.project-system-bar .dot-separator{
opacity:.35;
margin:0 6px;
}

.metric{
display:flex;
flex-direction:column;
align-items:center;
text-align:center;
min-width:90px;
}

.metric-label{
font-size:12px;
letter-spacing:0.8px;
text-transform:uppercase;
color:var(--text-secondary);
margin-bottom:2px;
}

.metric-value{
font-size:20px;
font-weight:600;
color:var(--text-primary);
}

.metric-value.status{
font-weight:700;
letter-spacing:.3px;
}

/* Intelligence Bar Dividers */

.system-row .metric{
position:relative;
padding:0 18px;
}

.system-row .metric:not(:last-child)::after{
content:"";
position:absolute;
right:0;
top:50%;
transform:translateY(-50%);
height:24px;
width:1px;
background:var(--border-color);
opacity:.6;
}

.project-intelligence{
width:100%;
max-width:100%;
margin:0;
padding:22px 26px;
background:var(--brand-white);
border:1px solid var(--border-color);
border-radius:18px;
box-shadow:0 20px 50px rgba(0,0,0,0.08);
display:grid;
grid-template-columns:repeat(3,1fr);
gap:24px;
}


/* =========================
   KPI Intelligence Cards (NEW)
========================= */

.kpi-strip {
  display: flex;
  gap: 18px;
  margin: 18px 0 28px;
  flex-wrap: wrap;
}

.kpi-card {
  background: var(--brand-white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 20px;
  min-width: 150px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.kpi-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.kpi-date {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.kpi-label {
font-size: 11px;
letter-spacing: 1px;
text-transform: uppercase;
color: var(--text-secondary);
margin-top: 4px;
}

/* KPI glow animation */

@keyframes kpiGlow {
0% {
text-shadow: 0 0 0 rgba(255,255,255,0);
}

50% {
text-shadow:
0 0 10px rgba(255,255,255,0.35),
0 0 20px rgba(120,170,255,0.25);
}

100% {
text-shadow: 0 0 0 rgba(255,255,255,0);
}
}

[data-theme="dark"] .kpi-value{
animation: kpiGlow 4s ease-in-out infinite;
}

/* =========================
   Section Headers
========================= */

.section-header {
  margin: 34px 0 14px;
  margin-bottom:22px;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color:var(--text-secondary);
  margin-bottom: 8px;
}

/* =========================
   Dashboard Controls (NEW)
========================= */

.top-bar{
display:flex;
align-items:flex-end;
justify-content:space-between;
gap:24px;
flex-wrap:wrap;
margin-bottom:32px;
}

.controls{
display:flex;
gap:12px;
align-items:flex-end;
margin:0;
}

.search {
width: 420px;
max-width: 100%;
display: flex;
align-items: center;
background:var(--brand-white);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 8px 12px;
height:100%;
}

.search:focus-within {
  border-color: rgba(30,58,138,0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.search input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 13px;
  background: transparent;
  color: var(--text-primary);
}

.search input::placeholder {
  color: rgba(107,114,128,0.8);
}

.sort {
width: auto;
display: flex;
align-items: center;
gap:6px;
background:var(--brand-white);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 8px 12px;
height:100%;
}

.sort label {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.sort select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
}

/* Dark mode inputs */

[data-theme="dark"] .search,
[data-theme="dark"] .sort{
background:#1A1D21;
border-color:#2A2F36;
}

[data-theme="dark"] .search input{
color:#ffffff;
}

/* =========================
   Deliverable Pills
========================= */

.deliverable-pill{
font-size:11px;
padding:4px 12px;
border-radius:999px;
font-weight:600;
letter-spacing:.4px;
text-transform:uppercase;
background:#E5E7EB;
color:#111827;
border:1px solid rgba(0,0,0,0.12);
transition:all .2s ease;
text-decoration:none;
}

.deliverable-pill:hover{
background:#000;
color:#fff;
border-color:#000;
}

.deliverable-pill-active {
background:#000;
color:#fff;
border-color:#000;
box-shadow:
0 0 0 1px rgba(0,0,0,0.1),
0 6px 16px rgba(0,0,0,0.35);
}

[data-theme="dark"] .deliverable-pill{
background:#1F2937;
color:#E5E7EB;
border:1px solid rgba(255,255,255,0.12);
}

[data-theme="dark"] .deliverable-pill:hover{
background:#fff;
color:#000;
border-color:#fff;
}

/* =========================
   Card
========================= */

.card {
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
   background: var(--card-bg);
  display: flex;
  flex-direction: column;
  position:relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transition: transform 0.28s cubic-bezier(.16, .84, .44, 1), box-shadow 0.28s cubic-bezier(.16, .84, .44, 1);
  will-change: transform;
  opacity: 0;
  transform: translateY(10px);
 animation: fadeIn .4s ease forwards;
 animation-delay: calc(var(--card-index) * 30ms);
 padding: 26px 28px;
}

/* Smaller last updated */
.card-meta.small {
  font-size: 12px;
  opacity: 0.75;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 32px 65px rgba(0,0,0,0.18);
}

/* Dark mode card depth */

[data-theme="dark"] .card{
box-shadow:0 10px 28px rgba(0,0,0,0.6);
}

[data-theme="dark"] .card:hover{
box-shadow:0 25px 60px rgba(0,0,0,0.8);
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.card-thumbnail {
  height: 210px;
  background-size: cover;
  background-position: center;
  position:relative;
  overflow:hidden;
  background-repeat:no-repeat;
  border-bottom:1px solid var(--border-color);
  transition: transform 0.6s cubic-bezier(.16,.84,.44,1);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}



.card:hover .card-thumbnail {
  transform: scale(1.03);
}

/* Hero-style status badge for dashboard thumbnails */

.badge-hero{
display:inline-block;
padding:6px 14px;
font-size:11px;
font-weight:650;
border-radius:999px;
background:rgba(255,255,255,0.22);
color:var(--text-primary);
backdrop-filter:blur(8px);
border:1px solid rgba(255,255,255,0.45);
transition:background .25s ease,color .25s ease,border .25s ease;
}

.badge-hero.active-status{
background:#dcfce7;
color:#166534;
border:1px solid #86efac;
box-shadow:0 4px 12px rgba(0,0,0,0.18);
}

.badge-hero.upcoming-status{
background:var(--status-upcoming-bg);
color:var(--status-upcoming-text);
border:1px solid var(--status-upcoming-border);
}

.badge-hero.completed-status{
background:var(--status-completed-bg);
color:var(--status-completed-text);
border:1px solid var(--status-completed-border);
}

.badge.badge-active-hero{
background:#dcfce7;
color:#166534;
border:1px solid #86efac;
box-shadow:0 4px 12px rgba(0,0,0,0.18);
}

.project-hero:hover .badge.badge-active-hero{
background:#22c55e;
color:#ecfdf5;
border-color:#4ade80;
box-shadow:0 8px 20px rgba(0,0,0,0.28);
}

/* Hover Color States */
/* Active */
.card:hover .badge-hero.active-status,
.featured-card:hover .badge-hero.active-status{
background:#22c55e;
color:#ecfdf5;
border-color:#4ade80;
box-shadow:0 8px 20px rgba(0,0,0,0.28);
}

/* Upcoming */
.card:hover .badge-hero.upcoming-status{
background:var(--status-upcoming-bg-hover);
border-color:var(--status-upcoming-border-hover);
color:var(--status-upcoming-text);
}

/* Completed */
.card:hover .badge-hero.completed-status{
background:var(--status-completed-bg-hover);
border-color:var(--status-completed-border-hover);
color:var(--status-completed-text);
}

/* Position inside thumbnail */
.card-thumbnail .badge-hero {
  position: absolute;
  top: 16px;
  left: 16px;
}

.card-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05),
    rgba(0,0,0,0.30)
  );
}

.card-meta {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 2px;
}

.card-body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge {
  margin-top: 8px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 20px;
  background: var(--surface-soft);
  color: var(--text-primary);
  font-weight: 500;
  width: fit-content;
}

.update-indicator{
display:flex;
align-items:center;
gap:8px;
font-size:12px;
opacity:.9;
margin:8px 0 14px;
}

.update-dot{
width:8px;
height:8px;
border-radius:50%;
background:var(--text-primary);
box-shadow:0 0 0 0 rgba(212,175,55,.7);
animation:pulseUpdate 2s infinite;
}

@keyframes pulseUpdate{
0%{
box-shadow:0 0 0 0 rgba(212,175,55,.7);
}
70%{
box-shadow:0 0 0 8px rgba(212,175,55,0);
}
100%{
box-shadow:0 0 0 0 rgba(212,175,55,0);
}
}

/* =========================
   Featured Project
========================= */

.featured-project{
margin-bottom:28px;
}

.featured-card{
cursor:pointer;
}

.featured-card{
position:relative;
border-radius:22px;
overflow:hidden;
height:380px;
background:var(--brand-white);
display:flex;
align-items:flex-end;
box-shadow:0 8px 24px rgba(0,0,0,0.05);
transition: transform 0.28s cubic-bezier(.16,.84,.44,1),
            box-shadow 0.28s cubic-bezier(.16,.84,.44,1);
}

.featured-action:hover{
transform: translateX(4px);
}

.featured-card:hover{
transform:translateY(-4px);
box-shadow:0 24px 48px rgba(0,0,0,0.18);
}

.featured-card:hover .badge-hero.upcoming-status{
background:var(--status-upcoming-bg-hover);
border-color:var(--status-upcoming-border-hover);
color:var(--status-upcoming-text);
box-shadow:0 4px 14px rgba(0,0,0,0.35);
}

.featured-card:hover .badge-hero.completed-status{
background:var(--status-completed-bg-hover);
border-color:var(--status-completed-border-hover);
color:var(--status-completed-text);
box-shadow:0 4px 14px rgba(0,0,0,0.35);
}

.featured-overlay{
position:absolute;
inset:0;
transition:opacity .3s ease;
background:linear-gradient(
90deg,
rgba(0,0,0,.65) 0%,
rgba(0,0,0,.45) 35%,
rgba(0,0,0,.15) 70%
);
}

.featured-content{
position:relative;
color:white;
padding:30px;
z-index:2;
}

.featured-title{
font-size:28px;
font-weight:650;
margin-bottom:6px;
}

.featured-location{
font-size:14px;
opacity:.9;
margin-bottom:10px;
}

.featured-action{
font-size:12px;
letter-spacing:.8px;
text-transform:uppercase;
opacity:.85;
}

.featured-thumbnail{
height:100%;
width:100%;
background-size:110%;
background-position:center;
position:absolute;
inset:0;
background-repeat:no-repeat;
opacity:1;
transition: opacity 1.6s ease, transform .6s cubic-bezier(.16,.84,.44,1);
}

.featured-card:hover .featured-thumbnail{
transform:scale(1.05);
}

/* =========================
   Dashboard Layout
========================= */

.timeline-card{
background:var(--brand-white);
border:1px solid var(--border-color);
border-radius:18px;
padding:20px;
box-shadow:0 10px 28px rgba(15,23,42,0.06);
margin-top:36px;
}

[data-theme="dark"] .timeline-card{
background:#14181C;
border-color:var(--border-color);
box-shadow:0 16px 32px rgba(0,0,0,0.28);
}

.timeline-title{
font-size:11px;
font-weight:700;
letter-spacing:1.2px;
text-transform:uppercase;
color:var(--text-secondary);
margin-bottom:10px;
}

.timeline{
display:flex;
flex-direction:column;
gap:14px;
}

.timeline-item{
display:flex;
align-items:center;
gap:10px;
font-size:13px;
color:var(--text-secondary);
}

.timeline-dot{
width:10px;
height:10px;
border-radius:50%;
background:rgba(148,163,184,.5);
border:1px solid rgba(148,163,184,.36);
box-shadow:inset 0 1px 0 rgba(255,255,255,.22);
flex-shrink:0;
}

.timeline-dot.complete{
background:rgba(34,197,94,.92);
border-color:rgba(34,197,94,.5);
box-shadow:0 0 0 4px rgba(34,197,94,.14);
}

.timeline-dot.active{
background:rgba(245,158,11,.94);
border-color:rgba(245,158,11,.56);
box-shadow:0 0 0 4px rgba(245,158,11,.16);
animation:pulseUpdate 2s infinite;
}

.timeline-project{
font-size:14px;
font-weight:600;
color:var(--text-primary);
margin-bottom:4px;
line-height:1.35;
}

.timeline-item small{
display:block;
font-size:11px;
color:var(--text-muted);
margin-top:2px;
line-height:1.45;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
  padding:8px 0;
  border-radius:12px;
  transition:background .18s ease;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  background: rgba(148,163,184,.52);
  border:1px solid rgba(148,163,184,.38);
  box-shadow:none;
}

.timeline-dot.complete {
  background: rgba(34,197,94,.92);
  border-color:rgba(34,197,94,.5);
  box-shadow:0 0 0 4px rgba(34,197,94,.14);
}

.timeline-dot.active {
  background: rgba(245,158,11,.94);
  border-color:rgba(245,158,11,.56);
  box-shadow:0 0 0 4px rgba(245,158,11,.16);
}

.timeline-item:hover{
  background:rgba(15,23,42,.03);
}

[data-theme="dark"] .timeline-item:hover{
  background:rgba(255,255,255,.03);
}

.timeline-dot.active + div .timeline-project{
  font-weight:700;
  color:var(--text-primary);
}

.timeline-dot.active + div small{
  color:var(--text-secondary);
}

.timeline-dot.complete + div .timeline-project{
  color:rgba(17,24,39,.92);
}

[data-theme="dark"] .timeline-dot.complete + div .timeline-project{
  color:rgba(241,245,249,.94);
}

.timeline-dot:not(.active):not(.complete) + div .timeline-project{
  color:rgba(17,24,39,.72);
}

.timeline-dot:not(.active):not(.complete) + div small{
  color:rgba(107,114,128,.92);
}

[data-theme="dark"] .timeline-dot:not(.active):not(.complete) + div .timeline-project{
  color:rgba(241,245,249,.72);
}

[data-theme="dark"] .timeline-dot:not(.active):not(.complete) + div small{
  color:rgba(148,163,184,.78);
}

.timeline-dot{
  width:18px;
  height:18px;
  margin-top:3px;
  border:0;
  border-radius:0;
  background:currentColor;
  color:var(--text-secondary);
  box-shadow:none;
  mask:url('/assets/icons/ui/calendar.svg') center / contain no-repeat;
  -webkit-mask:url('/assets/icons/ui/calendar.svg') center / contain no-repeat;
}

.timeline-dot.complete{
  background:currentColor;
  color:#047857;
  box-shadow:none;
  mask-image:url('/assets/icons/ui/check.svg');
  -webkit-mask-image:url('/assets/icons/ui/check.svg');
}

.timeline-dot.active{
  background:currentColor;
  color:var(--text-primary);
  box-shadow:none;
  animation:none;
  mask-image:url('/assets/icons/ui/hammer.svg');
  -webkit-mask-image:url('/assets/icons/ui/hammer.svg');
}

.timeline-modal-item .timeline-dot{
  width:20px;
  height:20px;
  margin-top:1px;
}

/* =========================
   Grid Upgrade
========================= */

.grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
gap:28px;
width:100%;
transition:opacity .22s ease, transform .22s ease;
}

/* animation when switching tabs */
.grid.switching {
  opacity: 0;
  transform: translateY(4px);
}

.dashboard-layout{
display:grid;
grid-template-columns:1fr 340px;
gap:28px;
align-items:start;
}

.side-column{
display:flex;
flex-direction:column;
gap:22px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 10px;
}

.metrics-grid strong {
  font-size: 22px;
  display: block;
}

.metric-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* responsive layout */
@media (max-width:1000px){
.grid{
grid-template-columns:repeat(2,1fr);
}
}

@media (max-width:640px){
.grid{
grid-template-columns:1fr;
}
}

@media (max-width:1100px){

.dashboard-layout{
grid-template-columns:1fr;
}

.side-column{
position:relative;
top:0;
}

}

/* Status badge (matches hero vibe, but for dashboard cards) */
.badge-status {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--brand-white);
  color: var(--brand-black);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Deliverable pills (the look you liked) */
.deliverable-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.card-action {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.card:hover .card-action {
  opacity: 1;
  transform: translateX(4px);
}

.empty {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  padding: 30px 0;
}

/* =========================
   Mobile Layout Fix
========================= */

@media (max-width: 1024px) {
  .back-to-top{
    bottom:90px;
  }
}

@media (max-width: 640px) {
  .back-to-top{
    bottom:100px;
    right:16px;
  }

  .grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .card {
    width: 100%;
  }

    .search {
    width: 100%;
  }

}

@media (max-width: 1024px) {
  .nav{
    margin-top:16px;
    top:auto;
    padding:0;
  }

  .nav-inner{
    gap:14px;
    padding:16px 18px;
  }

  .nav-logo{
    min-width:0;
    gap:10px;
  }

  .nav-logo img{
    height:52px;
  }


  .nav-controls{
    gap:10px;
  }

  .search{
    flex:1 1 260px;
    width:auto;
    min-width:180px;
  }

  .sort{
    flex:0 0 auto;
    min-width:0;
    width:auto;
  }

  .sort select{
    min-width:0;
  }

  .theme-toggle{
    flex-shrink:0;
  }

  .nav-user{
    flex:0 0 auto;
    text-align:right;
    min-width:0;
  }

  .user-trigger{
    font-size:13px;
    gap:7px;
    max-width:100%;
  }

  .archlenz-header-avatar{
    width:44px !important;
    height:44px !important;
    flex-basis:44px !important;
  }

  .user-trigger-desktop{
    display:none;
  }

  .user-trigger-mobile{
    display:inline;
  }

  .dropdown-menu{
    width:min(220px, calc(100vw - 28px));
  }
}

@media (max-width: 640px) {
  .nav-inner{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "logo user"
      "search search"
      "sort theme";
    align-items:center;
    gap:12px;
    overflow:visible;
  }

  .nav-controls{
    display:contents;
  }

  .nav-logo{
    grid-area:logo;
  }

  .nav-user{
    grid-area:user;
    justify-self:end;
  }

  .dropdown-menu{
    top:calc(100% + 6px);
    width:min(216px, calc(100vw - 20px));
  }

  .search{
    grid-area:search;
    min-width:0;
  }

  .sort{
    grid-area:sort;
    min-width:0;
    width:100%;
  }

  .sort select{
    width:100%;
  }

  .theme-toggle{
    grid-area:theme;
    justify-self:end;
  }
}

@media (max-width: 480px) {
  .nav-inner{
    padding:14px;
  }

  .nav-logo{
    gap:8px;
  }

  .nav-logo img{
    height:46px;
  }

}

/* =========================
   Project Page Layout
========================= */

.project-layout{
display:grid;
grid-template-columns:1fr 340px;
gap:28px;
max-width:none;
align-items:start;
margin-top:30px;
}

.project-main{
display:flex;
flex-direction:column;
gap:26px;
}

.project-side{
display:flex;
flex-direction:column;
gap:22px;
}

/* =========================
   Deliverable Cards
========================= */

.deliverable-card{
position:relative;
background:var(--brand-white);
border-radius:20px;
padding:26px;
border:1px solid var(--border-color);

box-shadow:0 10px 26px rgba(0,0,0,.06);

transition:
transform .25s ease,
box-shadow .25s ease,
border-color .25s ease;

display:flex;
flex-direction:column;
gap:8px;
}

.deliverable-card.card-active{
cursor:pointer;
outline:2px solid rgba(96,165,250,.45);
box-shadow:0 14px 34px rgba(0,0,0,.08);
}

.deliverable-card:hover{
transform:translateY(-4px);
box-shadow:0 14px 34px rgba(0,0,0,.08);
}

.deliverables-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:28px;
margin-top:22px;
align-items:stretch;
}

.card-active{
border:1px solid rgba(96,165,250,.45);
box-shadow:
0 0 0 1px rgba(96,165,250,.15),
0 8px 26px rgba(0,0,0,.35);
}

/* =========================
   Project Overview Card
========================= */

.project-overview{
padding:24px;
}

.project-specs{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:16px;
margin-top:14px;
}

.project-spec{
background:var(--surface-soft);
border-radius:12px;
padding:12px 14px;
}

.project-spec-label{
font-size:11px;
letter-spacing:.8px;
text-transform:uppercase;
color:var(--text-secondary);
margin-bottom:4px;
}

.project-spec-value{
font-size:14px;
font-weight:600;
color:var(--text-primary);
}

.project-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:32px 48px;
margin-top:18px;
}

.project-field{
display:flex;
flex-direction:column;
gap:4px;
}

.project-label{
font-size:11px;
letter-spacing:1.4px;
text-transform:uppercase;
color:var(--text-muted);
}

.project-value{
font-size:15px;
font-weight:500;
color:var(--text-primary);
}

/* =========================
   Recent Uploads
========================= */

.recent-uploads{
padding:22px;
}

.recent-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:10px;
margin-top:14px;
}

.recent-thumb{
width:100%;
aspect-ratio:16/10;
border-radius:22px 22px 0 0;
background-size:cover;
background-position:center;
cursor:pointer;
transition:transform .25s ease;
display:block;
}

.recent-thumb:hover{
transform:scale(1.04);
}

/* =========================
   Activity Card
========================= */

.activity-list{
display:flex;
flex-direction:column;
gap:12px;
margin-top:12px;
}

.activity-item{
display:flex;
align-items:center;
gap:10px;
font-size:13px;
color:var(--text-secondary);
}

.activity-dot{
width:8px;
height:8px;
border-radius:50%;
background:var(--text-primary);
}

.project-tabs{
display:flex;
gap:12px;
margin-top: 20px;
margin-bottom: 24px;
}

@keyframes fadeSection{
from{opacity:0;transform:translateY(4px);}
to{opacity:1;transform:translateY(0);}
}

/* ================= DASHBOARD GRID ================= */

.dashboard-grid{
display:grid;
width:100%;
grid-template-columns:minmax(0,2.18fr) minmax(280px,0.92fr);
gap:24px;
align-items:start;
margin-top:0;
}

.dashboard-left,
.dashboard-right{
display:flex;
flex-direction:column;
gap:22px;
min-width:0;
margin-top:0;
}

.dashboard-left .card,
.dashboard-right .card{
width:100%;
}

@media (max-width: 980px){

.dashboard-grid{
grid-template-columns:1fr;
}

}

/* =========================
   Capture Metrics
========================= */

.metrics-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:18px;
margin-top:12px;
}

.metrics-grid strong{
font-size:22px;
font-weight:600;
display:block;
}

.metric-sub-label{
font-size:12px;
color:var(--text-secondary);
margin-top:4px;
}

/* =========================
   Dashboard Cards
========================= */

.latest-aerial,
.recent-photos,
.project-activity,
.capture-metrics{
min-height:180px;
}

.project-timeline,
.capture-metrics,
.project-activity{
padding:18px 20px;
}

.project-timeline .card-title,
.capture-metrics .card-title,
.project-activity .card-title{
margin-bottom:6px;
}

.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-timeline .timeline{
  gap:12px;
  margin-top:12px;
}

.project-timeline .timeline-item{
  gap:10px;
  padding:8px 0;
}

.project-timeline .timeline-dot{
  margin-top:5px;
}

.project-timeline .timeline-project{
  font-size:13px;
  margin-bottom:2px;
}

.project-timeline .timeline-item small{
  font-size:11px;
  margin-top:1px;
}

.capture-metrics .metrics-grid{
  gap:16px;
  margin-top:10px;
}

.project-activity{
  min-height:0;
}

.project-activity .activity-list{
  gap:8px;
  margin-top:8px;
}

.project-activity .activity-item{
  margin-top:0;
  padding:8px 10px;
  gap:10px;
  border-radius:14px;
}

.project-activity .activity-thumb{
  width:44px;
  height:44px;
  min-width:44px;
  border-radius:10px;
}

.project-activity .activity-text{
  gap:3px;
}

.project-activity .activity-text strong{
  font-size:12.5px;
}

.project-activity .activity-text span{
  font-size:12px;
}

.project-activity .activity-text small{
  font-size:10.5px;
}

/* =========================
   Footer
========================= */

#app{
display:flex;
flex-direction:column;
min-height:100vh;
}

.portal-footer{
margin-top:auto;
padding-top:28px;
}

/* =========================
   Activity Thumbnails
========================= */

.activity-item{
appearance:none;
display:flex;
align-items:center;
gap:12px;
margin-top:12px;
width:100%;
padding:10px 12px;
border-radius:16px;
border:1px solid transparent;
background:transparent;
text-align:left;
font:inherit;
outline:none;
transition:transform .15s ease, opacity .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.activity-thumb{
width:48px;
height:48px;
min-width:48px;
object-fit:cover;
border-radius:12px;
background:var(--surface-soft);
border:1px solid var(--border-color);
}

.activity-text{
display:flex;
flex-direction:column;
gap:4px;
min-width:0;
font-size:13px;
line-height:1.45;
color:var(--text-secondary);
font-weight:500;
}

.activity-text strong{
font-size:13px;
font-weight:700;
color:var(--text-primary);
}

.activity-text small{
font-size:11px;
color:var(--text-muted);
}

.activity-item.is-clickable{
cursor:pointer;
}

.activity-item.is-clickable:hover{
 transform:translateY(-1px);
 background:var(--surface-soft);
 border-color:var(--border-color);
 box-shadow:0 10px 22px rgba(15,23,42,.06);
}

.activity-item.is-clickable:focus-visible{
  background:var(--surface-soft);
  border-color:var(--border-color);
  box-shadow:0 0 0 3px rgba(17,17,17,0.08), 0 10px 22px rgba(15,23,42,.06);
}

.activity-list{
padding-left:0;
margin-top:10px;
list-style:none;
}

[data-theme="dark"] .activity-item.is-clickable:hover{
  box-shadow:0 12px 24px rgba(0,0,0,.22);
}

/* =========================
   Latest Aerials
========================= */

.latest-aerial-img{
width:100%;
border-radius:10px;
margin-top:12px;
object-fit:cover;
max-height:168px;
}

.latest-aerial-date{
margin-top:8px;
font-size:13px;
color:var(--text-secondary);
}
