@import url("rise-fonts.css");

:root {
  --rise-navy: #002d55;
  --rise-navy-2: #08233f;
  --rise-blue: #176eb7;
  --rise-teal: #0f766e;
  --rise-green: #15803d;
  --rise-orange: #f26b21;
  --rise-red: #dc2626;
  --rise-yellow: #facc15;
  --ink: #101828;
  --muted: #5f6b7a;
  --subtle: #7b8494;
  --line: #d8dee8;
  --line-dark: #c6ccd6;
  --canvas: #f3f2f1;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef4f8;
  --blackbar: #242423;
  --sidebar: #f7f7f7;
  --focus: rgba(23, 110, 183, 0.22);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 12px 28px rgba(16, 24, 40, 0.08);
  --radius: 4px;
  --sidebar-width: 226px;
  --topbar-height: 56px;
  --footer-height: 28px;
}

/* V3 live workspace shell. This is the real logged-in portal frame, not the preview. */
body:has(.live-workspace) {
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(217, 237, 242, 0.76), transparent 31%),
    linear-gradient(315deg, rgba(242, 107, 33, 0.08), transparent 28%),
    #eef3f4;
  color: #162636;
  font-family: var(--rise-ui-font);
  font-size: 13px;
}

.live-workspace {
  --v3-navy: #11283b;
  --v3-blue: #173c52;
  --v3-teal: #35776a;
  --v3-orange: #b85830;
  --v3-gold: #e1aa45;
  --v3-ink: #162636;
  --v3-muted: #60707d;
  --v3-line: #cfdde4;
  --v3-soft: #f8fbfc;
  --v3-paper: #eef3f4;
  --v3-rail: 76px;
  --v3-top: 120px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--v3-rail) minmax(0, 1fr);
  grid-template-rows: var(--v3-top) minmax(0, 1fr) 28px;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(217, 237, 242, 0.76), transparent 31%),
    linear-gradient(315deg, rgba(242, 107, 33, 0.08), transparent 28%),
    var(--v3-paper);
}

.live-workspace .suitebar {
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
  height: var(--v3-top);
  display: grid;
  grid-template-columns: minmax(430px, 46vw) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background:
    linear-gradient(90deg, rgba(53, 119, 106, 0.22), transparent 42%),
    var(--v3-navy);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.live-workspace .suite-brand {
  min-width: 0;
  height: 96px;
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.live-workspace .suite-brand-banner {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.live-workspace .workspace-top-banner {
  width: 100%;
  height: 88px;
  display: block;
  object-fit: cover;
  object-position: left center;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.live-workspace .global-search {
  min-width: 0;
  width: 100%;
  max-width: 760px;
  height: 48px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 54px;
  align-items: center;
  border: 1px solid rgba(207, 221, 228, 0.92);
  background: #f8fbfc;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.live-workspace .global-search span {
  padding-left: 14px;
  color: var(--v3-blue);
  font-weight: 700;
}

.live-workspace .global-search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0 12px;
  background: transparent;
  color: var(--v3-ink);
  font: inherit;
}

.live-workspace .global-search input::placeholder {
  color: #6b7b88;
}

.live-workspace .search-action {
  width: 54px;
  min-height: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--v3-line);
  background: var(--v3-orange);
  color: #fff;
  font-weight: 800;
}

.live-workspace .suite-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #fff;
}

.live-workspace .suite-button,
.live-workspace .suite-menu > summary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.live-workspace .suite-menu {
  position: relative;
}

.live-workspace .suite-menu > summary {
  list-style: none;
}

.live-workspace .suite-menu > summary::-webkit-details-marker {
  display: none;
}

.live-workspace .suite-menu > div {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: 250px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--v3-line);
  background: #fff;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.2);
}

.live-workspace .suite-menu:not([open]) > div {
  display: none;
}

.live-workspace .suite-menu a {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--v3-ink);
  text-decoration: none;
  font-weight: 700;
}

.live-workspace .suite-menu a:hover,
.live-workspace .suite-menu a:focus-visible {
  background: #fff3ec;
  color: #7c2d12;
}

.live-workspace .suite-role {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  white-space: nowrap;
}

.live-workspace .identity {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.live-workspace .identity-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--v3-orange);
  color: #fff;
  font-weight: 800;
}

.live-workspace .identity-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-workspace .identity-avatar img + span {
  display: none;
}

.live-workspace .nav-edge-toggle {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  justify-self: center;
  z-index: 18;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-top: 8px;
  padding: 0;
  border: 1px solid var(--v3-line);
  background: #fff;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease, background 160ms ease;
}

.live-workspace .nav-edge-toggle img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.live-workspace.nav-toggle-dormant .nav-edge-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-18px);
  visibility: hidden;
}

.live-workspace .rail {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 70px 7px 8px;
  background: #f7fbfc;
  border-right: 1px solid var(--v3-line);
}

.live-workspace .rail a {
  min-height: 39px;
  display: grid;
  place-items: center;
  gap: 1px;
  color: #0f172a;
  text-decoration: none;
  font-size: 9.5px;
  font-weight: 750;
  line-height: 1.05;
  border-left: 3px solid transparent;
}

.live-workspace .rail a.active {
  background: #fff3ec;
  border-left-color: var(--v3-orange);
  color: #08233f;
}

.live-workspace .rail img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.live-workspace .rail a.nav-icon-emphasis > img,
.live-workspace .rail a.nav-icon-emphasis .nav-icon-badge-wrap > img {
  width: 27px;
  height: 27px;
}

.live-workspace .rail a.nav-brand-link > img {
  width: 31px;
  height: 25px;
}

.live-workspace .rail a.nav-icon-emphasis .nav-icon-badge-wrap {
  width: 29px;
  height: 27px;
}

.live-workspace .rail span {
  max-width: 62px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-workspace .canvas {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px 28px;
  background:
    linear-gradient(135deg, rgba(217, 237, 242, 0.74), transparent 31%),
    linear-gradient(315deg, rgba(225, 170, 69, 0.12), transparent 28%),
    var(--v3-paper);
}

.live-workspace .portal-page-shell {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.live-workspace.nav-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.live-workspace.nav-collapsed .rail {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
}

.live-workspace.nav-collapsed .nav-edge-toggle {
  position: fixed;
  top: calc(var(--v3-top) + 12px);
  left: 12px;
  z-index: 40;
  box-shadow: 0 12px 28px rgba(17, 40, 59, 0.16);
}

.live-workspace.nav-collapsed .canvas {
  grid-column: 1 / -1;
}

.live-workspace .portal-built-footer {
  grid-column: 1 / -1;
  grid-row: 3;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--v3-line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--v3-muted);
  font-size: 12px;
}

.live-workspace .object-header,
.live-workspace .section-header,
.live-workspace .page-hero,
.live-workspace .dashboard-hero {
  margin: 0 0 14px;
  padding: 22px 26px;
  border: 1px solid var(--v3-line);
  background: linear-gradient(110deg, #fff 0%, #fff 58%, #d9edf2 100%);
  box-shadow: 0 18px 48px rgba(17, 40, 59, 0.08);
}

.live-workspace h1,
.live-workspace h2,
.live-workspace h3 {
  font-family: "Aptos Display", "Aptos", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  color: #08233f;
  letter-spacing: 0;
}

.live-workspace h1 {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
  font-weight: 760;
}

.live-workspace h2 {
  font-size: 20px;
  font-weight: 730;
}

.live-workspace h3 {
  font-size: 16px;
  font-weight: 720;
}

.live-workspace .kicker,
.live-workspace .eyebrow,
.live-workspace .section-kicker {
  color: #0f6096;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-workspace .view-tabs,
.live-workspace .tab-list,
.live-workspace .status-tabs,
.live-workspace .filter-tabs {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--v3-line);
}

.live-workspace .view-tabs a,
.live-workspace .view-tabs button,
.live-workspace .status-tabs a,
.live-workspace .status-tabs button,
.live-workspace .filter-tabs a,
.live-workspace .filter-tabs button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--v3-line);
  background: #fff;
  color: var(--v3-ink);
  text-decoration: none;
  font-weight: 800;
}

.live-workspace .view-tabs .active,
.live-workspace .status-tabs .active,
.live-workspace .filter-tabs .active {
  border-color: rgba(184, 88, 48, 0.72);
  background: #fff3ec;
  color: #7c2d12;
}

.live-workspace .panel,
.live-workspace .card,
.live-workspace .metric-card,
.live-workspace .module-card,
.live-workspace .detail-pane,
.live-workspace .record-list,
.live-workspace .filter-card,
.live-workspace .form-panel {
  border: 1px solid var(--v3-line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(17, 40, 59, 0.05);
}

.live-workspace .metric-grid,
.live-workspace .stats-grid,
.live-workspace .dashboard-grid,
.live-workspace .overview-grid,
.live-workspace .tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.live-workspace .filter-bar,
.live-workspace .search-row,
.live-workspace .toolbar {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.live-workspace input,
.live-workspace select,
.live-workspace textarea {
  max-width: 100%;
  border-color: #aebccc;
  border-radius: 0;
}

.live-workspace .button,
.live-workspace button,
.live-workspace input[type="submit"] {
  border-radius: 0;
}

.live-workspace .collection-table-wrap,
.live-workspace .table-scroll {
  max-width: 100%;
  overflow-x: hidden;
}

.live-workspace .collection-table,
.live-workspace table.compact-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-color: var(--v3-line);
  background: #fff;
}

.live-workspace .collection-table th,
.live-workspace .collection-table td,
.live-workspace table.compact-table th,
.live-workspace table.compact-table td {
  padding: 9px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.live-workspace .collection-table th,
.live-workspace table.compact-table th {
  background: #f8fbfc;
  color: #08233f;
  font-size: 12px;
  font-weight: 800;
}

.live-workspace .table-col-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  z-index: 4;
  width: 8px;
  height: 100%;
  cursor: col-resize;
}

.live-workspace .table-col-resizer::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 3px;
  width: 1px;
  height: 64%;
  background: transparent;
}

