:root {
  --bg: #91a5c1;
  --ink: #eef3ff;
  --muted: #a4b2d6;
  --line: rgba(159, 180, 255, 0.15);
  --accent: #6d7cff;
  --accent-2: #39b9ff;
  --accent-soft: #95a3ff;
  --green: #52d2a0;
  --shadow: 0 28px 80px rgba(3, 10, 33, 0.45);
  --dark-panel: rgba(7, 18, 42, 0.84);
  --dark-panel-2: rgba(10, 24, 54, 0.9);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 75%, rgba(62, 132, 255, 0.28), transparent 22%),
    radial-gradient(circle at 74% 18%, rgba(120, 109, 255, 0.34), transparent 20%),
    radial-gradient(circle at 55% 55%, rgba(24, 70, 170, 0.2), transparent 24%),
    var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: "Courier New", monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 999px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: #c6d5ff;
}

.muted {
  color: var(--muted);
}

.section-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #95a9de;
}

.muted-dark {
  color: #a7b5d9;
}

.auth-body,
.dashboard-body {
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding: 28px;
  align-items: stretch;
}

.auth-stage,
.auth-panel {
  border-radius: 32px;
  overflow: hidden;
}

.auth-stage {
  position: relative;
  background:
    linear-gradient(180deg, rgba(3, 12, 34, 0.96), rgba(8, 21, 49, 0.94)),
    linear-gradient(135deg, rgba(93, 110, 255, 0.12), rgba(57, 185, 255, 0.08));
  border: 1px solid rgba(145, 170, 255, 0.12);
  box-shadow: var(--shadow);
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.auth-copy {
  position: relative;
  z-index: 2;
}

.auth-stage h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(46px, 5vw, 78px);
  line-height: 0.96;
}

.lede {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.auth-lede {
  color: #aab8dc;
}

.auth-preview {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  padding: 18px;
  border-radius: 24px;
}

.auth-preview-head {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(216, 228, 255, 0.28);
}

.auth-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.preview-card,
.metric-card,
.panel,
.panel-card,
.hero-banner,
.sidebar {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.preview-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.preview-card-large {
  grid-column: 1 / -1;
}

.preview-card strong {
  display: block;
  margin-top: 2px;
  font-size: 24px;
  color: #f1f5ff;
}

.preview-card span {
  display: block;
  margin-top: 8px;
  color: #96a9d8;
  line-height: 1.5;
}

.preview-meter {
  margin-top: 16px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.preview-meter span {
  margin: 0;
  width: 74%;
  height: 100%;
  background: linear-gradient(90deg, #7587ff, #39b9ff, #52d2a0);
}

.auth-orbit {
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
  pointer-events: none;
}

.auth-orbit-a {
  inset: auto auto 12% 8%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(57, 185, 255, 0.22), transparent 68%);
}

.auth-orbit-b {
  inset: 8% 10% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(109, 124, 255, 0.24), transparent 68%);
}

.auth-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  min-width: 0;
}

.auth-panel-dark {
  background:
    linear-gradient(180deg, rgba(3, 12, 34, 0.96), rgba(8, 21, 49, 0.94)),
    linear-gradient(135deg, rgba(93, 110, 255, 0.12), rgba(57, 185, 255, 0.08));
  border: 1px solid rgba(145, 170, 255, 0.12);
  box-shadow: var(--shadow);
}

.panel-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 106, 46, 0.35), transparent 68%);
  filter: blur(18px);
}

.panel-glow-blue {
  background: radial-gradient(circle, rgba(84, 135, 255, 0.3), transparent 68%);
}

.panel-card {
  position: relative;
  width: min(100%, 480px);
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.82);
  backdrop-filter: blur(12px);
}

.panel-card-dark {
  background: linear-gradient(180deg, rgba(11, 25, 56, 0.88), rgba(5, 18, 41, 0.95));
  border: 1px solid rgba(159, 180, 255, 0.14);
  color: #eef3ff;
}

.panel-card h2,
.hero-banner h2,
.panel h3,
.metric-card h3,
.sidebar h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
}

.form-error {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 127, 127, 0.22);
  background: rgba(255, 85, 85, 0.08);
  color: #ffc0c0;
}

.auth-form {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.auth-form label span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9bb0dd;
}

.auth-form input,
.agency-form input,
.agency-form select {
  width: 100%;
  border: 1px solid rgba(148, 171, 255, 0.16);
  border-radius: 16px;
  padding: 15px 16px;
  background: rgba(8, 20, 44, 0.92);
  color: #eef3ff;
  font-size: 16px;
}

.auth-form button,
.ghost-button,
.primary-action {
  border: 0;
  border-radius: 999px;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.auth-form button,
.primary-action {
  margin-top: 6px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-2));
  color: white;
}

