:root {
  --navy:#122840;
  --navy-2:#1B3D5C;
  --blue:#5BA8D4;
  --sky:#EEF7FC;
  --bg:#E9EDF3;
  --card:#FFFFFF;
  --text:#142A3F;
  --muted:#627486;
  --line:rgba(18,40,64,.12);
  --green:#25D366;
  --purple:#4F9FCC;
  --red:#D64545;
  --amber:#F4B400;
  --shadow:0 18px 48px rgba(18,40,64,.14);
  --soft-shadow:0 10px 28px rgba(18,40,64,.08);
}

* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
section[id],
article[id],
.card[id],
.workroom-panel[id] {
  scroll-margin-top:108px;
}
body {
  min-height:100vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(91,168,212,.28), transparent 30rem),
    radial-gradient(circle at 88% 0%, rgba(91,168,212,.18), transparent 34rem),
    radial-gradient(circle at 50% 55%, rgba(255,255,255,.56), transparent 28rem),
    var(--bg);
  color:var(--text);
  font-family:"Plus Jakarta Sans", Arial, sans-serif;
  line-height:1.6;
  padding-bottom:132px;
}

body::before {
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.35;
  background-image:
    linear-gradient(rgba(18,40,64,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,40,64,.045) 1px, transparent 1px);
  background-size:38px 38px;
  mask-image:linear-gradient(to bottom, #000, transparent 78%);
}

a { color:inherit; }
.wrap { width:min(1120px, calc(100% - 36px)); margin:0 auto; }
.narrow { width:min(920px, calc(100% - 36px)); }

.header {
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(18,40,64,.96);
  backdrop-filter:blur(14px);
  box-shadow:0 8px 26px rgba(18,40,64,.25);
}

.header-inner {
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand {
  display:flex;
  align-items:center;
  gap:14px;
  color:#fff;
  text-decoration:none;
}

.brand img {
  width:54px;
  height:54px;
  object-fit:contain;
  border-radius:14px;
  background:#fff;
  padding:7px;
  box-shadow:0 12px 26px rgba(91,168,212,.22);
}

.brand small {
  display:block;
  color:var(--blue);
  font-size:10px;
  font-weight:900;
  letter-spacing:2.3px;
  text-transform:uppercase;
}

.brand strong {
  display:block;
  color:#fff;
  font-size:16px;
  line-height:1.2;
}

.nav-actions {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.accent { height:4px; background:linear-gradient(90deg,var(--blue),#7BC4EA,var(--navy-2)); }

.hero { padding:44px 0 18px; }
.hero-card {
  position:relative;
  overflow:hidden;
  border-radius:28px;
  background:
    linear-gradient(135deg,rgba(18,40,64,.98),rgba(27,61,92,.96)),
    radial-gradient(circle at 80% 0%, rgba(91,168,212,.35), transparent 18rem);
  box-shadow:var(--shadow);
  padding:34px;
  color:#fff;
  animation:riseIn .55s ease both;
}

.hero-card::after {
  content:"";
  position:absolute;
  width:310px;
  height:310px;
  right:-100px;
  top:-120px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(91,168,212,.35), transparent 70%);
  animation:floatGlow 7s ease-in-out infinite;
}

.hero-card > * { position:relative; z-index:1; }
.eyebrow {
  color:var(--blue);
  font-size:10px;
  font-weight:900;
  letter-spacing:2.6px;
  text-transform:uppercase;
  margin-bottom:12px;
}

h1 {
  max-width:820px;
  color:#fff;
  font-size:clamp(30px,5vw,54px);
  line-height:1.06;
  letter-spacing:-1.9px;
  margin-bottom:14px;
}

.hero-card p {
  max-width:820px;
  color:rgba(255,255,255,.74);
  font-size:15px;
  margin-bottom:12px;
}

.hero-client-meta {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 13px;
}

.hero-client-meta span {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:32px;
  padding:7px 10px;
  border-radius:999px;
  color:rgba(255,255,255,.88);
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  font-size:12px;
}

.hero-client-meta strong {
  color:var(--blue);
  font-size:10px;
  font-weight:900;
  letter-spacing:.9px;
  text-transform:uppercase;
}

.hero-client-meta a {
  color:#fff;
  font-weight:800;
  text-decoration:none;
}

.hero-actions {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  align-items:center;
  margin-top:16px;
}

.hero-actions-compact {
  max-width:760px;
}

.button-compact {
  position:relative;
  min-height:38px;
  padding:8px 13px;
  font-size:12px;
}

.button-compact .button-icon {
  width:16px;
  height:16px;
}

.notification-bubble {
  position:absolute;
  top:-7px;
  right:-5px;
  min-width:19px;
  height:19px;
  display:grid;
  place-items:center;
  padding:0 5px;
  border-radius:999px;
  background:var(--green);
  color:#073A19;
  font-size:10px;
  font-weight:900;
  box-shadow:0 0 0 3px rgba(18,40,64,.95);
}

.hero-grid {
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
  align-items:stretch;
}

.stat-panel {
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  padding:18px;
  display:grid;
  gap:12px;
  align-content:center;
}

.hero-status-widget {
  display:grid;
  grid-template-columns:76px 1fr;
  gap:13px;
  align-items:center;
  min-height:118px;
  padding:14px;
  border-radius:22px;
}

.hero-status-link {
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hero-status-link:hover {
  transform:translateY(-2px);
  border-color:rgba(91,168,212,.38);
  box-shadow:0 20px 42px rgba(91,168,212,.13);
}

.card:target,
.workroom-panel:target {
  border-color:rgba(37,211,102,.46);
  box-shadow:0 0 0 4px rgba(37,211,102,.14), 0 22px 54px rgba(18,40,64,.14);
  animation:sectionPulse 1.35s ease both;
}

.service-engine {
  border:1px solid rgba(37,211,102,.24);
  background:linear-gradient(135deg,rgba(37,211,102,.16),rgba(255,255,255,.07));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06), 0 18px 36px rgba(37,211,102,.10);
}

.service-engine.is-empty {
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.07);
  box-shadow:none;
}

.service-engine strong {
  display:block;
  color:#fff;
  font-size:17px;
  line-height:1.18;
  margin-bottom:4px;
}

.service-engine p,
.hero-status-copy,
.hero-progress-widget p,
.finalized-widget p {
  color:rgba(255,255,255,.72);
  font-size:13px;
  margin:0;
}

.service-orbit {
  position:relative;
  width:66px;
  height:66px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 50% 50%, rgba(37,211,102,.32) 0 28%, transparent 29%),
    conic-gradient(from 0deg, rgba(37,211,102,1), rgba(123,234,170,.26), rgba(37,211,102,1));
  box-shadow:0 0 0 8px rgba(37,211,102,.08), 0 18px 34px rgba(37,211,102,.18);
  animation:serviceSpin 2.4s linear infinite;
}

.service-orbit::before {
  content:"";
  width:38px;
  height:38px;
  border-radius:999px;
  background:var(--navy);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);
}

.service-orbit span {
  position:absolute;
  width:10px;
  height:10px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 0 22px rgba(37,211,102,.95);
}

.service-orbit span:nth-child(1) { top:3px; left:28px; }
.service-orbit span:nth-child(2) { right:7px; bottom:12px; opacity:.78; }
.service-orbit span:nth-child(3) { left:8px; bottom:14px; opacity:.58; }

.service-engine.is-empty .service-orbit {
  filter:grayscale(1);
  opacity:.62;
  animation:none;
}

.hero-progress-widget {
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.10);
}

