html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
  --shell-bg: #edf4fb;
  --panel-bg: #ffffff;
  --nav-bg: linear-gradient(180deg, #006ebd 0%, #005aa3 100%);
  --nav-border: #d0deeb;
  --text-main: #20313f;
  --text-muted: #5f7286;
  --accent: #ff6600;
  --accent-dark: #cc5200;
  --brand-blue: #006ebd;
  --brand-blue-dark: #005aa3;
  --brand-blue-deep: #003366;
  --header-height: 72px;
  --footer-height: 57px;
  --nav-expanded: 260px;
  --nav-collapsed: 88px;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f7fafc 0%, var(--shell-bg) 100%);
  color: var(--text-main);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body:has(.public-shell) {
  background:
    radial-gradient(circle at top left, rgba(0, 110, 189, 0.16) 0%, transparent 34%),
    radial-gradient(circle at right center, rgba(255, 102, 0, 0.16) 0%, transparent 28%),
    linear-gradient(180deg, #f5f9fd 0%, #e8f1f9 100%);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem rgba(0, 110, 189, 0.25);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.app-shell {
  min-height: calc(100vh - var(--footer-height));
}

.public-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.public-header {
  padding: 1.5rem 2rem 0;
}

.public-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--brand-blue-deep);
  text-decoration: none;
}

.public-header__logo {
  width: auto;
  height: 74px;
  max-width: 220px;
  object-fit: contain;
}

.public-header__text {
  display: grid;
  gap: 0.2rem;
}

.public-header__title {
  font-size: 1.5rem;
  font-weight: 800;
}

.public-header__subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.public-main {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.app-header {
  height: var(--header-height);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(90deg, #ffffff 0%, #f7fbff 100%);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 4px 20px rgba(32, 49, 63, 0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-header__brand-group,
.app-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-header__actions {
  margin-left: auto;
  justify-content: flex-end;
  min-width: 0;
}

.account-menu {
  display: grid;
  grid-template-columns: 40px minmax(0, auto) auto;
  align-items: center;
  gap: 0.75rem;
  max-width: min(540px, 52vw);
  padding: 0.5rem 0.55rem 0.5rem 0.5rem;
  border: 1px solid rgba(0, 110, 189, 0.14);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.96));
  box-shadow: 0 10px 24px rgba(0, 51, 102, 0.08);
}

.account-menu__sign-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 110, 189, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.96));
  box-shadow: 0 10px 24px rgba(0, 51, 102, 0.08);
  color: var(--brand-blue-deep);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.account-menu__avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.account-menu__identity {
  min-width: 0;
  display: grid;
  line-height: 1.15;
}