.auth-footer-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(159, 180, 255, 0.12);
  color: #90a4d3;
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0;
  padding: 66px 60px;
  align-items: stretch;
}

.dashboard-shell-reference {
  max-width: 1280px;
  margin: 0 auto;
}

.sidebar-rail {
  border-radius: 28px 0 0 28px;
  background:
    radial-gradient(circle at 14% 84%, rgba(64, 137, 255, 0.32), transparent 24%),
    linear-gradient(180deg, rgba(31, 59, 127, 0.88), rgba(4, 16, 39, 0.99));
  border: 1px solid rgba(164, 186, 255, 0.12);
  border-right: 0;
  box-shadow: 0 28px 70px rgba(3, 10, 33, 0.42);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.rail-brand {
  width: 46px;
  height: 46px;
  margin: 0 auto;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 10px 30px rgba(93, 111, 255, 0.35);
}

.rail-nav,
.rail-logout {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.rail-icon,
.rail-icon-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #dce7ff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(167, 187, 255, 0.08);
  letter-spacing: 0.08em;
}

.rail-icon.active {
  background: linear-gradient(135deg, rgba(118, 134, 255, 0.85), rgba(44, 124, 255, 0.8));
  box-shadow: 0 10px 30px rgba(93, 111, 255, 0.35);
}

.rail-icon-button {
  cursor: pointer;
}

.dashboard-main {
  padding: 0;
  display: grid;
  gap: 0;
}

.dashboard-main-dark {
  background:
    linear-gradient(180deg, rgba(2, 11, 31, 0.99), rgba(6, 18, 45, 0.99)),
    linear-gradient(135deg, rgba(93, 110, 255, 0.08), rgba(57, 185, 255, 0.05));
  border: 1px solid rgba(145, 170, 255, 0.12);
  box-shadow: 0 28px 70px rgba(3, 10, 33, 0.42);
  border-radius: 0 28px 28px 0;
  overflow: hidden;
  min-width: 0;
}

.panel-dark {
  background: linear-gradient(180deg, rgba(11, 25, 56, 0.82), rgba(5, 18, 41, 0.9));
  border: 1px solid rgba(159, 180, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(159, 180, 255, 0.1);
}

.topbar h1,
.hero-banner h2,
.panel h3,
.metric-card h3,
.sidebar h1 {
  margin: 0;
}

.dashboard-topbar h1 {
  font-size: 18px;
  font-weight: 500;
}

.topbar-search {
  position: relative;
}

.topbar-search input {
  width: 100%;
  border: 1px solid rgba(148, 171, 255, 0.14);
  background: rgba(8, 20, 44, 0.72);
  color: #eef3ff;
  border-radius: 10px;
  padding: 12px 72px 12px 16px;
  min-width: 0;
  font-size: 13px;
}

.topbar-search span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  color: #b6c5ee;
  background: rgba(255, 255, 255, 0.04);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dashboard-mini-icons {
  display: flex;
  gap: 8px;
}

.dashboard-mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(167, 187, 255, 0.08);
  color: #d8e4ff;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.topbar-user strong,
.team-row strong {
  display: block;
  color: #f1f5ff;
  overflow-wrap: anywhere;
}

.topbar-user p,
.team-row p,
.mini-card p {
  margin: 2px 0 0;
  color: #97a8d3;
  font-size: 12px;
}

.avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-2));
  color: white;
  font-weight: 800;
}

.avatar-circle.small {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.dashboard-main-reference {
  position: relative;
}

.dashboard-showcase {
  position: relative;
  padding-bottom: 18px;
  overflow: hidden;
}

.dashboard-orb,
.dashboard-beam {
  position: absolute;
  pointer-events: none;
}

.dashboard-orb {
  border-radius: 50%;
  mix-blend-mode: screen;
}

.dashboard-orb-a {
  top: 18%;
  left: 24%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(53, 125, 255, 0.18), transparent 68%);
  filter: blur(48px);
}

.dashboard-orb-b {
  right: 8%;
  bottom: 10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(122, 86, 255, 0.16), transparent 68%);
  filter: blur(48px);
}

.dashboard-beam-a {
  top: -36px;
  right: 176px;
  width: 126px;
  height: 860px;
  background: linear-gradient(180deg, rgba(133, 126, 255, 0), rgba(133, 126, 255, 0.62), rgba(133, 126, 255, 0));
  transform: rotate(28deg);
  filter: blur(12px);
}

.dashboard-beam-b {
  bottom: -72px;
  left: 232px;
  width: 116px;
  height: 320px;
  background: linear-gradient(180deg, rgba(84, 135, 255, 0), rgba(84, 135, 255, 0.46), rgba(84, 135, 255, 0));
  transform: rotate(22deg);
  filter: blur(10px);
}