.live-workspace th:hover > .table-col-resizer::after,
body.is-resizing-table .live-workspace .table-col-resizer::after {
  background: var(--v3-orange);
}

@media (max-width: 1180px) {
  .live-workspace {
    --v3-top: 112px;
  }

  .live-workspace .suitebar {
    grid-template-columns: minmax(430px, 48vw) minmax(0, 1fr);
    grid-template-rows: 34px 48px;
    align-content: center;
    column-gap: 14px;
    row-gap: 4px;
  }

  .live-workspace .suite-brand {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 88px;
  }

  .live-workspace .workspace-top-banner {
    height: 84px;
  }

  .live-workspace .suite-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    gap: 6px;
  }

  .live-workspace .suite-button,
  .live-workspace .suite-menu > summary {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  .live-workspace .suite-role {
    display: none;
  }

  .live-workspace .global-search {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
  }

  .live-workspace .metric-grid,
  .live-workspace .stats-grid,
  .live-workspace .dashboard-grid,
  .live-workspace .overview-grid,
  .live-workspace .tiles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .live-workspace {
    --v3-rail: 0;
    --v3-top: 126px;
    grid-template-columns: minmax(0, 1fr);
  }

  .live-workspace .suitebar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 48px 34px 38px;
    padding: 8px;
  }

  .live-workspace .suite-brand {
    grid-column: 1;
    grid-row: 1;
    height: 48px;
  }

  .live-workspace .workspace-top-banner {
    height: 46px;
    object-fit: cover;
  }

  .live-workspace .suite-actions {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .live-workspace .identity strong {
    display: none;
  }

  .live-workspace .global-search {
    grid-column: 1;
    grid-row: 3;
    height: 38px;
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .live-workspace .global-search span {
    display: none;
  }

  .live-workspace .search-action {
    width: 48px;
    min-height: 38px;
    height: 38px;
  }

  .live-workspace .rail {
    position: fixed;
    top: var(--v3-top);
    left: 0;
    z-index: 35;
    width: 76px;
    height: calc(100vh - var(--v3-top));
    transform: translateX(-100%);
    box-shadow: 18px 0 38px rgba(17, 40, 59, 0.16);
  }

  .live-workspace:not(.nav-collapsed) .rail {
    transform: translateX(0);
  }

  .live-workspace .nav-edge-toggle {
    position: fixed;
    top: calc(var(--v3-top) + 10px);
    left: 8px;
    z-index: 40;
  }

  .live-workspace .canvas,
  .live-workspace.nav-collapsed .canvas {
    grid-column: 1;
    padding: 16px;
  }

  .live-workspace .metric-grid,
  .live-workspace .stats-grid,
  .live-workspace .dashboard-grid,
  .live-workspace .overview-grid,
  .live-workspace .tiles-grid {
    grid-template-columns: 1fr;
  }
}

/* V3 header sync: keep the approved Workspace banner visible and prevent the shell from mixing cropped/header states. */
.live-workspace {
  --v3-top: 104px;
  grid-template-rows: var(--v3-top) minmax(0, 1fr) 28px;
}

.live-workspace .suitebar {
  height: var(--v3-top);
  grid-template-columns: minmax(440px, 620px) minmax(300px, 1fr) auto;
  gap: 14px;
  padding: 10px 14px;
  overflow: hidden;
  align-items: center;
}

.live-workspace .suite-brand {
  width: min(620px, 100%);
  height: 84px;
}

.live-workspace .workspace-top-banner {
  width: 100%;
  height: 84px;
  max-width: none;
  object-fit: contain !important;
  object-position: left center;
  border: 0;
}

.live-workspace .global-search {
  max-width: 650px;
  height: 42px;
  grid-template-columns: 70px minmax(0, 1fr) 54px;
}

.live-workspace .search-action {
  min-height: 42px;
  height: 42px;
}

.live-workspace .rail {
  padding-top: 66px;
}

.live-workspace.nav-collapsed .nav-edge-toggle {
  top: calc(var(--v3-top) + 12px);
}

@media (max-width: 1180px) {
  .live-workspace {
    --v3-top: 104px;
  }

  .live-workspace .suitebar {
    grid-template-columns: minmax(410px, 50vw) minmax(0, 1fr);
    grid-template-rows: 32px 42px;
    align-content: center;
  }

  .live-workspace .suite-brand {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 100%;
    height: 78px;
  }

  .live-workspace .workspace-top-banner {
    height: 78px;
  }

  .live-workspace .suite-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .live-workspace .global-search {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
    height: 42px;
  }
}

@media (max-width: 840px) {
  .live-workspace {
    --v3-top: 116px;
  }

  .live-workspace .suitebar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 44px 30px 36px;
    align-content: center;
    padding: 8px;
  }

  .live-workspace .suite-brand {
    grid-column: 1;
    grid-row: 1;
    width: min(360px, 70vw);
    height: 44px;
  }

  .live-workspace .workspace-top-banner {
    height: 44px;
  }

  .live-workspace .suite-actions {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .live-workspace .global-search {
    grid-column: 1;
    grid-row: 3;
    height: 36px;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .live-workspace .search-action {
    width: 48px;
    min-height: 36px;
    height: 36px;
  }
}

/* Public landing page: match the Fox Cities RISE site tone and use the Workspace banner as the brand anchor. */
body:not(:has(.admin-frame)) {
  background:
    linear-gradient(180deg, #e8f4fb 0, #f8fbff 34%, #fffaf4 100%);
}

.public-topbar:not(.public-topbar-focus) {
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 10px clamp(16px, 4vw, 38px);
  background:
    linear-gradient(90deg, #071d2f 0%, #0b3556 54%, #0d4e7d 100%);
  border-bottom: 4px solid var(--rise-orange);
}

.public-return-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.public-return-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.public-brand-banner-link {
  display: block;
  flex: 0 1 520px;
  min-width: 260px;
}

.public-brand-banner {
  display: block;
  width: min(520px, 48vw);
  height: 82px;
  object-fit: contain;
  object-position: left center;
}

.public-topbar:not(.public-topbar-focus) .public-nav a {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.public-topbar:not(.public-topbar-focus) .public-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.public-topbar:not(.public-topbar-focus) .public-nav a:first-child {
  border-color: transparent;
  background: var(--rise-orange);
}

/* V3 approved overview: real dashboard layout matching the preview direction. */
.live-workspace {
  --v3-top: 156px;
  grid-template-rows: var(--v3-top) minmax(0, 1fr) 28px;
}

.live-workspace .suitebar {
  height: var(--v3-top);
  grid-template-columns: minmax(560px, 742px) minmax(320px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 20px 15px;
}

.live-workspace .suite-brand {
  width: min(742px, 100%);
  height: 116px;
}

.live-workspace .workspace-top-banner {
  width: 100%;
  height: 116px;
  object-fit: contain !important;
  object-position: left center;
  border: 0;
  background: transparent;
}

.live-workspace .global-search {
  max-width: 560px;
  height: 50px;
  grid-template-columns: 76px minmax(0, 1fr) 58px;
}

.live-workspace .search-action {
  width: 58px;
  min-height: 50px;
  height: 50px;
}

.live-workspace .suite-actions {
  gap: 10px;
}

.live-workspace .suite-signout {
  border-color: rgba(255, 255, 255, 0.35);
}

.live-workspace .nav-edge-toggle {
  margin-top: 12px;
}

.live-workspace .rail {
  padding-top: 72px;
  gap: 1px;
}

.live-workspace .rail a {
  min-height: 38px;
}

.live-workspace .canvas {
  padding: 28px;
}

.overview-v3 {
  display: grid;
  gap: 16px;
  color: var(--v3-ink);
}

.overview-v3 a {
  color: inherit;
  text-decoration: none;
}

.overview-v3 .label {
  margin: 0 0 12px;
  color: #0f3d5a;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.overview-hero-v3 .dashboard-greeting-label {
  display: block;
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.overview-hero-v3 {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 32px;
  padding: 32px;
  border: 1px solid var(--v3-line);
  background: linear-gradient(110deg, #fff 0%, #fff 58%, #d9edf2 100%);
  box-shadow: 0 18px 50px rgba(17, 40, 59, 0.08);
}

.overview-hero-v3 h1 {
  max-width: 980px;
  margin: 0 0 12px;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.08;
  font-weight: 620;
}

.overview-hero-v3 p:not(.label) {
  max-width: 920px;
  margin: 0;
  color: #405064;
  font-size: 15px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.rise-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--v3-line);
  background: rgba(255, 255, 255, 0.92);
  color: #162636;
  font-weight: 800;
  text-decoration: none;
}

.rise-action:hover,
.rise-action:focus-visible {
  background: #f8fbfc;
  color: #0f3d5a;
}

.rise-action.primary {
  border-color: #b85830;
  background: #b85830;
  color: #fff;
}

.rise-action.small {
  min-height: 32px;
  padding: 0 11px;
  font-size: 12px;
}

.signal-card {
  min-height: 232px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14);
  text-align: center;
}

.signal-ring {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(#35776a 0 var(--score, 92%), #d9edf2 var(--score, 92%) 100%);
  color: #162636;
  font-size: 30px;
  font-weight: 760;
}

.signal-card strong {
  color: #162636;
  font-size: 15px;
  font-weight: 820;
}

.signal-card small {
  max-width: 230px;
  color: #405064;
  line-height: 1.35;
}

.insight-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.insight-row a {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--v3-line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.insight-row a:hover,
.priority-card:hover,
.timeline a:hover,
.quick-grid a:hover {
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 40, 59, 0.09);
}

.insight-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #35776a;
  font-weight: 850;
}

.insight-icon.blue { background: #14344a; }
.insight-icon.green { background: #35776a; }
.insight-icon.orange { background: #b85830; }

.insight-row strong,
.insight-row small {
  display: block;
}

.insight-row strong {
  color: #162636;
  font-size: 15px;
}

.insight-row small {
  margin-top: 4px;
  color: #526174;
  line-height: 1.35;
}

.priority-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.priority-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--v3-line);
  border-top: 5px solid #176eb7;
  background: rgba(255, 255, 255, 0.92);
}

.priority-card.danger { border-top-color: #b85830; }
.priority-card.green { border-top-color: #35776a; }
.priority-card.orange { border-top-color: #e1aa45; }

.priority-card span,
.priority-card small {
  color: #60707d;
  font-weight: 760;
}

.priority-card strong {
  color: #08233f;
  font-size: 38px;
  line-height: 1;
  font-weight: 680;
}

.workbench,
.executive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.module-card,
.strategy-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--v3-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(17, 40, 59, 0.05);
}

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

.card-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 680;
}

.card-head span {
  color: #35776a;
  font-weight: 820;
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline a {
  min-width: 0;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--v3-line);
  background: #fff;
}

.timeline b {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #35776a;
}

.timeline strong,
.timeline small {
  display: block;
}

.timeline small {
  margin-top: 3px;
  color: #60707d;
}

.timeline em {
  color: #b85830;
  font-style: normal;
  font-weight: 850;
}

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

.quick-grid a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--v3-line);
  background: #fff;
  color: #162636;
  font-weight: 780;
}

.program-map {
  display: grid;
  grid-template-columns: auto minmax(18px, 1fr) auto minmax(18px, 1fr) auto minmax(18px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.program-map .node {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--v3-line);
  background: #fff;
  color: #162636;
  font-weight: 780;
}

.program-map .node.strong {
  border-color: rgba(53, 119, 106, 0.45);
  background: #e7f5f0;
}

.program-map .line {
  height: 2px;
  background: var(--v3-line);
}

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

.snapshot-grid span {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--v3-line);
  background: #fff;
  color: #526174;
  font-weight: 720;
}

.snapshot-grid strong {
  color: #08233f;
  font-size: 26px;
  line-height: 1;
}

.overview-customizer-v3 {
  margin: 0;
  background: rgba(255, 255, 255, 0.86);
}

@media (max-width: 1320px) {
  .live-workspace {
    --v3-top: 128px;
  }

  .live-workspace .suitebar {
    grid-template-columns: minmax(430px, 52vw) minmax(0, 1fr);
    grid-template-rows: 36px 50px;
    align-content: center;
    row-gap: 6px;
    padding: 12px 14px;
  }

  .live-workspace .suite-brand {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 96px;
  }

  .live-workspace .workspace-top-banner {
    height: 96px;
  }

  .live-workspace .suite-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .live-workspace .suite-role {
    display: none;
  }

  .live-workspace .global-search {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
  }

  .overview-hero-v3 {
    min-height: 260px;
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 980px) {
  .overview-hero-v3,
  .workbench,
  .executive-grid {
    grid-template-columns: 1fr;
  }

  .insight-row,
  .priority-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .live-workspace {
    --v3-top: 126px;
  }

  .live-workspace .suitebar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 46px 32px 38px;
    padding: 8px;
  }

  .live-workspace .suite-brand {
    grid-column: 1;
    grid-row: 1;
    width: min(420px, 72vw);
    height: 46px;
  }

  .live-workspace .workspace-top-banner {
    height: 46px;
  }

  .live-workspace .suite-actions {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    overflow: hidden;
  }

  .live-workspace .suite-actions .suite-menu,
  .live-workspace .suite-actions .suite-signout {
    display: none;
  }

  .live-workspace .global-search {
    grid-column: 1;
    grid-row: 3;
    height: 38px;
    grid-template-columns: minmax(0, 1fr) 50px;
  }

  .live-workspace .global-search span {
    display: none;
  }

  .live-workspace .search-action {
    width: 50px;
    min-height: 38px;
    height: 38px;
  }

  .live-workspace .canvas {
    padding: 18px;
  }

  .overview-hero-v3 {
    min-height: auto;
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .insight-row,
  .priority-strip,
  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .program-map {
    grid-template-columns: 1fr;
  }

  .program-map .line {
    display: none;
  }
}

.public-shell {
  width: min(1120px, calc(100vw - 32px));
  padding-top: 28px;
}

.public-shell-home {
  padding-top: 20px;
}

.public-shell-home .access-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.public-shell-home .access-code-card {
  min-height: 0;
  padding: 16px;
}

.public-shell-home .public-code-form > div {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.public-shell-home .public-code-form button {
  width: 100%;
}

.public-home {
  grid-template-columns: 1fr;
  gap: 18px;
}

.portal-landing-hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  border: 1px solid rgba(8, 35, 63, 0.24);
  background:
    linear-gradient(90deg, #071d2f 0%, #0d3554 58%, #0f6c98 100%);
  box-shadow: 0 22px 56px rgba(8, 35, 63, 0.18);
}

.portal-landing-banner {
  min-height: 252px;
  background: #071d2f;
}

.portal-landing-banner img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 252px;
  object-fit: cover;
  object-position: center;
}

.portal-landing-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
  color: #fff;
}

.portal-landing-copy .kicker {
  color: #7dd3fc;
}

.portal-landing-copy h1 {
  max-width: 360px;
  margin-bottom: 0;
  color: #fff;
  font-size: 34px;
  font-weight: 750;
}

.portal-landing-copy p {
  margin-bottom: 0;
  color: #e8f6ff;
  font-size: 15px;
}

.portal-landing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.portal-landing-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.public-code-panel {
  border-top: 4px solid var(--rise-orange);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.public-code-panel h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.access-code-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.access-code-card {
  position: relative;
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  border-color: #cbd8e5;
}

.access-code-card.primary-access-card {
  border-color: rgba(242, 107, 33, 0.65);
  background:
    linear-gradient(180deg, #fff8f2 0%, #ffffff 62%);
}

.access-card-label {
  color: var(--rise-orange);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-code-card h3 {
  margin-bottom: 0;
  font-size: 22px;
}

.public-code-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 2px;
}

.public-code-form input {
  min-height: 42px;
  border-color: #9db3c7;
  font-size: 14px;
}

.public-code-form button {
  min-height: 42px;
  padding-inline: 18px;
}

.staff-access-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-left: 4px solid var(--rise-green);
}

.staff-access-card p {
  max-width: 760px;
  margin-bottom: 0;
}

.workspace-login-shell {
  width: min(1120px, calc(100vw - 32px));
  grid-template-columns: minmax(0, 1.1fr) 420px;
  align-items: stretch;
}

.workspace-login-brand {
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 0;
  background: #071d2f;
  color: #fff;
}

.workspace-login-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.workspace-login-brand > div {
  padding: 24px 28px 28px;
  background:
    linear-gradient(90deg, #071d2f 0%, #0b3556 54%, #126f9b 100%);
}

.workspace-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.workspace-login-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.workspace-login-actions a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.workspace-login-actions a.primary {
  border-color: transparent;
  background: var(--rise-orange);
}

.workspace-login-actions a.active {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.14);
}

.workspace-login-brand .kicker {
  color: #7dd3fc;
}

.workspace-login-brand h1 {
  color: #fff;
  font-size: 34px;
}

.workspace-login-brand p {
  max-width: 640px;
  color: #e8f6ff;
  font-size: 15px;
}

.workspace-login-card {
  border-top: 4px solid var(--rise-orange);
}

.workspace-login-card h1 {
  margin: 2px 0 18px;
  color: var(--navy);
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.05;
}

.workspace-login-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

@media (max-width: 980px) {
  .public-topbar:not(.public-topbar-focus) {
    justify-content: center;
  }

  .public-brand-banner-link {
    flex-basis: 100%;
    min-width: 0;
  }

  .public-brand-banner {
    width: min(520px, 100%);
    height: auto;
    max-height: 82px;
    margin: 0 auto;
  }

  .portal-landing-hero,
  .access-code-grid {
    grid-template-columns: 1fr;
  }

  .portal-landing-banner,
  .portal-landing-banner img {
    min-height: 0;
  }

  .portal-landing-copy h1 {
    max-width: none;
    font-size: 28px;
  }

  .portal-landing-copy {
    grid-template-columns: 1fr;
  }

  .portal-landing-tags {
    justify-content: flex-start;
  }

  .workspace-login-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .public-brand-banner {
    height: 58px;
  }

  .workspace-login-brand > div {
    padding: 20px;
  }

  .workspace-login-actions {
    gap: 7px;
  }

  .workspace-login-actions a {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  .portal-landing-copy {
    padding: 22px;
    display: block;
    width: 100%;
    max-width: calc(100vw - 32px);
    min-width: 0;
    overflow: hidden;
  }

  .portal-landing-copy .kicker {
    display: block;
    margin-bottom: 10px;
  }

  .portal-landing-copy h1 {
    width: min(100%, 16ch);
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.08;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .portal-landing-copy p {
    width: min(100%, 34ch);
    max-width: 100%;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: break-word;
  }

  .portal-landing-tags {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .portal-landing-tags span {
    width: 100%;
  }

  .workspace-login-brand > div {
    padding: 22px;
  }

  .workspace-login-brand h1 {
    font-size: 24px;
  }

  .public-code-form > div,
  .staff-access-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .public-code-form button,
  .staff-access-card .button {
    width: 100%;
  }
}

/* Final public landing layout overrides */
.public-shell-home .public-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.public-shell-home .public-code-panel {
  display: block;
}

.public-shell-home .access-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  align-items: stretch;
}

.public-shell-home .access-code-card {
  min-height: 0;
  padding: 18px;
}

.public-shell-home .public-code-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.public-shell-home .public-code-form button {
  width: auto;
  min-width: 92px;
}

@media (max-width: 760px) {
  .public-shell-home .access-code-grid,
  .public-shell-home .public-code-form > div {
    grid-template-columns: 1fr;
  }

  .public-shell-home .public-code-form button {
    width: 100%;
  }
}

/* Proposal Drafting Studio */
.proposal-studio-header .muted-copy,
.proposal-workspace-header .muted-copy {
  max-width: 820px;
}

.proposal-command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.proposal-command-card {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid #cfd8e3;
  border-top: 4px solid var(--rise-blue);
  background: #fff;
}

.proposal-command-card span {
  color: var(--rise-navy);
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.proposal-command-card strong {
  color: var(--rise-navy);
  font-size: 15px;
}

.proposal-command-card small {
  color: #56667a;
  line-height: 1.35;
}

.proposal-command-card.orange {
  border-top-color: var(--rise-orange);
}

.proposal-command-card.green {
  border-top-color: var(--rise-green);
}

.proposal-command-card.red {
  border-top-color: var(--rise-red);
}

.proposal-brief-panel {
  margin-bottom: 14px;
}

.proposal-brief-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.proposal-brief-panel > summary::-webkit-details-marker {
  display: none;
}

.proposal-brief-panel > summary small {
  display: block;
  margin-top: 4px;
  color: #607086;
  font-weight: 500;
}

.proposal-brief-form {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #dbe3ec;
}

.proposal-draft-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.proposal-draft-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.85fr) minmax(170px, 0.55fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #cfd8e3;
  background: #fff;
}

.proposal-draft-main {
  min-width: 0;
}

.proposal-draft-main h2 {
  margin: 7px 0 5px;
  font-size: 20px;
}

.proposal-draft-main p {
  margin: 0;
  color: #4d6074;
  line-height: 1.35;
}

.proposal-draft-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.proposal-draft-meta span {
  min-width: 0;
  padding: 8px;
  border: 1px solid #dbe3ec;
  background: #f8fbfe;
  color: #53647a;
}

.proposal-draft-meta strong {
  display: block;
  overflow: hidden;
  color: var(--rise-navy);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proposal-progress {
  display: grid;
  gap: 5px;
}

.proposal-progress span {
  color: var(--rise-navy);
  font-size: 22px;
  font-weight: 850;
}

.proposal-progress div,
.proposal-preview-meter {
  height: 8px;
  overflow: hidden;
  background: #e8eef5;
}

.proposal-progress b,
.proposal-preview-meter b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--rise-green), var(--rise-orange));
}

.proposal-draft-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.proposal-draft-actions small {
  flex-basis: 100%;
  color: #64748b;
  text-align: right;
}

.proposal-language-bank {
  padding: 16px;
  border: 1px solid #cfd8e3;
  background: #fff;
}

.proposal-language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.proposal-language-grid article {
  padding: 12px;
  border-left: 4px solid var(--rise-orange);
  background: #fbfdff;
}

.proposal-language-grid p {
  margin: 6px 0 0;
  color: #465a70;
  line-height: 1.35;
}

.proposal-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.42fr);
  gap: 14px;
  align-items: start;
}

.proposal-section-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.proposal-section-card {
  padding: 16px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #9aa8b8;
  background: #fff;
}

.proposal-section-card.complete {
  border-left-color: var(--rise-green);
}

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

.proposal-section-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.proposal-section-head h2 {
  margin: 0;
  font-size: 20px;
}

.section-number {
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  background: var(--rise-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.proposal-section-form {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.proposal-section-form label:nth-of-type(2) {
  grid-column: 1 / -1;
}

.proposal-section-form textarea {
  min-height: 150px;
  resize: vertical;
}

.proposal-section-form button {
  width: fit-content;
}

.proposal-draft-preview-panel {
  min-width: 0;
}

.proposal-preview-sticky {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cfd8e3;
  background: #fff;
}

.proposal-draft-preview {
  min-height: 420px;
  padding: 12px;
  border: 1px solid #cfd8e3;
  background: #f8fbfe;
  color: #17263a;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
}

.snapshot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.proposal-version-list {
  display: grid;
  gap: 8px;
}

.proposal-version-list h3 {
  margin: 0;
  font-size: 16px;
}

.proposal-version-list > div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid #dbe3ec;
  background: #fbfdff;
}

.proposal-version-list span,
.proposal-version-list small {
  color: #64748b;
}

@media (max-width: 1180px) {
  .proposal-command-grid,
  .proposal-language-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proposal-draft-row,
  .proposal-workspace-grid {
    grid-template-columns: 1fr;
  }

  .proposal-draft-actions {
    justify-content: flex-start;
  }

  .proposal-draft-actions small {
    text-align: left;
  }

  .proposal-preview-sticky {
    position: static;
  }
}

@media (max-width: 720px) {
  .proposal-command-grid,
  .proposal-language-grid,
  .proposal-draft-meta,
  .proposal-section-form,
  .snapshot-form {
    grid-template-columns: 1fr;
  }
}

/* Funding Studio container */
.funding-studio {
  display: grid;
  gap: 14px;
}

.funding-hero,
.funding-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, #ffffff 0%, #f8fbfc 52%, rgba(217, 237, 242, 0.9) 100%);
  box-shadow: 0 14px 34px rgba(17, 40, 59, 0.06);
}

.funding-hero h1,
.funding-detail-hero h1 {
  max-width: 900px;
  margin-bottom: 6px;
}

.funding-hero p,
.funding-detail-hero p {
  max-width: 860px;
  margin-bottom: 0;
  color: var(--muted);
}

.funding-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.funding-command-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.funding-command-card {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--rise-blue);
  background: #fff;
}

.funding-command-card span {
  color: #08233f;
  font-weight: 800;
}

.funding-command-card strong {
  color: #08233f;
  font-size: 26px;
  line-height: 1;
}

.funding-command-card small {
  color: var(--muted);
  font-weight: 700;
}

.funding-command-card.blue { border-top-color: var(--rise-blue); }
.funding-command-card.orange { border-top-color: var(--rise-orange); }
.funding-command-card.teal { border-top-color: var(--rise-teal); }
.funding-command-card.green { border-top-color: var(--rise-green); }
.funding-command-card.slate { border-top-color: #475569; }
.funding-command-card.red { border-top-color: var(--rise-red); }

.funding-filter-panel {
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.funding-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 0.7fr)) auto auto;
  gap: 10px;
  align-items: end;
}

.funding-filter-grid label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: #08233f;
  font-weight: 800;
}

.funding-filter-grid .inline-check {
  min-height: 38px;
  grid-template-columns: auto max-content;
  align-items: center;
  justify-content: start;
}

.funding-filter-actions {
  display: flex;
  gap: 8px;
}

.funding-work-grid,
.funding-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 12px;
  align-items: start;
}

.funding-panel-wide,
.funding-side-panel {
  min-width: 0;
}

.funding-table th,
.funding-table td {
  vertical-align: middle;
}

.funding-type-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  background: #eef4f8;
  color: #08233f;
  font-size: 12px;
  font-weight: 800;
}

.funding-stage-form {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}

.funding-stage-form select {
  width: 140px;
  min-height: 30px;
  padding: 4px 6px;
  font-size: 12px;
}

.funding-source-list {
  display: grid;
  gap: 8px;
}

.funding-source-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.funding-source-card:hover {
  background: #f8fbff;
  text-decoration: none;
}

.funding-source-card span {
  color: var(--rise-orange);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.funding-source-card p,
.funding-source-card em {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.funding-stage-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fff;
}

.funding-stage-strip form {
  min-width: 0;
}

.funding-stage-strip button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: #08233f;
  font-weight: 800;
}

.funding-stage-strip button.active {
  background: #fff3ec;
  color: #7c2d12;
  box-shadow: inset 0 -3px 0 var(--rise-orange);
}

.funding-owner-stack {
  display: grid;
  gap: 8px;
}

.funding-owner-stack select,
.funding-owner-stack button {
  width: 100%;
}

.funding-quick-facts {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.funding-quick-facts span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #f8fbfc;
}

.funding-quick-facts strong {
  color: #08233f;
  font-size: 22px;
}

.funding-quick-facts small {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1400px) {
  .funding-command-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .funding-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .funding-hero,
  .funding-detail-hero,
  .funding-work-grid,
  .funding-detail-grid {
    grid-template-columns: 1fr;
  }

  .funding-hero-actions {
    justify-content: flex-start;
  }

  .funding-stage-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .funding-command-grid,
  .funding-filter-grid {
    grid-template-columns: 1fr;
  }
}

/* Assessment Scheduler container */
.scheduling-studio {
  display: grid;
  gap: 14px;
}

.scheduling-hero,
.scheduling-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, #ffffff 0%, #f8fbfc 50%, rgba(217, 237, 242, 0.9) 100%);
  box-shadow: 0 14px 34px rgba(17, 40, 59, 0.06);
}

