.portal-page {
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--bg);
}

.portal-page.is-locked {
  overflow: hidden;
}

.portal-shell {
  --sidebar-current-width: 320px;
  min-height: 100dvh;
}

.sidebar {
  position: fixed;
  z-index: 60;
  inset: 0 auto 0 0;
  width: var(--sidebar-current-width);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(166, 228, 225, 0.22);
  background:
    radial-gradient(circle at 112% 35%, rgba(87, 196, 215, 0.17), transparent 17%),
    linear-gradient(168deg, #174c6d 0%, #113e5d 45%, #0b243c 100%);
  box-shadow: 12px 0 30px rgba(11, 36, 60, 0.08);
  color: #eaf5f8;
  transition:
    width var(--motion-base) cubic-bezier(0.22, 1, 0.36, 1),
    transform var(--motion-base) cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar::after {
  position: absolute;
  right: -102px;
  bottom: 30%;
  width: 210px;
  height: 210px;
  content: "";
  border: 1px solid rgba(125, 227, 208, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.sidebar-orbit {
  position: absolute;
  right: -170px;
  bottom: 21%;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(125, 227, 208, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.sidebar-header {
  position: relative;
  z-index: 1;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(216, 243, 245, 0.1);
}

.sidebar-brand {
  min-width: 0;
  min-height: 48px;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
}

.sidebar-brand:hover {
  color: #ffffff;
}

.sidebar-brand img {
  width: 69px;
  height: 34px;
  flex: 0 0 69px;
  object-fit: contain;
}

.sidebar-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    opacity var(--motion-fast) ease-out,
    max-width var(--motion-base) ease-out;
}

.sidebar-toggle {
  width: 42px;
  height: 42px;
  border-color: rgba(125, 227, 208, 0.28);
  background: rgba(0, 170, 224, 0.12);
  box-shadow:
    0 0 0 3px rgba(0, 170, 224, 0.06),
    inset 0 0 16px rgba(36, 184, 237, 0.12);
  color: #dffcff;
}

.sidebar-toggle:hover {
  border-color: rgba(125, 227, 208, 0.55);
  background: rgba(0, 170, 224, 0.22);
  color: #ffffff;
}

.sidebar-nav {
  position: relative;
  z-index: 1;
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 16px 22px;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  scrollbar-width: thin;
}

.nav-group + .nav-group {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(216, 243, 245, 0.08);
}

.nav-group-label {
  margin: 0 2px 10px;
  color: rgba(218, 239, 243, 0.5);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-item {
  position: relative;
  min-height: 57px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 5px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: rgba(239, 249, 251, 0.78);
  transition:
    background-color var(--motion-fast) ease-out,
    border-color var(--motion-fast) ease-out,
    color var(--motion-fast) ease-out,
    transform var(--motion-fast) ease-out,
    opacity var(--motion-fast) ease-out;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(2px);
}

.nav-item.is-active {
  border-color: rgba(125, 227, 208, 0.38);
  background: linear-gradient(90deg, rgba(125, 227, 208, 0.13), rgba(255, 255, 255, 0.06));
  color: #ffffff;
}

.nav-item.is-active::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -1px;
  width: 3px;
  content: "";
  border-radius: 99px;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(125, 227, 208, 0.34);
}

.nav-icon {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid rgba(194, 229, 234, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #cce8ed;
  transition:
    background-color var(--motion-fast) ease-out,
    border-color var(--motion-fast) ease-out,
    color var(--motion-fast) ease-out,
    box-shadow var(--motion-fast) ease-out;
}

.nav-item.is-active .nav-icon {
  border-color: rgba(216, 255, 247, 0.72);
  background: var(--mint);
  box-shadow: 0 8px 22px rgba(72, 203, 181, 0.24);
  color: #ffffff;
}

.nav-icon svg {
  width: 19px;
  height: 19px;
}

.nav-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.nav-copy strong,
.nav-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-copy strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-copy small {
  color: rgba(203, 226, 231, 0.55);
  font-size: 0.7rem;
}

.nav-item.is-active .nav-copy small {
  color: rgba(241, 255, 252, 0.75);
}

.sidebar-footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(216, 243, 245, 0.1);
  background: rgba(4, 24, 41, 0.1);
}

.sidebar-profile {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(75, 168, 203, 0.48);
  border-radius: 15px;
  background: rgba(0, 170, 224, 0.05);
  color: #ffffff;
  transition:
    border-color var(--motion-fast) ease-out,
    background-color var(--motion-fast) ease-out;
}

.sidebar-profile:hover,
.sidebar-profile.is-active {
  border-color: rgba(125, 227, 208, 0.58);
  background: rgba(125, 227, 208, 0.09);
  color: #ffffff;
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  border: 2px solid rgba(125, 227, 208, 0.72);
  border-radius: 14px;
  background: linear-gradient(145deg, #e4f7fc, #7de3d0);
  color: #0b3c55;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.profile-copy {
  min-width: 0;
  display: grid;
}

.profile-copy strong,
.profile-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong {
  font-size: 0.77rem;
}

.profile-copy small {
  color: rgba(213, 235, 238, 0.56);
  font-size: 0.64rem;
}

.sidebar-actions {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 8px;
  margin-top: 9px;
}

.sidebar-action {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(177, 217, 224, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(234, 247, 250, 0.82);
  cursor: pointer;
  font-size: 0.75rem;
  transition:
    background-color var(--motion-fast) ease-out,
    border-color var(--motion-fast) ease-out,
    color var(--motion-fast) ease-out;
}

.sidebar-action:hover {
  border-color: rgba(125, 227, 208, 0.45);
  background: rgba(125, 227, 208, 0.1);
  color: #ffffff;
}

.sidebar-action svg {
  width: 18px;
  height: 18px;
}

.theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-icon-light {
  display: none;
}

[data-theme="dark"] .theme-icon-dark {
  display: block;
}

.workspace {
  min-height: 100dvh;
  margin-left: var(--sidebar-current-width);
  transition: margin-left var(--motion-base) cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px clamp(24px, 4vw, 52px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px);
}

.mobile-menu-button {
  display: none;
}

.topbar-context {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.topbar-kicker {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar-context strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.unit-picker {
  min-width: 218px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding-left: 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.7rem;
}

.unit-picker select {
  min-height: 44px;
  padding: 8px 34px 8px 0;
  border: 0;
  background-color: transparent;
  box-shadow: none;
  color: var(--text-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.notification-button {
  position: relative;
}

.notification-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--danger);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
}

.portal-content {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px);
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  animation: content-enter 220ms ease-out both;
}

.page-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.page-description {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.content-region {
  animation: content-enter 220ms ease-out both;
}

.content-loading {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
}

.loading-panel {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.loading-line {
  width: 100%;
  height: 13px;
}

.loading-line--short {
  width: 36%;
}

.loading-line--medium {
  width: 68%;
}

.loading-block {
  height: 132px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 20px;
}

.overview-main,
.overview-side {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 20px;
}

.surface-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.surface-section--accent {
  border-color: color-mix(in srgb, var(--mint) 35%, var(--border));
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--mint) 13%, transparent), transparent 42%),
    var(--surface);
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 17px;
}

.section-header h2,
.section-header h3,
.section-header p {
  margin: 0;
}

.section-header h2 {
  font-size: 1.15rem;
}

.section-header h3 {
  font-size: 1rem;
}

.section-header p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.section-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.section-link svg {
  width: 15px;
  height: 15px;
}

.section-body {
  padding: 0 24px 24px;
}

.journey-summary {
  display: grid;
  gap: 22px;
}

.journey-status {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.journey-status-icon {
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-mint);
  color: var(--success);
}

.journey-status-icon svg {
  width: 21px;
  height: 21px;
}

.journey-status strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-strong);
  font-size: 1rem;
}

.journey-status p {
  margin: 0;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.5;
}

.construction-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}

.construction-photo {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--surface-soft);
}

.construction-photo-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--border-soft);
}

.construction-photo-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 260ms ease;
}

