:root {
  --red: #cf202a;
  --red-dark: #a9121b;
  --red-soft: #fff0f1;
  --ink: #20242b;
  --muted: #717985;
  --line: #e5e7eb;
  --line-strong: #d4d7dc;
  --surface: #ffffff;
  --canvas: #f5f6f8;
  --canvas-warm: #f7f6f4;
  --green: #1c8a5a;
  --green-soft: #eaf7f0;
  --amber: #b16b00;
  --amber-soft: #fff6df;
  --blue: #2563a8;
  --blue-soft: #eef5ff;
  --purple: #6941c6;
  --purple-soft: #f3efff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 16px 38px rgba(25, 30, 38, 0.09);
  --radius: 16px;
  --sidebar-width: 268px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

.is-hidden {
  display: none !important;
}

.public-home {
  min-height: 100vh;
  background: #fff;
}

.public-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px clamp(22px, 6vw, 92px);
  border-bottom: 1px solid rgba(32, 36, 43, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.public-brand img {
  display: block;
  width: min(220px, 44vw);
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.public-nav a {
  color: #4e5560;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.public-nav a:hover {
  color: var(--red);
}

.public-hero {
  display: grid;
  min-height: calc(100vh - 86px);
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(44px, 7vw, 110px);
  padding: clamp(64px, 9vw, 130px) clamp(22px, 7vw, 112px);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 14%, rgba(207, 32, 42, 0.13), transparent 25%),
    linear-gradient(135deg, #fff 30%, #fafafa 100%);
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 18px 0 26px;
  color: #161a20;
  font-size: clamp(46px, 6.2vw, 88px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  color: #5f6671;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button-large {
  min-height: 50px;
  padding: 0 22px;
  font-size: 14px;
  text-decoration: none;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  color: #747b85;
  font-size: 13px;
}

.hero-card {
  position: relative;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: linear-gradient(145deg, #252a32, #15181d);
  color: #fff;
  box-shadow: 0 34px 80px rgba(24, 28, 35, 0.2);
}

.hero-card::before {
  position: absolute;
  width: 120px;
  height: 4px;
  border-radius: 99px;
  background: var(--red);
  content: "";
  top: 0;
  left: 44px;
}

.hero-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card-head span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workflow-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.workflow-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.workflow-list > li > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(207, 32, 42, 0.16);
  color: #ff777f;
  font-size: 12px;
  font-weight: 800;
}

.workflow-list strong,
.workflow-list small {
  display: block;
}

.workflow-list strong {
  margin: 1px 0 7px;
  font-size: 16px;
}

.workflow-list small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.5;
}

.public-section {
  padding: clamp(72px, 9vw, 130px) clamp(22px, 7vw, 112px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading h2,
.benefit-band h2 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 4.2vw, 58px);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.section-heading p {
  margin: 0;
  color: #69717c;
  font-size: 17px;
  line-height: 1.7;
}

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

.feature-grid article {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.feature-grid article > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
}

.feature-grid h3 {
  margin: 28px 0 12px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.feature-grid p {
  margin: 0;
  color: #6d747f;
  font-size: 14px;
  line-height: 1.7;
}

.benefit-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 8vw, 120px);
  padding: clamp(72px, 9vw, 120px) clamp(22px, 7vw, 112px);
  background: #20242b;
  color: #fff;
}

.benefit-band ul {
  display: grid;
  align-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-band li {
  position: relative;
  padding: 18px 0 18px 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.benefit-band li::before {
  position: absolute;
  left: 0;
  color: #ff6f77;
  content: "✓";
  font-weight: 900;
}

.contact-section {
  background: #f6f7f8;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.contact-card strong {
  font-size: 23px;
}

.contact-card p {
  margin: 12px 0 0;
  color: #6d747f;
  line-height: 1.65;
}

.contact-links {
  display: grid;
  align-content: center;
  gap: 12px;
}

.contact-links a,
.contact-request-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  text-align: left;
}

.public-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 28px;
  padding: 32px clamp(22px, 7vw, 112px);
  background: #16191e;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.public-footer div {
  display: grid;
  gap: 5px;
}

.public-footer strong {
  color: #fff;
}

.public-footer address {
  font-style: normal;
}

.back-to-home {
  display: block;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b727d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.back-to-home:hover,
.test-access-link:hover {
  color: var(--red-dark);
}

.test-access-link {
  display: inline-block;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.request-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(17, 20, 25, 0.66);
  backdrop-filter: blur(9px);
}

.request-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.request-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.request-head h2 {
  margin: 9px 0 0;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.request-intro {
  margin: 20px 0 26px;
  color: #646c77;
  line-height: 1.65;
}

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

.request-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
}

.request-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(207, 32, 42, 0.1);
}

.request-form .field-span {
  grid-column: 1 / -1;
}

.request-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  color: #606873;
  font-weight: 550;
  line-height: 1.5;
}

.request-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--red);
}