.scheduling-hero h1,
.scheduling-detail-hero h1 {
  max-width: 920px;
  margin-bottom: 6px;
}

.scheduling-hero p,
.scheduling-detail-hero p {
  max-width: 860px;
  margin-bottom: 0;
  color: var(--muted);
}

.scheduling-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.schedule-command-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.schedule-command-card {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--rise-blue);
  background: #fff;
}

.schedule-command-card span {
  color: #08233f;
  font-weight: 800;
}

.schedule-command-card strong {
  color: #08233f;
  font-size: 26px;
  line-height: 1;
}

.schedule-command-card small {
  color: var(--muted);
  font-weight: 700;
}

.schedule-command-card.blue { border-top-color: var(--rise-blue); }
.schedule-command-card.teal { border-top-color: var(--rise-teal); }
.schedule-command-card.orange { border-top-color: var(--rise-orange); }
.schedule-command-card.green { border-top-color: var(--rise-green); }
.schedule-command-card.red { border-top-color: var(--rise-red); }
.schedule-command-card.slate { border-top-color: #475569; }

.schedule-filter-panel {
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.schedule-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(150px, 0.7fr)) auto auto;
  gap: 10px;
  align-items: end;
}

.schedule-filter-grid label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: #08233f;
  font-weight: 800;
}

