:root {
  --background: #0a0815;
  --red: #d90024;
  --blue: #003c91;
  --yellow: #f7cc28;
  --light: #f8f7fc;
  --muted: #b8b4c9;
  --surface: #171322;
  --border: #393247;
  --focus: #f7cc28;
  --text: #f8f7fc;
  --success: #a3e9c1;
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
a,
button {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.4rem);
}
h3 {
  font-size: 1.2rem;
}
p {
  color: var(--muted);
}
.wrap {
  width: min(1200px, calc(100% - 64px));
  margin: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  object-fit: contain;
  border-radius: 50%;
  background: white;
}
.brand > span {
  font-size: 1.8rem;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0.01em;
}
.brand small {
  display: block;
  font-size: 0.59rem;
  letter-spacing: 0.33em;
  margin-top: 7px;
  color: var(--muted);
}
.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}
.navigation nav {
  display: flex;
  align-items: center;
  gap: 25px;
}
.navigation a {
  font-size: 0.88rem;
  color: #dedbe7;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.navigation a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 7px;
}
.header-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  font-size: 0.88rem;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: inherit;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--red);
  color: white;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  min-height: 50px;
}
.button:hover {
  filter: brightness(1.1);
}
.button.secondary {
  background: transparent;
  border-color: var(--border);
  color: inherit;
}
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #51455e;
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #e5dfee;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 45%, #570923 0, transparent 46%),
    radial-gradient(ellipse at 10% 100%, #06214a, transparent 42%);
  padding-bottom: 64px;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 68px 0 75px;
  max-width: 840px;
}
.hero h1 {
  margin-top: 30px;
  margin-bottom: 28px;
  max-width: 860px;
}
.hero h1 span {
  color: #ff3450;
}
.hero .lede {
  max-width: 590px;
  font-size: 1.2rem;
  color: #cbc5d8;
}
.hero-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-caption {
  font-size: 0.75rem;
  max-width: 580px;
  margin-top: 25px;
}
.ribbons {
  position: absolute;
  inset: 230px -150px -80px 45%;
  opacity: 0.75;
  pointer-events: none;
  transform: rotate(-20deg);
}
.ribbons i {
  display: block;
  position: absolute;
  width: 100%;
  height: 135px;
  border-radius: 50%;
  box-shadow: 0 -8px 45px #0005;
}
.ribbons i:nth-child(1) {
  background: linear-gradient(180deg, #003c91, #0b0c28);
  top: 165px;
  transform: rotate(-13deg);
}
.ribbons i:nth-child(2) {
  background: linear-gradient(180deg, #f7cc28, #955505);
  top: 245px;
  transform: rotate(-9deg);
}
.ribbons i:nth-child(3) {
  background: linear-gradient(180deg, #d90024, #180713);
  top: 325px;
  transform: rotate(-4deg);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
}
.feature-card {
  background: linear-gradient(140deg, #291a2dd9, #170f20ed);
  border: 1px solid #4c3046;
  border-radius: 22px;
  padding: 26px;
  min-height: 165px;
}
.feature-card svg {
  color: #f5cf6c;
  margin-bottom: 20px;
}
.feature-card h2 {
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
}
.feature-card p {
  font-size: 0.8rem;
  margin-bottom: 0;
}
.light-section {
  background: var(--light);
  color: #141020;
  border-radius: 40px 40px 0 0;
  padding: 64px 0 72px;
  color-scheme: light;
  --muted: #605b70;
  --border: #d1cbdc;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.editorial-card {
  border: 1px solid #ded8e7;
  background: white;
  border-radius: 24px;
  padding: 32px;
}
.editorial-card.red {
  background: linear-gradient(130deg, #c60026, #3c0a27);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: end;
}
.editorial-card.red p {
  color: #eed9e3;
}
.editorial-card.red:after {
  content: '';
  position: absolute;
  right: -10px;
  top: 18px;
  width: 220px;
  height: 180px;
  border: 1px solid #ffffff2b;
  transform: rotate(-25deg);
  border-radius: 25px;
  pointer-events: none;
}
.editorial-card h3 {
  font-size: 1.6rem;
  max-width: 400px;
}
.editorial-card .button {
  margin-top: 16px;
}
.mini-link {
  padding: 20px 0;
  border-bottom: 1px solid #e4dfeb;
  display: block;
}
.mini-link:last-child {
  border: 0;
}
.mini-link strong {
  display: block;
}
.mini-link small {
  color: #605b70;
}
.public-footer {
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.85rem;
}
.public-footer p {
  font-size: 0.75rem;
  margin: 24px 0 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: var(--yellow);
  color: #111;
  padding: 10px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 258px;
  background: #100d1b;
  border-right: 1px solid var(--border);
  padding: 32px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  margin-bottom: 55px;
}
.sidebar .eyebrow {
  padding-left: 12px;
}
.sidebar .navigation nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.sidebar nav a {
  border-radius: 10px;
  padding: 12px;
  color: #cbc5d8;
}
.sidebar nav a:hover {
  background: #292035;
}
.sidebar-note {
  margin-top: auto;
  padding: 24px 12px 0;
  border-top: 1px solid var(--border);
  color: #d3cadd;
}
.sidebar-note p {
  font-size: 0.76rem;
  margin: 10px 0;
}
.workspace-body {
  min-width: 0;
  flex: 1;
  background: radial-gradient(ellipse at 100% 0, #301126 0, transparent 45%);
}
.workspace-top {
  padding: 25px 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 0.82rem;
  color: #c3bed0;
}
.workspace-content {
  max-width: 1400px;
  margin: auto;
  padding: 46px 40px 70px;
}
.page-heading {
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  margin-bottom: 16px;
}
.lede {
  max-width: 750px;
  font-size: 1.05rem;
}
.notice {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid #695434;
  background: #30251c;
  border-radius: 14px;
  margin-bottom: 30px;
  color: #f7d299;
}
.notice svg {
  flex-shrink: 0;
  margin-top: 3px;
}
.notice p {
  color: #ecdbc2;
  margin: 0;
  font-size: 0.83rem;
}
.notice strong {
  display: block;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  min-width: 0;
}
.card h2 {
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.card p:last-child {
  margin-bottom: 0;
}
.stat-number {
  font-size: 2.3rem;
  line-height: 1.2;
  font-weight: 800;
  display: block;
  margin: 10px 0;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
}
.two-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.list-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row strong,
.list-row small {
  display: block;
}
.list-row small {
  color: var(--muted);
  margin-top: 5px;
}
.list-row a {
  color: #f7cf7e;
}
.filter-bar {
  display: flex;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
}
.filter-bar label {
  font-size: 0.8rem;
  font-weight: 700;
}
.search-label {
  flex: 1;
  min-width: 180px;
}
.search-input {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #61596d;
  border-radius: 10px;
  padding: 0 14px;
  margin-top: 8px;
  background: #0d0a15;
}
.search-input input {
  border: 0;
  background: transparent;
  color: inherit;
  width: 100%;
  min-width: 0;
  padding: 12px 0;
}
.filter-bar select {
  display: block;
  color: inherit;
  background: #0d0a15;
  border: 1px solid #61596d;
  border-radius: 10px;
  padding: 12px;
  margin-top: 8px;
}
.result-count {
  font-size: 0.78rem;
  margin: 20px 0 12px;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  border-radius: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.85rem;
}
th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: #211a2d;
}
th,
td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.status {
  display: inline-block;
  border-radius: 30px;
  background: #382b1b;
  color: #f2d194;
  padding: 4px 10px;
  font-size: 0.72rem;
  white-space: nowrap;
}
.status.positive {
  background: #13342b;
  color: #b7f0d3;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.8rem;
}
.pagination span {
  margin-right: auto;
}
.pagination button {
  background: #241c30;
  color: inherit;
  border: 1px solid #61596d;
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 44px;
}
.empty {
  padding: 30px 0;
  text-align: center;
}
.workspace-footer {
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}
.public-page {
  min-height: 65vh;
  padding: 60px 0 80px;
}
.public-page .card {
  margin-bottom: 20px;
}
.locked {
  padding: 60px 0;
}
.locked .brand {
  margin-bottom: 60px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
}
.avatar {
  height: 100px;
  width: 100px;
  background: linear-gradient(135deg, #87203e, #2d245b);
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: bold;
}
.details-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.details-list dt {
  color: var(--muted);
  font-size: 0.78rem;
}
.details-list dd {
  margin: 6px 0 0;
  font-weight: 700;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1600px) {
  .hero-content {
    padding-top: 95px;
    padding-bottom: 100px;
  }
  .wrap {
    width: min(1320px, calc(100% - 100px));
  }
}
@media (max-width: 1100px) {
  .public-header .navigation nav {
    gap: 15px;
  }
  .public-header .header-cta {
    display: none;
  }
  .sidebar {
    width: 220px;
  }
  .workspace-content {
    padding: 32px 24px;
  }
  .workspace-top {
    padding: 22px 24px;
  }
  .feature-card {
    padding: 20px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .public-header {
    padding: 20px 0;
  }
  .brand img {
    width: 45px;
    height: 45px;
  }
  .brand > span {
    font-size: 1.5rem;
  }
  .public-header .navigation {
    margin-left: auto;
  }
  .menu-toggle {
    display: flex;
  }
  .navigation nav {
    display: none;
  }
  .public-header nav.is-open {
    display: flex;
    position: absolute;
    top: 88px;
    left: 20px;
    right: 20px;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    background: #1a1224;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 16px 24px;
    gap: 0;
  }
  .hero-content {
    padding: 42px 0 55px;
  }
  .hero h1 {
    font-size: clamp(2.3rem, 9.5vw, 3.6rem);
    margin-top: 25px;
  }
  .hero .lede {
    font-size: 1rem;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-actions .button {
    width: 100%;
    justify-content: space-between;
  }
  .hero-caption {
    font-size: 0.7rem;
  }
  .ribbons {
    inset: 270px -150px -90px 25%;
    opacity: 0.4;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .feature-card {
    padding: 20px 16px;
    min-height: 145px;
  }
  .feature-card svg {
    margin-bottom: 16px;
  }
  .feature-card h2 {
    font-size: 0.95rem;
  }
  .hero {
    padding-bottom: 40px;
  }
  .light-section {
    padding: 40px 0 48px;
    border-radius: 28px 28px 0 0;
  }
  .section-heading {
    display: block;
  }
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .editorial-card {
    padding: 26px;
  }
  .footer-inner {
    align-items: start;
    flex-direction: column;
  }
  .footer-links {
    gap: 15px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
  }
  .sidebar .brand {
    margin: 0;
  }
  .sidebar .eyebrow,
  .sidebar-note {
    display: none;
  }
  .sidebar .navigation nav {
    display: none;
  }
  .sidebar .navigation nav.is-open {
    display: flex;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 82px;
    z-index: 20;
    padding: 14px;
    background: #1a1224;
    border: 1px solid var(--border);
    box-shadow: 0 15px 30px #0006;
    border-radius: 16px;
  }
  .workspace-top {
    padding: 16px 20px;
    font-size: 0.72rem;
  }
  .workspace-top .badge {
    font-size: 0.6rem;
    white-space: nowrap;
  }
  .workspace-content {
    padding: 30px 20px 44px;
  }
  .page-heading h1 {
    font-size: 2rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stats-grid .card {
    padding: 18px 22px;
  }
  .stat-number {
    font-size: 1.9rem;
  }
  .two-columns {
    gap: 16px;
  }
  .card {
    padding: 20px;
  }
  .notice {
    padding: 15px;
  }
  .workspace-footer {
    padding: 20px;
  }
  .public-page {
    padding-top: 35px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .details-list {
    grid-template-columns: 1fr;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .table-card {
    padding: 16px;
  }
  .filter-bar {
    gap: 12px;
  }
  .filter-bar > label {
    width: 100%;
  }
  .filter-bar select {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.security-card {
  margin-top: 24px;
}
.light-section {
  --focus: #003c91;
  --text: #141020;
}

.auth-panel {
  max-width: 680px;
}
.auth-panel form {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.auth-panel input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #726a80;
  border-radius: 10px;
  background: #fff;
  color: #171021;
}
.auth-panel label {
  font-weight: 700;
}
.auth-panel details {
  min-width: 0;
  padding: 12px;
  border: 1px solid #726a80;
  border-radius: 10px;
}
.auth-panel summary {
  cursor: pointer;
}
.auth-panel summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.auth-panel > .button {
  margin-top: 16px;
}

.permissions-scroll {
  overflow-x: auto;
  max-width: 100%;
  border-radius: 12px;
}
.permissions-scroll:focus-visible {
  outline: 3px solid var(--yellow, #f7cc28);
  outline-offset: 3px;
}
.permissions-scroll caption {
  text-align: left;
  padding: 12px;
}
.permissions-scroll tbody th {
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  font-weight: 600;
}
.permissions-panel .permissions-purpose {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
}
.auth-panel .permissions-purpose input {
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  margin: 0;
}
