:root {
  color-scheme: light;
  --navy: #0b2545;
  --navy-2: #123b5d;
  --primary: #086fa1;
  --primary-dark: #05577f;
  --turquoise: #0ea5a8;
  --accent: #16b8a6;
  --background: #f4f8fb;
  --surface: #ffffff;
  --surface-soft: #eef6f8;
  --text: #102a43;
  --muted: #627d98;
  --border: #d8e5ec;
  --success: #138a63;
  --success-bg: #e8f7f1;
  --warning: #a96708;
  --warning-bg: #fff5df;
  --danger: #b83243;
  --danger-bg: #fff0f2;
  --info: #296b9a;
  --info-bg: #eaf4fb;
  --incomplete: #60758a;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 5px 18px rgba(11, 37, 69, 0.05);
  --shadow-md: 0 16px 42px rgba(11, 37, 69, 0.12);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --focus: 0 0 0 4px rgba(14, 165, 168, 0.2);
  --sidebar: 272px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 4%, rgba(22, 184, 166, 0.08), transparent 28rem),
    var(--background);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-dark);
}

:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 24px rgba(8, 111, 161, 0.25);
}

.brand-mark.large {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 1.05rem;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--turquoise);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.noscript {
  margin: 24px;
  padding: 18px;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid #f4c7ce;
  border-radius: var(--radius-sm);
}

.public-shell {
  min-height: 100vh;
}

.public-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 72px);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 229, 236, 0.85);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand-copy {
  display: grid;
  line-height: 1.12;
}

.brand-name {
  font-size: 1.28rem;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.public-nav,
.header-actions,
.button-row,
.inline-actions,
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-nav {
  margin-left: auto;
}

.nav-link {
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 9px;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--info-bg);
}

.language-select {
  min-width: 82px;
  padding: 9px 30px 9px 11px;
  color: var(--navy);
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
}

.public-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 82px) 0 64px;
}

.auth-layout {
  display: grid;
  min-height: calc(100vh - 176px);
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 8vw, 96px);
}

.auth-intro {
  max-width: 670px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 7px 11px;
  color: var(--primary);
  background: var(--info-bg);
  border: 1px solid #cee6f4;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.25rem, 5.2vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-title .accent {
  color: var(--primary);
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.trust-list {
  display: grid;
  margin: 30px 0 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.trust-item {
  min-height: 106px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-number {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 1.38rem;
  font-weight: 850;
}

.trust-label {
  color: var(--muted);
  font-size: 0.84rem;
}

.auth-card,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.auth-card {
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.auth-card h1,
.auth-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.72rem;
  letter-spacing: -0.035em;
}

.auth-note {
  margin: 8px 0 25px;
  color: var(--muted);
  font-size: 0.93rem;
}

.form {
  display: grid;
  gap: 17px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-label {
  color: var(--text);
  font-size: 0.87rem;
  font-weight: 720;
}

.field-help,
.help,
.meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid #cbdbe5;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.textarea {
  min-height: 108px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--turquoise);
  box-shadow: var(--focus);
}

.input::placeholder,
.textarea::placeholder {
  color: #91a5b7;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 0.9rem;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.btn {
  display: inline-flex;
  min-height: 42px;
  padding: 10px 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.14s, background 0.14s, border-color 0.14s, box-shadow 0.14s;
}

.btn:hover {
  color: var(--navy);
  background: var(--surface-soft);
  border-color: #b9cedb;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #087b9e);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(8, 111, 161, 0.18);
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-color: transparent;
}

.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, var(--turquoise), var(--accent));
  border-color: transparent;
}