.progress-ring {
  width:72px;
  height:72px;
  border-radius:999px;
  display:grid;
  place-items:center;
  margin:0;
  background:conic-gradient(var(--blue) calc(var(--progress, 0) * 1%), rgba(255,255,255,.14) 0);
}

.progress-ring span {
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:var(--navy);
  color:#fff;
  font-size:15px;
  font-weight:900;
}

.finalized-widget {
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.07);
}

.finalized-widget strong,
.hero-progress-widget strong {
  display:block;
  color:#fff;
  font-size:16px;
  line-height:1.18;
  margin-bottom:4px;
}

.finalized-icon {
  width:66px;
  height:66px;
  display:grid;
  place-items:center;
  border-radius:20px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-size:28px;
  font-weight:900;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);
}

.hero-status-copy strong {
  color:#fff;
}

.button {
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 18px;
  border-radius:999px;
  border:0;
  font:inherit;
  font-size:13px;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
  transition:transform .2s, box-shadow .2s, background .2s, opacity .2s;
}

.button:hover { transform:translateY(-2px); }
.button-primary { background:#fff; color:var(--navy); box-shadow:0 14px 30px rgba(0,0,0,.18); }
.button-dark { background:var(--navy); color:#fff; box-shadow:0 12px 28px rgba(18,40,64,.20); }
.button-purple { background:var(--blue); color:#083047; box-shadow:0 12px 28px rgba(91,168,212,.28); }
.button-whatsapp { background:var(--green); color:#073A19; box-shadow:0 12px 28px rgba(37,211,102,.28); }
.button-ghost { background:rgba(18,40,64,.06); color:var(--navy); }
.button-danger { background:rgba(214,69,69,.10); color:var(--red); }
.button:disabled { opacity:.55; cursor:not-allowed; transform:none; }

.button-icon {
  width:18px;
  height:18px;
  flex:0 0 auto;
}

.section { margin-top:16px; }
.card {
  background:rgba(255,255,255,.84);
  backdrop-filter:blur(16px);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--soft-shadow);
  overflow:hidden;
  animation:riseIn .55s ease both;
}

.card-head {
  padding:23px 26px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(135deg,#fff,#EEF7FC);
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}

.workspace-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.card-head h2 {
  color:var(--navy);
  font-size:clamp(21px,3vw,29px);
  line-height:1.16;
  letter-spacing:-.9px;
}

.card-body { padding:24px 26px 28px; }
.muted { color:var(--muted); font-size:14px; }

.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.grid-1 { display:grid; grid-template-columns:1fr; gap:16px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }

.mini-card {
  border:1px solid var(--line);
  border-radius:18px;
  padding:17px;
  background:rgba(255,255,255,.82);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.mini-card:hover {
  transform:translateY(-2px);
  border-color:rgba(91,168,212,.35);
  box-shadow:0 14px 30px rgba(18,40,64,.10);
}

.mini-card h3 {
  color:var(--navy);
  font-size:15px;
  letter-spacing:-.3px;
  margin-bottom:7px;
}

.mini-card p { color:var(--muted); font-size:13.4px; }

.pill {
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(91,168,212,.14);
  color:var(--navy);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.4px;
}

.pill.done { background:rgba(37,211,102,.16); color:#167A3B; }
.pill.waiting { background:rgba(244,180,0,.18); color:#775500; }
.pill.blocked { background:rgba(214,69,69,.12); color:var(--red); }
.pill.progress { background:rgba(91,168,212,.14); color:var(--navy-2); }
.pill.ended { background:rgba(18,40,64,.10); color:var(--muted); }
.pill.active { background:rgba(37,211,102,.16); color:#167A3B; }
.pill.active::before {
  content:"";
  width:8px;
  height:8px;
  margin-right:7px;
  border-radius:999px;
  background:#25D366;
  box-shadow:0 0 0 4px rgba(37,211,102,.14);
}

.task-list, .service-list, .update-list, .field-list, .objective-list {
  display:grid;
  gap:12px;
}

.task, .service, .update, .field, .objective {
  display:grid;
  gap:8px;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  background:#fff;
}

.task-top, .service-top, .update-top {
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}

.task h3, .service h3, .update h3, .objective h3 {
  color:var(--navy);
  font-size:15px;
  line-height:1.28;
}

.relationship-banner,
.relationship-admin-note {
  display:grid;
  grid-template-columns:220px 1fr;
  gap:16px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:26px;
  padding:22px 24px;
  background:rgba(255,255,255,.86);
  box-shadow:var(--soft-shadow);
}

.relationship-admin-note {
  grid-template-columns:150px 1fr;
}

.relationship-banner > div:first-child,
.relationship-admin-note strong {
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--navy);
  font-weight:900;
}

.relationship-banner h3 {
  color:var(--navy);
  font-size:22px;
  line-height:1.2;
  margin-bottom:4px;
}

.relationship-banner p,
.relationship-admin-note span {
  color:var(--muted);
  font-size:14.2px;
}

.relationship-dot {
  width:12px;
  height:12px;
  border-radius:999px;
  background:var(--green);
  box-shadow:0 0 0 5px rgba(37,211,102,.15);
}

.relationship-active {
  border-color:rgba(37,211,102,.34);
  background:
    radial-gradient(circle at 6% 0%, rgba(37,211,102,.20), transparent 18rem),
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(37,211,102,.12));
  box-shadow:0 18px 44px rgba(37,211,102,.12), var(--soft-shadow);
}

.relationship-hold {
  border-color:rgba(244,180,0,.34);
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(244,180,0,.10));
}

.relationship-hold .relationship-dot {
  background:var(--amber);
  box-shadow:0 0 0 5px rgba(244,180,0,.16);
}

.relationship-inactive {
  border-color:rgba(214,69,69,.24);
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(214,69,69,.07));
}

.relationship-inactive .relationship-dot {
  background:var(--red);
  box-shadow:0 0 0 5px rgba(214,69,69,.12);
}

.relationship-ended {
  border-color:rgba(18,40,64,.16);
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(18,40,64,.06));
}

.relationship-ended .relationship-dot {
  background:var(--muted);
  box-shadow:0 0 0 5px rgba(18,40,64,.10);
}

#tab-overview > .notice,
#tab-overview > .relationship-admin-note {
  display:none;
}

.relationship-overview-card {
  display:grid;
  gap:10px;
  min-height:150px;
  border-radius:22px;
}

.relationship-card-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.relationship-overview-card h3 {
  margin:0;
  color:var(--navy);
  font-size:28px;
  letter-spacing:-.8px;
}

.relationship-overview-card.relationship-active {
  border-color:rgba(37,211,102,.34);
  background:
    radial-gradient(circle at 6% 0%, rgba(37,211,102,.22), transparent 18rem),
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(37,211,102,.14));
  box-shadow:0 18px 44px rgba(37,211,102,.12), var(--soft-shadow);
}

.relationship-overview-card.relationship-hold {
  border-color:rgba(244,180,0,.34);
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(244,180,0,.13));
}

