﻿:root {
  --bg-0: #eaf2f7;
  --bg-1: #d3e4ef;
  --bg-2: #c5dbe8;
  --ink: #0b2f40;
  --ink-soft: #4b6778;
  --rail-a: #0d4157;
  --rail-b: #0a3142;
  --accent-a: #2f97ad;
  --accent-b: #1d5f7c;
  --surface-card: rgba(255, 255, 255, .96);
  --surface-card-strong: rgba(248, 252, 254, .99);
  --surface-card-muted: rgba(244, 249, 252, .94);
  --surface-border: rgba(255, 255, 255, .75);
  --surface-shadow: 0 18px 30px rgba(11, 47, 64, .14);
  --surface-text: var(--ink);
  --surface-text-soft: var(--ink-soft);
  --surface-elevated: rgba(255, 255, 255, .92);
  --surface-hairline: rgba(11, 47, 64, .09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 85% 10%, rgba(255,255,255,.7), transparent 35%), linear-gradient(135deg, var(--bg-0) 0%, var(--bg-1) 55%, var(--bg-2) 100%);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 35, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 18;
}

body.sidebar-open .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.left-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 82px;
  background: linear-gradient(180deg, var(--rail-a), var(--rail-b));
  border-right: 1px solid rgba(255,255,255,.2);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 12px 10px 18px;
  z-index: 20;
  transition: width .34s cubic-bezier(.22,.74,.2,1), box-shadow .25s ease, transform .26s ease, opacity .22s ease;
  overflow: hidden;
  box-shadow: 10px 0 28px rgba(8, 33, 45, .3);
  will-change: width, transform;
}

.left-rail.settings-popout-open {
  overflow: visible;
  z-index: 28;
}

.left-rail.expanded {
  width: 260px;
}

.rail-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.rail-brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  box-shadow: 0 10px 22px rgba(4, 18, 25, .22);
  display: grid;
  place-items: center;
  flex: 0 0 50px;
}

.rail-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rail-toggle {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.24);
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  cursor: pointer;
  margin: 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease, width .25s ease;
}

.rail-toggle:hover {
  transform: translateY(-1px);
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.1));
}

.rail-toggle:active {
  transform: scale(.98);
}

.rail-toggle[aria-expanded="true"] {
  width: 100%;
  justify-content: flex-start;
  background: linear-gradient(145deg, rgba(215,244,255,.36), rgba(160,220,240,.18));
  border-color: rgba(193, 236, 249, .58);
  box-shadow: 0 8px 18px rgba(8, 36, 49, .3);
}

.rail-toggle-icon {
  position: relative;
  width: 18px;
  height: 14px;
  flex: 0 0 18px;
}

.rail-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #f4fbff;
  transition: transform .22s ease, top .22s ease, opacity .18s ease;
}

.rail-toggle-icon span:nth-child(1) {
  top: 0;
}

.rail-toggle-icon span:nth-child(2) {
  top: 6px;
}

.rail-toggle-icon span:nth-child(3) {
  top: 12px;
}

.rail-toggle[aria-expanded="true"] .rail-toggle-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.rail-toggle[aria-expanded="true"] .rail-toggle-icon span:nth-child(2) {
  opacity: 0;
  transform: translateX(-6px);
}

.rail-toggle[aria-expanded="true"] .rail-toggle-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.rail-toggle-label {
  display: inline-flex;
  align-items: center;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(-6px);
  color: #f4fbff;
  font-size: .86rem;
  font-weight: 800;
  transition: max-width .25s ease, opacity .2s ease, transform .2s ease;
}

.rail-toggle[aria-expanded="true"] .rail-toggle-label {
  max-width: 92px;
  opacity: 1;
  transform: translateX(0);
}

.menu-nav {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}

.left-rail.admin-mode .menu-nav {
  margin-top: 24px;
  padding-top: 16px;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.menu-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-height: 0;
}

.left-rail.admin-mode .menu-list {
  gap: 8px;
  padding-bottom: 12px;
}

.rail-footer {
  margin-top: auto;
  padding-top: 14px;
  display: grid;
  gap: 12px;
}

.rail-settings-dock {
  position: relative;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(5, 21, 29, .34);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 32px rgba(1, 12, 18, .12);
  overflow: visible;
}

.rail-settings-dock > summary {
  list-style: none;
}

.rail-settings-dock > summary::-webkit-details-marker {
  display: none;
}

.rail-settings-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f4fbff;
  cursor: pointer;
  padding: 14px 12px;
}

.rail-settings-head-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #eefbff;
  flex: 0 0 32px;
  font-size: 1rem;
  line-height: 1;
}

.rail-settings-head-chevron {
  margin-left: auto;
  color: rgba(234, 247, 251, .74);
  font-size: 1rem;
  line-height: 1;
  transition: transform .2s ease;
}

.rail-settings-dock[open] .rail-settings-head-chevron {
  transform: rotate(180deg);
}

.rail-settings-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.rail-settings-copy strong {
  color: #f4fbff;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.1;
}

.rail-settings-copy small {
  color: rgba(218, 240, 248, .72);
  font-size: .72rem;
  line-height: 1.3;
}

.rail-settings-panel {
  display: grid;
  gap: 12px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-12px) translateY(8px) scale(.97);
  transform-origin: left bottom;
  transition:
    max-height .3s cubic-bezier(.2,.8,.2,1),
    opacity .2s ease,
    transform .3s cubic-bezier(.2,.8,.2,1),
    box-shadow .2s ease,
    border-color .2s ease,
    background-color .2s ease,
    visibility 0s linear .3s;
  will-change: transform, opacity, max-height;
}

.rail-settings-dock[open] .rail-settings-panel {
  max-height: 60vh;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) translateY(0) scale(1);
  transition:
    max-height .3s cubic-bezier(.2,.8,.2,1),
    opacity .2s ease,
    transform .3s cubic-bezier(.2,.8,.2,1),
    box-shadow .2s ease,
    border-color .2s ease,
    background-color .2s ease,
    visibility 0s linear 0s;
}

.rail-settings-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: space-between;
}

.rail-settings-close {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  color: #eefbff;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.rail-settings-close:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}

.rail-settings-stack {
  display: grid;
  gap: 12px;
}

.rail-settings-group {
  display: grid;
  gap: 8px;
}

.rail-settings-caption {
  color: rgba(221,244,251,.7);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rail-settings-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.rail-settings-divider {
  width: 100%;
  height: 1px;
  background: rgba(215, 238, 245, .12);
}

.rail-settings-dock .login-toggle-chip span {
  min-height: 38px;
  padding: 0 12px;
  font-size: .84rem;
}

.rail-settings-dock .login-language-mark {
  width: 32px;
  height: 32px;
}

.rail-settings-dock .login-language-mark svg {
  width: 18px;
  height: 18px;
}

.left-rail:not(.expanded) .rail-settings-head {
  justify-content: center;
  padding-inline: 10px;
}

.left-rail:not(.expanded) .rail-settings-copy,
.left-rail:not(.expanded) .rail-settings-head-chevron {
  display: none;
}

.left-rail:not(.expanded) .rail-settings-head-mark {
  margin: 0;
}

.left-rail.expanded .rail-settings-dock[open] .rail-settings-panel {
  padding: 0 12px 14px;
}

.left-rail:not(.expanded).settings-popout-open .rail-settings-dock[open] {
  overflow: visible;
}

.left-rail:not(.expanded).settings-popout-open .rail-settings-dock[open] .rail-settings-panel {
  position: absolute;
  left: calc(100% + 14px);
  right: auto;
  bottom: 18px;
  width: min(320px, calc(100vw - 110px));
  max-height: calc(100vh - 32px);
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(8, 28, 39, .96), rgba(4, 18, 25, .94));
  box-shadow: 0 24px 46px rgba(4, 20, 28, .34);
  backdrop-filter: blur(18px);
  overflow: auto;
  scrollbar-gutter: stable;
  z-index: 24;
}

.left-rail:not(.expanded).settings-popout-open .rail-settings-dock[open] .rail-settings-panel .rail-settings-stack {
  padding: 0;
}

.selector-active {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 0;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(225,242,250,.78));
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: 0 8px 20px rgba(7, 38, 52, .22), inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  transition: top .3s cubic-bezier(.2,.8,.2,1), height .3s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
  pointer-events: none;
  z-index: 0;
}

.selector-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(17, 88, 114, .16);
}

.selector-active .top,
.selector-active .bottom {
  display: none;
}

.menu-list li {
  position: relative;
  z-index: 1;
  width: 100%;
}

.menu-link {
  text-decoration: none;
  color: rgba(241, 251, 255, .88);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  min-height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  transition: color .25s ease, background .25s ease;
}

.menu-logout-form {
  margin: 0;
  width: 100%;
}

.menu-link-button {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.left-rail.admin-mode .menu-link {
  min-height: 48px;
  gap: 10px;
  padding: 0 10px;
  border-radius: 11px;
}

.menu-list li.active .menu-link {
  color: #10384b;
  background: transparent;
  border-color: transparent;
  font-weight: 700;
}

.menu-link:hover {
  background: rgba(255,255,255,.14);
}

.menu-icon {
  width: 30px;
  height: 30px;
  text-align: center;
  font-size: 18px;
  line-height: 30px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  flex: 0 0 30px;
}

.left-rail.admin-mode .menu-icon {
  width: 26px;
  height: 26px;
  line-height: 26px;
  font-size: 16px;
  flex-basis: 26px;
}

.menu-text {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-8px);
  transition: max-width .25s ease, opacity .2s ease, transform .2s ease;
  font-weight: 700;
  font-size: 1rem;
}

.left-rail.admin-mode .menu-text {
  font-size: .94rem;
}

.left-rail.expanded .menu-text {
  max-width: 160px;
  opacity: 1;
  transform: translateX(0);
}

.menu-badge {
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: #eb4d63;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(210, 52, 72, .32);
}

.menu-badge-form {
  background: linear-gradient(135deg, #2f97ad, #1d5f7c);
  box-shadow: 0 6px 14px rgba(33, 100, 127, .32);
}

.menu-badge-message {
  background: #ef5a63;
}

#overview,
#users,
#companies,
#subscriptions,
#forms,
#form-analysis,
#assignments,
#messages,
#faq {
  scroll-margin-top: 20px;
}

.page {
  margin-left: 82px;
  min-height: 100vh;
  padding: 28px clamp(16px,3vw,48px);
  transition: margin-left .34s cubic-bezier(.22,.74,.2,1);
}

.left-rail.expanded ~ .page {
  margin-left: 260px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.topbar-actions-only {
  justify-content: flex-end;
  margin-bottom: 10px;
}

.eyebrow {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #5f7b8a;
  font-weight: 700;
}

.topbar h1 {
  margin: 4px 0 0;
  font-size: clamp(1.4rem,2.4vw,2.4rem);
  font-weight: 800;
}

.topbar-right {
  display: flex;
  gap: 10px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid rgba(13,45,58,.12);
  background: rgba(255,255,255,.58);
  color: var(--ink);
  border-radius: 13px;
  padding: 10px 15px;
  font-weight: 700;
}

.main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  color: #ecfdff;
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(47, 151, 173, .22);
  text-decoration: none;
}

.main-btn:hover {
  filter: brightness(1.05);
}

.main-btn:disabled {
  cursor: not-allowed;
  opacity: .58;
  box-shadow: none;
}

.template-stage {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}

.template-shell {
  position: relative;
  width: min(1200px, 95vw);
  min-height: 470px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 48px rgba(11, 47, 64, .2);
  background: #ffffff;
}

.login-shell {
  padding: 18px;
  background: linear-gradient(135deg, rgba(17, 86, 109, .96), rgba(11, 56, 74, .98)), url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(34, 111, 136, .32), rgba(8, 49, 66, .16));
  pointer-events: none;
}

.login-shell-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 390px);
  gap: 22px;
  align-items: stretch;
  min-height: 434px;
}

.login-hero-pane {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  min-width: 0;
  min-height: 434px;
}

.back-panels {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 210px;
  border-radius: 20px;
  overflow: hidden;
}

.login-panels {
  background: transparent;
}

.info-panel {
  color: #f4fdff;
  padding: 28px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
}

.info-panel h2 { margin: 0; font-size: 2rem; }
.info-panel p { margin: 0; max-width: 26ch; line-height: 1.6; color: #d7eff8; }

.switch-btn {
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  color: #f4fdff;
  border-radius: 12px;
  padding: 10px 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.switch-btn:hover { background: rgba(255,255,255,.16); }
.switch-btn.is-active {
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.58);
}

.form-slider {
  position: absolute;
  left: 28px;
  top: 50%;
  width: min(390px, calc(100% - 56px));
  min-height: 0;
  border-radius: 20px;
  transform: translateY(-50%);
  transition: transform .35s ease, left .35s ease, width .35s ease;
  z-index: 3;
}

.form-slider.is-yonetici {
  left: 50%;
  transform: translate(-50%, -50%);
}

.form-surface {
  min-height: 0;
  background: linear-gradient(150deg, rgba(255,255,255,.18), rgba(238,246,250,.1));
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  box-shadow: 0 18px 30px rgba(7, 34, 47, .16);
  padding: 24px;
  text-align: left;
  backdrop-filter: blur(10px);
}

.role-badge {
  margin: 0;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #537182;
}

.form-surface h3 { margin: 8px 0 16px; font-size: 2rem; color: var(--ink); }

.login-support-note {
  margin: 0 0 16px;
  color: #5c7888;
  line-height: 1.5;
  font-size: .92rem;
}

.role-access-surface {
  color: #effbff;
}

.role-access-surface .role-badge {
  color: rgba(215, 241, 248, .84);
}

.role-access-surface h3 {
  color: #ffffff;
}

.role-access-surface label {
  color: rgba(227, 244, 249, .9);
}

.role-access-surface input {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  color: #f4fcff;
}

.role-access-surface input::placeholder {
  color: rgba(223, 238, 244, .66);
}

.role-access-surface input:focus {
  outline: 2px solid rgba(148, 224, 243, .24);
}

.support-access-card {
  border-radius: 20px;
  padding: 18px 18px 20px;
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,251,.96));
  border: 1px solid rgba(223,232,238,.92);
  box-shadow: 0 18px 34px rgba(8, 36, 49, .2);
  align-self: center;
  min-height: 0;
}

.support-access-copy h3 {
  margin: 8px 0 10px;
  font-size: 2rem;
  color: #11384a;
}

.support-access-copy p:not(.role-badge) {
  margin: 0;
  color: #567282;
  line-height: 1.6;
}

.support-access-card .role-badge {
  color: #6a8190;
}

.support-access-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-access-form label {
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 600;
}

.support-access-form input {
  width: 100%;
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 11px;
  background: rgba(255,255,255,.92);
  padding: 12px;
  font-size: .96rem;
  color: #123848;
}

.support-access-form input:focus {
  outline: 2px solid rgba(47,151,173,.25);
  border-color: transparent;
}

.form-surface label {
  display: block;
  margin: 8px 0 6px;
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 600;
}

.form-surface input {
  width: 100%;
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 11px;
  background: rgba(255,255,255,.88);
  padding: 12px;
  font-size: .96rem;
  color: #123848;
}

.form-surface input:focus {
  outline: 2px solid rgba(47,151,173,.25);
  border-color: transparent;
}

.login-btn {
  width: 100%;
  margin-top: 16px;
  border: none;
  border-radius: 12px;
  padding: 13px 14px;
  color: #ecfdff;
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  cursor: pointer;
}

.login-btn:hover { filter: brightness(1.05); }

.form-surface.slide-right { animation: contentSlideRight .46s ease; }
.form-surface.slide-left { animation: contentSlideLeft .46s ease; }

@keyframes contentSlideRight {
  0% { opacity: 0; transform: translateX(-18px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes contentSlideLeft {
  0% { opacity: 0; transform: translateX(18px); }
  100% { opacity: 1; transform: translateX(0); }
}

@media (max-width: 980px) {
  .template-shell { min-height: 0; }
  .login-shell-grid { grid-template-columns: 1fr; }
  .login-hero-pane {
    gap: 14px;
    min-height: 0;
    padding-top: 0;
  }
  .back-panels {
    position: relative;
    inset: auto;
    min-height: 0;
  }
  .info-panel { padding: 18px 8px 8px; }
  .support-access-card { align-self: stretch; }
  .form-slider,
  .form-slider.is-yonetici {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: none;
  }
}

@media (max-width: 860px) {
  .left-rail {
    width: 66px;
    transform: translateX(-8px);
  }

  .left-rail.expanded {
    width: 220px;
    transform: translateX(0);
  }

  .page { margin-left: 66px; }
  body.page-login .page { margin-left: 66px; }
  .left-rail.expanded ~ .page { margin-left: 220px; }

  body.sidebar-open { overflow: hidden; }

  .login-shell {
    padding: 14px;
  }

  .back-panels {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .info-panel h2 {
    font-size: 1.65rem;
  }
}

@media (max-width: 760px) {
  .topbar-right { width: 100%; flex-wrap: wrap; }
  .form-surface h3 { font-size: 1.65rem; }
}

.triple-login-shell {
  --login-gap: 20px;
  width: min(1180px, 94vw);
  min-height: 420px;
  padding: var(--login-gap);
  background:
    linear-gradient(115deg, rgba(18, 98, 122, .88), rgba(11, 67, 88, .92)),
    url('https://images.unsplash.com/photo-1515879218367-8466d910aaa4?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  border-radius: 24px;
  overflow: hidden;
}

.triple-login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  pointer-events: none;
}

.triple-login-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--login-gap);
  min-height: 380px;
  align-items: start;
}

.role-login-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 420px;
  padding: 12px 8px 8px;
  overflow: visible;
}

.triple-login-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  min-height: 176px;
}

.triple-login-option {
  position: relative;
  min-height: 170px;
  display: flex;
  align-items: center;
  padding: 16px 10px;
}

.triple-login-copy {
  max-width: 240px;
  color: #ecfbff;
  transition: opacity .22s ease, transform .22s ease, filter .22s ease;
}

.triple-login-option.is-active-role .triple-login-copy {
  opacity: 1;
  transform: none;
  filter: saturate(1.05);
}

.triple-login-copy h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.1;
  color: #f8feff;
}

.triple-login-copy p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: rgba(232, 248, 252, .92);
}

.triple-login-option:not(.is-active-role) .triple-login-copy {
  opacity: .82;
}

.triple-login-shell .switch-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.26);
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.triple-login-shell .switch-btn:hover {
  background: rgba(255,255,255,.16);
}

.triple-login-shell .switch-btn.is-active {
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.58);
}

.triple-login-slider {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 2;
  width: min(368px, 100%);
  min-height: 0;
  align-self: flex-start;
  transform: translateY(-50%);
  transition: left .46s cubic-bezier(.22,.74,.2,1), width .25s ease, box-shadow .25s ease;
  will-change: left, width, transform;
}

.triple-login-surface {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,251,.96));
  border: 1px solid rgba(226, 236, 241, .95);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(8, 35, 47, .24);
  padding: 18px 18px 20px;
  color: #11384a;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.triple-login-surface .role-badge {
  color: #6c8390;
  letter-spacing: .08em;
}

.triple-login-surface h3 {
  margin: 6px 0 12px;
  color: #11384a;
  font-size: 2rem;
}

.triple-login-surface .login-support-note {
  color: #607a89;
  margin-bottom: 14px;
}

.triple-login-surface label {
  color: #5b7786;
  margin-top: 0;
}

.triple-login-surface input {
  background: #f7fafb;
  border: 1px solid rgba(17, 56, 74, .09);
  color: #143a4d;
}

.triple-login-surface input::placeholder {
  color: #9ab0bb;
}

.triple-login-surface .login-btn {
  margin-top: 14px;
}

.login-floating-panel {
  position: absolute;
  inset: 12px;
  z-index: 6;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(226, 236, 241, .96);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,251,.97)),
    radial-gradient(circle at top right, rgba(47,151,173,.08), transparent 38%);
  box-shadow: 0 26px 50px rgba(8, 35, 47, .24);
  backdrop-filter: blur(16px);
  overflow-y: auto;
  transform: translateY(12px) scale(.985);
  transform-origin: center top;
  transition: transform .24s cubic-bezier(.22,.74,.2,1), box-shadow .24s ease, opacity .2s ease;
}

.login-floating-panel[hidden] {
  display: none;
}

.login-floating-panel.is-open {
  animation: panelRise .26s ease;
  transform: translateY(0) scale(1);
}

#role-login-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.login-forgot-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 2px;
}

.login-forgot-link {
  appearance: none;
  border: none;
  background: transparent;
  display: inline-flex;
  width: fit-content;
  padding: 0;
  margin: 0;
  text-decoration: none;
  color: #103a57;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}

.login-forgot-link:hover {
  text-decoration: underline;
}

.login-reset-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.login-reset-head h4 {
  margin: 4px 0 0;
  font-size: 1.08rem;
  color: #11384a;
}

.login-reset-close {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .82rem;
}

.login-panel-help {
  margin: 4px 0 0;
  color: #5b7584;
  line-height: 1.5;
  font-size: .86rem;
}

.login-reset-form {
  display: grid;
  gap: 10px;
}

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

.reset-field {
  display: grid;
  gap: 6px;
}

.reset-field label {
  margin: 0;
  color: #50707f;
  font-size: .84rem;
  font-weight: 800;
}

.field-feedback {
  min-height: 16px;
  color: #c2410c;
  font-size: .74rem;
  font-weight: 700;
}

.reset-field.is-invalid input {
  border-color: rgba(194, 65, 12, .42);
  outline: 2px solid rgba(194, 65, 12, .12);
}

.login-floating-panel .reset-field input {
  min-height: 40px;
  padding: 10px 11px;
  border-radius: 11px;
  font-size: .92rem;
}

.login-reset-submit {
  margin-top: 4px;
}

@keyframes panelRise {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
  .triple-login-shell {
    min-height: 0;
    padding: 16px;
  }

  .triple-login-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 14px;
  }

  .role-login-stage {
    min-height: 0;
    padding: 6px 0 0;
  }

  .triple-login-options {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .triple-login-option {
    min-height: auto;
    padding: 10px 4px 6px;
  }

  .triple-login-slider {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-height: 0;
    transform: none;
  }

  .triple-login-surface {
    min-height: 0;
  }

  .login-floating-panel {
    inset: 10px;
    padding: 14px;
  }

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

.info-stage {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
}

.info-card {
  width: min(900px, 95vw);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255,255,255,.95), rgba(244,249,252,.92));
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 20px 34px rgba(11,47,64,.15);
  padding: clamp(20px, 3vw, 34px);
}

.info-card h2 {
  margin: 8px 0 14px;
  font-size: clamp(1.3rem, 2vw, 2rem);
  color: var(--ink);
}

.info-card p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  line-height: 1.65;
}


.flash-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.flash {
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
}

.flash-success {
  background: rgba(46, 204, 113, 0.15);
  color: #1d6a43;
  border: 1px solid rgba(46, 204, 113, 0.35);
}

.flash-error {
  background: rgba(231, 76, 60, 0.12);
  color: #922b21;
  border: 1px solid rgba(231, 76, 60, 0.35);
}

.notification-bubble-stack {
  position: fixed;
  top: 104px;
  right: 22px;
  z-index: 34;
  width: min(400px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  pointer-events: none;
}

.notification-bubble {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 16px 16px 14px;
  border-radius: 24px;
  border: 1px solid var(--surface-border);
  background: linear-gradient(180deg, var(--surface-card), var(--surface-card-muted));
  box-shadow: var(--surface-shadow);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  overflow: hidden;
}

.notification-bubble[hidden] {
  display: none !important;
}

.notification-bubble::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-a), var(--accent-b));
  opacity: .96;
}

.notification-bubble.is-message::before {
  background: linear-gradient(180deg, #6d7cff, #3355f0);
}

.notification-bubble.is-form::before {
  background: linear-gradient(180deg, #35c866, #1d8f57);
}

.notification-bubble.is-security::before {
  background: linear-gradient(180deg, #f0b23f, #d67b14);
}

.notification-bubble-emoji {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-elevated);
  font-size: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.notification-bubble-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.notification-bubble-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.notification-bubble-head strong {
  min-width: 0;
  color: var(--surface-text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.4;
}

.notification-bubble-count {
  flex: 0 0 auto;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(47, 151, 173, .14);
  border: 1px solid var(--surface-hairline);
  color: var(--surface-text);
  font-size: .73rem;
  font-weight: 900;
}

.notification-bubble-copy p {
  margin: 0;
  color: var(--surface-text-soft);
  font-size: .93rem;
  line-height: 1.55;
}

.notification-bubble-action {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47, 151, 173, .2);
  background: linear-gradient(145deg, rgba(47, 151, 173, .12), rgba(29, 95, 124, .08));
  color: var(--surface-text);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .03em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.notification-bubble-action:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 151, 173, .32);
  background: linear-gradient(145deg, rgba(47, 151, 173, .18), rgba(29, 95, 124, .12));
}

.notification-bubble-close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-elevated);
  color: var(--surface-text);
  font: inherit;
  font-size: 1.22rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.notification-bubble-close:hover {
  transform: translateY(-1px);
  background: linear-gradient(145deg, rgba(47, 151, 173, .12), rgba(29, 95, 124, .08));
  border-color: rgba(47, 151, 173, .26);
}

.notification-bubble-dismiss-form {
  margin: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 35, 0.54);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 40;
}

.modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(420px, 92vw);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,255,255,.96), rgba(244,249,252,.94));
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: 0 28px 44px rgba(11,47,64,.26);
  padding: 20px;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(13,45,58,.18);
  background: rgba(255,255,255,.75);
  cursor: pointer;
  font-size: 1.1rem;
}

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

.support-form input {
  width: 100%;
  border: 1px solid rgba(11,47,64,.15);
  border-radius: 11px;
  background: rgba(255,255,255,.9);
  padding: 11px;
}

body.modal-open {
  overflow: hidden;
}

.about-stage,
.help-stage,
.contact-stage,
.admin-stage {
  min-height: calc(100vh - 150px);
  display: grid;
  gap: 16px;
}

.contact-stage {
  place-items: start center;
}

.about-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;
}

.about-hero-copy,
.about-panel,
.help-card,
.contact-card,
.admin-card {
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(255,255,255,.95), rgba(244,249,252,.92));
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 18px 30px rgba(11,47,64,.14);
  padding: clamp(18px, 2.8vw, 28px);
}

.about-hero-copy h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
}

.about-hero-copy p,
.about-panel p,
.help-card p,
.contact-lead {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.about-hero-media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 18px 30px rgba(11,47,64,.14);
}

.about-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-panel h3,
.help-card h2,
.contact-card h2,
.admin-card h2 {
  margin: 6px 0 12px;
  color: var(--ink);
}

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