.dashboard-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 252px;
  gap: 16px;
  padding: 14px 22px 0;
  align-items: start;
}

.dashboard-welcome {
  padding: 8px 0 2px;
}

.welcome-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  color: #a6b6df;
}

.dashboard-welcome h2 {
  margin: 0;
  font-size: clamp(42px, 4.8vw, 58px);
  font-weight: 300;
  letter-spacing: -0.04em;
}

.hero-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 40px;
}

.toolbar-select-reference {
  min-width: 138px;
  padding: 10px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(159, 180, 255, 0.12);
}

.toolbar-select-reference span {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  color: #91a4d3;
}

.toolbar-select-reference strong {
  font-size: 13px;
  color: #f2f6ff;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.segmented-control span {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  color: #95a9de;
}

.segmented-control .active {
  background: rgba(109, 124, 255, 0.18);
  color: white;
}

.dashboard-team-panel {
  grid-column: 3;
  grid-row: 1 / span 2;
  padding: 18px 16px;
  border-radius: 14px;
}

.team-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.task-row,
.team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(159, 180, 255, 0.1);
}

.dashboard-grid {
  display: grid;
  gap: 16px;
  padding: 12px 22px 22px;
}

.dashboard-grid-showcase {
  position: relative;
  z-index: 1;
  grid-template-columns: 1.02fr 1.08fr 0.62fr;
  grid-template-areas:
    "storage spaces team"
    "upload access team";
}

.showcase-storage-card,
.showcase-spaces-card,
.showcase-upload-card,
.showcase-access-card {
  border-radius: 14px;
}

.showcase-storage-card {
  grid-area: storage;
  padding: 18px 18px 14px;
}

.showcase-spaces-card {
  grid-area: spaces;
  padding: 16px;
}

.showcase-upload-card {
  grid-area: upload;
  padding: 16px;
}

.showcase-access-card {
  grid-area: access;
  padding: 16px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.panel-badge,
.mini-tag,
.agency-plan {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: #dfe8ff;
  background: rgba(255, 255, 255, 0.05);
}

.reference-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #9aaedb;
  text-transform: uppercase;
}

.showcase-storage-value {
  margin-top: 18px;
  font-size: 58px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.05em;
  color: #f5f8ff;
}

.showcase-storage-value span {
  font-size: 0.58em;
  font-weight: 400;
}

.showcase-storage-footer {
  margin-top: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.showcase-storage-footer span {
  color: rgba(245, 248, 255, 0.92);
}

.showcase-storage-footer strong {
  color: #d6e2ff;
  font-size: 12px;
  font-weight: 500;
}

.gradient-meter {
  margin-top: 26px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.gradient-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff8f5a, #f6c655, #43c4ff, #52d2a0);
}

.showcase-space-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.showcase-space-box,
.mini-card,
.agency-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(159, 180, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.showcase-space-top,
.agency-card-top,
.agency-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.showcase-space-title {
  font-size: 15px;
  color: #f2f6ff;
}

.space-dots {
  color: #7f90b8;
  letter-spacing: 0.16em;
}

.showcase-space-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.showcase-space-stats strong {
  display: block;
  font-size: 15px;
  color: #f4f8ff;
}

.showcase-space-stats span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #90a4d3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.upload-list,
.agency-list {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.upload-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(90px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.upload-doc {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: linear-gradient(135deg, rgba(109, 124, 255, 0.9), rgba(57, 185, 255, 0.78));
  color: white;
}

.upload-doc-alt {
  background: linear-gradient(135deg, rgba(149, 112, 255, 0.92), rgba(104, 129, 255, 0.76));
}

.upload-doc-warn {
  background: linear-gradient(135deg, rgba(226, 164, 57, 0.92), rgba(232, 126, 72, 0.76));
}

.upload-copy strong,
.mini-card strong,
.agency-card strong {
  display: block;
  color: #f1f5ff;
}

.upload-copy strong {
  font-size: 14px;
}

.upload-copy span,
.agency-card p {
  display: block;
  margin-top: 4px;
  color: #8fa3d1;
  font-size: 12px;
}

.upload-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.upload-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(157, 189, 255, 0.35));
}

.upload-status {
  color: #cfe0ff;
  font-size: 12px;
  font-weight: 600;
}

.upload-status-done {
  color: #7ff2b5;
}

.upload-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(159, 180, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.upload-footer span {
  color: #9cb0de;
}

.upload-footer strong {
  color: #f2f6ff;
}

.upload-footer::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 72px;
  bottom: 10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #418fff, #57d1cb);
}

.access-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.access-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 0.7fr 0.7fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(92, 103, 220, 0.26), rgba(58, 78, 146, 0.18));
  border: 1px solid rgba(159, 180, 255, 0.1);
}