.relationship-overview-card.relationship-inactive {
  border-color:rgba(214,69,69,.24);
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(214,69,69,.09));
}

.relationship-overview-card.relationship-ended {
  border-color:rgba(18,40,64,.16);
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(18,40,64,.07));
}

.relationship-overview-card p {
  max-width:720px;
  color:var(--muted);
  font-size:14px;
}

.admin-progress-card {
  display:grid;
  grid-template-columns:78px 1fr;
  gap:16px;
  align-items:center;
  min-height:150px;
}

.admin-progress-ring {
  width:74px;
  height:74px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:conic-gradient(var(--blue) calc(var(--progress, 0) * 1%), rgba(18,40,64,.10) 0);
  box-shadow:inset 0 0 0 1px rgba(18,40,64,.06), 0 12px 24px rgba(91,168,212,.14);
}

.admin-progress-ring span {
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#fff;
  color:var(--navy);
  font-size:14px;
  font-weight:900;
}

.service-count-badge {
  width:74px;
  height:74px;
  display:grid;
  place-items:center;
  border-radius:24px;
  background:linear-gradient(135deg,rgba(37,211,102,.18),rgba(91,168,212,.14));
  border:1px solid rgba(37,211,102,.26);
  box-shadow:0 12px 26px rgba(37,211,102,.12);
}