.construction-photo:hover .construction-photo-media img {
  transform: scale(1.025);
}

.construction-photo-media.is-unavailable {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  font-size: 0.75rem;
}

.construction-photo-media.is-unavailable svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.construction-photo figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px 14px;
}

.construction-photo figcaption strong {
  min-width: 0;
  color: var(--text-strong);
  font-size: 0.76rem;
}

.construction-photo figcaption time {
  flex: 0 0 auto;
  color: var(--muted-soft);
  font-size: 0.66rem;
}

.progress-block {
  display: grid;
  gap: 8px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.75rem;
}

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

progress {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--border-soft);
}

progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--border-soft);
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint-strong), var(--accent));
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--accent);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border-soft);
}

.summary-item {
  min-width: 0;
  padding: 18px 20px;
}

.summary-item + .summary-item {
  border-left: 1px solid var(--border-soft);
}

.summary-item small,
.summary-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-item small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.7rem;
}

.summary-item strong {
  color: var(--text-strong);
  font-size: 0.92rem;
}

.announcement-list,
.data-list,
.ticket-list,
.benefit-list,
.document-list {
  display: grid;
}

.announcement,
.data-row,
.ticket-item,
.benefit-item,
.document-row {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-soft);
}

.announcement:first-child,
.data-row:first-child,
.ticket-item:first-child,
.benefit-item:first-child,
.document-row:first-child {
  border-top: 0;
}