.faq-item {
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  padding: 10px 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #123848;
}

.faq-item p {
  margin-top: 8px;
}

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

.contact-form input,
.contact-form textarea,
.admin-form-grid input,
.admin-form-grid textarea,
.admin-form-grid select,
.inline-form select {
  width: 100%;
  border: 1px solid rgba(11,47,64,.15);
  border-radius: 10px;
  background: rgba(255,255,255,.9);
  padding: 10px;
}

.admin-stage {
  grid-template-columns: 1fr;
  gap: 18px;
}

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

.admin-overview-card {
  background: linear-gradient(150deg, rgba(10, 70, 95, .92), rgba(14, 94, 122, .86));
  border-color: rgba(160, 225, 245, .34);
  color: #eefcff;
}

.admin-overview-card h2 {
  color: #f6fdff;
}

.admin-intro {
  margin: 0 0 12px;
  color: rgba(231, 251, 255, .88);
  line-height: 1.55;
}

.admin-muted {
  margin: 0 0 12px;
  color: #4d6878;
  line-height: 1.55;
}

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

.section-jump-grid .ghost-btn {
  justify-content: center;
  border-color: rgba(217, 245, 255, .34);
  background: rgba(214, 245, 255, .14);
  color: #e7fbff;
}

.section-jump-grid .ghost-btn:hover {
  background: rgba(214, 245, 255, .24);
}

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

.overview-item {
  border-radius: 12px;
  border: 1px solid rgba(221, 249, 255, .25);
  background: rgba(239, 252, 255, .1);
  padding: 10px;
  display: grid;
  gap: 6px;
}

.overview-item span {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(222, 247, 254, .9);
}

.overview-item strong {
  font-size: 1.48rem;
  line-height: 1;
}

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

.overview-shortcut {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(221, 249, 255, .22);
  background: rgba(239, 252, 255, .08);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.overview-shortcut:hover {
  transform: translateY(-2px);
  background: rgba(239, 252, 255, .14);
  border-color: rgba(221, 249, 255, .38);
}

.overview-shortcut span {
  font-size: 1.2rem;
}

.overview-shortcut strong {
  color: #f7feff;
  font-size: .96rem;
}

.overview-shortcut small {
  color: rgba(230, 249, 253, .88);
  line-height: 1.45;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

#users .admin-table {
  min-width: 1460px;
  border-collapse: separate;
  border-spacing: 0;
}

#subscriptions .admin-table {
  min-width: 1180px;
}

#subscriptions .admin-table th,
#subscriptions .admin-table td {
  padding: 7px 8px;
  font-size: .85rem;
}

#subscriptions .admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(145deg, rgba(234,246,251,.98), rgba(223,239,247,.98));
  color: #173f51;
}

#companies .admin-table {
  min-width: 900px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(11,47,64,.12);
  text-align: left;
  padding: 8px;
  vertical-align: top;
}

.admin-table .table-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
}

.admin-table .table-sort-btn::after {
  content: "↕";
  font-size: .72rem;
  line-height: 1;
  opacity: .45;
}

.admin-table .table-sort-btn[data-sort-direction="asc"]::after {
  content: "↑";
  opacity: .8;
}

.admin-table .table-sort-btn[data-sort-direction="desc"]::after {
  content: "↓";
  opacity: .8;
}

.announcement-table,
.portal-announcements-table {
  min-width: 1180px;
}

.announcement-table th,
.announcement-table td,
.portal-announcements-table th,
.portal-announcements-table td {
  padding: 9px 10px;
  font-size: .84rem;
}

.announcement-table-title,
.portal-announcement-title-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.announcement-table-title strong,
.portal-announcement-title-cell strong {
  display: block;
  min-width: 0;
  color: #163f51;
  line-height: 1.35;
}

.announcement-table-emoji,
.portal-announcement-emoji {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(47,151,173,.1);
  border: 1px solid rgba(47,151,173,.14);
  font-size: 1rem;
}

.announcement-table-body,
.portal-announcement-body-cell {
  color: #5f7b89;
  line-height: 1.5;
  max-width: 360px;
}

.announcement-table-body,
.portal-announcement-body-cell {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

#users .admin-table-wrap {
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 24px rgba(10, 47, 64, .06);
}

#users .admin-table th,
#users .admin-table td {
  padding: 7px 8px;
  font-size: .86rem;
}

#users .admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(145deg, rgba(236,246,251,.98), rgba(223,238,246,.98));
  color: #173f51;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .72rem;
}

#users .admin-table tbody tr:nth-child(odd) {
  background: rgba(255,255,255,.86);
}

#users .admin-table tbody tr:nth-child(even) {
  background: rgba(243,248,251,.78);
}

#users .admin-table tbody tr:hover {
  background: rgba(226,244,250,.92);
}

#users .admin-user-identity strong {
  font-size: .92rem;
}

#users .admin-user-alias-pill {
  display: inline-flex;
  align-items: center;
  align-self: start;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(47,151,173,.12);
  border: 1px solid rgba(47,151,173,.22);
  color: #1e5a72;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
}

#users .admin-user-identity small {
  color: #668291;
  font-size: .72rem;
  line-height: 1.35;
}

#users .password-hash {
  font-size: .76rem;
  max-width: 260px;
}

#users .company-badge,
#users .company-subscription-chip {
  padding: 7px 9px;
  border-radius: 10px;
}

#users .quota-summary strong {
  font-size: .84rem;
}

#users .quota-summary small {
  font-size: .72rem;
}

#users .admin-row-actions {
  gap: 6px;
}

#users .admin-row-link,
#users .admin-danger-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: .84rem;
}

#users .admin-users-rotation-card {
  margin-top: 12px;
}

#users .admin-user-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin: 12px 0 10px;
  padding: 12px;
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(240,248,252,.74));
  box-shadow: 0 10px 20px rgba(10, 47, 64, .06);
}

#users .admin-user-filter-bar label {
  display: grid;
  gap: 5px;
  color: #244657;
  font-weight: 700;
  font-size: .82rem;
}

#users .admin-user-filter-bar input,
#users .admin-user-filter-bar select {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(11,47,64,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.95);
  padding: 7px 9px;
  font-size: .88rem;
}

#users .admin-user-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.84), rgba(240,248,252,.72));
  box-shadow: 0 10px 20px rgba(10, 47, 64, .06);
}

#users .admin-user-pager label {
  display: grid;
  gap: 5px;
  color: #244657;
  font-weight: 700;
  font-size: .82rem;
}

#users .admin-user-pager select {
  min-width: 96px;
  min-height: 36px;
  border: 1px solid rgba(11,47,64,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.95);
  padding: 7px 9px;
  font-size: .88rem;
}

#users .admin-user-pager-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#users .admin-user-pager-controls span {
  color: #557483;
  font-size: .86rem;
  font-weight: 700;
}

#users .admin-user-pager .ghost-btn {
  min-height: 36px;
  padding: 0 12px;
}

.td-message {
  max-width: 260px;
  white-space: pre-wrap;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-success {
  color: #166534;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .28);
}

.pill-warning {
  color: #92400e;
  background: rgba(245, 158, 11, .14);
  border: 1px solid rgba(245, 158, 11, .3);
}

.pill-danger {
  color: #9f1239;
  background: rgba(244, 63, 94, .12);
  border: 1px solid rgba(244, 63, 94, .28);
}

.pill-info {
  color: #1e5a72;
  background: rgba(47, 151, 173, .12);
  border: 1px solid rgba(47, 151, 173, .24);
}

.mask-text {
  letter-spacing: .04em;
  font-weight: 700;
}

.company-badge,
.company-subscription-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--brand-color, #2f97ad) 28%, transparent);
  background: color-mix(in srgb, var(--brand-color, #2f97ad) 10%, white);
  color: #173848;
}

.company-badge-inline {
  max-width: 100%;
}

.company-badge-icon {
  font-size: 1.05rem;
}

.company-subscription-chip {
  display: grid;
  gap: 2px;
}

.company-subscription-chip strong {
  font-size: .9rem;
}

.company-subscription-chip small {
  color: #557584;
}

.checkbox-field {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  align-self: flex-start;
}

.user-manager-wrap[hidden] {
  display: none;
}

[data-manager-quota-wrap][hidden] {
  display: none !important;
}

.plan-chip-editable {
  gap: 8px;
}

.plan-chip-editable button {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}

.plan-benefit-editor {
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.65);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.benefit-editor-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.benefit-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-form button,
.admin-form-grid button,
.faq-admin-actions button {
  border: 1px solid rgba(13,45,58,.2);
  background: rgba(255,255,255,.8);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}

.admin-form-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-form-grid label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #244454;
}

.admin-form-grid .full {
  grid-column: 1 / -1;
}

#users .user-create-form,
#users .user-edit-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255,255,255,.94), rgba(241,249,253,.82));
  box-shadow: 0 12px 24px rgba(10, 47, 64, .06);
}

#users .user-create-form label,
#users .user-edit-form label {
  gap: 5px;
  color: #355666;
  font-size: .84rem;
  font-weight: 800;
}

#users .user-create-form input,
#users .user-create-form select,
#users .user-edit-form input,
#users .user-edit-form select {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: .9rem;
}

#users .user-create-form .main-btn,
#users .user-edit-form .main-btn {
  grid-column: 1 / -1;
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  font-size: .92rem;
  justify-self: end;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #ecfdff;
  border: 0;
  box-shadow: 0 10px 20px rgba(47, 151, 173, .22);
}

#users .user-create-form .main-btn:hover,
#users .user-edit-form .main-btn:hover {
  filter: brightness(1.05);
}

.admin-subtitle {
  margin: 14px 0 10px;
  font-size: 1rem;
  color: #214758;
}

.admin-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(11,47,64,.12);
  background: rgba(255,255,255,.55);
}

.admin-tab-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  color: #27495b;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.admin-tab-btn:hover {
  transform: translateY(-1px);
}

.admin-tab-btn.active {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #ecfdff;
  box-shadow: 0 9px 18px rgba(24, 91, 115, .26);
}

.admin-tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}

.admin-tab-panel.active {
  display: block;
  animation: panelIn .32s ease forwards;
}

#forms.forms-module {
  border: 1px solid rgba(25, 84, 108, .14);
  background: linear-gradient(155deg, rgba(255,255,255,.96), rgba(237,247,252,.92));
  box-shadow: 0 20px 38px rgba(8, 41, 56, .12);
}

#forms .forms-tab-help {
  margin: 0 0 12px;
  color: #4d6878;
  font-size: .9rem;
  font-weight: 600;
}

.forms-filter-bar,
.subscriptions-filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(18, 74, 95, .12);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}

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

.forms-filter-bar label,
.subscriptions-filter-bar label {
  display: grid;
  gap: 6px;
  color: #264655;
  font-weight: 700;
}

.forms-filter-bar input,
.forms-filter-bar select,
.subscriptions-filter-bar input,
.subscriptions-filter-bar select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(11,47,64,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.94);
  padding: 8px 10px;
}

.subscription-row-filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(18, 74, 95, .11);
  border-radius: 14px;
  background: rgba(255,255,255,.68);
}

.subscription-row-filter-bar label {
  display: grid;
  gap: 4px;
  color: #244657;
  font-size: .84rem;
  font-weight: 700;
}

.subscription-row-filter-bar input,
.subscription-row-filter-bar select {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(11,47,64,.14);
  border-radius: 9px;
  background: rgba(255,255,255,.95);
  padding: 6px 9px;
  font-size: .86rem;
}

#forms .forms-tabs {
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
  border-radius: 14px;
  padding: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(228,242,250,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

#forms .forms-tabs .admin-tab-btn {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(38, 96, 121, .14);
  border-radius: 12px;
  background: rgba(255,255,255,.75);
  color: #244758;
  font-size: .9rem;
  font-weight: 800;
}

#forms .forms-tabs .admin-tab-btn.active {
  border-color: rgba(37, 122, 152, .36);
  box-shadow: 0 10px 20px rgba(22, 92, 116, .22);
}

#forms .forms-section {
  border: 1px solid rgba(13, 71, 92, .12);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(155deg, rgba(255,255,255,.84), rgba(240,249,253,.7));
  box-shadow: 0 12px 24px rgba(11, 47, 64, .08);
}

#forms .forms-section .admin-subtitle {
  margin: 4px 0 10px;
  font-size: 1.02rem;
  color: #163e51;
}

#forms .admin-form-grid label {
  font-weight: 700;
  color: #264a5d;
}

#forms .admin-form-grid input,
#forms .admin-form-grid textarea,
#forms .admin-form-grid select {
  border-radius: 12px;
  border-color: rgba(17, 70, 89, .16);
  background: rgba(255,255,255,.95);
  padding: 11px 12px;
}

#forms .admin-form-grid input:focus,
#forms .admin-form-grid textarea:focus,
#forms .admin-form-grid select:focus {
  outline: none;
  border-color: rgba(47,151,173,.46);
  box-shadow: 0 0 0 4px rgba(47,151,173,.14);
}

#forms [data-dirty-form][data-is-dirty="true"] {
  outline: 2px solid rgba(47, 151, 173, .18);
  outline-offset: 3px;
}

#forms .import-preview-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

#forms .import-preview-actions .ghost-btn {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(21, 90, 116, .2);
  background: rgba(255,255,255,.82);
  color: #1f4a5d;
  font-weight: 700;
}

#forms .import-preview-box {
  border: 1px dashed rgba(27, 96, 122, .3);
  border-radius: 12px;
  background: rgba(245,252,255,.82);
  padding: 10px;
}

#forms .import-preview-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

#forms .import-preview-item {
  border: 1px solid rgba(19, 78, 100, .14);
  border-radius: 10px;
  background: #fff;
  padding: 9px 10px;
}

#forms .import-preview-question {
  font-weight: 700;
  color: #173f52;
  margin-bottom: 6px;
}

#forms .import-preview-options {
  margin: 0;
  padding-left: 18px;
  color: #355c6d;
}

#forms .import-preview-options li {
  margin-bottom: 2px;
}

#forms .import-debug-collapse {
  border: 1px solid rgba(18, 74, 95, .14);
  border-radius: 10px;
  background: rgba(255,255,255,.68);
  padding: 8px 10px;
}

#forms .import-debug-collapse summary {
  cursor: pointer;
  font-weight: 700;
  color: #234b5c;
}

#forms .admin-form-grid > button {
  min-height: 42px;
  border-radius: 11px;
  border: 0;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #ecfdff;
  font-weight: 800;
  box-shadow: 0 9px 18px rgba(19, 89, 112, .24);
}

#forms select[multiple] {
  min-height: 122px;
  padding-top: 8px;
  padding-bottom: 8px;
}

#forms .forms-card-list {
  gap: 12px;
}

#forms .forms-card-list > form {
  border: 1px solid rgba(16, 74, 94, .13);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.85), rgba(239,248,253,.72));
  box-shadow: 0 10px 20px rgba(9, 43, 59, .08);
}

#forms .faq-admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#forms .faq-admin-actions button,
#forms .faq-admin-actions .ghost-btn {
  min-height: 38px;
  border-radius: 10px;
}

#forms .faq-admin-actions button[type="submit"] {
  background: linear-gradient(90deg, #2f97ad, #1d5f7c);
  color: #ecfdff;
  border: 0;
}

#forms .faq-admin-actions button[formaction*="delete"] {
  background: rgba(239,90,99,.14);
  color: #9f2f37;
  border: 1px solid rgba(239,90,99,.35);
}

.message-detail summary {
  cursor: pointer;
  font-weight: 700;
  color: #134155;
}

.message-detail p {
  margin: 8px 0 0;
  white-space: pre-wrap;
  color: #224556;
  line-height: 1.55;
}

.message-tabs {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.message-tabs .admin-tab-btn {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(38, 96, 121, .14);
  border-radius: 12px;
  background: rgba(255,255,255,.75);
  color: #244758;
  font-size: .9rem;
  font-weight: 800;
}

.message-tabs .admin-tab-btn.active {
  border-color: rgba(37, 122, 152, .36);
  box-shadow: 0 10px 20px rgba(22, 92, 116, .22);
}

.message-notification-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.message-notification-card {
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(240,248,252,.8));
  padding: 14px;
  box-shadow: 0 10px 22px rgba(10, 47, 64, .08);
  display: grid;
  gap: 10px;
}

.message-notification-head {
  display: grid;
  gap: 6px;
}

.message-notification-head strong {
  color: #163f51;
}

.message-notification-card p {
  margin: 0;
  color: #4b6a79;
  line-height: 1.55;
}

.message-notification-copy {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(11,47,64,.1);
}

.message-notification-card small {
  color: #6a8190;
  font-weight: 700;
}

.tab-inline-icon {
  margin-right: 6px;
  font-size: .98em;
}

.tab-inline-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef5a63;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

.message-notification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(239,90,99,.14);
  color: #d53d4a;
  font-size: .88rem;
  vertical-align: middle;
}

.message-row.is-new {
  background: rgba(255, 244, 245, .9);
}

.message-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,47,64,.12);
  background: rgba(255,255,255,.9);
  color: #315365;
  font-weight: 700;
  white-space: nowrap;
}

.message-status-chip.is-new {
  border-color: rgba(239,90,99,.32);
  background: rgba(239,90,99,.1);
  color: #b43742;
}

.message-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(239,90,99,.16);
  font-size: .82rem;
}

.category-access-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0;
}

.category-access-toolbar label {
  display: grid;
  gap: 6px;
  width: min(360px, 100%);
  color: #244657;
  font-weight: 700;
}

.category-access-toolbar input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(11,47,64,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.95);
  padding: 8px 10px;
}

.category-access-grid {
  display: grid;
  gap: 12px;
}

.category-access-card {
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  overflow: hidden;
  box-shadow: 0 12px 22px rgba(10, 47, 64, .08);
}

.category-access-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(145deg, rgba(243,249,253,.98), rgba(231,242,249,.84));
}

.category-access-card summary::-webkit-details-marker {
  display: none;
}

.category-access-summary {
  display: grid;
  gap: 4px;
}

.category-access-summary strong {
  color: #163f51;
  font-size: 1rem;
}

.category-access-summary span {
  color: #577381;
  line-height: 1.45;
  font-size: .86rem;
}

.category-access-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.category-count-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(47,151,173,.12);
  border: 1px solid rgba(47,151,173,.24);
  color: #1e5a72;
  font-size: .8rem;
  font-weight: 800;
}

.category-summary-copy {
  color: #6b828f;
  font-size: .77rem;
  font-weight: 700;
}

.category-access-form {
  display: grid;
  gap: 14px;
  padding: 14px 16px 16px;
}

.category-access-form textarea {
  min-height: 72px;
  resize: vertical;
}

.category-company-search {
  display: grid;
  gap: 6px;
  color: #244657;
  font-weight: 700;
}

.category-company-search input {
  min-height: 38px;
  border: 1px solid rgba(11,47,64,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.95);
  padding: 8px 10px;
}

.category-company-board,
.assignment-company-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 8px;
}

.category-company-board {
  max-height: 320px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-gutter: stable;
}

.category-company-empty {
  margin: 0;
  padding: 6px 2px 2px;
  color: #5c7886;
  font-weight: 700;
}

.category-company-chip,
.assignment-company-chip,
.assignment-status-chip,
.assignment-form-chip,
.role-chip,
.form-category-chip {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(242,249,252,.75));
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.category-company-chip:hover,
.assignment-company-chip:hover,
.assignment-status-chip:hover,
.assignment-form-chip:hover,
.role-chip:hover,
.form-category-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(47,151,173,.3);
  box-shadow: 0 10px 18px rgba(10, 47, 64, .08);
}

.category-company-chip.is-selected,
.assignment-company-chip.is-selected,
.assignment-status-chip.is-selected,
.assignment-form-chip.is-selected,
.role-chip.is-selected,
.form-category-chip.is-selected {
  border-color: rgba(42, 169, 107, .42);
  background: linear-gradient(145deg, rgba(233,249,238,.96), rgba(219,244,228,.82));
  box-shadow: 0 12px 22px rgba(42, 169, 107, .12);
}

.category-company-chip input,
.assignment-company-chip input,
.assignment-status-chip input,
.assignment-form-chip input,
.role-chip input,
.form-category-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.chip-check {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
  border: 1px solid rgba(12, 68, 88, .22);
  background: rgba(255,255,255,.95);
  display: grid;
  place-items: center;
  margin-top: 1px;
  color: transparent;
  font-weight: 900;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.chip-check::before {
  content: "✓";
  transform: scale(.8);
}

.category-company-chip.is-selected .chip-check,
.assignment-company-chip.is-selected .chip-check,
.assignment-status-chip.is-selected .chip-check,
.assignment-form-chip.is-selected .chip-check,
.role-chip.is-selected .chip-check,
.form-category-chip.is-selected .chip-check {
  background: linear-gradient(145deg, #2fa763, #1f8a54);
  border-color: rgba(31, 138, 84, .5);
  color: #fff;
  transform: scale(1.02);
}

.chip-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chip-copy strong {
  color: #163f51;
  line-height: 1.35;
}

.chip-copy small {
  color: #5f7b89;
  line-height: 1.35;
}

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

.assignment-create-grid {
  display: grid;
  grid-template-columns: 1.1fr .95fr .85fr;
  gap: 10px;
}

#assignments .assignment-browser-head,
#assignments .assignment-panel-head {
  gap: 2px;
}

#assignments .assignment-browser-head {
  padding: 8px 10px;
}

#assignments .assignment-browser-copy,
#assignments .assignment-panel-copy {
  font-size: .76rem;
  line-height: 1.34;
}

.assignment-create-panel {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255,255,255,.92), rgba(240,248,252,.8));
  padding: 10px;
  box-shadow: 0 12px 24px rgba(10, 47, 64, .08);
}

.assignment-panel-head {
  display: grid;
  gap: 4px;
}

.assignment-panel-head strong {
  color: #163f51;
}

.assignment-panel-head span {
  color: #577381;
  font-size: .84rem;
  line-height: 1.45;
}

.assignment-chip-search {
  display: grid;
  gap: 4px;
  color: #244657;
  font-size: .84rem;
  font-weight: 700;
}

.assignment-chip-search input {
  min-height: 34px;
  border: 1px solid rgba(11,47,64,.14);
  border-radius: 9px;
  background: rgba(255,255,255,.95);
  padding: 6px 9px;
  font-size: .86rem;
}

.assignment-company-board {
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

#assignments .assignment-create-panel {
  padding: 10px;
  gap: 8px;
}

#assignments .assignment-category-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
  max-height: 360px;
}

#assignments .assignment-category-card summary {
  padding: 8px 10px;
}

#assignments .assignment-category-copy strong {
  font-size: .9rem;
}

#assignments .assignment-category-copy span {
  font-size: .78rem;
}

#assignments .assignment-company-board {
  max-height: 250px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
}

#assignments .assignment-form-chip-list {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
  max-height: 190px;
  padding: 8px 10px 10px;
}

#assignments .assignment-category-list .assignment-empty[data-chip-search-empty],
#assignments .assignment-company-board .assignment-empty[data-chip-search-empty],
#assignments .assignment-form-chip-list .assignment-empty {
  grid-column: 1 / -1;
}

#assignments .assignment-company-chip,
#assignments .assignment-form-chip,
#assignments .assignment-status-chip,
#assignments .role-chip {
  padding: 8px;
  gap: 6px;
  border-radius: 12px;
}

#assignments .assignment-company-chip {
  align-items: center;
  min-height: 42px;
  padding: 7px 9px;
  border-radius: 10px;
}

#assignments .assignment-company-chip .chip-copy {
  gap: 1px;
}

#assignments .chip-check {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  border-radius: 6px;
}

#assignments .chip-copy strong {
  font-size: .84rem;
}

#assignments .chip-copy small {
  font-size: .72rem;
}

#assignments .assignment-note {
  font-size: .84rem;
}

#assignments .assignment-submit-btn {
  min-height: 40px;
}

.assignment-status-field {
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 16px;
  padding: 10px;
  margin: 0;
  display: grid;
  gap: 10px;
}

.assignment-status-field legend {
  padding: 0 6px;
  color: #2c4d5e;
  font-weight: 700;
}

.role-chip {
  align-items: center;
}

.role-chip .chip-copy strong {
  font-size: .92rem;
}

#assignment-company-board .chip-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

#assignment-company-board .chip-copy strong {
  font-size: .88rem;
  line-height: 1.2;
}

#assignment-company-board .chip-copy small {
  font-size: .74rem;
}

.assignment-log-head {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.assignment-log-head strong {
  color: #163f51;
}

.assignment-log-head p {
  margin: 0;
  color: #577381;
  line-height: 1.42;
  font-size: .88rem;
}

.assignment-filter-bar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
}

.assignment-filter-bar label {
  gap: 4px;
  font-size: .84rem;
}

.assignment-filter-bar input,
.assignment-filter-bar select {
  min-height: 34px;
  padding: 6px 9px;
  font-size: .86rem;
}

.assignment-log-pager {
  margin: 0 0 10px;
}

.assignment-log-pager .pager-info {
  min-width: 170px;
}

#forms .form-category-field {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255,255,255,.9), rgba(240,249,253,.76));
  box-shadow: 0 12px 24px rgba(11, 47, 64, .08);
}

#forms .form-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

#forms .form-category-head strong {
  color: #163f51;
  font-size: .98rem;
}

#forms .form-category-head span {
  color: #5f7b89;
  font-size: .82rem;
  font-weight: 700;
}

#forms .form-category-search {
  display: grid;
  gap: 6px;
  color: #244657;
  font-weight: 700;
}

#forms .form-category-search input {
  min-height: 40px;
  border: 1px solid rgba(11,47,64,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.95);
  padding: 8px 10px;
}

#forms .form-category-board {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  max-height: 300px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-gutter: stable;
}

#forms .form-category-chip {
  flex: 0 1 180px;
  min-width: 150px;
  max-width: 230px;
  min-height: 46px;
  padding: 10px 11px;
  align-items: center;
  border-radius: 12px;
}

#forms .form-category-chip .chip-check {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  border-radius: 6px;
  margin-top: 0;
}

#forms .form-category-chip .chip-copy strong {
  font-size: .88rem;
  line-height: 1.2;
}

#forms .form-category-chip .chip-copy small {
  display: none;
}

#forms .form-category-empty {
  flex-basis: 100%;
  margin: 0;
  padding: 4px 2px 0;
  color: #5c7886;
  font-weight: 700;
}

.assignment-note {
  margin: 0;
  color: #5c7886;
  line-height: 1.55;
  font-size: .9rem;
}

.assignment-submit-btn {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #ecfdff;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(19, 89, 112, .24);
  cursor: pointer;
}

.assignment-log-head {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(11,47,64,.12);
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(241,249,253,.76));
}

.assignment-log-head strong {
  color: #163f51;
}