.service-count-badge span {
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:18px;
  color:#167A3B;
  background:#fff;
  font-size:22px;
  font-weight:900;
}

.admin-progress-card h3 {
  margin:10px 0 2px;
  color:var(--navy);
  font-size:22px;
  letter-spacing:-.5px;
}

.danger-zone {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-color:rgba(214,69,69,.20);
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(214,69,69,.06));
}

.tooltip-dot {
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  color:var(--navy);
  background:rgba(18,40,64,.08);
  font-size:12px;
  font-weight:900;
  cursor:help;
}

.service-buttons {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

.service-button {
  display:grid;
  grid-template-columns:48px 1fr;
  gap:14px;
  align-items:flex-start;
  min-height:138px;
  border:1px solid rgba(18,40,64,.11);
  border-radius:20px;
  padding:18px;
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(238,247,252,.78));
  color:var(--text);
  text-decoration:none;
  box-shadow:0 14px 32px rgba(18,40,64,.08);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  cursor:default;
}

.service-button:hover {
  transform:translateY(-1px);
  border-color:rgba(91,168,212,.42);
  box-shadow:0 20px 42px rgba(18,40,64,.13);
}

.service-icon {
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:16px;
  color:#fff;
  background:linear-gradient(135deg,var(--blue),#7BC4EA);
  box-shadow:0 12px 26px rgba(91,168,212,.26);
}

.service-icon svg {
  width:25px;
  height:25px;
}

.service-button .service-top {
  align-items:flex-start;
}

.portal-command .card-body {
  padding-right:0;
}

.portal-carousel {
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(320px, 84%);
  gap:16px;
  overflow-x:auto;
  padding:2px 26px 14px 0;
  scroll-snap-type:x mandatory;
  scrollbar-color:rgba(18,40,64,.22) transparent;
}

.portal-slide {
  scroll-snap-align:start;
  border:1px solid var(--line);
  border-radius:24px;
  padding:20px;
  background:rgba(255,255,255,.88);
  box-shadow:0 14px 34px rgba(18,40,64,.09);
  min-height:420px;
}

.project-workroom {
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.15fr);
  grid-template-areas:
    "projects progress"
    "updates progress";
  gap:16px;
  padding-right:26px;
}