.announcement-icon,
.row-icon,
.document-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.announcement-icon svg,
.row-icon svg,
.document-icon svg {
  width: 18px;
  height: 18px;
}

.announcement-copy,
.data-row-main,
.ticket-copy,
.benefit-copy,
.document-copy {
  min-width: 0;
  flex: 1;
}

.announcement-copy strong,
.data-row-main strong,
.ticket-copy strong,
.benefit-copy strong,
.document-copy strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-strong);
  font-size: 0.84rem;
}

.announcement-copy p,
.data-row-main p,
.ticket-copy p,
.benefit-copy p,
.document-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.announcement time,
.data-row-meta {
  color: var(--muted-soft);
  font-size: 0.67rem;
  white-space: nowrap;
}

.content-error,
.empty-state {
  min-height: 270px;
  display: grid;
  place-items: center;
  padding: 42px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  text-align: center;
}

.state-inner {
  max-width: 440px;
}

.state-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 17px;
  background: var(--accent-soft);
  color: var(--accent);
}

.state-icon svg {
  width: 24px;
  height: 24px;
}

.content-error .state-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.state-inner h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.state-inner p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

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

.unit-card {
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--motion-fast) ease-out,
    box-shadow var(--motion-fast) ease-out,
    transform var(--motion-fast) ease-out;
}

.unit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.unit-card.is-selected {
  border-color: var(--mint-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 18%, transparent);
}

.unit-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.unit-card h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.unit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.unit-code {
  color: var(--muted-soft);
  font-size: 0.67rem;
  font-weight: 700;
  white-space: nowrap;
}

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

.detail-item {
  min-width: 0;
}

.detail-item small,
.detail-item strong {
  display: block;
}

.detail-item small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.67rem;
}

.detail-item strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 0.79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unit-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 20px;
}

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

.details-grid .detail-item {
  padding: 17px 16px;
  border-top: 1px solid var(--border-soft);
}

.details-grid .detail-item:nth-child(even) {
  border-left: 1px solid var(--border-soft);
}

.details-grid .detail-item:nth-child(-n + 2) {
  border-top: 0;
}