.assignment-log-head p {
  margin: 0;
  color: #577381;
  line-height: 1.4;
  font-size: .88rem;
}

.assignment-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(11,47,64,.11);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.84), rgba(241,249,253,.76));
  box-shadow: 0 10px 24px rgba(11,47,64,.08);
}

.assignment-filter-bar label {
  display: grid;
  gap: 4px;
  color: #244657;
  font-weight: 700;
  font-size: .84rem;
}

.assignment-filter-bar input,
.assignment-filter-bar select {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(11,47,64,.14);
  border-radius: 9px;
  background: rgba(255,255,255,.95);
  padding: 6px 9px;
  font-size: .86rem;
}

.assignment-log-wrap {
  overflow: auto;
  border-radius: 14px;
}

.assignment-log-table {
  min-width: 1180px;
}

.assignment-log-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(145deg, rgba(234,246,251,.98), rgba(223,239,247,.98));
  color: #173f51;
}

.assignment-row.is-recalled {
  opacity: .72;
  background: rgba(235,242,246,.86);
}

.assignment-row.is-sent {
  background: rgba(237,251,243,.82);
}

.assignment-row.is-waiting {
  background: rgba(255,249,232,.82);
}

.assignment-status-chip {
  width: 100%;
  min-height: 54px;
}

.assignment-status-chip .chip-copy small {
  font-size: .76rem;
}

#forms .form-risk-card {
  border-radius: 16px;
  border: 1px solid rgba(15, 74, 95, .15);
  background: linear-gradient(160deg, rgba(255,255,255,.86), rgba(238,248,252,.72));
  box-shadow: 0 10px 24px rgba(10, 47, 64, .08);
}

#forms .form-risk-batch-form {
  display: grid;
  gap: 14px;
}

#forms .form-risk-question-list {
  display: grid;
  gap: 14px;
}

#forms .form-risk-question-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(17, 77, 98, .14);
  border-radius: 14px;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

#forms .form-risk-question-card .form-risk-question-head,
#forms .form-risk-question-card .faq-admin-actions,
#forms .form-risk-card-actions {
  grid-column: 1 / -1;
}

#forms .form-risk-question-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #1a4658;
  font-weight: 800;
}

#forms .form-risk-question-head span {
  color: #5f7b89;
  font-size: .85rem;
  font-weight: 700;
}

#forms .form-risk-card-actions {
  display: flex;
  justify-content: flex-end;
}

#forms .form-risk-note {
  grid-column: span 4;
  margin: 0;
  padding: 8px 12px;
  border: 1px dashed rgba(18, 87, 111, .25);
  border-radius: 10px;
  background: rgba(255,255,255,.54);
}

#forms .answer-risk-editor {
  border: 1px solid rgba(14, 78, 100, .16);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(240,249,253,.68));
  padding: 12px;
  grid-column: 1 / -1;
}

#forms .answer-risk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

#forms .answer-risk-header strong {
  color: #1a4658;
}

#forms .answer-add-btn {
  min-height: 34px;
  border-radius: 10px;
  padding: 0 12px;
}

#forms .answer-risk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 10px;
  color: #325666;
  font-size: .85rem;
  font-weight: 700;
}

#forms .answer-risk-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#forms .risk-dot-preview {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(8, 33, 45, .28);
}

#forms .risk-dot-preview.cok_riskli {
  background: #d94f57;
}

#forms .risk-dot-preview.orta_riskli {
  background: #f08a8d;
}

#forms .risk-dot-preview.normal {
  background: #f2c94c;
}

#forms .risk-dot-preview.az_riskli {
  background: #89d4a3;
}

#forms .risk-dot-preview.risksiz {
  background: #31b66a;
}

#forms .answer-risk-list {
  display: grid;
  gap: 9px;
}

#forms .answer-risk-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(14, 78, 100, .14);
  border-radius: 12px;
  background: rgba(255,255,255,.88);
  padding: 8px;
}

#forms .answer-text-input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(11, 60, 79, .17);
  border-radius: 10px;
  background: rgba(255,255,255,.94);
  color: #123647;
  padding: 9px 10px;
  font-family: inherit;
}

#forms .answer-risk-dots {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 0 4px;
}

#forms .answer-risk-dots::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d94f57 0%, #f08a8d 25%, #f2c94c 50%, #89d4a3 75%, #31b66a 100%);
  opacity: .45;
}

#forms .answer-risk-dots input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(27, 77, 98, .45);
  background: #e6f0f4;
  position: relative;
  z-index: 1;
  cursor: pointer;
  margin: 0;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

#forms .answer-risk-dots input[type="radio"][value="cok_riskli"] { border-color: #d94f57; background: #f9dde0; }
#forms .answer-risk-dots input[type="radio"][value="orta_riskli"] { border-color: #f08a8d; background: #fdecee; }
#forms .answer-risk-dots input[type="radio"][value="normal"] { border-color: #f2c94c; background: #fff7de; }
#forms .answer-risk-dots input[type="radio"][value="az_riskli"] { border-color: #89d4a3; background: #e9f7ee; }
#forms .answer-risk-dots input[type="radio"][value="risksiz"] { border-color: #31b66a; background: #e5f8ee; }

#forms .answer-risk-dots input[type="radio"]::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: #173848;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .16s ease, transform .16s ease;
}

#forms .answer-risk-dots input[type="radio"]:checked {
  transform: translateY(-1px) scale(1.08);
  box-shadow: 0 8px 14px rgba(18, 76, 98, .24);
}

#forms .answer-risk-dots input[type="radio"]:checked::after {
  opacity: 1;
  transform: scale(1);
}

#forms .answer-risk-dots input[type="radio"]:focus-visible {
  outline: 3px solid rgba(45, 154, 183, .35);
  outline-offset: 2px;
}

#forms .answer-remove-btn {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(200, 83, 92, .38);
  background: rgba(239, 90, 99, .12);
  color: #a3353e;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
}

#forms .answer-remove-btn:hover {
  background: rgba(239, 90, 99, .2);
}

#forms .answer-raw-debug {
  margin-top: 10px;
}

#forms .answer-raw-debug summary {
  cursor: pointer;
  color: #456b7a;
  font-weight: 700;
  font-size: .86rem;
}

#forms .answer-raw-debug textarea[data-answer-raw] {
  margin-top: 8px;
}

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

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

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

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

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

.admin-grid-4 button,
.admin-grid-5 button {
  align-self: end;
}

.admin-grid-6 button {
  align-self: end;
}

.admin-localized-note {
  margin: 0;
  padding: 0 4px;
  color: var(--surface-text-soft);
  font-size: .82rem;
  line-height: 1.5;
  font-weight: 600;
}

.admin-localized-field {
  display: grid;
  gap: 10px;
  padding: 12px 12px 14px;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-card), var(--surface-card-muted));
  box-shadow: var(--surface-shadow);
}

.admin-localized-head {
  display: grid;
  gap: 4px;
}

.admin-localized-head strong {
  font-size: .94rem;
  color: var(--surface-text);
}

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

.admin-localized-pair label,
.faq-order-field {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--surface-text);
}

.admin-localized-pair label span,
.faq-order-field span {
  font-size: .8rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--surface-text-soft);
}

.admin-localized-pair input,
.admin-localized-pair textarea {
  min-height: 40px;
}

.faq-create-card,
.faq-entry-card,
.announcement-create-card,
.announcement-entry-card,
.status-edit-card {
  padding: 14px;
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-card), var(--surface-card-muted));
  box-shadow: var(--surface-shadow);
}

.faq-create-card {
  margin-bottom: 14px;
}

.faq-entry-card {
  margin-top: 0;
}

.faq-admin-list {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.announcement-admin-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.announcement-entry-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.announcement-entry-emoji {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  background: linear-gradient(145deg, rgba(47, 151, 173, .12), rgba(29, 95, 124, .08));
  border: 1px solid var(--surface-hairline);
}

.announcement-entry-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.announcement-entry-copy strong {
  font-size: 1.02rem;
  color: var(--surface-text);
}

.announcement-entry-copy p {
  margin: 0;
  color: var(--surface-text-soft);
  line-height: 1.55;
}

.announcement-entry-badges {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.status-admin-grid {
  display: grid;
  gap: 14px;
  align-items: start;
}

.status-preview-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-card), var(--surface-card-muted));
  box-shadow: var(--surface-shadow);
}

.status-preview-label {
  display: inline-flex;
  align-self: flex-start;
  padding: 0 10px;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: rgba(47, 151, 173, .1);
  border: 1px solid var(--surface-hairline);
  color: var(--surface-text-soft);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-preview-emoji {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  font-size: 2rem;
  background: linear-gradient(145deg, rgba(47, 151, 173, .12), rgba(29, 95, 124, .06));
  border: 1px solid var(--surface-hairline);
}

.status-preview-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--surface-text);
}

.status-preview-body {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-elevated);
  color: var(--surface-text);
  line-height: 1.65;
}

.status-preview-note {
  color: var(--surface-text-soft);
  line-height: 1.55;
  font-size: .92rem;
}

.status-preview-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-edit {
  border-top: 0;
  padding-top: 0;
}

.faq-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.faq-order-field {
  max-width: 150px;
}

@media (max-width: 760px) {
  .admin-localized-pair {
    grid-template-columns: 1fr;
  }

  .faq-order-field {
    max-width: none;
  }
}

.inline-jump-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-risk-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.form-risk-card {
  border: 1px solid rgba(11,47,64,.11);
  border-radius: 14px;
  background: rgba(255,255,255,.7);
  padding: 12px;
}

.form-risk-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #173d4f;
}

.form-risk-card h4 small {
  color: #5f7b8a;
  font-weight: 700;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr .9fr;
  gap: 12px;
}

.analysis-card {
  border: 1px solid rgba(11,47,64,.11);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.84), rgba(244,251,255,.78));
  padding: 14px;
  box-shadow: 0 14px 26px rgba(10, 47, 64, .08);
}

.analysis-card h3 {
  margin: 0 0 10px;
  color: #173d4f;
  font-size: 1.05rem;
}

.analysis-summary {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(47,151,173,.26);
  background: linear-gradient(145deg, rgba(47,151,173,.12), rgba(29,95,124,.08));
  color: #264a5c;
  line-height: 1.55;
}

.risk-donut {
  width: 170px;
  height: 170px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background:
    conic-gradient(
      #29b47f 0 calc(var(--a) * 1%),
      #4aa8ff calc(var(--a) * 1%) calc((var(--a) + var(--b)) * 1%),
      #f3b94b calc((var(--a) + var(--b)) * 1%) calc((var(--a) + var(--b) + var(--c)) * 1%),
      #ef5a63 calc((var(--a) + var(--b) + var(--c)) * 1%) 100%
    );
  display: grid;
  place-items: center;
}

.risk-donut.modern {
  background:
    conic-gradient(
      #ef5a63 0 calc(var(--r1) * 1%),
      #f39846 calc(var(--r1) * 1%) calc((var(--r1) + var(--r2)) * 1%),
      #6ca6ff calc((var(--r1) + var(--r2)) * 1%) calc((var(--r1) + var(--r2) + var(--r3)) * 1%),
      #42c28b calc((var(--r1) + var(--r2) + var(--r3)) * 1%) calc((var(--r1) + var(--r2) + var(--r3) + var(--r4)) * 1%),
      #2fa3ad calc((var(--r1) + var(--r2) + var(--r3) + var(--r4)) * 1%) 100%
    );
}

.risk-donut-core {
  width: 66%;
  height: 66%;
  border-radius: 50%;
  background: #f8feff;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #184255;
  text-align: center;
  padding: 6px;
}

.analysis-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.analysis-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2f4f5f;
  font-weight: 600;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot.low { background: #29b47f; }
.dot.medium { background: #4aa8ff; }
.dot.high { background: #f3b94b; }
.dot.critical { background: #ef5a63; }
.dot.cok_riskli { background: #ef5a63; }
.dot.orta_riskli { background: #f39846; }
.dot.normal { background: #6ca6ff; }
.dot.az_riskli { background: #42c28b; }
.dot.risksiz { background: #2fa3ad; }

.benford-grid {
  display: grid;
  gap: 7px;
}

.benford-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.benford-score-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .8rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.benford-score-chip.is-good {
  background: rgba(66, 194, 139, .15);
  border-color: rgba(66, 194, 139, .35);
  color: #1f7f59;
}

.benford-score-chip.is-medium {
  background: rgba(243, 152, 70, .15);
  border-color: rgba(243, 152, 70, .35);
  color: #965012;
}

.benford-score-chip.is-low {
  background: rgba(239, 90, 99, .15);
  border-color: rgba(239, 90, 99, .35);
  color: #a22f37;
}

.benford-legend {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  gap: 6px;
}

.benford-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #385768;
  font-size: .88rem;
  font-weight: 600;
}

.swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.swatch-expected {
  background: rgba(47,151,173,.95);
}

.swatch-actual {
  background: rgba(239,90,99,.95);
}

.swatch-diff {
  background: linear-gradient(90deg, rgba(47,151,173,.95), rgba(239,90,99,.95));
}

.benford-row {
  display: grid;
  grid-template-columns: 18px 1fr 46px;
  gap: 8px;
  align-items: center;
}

.benford-row .digit {
  font-weight: 800;
  color: #173d4f;
}

.bar-wrap {
  position: relative;
  height: 16px;
  border-radius: 8px;
  background: rgba(11,47,64,.08);
  overflow: hidden;
}

.bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 8px;
}

.bar.expected {
  background: rgba(47,151,173,.35);
}

.bar.actual {
  background: rgba(239,90,99,.68);
  mix-blend-mode: multiply;
}

.analysis-kpi-list {
  display: grid;
  gap: 8px;
}

.analysis-formula-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}

.analysis-formula-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(11,47,64,.11);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(240,248,252,.82));
  box-shadow: 0 12px 24px rgba(11,47,64,.08);
}

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

.analysis-formula-card-head h4 {
  margin: 0;
  color: #143a4d;
  font-size: 1.03rem;
}

.analysis-formula-card-head strong {
  color: #155a72;
  font-size: 1.05rem;
  white-space: nowrap;
}

.analysis-formula-expression {
  margin: 0;
  color: #355668;
  font-weight: 700;
  line-height: 1.55;
}

.analysis-formula-components {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #4d6c7d;
  font-size: .92rem;
  font-weight: 600;
}

.analysis-response-head {
  margin-top: 18px;
}

.analysis-response-filter-bar {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.response-analysis-table {
  min-width: 1520px;
}

.analysis-records-card {
  overflow: hidden;
}

.analysis-record-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(11,47,64,.11);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.84), rgba(241,249,253,.76));
  box-shadow: 0 10px 24px rgba(11,47,64,.08);
}

.analysis-record-filter-bar label {
  display: grid;
  gap: 6px;
  color: #244657;
  font-weight: 700;
  font-size: .9rem;
}

.analysis-record-filter-bar input,
.analysis-record-filter-bar select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(11,47,64,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.95);
  padding: 8px 10px;
}

.analysis-record-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 78, 99, .14);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(238,247,251,.72));
}

.analysis-record-table-wrap {
  overflow: auto;
  border-radius: 14px;
}

.analysis-record-table {
  min-width: 1260px;
}

.analysis-record-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(145deg, rgba(234,246,251,.98), rgba(223,239,247,.98));
  color: #173f51;
}

.analysis-record-table tbody tr:nth-child(odd) {
  background: rgba(255,255,255,.84);
}

.analysis-record-table tbody tr:nth-child(even) {
  background: rgba(241,249,253,.76);
}

.analysis-record-table tbody tr:hover {
  background: rgba(226,244,250,.95);
}

.analysis-record-table tbody tr[data-analysis-record-empty-row] td {
  text-align: center;
  color: #577381;
  font-weight: 700;
}

.benford-table-wrap {
  margin-top: 10px;
}

.benford-table {
  min-width: 620px;
}

.benford-row-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .76rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.benford-row-chip.is-good {
  background: rgba(66, 194, 139, .15);
  border-color: rgba(66, 194, 139, .35);
  color: #1f7f59;
}

.benford-row-chip.is-medium {
  background: rgba(243, 152, 70, .15);
  border-color: rgba(243, 152, 70, .35);
  color: #965012;
}

.benford-row-chip.is-low {
  background: rgba(239, 90, 99, .15);
  border-color: rgba(239, 90, 99, .35);
  color: #a22f37;
}

.analysis-filter-form {
  margin-bottom: 14px;
  border: 1px solid rgba(11,47,64,.11);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(241,249,253,.74));
  box-shadow: 0 10px 24px rgba(11,47,64,.08);
}

.analysis-filter-form button {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #ecfdff;
  border: 0;
  min-height: 42px;
}

.analysis-filter-form label {
  font-size: .9rem;
}

.analysis-period-chip {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(47,151,173,.13);
  border: 1px solid rgba(47,151,173,.28);
  color: #1d5a72;
  font-weight: 700;
}

.analysis-kpi-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.analysis-kpi-box {
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  padding: 10px;
  display: grid;
  gap: 6px;
}

.analysis-kpi-box span {
  color: #567282;
  font-weight: 700;
  font-size: .82rem;
}

.analysis-kpi-box strong {
  color: #11384a;
  font-size: 1.35rem;
}

.trend-grid {
  display: grid;
  gap: 8px;
}

.trend-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
}

.trend-month {
  color: #365667;
  font-weight: 700;
  font-size: .8rem;
}

.trend-bars {
  border: 1px solid rgba(11,47,64,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.64);
  padding: 7px;
  display: flex;
  gap: 7px;
  align-items: center;
}

.trend-bars.detailed {
  display: grid;
  gap: 8px;
}

.trend-bar {
  height: 8px;
  border-radius: 999px;
  min-width: 8px;
}

.trend-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.trend-metric small {
  color: #4f7180;
  font-weight: 800;
  font-size: .77rem;
}

.trend-bar.lead {
  background: linear-gradient(90deg, #2f97ad, #1d5f7c);
}

.trend-bar.opp {
  background: linear-gradient(90deg, #4f86ff, #3459c8);
}

.trend-bar.sale {
  background: linear-gradient(90deg, #42c28b, #2a8d62);
}

.company-analysis-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.company-analysis-card {
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  padding: 12px;
}

.company-analysis-card h4 {
  margin: 0 0 10px;
  color: #153e50;
}

.company-analysis-card p {
  margin: 4px 0;
  color: #456373;
}

.analysis-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 14px;
}

.portal-quota-meta {
  justify-content: flex-end;
}

.analysis-mini-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(47,151,173,.12);
  border: 1px solid rgba(47,151,173,.24);
  color: #1e5a72;
  font-size: .8rem;
  font-weight: 800;
}

.portal-stage {
  gap: 14px;
  align-content: start;
}

.portal-hero-card {
  overflow: hidden;
}

.portal-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.portal-page-head h2 {
  margin-bottom: 6px;
}

.portal-page-head-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.portal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(47,151,173,.22);
  background: rgba(47,151,173,.08);
  color: #1e5a72;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.portal-company-badge {
  min-width: 280px;
  justify-content: flex-start;
}

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

.portal-stat-grid-compact {
  margin-top: 0;
}

.portal-shortcuts {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-columns {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.portal-company-card {
  position: sticky;
  top: 14px;
}

.portal-company-kpis {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-forms-card {
  min-width: 0;
}

.portal-warning-banner {
  border-radius: 16px;
  border: 1px solid rgba(244, 63, 94, .24);
  background: rgba(244, 63, 94, .08);
  padding: 14px 16px;
  color: #9f1239;
  box-shadow: 0 12px 22px rgba(10, 47, 64, .06);
}

.portal-warning-banner strong {
  display: block;
  margin-bottom: 4px;
}

.portal-warning-banner p {
  margin: 0;
  color: #9f1239;
}

.portal-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.portal-form-grid-compact {
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
  gap: 10px;
}

.portal-manager-forms-grid {
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 10px;
}

.portal-form-list {
  display: grid;
  gap: 10px;
}

.portal-form-card {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 11px;
  border-radius: 14px;
  border: 1px solid rgba(11,47,64,.12);
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(244,251,255,.88));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 26px rgba(10, 47, 64, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.portal-manager-form-card {
  min-height: 112px;
  gap: 6px;
  padding: 12px;
}

.portal-manager-form-card .portal-form-card-head {
  align-items: flex-start;
}

.portal-manager-form-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  color: #4e7382;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-manager-form-alias {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(47,151,173,.12);
  border: 1px solid rgba(47,151,173,.18);
  color: #1f5f75;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.portal-form-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(10, 47, 64, .1);
}

.portal-form-card.is-new {
  border-color: rgba(235, 77, 99, .28);
  background: linear-gradient(145deg, rgba(255,247,248,.96), rgba(255,255,255,.9));
}

.portal-form-card.is-open {
  border-color: rgba(245, 158, 11, .28);
  background: linear-gradient(145deg, rgba(255,249,238,.96), rgba(255,255,255,.9));
}

.portal-form-card.is-complete {
  border-color: rgba(34, 197, 94, .28);
  background: linear-gradient(145deg, rgba(240,255,246,.96), rgba(255,255,255,.9));
}

.portal-form-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.portal-form-card-head h4 {
  margin: 0;
  color: #153e50;
  font-size: .94rem;
}

.portal-form-head-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-form-new-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(235, 77, 99, .12);
  border: 1px solid rgba(235, 77, 99, .24);
  color: #b43742;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.portal-form-card-head p {
  margin: 4px 0 0;
  color: #5b7581;
  font-size: .82rem;
}

.portal-form-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-form-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(47,151,173,.08);
  border: 1px solid rgba(47,151,173,.16);
  color: #315769;
  font-size: .76rem;
}

.portal-form-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #4b6776;
}

.portal-form-card-footer small {
  line-height: 1.5;
  font-size: .82rem;
}

.quota-summary {
  display: grid;
  gap: 4px;
}

.quota-summary strong {
  color: #163f51;
  font-size: .92rem;
}

.quota-summary small {
  color: #5f7b89;
  font-size: .78rem;
  line-height: 1.3;
}

.admin-settings-rotation-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(11,47,64,.12);
  background: linear-gradient(155deg, rgba(255,255,255,.92), rgba(240,249,253,.78));
  box-shadow: 0 12px 24px rgba(11, 47, 64, .08);
}

.admin-settings-rotation-form {
  margin-top: 12px;
  grid-template-columns: minmax(0, 160px) minmax(0, 170px) minmax(0, 1fr) auto;
  align-items: end;
}

.admin-settings-rotation-note {
  align-self: end;
  color: #5c7988;
  font-size: .86rem;
  line-height: 1.5;
}

.portal-form-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #2f97ad;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: .82rem;
  box-shadow: 0 8px 16px rgba(47, 151, 173, .28);
}

.portal-empty-state {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(47,151,173,.28);
  background: rgba(47,151,173,.06);
  color: #355a6b;
}

.admin-user-identity {
  display: grid;
  gap: 4px;
}

.admin-user-identity strong {
  color: #173848;
  font-size: .94rem;
}

.admin-user-identity small {
  color: #668291;
  font-size: .74rem;
  line-height: 1.4;
}

.password-hash {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: .84rem;
  letter-spacing: .01em;
  word-break: break-all;
  color: #173848;
}

.admin-user-editor {
  display: grid;
  gap: 14px;
  margin: 10px 0 16px;
}

.admin-user-editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-user-editor-actions.full {
  grid-column: 1 / -1;
  justify-content: space-between;
}

.admin-user-editor-actions form {
  margin: 0;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-row-actions form {
  margin: 0;
}

.admin-row-link,
.admin-danger-btn {
  min-height: 36px;
  padding: 0 12px;
}

.admin-danger-btn {
  color: #b42347;
  border-color: rgba(180, 35, 71, .22);
  background: rgba(244, 63, 94, .08);
}

.admin-danger-btn:hover {
  background: rgba(244, 63, 94, .14);
}

.portal-manager-user-grid {
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portal-manager-user-card {
  overflow: hidden;
  padding: 12px;
  border-radius: 14px;
}

.portal-manager-edit-form {
  display: grid;
  gap: 10px;
}

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

.portal-manager-edit-form label {
  display: grid;
  gap: 6px;
  color: #24495a;
  font-weight: 800;
}

.portal-manager-edit-form span {
  color: #4d6b79;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.portal-manager-edit-form input {
  width: 100%;
  border: 1px solid rgba(11,47,64,.14);
  border-radius: 11px;
  padding: 10px 12px;
  background: #fff;
  color: #173848;
  font: inherit;
  font-size: .92rem;
  outline: none;
}

.portal-manager-edit-form input:focus {
  border-color: rgba(47,151,173,.34);
  box-shadow: 0 0 0 4px rgba(47,151,173,.08);
}

.portal-manager-users-list {
  align-content: start;
}

.portal-manager-user-card .portal-form-card-meta {
  margin-top: 2px;
}

.portal-manager-create-form {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(11,47,64,.12);
  background: linear-gradient(155deg, rgba(255,255,255,.94), rgba(241,249,253,.82));
  box-shadow: 0 12px 24px rgba(10, 47, 64, .06);
}

.portal-manager-create-form label {
  gap: 5px;
}

.portal-manager-create-form span {
  font-size: .74rem;
}

.portal-manager-create-form input {
  min-height: 40px;
  padding: 10px 12px;
  font-size: .92rem;
}

.portal-manager-create-form .main-btn {
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  font-size: .92rem;
  justify-self: start;
}

.portal-settings-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
}

.portal-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 14px;
  align-items: start;
}

.portal-manager-layout {
  align-items: stretch;
}

.portal-manager-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-manager-note-stack {
  display: grid;
  gap: 10px;
}

.portal-manager-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-settings-form {
  display: grid;
  gap: 10px;
}

.portal-settings-form label {
  display: grid;
  gap: 6px;
  color: #24495a;
  font-weight: 800;
}

.portal-secret-field {
  display: grid;
  gap: 6px;
}

.portal-settings-form span {
  color: #4d6b79;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.portal-settings-form input {
  width: 100%;
  border: 1px solid rgba(11,47,64,.14);
  border-radius: 11px;
  padding: 10px 42px 10px 12px;
  background: #fff;
  color: #173848;
  font: inherit;
  font-size: .92rem;
  outline: none;
}

.portal-settings-form input:focus {
  border-color: rgba(47,151,173,.34);
  box-shadow: 0 0 0 4px rgba(47,151,173,.08);
}

.portal-secret-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.portal-secret-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(47,151,173,.18);
  background: rgba(47,151,173,.08);
  color: #1e5a72;
  cursor: pointer;
  font-size: .9rem;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.portal-secret-toggle:hover {
  transform: translateY(-50%) scale(1.04);
  border-color: rgba(47,151,173,.28);
  background: rgba(47,151,173,.14);
}

.portal-secret-toggle.is-active {
  background: rgba(47,151,173,.16);
}