.schedule-filter-grid .inline-check {
  min-height: 38px;
  grid-template-columns: auto max-content;
  align-items: center;
  justify-content: start;
}

.schedule-filter-actions {
  display: flex;
  gap: 8px;
}

.schedule-type-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.3fr) minmax(260px, 0.9fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.schedule-type-panel h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.schedule-type-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.schedule-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.schedule-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 3px 5px 3px 10px;
  border: 1px solid var(--line);
  background: #f8fbfc;
  color: var(--rise-navy);
  font-size: 12px;
  font-weight: 800;
}

.schedule-type-chip .icon-close-button {
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  font-size: 12px;
}

.schedule-type-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.schedule-work-grid,
.schedule-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 12px;
  align-items: start;
}

.schedule-panel-wide,
.schedule-side-panel {
  min-width: 0;
}

.schedule-table th,
.schedule-table td {
  vertical-align: middle;
}

.schedule-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.schedule-create-form textarea,
.schedule-detail-grid textarea {
  min-height: 84px;
}

.schedule-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.schedule-link-stack {
  display: grid;
  gap: 10px;
}

.schedule-link-stack > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.schedule-link-stack strong {
  color: #08233f;
}

.schedule-link-stack span {
  color: var(--muted);
}

.schedule-link-stack a {
  color: var(--rise-teal);
  font-weight: 800;
}