.details-grid .detail-item strong {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.data-table td {
  color: var(--text);
  font-size: 0.78rem;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table td strong {
  display: block;
  color: var(--text-strong);
}

.data-table td small {
  color: var(--muted);
}

.financial-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.financial-metric {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
}

.financial-metric small,
.financial-metric strong,
.financial-metric span {
  display: block;
}

.financial-metric small {
  color: var(--muted);
  font-size: 0.7rem;
}

.financial-metric strong {
  margin: 6px 0 2px;
  overflow: hidden;
  color: var(--text-strong);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.financial-metric span {
  color: var(--muted-soft);
  font-size: 0.69rem;
}

.page-stack {
  display: grid;
  gap: 20px;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.copy-value {
  min-width: 0;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text-strong);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  padding: 15px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.search-field {
  position: relative;
  min-width: 240px;
  flex: 1;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-field input {
  padding-left: 42px;
}

.toolbar select {
  width: auto;
  min-width: 180px;
}

.document-row {
  align-items: center;
}

.document-row .button {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 0.74rem;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: var(--muted);
  font-size: 0.68rem;
}

.timeline {
  position: relative;
  display: grid;
  padding: 4px 0;
}

.timeline::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 31px;
  width: 1px;
  content: "";
  background: var(--border);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0;
  padding: 15px 24px 15px 0;
}

.timeline-marker {
  width: 16px;
  height: 16px;
  margin: 3px auto;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--border);
  box-shadow: 0 0 0 1px var(--border);
}

.timeline-item.is-complete .timeline-marker {
  background: var(--mint-strong);
}

.timeline-item.is-current .timeline-marker {
  background: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 0 5px var(--accent-soft);
}

.timeline-copy strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text-strong);
  font-size: 0.82rem;
}

.timeline-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
}

.ticket-item,
.benefit-item {
  align-items: center;
}

.ticket-side {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.ticket-side time {
  color: var(--muted-soft);
  font-size: 0.67rem;
}

.benefit-item {
  padding-block: 19px;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-mint);
  color: var(--success);
}

.benefit-partner,
.benefit-instructions {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.benefit-partner {
  color: var(--text-strong);
  font-weight: 750;
}

.referral-layout,
.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: 20px;
}

.referral-intro,
.profile-intro {
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(125, 227, 208, 0.15), transparent 40%),
    linear-gradient(150deg, #174867, #0b2d49);
  color: #dceff2;
}

.referral-intro h2,
.profile-intro h2 {
  color: #ffffff;
}

.referral-intro p,
.profile-intro p {
  color: rgba(229, 244, 247, 0.72);
  font-size: 0.84rem;
  line-height: 1.65;
}

.referral-intro svg,
.profile-intro svg {
  width: 30px;
  height: 30px;
  margin-bottom: 34px;
  color: var(--mint);
}

.form-surface {
  padding: 26px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.form-surface h2 {
  margin-bottom: 22px;
  font-size: 1.15rem;
}

.notification-panel {
  position: fixed;
  z-index: 100;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  padding: 0;
  border-left: 1px solid var(--border);
  background: var(--surface);
  box-shadow: -18px 0 52px rgba(11, 36, 60, 0.16);
  transform: translateX(105%);
  visibility: hidden;
  transition:
    transform var(--motion-base) cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear var(--motion-base);
}

.notification-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.notification-panel > header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-soft);
}

.notification-panel h2 {
  margin: 0;
  font-size: 1.25rem;
}

.notification-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--border-soft);
}

.notification-item.is-unread {
  background: var(--accent-soft);
}

.notification-item.is-unread::before {
  position: absolute;
  top: 22px;
  left: 9px;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--accent);
}

.notification-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-strong);
  font-size: 0.8rem;
}

.notification-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.notification-item time {
  display: block;
  margin-top: 8px;
  color: var(--muted-soft);
  font-size: 0.65rem;
}

.notification-item button {
  align-self: start;
  margin-left: auto;
  padding: 3px;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
}

.panel-backdrop,
.sidebar-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: block;
  border: 0;
  background: rgba(8, 26, 41, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-base) ease-out;
}

.panel-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-backdrop {
  display: none;
}

.portal-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.portal-dialog::backdrop {
  background: rgba(7, 27, 43, 0.58);
  backdrop-filter: blur(3px);
}

.dialog-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 3px;
}