.portal-settings-note {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(47,151,173,.16);
  background: rgba(47,151,173,.06);
  color: #355a6b;
  line-height: 1.5;
  font-size: .88rem;
}

.portal-general-settings-card {
  background: linear-gradient(145deg, rgba(247,251,255,.98), rgba(238,247,251,.84));
}

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

.portal-setting-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(47,151,173,.14);
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 20px rgba(10, 47, 64, .05);
}

.portal-setting-preview span {
  color: #6b8693;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-setting-preview strong {
  color: #173848;
  font-size: .96rem;
}

.portal-setting-preview p {
  margin: 0;
  color: #56707e;
  line-height: 1.5;
  font-size: .84rem;
}

.portal-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-ghost-toggle {
  border: 1px solid rgba(47,151,173,.16);
  background: rgba(47,151,173,.06);
  color: #1f5e74;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  cursor: default;
}

.portal-ghost-toggle.is-active {
  background: linear-gradient(135deg, #2f97ad, #24738a);
  color: #fff;
  box-shadow: 0 10px 18px rgba(47, 151, 173, .22);
}

.portal-forms-head {
  gap: 14px;
}

.portal-forms-tools {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-form-search {
  display: grid;
  gap: 6px;
  min-width: min(320px, 100%);
}

.portal-form-search span {
  color: #4d6b79;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-form-search input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-elevated);
  padding: 11px 13px;
  color: var(--surface-text);
  font: inherit;
  outline: none;
}

.portal-form-search input:focus {
  border-color: rgba(47,151,173,.34);
  box-shadow: 0 0 0 4px rgba(47,151,173,.08);
}

.portal-form-stage {
  gap: 14px;
}

.portal-form-shell {
  display: grid;
  gap: 14px;
  padding: 2px;
}

.portal-form-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.portal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #1e5a72;
  text-decoration: none;
  font-weight: 800;
}

.portal-form-state-wrap {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.portal-form-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.portal-form-meta-box {
  border-radius: 14px;
  border: 1px solid rgba(11,47,64,.12);
  background: rgba(247,250,252,.96);
  padding: 11px 12px;
}

.portal-form-meta-box span {
  display: block;
  margin-bottom: 5px;
  color: #6b8693;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-form-meta-box strong {
  color: #173848;
}

.portal-complete-banner {
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, .24);
  background: rgba(34, 197, 94, .08);
  color: #1f5e44;
  padding: 12px 14px;
}

.portal-complete-banner p {
  margin: 4px 0 0;
}

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

.portal-question-card {
  border-radius: 18px;
  border: 1px solid rgba(11,47,64,.12);
  background: rgba(255,255,255,.96);
  padding: 16px;
  box-shadow: 0 10px 18px rgba(10, 47, 64, .05);
}

.portal-question-head h3 {
  margin: 0;
  color: #153e50;
  font-size: 1.02rem;
}

.portal-question-head p {
  margin: 5px 0 0;
  color: #5d7581;
}

.portal-answer-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.portal-answer-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid rgba(47,151,173,.14);
  background: rgba(247,251,253,.96);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.portal-answer-option:hover {
  transform: translateY(-1px);
  border-color: rgba(47,151,173,.28);
  background: rgba(47,151,173,.08);
}

.portal-answer-option input {
  accent-color: #2f97ad;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.portal-answer-option.is-selected {
  border-color: rgba(47,151,173,.34);
  background: rgba(47,151,173,.12);
  box-shadow: 0 10px 18px rgba(47,151,173,.12);
}

.portal-answer-option span {
  color: #274b5b;
  font-weight: 700;
}

.portal-answer-option input:disabled + span {
  color: #4d6876;
}

.portal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

@media (max-width: 1200px) {
  .portal-columns {
    grid-template-columns: 1fr;
  }

  .portal-company-card {
    position: static;
  }

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

@media (max-width: 980px) {
  .portal-stat-grid,
  .portal-form-meta-grid,
  .portal-answer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .portal-manager-edit-grid {
    grid-template-columns: 1fr;
  }

  .admin-settings-rotation-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .portal-page-head,
  .portal-hero-head,
  .portal-forms-head,
  .portal-form-top,
  .portal-form-actions,
  .portal-form-card-head,
  .portal-form-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-forms-tools {
    align-items: stretch;
  }

  .portal-form-search {
    min-width: 0;
    width: 100%;
  }

  .portal-manager-input-grid {
    grid-template-columns: 1fr;
  }

  .portal-form-state-wrap {
    justify-items: start;
    text-align: left;
  }

  .portal-stat-grid,
  .portal-form-meta-grid,
  .portal-answer-grid,
  .portal-shortcuts,
  .portal-form-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-user-editor-actions.full {
    grid-column: auto;
    justify-content: flex-start;
  }

}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
  color: #4a6a7a;
  font-size: .82rem;
  font-weight: 700;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trend-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.trend-legend-dot.lead {
  background: linear-gradient(90deg, #2f97ad, #1d5f7c);
}

.trend-legend-dot.opp {
  background: linear-gradient(90deg, #4f86ff, #3459c8);
}

.trend-legend-dot.sale {
  background: linear-gradient(90deg, #42c28b, #2a8d62);
}

.analysis-empty-state {
  margin-top: 8px;
  border: 1px dashed rgba(14, 77, 98, .22);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.8), rgba(238,247,251,.7));
  padding: 18px;
}

.analysis-empty-state h4 {
  margin: 0 0 6px;
  color: #174153;
}

.analysis-empty-state p {
  margin: 0;
  color: #577381;
  line-height: 1.55;
}

.kpi-row {
  gap: 12px;
}

.kpi-row small {
  color: #577180;
  font-size: .8rem;
  font-weight: 700;
}

.analysis-card-advanced {
  overflow: hidden;
}

.analysis-advanced-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.analysis-export-btn {
  white-space: nowrap;
}

.analysis-export-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.analysis-library-fallback {
  margin: 0 0 14px;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(243, 156, 18, .14);
  border: 1px solid rgba(243, 156, 18, .3);
  color: #7a5109;
  font-weight: 700;
}

.advanced-analysis-shell {
  display: grid;
  gap: 14px;
}

.analysis-chart-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .9fr);
  gap: 14px;
  align-items: start;
}

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

.analysis-chart-card {
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(240,248,252,.86));
  box-shadow: 0 12px 24px rgba(10, 47, 64, .08);
  padding: 14px;
}

.analysis-chart-card.hero-span {
  min-height: 100%;
}

.analysis-chart-card-head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.analysis-chart-card-head strong {
  color: #163f51;
}

.analysis-chart-card-head span {
  color: #587482;
  font-size: .84rem;
  line-height: 1.45;
}

.analysis-chart-canvas {
  width: 100%;
  min-height: 320px;
}

.analysis-chart-canvas.tall {
  min-height: 380px;
}

.analysis-pivot-canvas {
  min-height: 380px;
  width: 100%;
}

.analysis-pivot-canvas .wdr-grid-layout,
.analysis-pivot-canvas .wdr-ui {
  border-radius: 14px;
  overflow: hidden;
}

.help-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}

.help-link-card {
  display: grid;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.84), rgba(239,248,252,.76));
  padding: 14px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.help-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 110, 138, .24);
  box-shadow: 0 14px 24px rgba(11,47,64,.08);
}

.help-link-card strong {
  color: #163f51;
}

.help-link-card span {
  color: #567282;
  line-height: 1.5;
}

.subscription-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: start;
}

.subscription-card-panel {
  border: 1px solid rgba(12, 72, 94, .12);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255,255,255,.94), rgba(239,248,252,.84));
  box-shadow: 0 14px 28px rgba(10, 47, 64, .08);
  padding: 16px;
}

.subscription-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.subscription-plan-card {
  --brand-color: #2f97ad;
  border: 1px solid rgba(12, 72, 94, .12);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  padding: 14px;
}

.subscription-plan-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.subscription-plan-head p {
  margin: 4px 0 0;
  color: #5a7482;
  line-height: 1.5;
}

.subscription-plan-head strong {
  color: var(--brand-color);
}

.subscription-plan-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand-color) 18%, white), color-mix(in srgb, var(--brand-color) 16%, white));
  font-size: 1.5rem;
  flex: 0 0 48px;
}

.subscription-benefit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .8rem;
  font-weight: 700;
  color: #1b556c;
  background: rgba(47,151,173,.12);
  border: 1px solid rgba(47,151,173,.22);
}

.plan-chip.muted {
  color: #667f8d;
  background: rgba(11,47,64,.06);
  border-color: rgba(11,47,64,.1);
}

.subscription-empty {
  margin: 0;
  color: #5f7a88;
}

.subscription-table-panel {
  grid-column: 1 / -1;
  overflow: hidden;
}

.subscription-table select,
.subscription-table input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(11,47,64,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  color: #123a4b;
  padding: 8px 10px;
}

.subscription-table-meta {
  margin-top: 8px;
}

.subscription-table-meta .plan-chip {
  --brand-color: #2f97ad;
}

.subscription-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kpi-row {
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  padding: 9px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.kpi-row span {
  color: #254657;
  font-weight: 600;
}

.kpi-row strong {
  color: #0e3a4f;
}

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

  .admin-split-grid,
  .overview-grid,
  .overview-shortcuts,
  .section-jump-grid,
  .forms-filter-bar,
  .subscriptions-filter-bar,
  .subscription-row-filter-bar,
  .assignment-filter-bar,
  .assignment-create-grid,
  .admin-grid-4,
  .admin-grid-3,
  .admin-grid-5,
  .admin-grid-6,
  .analysis-kpi-cards,
  .analysis-formula-grid,
  .company-analysis-grid,
  .analysis-grid,
  .analysis-chart-grid,
  .help-link-grid,
  .subscription-plan-grid,
  .subscription-layout {
    grid-template-columns: 1fr;
  }

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

  .analysis-record-filter-bar,
  .analysis-response-filter-bar,
  .analysis-record-pager {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .analysis-formula-card-head {
    flex-direction: column;
  }

  .subscription-pager,
  .subscription-table-pager,
  .assignment-log-pager {
    flex-direction: column;
    align-items: flex-start;
  }

  .subscription-pager .forms-pager-actions,
  .subscription-table-pager .forms-pager-actions,
  .assignment-log-pager .forms-pager-actions {
    width: 100%;
    justify-content: space-between;
  }

  .analysis-record-pager .forms-pager-actions {
    width: 100%;
    justify-content: space-between;
  }

  .analysis-record-pager .pager-info {
    width: 100%;
    text-align: left;
  }

  .assignment-log-pager .pager-info {
    width: 100%;
    text-align: left;
  }

  .assignment-browser-head {
    flex-direction: column;
  }

  .assignment-browser-head span {
    text-align: left;
  }

  .assignment-form-chip-list {
    grid-template-columns: 1fr;
  }

  .analysis-advanced-head {
    flex-direction: column;
  }

  .analysis-export-btn {
    width: 100%;
    justify-content: center;
  }

  .risk-donut {
    width: 140px;
    height: 140px;
  }

  #forms .form-risk-note {
    grid-column: span 1;
  }

  #forms .answer-risk-row {
    grid-template-columns: 1fr;
  }

  #forms .answer-remove-btn {
    justify-self: start;
  }

  .forms-filter-bar {
    grid-template-columns: 1fr;
  }

  .benefit-editor-input {
    grid-template-columns: 1fr;
  }
}

html.js-enabled .page {
  opacity: 0;
  transform: translateY(10px) scale(0.996);
  transition: opacity .26s ease, transform .3s ease;
}

html.js-enabled body.page-ready .page {
  opacity: 1;
  transform: translateY(0) scale(1);
}

html.js-enabled body.page-leave .page {
  opacity: 0;
  transform: translateY(-8px) scale(0.994);
}

html.js-enabled body.page-leave .left-rail {
  opacity: .92;
  filter: saturate(.9);
}

.contact-hub {
  width: min(1080px, 96vw);
  margin-inline: auto;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(240,248,252,.9));
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 24px 42px rgba(11,47,64,.18);
  padding: clamp(18px, 2.6vw, 28px);
  animation: cardLift .45s ease both;
}

.contact-header h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
}

.contact-lead {
  max-width: 64ch;
  line-height: 1.55;
}

.contact-switch {
  margin-top: 16px;
  display: inline-flex;
  gap: 8px;
  background: rgba(11,47,64,.08);
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 999px;
  padding: 6px;
}

.help-switch {
  margin-top: 0;
  margin-bottom: 14px;
}

.contact-switch-btn {
  border: 0;
  background: transparent;
  color: #244454;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.contact-switch-btn:hover {
  transform: translateY(-1px);
}

.contact-switch-btn.active {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #ecfdff;
  box-shadow: 0 8px 16px rgba(26, 95, 120, .28);
}

.contact-panels {
  margin-top: 14px;
  position: relative;
}

.contact-panel {
  border-radius: 18px;
  border: 1px solid rgba(11,47,64,.1);
  background: rgba(255,255,255,.78);
  padding: clamp(14px, 1.5vw, 20px);
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.contact-panel.active {
  display: block;
  animation: panelIn .32s ease forwards;
}

.contact-panel h3 {
  margin: 0 0 6px;
  color: var(--ink);
}

.contact-panel > p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

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

.elegant-form.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 10px;
  align-items: start;
}

.elegant-form .form-field {
  display: grid;
  gap: 6px;
}

.elegant-form .form-field.full,
.elegant-form .form-submit.full {
  grid-column: 1 / -1;
}

.elegant-form label {
  font-weight: 600;
  color: #315365;
  margin-top: 0;
}

.elegant-form input,
.elegant-form textarea,
.elegant-form select {
  width: 100%;
  border: 1px solid rgba(11,47,64,.14);
  border-radius: 13px;
  background: rgba(255,255,255,.95);
  padding: 11px 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.elegant-form input:focus,
.elegant-form textarea:focus,
.elegant-form select:focus {
  outline: none;
  border-color: rgba(47,151,173,.42);
  box-shadow: 0 0 0 4px rgba(47,151,173,.15);
}

.elegant-form textarea {
  min-height: 110px;
  resize: vertical;
}

.elegant-form .login-btn {
  margin-top: 4px;
}

.role-multi-field {
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 12px;
  padding: 8px 10px;
  margin: 0;
  display: grid;
  gap: 8px;
}

.role-multi-field legend {
  padding: 0 6px;
  color: #2c4d5e;
  font-weight: 700;
}

.role-multi-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3c5a69;
  font-weight: 600;
}

.assignment-browser {
  display: grid;
  gap: 12px;
}

.assignment-browser-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(11,47,64,.11);
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(241,249,253,.76));
}

.assignment-browser-head strong {
  color: #163f51;
}

.assignment-browser-head span {
  color: #5a7482;
  line-height: 1.5;
  text-align: right;
}

.assignment-category-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-gutter: stable;
}

.assignment-category-card {
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(10, 47, 64, .06);
}

.assignment-category-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  color: #173d4f;
  font-weight: 800;
  background: linear-gradient(145deg, rgba(244,250,253,.95), rgba(232,244,250,.78));
}

.assignment-category-card summary::-webkit-details-marker {
  display: none;
}

.assignment-category-card summary span {
  color: #5b7684;
  font-size: .8rem;
}

.assignment-form-chip-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 8px;
  padding: 10px 12px 12px;
  max-height: 240px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.assignment-form-chip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(11,47,64,.12);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(243,250,253,.72));
  cursor: pointer;
}

.assignment-form-chip input {
  margin-top: 4px;
}

.assignment-form-chip strong {
  display: block;
  color: #163f51;
  line-height: 1.35;
  font-size: .88rem;
}

.assignment-form-chip small {
  display: block;
  margin-top: 4px;
  color: #5f7b89;
  font-size: .75rem;
}

.assignment-category-search {
  max-width: 420px;
}

.assignment-category-search input {
  min-height: 38px;
  border: 1px solid rgba(11,47,64,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.95);
  padding: 8px 10px;
}

.assignment-category-search + .assignment-category-list {
  margin-top: 2px;
}

.assignment-category-list .assignment-empty[data-chip-search-empty] {
  padding: 6px 2px 0;
  color: #5c7886;
}

.assignment-category-copy {
  display: grid;
  gap: 3px;
}

.assignment-category-copy strong {
  font-size: .94rem;
}

.assignment-category-copy span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.subscription-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 78, 99, .14);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(238,247,251,.72));
}

.subscription-pager label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #214b5d;
  font-size: .92rem;
  font-weight: 700;
}

.subscription-pager select {
  min-width: 76px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(12, 64, 83, .2);
  background: rgba(255,255,255,.92);
  color: #123f50;
  font-weight: 700;
  padding: 6px 10px;
}

.subscription-pager .forms-pager-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.subscription-pager .pager-info {
  min-width: 160px;
  text-align: center;
  color: #2b5567;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.subscription-pager .ghost-btn {
  min-height: 36px;
  padding: 0 12px;
}

.subscription-pager .ghost-btn:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.subscription-table-pager {
  margin: 0 0 12px;
  flex-wrap: wrap;
}

.subscription-table-pager label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #214b5d;
  font-size: .92rem;
  font-weight: 700;
}

.subscription-table-pager select {
  min-width: 76px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(12, 64, 83, .2);
  background: rgba(255,255,255,.92);
  color: #123f50;
  font-weight: 700;
  padding: 6px 10px;
}

.subscription-table-pager .forms-pager-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.subscription-table-pager .pager-info {
  min-width: 160px;
  text-align: center;
  color: #2b5567;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.subscription-table-pager .ghost-btn {
  min-height: 36px;
  padding: 0 12px;
}

.assignment-log-pager {
  margin: 0 0 10px;
  flex-wrap: wrap;
}

.assignment-log-pager label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #214b5d;
  font-size: .92rem;
  font-weight: 700;
}

.assignment-log-pager select {
  min-width: 76px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(12, 64, 83, .2);
  background: rgba(255,255,255,.92);
  color: #123f50;
  font-weight: 700;
  padding: 6px 10px;
}

.assignment-log-pager .forms-pager-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.assignment-log-pager .pager-info {
  min-width: 160px;
  text-align: center;
  color: #2b5567;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.assignment-log-pager .ghost-btn {
  min-height: 36px;
  padding: 0 12px;
}

.subscription-table {
  min-width: 1120px;
}

.subscription-table tbody tr:nth-child(odd) {
  background: rgba(255,255,255,.82);
}

.subscription-table tbody tr:nth-child(even) {
  background: rgba(241,249,253,.76);
}

.subscription-table tbody tr:hover {
  background: rgba(226,244,250,.95);
}

.subscription-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.subscription-plan-card {
  --brand-color: #2f97ad;
  border: 1px solid rgba(12, 72, 94, .12);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  padding: 0;
  box-shadow: 0 10px 22px rgba(10, 47, 64, .08);
  overflow: clip;
}

.subscription-plan-trigger {
  align-items: start;
  padding: 14px 44px 14px 14px;
}

.subscription-plan-summary-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.subscription-plan-summary-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.subscription-plan-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand-color) 18%, white), color-mix(in srgb, var(--brand-color) 16%, white));
  font-size: 1.4rem;
  flex: 0 0 44px;
}

.subscription-plan-meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.subscription-plan-detail-form {
  display: grid;
  gap: 10px;
}

.subscription-plan-detail-form .faq-admin-actions {
  border-top: 1px solid rgba(11,47,64,.12);
  padding-top: 10px;
}

.subscription-plan-detail-form .faq-admin-actions {
  justify-content: flex-end;
}

.subscription-plan-detail-form .admin-danger-btn {
  border: 1px solid rgba(239,90,99,.24);
  background: rgba(239,90,99,.1);
  color: #a22f37;
}

#subscriptions .form-expand-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(10, 47, 64, .12);
}

#subscriptions .form-expand-card.is-open {
  transform: translateY(-2px) scale(1.005);
  border-color: rgba(33, 121, 150, .28);
  box-shadow: 0 18px 30px rgba(14, 67, 89, .16);
}

#subscriptions .form-expand-heading {
  margin: 0;
}

#subscriptions .form-expand-trigger {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #123647;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 4px;
  position: relative;
}

#subscriptions .form-expand-trigger strong {
  font-size: 1.02rem;
  color: #123b4d;
}

#subscriptions .form-expand-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .74rem;
  font-weight: 800;
  color: #255869;
  background: rgba(47, 151, 173, .14);
  border: 1px solid rgba(47, 151, 173, .24);
}

#subscriptions .form-expand-sub {
  color: #4f7180;
  font-size: .84rem;
  font-weight: 700;
}

#subscriptions .form-expand-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #1a5e77;
  border: 1px solid rgba(26, 94, 119, .3);
  background: rgba(255,255,255,.7);
  transition: transform .22s ease, background .22s ease, color .22s ease;
}

#subscriptions .form-expand-card.is-open .form-expand-icon {
  transform: translateY(-50%) rotate(45deg);
  color: #ecfdff;
  background: linear-gradient(90deg, #2f97ad, #1d5f7c);
  border-color: rgba(255,255,255,.15);
}

#subscriptions .form-expand-detail {
  height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 12px;
  transition: height .32s cubic-bezier(.26,.74,.28,.98), opacity .24s ease, padding .24s ease;
  will-change: height, opacity;
}

#subscriptions .form-expand-card.is-open .form-expand-detail {
  opacity: 1;
  padding: 12px;
}

#subscriptions .form-expand-card.is-open .faq-admin-actions {
  border-top-color: rgba(11,47,64,.12);
}

.assignment-empty {
  margin: 0;
  color: #5c7886;
  font-weight: 700;
}

@media (max-width: 960px) {
  .elegant-form.compact-grid {
    grid-template-columns: 1fr;
  }
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: .78rem;
  font-weight: 700;
}

.pill-contact {
  color: #0f4a60;
  background: rgba(47,151,173,.16);
  border: 1px solid rgba(47,151,173,.34);
}

.pill-feedback {
  color: #6a3f0b;
  background: rgba(243, 156, 18, .15);
  border: 1px solid rgba(243, 156, 18, .36);
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardLift {
  from { opacity: 0; transform: translateY(14px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}


/* Form listesi ve risk/not kartlari: tiklaninca buyuyen panel */
#forms .form-expand-grid {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

#forms .forms-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 78, 99, .14);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(238,247,251,.72));
}

#forms .forms-pager label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #214b5d;
  font-size: .92rem;
  font-weight: 700;
}

#forms .forms-pager select {
  min-width: 76px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(12, 64, 83, .2);
  background: rgba(255,255,255,.92);
  color: #123f50;
  font-weight: 700;
  padding: 6px 10px;
}

#forms .forms-pager-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#forms .forms-pager .pager-info {
  min-width: 160px;
  text-align: center;
  color: #2b5567;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .01em;
}

#forms .forms-pager .ghost-btn {
  min-height: 36px;
  padding: 0 12px;
}

#forms .forms-pager .ghost-btn:disabled {
  cursor: not-allowed;
  opacity: .5;
}

#forms .form-expand-card {
  border: 1px solid rgba(14, 77, 98, .16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(238,248,252,.74));
  box-shadow: 0 10px 22px rgba(10, 47, 64, .08);
  overflow: clip;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

#forms .form-expand-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(10, 47, 64, .12);
}

#forms .form-expand-card.is-open {
  transform: translateY(-2px) scale(1.005);
  border-color: rgba(33, 121, 150, .28);
  box-shadow: 0 18px 30px rgba(14, 67, 89, .16);
}

#forms .form-expand-heading {
  margin: 0;
}

#forms .form-expand-trigger {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #123647;
  text-align: left;
  cursor: pointer;
  padding: 14px 44px 14px 14px;
  display: grid;
  gap: 4px;
  position: relative;
}

#forms .form-expand-trigger strong {
  font-size: 1.03rem;
  color: #123b4d;
}

#forms .form-expand-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #255869;
  background: rgba(47, 151, 173, .14);
  border: 1px solid rgba(47, 151, 173, .24);
}

#forms .form-expand-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: #4f7180;
  font-size: .84rem;
  font-weight: 700;
}

#forms .form-expand-sub-meta {
  color: inherit;
}

#forms .form-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

#forms .form-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.56);
  font-size: .8rem;
  line-height: 1;
}

#forms .form-status-chip.is-draft {
  color: #8a5b08;
  background: rgba(245, 158, 11, .16);
  border-color: rgba(245, 158, 11, .28);
}

#forms .form-status-chip.is-draft .form-status-icon {
  background: rgba(245, 158, 11, .18);
}

#forms .form-status-chip.is-active {
  color: #166534;
  background: rgba(34, 197, 94, .15);
  border-color: rgba(34, 197, 94, .28);
}

#forms .form-status-chip.is-active .form-status-icon {
  background: rgba(34, 197, 94, .18);
}

#forms .form-status-chip.is-archived {
  color: #475569;
  background: rgba(100, 116, 139, .15);
  border-color: rgba(100, 116, 139, .28);
}

#forms .form-status-chip.is-archived .form-status-icon {
  background: rgba(100, 116, 139, .18);
}

#forms .form-status-summary,
#forms .forms-auto-status-note {
  border: 1px dashed rgba(47, 151, 173, .24);
  border-radius: 12px;
  background: rgba(255,255,255,.66);
  padding: 10px 12px;
}

#forms .form-status-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

#forms .form-status-summary .admin-muted {
  margin: 0;
}

#forms .forms-auto-status-note {
  margin: 0;
  color: #315365;
  line-height: 1.5;
}

#forms .form-expand-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #1a5e77;
  border: 1px solid rgba(26, 94, 119, .3);
  background: rgba(255,255,255,.7);
  transition: transform .22s ease, background .22s ease, color .22s ease;
}

#forms .form-expand-card.is-open .form-expand-icon {
  transform: translateY(-50%) rotate(45deg);
  color: #ecfdff;
  background: linear-gradient(90deg, #2f97ad, #1d5f7c);
  border-color: rgba(255,255,255,.15);
}

#forms .form-expand-detail {
  height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 12px;
  transition: height .32s cubic-bezier(.26,.74,.28,.98), opacity .24s ease, padding .24s ease;
  will-change: height, opacity;
}

#forms .form-expand-card.is-open .form-expand-detail {
  opacity: 1;
  padding: 12px;
}