.workroom-panel {
  border:1px solid var(--line);
  border-radius:24px;
  padding:20px;
  background:rgba(255,255,255,.88);
  box-shadow:0 14px 34px rgba(18,40,64,.09);
}

.current-work-panel { grid-area:projects; }
.progress-work-panel { grid-area:progress; }
.updates-work-panel { grid-area:updates; }

.highlight-slide {
  background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(238,247,252,.90));
  border-color:rgba(91,168,212,.34);
}

.slide-head {
  display:flex;
  gap:13px;
  align-items:flex-start;
  margin-bottom:16px;
}

.slide-head h3 {
  color:var(--navy);
  font-size:22px;
  line-height:1.15;
  letter-spacing:-.7px;
}

.slide-number {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:14px;
  color:#fff;
  background:linear-gradient(135deg,var(--navy),var(--navy-2));
  font-weight:900;
  font-size:12px;
}

.featured-item {
  background:rgba(255,255,255,.9);
}

.secondary-info {
  opacity:.94;
}

.detail-group {
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.78);
  overflow:hidden;
}

.detail-group + .detail-group { margin-top:10px; }

.detail-group summary {
  padding:15px 16px;
  cursor:pointer;
  color:var(--navy);
  font-weight:900;
  list-style:none;
}

.detail-group summary::-webkit-details-marker { display:none; }
.detail-group summary::after {
  content:"+";
  float:right;
  color:var(--blue);
}
.detail-group[open] summary::after { content:"–"; }
.detail-group .field-list { padding:0 16px 16px; }

.meta-line {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:var(--muted);
  font-size:12px;
}

.progress-bar {
  width:100%;
  height:10px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(18,40,64,.09);
}

.progress-bar span {
  display:block;
  width:calc(var(--task-progress, 0) * 1%);
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--blue),#7BC4EA);
}

.progress-label {
  color:var(--navy);
  font-size:12px;
  font-weight:900;
}

.field {
  grid-template-columns:180px 1fr;
}

.field strong { color:var(--navy); font-size:13px; }

.client-resource-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.client-id-card {
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:26px;
  padding:24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(91,168,212,.18), transparent 17rem),
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(238,247,252,.72));
  box-shadow:0 18px 44px rgba(18,40,64,.10);
}

.client-id-card-top {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:20px;
}

.client-id-card h3 {
  margin:10px 0 4px;
  color:var(--navy);
  font-size:clamp(24px,3vw,34px);
  line-height:1.08;
  letter-spacing:-1px;
}

.client-id-logo {
  width:76px;
  height:76px;
  object-fit:contain;
  border-radius:22px;
  padding:10px;
  background:#fff;
  border:1px solid rgba(18,40,64,.08);
  box-shadow:0 14px 30px rgba(18,40,64,.10);
}

.client-id-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.client-id-grid div {
  display:grid;
  gap:4px;
  min-width:0;
  border:1px solid rgba(18,40,64,.08);
  border-radius:16px;
  padding:13px;
  background:rgba(255,255,255,.72);
}

.client-id-grid strong {
  color:var(--muted);
  font-size:10px;
  font-weight:900;
  letter-spacing:.9px;
  text-transform:uppercase;
}

.client-id-grid span {
  color:var(--navy);
  font-size:13px;
  font-weight:800;
  overflow-wrap:anywhere;
}

.client-detail-card {
  display:grid;
  align-content:start;
  gap:14px;
  min-height:220px;
}

.client-detail-card .slide-head {
  margin-bottom:0;
}

.resource-card-panel {
  border-color:rgba(91,168,212,.28);
  border:1px solid rgba(91,168,212,.28);
  border-radius:22px;
  padding:18px;
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(238,247,252,.84));
}

.resource-list {
  gap:14px;
}

.resource-field {
  border-color:rgba(91,168,212,.22);
  background:rgba(255,255,255,.92);
}

.resource-actions {
  display:grid;
  gap:10px;
  min-width:0;
}

.resource-actions .muted {
  overflow-wrap:anywhere;
}