.dialog-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.toast-region {
  position: fixed;
  z-index: 150;
  right: 24px;
  bottom: 24px;
  width: min(360px, calc(100% - 32px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.5;
  animation: toast-enter 180ms ease-out both;
}

.toast svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  color: var(--success);
}

.toast.is-error svg {
  color: var(--danger);
}

.portal-shell.is-sidebar-collapsed {
  --sidebar-current-width: 78px;
}

.portal-shell.is-sidebar-collapsed .sidebar-header {
  min-height: 140px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 11px;
  margin-inline: 9px;
  padding: 17px 0 12px;
}

.portal-shell.is-sidebar-collapsed .sidebar-brand {
  width: 58px;
  min-height: 39px;
  flex: 0 0 39px;
  justify-content: center;
}

.portal-shell.is-sidebar-collapsed .sidebar-brand img {
  width: 58px;
  height: 32px;
  flex-basis: 58px;
}

.portal-shell.is-sidebar-collapsed .sidebar-brand span,
.portal-shell.is-sidebar-collapsed .nav-copy,
.portal-shell.is-sidebar-collapsed .nav-group-label,
.portal-shell.is-sidebar-collapsed .profile-copy,
.portal-shell.is-sidebar-collapsed .sidebar-action span {
  display: none;
}

.portal-shell.is-sidebar-collapsed .sidebar-toggle {
  width: 44px;
  height: 44px;
  transform: rotate(180deg);
}

.portal-shell.is-sidebar-collapsed .sidebar-nav {
  padding: 9px 17px;
}

.portal-shell.is-sidebar-collapsed .nav-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.portal-shell.is-sidebar-collapsed .nav-item:not(.is-active) {
  display: none;
}

.portal-shell.is-sidebar-collapsed .nav-item {
  width: 44px;
  min-height: 48px;
  justify-content: center;
  margin: 0 auto;
  padding: 4px 2px;
  border-radius: 15px;
}

.portal-shell.is-sidebar-collapsed .nav-item:hover {
  transform: none;
}

.portal-shell.is-sidebar-collapsed .nav-item.is-active::before {
  top: 8px;
  bottom: 8px;
  left: -4px;
}

.portal-shell.is-sidebar-collapsed .nav-icon {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

.portal-shell.is-sidebar-collapsed .sidebar-footer {
  padding: 10px 9px 14px;
}

.portal-shell.is-sidebar-collapsed .sidebar-profile {
  width: 52px;
  justify-content: center;
  margin: 0 auto;
  padding: 4px;
}

.portal-shell.is-sidebar-collapsed .sidebar-actions {
  grid-template-columns: 1fr;
  justify-items: center;
}

.portal-shell.is-sidebar-collapsed .sidebar-action {
  width: 48px;
  padding: 6px;
}

.portal-shell.is-sidebar-collapsed [data-tooltip] {
  position: relative;
}

.portal-shell.is-sidebar-collapsed [data-tooltip]::after {
  position: absolute;
  z-index: 200;
  top: 50%;
  left: calc(100% + 12px);
  padding: 7px 10px;
  border-radius: 8px;
  background: #071c2d;
  box-shadow: var(--shadow-md);
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, -50%);
  transition:
    opacity var(--motion-fast) ease-out,
    transform var(--motion-fast) ease-out;
  white-space: nowrap;
}

.portal-shell.is-sidebar-collapsed [data-tooltip]:hover::after,
.portal-shell.is-sidebar-collapsed [data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@media (max-width: 1180px) {
  .overview-grid,
  .details-layout {
    grid-template-columns: 1fr;
  }

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

  .referral-layout,
  .profile-layout {
    grid-template-columns: minmax(240px, 0.48fr) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .portal-shell,
  .portal-shell.is-sidebar-collapsed {
    --sidebar-current-width: 0px;
  }

  .sidebar,
  .portal-shell.is-sidebar-collapsed .sidebar {
    width: min(320px, calc(100vw - 32px));
    transform: translateX(-105%);
  }

  .portal-shell.is-mobile-open .sidebar {
    transform: translateX(0);
  }

  .portal-shell.is-sidebar-collapsed .sidebar-header {
    min-height: 86px;
    flex-direction: row;
    gap: 12px;
    margin: 0 16px;
    padding: 18px 0;
  }

  .portal-shell.is-sidebar-collapsed .sidebar-brand {
    width: auto;
    min-height: 48px;
    flex: 1;
    justify-content: flex-start;
  }

  .portal-shell.is-sidebar-collapsed .sidebar-brand img {
    width: 69px;
    height: 34px;
    flex-basis: 69px;
  }

  .portal-shell.is-sidebar-collapsed .sidebar-brand span,
  .portal-shell.is-sidebar-collapsed .nav-copy,
  .portal-shell.is-sidebar-collapsed .nav-group-label,
  .portal-shell.is-sidebar-collapsed .profile-copy,
  .portal-shell.is-sidebar-collapsed .sidebar-action span {
    display: initial;
  }

  .portal-shell.is-sidebar-collapsed .sidebar-toggle {
    width: 42px;
    height: 42px;
    transform: none;
  }

  .portal-shell.is-sidebar-collapsed .sidebar-nav {
    padding: 18px 16px 22px;
  }

  .portal-shell.is-sidebar-collapsed .nav-group + .nav-group {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(216, 243, 245, 0.08);
  }

  .portal-shell.is-sidebar-collapsed .nav-item:not(.is-active) {
    display: flex;
  }

  .portal-shell.is-sidebar-collapsed .nav-item {
    width: auto;
    min-height: 57px;
    justify-content: flex-start;
    margin: 0 0 5px;
    padding: 7px 10px;
  }

  .portal-shell.is-sidebar-collapsed .nav-item.is-active::before {
    top: 10px;
    bottom: 10px;
    left: -1px;
  }

  .portal-shell.is-sidebar-collapsed .sidebar-footer {
    padding: 12px 16px 16px;
  }

  .portal-shell.is-sidebar-collapsed .sidebar-profile {
    width: auto;
    justify-content: flex-start;
    margin: 0;
    padding: 7px 9px;
  }

  .portal-shell.is-sidebar-collapsed .sidebar-actions {
    grid-template-columns: 1fr 0.78fr;
  }

  .portal-shell.is-sidebar-collapsed .sidebar-action {
    width: auto;
    padding: 8px 11px;
  }

  .portal-shell.is-sidebar-collapsed [data-tooltip]::after {
    display: none;
  }

  .workspace {
    margin-left: 0;
  }

  .topbar {
    min-height: 70px;
    padding: 10px 20px;
  }

  .mobile-menu-button {
    display: grid;
  }

  .topbar-context {
    flex: 1;
  }

  .sidebar-backdrop {
    z-index: 55;
    display: block;
  }

  .portal-shell.is-mobile-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-toggle {
    transform: none;
  }

  .portal-content {
    padding: 32px 24px 44px;
  }

  .referral-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .topbar-context {
    display: none;
  }

  .topbar-actions {
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
  }

  .unit-picker {
    min-width: 0;
    max-width: 260px;
    flex: 1;
  }

  .unit-picker > span {
    display: none;
  }

  .unit-picker {
    grid-template-columns: 1fr;
    padding-left: 12px;
  }

  .content-loading,
  .unit-list,
  .construction-gallery {
    grid-template-columns: 1fr;
  }

  .overview-side {
    grid-template-columns: 1fr;
  }

  .summary-strip,
  .financial-summary {
    grid-template-columns: 1fr;
  }

  .summary-item + .summary-item {
    border-top: 1px solid var(--border-soft);
    border-left: 0;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .page-actions .button {
    flex: 1;
  }

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

  .details-grid .detail-item,
  .details-grid .detail-item:nth-child(even) {
    border-top: 1px solid var(--border-soft);
    border-left: 0;
  }

  .details-grid .detail-item:first-child {
    border-top: 0;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar select,
  .search-field {
    width: 100%;
    min-width: 0;
  }

  .document-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .document-row .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .portal-content {
    padding: 26px 16px 40px;
  }

  .topbar {
    padding-inline: 14px;
  }

  .page-heading {
    margin-bottom: 22px;
  }

  .section-header,
  .section-body,
  .announcement,
  .data-row,
  .ticket-item,
  .benefit-item,
  .document-row {
    padding-inline: 18px;
  }

  .unit-details {
    grid-template-columns: 1fr;
  }

  .ticket-item {
    align-items: flex-start;
  }

  .ticket-side {
    justify-items: start;
  }

  .construction-photo figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .dialog-form {
    padding: 20px;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .toast-region {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-height: 650px) and (min-width: 901px) {
  .sidebar-nav {
    padding-block: 10px;
  }

  .nav-item {
    min-height: 50px;
  }

  .nav-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .sidebar-footer {
    padding-block: 8px 10px;
  }

  .sidebar-profile {
    min-height: 52px;
  }
}