.access-main {
  min-width: 0;
}

.access-row strong {
  display: block;
  color: #f2f6ff;
}

.access-row span {
  color: #d9e3fb;
  font-size: 13px;
}

.access-row button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(142, 152, 255, 0.95), rgba(124, 151, 255, 0.82));
  color: white;
  font-weight: 600;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack span {
  width: 26px;
  height: 26px;
  margin-left: -6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #eef3ff;
  background: linear-gradient(135deg, rgba(122, 138, 255, 0.95), rgba(76, 106, 220, 0.85));
  border: 2px solid rgba(11, 25, 56, 0.95);
}

.avatar-stack span:first-child {
  margin-left: 0;
}

.feature-large,
.side-stack,
.roadmap-panel,
.team-panel,
.agencies-form-panel,
.agencies-list-panel {
  padding: 24px;
  border-radius: 24px;
}

.storage-value {
  margin-top: 26px;
  font-size: 78px;
  line-height: 0.95;
  font-weight: 300;
  color: #f3f7ff;
}

.mini-grid {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.mini-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ea1d5;
}

.task-list {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.task-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--green));
  flex: 0 0 auto;
}

.agencies-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 18px;
  padding: 22px 28px 28px;
}

.agency-form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.agency-form label span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9bb0dd;
}

.agency-card strong {
  font-size: 18px;
}

.agency-card-meta {
  margin-top: 14px;
  justify-content: flex-start;
  color: #a9b8dc;
  font-size: 13px;
}

.color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

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

  .dashboard-team-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .dashboard-grid-showcase {
    grid-template-columns: 1fr 1.1fr;
    grid-template-areas:
      "storage team"
      "spaces team"
      "upload access";
  }

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

@media (max-width: 1080px) {
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .auth-stage,
  .auth-panel {
    padding: 28px;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .topbar-search,
  .topbar-user {
    width: 100%;
  }

  .topbar-user {
    justify-content: space-between;
  }

  .dashboard-hero-grid {
    grid-template-columns: 1fr;
    padding: 12px 18px 0;
  }

  .hero-toolbar {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 0;
  }

  .dashboard-grid-showcase {
    grid-template-columns: 1fr;
    grid-template-areas:
      "storage"
      "spaces"
      "upload"
      "access"
      "team";
  }
}

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

  .dashboard-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .sidebar-rail {
    grid-template-columns: auto 1fr auto;
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 14px;
    position: sticky;
    top: 0;
    z-index: 20;
    border-radius: 20px;
    border-right: 1px solid rgba(164, 186, 255, 0.12);
  }

  .rail-nav {
    grid-auto-flow: column;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .agencies-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

@media (max-width: 720px) {
  .auth-shell,
  .dashboard-shell {
    padding: 12px;
    gap: 12px;
  }

  .auth-stage,
  .auth-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .auth-stage h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .lede {
    font-size: 16px;
  }

  .panel-card {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .dashboard-main-dark {
    border-radius: 24px;
  }

  .topbar,
  .dashboard-grid,
  .agencies-layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    gap: 14px;
  }

  .topbar-search input {
    padding-right: 16px;
  }

  .topbar-search span {
    display: none;
  }

  .topbar-user {
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control span {
    text-align: center;
  }

  .feature-large,
  .side-stack,
  .roadmap-panel,
  .team-panel,
  .agencies-form-panel,
  .agencies-list-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .showcase-storage-value {
    font-size: 46px;
  }

  .showcase-space-grid {
    grid-template-columns: 1fr;
  }

  .access-row {
    grid-template-columns: 1fr;
  }

  .upload-row {
    grid-template-columns: 28px 1fr;
  }

  .upload-bar,
  .upload-status {
    grid-column: 2;
  }

  .task-row,
  .team-row {
    padding: 10px 12px;
  }
}

@media (max-width: 520px) {
  .auth-shell,
  .dashboard-shell {
    padding: 10px;
  }

  .auth-stage,
  .auth-panel,
  .dashboard-main-dark,
  .sidebar-rail {
    border-radius: 20px;
  }

  .auth-stage {
    padding: 18px;
  }

  .auth-panel {
    padding: 16px;
  }

  .panel-card h2,
  .hero-banner h2,
  .panel h3,
  .metric-card h3,
  .sidebar h1 {
    font-size: clamp(24px, 8vw, 30px);
  }

  .rail-brand,
  .rail-icon,
  .rail-icon-button {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .dashboard-welcome h2 {
    font-size: 36px;
  }
}