#forms .form-expand-card.is-open .faq-edit {
  border-top-color: rgba(11,47,64,.12);
}
@media (max-width: 980px) {
  #forms .forms-pager {
    flex-direction: column;
    align-items: flex-start;
  }

  #forms .forms-pager-actions {
    width: 100%;
    justify-content: space-between;
  }

  #forms .forms-pager .pager-info {
    min-width: auto;
    flex: 1;
  }

  #forms .form-expand-trigger {
    padding-right: 40px;
  }

  #forms .form-expand-card.is-open {
    transform: none;
  }

  #forms .form-risk-question-card {
    grid-template-columns: 1fr;
  }

  #forms .form-risk-question-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.theme-night {
  color-scheme: dark;
  --bg-0: #071019;
  --bg-1: #0c1822;
  --bg-2: #112534;
  --ink: #ecf7fb;
  --ink-soft: #99b4c4;
  --rail-a: #05131c;
  --rail-b: #0a2230;
  --accent-a: #4fc2d8;
  --accent-b: #1f6d89;
  --surface-card: rgba(10, 20, 28, .96);
  --surface-card-strong: rgba(14, 28, 38, .92);
  --surface-card-muted: rgba(12, 24, 33, .94);
  --surface-border: rgba(118, 192, 214, .16);
  --surface-shadow: 0 18px 34px rgba(0, 0, 0, .3);
  --surface-text: #f1faff;
  --surface-text-soft: #9ab4c2;
  --surface-elevated: rgba(255, 255, 255, .04);
  --surface-hairline: rgba(118, 192, 214, .12);
  background: radial-gradient(circle at 85% 10%, rgba(91, 159, 181, .18), transparent 34%), linear-gradient(135deg, var(--bg-0) 0%, var(--bg-1) 55%, var(--bg-2) 100%);
}

body.theme-night .sidebar-backdrop {
  background: rgba(1, 7, 11, 0.68);
}

body.theme-night .menu-link {
  color: rgba(236, 247, 251, .9);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
}

body.theme-night .menu-link:hover {
  background: rgba(255,255,255,.1);
}

body.theme-night .menu-list li.active .menu-link {
  color: #f4fbfe;
  background: rgba(75, 152, 172, .16);
  border-color: rgba(112, 202, 223, .22);
}

body.theme-night .menu-icon {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}

body.theme-night .selector-active {
  background: linear-gradient(135deg, rgba(20, 35, 47, .94), rgba(13, 25, 34, .86));
  border-color: rgba(113, 190, 211, .18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255,255,255,.04);
}

body.theme-night .selector-active::after {
  box-shadow: inset 0 0 0 1px rgba(124, 199, 220, .14);
}

body.theme-night .eyebrow {
  color: #88a5b6;
}

body.theme-night .topbar h1,
body.theme-night .admin-card h2,
body.theme-night .admin-card h3,
body.theme-night .analysis-card h3,
body.theme-night .portal-setting-preview strong,
body.theme-night .form-expand-trigger strong,
body.theme-night .triple-login-copy h2,
body.theme-night .role-login-stage h3 {
  color: #f1faff;
}

body.theme-night .ghost-btn {
  color: #e7f5fb;
  background: rgba(8, 18, 25, .8);
  border-color: rgba(143, 197, 214, .16);
}

body.theme-night .ghost-btn:hover {
  background: rgba(12, 24, 33, .96);
}

body.theme-night .main-btn {
  box-shadow: 0 12px 24px rgba(24, 87, 108, .3);
}

body.theme-night .switch-btn {
  color: #e8f6fb;
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
}

body.theme-night .switch-btn:hover,
body.theme-night .switch-btn.is-active {
  color: #f8fdff;
  background: linear-gradient(90deg, rgba(79, 174, 198, .42), rgba(35, 108, 136, .5));
  border-color: rgba(152, 225, 242, .28);
  box-shadow: 0 8px 18px rgba(14, 50, 64, .35);
}

body.theme-night .analysis-card,
body.theme-night .admin-card,
body.theme-night .portal-setting-preview,
body.theme-night .portal-warning-banner,
body.theme-night .login-floating-panel,
body.theme-night .form-surface,
body.theme-night .triple-login-option,
body.theme-night .admin-table-wrap,
body.theme-night .admin-user-filter-bar,
body.theme-night .admin-user-pager,
body.theme-night .forms-pager,
body.theme-night .role-chip,
body.theme-night .portal-secret-input-wrap {
  background: linear-gradient(145deg, rgba(10, 20, 28, .96), rgba(14, 28, 38, .9));
  border-color: rgba(118, 192, 214, .16);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .28);
  color: #e7f5fb;
}

body.theme-night .analysis-card p,
body.theme-night .admin-card p,
body.theme-night .portal-setting-preview p,
body.theme-night .portal-settings-note,
body.theme-night .login-support-note,
body.theme-night .login-panel-help,
body.theme-night .field-feedback,
body.theme-night .admin-muted,
body.theme-night .form-expand-sub,
body.theme-night .analysis-mini-sub {
  color: #9ab4c2;
}

body.theme-night .portal-setting-preview span,
body.theme-night .role-badge,
body.theme-night .analysis-mini-pill,
body.theme-night .pill,
body.theme-night .menu-badge {
  background: rgba(53, 129, 150, .16);
  color: #def6ff;
}

body.theme-night .portal-option-row .role-chip,
body.theme-night .role-chip {
  color: #e9f7fb;
  background: rgba(255,255,255,.04);
  border-color: rgba(133, 194, 213, .16);
}

body.theme-night .role-chip:hover {
  background: rgba(255,255,255,.08);
}

body.theme-night .role-chip.is-selected {
  background: rgba(54, 145, 167, .2);
  border-color: rgba(124, 214, 234, .24);
  box-shadow: 0 10px 18px rgba(7, 34, 45, .26);
}

body.theme-night .role-chip .chip-copy strong,
body.theme-night .role-chip .chip-copy small {
  color: inherit;
}

body.theme-night .about-hero-copy,
body.theme-night .about-panel,
body.theme-night .help-card,
body.theme-night .contact-hub,
body.theme-night .contact-panel,
body.theme-night .info-card {
  background: linear-gradient(145deg, rgba(10, 20, 28, .96), rgba(14, 28, 38, .92));
  border-color: rgba(118, 192, 214, .16);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .3);
  color: #e7f5fb;
}

body.theme-night .about-hero-media {
  border-color: rgba(118, 192, 214, .16);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .3);
}

body.theme-night .about-hero-copy p,
body.theme-night .about-panel p,
body.theme-night .help-card p,
body.theme-night .contact-lead,
body.theme-night .contact-panel > p,
body.theme-night .info-card p,
body.theme-night .help-link-card span {
  color: #9ab4c2;
}

body.theme-night .about-panel h3,
body.theme-night .help-card h2,
body.theme-night .contact-panel h3,
body.theme-night .info-card h2,
body.theme-night .help-link-card strong {
  color: #f1faff;
}

body.theme-night .help-link-card,
body.theme-night .faq-item {
  background: linear-gradient(145deg, rgba(10, 20, 28, .94), rgba(14, 28, 38, .9));
  border-color: rgba(118, 192, 214, .16);
  color: #e7f5fb;
}

body.theme-night .faq-item summary {
  color: #f1faff;
}

body.theme-night .contact-switch {
  background: rgba(255,255,255,.04);
  border-color: rgba(118, 192, 214, .16);
}

body.theme-night .contact-switch-btn {
  color: #e8f6fb;
}

body.theme-night .contact-switch-btn.active {
  color: #f8fdff;
  box-shadow: 0 8px 18px rgba(14, 50, 64, .35);
}

body.theme-night input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),
body.theme-night select,
body.theme-night textarea {
  color: #eef9fc;
  background: rgba(8, 17, 24, .92);
  border-color: rgba(122, 192, 212, .22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

body.theme-night input::placeholder,
body.theme-night textarea::placeholder {
  color: #8ea9b7;
}

body.theme-night input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):focus,
body.theme-night select:focus,
body.theme-night textarea:focus {
  border-color: rgba(100, 202, 226, .46);
  box-shadow: 0 0 0 3px rgba(58, 155, 182, .18);
}

body.theme-night .portal-secret-toggle {
  background: rgba(7, 16, 23, .9);
  color: #e7f5fb;
  border-color: rgba(122, 192, 212, .2);
}

body.theme-night .portal-secret-toggle:hover {
  background: rgba(11, 23, 31, .98);
}

body.theme-night .admin-table thead th {
  background: rgba(8, 18, 25, .96);
  color: #dff3fa;
  border-color: rgba(122, 192, 212, .14);
}

body.theme-night .admin-table tbody td {
  background: rgba(10, 20, 28, .74);
  border-color: rgba(122, 192, 212, .1);
  color: #e4f3f8;
}

body.theme-night .admin-table tbody tr:nth-child(even) td {
  background: rgba(12, 23, 31, .84);
}

body.theme-night .admin-table tbody tr:hover td {
  background: rgba(25, 48, 63, .9);
}

body.theme-night .admin-table-wrap,
body.theme-night .admin-user-filter-bar,
body.theme-night .admin-user-pager,
body.theme-night .forms-pager {
  border-color: rgba(122, 192, 212, .14);
}

body.theme-night .flash {
  background: rgba(10, 22, 30, .94);
  color: #eaf7fb;
  border-color: rgba(122, 192, 212, .18);
}

body.theme-night .flash-success {
  border-color: rgba(60, 180, 142, .3);
}

body.theme-night .flash-error {
  border-color: rgba(234, 104, 112, .34);
}

body.theme-night .triple-login-shell::before,
body.theme-night .login-shell::before {
  opacity: .28;
  filter: saturate(.78) brightness(.72);
}

body.theme-night .triple-login-surface,
body.theme-night .login-reset-panel,
body.theme-night .login-password-change-panel {
  background: linear-gradient(145deg, rgba(9, 20, 28, .96), rgba(12, 24, 33, .94));
  border-color: rgba(124, 196, 216, .16);
  box-shadow: 0 18px 32px rgba(0, 0, 0, .3);
}

body.theme-night .login-forgot-link {
  color: #a8ddec;
}

body.theme-night .login-forgot-link:hover {
  color: #d9f8ff;
}

body.theme-night .portal-general-grid .portal-setting-preview,
body.theme-night .portal-settings-card,
body.theme-night .portal-manager-create-form,
body.theme-night .portal-manager-users-list {
  border-color: rgba(122, 192, 212, .16);
}

body.theme-night .overview-item,
body.theme-night .overview-shortcut,
body.theme-night .subscription-card-panel,
body.theme-night .subscription-plan-card,
body.theme-night .subscription-pager,
body.theme-night .subscription-table-pager,
body.theme-night .analysis-record-filter-bar,
body.theme-night .analysis-record-pager,
body.theme-night .assignment-filter-bar,
body.theme-night .assignment-log-pager,
body.theme-night .assignment-browser,
body.theme-night .assignment-create-panel,
body.theme-night .portal-form-card,
body.theme-night .portal-empty-state,
body.theme-night .portal-manager-create-form,
body.theme-night .portal-manager-users-list,
body.theme-night .portal-setting-preview,
body.theme-night .portal-form-search input,
body.theme-night .portal-secret-input-wrap,
body.theme-night .admin-user-filter-bar,
body.theme-night .admin-user-pager,
body.theme-night .admin-table-wrap,
body.theme-night .company-analysis-card,
body.theme-night .kpi-row,
body.theme-night .company-subscription-chip,
body.theme-night .company-badge-inline,
body.theme-night .plan-chip,
body.theme-night .category-company-chip,
body.theme-night .assignment-company-chip,
body.theme-night .assignment-status-chip,
body.theme-night .assignment-form-chip,
body.theme-night .form-category-chip {
  background: linear-gradient(145deg, rgba(10, 20, 28, .96), rgba(14, 28, 38, .92));
  border-color: rgba(118, 192, 214, .16);
  color: #e7f5fb;
}

body.theme-night .overview-item span,
body.theme-night .overview-shortcut small,
body.theme-night .portal-form-card-head p,
body.theme-night .portal-form-card-footer small,
body.theme-night .portal-form-card-meta span,
body.theme-night .admin-user-identity small,
body.theme-night .admin-muted,
body.theme-night .portal-settings-note,
body.theme-night .portal-warning-banner p,
body.theme-night .analysis-record-filter-bar label,
body.theme-night .analysis-record-pager,
body.theme-night .assignment-filter-bar label,
body.theme-night .assignment-log-pager,
body.theme-night .subscription-pager label,
body.theme-night .subscription-table-pager label,
body.theme-night .analysis-mini-pill,
body.theme-night .quota-summary small,
body.theme-night .company-analysis-card p,
body.theme-night .kpi-row span,
body.theme-night .portal-setting-preview p {
  color: #9ab4c2;
}

body.theme-night .overview-item strong,
body.theme-night .overview-shortcut strong,
body.theme-night .portal-form-card-head h4,
body.theme-night .portal-form-card-meta strong,
body.theme-night .admin-user-identity strong,
body.theme-night .quota-summary strong,
body.theme-night .company-analysis-card h4,
body.theme-night .kpi-row strong {
  color: #f4fbff;
}

body.theme-night .admin-form-grid button,
body.theme-night .faq-admin-actions button,
body.theme-night .subscription-plan-detail-form .faq-admin-actions button,
body.theme-night .assignment-submit-btn,
body.theme-night .portal-form-action {
  background: linear-gradient(90deg, rgba(79, 194, 216, .28), rgba(31, 109, 137, .42));
  color: #f5feff;
  border-color: rgba(118, 192, 214, .18);
}

body.theme-night .admin-form-grid label {
  color: #d8ecf4;
}

body.theme-night .admin-form-grid input,
body.theme-night .admin-form-grid select,
body.theme-night .admin-form-grid textarea,
body.theme-night .analysis-record-filter-bar input,
body.theme-night .analysis-record-filter-bar select,
body.theme-night .assignment-filter-bar input,
body.theme-night .assignment-filter-bar select,
body.theme-night .subscription-pager select,
body.theme-night .subscription-table-pager select,
body.theme-night .assignment-log-pager select,
body.theme-night .portal-form-search input,
body.theme-night .subscription-table input,
body.theme-night .subscription-table select,
body.theme-night .category-company-search input,
body.theme-night .assignment-chip-search input {
  background: rgba(6, 15, 21, .94);
  border-color: rgba(118, 192, 214, .18);
  color: #effbfe;
}

body.theme-night .overview-shortcut:hover,
body.theme-night .overview-item:hover,
body.theme-night .subscription-plan-card:hover,
body.theme-night .portal-form-card:hover,
body.theme-night .category-company-chip:hover,
body.theme-night .assignment-company-chip:hover,
body.theme-night .assignment-status-chip:hover,
body.theme-night .assignment-form-chip:hover,
body.theme-night .form-category-chip:hover {
  background: rgba(17, 34, 46, .98);
  border-color: rgba(134, 218, 237, .24);
}

body.theme-night .portal-form-card.is-new,
body.theme-night .portal-form-card.is-open,
body.theme-night .portal-form-card.is-complete {
  background: linear-gradient(145deg, rgba(10, 20, 28, .96), rgba(14, 28, 38, .92));
}

body.theme-night .portal-manager-form-alias {
  background: rgba(79, 194, 216, .12);
  border-color: rgba(118, 192, 214, .18);
  color: #d9f7ff;
}

body.theme-night .portal-manager-form-kicker,
body.theme-night .portal-form-new-badge {
  background: rgba(79, 194, 216, .12);
  border-color: rgba(118, 192, 214, .18);
  color: #d9f7ff;
}

body.theme-night #users .user-create-form,
body.theme-night #users .user-edit-form,
body.theme-night #users .admin-table-wrap,
body.theme-night #users .admin-user-filter-bar,
body.theme-night #users .admin-user-pager,
body.theme-night #subscriptions .subscription-card-panel,
body.theme-night #subscriptions .subscription-plan-card,
body.theme-night #subscriptions .admin-table thead th,
body.theme-night #subscriptions .admin-table tbody td,
body.theme-night #assignments .assignment-create-panel,
body.theme-night #assignments .assignment-browser,
body.theme-night #assignments .assignment-category-card,
body.theme-night #assignments .assignment-log-wrap,
body.theme-night #forms .form-expand-card,
body.theme-night #forms .form-risk-question-card,
body.theme-night .analysis-record-table-wrap,
body.theme-night .analysis-chart-hero,
body.theme-night .analysis-kpi-box {
  background: linear-gradient(145deg, rgba(10, 20, 28, .96), rgba(14, 28, 38, .92));
  border-color: rgba(118, 192, 214, .16);
  color: #e7f5fb;
}

body.theme-night #users .admin-table thead th,
body.theme-night #subscriptions .admin-table thead th,
body.theme-night .analysis-record-table thead th,
body.theme-night #forms .form-expand-trigger,
body.theme-night #subscriptions .form-expand-trigger,
body.theme-night .assignment-log-table thead th {
  background: rgba(7, 17, 24, .96);
  color: #f0fbff;
}

body.theme-night #users .admin-table tbody td,
body.theme-night #subscriptions .admin-table tbody td,
body.theme-night .analysis-record-table tbody td,
body.theme-night .assignment-log-table tbody td {
  background: rgba(10, 20, 28, .84);
  color: #e7f5fb;
}

body.theme-night #users .admin-user-alias-pill {
  background: rgba(79, 194, 216, .12);
  border-color: rgba(118, 192, 214, .18);
  color: #d9f7ff;
}

body.theme-night #forms .form-expand-kicker,
body.theme-night #subscriptions .form-expand-kicker {
  background: rgba(79, 194, 216, .12);
  color: #d9f7ff;
  border-color: rgba(118, 192, 214, .18);
}

body.theme-night #forms .form-expand-sub,
body.theme-night #subscriptions .form-expand-sub {
  color: #9ab4c2;
}

body.theme-night #forms .form-status-chip.is-draft {
  color: #fbbf24;
  background: rgba(251, 191, 36, .14);
  border-color: rgba(251, 191, 36, .28);
}

body.theme-night #forms .form-status-chip.is-active {
  color: #86efac;
  background: rgba(134, 239, 172, .12);
  border-color: rgba(134, 239, 172, .24);
}

body.theme-night #forms .form-status-chip.is-archived {
  color: #cbd5e1;
  background: rgba(148, 163, 184, .14);
  border-color: rgba(148, 163, 184, .24);
}

body.theme-night #forms .form-status-chip .form-status-icon {
  background: rgba(255,255,255,.08);
}

body.theme-night #forms .form-status-summary,
body.theme-night #forms .forms-auto-status-note {
  background: rgba(10, 20, 28, .88);
  border-color: rgba(118, 192, 214, .16);
  color: #9ab4c2;
}

body.theme-night #forms .form-status-summary .admin-muted {
  color: #9ab4c2;
}

body.theme-night #forms .form-expand-icon,
body.theme-night #subscriptions .form-expand-icon {
  background: rgba(6, 15, 21, .94);
  border-color: rgba(118, 192, 214, .18);
  color: #def7ff;
}

/* Modern public surfaces */
.template-stage {
  align-items: center;
  padding: 24px 0 30px;
}

.template-shell {
  width: min(1380px, calc(100vw - 44px));
  min-height: 560px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(7, 30, 41, .22);
}

.login-shell {
  position: relative;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 16%, rgba(89, 198, 221, .18), transparent 25%),
    radial-gradient(circle at 84% 10%, rgba(255, 255, 255, .14), transparent 24%),
    radial-gradient(circle at 14% 86%, rgba(24, 138, 163, .16), transparent 26%),
    linear-gradient(135deg, #083244 0%, #0b5065 48%, #062333 100%);
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08), transparent 36%, rgba(255, 255, 255, .04)),
    radial-gradient(circle at 12% 24%, rgba(255, 255, 255, .08), transparent 22%),
    radial-gradient(circle at 80% 78%, rgba(7, 117, 141, .18), transparent 28%);
  pointer-events: none;
}

.login-shell-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 18px;
  align-items: stretch;
  min-height: 100%;
}

.login-story-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 26px;
  border: 1px solid rgba(194, 235, 244, .12);
  background: linear-gradient(180deg, rgba(7, 29, 39, .72), rgba(4, 22, 31, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #f7fcff;
}

.login-story-panel::before {
  content: "";
  position: absolute;
  inset: auto -24px -72px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 198, 221, .22), transparent 66%);
  pointer-events: none;
  filter: blur(10px);
}

.login-story-panel::after {
  content: "";
  position: absolute;
  inset: -12% auto auto 52%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 70%);
  pointer-events: none;
}

.login-story-header,
.login-info-links,
.login-settings-dock {
  position: relative;
  z-index: 1;
}

.login-eyebrow {
  margin: 0;
  color: rgba(225, 247, 252, .74);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .35em;
  text-transform: uppercase;
}

.login-story-header h1 {
  margin: 10px 0 14px;
  max-width: 11ch;
  color: #f7feff;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.login-story-lead {
  margin: 0;
  max-width: 42ch;
  color: rgba(224, 243, 250, .84);
  font-size: 1rem;
  line-height: 1.7;
}

.login-info-links {
  display: grid;
  gap: 10px;
}

.login-info-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(207, 235, 244, .16);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.login-info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(150, 226, 245, .34);
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
}

.login-info-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 246, 255, .18);
  background: linear-gradient(145deg, rgba(221, 248, 255, .18), rgba(121, 210, 229, .12));
  color: #effbff;
  font-size: 1.1rem;
  font-weight: 800;
}

.login-info-copy strong {
  display: block;
  margin-bottom: 3px;
  color: #ffffff;
  font-size: 1.02rem;
}

.login-info-copy small {
  display: block;
  color: rgba(223, 242, 249, .76);
  line-height: 1.5;
}

.login-info-arrow {
  color: rgba(229, 248, 255, .82);
  font-size: 1.18rem;
  line-height: 1;
}

.login-settings-dock {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(194, 235, 244, .16);
  background: rgba(4, 21, 29, .36);
  backdrop-filter: blur(16px);
}

.login-settings-row {
  display: grid;
  gap: 8px;
}

.login-settings-label {
  color: rgba(228, 247, 252, .68);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.login-settings-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-toggle-chip {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.login-toggle-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.login-toggle-chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(201, 237, 247, .14);
  background: rgba(255, 255, 255, .05);
  color: #f6fdff;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.login-toggle-chip:hover span {
  transform: translateY(-1px);
  border-color: rgba(183, 238, 251, .24);
}

.login-toggle-chip.is-selected span,
.login-toggle-chip input:checked + span {
  background: linear-gradient(145deg, rgba(225, 250, 255, .18), rgba(95, 192, 210, .22));
  border-color: rgba(183, 238, 251, .35);
  box-shadow: 0 10px 18px rgba(3, 22, 31, .24);
}

.login-toggle-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font-size: .96rem;
  line-height: 1;
}

.login-auth-panel {
  min-width: 0;
  display: flex;
}

.login-auth-surface {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 2.6vw, 30px);
  border-radius: 26px;
  border: 1px solid rgba(223, 232, 238, .95);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 249, 251, .96));
  box-shadow: 0 26px 46px rgba(8, 35, 47, .18);
}

.login-auth-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(47, 151, 173, .08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(47, 151, 173, .05), transparent 24%);
  pointer-events: none;
}

.login-auth-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.login-auth-head-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  border: 1px solid rgba(47, 151, 173, .18);
  background: linear-gradient(160deg, #e5f5fa, #c6e7f2);
  color: #0b4f62;
  font-size: 1.2rem;
  font-weight: 800;
}

.login-auth-head h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
}

.login-auth-head .role-badge {
  margin-top: 0;
}

.login-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}

.triple-login-option {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(11, 47, 64, .1);
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(245, 250, 252, .9));
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.triple-login-option:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 151, 173, .22);
  box-shadow: 0 16px 28px rgba(8, 35, 47, .08);
}

.triple-login-option.is-active-role {
  border-color: rgba(47, 151, 173, .56);
  background: linear-gradient(180deg, rgba(232, 247, 251, .98), rgba(248, 252, 253, .98));
  box-shadow: 0 18px 32px rgba(47, 151, 173, .12);
}

.login-role-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border: 1px solid rgba(47, 151, 173, .2);
  background: linear-gradient(145deg, rgba(47, 151, 173, .14), rgba(47, 151, 173, .22));
  color: #0d5367;
  font-size: 1rem;
  font-weight: 800;
}

.triple-login-copy {
  max-width: none;
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.triple-login-copy h3,
.triple-login-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
}

.triple-login-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.55;
}

.switch-btn {
  align-self: start;
  border-radius: 999px;
  border: 1px solid rgba(11, 47, 64, .12);
  background: rgba(11, 47, 64, .04);
  color: var(--ink);
  box-shadow: none;
  padding: 9px 14px;
  font-size: .86rem;
  font-weight: 800;
}

.switch-btn:hover {
  background: rgba(47, 151, 173, .1);
}

.switch-btn.is-active {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  border-color: transparent;
  color: #fff;
}

#role-login-form {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.form-surface label {
  margin: 0;
}

.form-surface input {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(11, 47, 64, .12);
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  padding: 13px 14px;
  font-size: .96rem;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-surface input::placeholder {
  color: #9fb0ba;
}

.form-surface input:focus {
  outline: none;
  border-color: rgba(47, 151, 173, .34);
  box-shadow: 0 0 0 4px rgba(47, 151, 173, .14);
  background: #fff;
}

.login-forgot-row {
  margin-top: 0;
  justify-content: flex-end;
}

.login-forgot-link {
  color: #0d6f8e;
  font-size: .84rem;
}

.login-btn {
  margin-top: 8px;
  min-height: 52px;
  border-radius: 16px;
  box-shadow: 0 18px 28px rgba(23, 89, 110, .26);
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
}

.login-trust-note {
  margin: 0;
  padding-top: 4px;
  position: relative;
  z-index: 1;
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.5;
}

.login-trust-note::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, transparent, rgba(11, 47, 64, .12), transparent);
}

.login-floating-panel {
  inset: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(247, 250, 252, .97));
  border: 1px solid rgba(223, 232, 238, .92);
  box-shadow: 0 28px 54px rgba(8, 35, 47, .24);
  backdrop-filter: blur(16px);
}

.login-reset-close {
  border-radius: 999px;
}

.login-reset-head h4 {
  font-size: 1.15rem;
}

.login-panel-help {
  font-size: .88rem;
}

.login-reset-form {
  gap: 12px;
}

.reset-grid {
  gap: 12px;
}

.reset-field label {
  color: var(--ink-soft);
  letter-spacing: .01em;
}

.field-feedback {
  min-height: 18px;
}

.login-floating-panel .reset-field input {
  min-height: 46px;
}

.login-reset-submit {
  margin-top: 2px;
}

.info-stage {
  min-height: calc(100vh - 150px);
  padding: 18px 0 28px;
  display: grid;
  place-items: center;
}

.info-shell {
  width: min(1320px, calc(100vw - 44px));
  display: grid;
  gap: 16px;
}

.info-card,
.about-hero-copy,
.about-panel,
.help-card,
.contact-card,
.admin-card {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, .8);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(244, 249, 252, .94));
  box-shadow: 0 24px 40px rgba(11, 47, 64, .12);
}

.info-hero-card {
  padding: clamp(20px, 2.8vw, 32px);
}