.btn-accent:hover {
  color: #fff;
  background: linear-gradient(135deg, #078c90, #0ea692);
  border-color: transparent;
}

.btn-danger {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: #f1c7cd;
}

.btn-danger:hover {
  color: #8f2634;
  background: #ffe4e8;
  border-color: #e8aeb7;
}

.btn-quiet {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.btn-block {
  width: 100%;
}

.form-foot {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.error-box,
.notice {
  padding: 12px 14px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.error-box {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: #f0c7cd;
}

.notice {
  color: var(--info);
  background: var(--info-bg);
  border-color: #c7e1f0;
}

.notice.warning {
  color: var(--warning);
  background: var(--warning-bg);
  border-color: #efdcae;
}

.pricing-section {
  padding: 20px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h1 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

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

.price-card {
  position: relative;
  display: flex;
  min-height: 318px;
  padding: 24px;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border-color: var(--turquoise);
  box-shadow: 0 16px 40px rgba(14, 165, 168, 0.13);
}

.price-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 111, 161, 0.12), 0 16px 40px rgba(8, 111, 161, 0.12);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  padding: 5px 10px;
  color: #fff;
  background: var(--turquoise);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-name {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
}

.price-value {
  margin: 20px 0 2px;
  color: var(--navy);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 880;
  letter-spacing: -0.045em;
}

.price-period {
  color: var(--muted);
  font-size: 0.85rem;
}

.price-features {
  display: grid;
  margin: 22px 0 26px;
  padding: 0;
  gap: 9px;
  color: var(--muted);
  font-size: 0.86rem;
  list-style: none;
}

.price-features li::before {
  margin-right: 8px;
  color: var(--success);
  content: "✓";
  font-weight: 900;
}

.price-card .btn {
  margin-top: auto;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar);
  padding: 24px 16px 18px;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 10% 0%, rgba(22, 184, 166, 0.22), transparent 15rem),
    linear-gradient(180deg, var(--navy), #071d35);
}

.sidebar .brand {
  margin: 0 10px 28px;
  color: #fff;
}

.sidebar .brand-tagline {
  color: #91b9cc;
}

.nav-section-label {
  margin: 17px 12px 7px;
  color: #7fa5ba;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side-link {
  display: flex;
  min-height: 44px;
  padding: 10px 12px;
  align-items: center;
  gap: 12px;
  color: #bed3df;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.side-link:hover,
.side-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.side-link.active {
  box-shadow: inset 3px 0 var(--accent);
}

.nav-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 850;
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px 10px 0;
  color: #7fa5ba;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
}

.app-area {
  min-height: 100vh;
  margin-left: var(--sidebar);
}

.app-header {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  min-height: 72px;
  padding: 12px clamp(20px, 4vw, 44px);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(244, 248, 251, 0.92);
  border-bottom: 1px solid rgba(216, 229, 236, 0.82);
  backdrop-filter: blur(14px);
}

.mobile-brand {
  display: none;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 11px;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--turquoise));
  border-radius: 12px;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 850;
}

.profile-text {
  display: grid;
  line-height: 1.2;
}

.profile-name {
  max-width: 210px;
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-role {
  color: var(--muted);
  font-size: 0.72rem;
}

.content {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.page-head {
  display: flex;
  margin-bottom: 26px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.page-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-subtitle {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  padding: clamp(25px, 4vw, 42px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 14%, rgba(22, 184, 166, 0.42), transparent 18rem),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-panel h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-panel p {
  max-width: 690px;
  margin: 13px 0 0;
  color: #bfd4e0;
}

.hero-panel .btn {
  min-width: 182px;
}

.stat-grid {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  min-height: 142px;
  padding: 21px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 720;
}

.stat-value {
  display: block;
  margin: 13px 0 4px;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 880;
  letter-spacing: -0.04em;
}

.stat-note {
  color: var(--muted);
  font-size: 0.76rem;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(310px, 0.8fr);
  gap: 20px;
}

.section {
  margin-top: 28px;
}

.section-title-row {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-title {
  margin: 0;
  color: var(--navy);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.card {
  padding: 22px;
}

.technical-details {
  padding: 0;
  overflow: hidden;
}

.technical-summary {
  display: flex;
  padding: 18px 22px;
  color: var(--navy);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 760;
  list-style: none;
}

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

.technical-summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1;
}

.technical-details[open] .technical-summary::after {
  content: "−";
}

.technical-details[open] .technical-summary {
  border-bottom: 1px solid var(--border);
}

.technical-details .detail-list {
  padding: 2px 22px 22px;
}

.card.flush {
  padding: 0;
  overflow: hidden;
}

.card-title {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 1.02rem;
}

.card-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.upload-zone {
  display: grid;
  min-height: 250px;
  padding: 34px;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(14, 165, 168, 0.08), transparent 15rem),
    #fbfdfe;
  border: 2px dashed #bcd4df;
  border-radius: var(--radius);
  transition: border-color 0.16s, background 0.16s;
}

.upload-zone.dragover {
  background: var(--info-bg);
  border-color: var(--turquoise);
}

.upload-symbol {
  display: grid;
  width: 58px;
  height: 58px;
  color: var(--primary);
  background: var(--info-bg);
  border-radius: 18px;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 400;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.selected-file {
  display: grid;
  width: min(100%, 460px);
  margin-top: 10px;
  padding: 12px 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.file-name {
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  color: var(--muted);
  font-size: 0.78rem;
}

.progress-card {
  display: grid;
  padding: 24px;
  gap: 15px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

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

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

progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
}

.step-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.step-item {
  display: flex;
  padding: 9px 0;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  border-bottom: 1px solid #edf2f5;
  font-size: 0.86rem;
}

.step-item:last-child {
  border-bottom: 0;
}

.step-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  background: #b6c5d0;
  border-radius: 50%;
}

.step-item.done {
  color: var(--success);
}

.step-item.done .step-dot {
  background: var(--success);
}

.step-item.current {
  color: var(--primary);
  font-weight: 720;
}

.step-item.current .step-dot {
  background: var(--turquoise);
  box-shadow: 0 0 0 5px rgba(14, 165, 168, 0.13);
}

.status-badge {
  display: inline-flex;
  min-height: 28px;
  padding: 5px 10px;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-success {
  color: var(--success);
  background: var(--success-bg);
  border-color: #bde5d6;
}

.status-warning {
  color: var(--warning);
  background: var(--warning-bg);
  border-color: #ecd9ab;
}

.status-danger {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: #f0c6cd;
}

.status-info {
  color: var(--info);
  background: var(--info-bg);
  border-color: #c8e0ef;
}

.status-neutral {
  color: var(--incomplete);
  background: #eef2f5;
  border-color: #d9e1e7;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e8eff3;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  background: #f8fbfc;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.data-table td {
  font-size: 0.85rem;
}

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

.data-table tbody tr:hover {
  background: #fbfdfe;
}

.cell-main {
  display: block;
  max-width: 420px;
  overflow: hidden;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-sub {
  display: block;
  max-width: 420px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  display: grid;
  min-height: 230px;
  padding: 30px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.empty-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  color: var(--primary);
  background: var(--info-bg);
  border-radius: 15px;
  place-items: center;
  font-weight: 850;
}

.loading-block {
  display: grid;
  min-height: 180px;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.detail-list {
  display: grid;
  margin: 0;
  gap: 0;
}

.detail-row {
  display: grid;
  padding: 12px 0;
  grid-template-columns: minmax(130px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid #edf2f5;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row dt {
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 680;
}

.detail-row dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.report-sheet {
  display: grid;
  gap: 20px;
}

.report-verdict {
  display: grid;
  padding: clamp(24px, 4vw, 38px);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 6px solid var(--incomplete);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.report-verdict.success { border-left-color: var(--success); }
.report-verdict.warning { border-left-color: var(--warning); }
.report-verdict.danger { border-left-color: var(--danger); }
.report-verdict.info { border-left-color: var(--info); }

.verdict-symbol {
  display: grid;
  width: 62px;
  height: 62px;
  color: var(--incomplete);
  background: #eef2f5;
  border-radius: 20px;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 850;
}

.report-verdict.success .verdict-symbol {
  color: var(--success);
  background: var(--success-bg);
}

.report-verdict.warning .verdict-symbol {
  color: var(--warning);
  background: var(--warning-bg);
}

.report-verdict.danger .verdict-symbol {
  color: var(--danger);
  background: var(--danger-bg);
}

.report-verdict.info .verdict-symbol {
  color: var(--info);
  background: var(--info-bg);
}

.verdict-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.verdict-title {
  margin: 4px 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.verdict-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.confidence {
  min-width: 110px;
  text-align: right;
}

.confidence strong {
  display: block;
  color: var(--navy);
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

.confidence span {
  color: var(--muted);
  font-size: 0.72rem;
}

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

.evidence-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
}

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

.evidence-name {
  margin: 0;
  color: var(--navy);
  font-size: 0.94rem;
}

.evidence-url {
  display: inline-block;
  max-width: 100%;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.finding-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.finding-list li {
  position: relative;
  padding-left: 19px;
  color: var(--text);
  font-size: 0.86rem;
}

.finding-list li::before {
  position: absolute;
  top: 0.48em;
  left: 2px;
  width: 7px;
  height: 7px;
  background: var(--turquoise);
  border-radius: 50%;
  content: "";
}

.finding-list.danger li::before {
  background: var(--danger);
}

.report-footnote {
  padding: 17px 19px;
  color: var(--muted);
  background: #f8fbfc;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.78rem;
}

.payment-order {
  display: grid;
  gap: 15px;
}

.requisites {
  padding: 18px;
  color: var(--navy);
  background: var(--surface-soft);
  border: 1px solid #cee4e7;
  border-radius: 12px;
  white-space: pre-wrap;
}

.source-card {
  display: grid;
  min-height: 156px;
  padding: 19px;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-quick-grid {
  display: grid;
  margin-top: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.admin-quick-link {
  display: flex;
  min-height: 82px;
  padding: 13px 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.admin-quick-link:hover {
  color: var(--primary);
  background: var(--info-bg);
  border-color: #bedcea;
}

.admin-quick-link .nav-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--turquoise));
}

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

.source-name {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.source-metrics {
  display: flex;
  color: var(--muted);
  gap: 18px;
  font-size: 0.78rem;
}

.source-metrics strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 0.9rem;
}

.tabs {
  display: flex;
  margin-bottom: 18px;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.modal {
  width: min(620px, calc(100% - 28px));
  max-height: min(86vh, 760px);
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  overflow: visible;
}

.modal::backdrop {
  background: rgba(5, 22, 40, 0.64);
  backdrop-filter: blur(4px);
}

.modal-card {
  max-height: min(86vh, 760px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 26px 80px rgba(5, 22, 40, 0.34);
}

.modal-head {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  padding: 18px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.modal-body {
  padding: 22px;
}

.audit-detail {
  max-width: 340px;
  max-height: 100px;
  margin: 0;
  overflow: auto;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

.filter-row > .field {
  min-width: min(100%, 260px);
}

.filter-row > .field:first-child {
  flex: 1 1 360px;
}

.tab {
  padding: 10px 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 0.87rem;
  font-weight: 720;
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--turquoise);
}

.mobile-nav {
  display: none;
}

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

.toast {
  padding: 14px 16px;
  color: #fff;
  background: var(--navy);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-size: 0.87rem;
  pointer-events: auto;
  animation: toast-in 0.2s ease-out;
}

.toast.error {
  background: #912c3a;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78em;
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

@media (max-width: 900px) {
  :root {
    --sidebar: 220px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .auth-intro {
    text-align: center;
    justify-self: center;
  }

  .trust-list {
    text-align: left;
  }

  .auth-card {
    width: min(100%, 560px);
    justify-self: center;
  }

  .profile-text {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 72px;
  }

  .public-header {
    min-height: 64px;
    padding: 10px 16px;
  }

  .public-nav .nav-link {
    display: none;
  }

  .brand-tagline {
    display: none;
  }

  .public-main {
    width: min(100% - 28px, 620px);
    padding-top: 34px;
  }

  .trust-list,
  .pricing-grid,
  .grid-2,
  .grid-3,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .trust-list {
    gap: 8px;
  }

  .trust-item {
    min-height: auto;
  }

  .sidebar {
    display: none;
  }

  .app-area {
    margin-left: 0;
  }

  .app-header {
    min-height: 64px;
    padding: 10px 15px;
  }

  .mobile-brand {
    display: inline-flex;
  }

  .breadcrumb {
    display: none;
  }

  .content {
    width: min(100% - 28px, 680px);
    padding: 24px 0 34px;
  }

  .page-head {
    display: grid;
  }

  .page-head > .button-row {
    width: 100%;
  }

  .page-head > .button-row .btn {
    flex: 1;
  }

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

  .hero-panel .btn {
    width: 100%;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    min-height: 124px;
    padding: 17px;
  }

  .card {
    padding: 17px;
  }

  .upload-zone {
    min-height: 230px;
    padding: 24px 16px;
  }

  .report-verdict {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .confidence {
    grid-column: 1 / -1;
    padding-top: 12px;
    text-align: left;
    border-top: 1px solid var(--border);
  }

  .confidence strong,
  .confidence span {
    display: inline;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 40;
    inset: auto 0 0;
    display: grid;
    height: 68px;
    padding: 7px 8px max(7px, env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(11, 37, 69, 0.07);
    backdrop-filter: blur(14px);
  }

  .mobile-link {
    display: grid;
    padding: 3px;
    place-items: center;
    align-content: center;
    gap: 2px;
    color: var(--muted);
    border-radius: 8px;
    font-size: 0.63rem;
    font-weight: 720;
    text-decoration: none;
  }

  .mobile-link.active {
    color: var(--primary);
    background: var(--info-bg);
  }

  .mobile-link .nav-icon {
    width: 24px;
    height: 24px;
    background: transparent;
  }

  .inline-actions,
  .filter-row {
    flex-wrap: wrap;
  }

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

  .toast-region {
    right: 14px;
    bottom: 82px;
    width: calc(100% - 28px);
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.08rem;
  }

  .language-select {
    min-width: 72px;
  }

  .auth-card {
    padding: 23px 18px;
  }

  .hero-title {
    font-size: 2.35rem;
  }

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

  .report-verdict {
    padding: 20px;
  }

  .verdict-symbol {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .button-row {
    width: 100%;
    flex-wrap: wrap;
  }

  .button-row .btn {
    flex: 1;
  }
}

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

@media print {
  @page {
    size: A4;
    margin: 15mm;
  }

  body {
    padding: 0;
    color: #111;
    background: #fff;
    font-size: 10pt;
  }

  .sidebar,
  .app-header,
  .mobile-nav,
  .no-print,
  .toast-region,
  .skip-link {
    display: none !important;
  }

  .app-area {
    margin: 0;
  }

  .content {
    width: 100%;
    padding: 0;
  }

  .report-sheet {
    gap: 12px;
  }

  .report-verdict,
  .card,
  .evidence-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .report-verdict {
    padding: 18px;
    border: 2px solid #222;
  }

  .card,
  .evidence-card {
    padding: 14px;
    border-color: #aaa;
  }

  a {
    color: #111;
    text-decoration: none;
  }

  .status-badge {
    color: #111 !important;
    background: #fff !important;
    border-color: #777 !important;
  }
}