.account-menu__identity span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-menu__identity strong {
  max-width: 28ch;
  overflow: hidden;
  color: var(--brand-blue-deep);
  font-size: 0.92rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 102, 0, 0.1);
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.account-menu__action:hover,
.account-menu__action:focus,
.account-menu__sign-in:hover,
.account-menu__sign-in:focus {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.app-header__brand {
  color: var(--brand-blue-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.app-header__brand:hover {
  color: var(--brand-blue);
}

.app-header__logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: min(240px, 42vw);
  object-fit: contain;
}

.app-header__brand-text {
  display: flex;
  align-items: center;
  min-width: 0;
}

.app-header__brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.app-header__context {
  display: grid;
  gap: 0.1rem;
  text-align: right;
}

.app-header__context-label {
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-header__context-value {
  color: var(--brand-blue-deep);
  font-size: 0.95rem;
  font-weight: 600;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef6ff 0%, #d9ebff 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 110, 189, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--brand-blue-deep);
}

.app-body {
  display: flex;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

.side-nav {
  width: var(--nav-expanded);
  flex: 0 0 var(--nav-expanded);
  background: var(--nav-bg);
  border-right: 1px solid rgba(0, 51, 102, 0.16);
  box-shadow: 8px 0 24px rgba(0, 51, 102, 0.14);
  transition: width 0.25s ease, flex-basis 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.side-nav__header {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.side-nav__eyebrow {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.side-nav__title {
  margin-top: 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.side-nav__section-label {
  padding: 1.25rem 1.25rem 0.5rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0 0.75rem 1rem;
}

.side-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid transparent;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.side-nav__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
}

.side-nav__icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-nav__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav__link:hover,
.side-nav__link.active {
  background: rgba(255, 255, 255, 0.14);
  border-left-color: var(--accent);
  color: #ffffff;
}

.content-panel {
  flex: 1;
  min-width: 0;
  padding: 1.5rem;
}

.content-panel::before {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--accent) 100%);
}

.page-card {
  background: var(--panel-bg);
  border: 1px solid var(--nav-border);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 18px 40px rgba(0, 51, 102, 0.08);
}

.sign-in-hero {
  width: min(100%, 1120px);
}

.sign-in-card {
  position: relative;
  overflow: hidden;
  padding: 3rem;
  border: 1px solid rgba(0, 51, 102, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(0, 110, 189, 0.07) 0%, rgba(255, 255, 255, 0.95) 42%, rgba(255, 102, 0, 0.08) 100%),
    #ffffff;
  box-shadow: 0 24px 60px rgba(0, 51, 102, 0.12);
}

.sign-in-card--compact {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.sign-in-card::before {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 110, 189, 0.16) 0%, transparent 70%);
}

.sign-in-card__eyebrow {
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sign-in-card__title {
  margin: 0.45rem 0 0.8rem;
  color: var(--brand-blue-deep);
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
}

.sign-in-card__subtitle {
  max-width: 44rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.sign-in-card__actions {
  margin-top: 2rem;
}

.sign-in-card--compact .sign-in-card__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.sign-in-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #006ebd 0%, #004f8d 100%);
  box-shadow: 0 14px 28px rgba(0, 110, 189, 0.25);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sign-in-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(0, 110, 189, 0.32);
  color: #ffffff;
}

.sign-in-card__support {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(0, 51, 102, 0.1);
}

.sign-in-card__support-title {
  color: var(--brand-blue-deep);
  font-size: 1rem;
  font-weight: 700;
}

.sign-in-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.sign-in-feature {
  padding: 1.25rem;
  border: 1px solid rgba(0, 51, 102, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.sign-in-feature__label {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sign-in-feature p {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
}

.page-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-card__eyebrow {
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-card__title {
  margin: 0.35rem 0 0.5rem;
  color: var(--brand-blue-deep);
  font-size: clamp(1.8rem, 2vw, 2.3rem);
  font-weight: 700;
}

.page-card__subtitle {
  max-width: 58rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.home-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.home-hero__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 1.5rem;
  border: 1px solid #d8e4ef;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: 0 10px 24px rgba(0, 51, 102, 0.06);
}

.home-hero__card--accent {
  background: linear-gradient(145deg, #f7fbff 0%, #eef6ff 60%, #fff4eb 100%);
}

.home-hero__eyebrow {
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero__card h2 {
  margin: 0.45rem 0 0.6rem;
  color: var(--brand-blue-deep);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.home-hero__card p {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
  max-width: 44rem;
}

.hero-metric {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d7e4ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.hero-metric__label {
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-metric__value {
  color: var(--brand-blue-deep);
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 110, 189, 0.1);
  color: var(--brand-blue-deep);
  font-weight: 700;
  font-size: 0.9rem;
}

.home-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dce7f0;
}

.home-section--secondary {
  margin-top: 1.75rem;
}

.home-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.home-section__title {
  margin: 0.35rem 0 0;
  color: var(--brand-blue-deep);
  font-size: 1.4rem;
  font-weight: 700;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.landing-grid--single {
  grid-template-columns: 1fr;
}

.landing-tile {
  display: block;
  padding: 1.5rem;
  border: 1px solid #d8e4ef;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 51, 102, 0.06);
}

.landing-tile__eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-tile h2 {
  margin: 0.35rem 0 0.5rem;
  color: var(--brand-blue-deep);
  font-size: 1.35rem;
}

.landing-tile p {
  margin: 0;
  color: var(--text-muted);
}

.landing-tile--info {
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 70%, #eef6ff 100%);
}

.archive-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1.25rem;
  height: calc(100vh - var(--header-height) - var(--footer-height) - 4.75rem);
  max-height: calc(100vh - var(--header-height) - var(--footer-height) - 4.75rem);
  min-height: 0;
}

.archive-page__header {
  margin-bottom: 0;
}

.archive-page__summary {
  min-width: 150px;
  padding: 0.8rem 1rem;
  border: 1px solid #d8e4ef;
  border-radius: 12px;
  background: #f7fbff;
  text-align: right;
}

.archive-page__summary-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-page__summary strong {
  display: block;
  color: var(--brand-blue-deep);
  font-size: 1.45rem;
  line-height: 1.2;
}

.archive-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 1.25rem;
  align-items: stretch;
  min-height: 0;
}

.archive-grid-panel,
.archive-detail-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid #d8e4ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 51, 102, 0.06);
}

.archive-grid-panel {
  display: grid;
  overflow: hidden;
}

.archive-detail-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.archive-detail-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid #d8e4ef;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.archive-detail-panel__header h2 {
  margin: 0.25rem 0 0;
  color: var(--brand-blue-deep);
  font-size: 1.25rem;
  font-weight: 800;
}

.archive-status-pill {
  display: inline-flex;
  max-width: 180px;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 110, 189, 0.1);
  color: var(--brand-blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

.archive-detail-empty {
  padding: 1.25rem;
  color: var(--text-muted);
}

.archive-detail-tabs {
  min-height: 0;
  overflow: hidden;
  border-width: 0;
}

.archive-detail-tabs.k-tabstrip {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.archive-detail-tabs > .k-tabstrip-items-wrapper {
  border-inline-width: 0;
}

.archive-detail-tabs > .k-content {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  padding: 0;
  border-inline-width: 0;
  border-bottom-width: 0;
  overflow: hidden;
}

.archive-detail-tabs .k-tabstrip-content {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.archive-tab-panel {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.archive-tab-panel--record {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.archive-tab-panel--images {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem;
  max-height: 100%;
  overflow: hidden;
}

.archive-image-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  min-width: 0;
}

.archive-image-controls {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.archive-image-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-image-open {
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(0, 110, 189, 0.2);
  border-radius: 8px;
  background: #eef6ff;
  color: var(--brand-blue-deep);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.archive-image-open:hover,
.archive-image-open:focus {
  background: var(--brand-blue);
  color: #ffffff;
}

.archive-image-open:disabled {
  border-color: #d8e4ef;
  background: #f7fbff;
  color: var(--text-muted);
}

.archive-tab-panel--images > .archive-detail-empty,
.archive-image-preview {
  grid-row: 2;
}

.archive-image-preview {
  min-height: 0;
  height: 100%;
  max-height: min(52vh, 560px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  margin: 0.45rem 0 0.75rem;
  overflow: hidden;
}

.archive-image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid #d8e4ef;
  border-radius: 10px;
  background:
    linear-gradient(45deg, rgba(216, 228, 239, 0.3) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(216, 228, 239, 0.3) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(216, 228, 239, 0.3) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(216, 228, 239, 0.3) 75%),
    #f8fbff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.archive-image-frame img {
  position: absolute;
  inset: 1rem;
  width: auto;
  height: auto;
  max-width: min(calc(100% - 2rem), 620px);
  max-height: calc(100% - 2rem);
  margin: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 51, 102, 0.16);
}

.archive-image-meta {
  display: none;
  gap: 0.15rem;
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.archive-image-meta strong {
  min-width: 0;
  color: var(--brand-blue-deep);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-image-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-image-modal .modal-dialog {
  max-width: min(1180px, calc(100vw - 2rem));
}

.archive-image-modal .modal-content {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 51, 102, 0.24);
}

.archive-image-modal .modal-header {
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.archive-image-modal__title {
  min-width: 0;
}

.archive-image-modal .modal-title {
  margin: 0.25rem 0 0;
  color: var(--brand-blue-deep);
  font-size: 1.1rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-image-modal__actions {
  position: absolute;
  right: 2rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(16, 24, 32, 0.78);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.archive-image-zoom__button,
.archive-image-zoom__reset {
  min-width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-blue-deep);
  font-weight: 800;
  line-height: 1;
}

.archive-image-zoom__button {
  font-size: 1.15rem;
}

.archive-image-zoom__reset {
  min-width: 58px;
  padding: 0 0.55rem;
  font-size: 0.78rem;
}

.archive-image-zoom__button:hover,
.archive-image-zoom__button:focus,
.archive-image-zoom__reset:hover,
.archive-image-zoom__reset:focus {
  background: var(--brand-blue);
  color: #ffffff;
}

.archive-image-zoom__button:disabled,
.archive-image-zoom__reset:disabled {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(32, 49, 63, 0.62);
}

.archive-image-modal__body {
  height: min(72vh, 760px);
  max-height: min(72vh, 760px);
  overflow: auto;
  padding: 1rem;
  background: #101820;
}

.archive-image-modal__viewport {
  min-width: 100%;
  min-height: calc(min(72vh, 760px) - 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-image-modal__image {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  transform-origin: center center;
}

.archive-detail-list {
  display: grid;
  grid-template-columns: minmax(150px, 0.38fr) minmax(0, 0.62fr);
  gap: 0;
  min-height: 0;
  max-height: 100%;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.archive-detail-list dt,
.archive-detail-list dd {
  min-width: 0;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #edf2f7;
  overflow-wrap: anywhere;
}

.archive-detail-list dt {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f8fbff;
}

.archive-detail-list dd {
  color: var(--text-main);
  font-size: 0.92rem;
  white-space: pre-wrap;
}

#womsGrid {
  height: 100%;
  min-height: 0;
  width: 100%;
}

#womsGrid.k-grid,
#womsGrid .k-grid-toolbar {
  min-width: 0;
  max-width: 100%;
}

#womsGrid .k-grid-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

#womsGrid .k-grid-toolbar .k-spacer {
  flex: 1 1 auto;
  min-width: 0;
}

#womsGrid .k-grid-search {
  flex: 0 1 280px;
  width: min(100%, 280px);
  min-width: 180px;
  margin-left: auto;
}

#womsGrid .k-grid-search .k-input-inner {
  min-width: 0;
}

#womsGrid .k-grid-header th.k-header {
  color: var(--brand-blue-deep);
  font-weight: 800;
}

#womsGrid .k-grid-content tr.k-selected,
#womsGrid .k-grid-content tr.k-selected > td {
  background-color: rgba(0, 110, 189, 0.14);
  color: var(--brand-blue-deep);
}

.footer {
  position: relative !important;
  z-index: 30;
  background: linear-gradient(90deg, #ffffff 0%, #f7fbff 100%) !important;
  border-top: 1px solid var(--nav-border);
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 18px rgba(32, 49, 63, 0.04);
  line-height: 1.4 !important;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

body.menu-collapsed .side-nav {
  width: var(--nav-collapsed);
  flex-basis: var(--nav-collapsed);
}

body.menu-collapsed .side-nav__header,
body.menu-collapsed .side-nav__section-label {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

body.menu-collapsed .side-nav__title,
body.menu-collapsed .side-nav__eyebrow,
body.menu-collapsed .side-nav__section-label {
  opacity: 0;
  white-space: nowrap;
}

body.menu-collapsed .side-nav__link {
  justify-content: center;
  gap: 0;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

body.menu-collapsed .side-nav__text {
  width: 0;
  opacity: 0;
}

@media (max-width: 1399.98px) {
  .archive-page {
    height: auto;
    max-height: none;
    min-height: calc(100vh - var(--header-height) - var(--footer-height) - 4.75rem);
    min-height: calc(100dvh - var(--header-height) - var(--footer-height) - 4.75rem);
  }

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

  .archive-grid-panel {
    height: clamp(420px, 50vh, 560px);
    height: clamp(420px, 50dvh, 560px);
  }

  .archive-detail-panel {
    height: clamp(440px, 56vh, 680px);
    height: clamp(440px, 56dvh, 680px);
  }

  #womsGrid .k-grid-toolbar {
    justify-content: stretch;
  }

  #womsGrid .k-grid-toolbar .k-spacer {
    display: none;
  }

  #womsGrid .k-grid-search {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }
}

@media (max-width: 991.98px) {
  .app-body {
    position: relative;
  }

  .side-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: var(--footer-height);
    z-index: 15;
  }

  body.menu-collapsed .side-nav {
    transform: translateX(-100%);
    width: var(--nav-expanded);
    flex-basis: var(--nav-expanded);
  }

  body.menu-collapsed .side-nav__title,
  body.menu-collapsed .side-nav__eyebrow,
  body.menu-collapsed .side-nav__section-label {
    opacity: 1;
  }

  body.menu-collapsed .side-nav__link {
    justify-content: flex-start;
    gap: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.menu-collapsed .side-nav__text {
    width: auto;
    opacity: 1;
  }

  .content-panel {
    padding: 1rem;
  }

  .app-header__logo {
    height: 34px;
    max-width: min(180px, 38vw);
  }

  .account-menu {
    grid-template-columns: 36px auto;
    max-width: none;
    padding: 0.4rem;
  }

  .account-menu__avatar {
    width: 36px;
    height: 36px;
  }

  .account-menu__identity {
    display: none;
  }

  .account-menu__action,
  .account-menu__sign-in {
    min-height: 34px;
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
  }

  .home-hero,
  .archive-workspace,
  .landing-grid,
  .sign-in-feature-grid,
  .footer__content {
    grid-template-columns: 1fr;
  }

  .archive-page__header {
    display: grid;
  }

  .archive-page {
    height: auto;
    max-height: none;
  }

  .archive-page__summary {
    text-align: left;
  }

  .archive-detail-panel {
    max-height: none;
  }

  .archive-detail-list {
    grid-template-columns: 1fr;
  }

  .archive-image-toolbar {
    grid-template-columns: 1fr;
  }

  .archive-image-open {
    width: 100%;
  }

  .public-header {
    padding: 1rem 1rem 0;
  }

  .public-header__brand {
    align-items: flex-start;
  }

  .public-header__logo {
    height: 58px;
  }

  .public-main {
    padding: 1rem;
  }

  .sign-in-card {
    padding: 2rem 1.5rem;
  }
}