.info-hero-card h2 {
  margin: 8px 0 14px;
  font-size: clamp(1.55rem, 2.6vw, 2.6rem);
  line-height: 1.12;
}

.info-hero-card p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.info-link-grid,
.help-link-grid {
  margin-top: 16px;
}

.info-link-card,
.help-link-card {
  position: relative;
  overflow: hidden;
}

.info-link-card::after,
.help-link-card::after {
  content: "↗";
  color: #9eb2bf;
  font-size: 1.1rem;
}

.about-stage {
  gap: 18px;
}

.about-hero {
  gap: 18px;
  align-items: stretch;
}

.about-hero-copy {
  overflow: hidden;
}

.about-hero-copy h2 {
  font-size: clamp(1.8rem, 3vw, 3.05rem);
  line-height: 1.04;
}

.about-hero-copy p,
.about-panel p,
.help-card p,
.contact-lead {
  color: var(--ink-soft);
  line-height: 1.7;
}

.about-hero-media {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .76);
  box-shadow: 0 24px 40px rgba(11, 47, 64, .16);
  background: linear-gradient(145deg, rgba(14, 72, 95, .08), rgba(255, 255, 255, .6));
}

.about-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.about-grid {
  gap: 18px;
}

.about-panel h3,
.help-card h2,
.contact-card h2,
.admin-card h2 {
  color: var(--ink);
}

.help-card {
  width: min(1320px, calc(100vw - 44px));
  padding: clamp(20px, 2.8vw, 32px);
}

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

.faq-list {
  gap: 12px;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid rgba(11, 47, 64, .1);
  background: rgba(255, 255, 255, .82);
  padding: 14px 16px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.faq-item:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 151, 173, .18);
  box-shadow: 0 12px 24px rgba(11, 47, 64, .06);
}

.faq-item summary {
  font-size: .98rem;
}

.faq-item p {
  color: var(--ink-soft);
}

body.theme-night .login-shell {
  background: linear-gradient(135deg, #03131c 0%, #062738 50%, #021019 100%);
}

body.theme-night .login-story-panel {
  background: linear-gradient(180deg, rgba(4, 16, 23, .72), rgba(2, 10, 15, .92));
  border-color: rgba(151, 221, 235, .12);
}

body.theme-night .login-info-card,
body.theme-night .login-settings-dock {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(189, 232, 243, .14);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .28);
}

body.theme-night .login-info-card:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(189, 232, 243, .28);
}

body.theme-day .login-info-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(243, 248, 251, .92));
  border-color: rgba(150, 182, 196, .26);
  box-shadow: 0 14px 28px rgba(22, 53, 65, .08);
}

body.theme-day .login-info-card:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(239, 245, 248, .96));
  border-color: rgba(123, 162, 177, .32);
}

body.theme-day .login-info-mark {
  background: linear-gradient(145deg, rgba(220, 239, 246, .96), rgba(199, 228, 238, .88));
  border-color: rgba(149, 189, 204, .38);
  color: var(--surface-text);
}

body.theme-day .login-info-copy strong {
  color: var(--surface-text);
}

body.theme-day .login-info-copy small {
  color: var(--surface-text-soft);
}

body.theme-day .login-info-arrow {
  color: var(--surface-text-soft);
}

body.theme-night .login-toggle-chip span {
  background: rgba(255, 255, 255, .04);
  color: #eaf7fb;
  border-color: rgba(191, 233, 243, .14);
}

body.theme-night .login-toggle-chip.is-selected span,
body.theme-night .login-toggle-chip input:checked + span {
  background: linear-gradient(145deg, rgba(79, 174, 198, .28), rgba(35, 108, 136, .36));
  border-color: rgba(152, 225, 242, .28);
}

body.theme-night .login-auth-surface,
body.theme-night .info-card,
body.theme-night .about-hero-copy,
body.theme-night .about-panel,
body.theme-night .help-card {
  background: linear-gradient(145deg, rgba(10, 20, 28, .96), rgba(14, 28, 38, .9));
  border-color: rgba(118, 192, 214, .16);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .26);
  color: #e7f5fb;
}

body.theme-night .login-auth-surface::before {
  background:
    radial-gradient(circle at top right, rgba(47, 151, 173, .12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(47, 151, 173, .06), transparent 24%);
}

body.theme-night .login-auth-head h2,
body.theme-night .triple-login-copy h3,
body.theme-night .info-card h2,
body.theme-night .about-hero-copy h2,
body.theme-night .about-panel h3,
body.theme-night .help-card h2,
body.theme-night .login-auth-head .role-badge,
body.theme-night .role-badge {
  color: #f4fbff;
}

body.theme-night .login-role-mark,
body.theme-night .login-auth-head-mark {
  background: linear-gradient(145deg, rgba(225, 250, 255, .16), rgba(95, 192, 210, .16));
  border-color: rgba(183, 238, 251, .18);
  color: #f4fdff;
}

body.theme-night .triple-login-option {
  background: linear-gradient(180deg, rgba(10, 20, 28, .94), rgba(14, 28, 38, .9));
  border-color: rgba(118, 192, 214, .14);
}

body.theme-night .triple-login-option.is-active-role {
  background: linear-gradient(180deg, rgba(9, 37, 48, .96), rgba(12, 30, 39, .94));
  border-color: rgba(152, 225, 242, .28);
  box-shadow: 0 18px 32px rgba(0, 0, 0, .22);
}

body.theme-night .triple-login-copy p,
body.theme-night .login-story-lead,
body.theme-night .login-support-note,
body.theme-night .login-trust-note,
body.theme-night .about-hero-copy p,
body.theme-night .about-panel p,
body.theme-night .help-card p,
body.theme-night .info-card p {
  color: #9ab4c2;
}

body.theme-night .form-surface input,
body.theme-night .login-floating-panel .reset-field input {
  background: rgba(8, 18, 25, .96);
  border-color: rgba(143, 197, 214, .16);
  color: #e7f5fb;
}

body.theme-night .form-surface input::placeholder {
  color: #75909e;
}

body.theme-night .form-surface input:focus {
  border-color: rgba(152, 225, 242, .34);
  box-shadow: 0 0 0 4px rgba(47, 151, 173, .16);
}

body.theme-night .info-link-card,
body.theme-night .help-link-card {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(118, 192, 214, .14);
}

body.theme-night .info-link-card strong,
body.theme-night .help-link-card strong {
  color: #f1faff;
}

body.theme-night .info-link-card span,
body.theme-night .help-link-card span {
  color: #9ab4c2;
}

body.theme-night .info-link-card::after,
body.theme-night .help-link-card::after {
  color: #7fa4b5;
}

body.theme-night .faq-item {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(118, 192, 214, .14);
}

body.theme-night .faq-item summary {
  color: #f1faff;
}

body.theme-night .faq-item p {
  color: #9ab4c2;
}

@media (max-width: 980px) {
  .template-shell {
    width: min(100vw - 24px, 100%);
    min-height: 0;
    border-radius: 24px;
  }

  .login-shell {
    padding: 14px;
  }

  .login-shell-grid,
  .about-hero,
  .about-grid,
  .help-link-grid,
  .info-link-grid {
    grid-template-columns: 1fr;
  }

  .login-story-panel,
  .login-auth-surface,
  .info-card,
  .about-hero-copy,
  .about-panel,
  .help-card {
    border-radius: 22px;
  }

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

  .login-info-card {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .login-settings-dock {
    padding: 14px;
  }

  .login-auth-head {
    flex-direction: column;
  }

  .about-hero-media img {
    min-height: 240px;
  }
}

@media (max-width: 760px) {
  .template-stage {
    padding: 14px 0 20px;
  }

  .login-story-header h1 {
    max-width: none;
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .login-info-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .login-info-arrow {
    display: none;
  }

  .login-toggle-chip span {
    min-height: 40px;
    padding: 0 12px;
    font-size: .84rem;
  }

  .login-auth-head-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    flex-basis: 48px;
  }
}

/* Login redesign overrides */
.login-stage {
  padding: 24px 0 32px;
  background:
    radial-gradient(circle at 18% 16%, rgba(80, 184, 205, .18), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, .08), transparent 20%),
    linear-gradient(135deg, #052333 0%, #0a4d63 46%, #03131c 100%);
}

.login-shell {
  padding: 18px;
  background:
    radial-gradient(circle at 18% 16%, rgba(89, 198, 221, .14), transparent 22%),
    radial-gradient(circle at 84% 10%, rgba(255, 255, 255, .08), transparent 20%),
    linear-gradient(135deg, #072839 0%, #0a4f64 46%, #062333 100%);
  box-shadow: 0 42px 82px rgba(3, 16, 23, .34);
}

.login-shell::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .04), transparent 28%, rgba(255, 255, 255, .02)),
    radial-gradient(circle at 12% 24%, rgba(255, 255, 255, .08), transparent 22%),
    radial-gradient(circle at 80% 78%, rgba(7, 117, 141, .16), transparent 28%);
}

.login-shell-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 16px;
}

.login-story-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 28px;
  border: 1px solid rgba(223, 243, 249, .12);
  background:
    linear-gradient(135deg, rgba(4, 24, 36, .86), rgba(8, 63, 86, .30) 48%, rgba(3, 17, 25, .88)),
    url('/static/images/about-hero-wave.png') center/cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  color: #f7fcff;
}

.login-story-panel::before {
  content: "";
  position: absolute;
  inset: auto -34px -64px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 198, 221, .24), transparent 66%);
  pointer-events: none;
}

.login-story-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  max-width: 560px;
  padding-top: 2px;
}

.login-brand {
  margin: 0;
  color: rgba(225, 247, 252, .76);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .36em;
  text-transform: uppercase;
}

.login-brand-subtitle {
  margin: 0;
  color: rgba(203, 228, 238, .76);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.login-story-rule {
  width: 30px;
  height: 3px;
  margin: 10px 0 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #58c5dd, rgba(255, 255, 255, .92));
}

.login-story-copy h1 {
  margin: 0;
  max-width: 10.6ch;
  color: #f8fdff;
  font-size: clamp(2.6rem, 4.2vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.06em;
}

.login-story-lead {
  margin: 6px 0 0;
  max-width: 32ch;
  color: rgba(231, 246, 251, .82);
  font-size: 1.02rem;
  line-height: 1.68;
}

.login-info-links {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(100%, 720px);
}

.login-info-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 15px 16px;
  border-radius: 20px;
  border: 1px solid rgba(214, 239, 245, .16);
  background: rgba(8, 33, 46, .30);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 30px rgba(1, 17, 25, .14);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.login-info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(159, 232, 247, .34);
  background: rgba(10, 40, 55, .38);
  box-shadow: 0 18px 34px rgba(1, 17, 25, .18);
}

.login-info-mark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  border: 1px solid rgba(208, 239, 247, .16);
  background: linear-gradient(145deg, rgba(73, 189, 210, .28), rgba(34, 106, 129, .18));
  color: #f4fbff;
}

.login-info-mark svg,
.login-info-arrow svg,
.login-settings-head-mark svg,
.login-input-icon svg,
.login-auth-head-mark svg,
.login-role-mark svg,
.login-form-divider-icon svg,
.login-secret-toggle svg,
.login-trust-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.login-info-copy strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 800;
}

.login-info-copy small {
  display: block;
  color: rgba(225, 243, 249, .78);
  line-height: 1.5;
}

.login-info-arrow {
  color: rgba(232, 248, 255, .82);
}

.login-info-arrow svg {
  width: 18px;
  height: 18px;
}

.login-settings-dock {
  margin-top: auto;
  width: min(100%, 648px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(214, 239, 245, .15);
  background: rgba(5, 21, 29, .36);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .08);
}

.login-settings-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #f4fbff;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.login-settings-head-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: #eefbff;
}

.login-settings-head-mark svg {
  width: 18px;
  height: 18px;
}

.login-settings-bar {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.login-settings-group {
  display: grid;
  gap: 6px;
}

.login-settings-caption {
  color: rgba(221, 244, 251, .70);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.login-settings-divider {
  width: 1px;
  height: 48px;
  background: rgba(215, 238, 245, .12);
}

.login-settings-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.login-language-options {
  gap: 8px;
}

.login-language-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(215, 238, 245, .12);
  background: rgba(255, 255, 255, .05);
  color: #e8f7fc;
}

.login-language-mark svg {
  width: 18px;
  height: 18px;
}

.login-toggle-chip {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.login-toggle-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.login-toggle-chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(201, 237, 247, .14);
  background: rgba(255, 255, 255, .05);
  color: #f6fdff;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.login-toggle-chip span svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.login-toggle-chip:hover span {
  transform: translateY(-1px);
  border-color: rgba(183, 238, 251, .24);
}

.login-toggle-chip.is-selected span,
.login-toggle-chip input:checked + span {
  background: linear-gradient(145deg, rgba(225, 250, 255, .18), rgba(95, 192, 210, .22));
  border-color: rgba(183, 238, 251, .34);
  box-shadow: 0 10px 18px rgba(3, 22, 31, .24);
}

.login-auth-panel {
  min-width: 0;
  display: flex;
}

.login-auth-surface {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: 28px;
  border: 1px solid rgba(223, 232, 238, .95);
  background: linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(246, 249, 251, .95));
  box-shadow: 0 26px 46px rgba(8, 35, 47, .18);
}

.login-auth-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(47, 151, 173, .08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(47, 151, 173, .05), transparent 24%);
  pointer-events: none;
}

.login-auth-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.login-auth-head-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  border: 1px solid rgba(47, 151, 173, .18);
  background: linear-gradient(160deg, #e5f5fa, #c6e7f2);
  color: #0b4f62;
}

.login-auth-head-mark svg {
  width: 24px;
  height: 24px;
}

.login-auth-heading {
  min-width: 0;
}

.login-auth-heading h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.login-support-note {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 44ch;
}

.login-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}

.triple-login-option {
  min-height: 206px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 16px;
  border-radius: 22px;
  border: 1px solid rgba(11, 47, 64, .1);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 250, 252, .92));
  box-shadow: 0 10px 24px rgba(8, 35, 47, .06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
  position: relative;
  text-align: center;
}

.triple-login-option:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 151, 173, .24);
  box-shadow: 0 16px 30px rgba(8, 35, 47, .08);
}

.triple-login-option.is-active-role {
  border-color: rgba(47, 151, 173, .5);
  background: linear-gradient(180deg, rgba(234, 247, 251, .98), rgba(248, 252, 253, .98));
  box-shadow: 0 18px 32px rgba(47, 151, 173, .12);
}

.triple-login-option.is-active-role::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2f97ad;
  box-shadow: 0 8px 18px rgba(47, 151, 173, .28);
}

.triple-login-option.is-active-role::before {
  content: "✓";
  position: absolute;
  top: 13px;
  right: 13px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  z-index: 1;
}

.login-role-mark {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 151, 173, .18);
  background: linear-gradient(145deg, rgba(47, 151, 173, .12), rgba(47, 151, 173, .2));
  color: #0d5367;
}

.login-role-mark svg {
  width: 28px;
  height: 28px;
}

.triple-login-copy {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--ink);
}

.triple-login-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
}

.switch-btn {
  align-self: center;
  border-radius: 999px;
  border: 1px solid rgba(11, 47, 64, .12);
  background: rgba(11, 47, 64, .04);
  color: var(--ink);
  box-shadow: none;
  padding: 10px 16px;
  font-size: .88rem;
  font-weight: 800;
  min-width: 132px;
}

.switch-btn:hover {
  background: rgba(47, 151, 173, .1);
}

.switch-btn.is-active {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  border-color: transparent;
  color: #fff;
}

.login-form-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 2px;
}

.login-form-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 47, 64, .12), transparent);
}

.login-form-divider-icon {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f6fafc;
  border: 1px solid rgba(11, 47, 64, .08);
  color: #7c95a3;
}

.login-form-divider-icon svg {
  width: 15px;
  height: 15px;
}

#role-login-form {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field label {
  color: #24495a;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.login-input-shell,
.login-secret-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(11, 47, 64, .12);
  background: rgba(255, 255, 255, .98);
  padding: 0 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-input-shell:focus-within,
.login-secret-wrap:focus-within {
  border-color: rgba(47, 151, 173, .36);
  box-shadow: 0 0 0 4px rgba(47, 151, 173, .12);
  background: #fff;
}

.login-input-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #7d94a3;
  display: grid;
  place-items: center;
}

.login-input-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.login-input-shell input,
.login-secret-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font: inherit;
  font-size: .98rem;
  outline: none;
}

.login-input-shell input::placeholder,
.login-secret-wrap input::placeholder {
  color: #9fb0ba;
}

.portal-secret-field {
  display: grid;
  gap: 6px;
}

.portal-secret-input-wrap {
  position: relative;
}

.login-secret-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(47, 151, 173, .18);
  background: rgba(47, 151, 173, .08);
  color: #1e5a72;
  display: grid;
  place-items: center;
}

.login-secret-toggle.is-active {
  background: rgba(47, 151, 173, .14);
  border-color: rgba(47, 151, 173, .26);
}

.login-secret-toggle svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.login-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
}

.login-remember input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.login-remember-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(11, 47, 64, .18);
  background: #fff;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.login-remember-box svg {
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .18s ease, transform .18s ease;
}

.login-remember input:checked + .login-remember-box {
  background: linear-gradient(180deg, var(--accent-a), var(--accent-b));
  border-color: transparent;
}

.login-remember input:checked + .login-remember-box svg {
  opacity: 1;
  transform: scale(1);
}

.login-forgot-link {
  margin-left: auto;
  color: #0d6f8e;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
}

.login-btn {
  margin-top: 8px;
  min-height: 54px;
  border-radius: 16px;
  box-shadow: 0 18px 28px rgba(23, 89, 110, .24);
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}

.login-trust-note {
  margin: 0;
  padding-top: 4px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.55;
}

.login-trust-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #7d94a3;
  margin-top: 1px;
}

.login-trust-icon svg {
  width: 18px;
  height: 18px;
}

body.theme-night .login-stage {
  background:
    radial-gradient(circle at 18% 16%, rgba(80, 184, 205, .16), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, .08), transparent 20%),
    linear-gradient(135deg, #02131c 0%, #062838 46%, #011019 100%);
}

body.theme-night .login-shell {
  background:
    radial-gradient(circle at 18% 16%, rgba(89, 198, 221, .12), transparent 22%),
    radial-gradient(circle at 84% 10%, rgba(255, 255, 255, .06), transparent 20%),
    linear-gradient(135deg, #061e2b 0%, #0a455a 46%, #041520 100%);
}

body.theme-night .login-story-panel {
  background:
    linear-gradient(135deg, rgba(3, 17, 25, .86), rgba(6, 47, 63, .48) 52%, rgba(2, 10, 15, .92)),
    url('/static/images/about-hero-wave.png') center/cover no-repeat;
  border-color: rgba(151, 221, 235, .12);
}

body.theme-night .login-info-card,
body.theme-night .login-settings-dock {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(189, 232, 243, .14);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .28);
}

body.theme-night .login-info-card:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(189, 232, 243, .28);
}

body.theme-night .login-toggle-chip span {
  background: rgba(255, 255, 255, .04);
  color: #eaf7fb;
  border-color: rgba(191, 233, 243, .14);
}

body.theme-night .login-toggle-chip.is-selected span,
body.theme-night .login-toggle-chip input:checked + span {
  background: linear-gradient(145deg, rgba(79, 174, 198, .28), rgba(35, 108, 136, .36));
  border-color: rgba(152, 225, 242, .28);
}

body.theme-night .login-auth-surface,
body.theme-night .info-card,
body.theme-night .about-hero-copy,
body.theme-night .about-panel,
body.theme-night .help-card {
  background: linear-gradient(145deg, rgba(10, 20, 28, .96), rgba(14, 28, 38, .9));
  border-color: rgba(118, 192, 214, .16);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .26);
  color: #e7f5fb;
}

body.theme-night .login-auth-surface::before {
  background:
    radial-gradient(circle at top right, rgba(47, 151, 173, .12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(47, 151, 173, .06), transparent 24%);
}

body.theme-night .login-auth-heading h2,
body.theme-night .triple-login-copy h3,
body.theme-night .login-auth-head .role-badge,
body.theme-night .role-badge {
  color: #f4fbff;
}

body.theme-night .login-role-mark,
body.theme-night .login-auth-head-mark {
  background: linear-gradient(145deg, rgba(225, 250, 255, .16), rgba(95, 192, 210, .16));
  border-color: rgba(183, 238, 251, .18);
  color: #f4fdff;
}

body.theme-night .triple-login-option {
  background: linear-gradient(180deg, rgba(10, 20, 28, .94), rgba(14, 28, 38, .9));
  border-color: rgba(118, 192, 214, .14);
}

body.theme-night .triple-login-option.is-active-role {
  background: linear-gradient(180deg, rgba(9, 37, 48, .96), rgba(12, 30, 39, .94));
  border-color: rgba(152, 225, 242, .28);
  box-shadow: 0 18px 32px rgba(0, 0, 0, .22);
}

body.theme-night .triple-login-copy p,
body.theme-night .login-support-note,
body.theme-night .login-trust-note,
body.theme-night .about-hero-copy p,
body.theme-night .about-panel p,
body.theme-night .help-card p,
body.theme-night .info-card p {
  color: #9ab4c2;
}

body.theme-night .login-input-shell,
body.theme-night .login-secret-wrap,
body.theme-night .login-floating-panel .reset-field input {
  background: rgba(8, 18, 25, .96);
  border-color: rgba(143, 197, 214, .16);
  color: #e7f5fb;
}

body.theme-night .login-input-shell input::placeholder,
body.theme-night .login-secret-wrap input::placeholder {
  color: #75909e;
}

body.theme-night .login-input-shell:focus-within,
body.theme-night .login-secret-wrap:focus-within,
body.theme-night .login-floating-panel .reset-field input:focus {
  border-color: rgba(152, 225, 242, .34);
  box-shadow: 0 0 0 4px rgba(47, 151, 173, .16);
}

body.theme-night .login-info-copy strong,
body.theme-night .login-settings-head,
body.theme-night .login-settings-caption,
body.theme-night .login-remember,
body.theme-night .login-forgot-link {
  color: #f1faff;
}

body.theme-night .login-info-copy small,
body.theme-night .login-story-lead {
  color: #9ab4c2;
}

body.theme-night .login-info-arrow,
body.theme-night .login-trust-icon,
body.theme-night .login-input-icon {
  color: #7fa4b5;
}

body.theme-night .login-form-divider::before {
  background: linear-gradient(90deg, transparent, rgba(118, 192, 214, .14), transparent);
}

body.theme-night .login-form-divider-icon {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(118, 192, 214, .14);
  color: #8aa9b8;
}

body.theme-night .login-secret-toggle {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(143, 197, 214, .16);
  color: #cbe7f1;
}

body.theme-night .login-secret-toggle.is-active {
  background: rgba(47, 151, 173, .16);
  border-color: rgba(143, 197, 214, .24);
}

@media (max-width: 980px) {
  .login-stage {
    padding: 14px 0 20px;
  }

  .login-shell {
    padding: 14px;
  }

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

  .login-story-panel,
  .login-auth-surface {
    border-radius: 24px;
  }

  .login-info-links {
    width: 100%;
  }

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

  .login-settings-bar {
    gap: 14px;
  }

  .login-settings-divider {
    width: 100%;
    height: 1px;
  }

  .login-auth-head {
    flex-direction: column;
  }

  .login-auth-head-mark {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
}

@media (max-width: 760px) {
  .login-stage {
    padding-top: 12px;
  }

  .login-story-copy h1 {
    max-width: none;
    font-size: clamp(2.05rem, 9vw, 2.65rem);
  }

  .login-info-card {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    padding: 12px 13px;
  }

  .login-info-arrow {
    width: 16px;
    height: 16px;
  }

  .login-settings-dock {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .login-settings-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .login-settings-divider {
    display: none;
  }

  .login-toggle-chip span {
    min-height: 40px;
    padding: 0 12px;
    font-size: .84rem;
  }

  .triple-login-option {
    min-height: 188px;
  }

  .login-btn {
    min-height: 52px;
  }

  .login-floating-panel {
    inset: 12px;
  }
}

body.page-login {
  background: linear-gradient(135deg, #052333 0%, #0a4d63 46%, #03131c 100%);
}

body.page-login .page {
  background:
    radial-gradient(circle at 18% 16%, rgba(80, 184, 205, .10), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, .04), transparent 20%),
    linear-gradient(135deg, #052333 0%, #0a4d63 46%, #03131c 100%);
}

@keyframes login-role-copy-pop {
  0% {
    opacity: .38;
    transform: translateY(5px);
    filter: blur(.15px);
  }
  55% {
    opacity: 1;
    transform: translateY(-1px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes login-role-field-pop {
  0% {
    transform: translateY(4px) scale(.99);
    opacity: .72;
  }
  60% {
    transform: translateY(-1px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.login-auth-surface.is-role-switching .login-auth-heading h2,
.login-auth-surface.is-role-switching .login-support-note,
.login-auth-surface.is-role-switching .login-field label,
.login-auth-surface.is-role-switching .login-btn span {
  animation: login-role-copy-pop .34s cubic-bezier(.2, .8, .2, 1);
}

.login-auth-surface.is-role-switching .login-input-shell,
.login-auth-surface.is-role-switching .login-secret-wrap,
.login-auth-surface.is-role-switching .login-btn {
  animation: login-role-field-pop .34s cubic-bezier(.2, .8, .2, 1);
}

.login-auth-surface.is-role-switching .login-auth-head-mark {
  animation: login-role-field-pop .34s cubic-bezier(.2, .8, .2, 1);
}

.login-info-card,
.help-link-card,
.faq-item,
.info-card,
.about-hero-copy,
.about-panel,
.help-card,
.contact-card,
.admin-card,
.company-hero-card,
.company-team-card,
.company-foot-card,
.company-person-card,
.company-stat-card,
.overview-item,
.overview-shortcut {
  background: linear-gradient(180deg, var(--surface-card), var(--surface-card-muted));
  border-color: var(--surface-border);
  box-shadow: var(--surface-shadow);
  color: var(--surface-text);
  backdrop-filter: blur(18px);
}

.info-card h2,
.about-hero-copy h2,
.about-panel h3,
.help-card h2,
.contact-card h2,
.admin-card h2,
.admin-card h3,
.company-hero-copy h2,
.company-team-card h3,
.company-foot-card h3,
.company-person-copy strong,
.company-person-meta strong,
.overview-item strong,
.overview-shortcut strong,
.help-link-card strong,
.faq-item summary,
.company-meta-tag strong,
.company-stat-card strong {
  color: var(--surface-text);
}

.info-card p,
.about-hero-copy p,
.about-panel p,
.help-card p,
.contact-card p,
.admin-card p,
.company-hero-copy p,
.company-person-copy small,
.company-person-copy span,
.company-person-meta span,
.overview-item span,
.overview-shortcut small,
.help-link-card span,
.faq-item p,
.admin-muted {
  color: var(--surface-text-soft);
}

.company-detail-link {
  display: grid;
  gap: 8px;
  justify-items: start;
  align-items: start;
  color: inherit;
  text-decoration: none;
  width: 100%;
}

.company-detail-link-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--surface-text-soft);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.company-detail-link-copy svg {
  width: 14px;
  height: 14px;
}

.company-detail-link:hover .company-detail-link-copy {
  color: var(--surface-text);
}

.company-detail-link:hover .company-badge {
  transform: translateY(-1px);
}

.admin-overview-card {
  background:
    radial-gradient(circle at 12% 10%, rgba(79, 194, 216, .18), transparent 26%),
    linear-gradient(145deg, rgba(10, 70, 95, .96), rgba(14, 94, 122, .88));
}

.admin-overview-card .overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
  gap: 12px;
}

.admin-overview-card .overview-shortcuts {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-overview-card .overview-item {
  min-height: 92px;
}

.overview-item strong {
  font-size: 1.54rem;
}

.overview-shortcut {
  min-height: 104px;
}

.company-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .85fr);
  gap: 18px;
  align-items: stretch;
}

.company-hero-copy {
  display: grid;
  gap: 12px;
  padding: 2px 0;
}

.company-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--surface-text-soft);
  text-decoration: none;
  font-weight: 800;
  width: fit-content;
}

.company-back-link:hover {
  color: var(--surface-text);
}

.company-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.company-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-elevated);
  color: var(--surface-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

.company-meta-tag strong {
  font-size: .86rem;
}

.company-meta-tag span {
  font-size: .86rem;
  color: var(--surface-text-soft);
}

.company-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.company-stat-card {
  min-height: 110px;
  padding: 14px 16px;
  border-radius: 18px;
  display: grid;
  align-content: space-between;
}

.company-stat-card span {
  color: var(--surface-text-soft);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.company-stat-card strong {
  font-size: 2rem;
  line-height: 1;
}

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

.company-team-card {
  display: grid;
  gap: 14px;
}

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

.company-section-head h3 {
  margin: 6px 0 0;
  font-size: 1.22rem;
}

.company-section-head .role-badge {
  margin-bottom: 0;
}

.company-empty-state,
.company-mini-note {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed var(--surface-hairline);
  background: var(--surface-elevated);
  color: var(--surface-text-soft);
}

.company-mini-note {
  padding: 12px 14px;
}

.company-person-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-elevated);
}

.company-person-card-manager {
  min-height: 132px;
}

.company-person-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--surface-text);
  background: linear-gradient(145deg, rgba(79, 194, 216, .24), rgba(35, 108, 136, .22));
  border: 1px solid var(--surface-hairline);
}

.company-person-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.company-person-copy strong {
  font-size: 1rem;
  letter-spacing: -.01em;
}

.company-person-copy small,
.company-person-copy span {
  font-size: .84rem;
  line-height: 1.45;
}

.company-person-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.company-person-meta span {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--surface-text-soft);
}

.company-people-grid,
.company-people-list {
  display: grid;
  gap: 12px;
}

.company-people-list.compact {
  padding-top: 2px;
}

.company-foot-card {
  display: grid;
  gap: 14px;
}

.company-foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.company-foot-item {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-elevated);
}