.schedule-add-partner {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(140px, 0.9fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.schedule-add-partner input,
.schedule-add-partner select {
  width: 100%;
}

.partner-schedule .scheduling-hero {
  background:
    linear-gradient(90deg, #ffffff 0%, #f8fbfc 52%, rgba(21, 128, 61, 0.13) 100%);
}

@media (max-width: 1400px) {
  .schedule-command-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .schedule-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-type-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .scheduling-hero,
  .scheduling-detail-hero,
  .schedule-work-grid,
  .schedule-detail-grid {
    grid-template-columns: 1fr;
  }

  .scheduling-hero-actions {
    justify-content: flex-start;
  }

  .schedule-add-partner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .schedule-command-grid,
  .schedule-filter-grid,
  .schedule-add-partner {
    grid-template-columns: 1fr;
  }
}

/* Landing render polish: keep the banner legible instead of cropping the fox/RISE mark. */
.public-brand-banner-link {
  flex-basis: min(520px, 48vw);
}

.public-brand-banner {
  width: min(520px, 48vw);
  height: 82px;
  object-fit: contain;
  object-position: left center;
}

.portal-landing-hero {
  grid-template-columns: 1fr;
  background: #071d2f;
}

.portal-landing-banner,
.portal-landing-banner img {
  min-height: 0;
}

.portal-landing-banner {
  padding: 0;
}

.portal-landing-banner img {
  height: auto;
  object-fit: contain;
  object-position: center;
}

.portal-landing-copy {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background:
    linear-gradient(90deg, #071d2f 0%, #0b3556 54%, #126f9b 100%);
}

.portal-landing-copy h1 {
  max-width: 620px;
}

.portal-landing-copy p {
  max-width: 640px;
}

.portal-landing-tags {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .public-brand-banner-link {
    flex-basis: 100%;
  }

  .public-brand-banner {
    width: min(520px, 100%);
    height: auto;
    max-height: 82px;
    margin: 0 auto;
  }

  .portal-landing-copy {
    grid-template-columns: 1fr;
  }

  .portal-landing-tags {
    justify-content: flex-start;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.38;
}

body.is-resizing-table {
  cursor: col-resize;
  user-select: none;
}

a {
  color: var(--rise-navy);
  text-decoration: none;
}

a:hover {
  color: var(--rise-blue);
  text-decoration: underline;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  color: var(--rise-navy);
  font-size: 26px;
  line-height: 1.12;
  font-weight: 750;
}

h2 {
  margin-bottom: 10px;
  color: var(--rise-navy);
  font-size: 18px;
  line-height: 1.18;
  font-weight: 750;
}

h3 {
  margin-bottom: 8px;
  color: var(--rise-navy-2);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 750;
}

p {
  margin-bottom: 10px;
  color: #354254;
}

small,
.muted-copy {
  color: var(--muted);
}

.kicker,
.section-label {
  color: var(--rise-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.full,
.span-2 {
  grid-column: 1 / -1;
}

.public-topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand,
.sidebar-logo-card,
.admin-topbar-brand,
.topbar-profile-link {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--rise-navy);
}

.brand-logo-tile,
.public-logo-tile,
.sidebar-logo-card {
  background:
    radial-gradient(circle at 24% 10%, #d9eef3 0, #9fc5ce 46%, #2e6171 100%);
  border: 1px solid rgba(8, 35, 63, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), var(--shadow-sm);
  overflow: hidden;
}

.brand-logo-tile {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.public-logo-tile {
  width: 118px;
  height: 72px;
  border-radius: 8px;
}

.brand-logo,
.brand-logo-tile img {
  display: block;
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 28px;
  font-weight: 800;
}

.brand-copy small {
  color: var(--rise-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-nav,
.crm-header-actions,
.object-actions,
.action-row,
.record-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.public-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.public-nav a:hover {
  background: #f7fbff;
  text-decoration: none;
}

.public-topbar-focus {
  min-height: 76px;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 30;
}

.public-topbar-focus .locked-brand {
  pointer-events: none;
  user-select: none;
}

.public-topbar-focus .public-logo-tile {
  width: 100px;
  height: 62px;
}

.public-focus-status {
  position: absolute;
  right: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.public-topbar-focus + .public-shell {
  padding-top: 22px;
}

.public-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.public-home,
.access-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.access-code-card,
.auth-panel,
.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.access-code-card,
.auth-panel,
.panel,
.card {
  padding: 18px;
}

.access-code-card h2 {
  font-size: 20px;
}

.auth-shell {
  width: min(980px, calc(100vw - 32px));
  margin: 36px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: stretch;
}

.auth-panel-copy {
  min-height: 360px;
  display: grid;
  align-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #eff7fb 100%);
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.footer,
.portal-built-footer {
  min-height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  border-top: 1px solid var(--line);
  background: #f9fafb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.footer {
  flex-direction: column;
  min-height: 70px;
}

.admin-frame {
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--canvas);
}

.admin-topbar {
  min-height: var(--topbar-height);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  background: var(--blackbar);
  color: #fff;
  border-top: 3px solid var(--rise-blue);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 80;
}

.nav-toggle {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease, background 160ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.11);
}

.admin-frame.nav-toggle-dormant .nav-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-12px);
  visibility: hidden;
}

.app-waffle {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0;
}

.app-waffle::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-8px, -8px);
  box-shadow:
    8px 0 #fff,
    16px 0 #fff,
    0 8px #fff,
    8px 8px #fff,
    16px 8px #fff,
    0 16px #fff,
    8px 16px #fff,
    16px 16px #fff;
}

.admin-topbar-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 150px;
  color: #fff;
  font-weight: 800;
}

.admin-topbar-brand:hover {
  color: #fff;
  text-decoration: none;
}

.admin-topbar-brand strong {
  color: #fff;
  font-size: 18px;
  white-space: nowrap;
}

.admin-search {
  height: 40px;
  width: min(680px, 44vw);
  max-width: 680px;
  display: flex;
  align-items: stretch;
  flex: 0 1 680px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: #1f1f1f;
}

.admin-search::before {
  content: "";
  width: 14px;
  height: 14px;
  align-self: center;
  flex: 0 0 auto;
  margin-left: 14px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  box-shadow: 5px 5px 0 -4px #fff;
  opacity: 0.92;
}

.admin-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
}

.admin-search input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.admin-search input:focus {
  box-shadow: none;
}

.admin-search button {
  min-height: 0;
  height: 100%;
  padding: 0 18px;
  border-radius: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-topbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  color: #fff;
}

.admin-topbar-actions span,
.admin-topbar-actions strong {
  color: #fff;
  white-space: nowrap;
}

.topbar-profile-link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.topbar-profile-link:hover {
  color: #fff;
  text-decoration: none;
}

.topbar-profile-avatar {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rise-blue), var(--rise-teal));
  color: #fff;
  font-weight: 800;
}

.topbar-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-profile-avatar img + span {
  display: none;
}

.crm-shell {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  width: 100%;
  max-width: 100vw;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  overflow: hidden;
  transition: grid-template-columns 160ms ease;
}

.admin-frame.nav-collapsed .crm-shell {
  grid-template-columns: 0 minmax(0, 1fr);
}

.crm-sidebar {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 6px 0;
  background: var(--sidebar);
  border-right: 1px solid #d2d0ce;
  position: sticky;
  top: var(--topbar-height);
  overflow: hidden;
  transition: opacity 160ms ease, transform 160ms ease;
}

.admin-frame.nav-collapsed .crm-sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
}

.sidebar-logo-card {
  width: 148px;
  height: 102px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin: 0 auto 6px;
  border-radius: 8px;
}

.sidebar-logo-card img {
  display: block;
  width: 92%;
  height: 92%;
  object-fit: contain !important;
  object-position: center center !important;
}

.sidebar-logo-card:hover {
  text-decoration: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: hidden;
  overflow-x: hidden;
}

.sidebar-section-label {
  min-height: 24px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #5f6368;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav a,
.sidebar-link {
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-left: 3px solid transparent;
  color: #111827;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-link:hover {
  background: #ecebea;
  color: #111827;
  text-decoration: none;
}

.sidebar-nav a.active,
.sidebar-link.active {
  background: #fff;
  border-left-color: var(--rise-teal);
  color: #000;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid #e5e7eb;
  flex: 0 0 auto;
}

.crm-main {
  min-width: 0;
  max-width: 100%;
  overflow: auto;
}

.crm-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 20px 24px 40px;
  overflow-x: hidden;
}

.button,
button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--rise-teal);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.button:hover,
button:hover {
  background: #0b5f58;
  color: #fff;
  text-decoration: none;
}

.button.secondary,
button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--rise-navy);
}

.button.secondary:hover,
button.secondary:hover {
  border-color: #b9c3d0;
  background: #f7fbff;
  color: var(--rise-navy);
}

.button.danger,
button.danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.button.danger:hover,
button.danger:hover {
  background: #fee2e2;
  color: #991b1b;
}