.field-image-row {
  align-items:center;
}

.field-image-preview {
  width:min(180px,100%);
  max-height:120px;
  object-fit:contain;
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px;
  background:#fff;
  box-shadow:0 10px 24px rgba(18,40,64,.08);
}

.field-image-stack {
  display:grid;
  gap:10px;
  justify-items:start;
}

.field-download {
  min-height:36px;
  padding:8px 13px;
  border-radius:12px;
  font-size:12px;
}

.client-logo-mark {
  display:block;
  width:88px;
  height:88px;
  object-fit:contain;
  margin-bottom:18px;
  padding:12px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.72);
  box-shadow:0 14px 34px rgba(0,0,0,.14), inset 0 0 0 1px rgba(18,40,64,.06);
}

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

label {
  display:grid;
  gap:6px;
  color:var(--navy);
  font-size:12px;
  font-weight:900;
}

.input-help {
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  line-height:1.35;
}

.label-text {
  color:var(--navy);
}

input, textarea, select {
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 13px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:14px;
  outline:none;
}

textarea { min-height:92px; resize:vertical; }
input:focus, textarea:focus, select:focus {
  border-color:var(--blue);
  box-shadow:0 0 0 4px rgba(91,168,212,.16);
}

input[type="range"] {
  accent-color:var(--blue);
  padding:0;
  border:0;
  box-shadow:none;
  cursor:pointer;
}

input[type="range"]:focus {
  box-shadow:0 0 0 4px rgba(91,168,212,.16);
}

.range-value {
  color:var(--blue);
  font-size:13px;
  font-weight:900;
}

.full { grid-column:1 / -1; }
.admin-shell {
  display:grid;
  grid-template-columns:280px 1fr;
  gap:16px;
  align-items:start;
  padding:28px 0 46px;
}

.client-list {
  display:grid;
  gap:10px;
  margin-top:14px;
}

.client-accordion-list {
  max-height:calc(100vh - 360px);
  overflow:auto;
  padding-right:3px;
}

.client-directory-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.side-actions {
  display:grid;
  gap:9px;
}

.logged-actions {
  display:grid;
  gap:9px;
  padding:0 16px 16px;
}

.locked-panel {
  display:grid;
  gap:6px;
  border:1px dashed rgba(18,40,64,.20);
  border-radius:18px;
  padding:16px;
  background:rgba(255,255,255,.62);
  color:var(--muted);
}

.locked-panel strong {
  color:var(--navy);
}

.client-row {
  width:100%;
  text-align:left;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.88);
  padding:14px;
  cursor:pointer;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.client-row:hover {
  transform:translateY(-2px);
  border-color:rgba(91,168,212,.42);
  box-shadow:0 14px 30px rgba(18,40,64,.09);
}

.client-row strong { display:block; color:var(--navy); }
.client-row span { color:var(--muted); font-size:12px; }

.client-card {
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.9);
  padding:15px;
  display:grid;
  gap:10px;
}

.client-card-top {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.client-card h3 {
  color:var(--navy);
  font-size:15px;
  line-height:1.25;
}

.client-accordion {
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.9);
  overflow:hidden;
  transition:border-color .2s ease, box-shadow .2s ease;
}

.client-accordion[open] {
  border-color:rgba(91,168,212,.40);
  box-shadow:0 14px 30px rgba(18,40,64,.09);
}

.client-accordion.is-current {
  border-color:rgba(91,168,212,.62);
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(238,247,252,.94));
  box-shadow:0 18px 38px rgba(91,168,212,.17);
}

.client-accordion summary {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:14px;
  cursor:pointer;
  list-style:none;
}

.client-accordion summary::-webkit-details-marker { display:none; }

.client-accordion summary h3 {
  color:var(--navy);
  font-size:14px;
  line-height:1.2;
}

.client-accordion-body {
  display:grid;
  gap:10px;
  padding:0 14px 14px;
}

.client-card-hint {
  border:1px solid rgba(91,168,212,.20);
  border-radius:14px;
  padding:10px 12px;
  color:var(--muted);
  background:rgba(91,168,212,.08);
  font-size:12px;
}

.client-link {
  font-family:ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size:11px;
  color:var(--muted);
  word-break:break-all;
  border-radius:12px;
  background:rgba(18,40,64,.055);
  padding:9px 10px;
}

.tabs {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:14px;
}