.request-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: #646c77;
  font-size: 12px;
}

.request-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 0.95fr) minmax(480px, 1.05fr);
  background: var(--surface);
}

.login-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  overflow: hidden;
  padding: 8vw 7vw;
  background:
    radial-gradient(circle at 80% 12%, rgba(219, 65, 72, 0.4), transparent 24%),
    linear-gradient(145deg, #1d2026 0%, #2b3038 54%, #171a1f 100%);
  color: white;
}

.login-visual::before,
.login-visual::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.13);
  transform: rotate(-22deg);
}

.login-visual::before {
  width: 660px;
  height: 260px;
  top: 15%;
  left: -28%;
}

.login-visual::after {
  width: 780px;
  height: 300px;
  top: 25%;
  left: -6%;
  border-color: rgba(207, 32, 42, 0.45);
}

.login-grid {
  position: absolute;
  inset: 0;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.visual-copy {
  position: relative;
  z-index: 1;
  max-width: 630px;
}

.visual-copy h1 {
  max-width: 610px;
  margin: 18px 0 24px;
  font-size: clamp(48px, 5.2vw, 82px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.visual-copy > p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.65;
}

.visual-metrics {
  display: flex;
  gap: 44px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.visual-metrics div {
  display: grid;
  gap: 6px;
}

.visual-metrics strong {
  font-size: 26px;
}

.visual-metrics span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.login-panel {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 56px;
  background:
    radial-gradient(circle at 90% 0, #faf1f1, transparent 34%),
    var(--surface);
}

.login-card {
  width: min(440px, 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--red);
  box-shadow: 0 8px 18px rgba(207, 32, 42, 0.24);
}

.brand-mark svg {
  width: 32px;
  fill: none;
  stroke: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
}

.brand-name,
.brand-by {
  display: block;
}

.brand-name {
  font-size: 23px;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.brand-name b {
  color: var(--red);
}

.brand-by {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-heading {
  margin: 72px 0 34px;
}

.eyebrow {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #ffb5ba;
}

.login-heading h2,
.modal-head h2 {
  margin: 10px 0 8px;
  font-size: 32px;
  letter-spacing: -0.035em;
}

.login-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

label {
  display: block;
  margin: 17px 0 7px;
  color: #4f5661;
  font-size: 12px;
  font-weight: 700;
}

.input-wrap {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  transition: border 0.18s ease, box-shadow 0.18s ease;
}

.input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(207, 32, 42, 0.1);
}

.input-wrap > span {
  color: #9aa0aa;
  font-size: 12px;
  font-weight: 800;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.input-action {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.form-error {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--red);
  font-size: 12px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  transition: transform 0.16s ease, background 0.16s ease, border 0.16s ease;
}

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

.button-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 7px 16px rgba(207, 32, 42, 0.18);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  border-color: var(--line);
  background: white;
  color: #4a515c;
}

.button-secondary:hover {
  border-color: #bfc3ca;
  background: #fafafa;
}

.button-block {
  width: 100%;
  margin-top: 11px;
}

.login-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #21a468;
  box-shadow: 0 0 0 4px rgba(33, 164, 104, 0.11);
}

.brand-claim {
  margin: 48px 0 0;
  color: #7f858e;
  font-size: 11px;
  font-style: italic;
  text-align: center;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #fff;
}

.sidebar-head {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #f0f1f3;
}

.brand-compact {
  gap: 10px;
}

.brand-compact .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.brand-compact .brand-mark svg {
  width: 26px;
}

.brand-compact .brand-name {
  font-size: 15px;
  white-space: nowrap;
}

.brand-compact .brand-by {
  font-size: 8px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 24px;
  scrollbar-width: thin;
}

.nav-label {
  display: block;
  padding: 16px 10px 7px;
  color: #a0a6af;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #555d69;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
}

.nav-item:hover {
  background: #f5f6f7;
  color: var(--ink);
}

.nav-item.is-active {
  background: var(--red-soft);
  color: var(--red-dark);
}

.nav-symbol {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e1e3e7;
  border-radius: 7px;
  background: white;
  color: #6f7680;
  font-size: 10px;
  font-weight: 850;
}

.nav-item.is-active .nav-symbol {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.nav-symbol-ai {
  color: var(--purple);
}

.nav-count,
.nav-alert {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f0f1f3;
  color: #7a818b;
  font-size: 9px;
}

.nav-alert {
  background: var(--red-soft);
  color: var(--red);
}

.sidebar-footer {
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #fbfbfc;
}

.release-badge {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 8px 4px 2px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.release-badge div {
  display: grid;
  gap: 2px;
}

.release-badge strong {
  font-size: 10px;
}

.release-badge small {
  color: var(--muted);
  font-size: 9px;
}

.sidebar-close,
.menu-button {
  display: none !important;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
}

.global-search {
  display: flex;
  width: min(500px, 45vw);
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f9fa;
}

.global-search > span {
  color: #7b828b;
  font-size: 22px;
  transform: rotate(-18deg);
}

.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

kbd {
  padding: 3px 6px;
  border: 1px solid #d6d9dd;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: white;
  color: #707780;
  font-family: inherit;
  font-size: 9px;
  white-space: nowrap;
}

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

.button-f3 {
  border-color: #f0c5c8;
  background: var(--red-soft);
  color: var(--red-dark);
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  font-size: 18px;
}

.notification-button {
  position: relative;
}

.notification-button > span {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 1px solid white;
  border-radius: 99px;
  background: var(--red);
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 7px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  cursor: pointer;
  text-align: left;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #2a2e35;
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.profile-copy {
  display: grid;
  min-width: 105px;
  gap: 2px;
}

.profile-copy strong {
  font-size: 10px;
}

.profile-copy small {
  color: var(--muted);
  font-size: 9px;
}

.main-content {
  min-height: calc(100vh - 78px);
  padding: 30px;
}

.page {
  max-width: 1560px;
  margin: 0 auto;
  animation: page-in 0.24s ease;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-header h1 {
  margin: 6px 0 5px;
  font-size: clamp(25px, 2.3vw, 35px);
  letter-spacing: -0.045em;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.date-chip {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: #636a74;
  font-size: 11px;
  font-weight: 700;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

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

.kpi-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.kpi-card::after {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--accent-soft, #f3f4f6);
  content: "";
}

.kpi-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.kpi-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft, #f3f4f6);
  color: var(--accent, #59606a);
  font-size: 10px;
  font-weight: 850;
}

.kpi-value {
  position: relative;
  z-index: 1;
  display: block;
  margin: 13px 0 7px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.kpi-foot {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 10px;
}

.trend-up {
  color: var(--green);
  font-weight: 760;
}

.trend-warn {
  color: var(--amber);
  font-weight: 760;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.75fr);
  gap: 18px;
}

.dashboard-main,
.dashboard-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.panel {
  overflow: hidden;
}

.panel-pad {
  padding: 18px;
}

.panel-head {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.section-title {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.panel-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-size: 10px;
  font-weight: 760;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.data-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
  color: #8a9099;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #eff0f2;
  vertical-align: middle;
}

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

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

.project-cell {
  display: flex;
  min-width: 210px;
  align-items: center;
  gap: 10px;
}

.project-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #f1f2f4;
  color: #59606a;
  font-size: 10px;
  font-weight: 850;
}

.project-cell div,
.person-cell {
  display: grid;
  gap: 3px;
}

.project-cell strong,
.person-cell strong {
  font-size: 10px;
}

.project-cell small,
.person-cell small,
.muted {
  color: var(--muted);
  font-size: 9px;
}

.status-pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 780;
  white-space: nowrap;
}

.status-pill::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-green { background: var(--green-soft); color: var(--green); }
.status-amber { background: var(--amber-soft); color: var(--amber); }
.status-blue { background: var(--blue-soft); color: var(--blue); }
.status-red { background: var(--red-soft); color: var(--red); }
.status-grey { background: #f1f2f4; color: #6c737d; }
.status-purple { background: var(--purple-soft); color: var(--purple); }

.progress {
  width: 74px;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #eceef0;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.quick-action {
  display: grid;
  min-height: 92px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  cursor: pointer;
  color: #535b66;
  font-size: 9px;
  font-weight: 730;
  text-align: center;
}

.quick-action:hover {
  border-color: #e9b6ba;
  background: #fffafa;
  color: var(--red-dark);
}

.quick-action span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: #f3f4f5;
  font-size: 12px;
  font-weight: 850;
}

.ai-panel {
  position: relative;
  border-color: #dfd4fb;
  background:
    radial-gradient(circle at 100% 0, rgba(105, 65, 198, 0.1), transparent 30%),
    white;
}

.ai-panel .panel-head {
  border-bottom-color: #eee8fb;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-size: 9px;
  font-weight: 800;
}

.ai-badge::before {
  content: "✦";
}

.issue-list,
.task-list,
.activity-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.issue-item,
.task-item,
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid #eff0f2;
}

.issue-item:last-child,
.task-item:last-child,
.activity-item:last-child {
  border-bottom: 0;
}

.severity {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 850;
}

.severity.high { background: var(--red-soft); color: var(--red); }
.severity.medium { background: var(--amber-soft); color: var(--amber); }
.severity.low { background: var(--blue-soft); color: var(--blue); }

.issue-copy,
.task-copy,
.activity-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.issue-copy strong,
.task-copy strong,
.activity-copy strong {
  font-size: 10px;
  line-height: 1.35;
}

.issue-copy span,
.task-copy span,
.activity-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.task-date {
  min-width: 42px;
  color: var(--red);
  font-size: 8px;
  font-weight: 800;
  text-align: right;
}

.activity-mark {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 4px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-soft);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.module-card {
  padding: 18px;
}

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

.module-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--icon-bg, #f1f2f4);
  color: var(--icon-color, #59606a);
  font-size: 11px;
  font-weight: 850;
}

.module-card h3 {
  margin: 16px 0 7px;
  font-size: 13px;
}

.module-card p {
  min-height: 40px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.module-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.module-card-foot span {
  color: var(--muted);
  font-size: 9px;
}

.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}

.filter-input,
.filter-select,
.control-input,
.control-select,
.quick-form input,
.quick-form select {
  min-height: 39px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  background: white;
  color: var(--ink);
  font-size: 10px;
}

.filter-input {
  min-width: 220px;
  flex: 1;
  padding: 0 12px;
}

.filter-select,
.control-select {
  padding: 0 30px 0 11px;
}

.filter-input:focus,
.filter-select:focus,
.control-input:focus,
.control-select:focus,
.quick-form input:focus,
.quick-form select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(207, 32, 42, 0.08);
}

.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 13px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.board-column {
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f1f2f4;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 3px 11px;
  color: #636a74;
  font-size: 10px;
  font-weight: 780;
}

.board-head span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 6px;
  background: white;
  color: #858b94;
  font-size: 8px;
}

.project-card {
  margin-bottom: 9px;
  padding: 13px;
  border: 1px solid #e1e3e6;
  border-radius: 11px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.project-card:last-child {
  margin-bottom: 0;
}

.project-card .project-no {
  color: var(--red);
  font-size: 8px;
  font-weight: 800;
}

.project-card h3 {
  margin: 8px 0 6px;
  font-size: 11px;
  line-height: 1.35;
}

.project-card p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 9px;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

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

.controls-panel {
  align-self: start;
  padding: 17px;
}

.controls-panel h2 {
  margin: 0 0 4px;
  font-size: 14px;
}

.controls-panel > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.control-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eff0f2;
}

.control-row span {
  color: #555d67;
  font-size: 10px;
  font-weight: 670;
}

.control-input {
  width: 100%;
  padding: 0 9px;
  text-align: right;
}

.calc-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.calc-summary div {
  padding: 11px;
  border-radius: 9px;
  background: #f5f6f7;
}

.calc-summary span,
.calc-summary strong {
  display: block;
}

.calc-summary span {
  color: var(--muted);
  font-size: 8px;
}

.calc-summary strong {
  margin-top: 5px;
  font-size: 13px;
}

.calc-summary .calc-total {
  grid-column: 1 / -1;
  background: #2b2f36;
  color: white;
}

.calc-summary .calc-total span {
  color: #bfc3ca;
}

.calc-table input {
  width: 74px;
  min-height: 30px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 9px;
  text-align: right;
}

.calc-table .description {
  min-width: 230px;
}

.drop-zone {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 30px;
  border: 2px dashed #d5d8dd;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(207, 32, 42, 0.025), transparent),
    white;
  text-align: center;
  transition: border 0.18s ease, background 0.18s ease;
}

.drop-zone.is-dragging {
  border-color: var(--red);
  background: var(--red-soft);
}

.drop-icon {
  display: grid;
  width: 55px;
  height: 55px;
  margin: 0 auto 17px;
  place-items: center;
  border-radius: 15px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 18px;
  font-weight: 850;
}

.drop-zone h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.drop-zone p {
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.drop-zone input {
  display: none;
}

.file-formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 15px;
}

.file-formats span {
  padding: 4px 7px;
  border-radius: 5px;
  background: #f1f2f4;
  color: #69717b;
  font-size: 8px;
  font-weight: 800;
}

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

.folder-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: pointer;
}

.folder-card:hover {
  border-color: #e7b6ba;
  box-shadow: var(--shadow-md);
}

.folder-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.folder-icon {
  display: grid;
  width: 36px;
  height: 30px;
  place-items: center;
  border-radius: 7px 7px 9px 9px;
  background: #ffe7a7;
  color: #a26800;
  font-size: 10px;
  font-weight: 850;
}

.folder-card h3 {
  margin: 15px 0 4px;
  font-size: 11px;
}

.folder-card p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

.invoice-board {
  grid-template-columns: repeat(4, minmax(230px, 1fr));
}

.invoice-card {
  border-left: 3px solid var(--amber);
}

.invoice-card.is-approved {
  border-left-color: var(--green);
}

.invoice-value {
  margin: 9px 0;
  font-size: 16px;
  font-weight: 820;
  letter-spacing: -0.03em;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.integration-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.integration-logo {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: var(--integration-bg);
  color: var(--integration-color);
  font-size: 15px;
  font-weight: 900;
}

.integration-card h3 {
  margin: 17px 0 6px;
  font-size: 14px;
}

.integration-card p {
  min-height: 48px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.connection-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.check-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 16px;
}

.check-row {
  display: grid;
  grid-template-columns: 43px minmax(180px, 1.2fr) 120px minmax(180px, 1fr) 80px;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.check-code {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #f1f2f4;
  color: #535b65;
  font-weight: 850;
}

.check-row strong {
  font-size: 10px;
}

.score-card {
  padding: 22px;
  text-align: center;
}

.score-ring {
  display: grid;
  width: 126px;
  height: 126px;
  margin: 8px auto 18px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 79%, #e9ebed 79% 100%);
}

.score-ring::before {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: white;
  content: "";
}

.score-ring span {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 850;
}

.score-card h2 {
  margin: 0 0 7px;
  font-size: 14px;
}

.score-card p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.risk-code-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.risk-code-grid div {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-radius: 8px;
  background: #f6f7f8;
  color: #5c646e;
  font-size: 8px;
  text-align: left;
}

.risk-code-grid b {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: white;
  color: var(--red);
}

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

.settings-block {
  padding: 18px;
}

.settings-block h2 {
  margin: 0 0 4px;
  font-size: 14px;
}

.settings-block > p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 9px;
}

.setting-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #eff0f2;
}

.setting-line:last-child {
  border-bottom: 0;
}

.setting-line div {
  display: grid;
  gap: 4px;
}

.setting-line strong {
  font-size: 10px;
}

.setting-line small {
  color: var(--muted);
  font-size: 8px;
}

.toggle {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #d5d8dc;
  cursor: pointer;
}

.toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  content: "";
  transition: transform 0.18s ease;
}

.toggle.is-on {
  background: var(--red);
}

.toggle.is-on::after {
  transform: translateX(14px);
}

.empty-state {
  padding: 45px 25px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(19, 22, 27, 0.58);
  backdrop-filter: blur(5px);
}

.modal {
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 28px 80px rgba(11, 14, 20, 0.25);
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin-bottom: 0;
  font-size: 21px;
}

.quick-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
  padding: 20px 22px 22px;
}

.quick-form input,
.quick-form select {
  width: 100%;
  padding: 0 11px;
}

.field-span {
  grid-column: 1 / -1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.toast-region {
  position: fixed;
  z-index: 130;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(360px, calc(100vw - 44px));
  gap: 9px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid #dfe2e6;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
  animation: toast-in 0.22s ease;
}

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

.toast-mark {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
}

.toast strong,
.toast span {
  display: block;
}

.toast strong {
  margin-bottom: 3px;
  font-size: 10px;
}

.toast span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.sidebar-backdrop {
  display: none;
}

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

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
  }

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

  .sidebar-close,
  .menu-button {
    display: inline-grid !important;
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 25;
    inset: 0;
    background: rgba(19, 22, 27, 0.42);
  }

  .sidebar-backdrop.is-open {
    display: block;
  }

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

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

@media (max-width: 900px) {
  .public-nav a {
    display: none;
  }

  .public-hero,
  .benefit-band,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .public-hero {
    min-height: auto;
  }

  .public-footer {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    padding: 36px 22px;
  }

  .login-heading {
    margin-top: 60px;
  }

  .dashboard-grid,
  .calc-layout,
  .check-grid {
    grid-template-columns: 1fr;
  }

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

  .topbar {
    gap: 10px;
    padding: 12px 16px;
  }

  .global-search {
    width: 100%;
  }

  .profile-copy,
  .profile-button > span:last-child,
  .button-f3 kbd {
    display: none;
  }

  .profile-button {
    padding: 3px;
  }
}

@media (max-width: 650px) {
  .request-backdrop {
    align-items: start;
    padding: 12px;
  }

  .request-dialog {
    max-height: none;
    padding: 22px 18px;
  }

  .request-form {
    grid-template-columns: 1fr;
  }

  .request-form .field-span {
    grid-column: auto;
  }

  .request-actions {
    display: grid;
  }

  .public-header {
    min-height: 72px;
    padding: 9px 16px;
  }

  .public-brand img {
    width: 170px;
    max-height: 54px;
  }

  .public-nav {
    gap: 8px;
  }

  .public-nav .button {
    min-height: 38px;
    padding: 0 12px;
  }

  .public-hero,
  .public-section,
  .benefit-band {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-copy h1 {
    font-size: 43px;
  }

  .hero-actions {
    display: grid;
  }

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

  .feature-grid article {
    min-height: auto;
  }

  .main-content {
    padding: 20px 14px;
  }

  .topbar {
    min-height: 68px;
  }

  .global-search kbd,
  .notification-button {
    display: none;
  }

  .button-f3 {
    width: 40px;
    min-width: 40px;
    padding: 0;
    font-size: 0;
  }

  .button-f3::after {
    content: "+";
    font-size: 20px;
  }

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

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .kpi-card {
    padding: 14px;
  }

  .kpi-value {
    font-size: 22px;
  }

  .action-grid,
  .module-grid,
  .folder-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .quick-form {
    grid-template-columns: 1fr;
  }

  .field-span {
    grid-column: 1;
  }

  .visual-metrics {
    gap: 24px;
  }
}

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


/* Release 0.2: module navigation and consolidated rule register */
.page-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -10px 0 22px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.88);
}

.page-nav-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: #555d69;
  cursor: pointer;
  font-size: 10px;
  font-weight: 760;
}

.page-nav-button:hover:not(:disabled) {
  border-color: #e9b6ba;
  color: var(--red-dark);
}

.page-nav-button:disabled {
  cursor: not-allowed;
  opacity: .38;
}

.page-nav-home {
  border-color: #f0c5c8;
  background: var(--red-soft);
  color: var(--red-dark);
}

.rule-register {
  margin-top: 18px;
  padding-bottom: 4px;
}

.rule-register details {
  margin: 0 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.rule-register details:last-child {
  border-bottom: 0;
}

.rule-register summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.rule-register p,
.rule-register li {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.rule-register ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

@media (max-width: 650px) {
  .page-navigation {
    position: sticky;
    z-index: 15;
    top: 68px;
    justify-content: space-between;
    margin-top: -6px;
  }

  .page-nav-button {
    flex: 1;
    padding: 0 7px;
  }
}


/* Öffentliche Promovideo-Vorschau im 9:16-Format, touchfreundlich */
.promo-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  align-items: center;
  gap: clamp(32px, 7vw, 100px);
  background: #f5f7f9;
  scroll-margin-top: 90px;
}
.promo-info { max-width: 740px; }
.promo-info h2 {
  margin: 12px 0 20px;
  font-size: clamp(34px, 4.8vw, 64px);
  letter-spacing: -0.05em;
  line-height: 1.03;
}
.promo-info p { color: #5d6672; font-size: 17px; line-height: 1.7; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.promo-actions .button { text-decoration: none; }
.promo-thumbnail {
  position: relative;
  isolation: isolate;
  display: flex;
  width: min(100%, 310px);
  aspect-ratio: 9 / 16;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  justify-self: center;
  overflow: hidden;
  padding: 24px 16px;
  border: 2px solid #32516a;
  border-radius: 25px;
  background: radial-gradient(circle at 50% 42%, #193c55 0%, #0d1e35 54%, #091327 100%);
  color: white;
  cursor: pointer;
  box-shadow: 0 28px 70px rgba(5, 15, 31, 0.26);
  text-align: center;
}
.promo-thumbnail::before {
  position: absolute;
  z-index: -1;
  inset: 18px;
  border: 1px solid rgba(82, 226, 212, 0.12);
  border-radius: 50%;
  content: "";
  transform: scale(1.3);
}
.promo-thumbnail-label, .promo-thumbnail-foot { font-size: 9px; font-weight: 750; letter-spacing: 0.07em; }
.promo-thumbnail-label { position: absolute; top: 24px; left: 14px; right: 14px; color: #a5c2d3; }
.promo-thumbnail-foot { position: absolute; bottom: 22px; left: 14px; right: 14px; color: #a5c2d3; }
.promo-thumbnail-title { font-size: clamp(26px, 3.3vw, 36px); font-weight: 800; line-height: 1.05; }
.promo-thumbnail-title strong { display: block; color: #4cdbcd; font-size: 1.3em; }
.promo-thumbnail-subtitle { max-width: 225px; color: #e0e8f0; font-size: 13px; line-height: 1.45; }
.promo-play-mark {
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #cf202a;
  color: white;
  box-shadow: 0 0 0 10px rgba(207, 32, 42, 0.15);
  font-size: 25px;
  padding-left: 4px;
}
.promo-thumbnail:hover .promo-play-mark, .promo-thumbnail:focus-visible .promo-play-mark { transform: scale(1.08); }
.promo-thumbnail:focus-visible, [data-promo-open]:focus-visible, .promo-close:focus-visible,
.promo-instagram-link:focus-visible, .footer-instagram:focus-visible { outline: 3px solid #4cdbcd; outline-offset: 4px; }
.promo-modal {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 12px;
  background: rgba(6, 12, 22, 0.86);
}
body.promo-modal-open { overflow: hidden; }
.promo-dialog {
  width: min(440px, 100%);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 15px;
  border: 1px solid #263951;
  border-radius: 20px;
  background: #0b172b;
  color: #fff;
  box-shadow: 0 22px 90px rgba(0,0,0,.5);
}
.promo-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.promo-dialog-header h2 { margin: 0; font-size: 15px; font-weight: 750; }
.promo-close { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid #607189; border-radius: 50%; background: transparent; color: white; cursor: pointer; font-size: 24px; }
.promo-video, .promo-fallback {
  display: block;
  width: 100%;
  max-height: min(72vh, 690px);
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  background: #0b172b;
  object-fit: contain;
}
.promo-fallback { position: relative; overflow: hidden; border: 1px solid #20425d; }
.promo-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 23px;
  padding: 22px;
  background: radial-gradient(circle at 50% 47%, #1b3953, #091427 80%);
  opacity: 0;
  text-align: center;
  animation: promo-scene-cycle 16.5s infinite;
}
.promo-scene:nth-child(2) { animation-delay: 5.5s; }
.promo-scene:nth-child(3) { animation-delay: 11s; }
.promo-scene > span { position: absolute; top: 24px; color: #9bbccd; font-size: 9px; font-weight: 700; letter-spacing: .05em; }
.promo-scene strong { font-size: clamp(25px, 7vw, 38px); line-height: 1.16; }
.promo-scene em { color: #4cdbcd; font-style: normal; }
.promo-scene p { max-width: 230px; color: #d5e1ec; font-size: 14px; line-height: 1.5; }
.promo-fallback-note { margin: 10px 0 0; color: #aebecd; font-size: 11px; line-height: 1.5; }
.promo-instagram-link { display: inline-block; margin: 12px 0 2px; color: #63e1d4; font-size: 13px; font-weight: 700; }
.footer-instagram { color: #e6e8ee; text-decoration: none; }
.footer-instagram:hover { color: #fff; text-decoration: underline; }
@keyframes promo-scene-cycle {
  0%, 31% { opacity: 1; }
  33.33%, 100% { opacity: 0; }
}
@media (max-width: 900px) {
  .promo-section { grid-template-columns: 1fr; }
  .promo-thumbnail { width: min(100%, 270px); }
}
@media (max-width: 650px) {
  .promo-section { padding-top: 42px; padding-bottom: 54px; }
  .promo-actions { flex-direction: column; }
  .promo-actions .button { width: 100%; }
  .promo-dialog { max-height: calc(100dvh - 24px); }
  .promo-video, .promo-fallback { max-height: calc(100dvh - 130px); }
}
@media (prefers-reduced-motion: reduce) {
  .promo-scene { animation: none; }
  .promo-scene:first-child { opacity: 1; }
}

/* Erster Login: eigenes Passwort festlegen */
.login-change-intro{margin:0 0 14px;padding:12px 14px;border-radius:10px;background:#fff6df;color:#5c4100;font-size:14px;line-height:1.5}
#password-change-form label{display:block;margin-top:12px}