.link-button,
.table-link {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rise-teal);
  font-weight: 750;
  white-space: nowrap;
}

.link-button:hover,
.table-link:hover {
  background: transparent;
  color: var(--rise-blue);
  text-decoration: underline;
}

.danger-link {
  color: #b42318;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--rise-navy);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #aab2bf;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rise-blue);
  outline: 2px solid var(--focus);
  outline-offset: 0;
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
}

.form-grid,
.grid {
  display: grid;
  gap: 12px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inline-check,
.checkbox-line,
.permission-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-weight: 650;
}

.inline-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.assessment-scale-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.assessment-scale-grid label {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
}

.assessment-scale-grid input[type="range"] {
  width: 100%;
  accent-color: var(--rise-teal);
}

.assessment-help {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.inline-admin-form {
  display: inline-flex;
}

.stack-admin-form {
  display: grid;
  gap: 8px;
}

.invite-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.invite-box input[readonly] {
  width: 100%;
  min-width: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #fff;
}

.compact-status {
  margin: 0;
  padding: 8px 10px;
}

.validation-summary:empty {
  display: none;
}

.agreement-upload-details {
  margin: 12px 0 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.agreement-upload-details > summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  color: var(--rise-navy);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.agreement-upload-details > summary::-webkit-details-marker {
  display: none;
}

.agreement-upload-details > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  color: var(--rise-teal);
  font-weight: 900;
}

.agreement-upload-details[open] > summary::after {
  content: "-";
}

.agreement-upload-details > summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.agreement-upload-card {
  margin: 0;
  padding: 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.alert,
.inline-status,
.empty-card {
  padding: 10px 12px;
  border: 1px solid #f4d19a;
  background: #fff8e7;
  color: #5f3f00;
  border-radius: var(--radius);
}

.inline-status {
  margin-bottom: 12px;
}

.empty-card {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 650;
}

.object-header,
.admin-command {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.object-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.object-title-row h1 {
  margin: 0;
}

.object-emoji {
  display: none;
}

.object-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.object-actions form,
.record-actions form {
  display: inline-flex;
  margin: 0;
}

.view-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #303846;
  font-weight: 750;
}

.view-chip.active {
  border-color: #a7c8e8;
  background: #f5fbff;
  box-shadow: inset 3px 0 0 var(--rise-blue);
}

.view-chip strong,
.attio-panel-title span,
.identity-card strong,
.fit-pill,
.field-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: var(--radius);
  background: #e9eef5;
  color: var(--rise-navy);
  font-size: 12px;
  font-weight: 800;
}

.field-pill.blue {
  background: #e8f2ff;
  color: #0759a0;
}

.field-pill.green {
  background: #dcfce7;
  color: #166534;
}

.field-pill.gray {
  background: #eef2f7;
  color: #4b5563;
}

.fit-pill {
  background: #e6fbff;
  color: #087082;
}

.assessment-program-grid,
.assessment-review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.assessment-review-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.program-score-card {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--rise-blue);
  background: #fff;
}

.program-score-card.accent-red {
  border-top-color: var(--rise-red);
}

.program-score-card.accent-orange {
  border-top-color: var(--rise-orange);
}

.program-score-card.accent-green {
  border-top-color: var(--rise-green);
}

.program-score-card span {
  color: #303846;
  font-size: 12px;
  font-weight: 800;
}

.program-score-card strong {
  color: var(--rise-navy);
  font-size: 24px;
  line-height: 1.05;
}

.program-score-card small {
  color: var(--muted);
  font-weight: 650;
}

.assessment-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr) minmax(240px, 0.7fr);
  gap: 12px;
  margin-bottom: 14px;
}

.assessment-review-queue {
  min-width: 0;
}

.assessment-queue-item {
  grid-template-columns: minmax(0, 1fr) auto auto minmax(160px, 0.75fr);
}

.assessment-filter-surface {
  border: 1px solid var(--line);
}

.assessment-filter-surface > .attio-panel-title {
  margin: 0;
}

.assessment-filter-surface .collection-toolbar {
  margin-bottom: 12px;
}

.assessment-filter-surface .collection-search > span {
  font-weight: 800;
  color: var(--muted);
}

.assessment-result-list {
  display: grid;
  gap: 10px;
}