.company-foot-item span {
  color: var(--surface-text-soft);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.company-foot-item strong {
  font-size: 1.06rem;
}

.company-foot-item small {
  color: var(--surface-text-soft);
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .company-hero-card,
  .company-detail-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .company-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-person-card {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .company-person-meta {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }
}

.about-stage-premium,
.info-shell-premium {
  width: min(1320px, calc(100vw - 44px));
}

.about-stage-premium {
  margin: 0 auto;
}

.about-hero-premium {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 18px;
  align-items: stretch;
}

.about-hero-premium .about-hero-copy {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 2.8vw, 32px);
}

.about-kicker-row,
.about-hero-tags,
.portal-form-hero-tags,
.portal-form-filter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-kicker,
.about-principle-card span,
.info-trust-label,
.portal-form-hero-tag,
.portal-form-stat span,
.portal-form-timer-chip span,
.portal-question-kicker,
.portal-form-pager label,
.portal-form-date span,
.admin-company-inline-grid label,
.info-lock-card span,
.info-security-mini-card span,
.about-metric-card span {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-kicker,
.portal-form-hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-elevated);
  color: var(--surface-text);
}

.about-hero-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--surface-text-soft);
  line-height: 1.75;
}

.about-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.about-metric-card,
.about-principle-card,
.info-trust-card,
.info-lock-card,
.info-security-mini-card,
.portal-form-pager,
.portal-form-stat,
.portal-form-timer-chip,
.portal-form-tip,
.admin-company-inline-editor {
  border-radius: 18px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-elevated);
}

.about-metric-card {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
}

.about-metric-card span,
.about-principle-card span,
.info-trust-label,
.portal-form-stat span,
.portal-form-pager label,
.portal-form-date span,
.admin-company-inline-grid label,
.info-lock-card span,
.info-security-mini-card span {
  color: var(--surface-text-soft);
}

.about-metric-card strong,
.about-principle-card strong {
  color: var(--surface-text);
  font-size: .98rem;
  line-height: 1.32;
}

.about-metric-card small,
.about-principle-card p,
.info-trust-card p,
.info-lock-card p,
.info-security-mini-card p,
.portal-form-tip,
.portal-form-lead {
  color: var(--surface-text-soft);
  line-height: 1.62;
}

.about-hero-media {
  position: relative;
  min-height: 100%;
}

.about-hero-media img {
  min-height: 100%;
}

.about-media-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(6, 18, 25, .72);
  backdrop-filter: blur(18px);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

.about-media-caption span {
  color: rgba(255, 255, 255, .72);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-media-caption strong {
  font-size: .98rem;
  line-height: 1.42;
}

.about-story-grid,
.about-principles-grid {
  display: grid;
  gap: 16px;
}

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

.about-story-panel {
  display: grid;
  gap: 10px;
}

.section-eyebrow {
  margin: 0;
  color: var(--surface-text-soft);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.about-point-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-point-list li {
  position: relative;
  padding-left: 24px;
  color: var(--surface-text-soft);
  line-height: 1.6;
}

.about-point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(47, 151, 173, .6);
  box-shadow: 0 0 0 4px rgba(47, 151, 173, .12);
}

.about-quote {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-card-muted);
}

.about-quote-mark {
  color: rgba(47, 151, 173, .6);
  font-size: 1.8rem;
  line-height: 1;
}

.about-quote p {
  margin: 0;
  color: var(--surface-text);
  font-size: 1rem;
  line-height: 1.6;
}

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

.about-principle-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
}

.info-security-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 16px;
  align-items: stretch;
}

.info-security-copy {
  display: grid;
  gap: 12px;
  padding: 2px 0;
}

.info-security-copy h2 {
  margin: 8px 0 0;
}

.info-security-copy p {
  margin: 0;
}

.info-security-rail {
  display: grid;
  gap: 12px;
}

.info-lock-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
}

.info-lock-card strong {
  color: var(--surface-text);
  font-size: 1.02rem;
}

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

.info-security-mini-card {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
}

.info-security-mini-card strong {
  color: var(--surface-text);
  font-size: 1.5rem;
  line-height: 1;
}

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

.info-trust-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
}

.info-trust-card h3 {
  margin: 0;
  color: var(--surface-text);
  font-size: 1.02rem;
}

.info-support-grid {
  margin-top: 2px;
}

.portal-forms-filter-bar {
  align-items: flex-end;
  padding: 14px 16px;
  border: 1px solid var(--surface-hairline);
  border-radius: 18px;
  background: var(--surface-card);
}

.portal-form-date {
  display: grid;
  gap: 6px;
  min-width: 160px;
}

.portal-form-date input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-elevated);
  padding: 11px 13px;
  color: var(--surface-text);
  font: inherit;
  outline: none;
}

.portal-form-date input:focus,
.portal-form-search input:focus,
.portal-form-pager select:focus,
.admin-company-inline-grid input:focus {
  border-color: rgba(47, 151, 173, .34);
  box-shadow: 0 0 0 4px rgba(47, 151, 173, .08);
}

.portal-form-pager {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
}

.portal-form-pager select {
  min-width: 120px;
  border: 1px solid var(--surface-hairline);
  border-radius: 12px;
  background: var(--surface-elevated);
  padding: 10px 12px;
  color: var(--surface-text);
  font: inherit;
  outline: none;
}

.portal-form-pager-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-form-meta-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-assigned-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 10px;
}

.portal-assigned-form-card {
  min-height: 148px;
  padding: 10px 11px;
  border-radius: 16px;
}

.portal-assigned-form-card .portal-form-card-head h4 {
  font-size: .9rem;
  line-height: 1.28;
}

.portal-assigned-form-card .portal-form-card-head p {
  font-size: .76rem;
}

.portal-assigned-form-card .portal-form-card-meta {
  gap: 6px;
}

.portal-assigned-form-card .portal-form-card-meta span {
  padding: 4px 7px;
  font-size: .72rem;
}

.portal-assigned-form-card .portal-form-card-footer small {
  font-size: .78rem;
}

.portal-assigned-form-card .portal-form-action {
  padding: 5px 9px;
  font-size: .76rem;
}

.portal-google-form-shell {
  position: relative;
  gap: 18px;
  padding: clamp(18px, 2.8vw, 30px);
}

.portal-google-form-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #2f97ad, #6dd7e8, #2f97ad);
}

.portal-google-form-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 16px;
  align-items: stretch;
}

.portal-form-hero-copy {
  display: grid;
  gap: 10px;
}

.portal-form-lead {
  margin: 0;
  max-width: 68ch;
  font-size: .98rem;
}

.portal-form-hero-aside {
  display: grid;
  gap: 12px;
  align-content: start;
}

.portal-form-state-wrap {
  justify-items: start;
  text-align: left;
}

.portal-form-state-wrap small {
  color: var(--surface-text-soft);
}

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

.portal-form-stat {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
}

.portal-form-stat strong,
.portal-form-timer-chip strong {
  color: var(--surface-text);
  font-size: .98rem;
  line-height: 1.32;
}

.portal-form-timer-chip {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-color: rgba(47, 151, 173, .18);
  background: linear-gradient(145deg, rgba(47, 151, 173, .1), var(--surface-elevated));
}

.portal-form-tip {
  padding: 12px 14px;
  line-height: 1.62;
}

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

.portal-google-question {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-card);
  box-shadow: var(--surface-shadow);
}

.portal-google-question::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #2f97ad, rgba(47, 151, 173, .22));
}

.portal-question-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.portal-question-index {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(47, 151, 173, .12);
  color: #1f5f75;
  font-weight: 900;
  flex: 0 0 auto;
}

.portal-question-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.portal-question-copy h3 {
  margin: 0;
  color: var(--surface-text);
  font-size: 1.02rem;
  line-height: 1.45;
}

.portal-question-copy p {
  margin: 0;
  color: var(--surface-text-soft);
  line-height: 1.6;
}

.portal-answer-grid-single {
  grid-template-columns: 1fr;
  margin-top: 0;
  gap: 8px;
}

.portal-google-answer {
  position: relative;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-elevated);
  cursor: pointer;
}

.portal-google-answer input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.portal-answer-radio {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(47, 151, 173, .35);
  flex: 0 0 auto;
  margin-top: 2px;
  box-shadow: inset 0 0 0 5px transparent;
  transition: box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.portal-google-answer input:checked + .portal-answer-radio {
  border-color: #2f97ad;
  box-shadow: inset 0 0 0 5px #2f97ad;
  background: #fff;
}

.portal-answer-text {
  color: var(--surface-text);
  font-weight: 700;
  line-height: 1.45;
}

.portal-google-answer:hover {
  background: rgba(47, 151, 173, .08);
}

.portal-google-answer.is-selected {
  border-color: rgba(47, 151, 173, .34);
  background: rgba(47, 151, 173, .1);
}

.portal-google-actions {
  padding-top: 8px;
}

.admin-company-row-actions {
  justify-content: flex-end;
}

.admin-company-edit-row td {
  padding: 0;
  border-top: none;
  background: transparent;
}

.admin-company-edit-row.is-open td {
  background: rgba(47, 151, 173, .03);
}

.admin-company-inline-editor {
  display: grid;
  gap: 14px;
  margin: 8px 0 14px;
  padding: 16px;
  box-shadow: 0 14px 26px rgba(11, 47, 64, .08);
}

.admin-company-inline-copy {
  display: grid;
  gap: 6px;
}

.admin-company-inline-copy h3 {
  margin: 0;
  color: var(--surface-text);
  font-size: 1.08rem;
}

.admin-company-inline-copy p {
  margin: 0;
  color: var(--surface-text-soft);
  line-height: 1.6;
}

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

.admin-company-inline-grid label {
  display: grid;
  gap: 6px;
  color: var(--surface-text-soft);
}

.admin-company-inline-grid input {
  width: 100%;
  border: 1px solid var(--surface-hairline);
  border-radius: 12px;
  background: var(--surface-card);
  padding: 11px 12px;
  color: var(--surface-text);
  font: inherit;
  outline: none;
}

.admin-company-inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .about-hero-premium,
  .about-story-grid,
  .about-principles-grid,
  .info-security-hero,
  .info-trust-grid,
  .portal-google-form-top,
  .portal-form-meta-grid-wide,
  .admin-company-inline-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .about-hero-metrics,
  .info-security-mini-grid,
  .portal-form-hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .about-hero-premium,
  .info-security-hero {
    gap: 14px;
  }

  .about-media-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .portal-form-pager {
    align-items: stretch;
  }

  .portal-form-pager-controls,
  .admin-company-inline-actions {
    width: 100%;
    justify-content: space-between;
  }
}

body.page-login {
  background-color: #03141f;
  background:
    radial-gradient(circle at 18% 14%, rgba(70, 200, 222, .14), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(35, 110, 196, .1), transparent 20%),
    linear-gradient(135deg, #03141f 0%, #062b40 46%, #020f17 100%);
}

body.theme-day.page-login {
  background-color: #f4f8fb;
  background:
    radial-gradient(circle at 16% 14%, rgba(47, 151, 173, .10), transparent 24%),
    radial-gradient(circle at 84% 8%, rgba(255, 255, 255, .84), transparent 22%),
    linear-gradient(135deg, #f7fbfd 0%, #eaf2f7 48%, #dbe6ee 100%);
}

body.theme-night.page-login {
  background-color: #03141f;
  background:
    radial-gradient(circle at 18% 14%, rgba(70, 200, 222, .18), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(35, 110, 196, .12), transparent 20%),
    linear-gradient(135deg, #03141f 0%, #062b40 46%, #020f17 100%);
}

body.theme-day.page-login .login-stage {
  background:
    radial-gradient(circle at 18% 16%, rgba(47, 151, 173, .12), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, .82), transparent 20%),
    linear-gradient(135deg, #f7fbfd 0%, #ebf3f7 46%, #dce7ee 100%);
}

body.theme-day.page-login .login-shell {
  background:
    radial-gradient(circle at 16% 16%, rgba(47, 151, 173, .08), transparent 24%),
    radial-gradient(circle at 84% 10%, rgba(255, 255, 255, .92), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, .90) 0%, rgba(244, 248, 251, .86) 46%, rgba(226, 235, 241, .92) 100%);
  border: 1px solid rgba(148, 168, 181, .18);
  box-shadow: 0 28px 64px rgba(18, 44, 57, .10);
}

body.theme-day.page-login .login-shell::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .78), transparent 34%, rgba(47, 151, 173, .03)),
    radial-gradient(circle at 14% 24%, rgba(47, 151, 173, .06), transparent 24%),
    radial-gradient(circle at 82% 74%, rgba(47, 151, 173, .04), transparent 28%);
}

body.theme-day.page-login .login-brand-header h1 {
  color: #102b3d;
}

body.theme-day.page-login .login-brand,
body.theme-day.page-login .login-brand-subtitle {
  color: #2a7385;
}

body.theme-day.page-login .login-hero-lead {
  color: #5c707c;
}

body.theme-day.page-login .login-choice-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(245, 248, 250, .84));
  border-color: rgba(142, 160, 171, .16);
  box-shadow: 0 22px 44px rgba(18, 39, 50, .06);
  color: #143141;
}

body.theme-day.page-login .login-choice-head h2 {
  color: #133345;
}

body.theme-day.page-login .login-choice-head p {
  color: #58707b;
}

body.theme-day.page-login .switch-btn {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(107, 128, 139, .16);
  color: #153242;
}

body.theme-day.page-login .switch-btn:hover {
  background: rgba(255, 255, 255, .20);
}

body.theme-day.page-login .switch-btn.is-active {
  color: #fff;
  box-shadow: 0 12px 22px rgba(34, 112, 66, .16);
}

body.theme-day.page-login .login-role-option {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(246, 249, 251, .86));
  border-color: rgba(142, 160, 171, .16);
  box-shadow: 0 14px 28px rgba(18, 39, 50, .06);
  color: #143141;
}

body.theme-day.page-login .login-role-option::before {
  background: linear-gradient(90deg, transparent, rgba(47, 151, 173, .24), transparent);
  opacity: .72;
}

body.theme-day.page-login .login-role-option.is-active-role {
  border-color: rgba(47, 151, 173, .30);
  background: linear-gradient(180deg, rgba(236, 248, 251, .94), rgba(248, 252, 253, .92));
  box-shadow: 0 18px 32px rgba(18, 39, 50, .10), inset 0 0 0 1px rgba(47, 151, 173, .08);
  transform: translateY(-1px);
}

body.theme-day.page-login .login-role-option[data-role-tone="personel"] .login-role-mark {
  color: #1d92b0;
  background: linear-gradient(145deg, rgba(62, 200, 230, .14), rgba(239, 247, 250, .92));
  border-color: rgba(62, 200, 230, .22);
}

body.theme-day.page-login .login-role-option[data-role-tone="manager"] .login-role-mark {
  color: #23885a;
  background: linear-gradient(145deg, rgba(112, 216, 138, .14), rgba(239, 247, 250, .92));
  border-color: rgba(112, 216, 138, .22);
}

body.theme-day.page-login .login-role-option[data-role-tone="support"] .login-role-mark {
  color: #8d63d7;
  background: linear-gradient(145deg, rgba(182, 139, 255, .14), rgba(239, 247, 250, .92));
  border-color: rgba(182, 139, 255, .22);
}

body.theme-day.page-login .login-role-mark {
  background: linear-gradient(145deg, rgba(47, 151, 173, .12), rgba(239, 247, 250, .92));
  border-color: rgba(47, 151, 173, .18);
  color: #1a829d;
}

body.theme-day.page-login .triple-login-copy {
  color: #173243;
}

body.theme-day.page-login .triple-login-copy h3 {
  color: #163648;
}

body.theme-day.page-login .triple-login-copy p {
  color: #5b707d;
}

body.theme-day.page-login .login-role-pill {
  background: rgba(47, 151, 173, .08);
  border-color: rgba(47, 151, 173, .18);
  color: #103443;
}

body.theme-day.page-login .login-back-btn {
  background: rgba(15, 42, 55, .04);
  border-color: rgba(107, 128, 139, .16);
  color: #153242;
}

body.theme-day.page-login .login-back-btn:hover {
  background: rgba(15, 42, 55, .07);
  border-color: rgba(107, 128, 139, .24);
}

body.theme-day.page-login .login-trust-note {
  background: rgba(47, 151, 173, .04);
  border-color: rgba(47, 151, 173, .12);
  color: #5b707d;
}

body.theme-day.page-login .login-trust-icon {
  color: #1d8ea9;
}

body.theme-day.page-login .login-flip-card .login-role-pill {
  color: #103443;
}

body.theme-day.page-login .login-flip-card .login-role-option.is-active-role {
  box-shadow: 0 18px 32px rgba(18, 39, 50, .12), inset 0 0 0 1px rgba(47, 151, 173, .08);
}

body.page-login {
  position: relative;
  overflow-x: hidden;
}

body.page-login::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(70, 200, 222, .16), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(35, 110, 196, .10), transparent 20%),
    linear-gradient(135deg, rgba(3, 20, 31, .76), rgba(3, 20, 31, .36));
  pointer-events: none;
  filter: saturate(1.06) contrast(1.02);
}

body.theme-day.page-login::before {
  background:
    radial-gradient(circle at 18% 16%, rgba(47, 151, 173, .10), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, .78), transparent 20%),
    linear-gradient(135deg, rgba(247, 250, 252, .22), rgba(222, 233, 240, .10));
  filter: saturate(1.02) contrast(.98) brightness(1.05);
}

body.theme-night.page-login::before {
  background:
    radial-gradient(circle at 18% 16%, rgba(70, 200, 222, .16), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(35, 110, 196, .10), transparent 20%),
    linear-gradient(135deg, rgba(3, 20, 31, .76), rgba(3, 20, 31, .36));
}

body.page-login .page,
body.page-login .sidebar-backdrop,
body.page-login .left-rail {
  position: relative;
  z-index: 1;
}

body.page-login .left-rail {
  position: fixed;
  z-index: 20;
}

body.page-login .page {
  background: transparent;
}

body.page-login .template-stage {
  min-height: calc(100vh - 30px);
  place-items: center;
}

body.page-login .login-stage {
  background: transparent;
  padding-top: 0;
  padding-bottom: 0;
}

body.page-login .template-shell.login-shell {
  width: min(1120px, calc(100vw - 96px));
}

body.page-login .login-shell {
  min-height: 0;
  padding: 14px;
  background: linear-gradient(180deg, rgba(6, 18, 26, .20), rgba(6, 18, 26, .08));
  border-color: rgba(255, 255, 255, .10);
  box-shadow: 0 28px 72px rgba(0, 0, 0, .24);
  backdrop-filter: saturate(136%);
  -webkit-backdrop-filter: saturate(136%);
}

body.theme-day.page-login .login-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(247, 250, 252, .03));
  border-color: rgba(138, 157, 169, .16);
  box-shadow: 0 28px 72px rgba(18, 39, 50, .08);
}

body.page-login .login-choice-panel,
body.page-login .login-auth-surface {
  background: linear-gradient(180deg, rgba(6, 18, 26, .18), rgba(6, 18, 26, .08));
  border-color: rgba(255, 255, 255, .10);
  backdrop-filter: saturate(128%);
  -webkit-backdrop-filter: saturate(128%);
  align-content: center;
}

body.theme-day.page-login .login-choice-panel,
body.theme-day.page-login .login-auth-surface {
  background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(247, 250, 252, .05));
  border-color: rgba(138, 157, 169, .14);
  backdrop-filter: saturate(110%);
  -webkit-backdrop-filter: saturate(110%);
  align-content: center;
}

body.page-login .login-choice-head,
body.page-login .login-hero-lead,
body.page-login .login-trust-note,
body.page-login .login-support-note {
  display: none;
}

body.page-login .login-card-stage {
  width: min(100%, 1060px);
  margin: 0 auto;
  min-height: 220px;
}

body.page-login .login-flip-card {
  isolation: isolate;
  min-height: 220px;
  box-shadow: 0 22px 42px rgba(1, 12, 18, .10);
  transition: min-height .34s ease, box-shadow .24s ease;
}

body.page-login .login-flip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 30px;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(6, 18, 26, .08), rgba(6, 18, 26, 0) 60%),
    url('/static/images/saydinc-login-bg.png');
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
  background-position: center center, var(--login-art-position, 50% 50%);
  opacity: .68;
  filter: saturate(1.04) contrast(1.03);
  will-change: background-position, opacity, filter;
  transition: background-position .58s cubic-bezier(.2, .8, .2, 1), opacity .28s ease, filter .28s ease;
}

body.theme-day.page-login .login-flip-card::before {
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 62%),
    url('/static/images/saydinc-login-bg.png');
  opacity: .56;
}

body.page-login .login-flip-card[data-active-role="personel"] {
  --login-art-position: 48% 50%;
}

body.page-login .login-flip-card[data-active-role="yonetici"] {
  --login-art-position: 52% 48%;
}

body.page-login .login-flip-card[data-active-role="destek"] {
  --login-art-position: 50% 52%;
}

body.page-login .login-flip-card[data-login-state="chooser"] {
  min-height: 210px;
}

body.page-login .login-flip-card[data-login-state="form"] {
  min-height: 440px;
}

body.page-login .login-role-grid {
  gap: 12px;
}

body.page-login .login-role-option {
  min-height: 160px;
  background: linear-gradient(180deg, rgba(7, 22, 31, .12), rgba(7, 22, 31, .05));
  border-color: rgba(255, 255, 255, .10);
  backdrop-filter: blur(18px) saturate(124%);
}

body.theme-day.page-login .login-role-option {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(247, 250, 252, .02));
  border-color: rgba(138, 157, 169, .12);
}

body.page-login .triple-login-copy {
  gap: 12px;
}

body.page-login .triple-login-copy p {
  display: none;
}

body.page-login .switch-btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .10);
}

body.page-login .login-role-mark {
  width: 72px;
  height: 72px;
}

body.page-login .login-flip-card .login-back-content {
  gap: 18px;
}

body.page-login .login-auth-head {
  gap: 16px;
}

body.page-login .login-auth-heading h2 {
  margin-bottom: 0;
}

body.theme-day.page-login .page {
  background:
    radial-gradient(circle at 18% 16%, rgba(47, 151, 173, .10), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, .86), transparent 20%),
    linear-gradient(135deg, #f8fbfd 0%, #edf4f8 50%, #dbe6ee 100%);
}

body.theme-day.page-login .login-auth-surface {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(244, 248, 251, .93));
  border-color: rgba(142, 160, 171, .22);
  box-shadow: 0 22px 44px rgba(18, 39, 50, .08);
  color: #143141;
}