.tab {
  border:0;
  border-radius:999px;
  padding:10px 14px;
  background:rgba(18,40,64,.07);
  color:var(--navy);
  font:inherit;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}

.tab.active { background:var(--navy); color:#fff; }
.admin-panel { display:none; }
.admin-panel.active { display:block; }

.add-item-panel {
  background:rgba(255,255,255,.72);
  border:1px solid rgba(91,168,212,.20);
  padding:4px;
}

.checklist-action-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  align-items:start;
}

.checklist-action-grid .detail-group {
  margin-top:16px;
}

.checklist-action-grid .detail-group[open] {
  grid-column:1 / -1;
}

.checklist-action-grid .detail-group[open] ~ .detail-group:not([open]),
.checklist-action-grid .detail-group:not([open]):has(~ .detail-group[open]) {
  display:none;
}

.add-item-panel summary {
  font-weight:900;
  color:var(--navy);
}

.add-item-form {
  margin-top:16px;
  padding:0 14px 16px;
}

.item-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:6px;
  align-items:end;
}

.progress-editor {
  flex:1 1 100%;
  display:grid;
  gap:8px;
  border:1px solid rgba(91,168,212,.20);
  border-radius:16px;
  padding:12px;
  background:rgba(91,168,212,.08);
}

.status-editor {
  flex:0 1 260px;
  max-width:310px;
  display:grid;
  gap:7px;
  border:1px solid rgba(91,168,212,.20);
  border-radius:16px;
  padding:12px;
  background:rgba(91,168,212,.08);
}

.status-editor span {
  color:var(--navy);
  font-size:12px;
  font-weight:900;
}

.visibility-editor {
  flex-basis:260px;
}

.compact-delete {
  flex:0 0 auto;
  min-width:116px;
  min-height:44px;
  padding-inline:16px;
  border-radius:16px;
}

.compact-delete .button-icon {
  width:16px;
  height:16px;
}

.field-mode-helper {
  display:none;
  border:1px dashed rgba(91,168,212,.36);
  border-radius:16px;
  padding:12px 14px;
  color:var(--muted);
  background:rgba(91,168,212,.08);
  font-size:13px;
}

.is-soft-hidden {
  display:none;
}

.progress-editor-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--navy);
  font-size:12px;
}

.progress-editor-top span {
  color:var(--blue);
  font-weight:900;
}

.notice {
  border:1px solid rgba(91,168,212,.22);
  background:rgba(91,168,212,.10);
  border-radius:18px;
  padding:16px;
  color:var(--muted);
  font-size:14px;
}

.empty {
  border:1px dashed rgba(18,40,64,.20);
  border-radius:18px;
  padding:18px;
  color:var(--muted);
  background:rgba(255,255,255,.58);
}

.footer {
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:35;
  padding:24px 0;
  background:var(--navy);
  color:rgba(255,255,255,.55);
  font-size:12px;
  box-shadow:0 -12px 34px rgba(18,40,64,.18);
}

.footer-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.footer a { color:var(--blue); text-decoration:none; font-weight:800; }

.copy-box {
  font-family:ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size:12px;
  white-space:pre-wrap;
  word-break:break-word;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  background:#0E1F33;
  color:#EAF6FF;
}

.support-float {
  position:fixed;
  right:22px;
  bottom:82px;
  z-index:45;
  display:grid;
  grid-template-columns:26px 1fr;
  gap:0 10px;
  align-items:center;
  min-width:138px;
  padding:13px 16px;
  border-radius:999px;
  color:#073A19;
  background:var(--green);
  box-shadow:0 16px 40px rgba(37,211,102,.34);
  text-decoration:none;
  animation:pulseSupport 2.8s ease-in-out infinite;
}

.support-float svg {
  width:24px;
  height:24px;
  grid-row:1 / span 2;
}

.support-float span {
  font-size:10px;
  font-weight:900;
  letter-spacing:1.7px;
  text-transform:uppercase;
  opacity:.72;
}

.support-float strong {
  font-size:14px;
  line-height:1.1;
}

.back-to-top {
  position:fixed;
  left:50%;
  bottom:86px;
  z-index:44;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:999px;
  color:#fff;
  background:rgba(18,40,64,.92);
  box-shadow:0 16px 40px rgba(18,40,64,.24);
  text-decoration:none;
  font-size:12px;
  font-weight:900;
  opacity:0;
  pointer-events:none;
  transform:translate(-50%, 14px);
  transition:opacity .22s ease, transform .22s ease, background .22s ease;
}