.assessment-result-item {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.assessment-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.assessment-result-identity {
  min-width: 0;
}

.assessment-result-identity h3 {
  margin: 0;
  color: var(--rise-navy);
}

.assessment-result-identity p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.assessment-result-meta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.assessment-result-reason {
  margin-top: 8px;
  padding: 6px 8px;
  border-left: 3px solid var(--line);
  color: #374151;
  font-size: 12px;
  background: #fbfdff;
}

.assessment-result-badges {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.assessment-result-badges .priority-pill {
  white-space: nowrap;
}

.assessment-result-badges .fit-pill,
.assessment-result-badges .field-pill {
  white-space: nowrap;
}

.assessment-result-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.assessment-result-detail span {
  font-size: 12px;
  color: #1f2937;
  overflow: hidden;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.assessment-result-detail strong {
  color: #475569;
}

.assessment-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.assessment-result-actions form {
  display: inline-flex;
}

.assessment-result-actions .button {
  min-height: 30px;
}

.assessment-result-participant {
  color: inherit;
  text-decoration: none;
}

.assessment-result-participant:hover {
  text-decoration: underline;
}

.assessment-coach-status {
  margin-left: 6px;
  color: #4b5563;
  font-size: 11px;
}

.program-ranking-list {
  display: grid;
  gap: 8px;
}

.program-ranking-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px;
  border: 1px solid var(--line);
  background: #fff;
}

.program-ranking-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.program-ranking-row strong,
.program-ranking-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-ranking-row em {
  flex: 0 0 auto;
  color: var(--rise-teal);
  font-style: normal;
  font-weight: 800;
}

.priority-pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef2f7;
  color: var(--rise-navy);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.priority-high {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.priority-medium {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.priority-routine {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.assessment-row-actions {
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: #9ca3af;
}

.status-dot.teal {
  background: var(--rise-teal);
}

.status-dot.orange {
  background: var(--rise-orange);
}

.status-dot.gray {
  background: #9ca3af;
}

.managed-docs.document-hub {
  --doc-page: #f5f7fa;
  --doc-surface: #ffffff;
  --doc-ink: #1d2733;
  --doc-muted: #667085;
  --doc-line: #d8dee8;
  --doc-primary: #0f766e;
  --doc-primary-dark: #0b5d56;
  --doc-blue: #2563eb;
  --doc-red: #b42318;
  --doc-amber: #b7791f;
  color: var(--doc-ink);
  display: grid;
  gap: 18px;
  margin: -6px -2px 32px;
  padding: 24px;
  background: var(--doc-page);
  border: 1px solid rgba(15, 118, 110, 0.08);
}

.managed-docs .page-title-row,
.managed-docs .surface-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.managed-docs .page-title-row {
  margin-bottom: 2px;
}

.managed-docs .page-title-row h1 {
  color: var(--doc-ink);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.managed-docs .lead {
  color: var(--doc-muted);
  margin: 7px 0 0;
  max-width: 760px;
}

.managed-docs .eyebrow {
  color: var(--doc-primary-dark);
  letter-spacing: 0;
}

.managed-docs .identity-panel,
.managed-docs .title-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.managed-docs .identity-panel {
  align-items: flex-end;
  background: var(--doc-surface);
  border: 1px solid var(--doc-line);
  flex-direction: column;
  padding: 10px 12px;
}

.managed-docs .identity-panel span {
  font-weight: 750;
}

.managed-docs .identity-panel small,
.managed-docs .surface-header span,
.managed-docs .document-table small,
.managed-docs .activity-item span,
.managed-docs .activity-item small {
  color: var(--doc-muted);
  display: block;
}

.managed-docs .metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.managed-docs .metric-tile {
  background: var(--doc-surface);
  border: 1px solid var(--doc-line);
  min-height: 98px;
  padding: 16px;
}

.managed-docs .metric-tile:nth-child(1) {
  border-top: 4px solid var(--doc-primary);
}

.managed-docs .metric-tile:nth-child(2) {
  border-top: 4px solid var(--doc-blue);
}

.managed-docs .metric-tile:nth-child(3) {
  border-top: 4px solid var(--doc-amber);
}

.managed-docs .metric-tile span {
  color: var(--doc-muted);
  font-weight: 700;
}

.managed-docs .metric-tile strong {
  color: var(--doc-ink);
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-top: 6px;
}

.managed-docs .workspace-grid,
.managed-docs .detail-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 380px;
}

.managed-docs .surface {
  background: var(--doc-surface);
  border: 1px solid var(--doc-line);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
  min-width: 0;
}

.managed-docs .surface-header {
  border-bottom: 1px solid var(--doc-line);
  padding: 18px;
}

.managed-docs .surface-header.compact {
  padding-bottom: 14px;
}

.managed-docs .surface-header.split {
  border-top: 1px solid var(--doc-line);
  margin-top: 18px;
}

.managed-docs .surface-header h2,
.managed-docs .description-block h2 {
  color: var(--doc-ink);
  font-size: 1.05rem;
  font-weight: 750;
  margin: 0;
}

.managed-docs .filter-bar {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 280px) minmax(150px, 210px) auto;
}

.managed-docs .document-table-wrap {
  max-height: 640px;
}

.managed-docs .document-table {
  margin: 0;
}

.managed-docs .document-table thead th {
  background: #f9fafb;
  border-bottom: 1px solid var(--doc-line);
  color: #475467;
  font-size: 0.78rem;
  letter-spacing: 0;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

.managed-docs .document-table td {
  border-color: #edf1f5;
  vertical-align: middle;
}

.managed-docs .document-name {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.managed-docs .document-name a,
.managed-docs .document-name strong {
  color: var(--doc-primary-dark);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.managed-docs .action-cell {
  white-space: nowrap;
}

.managed-docs .empty-row {
  color: var(--doc-muted) !important;
  padding: 36px !important;
  text-align: center;
}

.managed-docs .upload-form,
.managed-docs .permission-form {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.managed-docs .two-column-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.managed-docs .metadata-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px;
}

.managed-docs .metadata-grid div {
  background: #fbfcfe;
  border: 1px solid #e5eaf0;
  min-height: 82px;
  padding: 14px;
}

.managed-docs .metadata-grid span {
  color: var(--doc-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.managed-docs .metadata-grid strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.managed-docs .description-block {
  padding: 0 18px 18px;
}

.managed-docs .description-block p {
  color: #344054;
  margin: 8px 0 0;
}

.managed-docs .empty-state {
  color: var(--doc-muted);
  padding: 18px;
}

.managed-docs .empty-state h3 {
  color: var(--doc-ink);
  font-size: 1rem;
  margin: 0 0 6px;
}

.managed-docs .empty-state p {
  margin: 0;
}

.managed-docs .activity-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 18px;
}

.managed-docs .activity-item {
  background: #fbfcfe;
  border: 1px solid #e5eaf0;
  padding: 12px;
}

.managed-docs .activity-item p {
  color: #344054;
  margin: 6px 0 0;
}

.managed-docs .status {
  border: 1px solid var(--doc-line);
  color: var(--doc-muted);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 8px;
  text-transform: uppercase;
}

.managed-docs .status-sent,
.managed-docs .status-draft {
  border-color: rgba(184, 88, 48, 0.35);
  color: var(--rise-orange);
}

.managed-docs .status-completed {
  border-color: rgba(47, 130, 118, 0.35);
  color: var(--doc-primary);
}

.managed-docs .status-voided,
.managed-docs .status-declined,
.managed-docs .status-expired {
  color: var(--doc-muted);
}

.managed-docs .btn {
  border-radius: 6px;
  font-weight: 650;
}

.managed-docs .btn-primary {
  background: var(--doc-primary);
  border-color: var(--doc-primary);
}

.managed-docs .btn-primary:hover,
.managed-docs .btn-primary:focus-visible {
  background: var(--doc-primary-dark);
  border-color: var(--doc-primary-dark);
}

.managed-docs .btn-outline-secondary {
  border-color: #b7c0ce;
  color: #334155;
}

.managed-docs .form-control,
.managed-docs .form-select {
  border-color: #cbd5e1;
  border-radius: 6px;
}

@media (max-width: 1100px) {
  .managed-docs .workspace-grid,
  .managed-docs .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .managed-docs.document-hub {
    margin-left: 0;
    margin-right: 0;
    padding: 16px;
  }

  .managed-docs .page-title-row,
  .managed-docs .surface-header {
    align-items: stretch;
    flex-direction: column;
  }

  .managed-docs .identity-panel,
  .managed-docs .title-actions {
    align-items: stretch;
  }

  .managed-docs .metric-grid,
  .managed-docs .metadata-grid,
  .managed-docs .two-column-fields {
    grid-template-columns: 1fr;
  }

  .managed-docs .filter-bar {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .managed-docs .action-cell .btn {
    margin-top: 6px;
    width: 100%;
  }
}

/* Keep the suitebar search compact on tablet-sized dashboard views. */
@media (max-width: 1320px) {
  .live-workspace .global-search {
    justify-self: end;
    max-width: 360px;
    width: 100%;
  }
}

@media (max-width: 840px) {
  .live-workspace .global-search {
    max-width: min(360px, 54vw);
  }
}

@media (max-width: 520px) {
  .live-workspace .global-search {
    justify-self: stretch;
    max-width: none;
  }
}

.collection-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.collection-search {
  min-width: 0;
  display: flex;
  align-items: center;
  flex: 1 1 720px;
  flex-wrap: wrap;
  gap: 8px;
}

.collection-search > span {
  flex: 0 0 auto;
}

.collection-search input[type="text"],
.collection-search input[type="search"],
.collection-search input:not([type]),
.collection-search select {
  flex: 1 1 190px;
  width: auto;
  max-width: 100%;
}

.collection-search button,
.collection-search .button {
  flex: 0 0 auto;
}

.collection-search .inline-check,
.collection-search .grant-expired-toggle {
  width: auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.toolbar-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 750;
}

.toolbar-meta span {
  white-space: nowrap;
}

.collection-table-wrap,
.compact-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  border: 1px solid var(--line);
  background: #fff;
}

.collection-table,
.compact-table,
.table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.collection-table.resizable-table,
.compact-table.resizable-table {
  table-layout: fixed;
}

.collection-table col,
.compact-table col,
.table col {
  width: auto !important;
}

.collection-table th,
.collection-table td,
.compact-table th,
.compact-table td,
.table th,
.table td {
  position: relative;
  padding: 9px 10px;
  border-bottom: 1px solid #e5e7eb;
  color: #172033;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
  text-overflow: clip;
}

.collection-table th,
.compact-table th,
.table th {
  padding-right: 16px;
  background: #f8f8f8;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.collection-table tr:hover td,
.compact-table tr:hover td {
  background: #fbfdff;
}

.record-cell {
  min-width: 0;
}

.record-cell strong,
.record-cell a,
.record-cell small,
.collection-table td * {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.inline-assignment-form {
  display: grid;
  grid-template-columns: minmax(170px, 1fr);
  gap: 7px;
  align-items: start;
}

.inline-assignment-form select,
.inline-assignment-form input {
  width: 100%;
  min-width: 0;
  flex: none;
}

.assignment-submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
}

.assignment-submit-row .inline-check {
  flex: 0 0 auto;
  white-space: nowrap;
  overflow-wrap: normal;
}

.assignment-submit-row .inline-check span {
  white-space: nowrap;
  overflow-wrap: normal;
}

.assignment-submit-row .button {
  flex: 0 0 auto;
}

.table-col-resizer {
  display: none !important;
}

.table-col-resizer::after {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 4px;
  width: 1px;
  background: transparent;
}

.collection-table th:hover > .table-col-resizer::after,
.compact-table th:hover > .table-col-resizer::after,
body.is-resizing-table .table-col-resizer::after {
  background: var(--rise-teal);
}

.menu-popover {
  position: relative;
}

.menu-popover > summary {
  list-style: none;
}

.menu-popover > summary::-webkit-details-marker {
  display: none;
}

.popover-form {
  width: min(500px, calc(100vw - 48px));
  max-height: calc(100vh - 90px);
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line-dark);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: auto;
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 120;
}

.popover-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--rise-navy);
}

.popover-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.popover-form-actions .button,
.popover-form-actions button {
  width: auto;
}

.icon-close-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--rise-navy);
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  border-radius: 6px;
}

.icon-close-button:hover {
  background: var(--surface);
}

.wide-popover {
  width: min(620px, calc(100vw - 48px));
}

.document-popover {
  width: min(700px, calc(100vw - 48px));
}

.row-details > summary {
  list-style: none;
}

.row-details > summary::-webkit-details-marker {
  display: none;
}

.row-details > div {
  display: grid;
  gap: 10px;
  width: min(760px, calc(100vw - 80px));
  max-height: calc(100vh - 110px);
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: auto;
  position: fixed;
  top: 78px;
  right: 24px;
  z-index: 110;
}

.admin-command {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px;
}

.identity-card-grid,
.dashboard-mosaic,
.mini-metric-grid {
  display: grid;
  gap: 12px;
}

.identity-card-grid,
.dashboard-mosaic {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.identity-card,
.mosaic-card {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--rise-blue);
  background: #fff;
  color: var(--rise-navy);
  text-decoration: none;
}

.identity-card:hover,
.mosaic-card:hover {
  background: #fbfdff;
  color: var(--rise-navy);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.identity-card span,
.mosaic-card span {
  color: var(--rise-navy);
  font-weight: 800;
}

.identity-card strong,
.mosaic-card strong {
  justify-content: flex-start;
  min-width: auto;
  background: transparent;
  padding: 0;
  color: var(--rise-navy);
  font-size: 34px;
  line-height: 1;
}

.identity-card small,
.mosaic-card small {
  color: var(--muted);
  font-weight: 700;
}

.accent-blue {
  border-top-color: var(--rise-blue);
}

.accent-orange {
  border-top-color: var(--rise-orange);
}

.accent-green {
  border-top-color: var(--rise-green);
}

.accent-red {
  border-top-color: var(--rise-red);
}

.admin-section,
.attio-panel,
.compact-list-panel,
.rise-home-hero,
.overview-customizer,
.office-app-grid {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-section,
.attio-panel,
.compact-list-panel {
  padding: 14px;
}

.admin-section-header,
.attio-panel-title,
.section-heading-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-section-header p,
.section-heading-row p {
  margin-bottom: 0;
}

.permission-editor {
  display: grid;
  gap: 10px;
}

.permission-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.permission-role {
  display: grid;
  gap: 4px;
}

.permission-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.permission-toggle {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: #fbfcfe;
}

.compact-permission-row {
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto;
  align-items: start;
}

.compact-permission-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.access-multiselect {
  width: 100%;
  min-height: 118px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  line-height: 1.35;
}

.access-multiselect.slim {
  min-height: 86px;
}

.access-multiselect option {
  padding: 7px 9px;
  margin: 2px 0;
  border-radius: 0;
}

.access-multiselect option:checked {
  color: #04263f;
  background: linear-gradient(90deg, #dceefb, #eef7fc);
  font-weight: 650;
}

.access-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.identity-edit-details .stack-admin-form {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.compact-admin-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.admin-form-action {
  align-self: end;
}

.rise-home-hero {
  min-height: 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  align-items: center;
  padding: 24px 26px;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.96) 54%, rgba(230, 242, 252, 0.92) 100%);
}

.rise-home-hero p {
  max-width: 760px;
  margin-bottom: 0;
}

.hero-scorecard {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-left: 4px solid var(--rise-blue);
  background: #fff;
}

.hero-scorecard span {
  color: var(--muted);
  font-weight: 800;
}

.hero-scorecard strong {
  color: var(--rise-navy);
  font-size: 22px;
}

.overview-customizer {
  padding: 0;
}

.overview-customizer summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--rise-navy);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.overview-customizer summary::-webkit-details-marker {
  display: none;
}

.overview-customizer-body {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.overview-widget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.overview-widget-grid label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  min-height: 58px;
  margin: 0;
  padding: 9px;
  border: 1px solid var(--line);
  background: #fbfcfe;
}

.overview-widget-grid span {
  display: grid;
  gap: 2px;
}

.office-app-grid.compact-app-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(76px, 1fr);
  gap: 0;
  padding: 8px 4px;
  overflow: hidden;
}

.office-app-grid.compact-app-grid a {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 6px 4px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.office-app-grid.compact-app-grid a:hover {
  background: #f8fbff;
}

.office-app-icon,
.office-app-icon.image {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.office-app-icon.image img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.office-app-grid.compact-app-grid strong {
  max-width: 100%;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attio-bottom-grid,
.compact-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-feed {
  display: grid;
  gap: 8px;
}

.feed-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.feed-item p {
  margin: 2px 0 0;
}

.mini-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-metric-grid span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.mini-metric-grid strong {
  color: var(--rise-navy);
  font-size: 24px;
}

.pipeline-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pipeline-strip span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--bar, var(--rise-blue));
  background: #fff;
}

.grant-finder-dashboard {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, #fff 0%, #f6fbff 100%);
}

.grant-finder-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.grant-finder-head h2 {
  margin-bottom: 4px;
}

.grant-finder-head p {
  max-width: 820px;
  margin-bottom: 0;
}

.grant-focus-reset {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--rise-navy);
  font-weight: 800;
}

.grant-focus-reset.active {
  border-color: var(--rise-teal);
  box-shadow: inset 3px 0 0 var(--rise-teal);
}

.grant-focus-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.grant-focus-card {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-top: 4px solid #64748b;
  background: #fff;
  color: var(--rise-navy);
  text-decoration: none;
}

.grant-focus-card:hover,
.grant-focus-card.active {
  background: #f8fbff;
  color: var(--rise-navy);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.grant-focus-card strong {
  font-size: 13px;
}

.grant-focus-card span {
  color: var(--muted);
  font-size: 12px;
}

.grant-focus-card em {
  color: var(--rise-teal);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.grant-focus-card.blue { border-top-color: var(--rise-blue); }
.grant-focus-card.orange { border-top-color: var(--rise-orange); }
.grant-focus-card.green { border-top-color: var(--rise-green); }
.grant-focus-card.teal { border-top-color: var(--rise-teal); }
.grant-focus-card.purple { border-top-color: #7c3aed; }
.grant-focus-card.pink { border-top-color: #db2777; }
.grant-focus-card.slate { border-top-color: #475569; }

.owner-assign-form,
.code-edit-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.owner-assign-form select,
.code-edit-form input {
  width: auto;
  flex: 1 1 150px;
}

.code-edit-form {
  margin-top: 7px;
}

.code-edit-form input {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
  text-transform: uppercase;
}

.profile-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.preview-grid,
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.preview-card,
.resource-link,
.toggle-panel {
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.clean-list {
  margin: 0;
  padding-left: 18px;
}

.clean-list li {
  margin: 6px 0;
}

.proposal-upload-panel {
  scroll-margin-top: 72px;
}

.role-chip,
.user-chip,
.badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--rise-navy);
  font-weight: 750;
}

@media (max-width: 1500px) {
  :root {
    --sidebar-width: 218px;
  }

  .grant-focus-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .identity-card-grid,
  .dashboard-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 204px;
  }

  .admin-search {
    width: min(520px, 36vw);
  }

  .crm-content {
    padding: 16px;
  }

  .permission-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .office-app-grid.compact-app-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .public-topbar,
  .admin-topbar {
    flex-wrap: wrap;
    height: auto;
  }

  .admin-search {
    order: 3;
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }

  .crm-shell,
  .admin-frame.nav-collapsed .crm-shell {
    grid-template-columns: 1fr;
  }

  .crm-sidebar {
    position: static;
    height: auto;
    max-height: none;
    border-bottom: 1px solid var(--line);
  }

  .admin-frame.nav-collapsed .crm-sidebar {
    display: none;
  }

  .crm-content {
    padding: 14px;
  }

  .object-header,
  .admin-command,
  .rise-home-hero,
  .permission-row,
  .auth-shell,
  .public-home,
  .access-code-grid,
  .assessment-command-grid,
  .assessment-result-list,
  .attio-bottom-grid,
  .compact-section-grid {
    grid-template-columns: 1fr;
  }

  .identity-card-grid,
  .dashboard-mosaic,
  .assessment-program-grid,
  .assessment-review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grant-finder-head {
    display: grid;
  }

  .grant-focus-grid,
  .overview-widget-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    font-size: 12px;
  }

  .brand-copy strong {
    font-size: 22px;
  }

  .public-nav {
    width: 100%;
  }

  .public-nav a {
    flex: 1 1 100%;
  }

  .identity-card-grid,
  .dashboard-mosaic,
  .assessment-program-grid,
  .assessment-review-summary,
  .assessment-result-detail,
  .assessment-result-head,
  .grant-focus-grid,
  .overview-widget-grid,
  .assessment-scale-grid,
  .inline-check-grid,
  .form-grid,
  .grid.two,
  .grid.three,
  .grid.four,
  .pipeline-strip,
  .mini-metric-grid,
  .preview-grid,
  .case-metrics {
    grid-template-columns: 1fr;
  }

  .office-app-grid.compact-app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  h1 {
    font-size: 22px;
  }

  .popover-form,
  .row-details > div {
    inset: 70px 12px auto 12px;
    width: auto;
  }
}

/* Final public landing overrides. These sit last so older public/auth styles cannot soften the brand pass. */
body:not(:has(.admin-frame)) {
  background:
    linear-gradient(180deg, #e8f4fb 0, #f8fbff 34%, #fffaf4 100%);
}

.public-topbar:not(.public-topbar-focus) {
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 10px clamp(16px, 4vw, 38px);
  background:
    linear-gradient(90deg, #071d2f 0%, #0b3556 54%, #0d4e7d 100%);
  border-bottom: 4px solid var(--rise-orange);
}

.public-return-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.public-return-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.public-brand-banner-link {
  display: block;
  flex: 0 1 430px;
  min-width: 260px;
}

.public-brand-banner {
  display: block;
  width: min(430px, 44vw);
  height: 66px;
  object-fit: contain;
  object-position: left center;
}

.public-topbar:not(.public-topbar-focus) .public-nav a {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.public-topbar:not(.public-topbar-focus) .public-nav a:first-child {
  border-color: transparent;
  background: var(--rise-orange);
}

.public-shell {
  width: min(1120px, calc(100vw - 32px));
  padding-top: 28px;
}

.public-home {
  grid-template-columns: 1fr;
  gap: 18px;
}

.portal-landing-hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid rgba(8, 35, 63, 0.24);
  background: #071d2f;
  box-shadow: 0 22px 56px rgba(8, 35, 63, 0.18);
}

.portal-landing-banner,
.portal-landing-banner img {
  min-height: 0;
}

.portal-landing-banner {
  background: #071d2f;
}

.portal-landing-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.portal-landing-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  background:
    linear-gradient(90deg, #071d2f 0%, #0b3556 54%, #126f9b 100%);
  color: #fff;
}

.portal-landing-copy .kicker {
  color: #7dd3fc;
}

.portal-landing-copy h1 {
  max-width: 620px;
  margin-bottom: 0;
  color: #fff;
  font-size: 34px;
  font-weight: 750;
}

.portal-landing-copy p {
  max-width: 640px;
  margin-bottom: 0;
  color: #e8f6ff;
  font-size: 15px;
}

.portal-landing-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.portal-landing-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.public-code-panel {
  border-top: 4px solid var(--rise-orange);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.public-code-panel h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.access-code-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.access-code-card {
  position: relative;
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  border-color: #cbd8e5;
}

.access-code-card.primary-access-card {
  border-color: rgba(242, 107, 33, 0.65);
  background:
    linear-gradient(180deg, #fff8f2 0%, #ffffff 62%);
}

.access-card-label {
  color: var(--rise-orange);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-code-card h3 {
  margin-bottom: 0;
  font-size: 22px;
}

.public-code-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 2px;
}

.public-code-form input,
.public-code-form button {
  min-height: 42px;
}

.public-code-form input {
  border-color: #9db3c7;
  font-size: 14px;
}

.public-code-form button {
  padding-inline: 18px;
}

.staff-access-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-left: 4px solid var(--rise-green);
}

.staff-access-card p {
  max-width: 760px;
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .public-topbar:not(.public-topbar-focus) {
    justify-content: center;
  }

  .public-brand-banner-link {
    flex-basis: 100%;
    min-width: 0;
  }

  .public-brand-banner {
    width: min(520px, 100%);
    height: auto;
    max-height: 82px;
    margin: 0 auto;
  }

  .portal-landing-hero,
  .access-code-grid {
    grid-template-columns: 1fr;
  }

  .portal-landing-banner,
  .portal-landing-banner img {
    min-height: 0;
  }

  .portal-landing-copy h1 {
    max-width: none;
    font-size: 28px;
  }

  .portal-landing-copy {
    grid-template-columns: 1fr;
  }

  .portal-landing-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .public-brand-banner {
    height: 58px;
  }

  .portal-landing-copy {
    padding: 22px;
    display: block;
  }

  .portal-landing-copy .kicker {
    display: block;
    margin-bottom: 10px;
  }

  .portal-landing-copy h1 {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.08;
  }

  .portal-landing-copy p {
    max-width: none;
    font-size: 14px;
    line-height: 1.45;
  }

  .portal-landing-tags {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .portal-landing-tags span {
    width: 100%;
  }

  .public-code-form > div,
  .staff-access-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-code-form button,
  .staff-access-card .button {
    width: 100%;
  }
}