body.theme-day.page-login .login-auth-surface::before {
  background:
    radial-gradient(circle at top right, rgba(47, 151, 173, .08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(47, 151, 173, .04), transparent 24%);
}

body.theme-day.page-login .login-placeholder-mark {
  background: linear-gradient(160deg, rgba(62, 200, 230, .14), rgba(239, 247, 250, .92));
  border-color: rgba(62, 200, 230, .22);
  color: #1d92b0;
  box-shadow: 0 18px 32px rgba(18, 39, 50, .08);
}

body.theme-day.page-login .login-placeholder-copy h2 {
  color: #123345;
}

body.theme-day.page-login .login-placeholder-copy p {
  color: #5b707d;
}

body.theme-day.page-login .login-auth-head-mark {
  background: linear-gradient(160deg, rgba(62, 200, 230, .14), rgba(239, 247, 250, .92));
  border-color: rgba(62, 200, 230, .22);
  color: #1d92b0;
}

body.theme-day.page-login .login-auth-head h2 {
  color: #123345;
}

body.theme-day.page-login .login-support-note {
  color: #5b707d;
}

body.theme-day.page-login .login-input-shell,
body.theme-day.page-login .login-secret-wrap,
body.theme-day.page-login .login-floating-panel .reset-field input {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(142, 160, 171, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

body.theme-day.page-login .login-input-shell input,
body.theme-day.page-login .login-secret-wrap input {
  color: #112a3a;
}

body.theme-day.page-login .login-input-shell input::placeholder,
body.theme-day.page-login .login-secret-wrap input::placeholder {
  color: rgba(67, 88, 100, .52);
}

body.theme-day.page-login .login-secret-toggle {
  color: #153242;
  background: rgba(15, 42, 55, .04);
  border-color: rgba(107, 128, 139, .18);
}

body.theme-day.page-login .login-remember {
  color: #274050;
}

body.theme-day.page-login .login-forgot-link {
  color: #1d8ea9;
}

body.theme-day.page-login .login-trust-note {
  background: rgba(47, 151, 173, .04);
  border-color: rgba(47, 151, 173, .12);
  color: #5b707d;
}

body.theme-day.page-login .login-trust-icon {
  color: #1d8ea9;
}

body.theme-day.page-login .login-back-btn {
  color: #153242;
}

body.theme-day.page-login .login-back-btn:hover {
  background: rgba(15, 42, 55, .07);
  border-color: rgba(107, 128, 139, .24);
}

body.page-login .page {
  margin-left: 82px;
  padding: 10px clamp(16px, 3vw, 32px) 14px;
  background: transparent;
}

.login-clean-shell {
  position: relative;
  overflow: hidden;
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 30px;
  border: 1px solid rgba(214, 239, 245, .12);
  background: linear-gradient(180deg, rgba(5, 17, 25, .78), rgba(4, 14, 20, .92));
  box-shadow: 0 42px 88px rgba(1, 10, 15, .36);
}

.login-clean-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 14%, rgba(47, 151, 173, .14), transparent 22%),
    radial-gradient(circle at 12% 84%, rgba(87, 197, 221, .08), transparent 28%);
}

.login-brand-header {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 8px 18px 2px;
}

.login-brand-header h1 {
  margin: 0;
  color: #f8fdff;
  font-size: clamp(1.9rem, 3.1vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.login-brand-header .login-hero-lead {
  margin: 0;
  max-width: 58ch;
  color: rgba(226, 244, 250, .78);
}

.login-workflow-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, .98fr) minmax(420px, 1.02fr);
  gap: 14px;
  align-items: stretch;
}

.login-choice-panel,
.login-clean-shell .login-auth-surface,
.login-settings-dock-footer,
.login-footer-card {
  border: 1px solid rgba(214, 239, 245, .12);
  background: linear-gradient(180deg, rgba(8, 24, 34, .96), rgba(6, 18, 26, .9));
  color: #eaf7fb;
  box-shadow: 0 22px 44px rgba(1, 12, 18, .24);
  backdrop-filter: blur(18px);
}

.login-choice-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(16px, 2vw, 24px);
  border-radius: 28px;
}

.login-choice-head {
  display: grid;
  gap: 6px;
}

.login-choice-head h2 {
  margin: 6px 0 0;
  color: #f8fdff;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.login-choice-head p {
  margin: 0;
  color: #9cb4c1;
  line-height: 1.62;
}

.login-role-chooser-grid {
  gap: 10px;
}

.login-role-option {
  min-height: 188px;
  padding: 16px 15px 14px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 24, 35, .96), rgba(7, 18, 27, .92));
  border: 1px solid rgba(146, 211, 229, .14);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .16);
}

.login-role-option::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  opacity: .82;
  background: linear-gradient(90deg, transparent, rgba(91, 212, 235, .55), transparent);
}

.login-role-option[data-role-tone="personel"] .login-role-mark {
  color: #67e3f6;
  background: linear-gradient(145deg, rgba(67, 208, 231, .16), rgba(47, 151, 173, .08));
  border-color: rgba(67, 208, 231, .28);
}

.login-role-option[data-role-tone="manager"] .login-role-mark {
  color: #70d88a;
  background: linear-gradient(145deg, rgba(112, 216, 138, .16), rgba(38, 136, 83, .08));
  border-color: rgba(112, 216, 138, .24);
}

.login-role-option[data-role-tone="support"] .login-role-mark {
  color: #b68bff;
  background: linear-gradient(145deg, rgba(182, 139, 255, .16), rgba(98, 58, 193, .08));
  border-color: rgba(182, 139, 255, .24);
}

.login-role-option.is-active-role {
  border-color: rgba(120, 223, 241, .36);
  box-shadow: 0 20px 36px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(120, 223, 241, .1);
  transform: translateY(-1px);
}

.login-role-option.is-active-role::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4ec5dc, #1c8fb1);
  box-shadow: 0 10px 18px rgba(47, 151, 173, .24);
}

.login-role-option.is-active-role::before {
  content: "✓";
  position: absolute;
  top: 13px;
  right: 13px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  z-index: 1;
}

.login-role-mark {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 151, 173, .18);
  color: #66e0f3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.login-role-mark svg {
  width: 26px;
  height: 26px;
}

.triple-login-copy {
  display: grid;
  gap: 8px;
}

.triple-login-copy h3 {
  margin: 0;
  color: #f8fdff;
  font-size: 1.18rem;
}

.triple-login-copy p {
  margin: 0;
  color: #9bb2bf;
  line-height: 1.55;
}

.switch-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid rgba(166, 220, 235, .14);
  background: rgba(255, 255, 255, .04);
  color: #eefbff;
  font-size: .88rem;
  font-weight: 800;
}

.switch-btn:hover {
  background: rgba(255, 255, 255, .08);
}

.switch-btn.is-active {
  background: linear-gradient(90deg, #22b8df, #2f97ad);
  border-color: rgba(124, 226, 246, .32);
}

.login-clean-shell .login-auth-surface {
  min-height: 100%;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.login-clean-shell .login-auth-surface::before {
  background:
    radial-gradient(circle at top right, rgba(47, 151, 173, .08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(47, 151, 173, .05), transparent 24%);
}

.login-auth-placeholder,
.login-auth-form-state {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  transition: opacity .28s ease, transform .28s ease, max-height .36s ease, margin .36s ease, padding .36s ease;
}

.login-auth-placeholder {
  justify-items: center;
  text-align: center;
  padding: clamp(26px, 5vw, 54px) clamp(18px, 4vw, 32px);
  max-height: 520px;
}

.login-placeholder-mark {
  width: 94px;
  height: 94px;
  border-radius: 30px;
  border: 1px solid rgba(125, 214, 233, .24);
  background: linear-gradient(160deg, rgba(70, 206, 230, .14), rgba(10, 25, 35, .76));
  color: #60d8ef;
  box-shadow: 0 18px 32px rgba(0, 0, 0, .22);
}

.login-placeholder-mark svg {
  width: 30px;
  height: 30px;
}

.login-placeholder-copy {
  justify-items: center;
}

.login-placeholder-copy h2 {
  margin: 0;
  color: #f6fcff;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.login-placeholder-copy p {
  margin: 0;
  max-width: 42ch;
  color: #98b0be;
  line-height: 1.65;
}

.login-auth-form-state {
  max-height: 0;
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  overflow: hidden;
}

.login-clean-shell .login-auth-surface[data-login-state="form"] .login-auth-placeholder {
  max-height: 0;
  opacity: 0;
  transform: translateX(-14px);
  pointer-events: none;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.login-clean-shell .login-auth-surface[data-login-state="form"] .login-auth-form-state {
  max-height: 1400px;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  overflow: visible;
}

.login-form-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  padding: 0;
  background: transparent;
  color: #dff7fd;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.login-back-btn svg {
  width: 18px;
  height: 18px;
}

.login-role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(47, 151, 173, .16);
  border: 1px solid rgba(120, 223, 241, .24);
  color: #dff7fd;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-clean-shell .login-auth-head {
  align-items: flex-start;
}

.login-clean-shell .login-auth-head-mark {
  background: linear-gradient(160deg, rgba(85, 212, 236, .18), rgba(13, 80, 99, .42));
  border-color: rgba(132, 219, 238, .2);
  color: #6ee5fb;
}

.login-clean-shell .login-auth-head h2 {
  color: #f7fdff;
}

.login-clean-shell .login-support-note {
  color: #9cb6c3;
}

.login-clean-shell .login-input-shell,
.login-clean-shell .login-secret-wrap,
.login-clean-shell .login-floating-panel .reset-field input {
  background: rgba(7, 16, 23, .92);
  border-color: rgba(131, 213, 230, .14);
}

.login-clean-shell .login-input-shell input,
.login-clean-shell .login-secret-wrap input {
  color: #ecfbff;
}

.login-clean-shell .login-input-shell input::placeholder,
.login-clean-shell .login-secret-wrap input::placeholder {
  color: rgba(220, 239, 247, .46);
}

.login-clean-shell .login-secret-toggle {
  color: #dff8fd;
  background: rgba(255, 255, 255, .04);
  border-color: rgba(131, 213, 230, .16);
}

.login-clean-shell .login-actions-row {
  align-items: center;
}

.login-clean-shell .login-remember {
  color: #d9ebf1;
}

.login-clean-shell .login-forgot-link {
  color: #6fdcf0;
}

.login-trust-note {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(131, 213, 230, .12);
  color: #9bb6c4;
  line-height: 1.6;
}

.login-trust-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: #6ee5fb;
}

.login-footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.login-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.login-footer-card {
  min-height: 84px;
  padding: 12px 14px;
  align-items: center;
}

.login-footer-card .login-info-mark {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.login-footer-card .login-info-copy strong {
  font-size: .96rem;
}

.login-footer-card .login-info-copy small {
  font-size: .83rem;
  line-height: 1.45;
}

.login-settings-dock-footer {
  margin-top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 22px;
}

.login-settings-dock-footer .login-settings-bar {
  flex-wrap: nowrap;
}

.login-settings-dock-footer .login-toggle-chip span {
  min-height: 40px;
  background: rgba(255, 255, 255, .04);
  color: #effbff;
}

.login-settings-dock-footer .login-toggle-chip.is-selected span,
.login-settings-dock-footer .login-toggle-chip input:checked + span {
  background: linear-gradient(145deg, rgba(94, 203, 225, .2), rgba(33, 112, 142, .28));
}

.login-settings-dock-footer .login-settings-caption {
  color: rgba(208, 232, 241, .7);
}

.login-settings-dock-footer .login-settings-divider {
  background: rgba(214, 239, 245, .12);
}

.login-settings-dock-footer .login-language-mark {
  background: rgba(255, 255, 255, .04);
  color: #e8f7fc;
}

.login-settings-dock-footer .login-settings-head {
  color: #f5fbff;
}

.login-settings-dock-footer .login-settings-head-mark {
  background: rgba(255, 255, 255, .05);
  color: #eefbff;
}

.login-clean-shell .login-floating-panel {
  inset: 14px;
  border-radius: 22px;
  border: 1px solid rgba(131, 213, 230, .12);
  background: linear-gradient(180deg, rgba(8, 24, 34, .96), rgba(6, 18, 26, .92));
  color: #eaf7fb;
  box-shadow: 0 24px 44px rgba(1, 12, 18, .26);
}

.login-clean-shell .login-reset-head .role-badge,
.login-clean-shell .login-reset-head h4,
.login-clean-shell .login-panel-help {
  color: #eaf7fb;
}

.login-clean-shell .login-reset-head .ghost-btn {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(131, 213, 230, .14);
  color: #effbff;
}

.login-clean-shell .reset-field label {
  color: #eaf7fb;
}

.login-clean-shell .reset-field input {
  border-color: rgba(131, 213, 230, .14);
  color: #ecfbff;
}

@media (max-width: 1100px) {
  .login-workflow-grid,
  .login-footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .login-role-chooser-grid {
    grid-template-columns: 1fr;
  }

  .login-settings-dock-footer .login-settings-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  body.page-login .template-stage {
    place-items: start center;
  }

  body.page-login .template-shell.login-shell {
    width: min(100vw - 24px, 100%);
  }

  body.page-login .login-shell {
    padding: 12px;
  }

  body.page-login .login-card-stage,
  body.page-login .login-flip-card {
    min-height: 620px;
  }

  body.page-login .login-flip-card[data-login-state="chooser"] {
    min-height: 620px;
  }

  body.page-login .login-flip-card[data-login-state="form"] {
    min-height: 760px;
  }

  body.page-login .login-flip-card::before {
    background-image:
      radial-gradient(circle at 50% 50%, rgba(6, 18, 26, .08), rgba(6, 18, 26, 0) 60%),
      url('/static/images/saydinc-login-bg.png');
    background-repeat: no-repeat, no-repeat;
    background-size: auto, cover;
    background-position: center center, var(--login-art-position, 50% 50%);
    opacity: .50;
  }

  .login-clean-shell {
    width: min(100%, calc(100vw - 24px));
    padding: 14px;
    gap: 14px;
    border-radius: 24px;
  }

  .login-brand-header {
    padding-inline: 8px;
  }

  .login-choice-panel,
  .login-clean-shell .login-auth-surface,
  .login-settings-dock-footer {
    border-radius: 22px;
  }

  .login-footer-links {
    grid-template-columns: 1fr;
  }

  .login-footer-card {
    min-height: 76px;
  }

  .login-settings-dock-footer {
    padding: 12px 14px;
  }

  .login-form-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}

body.theme-day .login-clean-shell .login-footer-card,
body.theme-night .login-clean-shell .login-footer-card {
  background: linear-gradient(180deg, rgba(8, 21, 30, .94), rgba(7, 18, 26, .9));
  border-color: rgba(147, 222, 240, .14);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
  color: #eaf7fb;
}

body.theme-day .login-clean-shell .login-footer-card:hover,
body.theme-night .login-clean-shell .login-footer-card:hover {
  background: linear-gradient(180deg, rgba(10, 26, 36, .98), rgba(8, 21, 30, .94));
  border-color: rgba(147, 222, 240, .26);
}

body.theme-day .login-clean-shell .login-footer-card .login-info-mark,
body.theme-night .login-clean-shell .login-footer-card .login-info-mark {
  background: linear-gradient(145deg, rgba(44, 173, 200, .16), rgba(10, 44, 58, .66));
  border-color: rgba(147, 222, 240, .18);
  color: #d9f8fd;
}

body.theme-day .login-clean-shell .login-footer-card .login-info-copy strong,
body.theme-night .login-clean-shell .login-footer-card .login-info-copy strong {
  color: #f4fbff;
}

body.theme-day .login-clean-shell .login-footer-card .login-info-copy small,
body.theme-night .login-clean-shell .login-footer-card .login-info-copy small {
  color: #9fb8c5;
}

body.theme-day .login-clean-shell .login-footer-card .login-info-arrow,
body.theme-night .login-clean-shell .login-footer-card .login-info-arrow {
  color: #84dff4;
}

body.theme-day .login-clean-shell .triple-login-option.is-active-role,
body.theme-night .login-clean-shell .triple-login-option.is-active-role {
  background: linear-gradient(180deg, rgba(12, 36, 48, .98), rgba(7, 20, 28, .96));
  border-color: rgba(120, 223, 241, .42);
  box-shadow: 0 22px 38px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(120, 223, 241, .08);
}

body.theme-day .login-clean-shell .triple-login-option.is-active-role .switch-btn,
body.theme-night .login-clean-shell .triple-login-option.is-active-role .switch-btn {
  background: linear-gradient(90deg, #23b9e1, #2d98ae);
  border-color: rgba(124, 226, 246, .32);
  color: #fff;
}

.login-clean-shell .login-input-shell input:-webkit-autofill,
.login-clean-shell .login-input-shell input:-webkit-autofill:hover,
.login-clean-shell .login-input-shell input:-webkit-autofill:focus,
.login-clean-shell .login-input-shell input:-webkit-autofill:active,
.login-clean-shell .login-secret-wrap input:-webkit-autofill,
.login-clean-shell .login-secret-wrap input:-webkit-autofill:hover,
.login-clean-shell .login-secret-wrap input:-webkit-autofill:focus,
.login-clean-shell .login-secret-wrap input:-webkit-autofill:active {
  -webkit-text-fill-color: #ecfbff !important;
  caret-color: #ecfbff;
  box-shadow: 0 0 0 1000px rgba(7, 16, 23, .96) inset !important;
  transition: background-color 9999s ease-out 0s;
}

.login-clean-shell .login-input-shell input:focus,
.login-clean-shell .login-secret-wrap input:focus,
.login-clean-shell .form-surface input:focus {
  background: transparent;
  box-shadow: none;
}

.login-card-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  perspective: 1800px;
  min-height: 540px;
}

.login-flip-card {
  position: relative;
  width: 100%;
  min-height: 540px;
}

.login-flip-card-inner {
  position: relative;
  width: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: filter .24s ease;
}

.login-flip-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform .72s cubic-bezier(.2, .8, .18, 1), opacity .35s ease, filter .24s ease;
}

.login-flip-front {
  transform: rotateY(0deg) translateZ(0);
  opacity: 1;
}

.login-flip-back {
  transform: rotateY(90deg) translateZ(0);
  opacity: 0;
  pointer-events: none;
}

.login-flip-card[data-login-state="form"] .login-flip-front {
  transform: rotateY(-90deg) translateZ(0);
  opacity: 0;
  pointer-events: none;
}

.login-flip-card[data-login-state="form"] .login-flip-back {
  transform: rotateY(0deg) translateZ(0);
  opacity: 1;
  pointer-events: auto;
}

.login-flip-card.is-mode-switching {
  box-shadow: 0 28px 48px rgba(1, 12, 18, .14);
}

.login-flip-card.is-switching .login-role-option.is-active-role {
  transform: translateY(-4px) scale(1.01);
}

.login-back-content {
  display: grid;
  gap: 14px;
  min-height: 100%;
}

.login-flip-card {
  --login-role-accent-start: var(--accent-a);
  --login-role-accent-end: var(--accent-b);
  --login-role-accent-soft: rgba(47, 151, 173, .16);
  --login-role-accent-ring: rgba(120, 223, 241, .36);
  --login-role-accent-shadow: rgba(23, 89, 110, .24);
}

.login-flip-card[data-active-role="yonetici"] {
  --login-role-accent-start: #35c866;
  --login-role-accent-end: #1d8f57;
  --login-role-accent-soft: rgba(53, 200, 102, .16);
  --login-role-accent-ring: rgba(112, 216, 138, .34);
  --login-role-accent-shadow: rgba(34, 112, 66, .24);
}

.login-flip-card[data-active-role="destek"] {
  --login-role-accent-start: #9b6bff;
  --login-role-accent-end: #6a43db;
  --login-role-accent-soft: rgba(155, 107, 255, .16);
  --login-role-accent-ring: rgba(182, 139, 255, .34);
  --login-role-accent-shadow: rgba(95, 58, 193, .24);
}

.login-flip-card .login-btn {
  background: linear-gradient(90deg, var(--login-role-accent-start), var(--login-role-accent-end));
  box-shadow: 0 18px 30px var(--login-role-accent-shadow);
}

.login-flip-card .login-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.login-flip-card .login-role-pill {
  background: var(--login-role-accent-soft);
  border-color: var(--login-role-accent-ring);
  color: #f4fbff;
}

.login-flip-card .switch-btn.is-active {
  background: linear-gradient(90deg, var(--login-role-accent-start), var(--login-role-accent-end));
  border-color: var(--login-role-accent-ring);
  box-shadow: 0 12px 22px var(--login-role-accent-shadow);
}

.login-flip-card .login-role-option.is-active-role {
  border-color: var(--login-role-accent-ring);
  box-shadow: 0 20px 36px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(120, 223, 241, .1);
}

.login-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(214, 239, 245, .12);
  background: rgba(255, 255, 255, .06);
  color: #eaf7fb;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.login-back-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(189, 232, 243, .22);
}

.login-back-btn svg {
  width: 18px;
  height: 18px;
}

.login-role-pill {
  min-height: 36px;
  padding: 0 12px;
}

.login-forgot-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

@media (max-width: 1100px) {
  .login-card-stage,
  .login-flip-card {
    min-height: 800px;
  }
}

@media (max-width: 760px) {
  .login-card-stage,
  .login-flip-card {
    min-height: 960px;
  }

  .login-flip-card-inner {
    transition-duration: .62s;
  }
}

@media (max-width: 860px) {
  body.page-login .page {
    margin-left: 66px;
  }

  .rail-footer {
    display: none;
  }

  body.sidebar-open .rail-footer {
    display: grid;
  }
}

.announcement-stack {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

.announcement-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--surface-border);
  background: linear-gradient(180deg, var(--surface-card), var(--surface-card-muted));
  box-shadow: var(--surface-shadow);
}

.announcement-banner-emoji {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 1.55rem;
  background: linear-gradient(145deg, rgba(47, 151, 173, .12), rgba(29, 95, 124, .08));
  border: 1px solid var(--surface-hairline);
}

.announcement-banner-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.announcement-banner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.announcement-banner-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.announcement-banner-title strong {
  color: var(--surface-text);
  font-size: 1.02rem;
  line-height: 1.4;
}

.announcement-banner-meta {
  color: var(--surface-text-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.announcement-banner-copy p {
  margin: 0;
  color: var(--surface-text-soft);
  line-height: 1.6;
}

.announcement-close-form {
  margin: 0;
}

.announcement-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-elevated);
  color: var(--surface-text);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.announcement-close-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(145deg, rgba(47, 151, 173, .12), rgba(29, 95, 124, .08));
  border-color: rgba(47, 151, 173, .24);
}

.maintenance-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 20px;
  position: relative;
  overflow: hidden;
}

.maintenance-shell::before,
.maintenance-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.maintenance-shell::before {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(47, 151, 173, .18), rgba(47, 151, 173, 0) 70%);
}

.maintenance-shell::after {
  width: 420px;
  height: 420px;
  bottom: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(29, 95, 124, .12), rgba(29, 95, 124, 0) 72%);
}

.maintenance-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 24px;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid var(--surface-border);
  background: linear-gradient(180deg, var(--surface-card), var(--surface-card-muted));
  box-shadow: var(--surface-shadow);
  backdrop-filter: blur(18px);
}

.maintenance-hero {
  display: grid;
  gap: 18px;
  align-content: start;
}

.maintenance-emoji {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  font-size: 2.4rem;
  background: linear-gradient(145deg, rgba(47, 151, 173, .14), rgba(29, 95, 124, .08));
  border: 1px solid var(--surface-hairline);
}

.maintenance-hero h1 {
  margin: 0;
  color: var(--surface-text);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.maintenance-hero p {
  margin: 0;
  color: var(--surface-text-soft);
  line-height: 1.7;
  font-size: 1rem;
}

.maintenance-copy-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-elevated);
}

.maintenance-copy-card h2,
.maintenance-copy-card h3 {
  margin: 0;
  color: var(--surface-text);
}

.maintenance-copy-card p,
.maintenance-copy-card small {
  margin: 0;
  color: var(--surface-text-soft);
  line-height: 1.6;
}

.maintenance-stack {
  display: grid;
  gap: 14px;
}

.maintenance-status-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--surface-hairline);
  background: linear-gradient(180deg, var(--surface-card-strong), var(--surface-elevated));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.maintenance-status-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 0 10px;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: rgba(47, 151, 173, .1);
  border: 1px solid var(--surface-hairline);
  color: var(--surface-text-soft);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.maintenance-status-card p {
  margin: 0;
  color: var(--surface-text-soft);
  line-height: 1.6;
}

.maintenance-status-note {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-elevated);
  color: var(--surface-text-soft);
  line-height: 1.6;
}

.maintenance-flash-stack {
  width: min(1120px, 100%);
  position: relative;
  z-index: 2;
  margin: 0 0 14px;
}

.maintenance-support-card {
  display: grid;
  gap: 0;
  padding: 0;
  border-radius: 22px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-elevated);
  overflow: hidden;
}

.maintenance-support-card > summary {
  list-style: none;
}

.maintenance-support-card > summary::-webkit-details-marker {
  display: none;
}

.maintenance-support-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
}

.maintenance-support-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--surface-hairline);
  background: linear-gradient(145deg, rgba(47, 151, 173, .12), rgba(29, 95, 124, .08));
  font-size: 1.15rem;
}

.maintenance-support-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.maintenance-support-copy strong {
  color: var(--surface-text);
  font-size: .96rem;
}

.maintenance-support-copy small {
  color: var(--surface-text-soft);
  font-size: .76rem;
  line-height: 1.45;
}

.maintenance-support-chevron {
  color: var(--surface-text-soft);
  font-size: 1.1rem;
  font-weight: 900;
  transition: transform .18s ease;
}

.maintenance-support-card[open] .maintenance-support-chevron {
  transform: rotate(180deg);
}

.maintenance-support-form {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
  margin-top: 2px;
}

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

.maintenance-support-field {
  display: grid;
  gap: 6px;
}

.maintenance-support-field label {
  color: var(--surface-text);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.maintenance-support-field input {
  min-height: 46px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--surface-hairline);
  background: var(--surface-card);
  color: var(--surface-text);
  padding: 0 14px;
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.maintenance-support-field input::placeholder {
  color: var(--surface-text-soft);
  opacity: .7;
}

.maintenance-support-field input:focus {
  border-color: rgba(47, 151, 173, .32);
  box-shadow: 0 0 0 4px rgba(47, 151, 173, .12);
  background: var(--surface-elevated);
}

.maintenance-support-actions {
  display: flex;
  justify-content: flex-end;
}

.maintenance-support-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(47, 151, 173, .24);
  background: linear-gradient(145deg, rgba(47, 151, 173, .18), rgba(29, 95, 124, .14));
  color: var(--surface-text);
  font: inherit;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.maintenance-support-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 151, 173, .34);
  box-shadow: 0 10px 20px rgba(10, 47, 64, .08);
}

@media (max-width: 920px) {
  .announcement-banner,
  .maintenance-panel {
    grid-template-columns: 1fr;
  }

  .announcement-banner-head {
    flex-direction: column;
  }

  .announcement-close-form {
    justify-self: flex-start;
  }
}

@media (max-width: 760px) {
  .notification-bubble-stack {
    top: 88px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .notification-bubble {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 14px 14px 12px;
    border-radius: 22px;
  }

  .notification-bubble-emoji {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .notification-bubble-action {
    padding: 8px 12px;
  }

  .announcement-stack {
    margin-bottom: 12px;
  }

  .maintenance-shell {
    padding: 18px 14px;
  }

  .maintenance-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .maintenance-support-grid {
    grid-template-columns: 1fr;
  }

  .maintenance-emoji {
    width: 72px;
    height: 72px;
    font-size: 2.1rem;
  }
}