.back-to-top.show {
  opacity:1;
  pointer-events:auto;
  transform:translate(-50%, 0);
}

.back-to-top:hover {
  background:var(--blue);
  color:#083047;
}

.modal-backdrop {
  position:fixed;
  inset:0;
  z-index:70;
  display:none;
  place-items:center;
  padding:22px;
  background:rgba(18,40,64,.48);
  backdrop-filter:blur(8px);
}

.modal-backdrop.show {
  display:grid;
}

.modal-card {
  width:min(520px,100%);
  border:1px solid rgba(255,255,255,.45);
  border-radius:24px;
  background:rgba(255,255,255,.96);
  box-shadow:0 28px 70px rgba(18,40,64,.28);
  padding:24px;
  animation:riseIn .22s ease both;
}

.toast-box {
  position:fixed;
  right:22px;
  top:94px;
  z-index:90;
  display:grid;
  gap:10px;
  width:min(340px, calc(100vw - 32px));
  pointer-events:none;
}

.toast {
  transform:translateY(-8px);
  opacity:0;
  border:1px solid rgba(18,40,64,.12);
  border-radius:18px;
  padding:13px 15px;
  color:var(--navy);
  background:rgba(255,255,255,.96);
  box-shadow:0 18px 44px rgba(18,40,64,.18);
  font-size:13px;
  font-weight:900;
  transition:opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity:1;
  transform:translateY(0);
}

.toast-success {
  border-color:rgba(37,211,102,.26);
  background:linear-gradient(135deg,#fff,rgba(37,211,102,.12));
}

.toast-error {
  border-color:rgba(214,69,69,.26);
  background:linear-gradient(135deg,#fff,rgba(214,69,69,.10));
}

.toast-loading {
  border-color:rgba(91,168,212,.28);
  background:linear-gradient(135deg,#fff,rgba(91,168,212,.12));
}

.modal-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.modal-head h2 {
  color:var(--navy);
  font-size:26px;
  line-height:1.12;
  letter-spacing:-.8px;
}

.modal-close {
  width:38px;
  height:38px;
  border:0;
  border-radius:999px;
  background:rgba(18,40,64,.08);
  color:var(--navy);
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.client-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.client-delete-action {
  grid-column:1 / -1;
  margin-top:4px;
}

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

@keyframes floatGlow {
  0%,100% { transform:translate3d(0,0,0) scale(1); opacity:.85; }
  50% { transform:translate3d(-18px,18px,0) scale(1.08); opacity:1; }
}

@keyframes pulseSupport {
  0%,100% { transform:translateY(0); box-shadow:0 16px 40px rgba(37,211,102,.28); }
  50% { transform:translateY(-4px); box-shadow:0 22px 50px rgba(37,211,102,.42); }
}

@keyframes serviceSpin {
  to { transform:rotate(360deg); }
}

@keyframes sectionPulse {
  0% { transform:translateY(0); }
  18% { transform:translateY(-3px); }
  100% { transform:translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
  }
}

@media (max-width:900px) {
  .hero-grid, .admin-shell, .grid-2, .grid-3, .grid-4, .form-grid, .service-buttons { grid-template-columns:1fr; }
  .client-resource-grid { grid-template-columns:1fr; }
  .client-id-grid { grid-template-columns:1fr 1fr; }
  .relationship-banner, .relationship-admin-note { grid-template-columns:1fr; }
  .client-directory-grid { grid-template-columns:1fr; }
  .project-workroom {
    grid-template-columns:1fr;
    grid-template-areas:
      "projects"
      "progress"
      "updates";
    padding-right:0;
  }
  .portal-carousel { grid-auto-columns:minmax(290px, 92%); }
}

@media (max-width:680px) {
  .header-inner { align-items:flex-start; padding:12px 0; flex-direction:column; }
  .nav-actions { width:100%; }
  .button { width:100%; }
  .hero-card, .card-head, .card-body { padding-left:22px; padding-right:22px; }
  .workspace-actions { width:100%; }
  .danger-zone { align-items:stretch; flex-direction:column; }
  .client-id-card-top { flex-direction:column; }
  .client-id-grid { grid-template-columns:1fr; }
  .task-top, .service-top, .update-top, .footer-inner { flex-direction:column; }
  .field { grid-template-columns:1fr; }
  .support-float { right:14px; bottom:96px; min-width:124px; }
  .back-to-top { bottom:92px; }
  .client-actions { grid-template-columns:1fr; }
}
