:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --surface-3: #fbfcfe;
  --ink: #0f172a;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dde3ea;
  --line-strong: #b7c2d0;
  --green: #0f172a;
  --green-2: #e8edf5;
  --blue: #1e3a5f;
  --blue-2: #e7eef8;
  --cyan: #d4af37;
  --cyan-2: #f7ecd0;
  --amber: #8a6a10;
  --amber-2: #fff7e4;
  --red: #a33a2c;
  --red-2: #fde8e3;
  --accent: #d4af37;
  --focus: rgba(212, 175, 55, 0.28);
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 8px 26px rgba(15, 23, 42, 0.08);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(212, 175, 55, 0.1), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(30, 58, 95, 0.08), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 251, 0.86)),
    var(--bg);
  color: var(--ink);
  accent-color: var(--accent);
}

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

button {
  border: 0;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-box {
  width: min(430px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.login-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--blue));
}

.ozer-home {
  --ozer-bg: #f7f8fb;
  --ozer-surface: #ffffff;
  --ozer-ink: #0f172a;
  --ozer-muted: #64748b;
  --ozer-line: #dde3ea;
  --ozer-gold: #d4af37;
  --ozer-gold-soft: #f7ecd0;
  --ozer-navy-soft: #e8edf5;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 46%, #ffffff 100%),
    var(--ozer-bg);
  color: var(--ozer-ink);
  scroll-behavior: smooth;
}

.ozer-home a {
  color: inherit;
  text-decoration: none;
}

.ozer-header,
.ozer-hero,
.ozer-section,
.ozer-access,
.ozer-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ozer-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 70px;
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(221, 227, 234, 0.9);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.ozer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.ozer-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ozer-ink);
  font-weight: 900;
  line-height: 1;
}

.ozer-mark::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 10px;
  width: 12px;
  height: 4px;
  border-radius: 999px;
  background: var(--ozer-gold);
}

.ozer-wordmark {
  display: grid;
  line-height: 1;
}

.ozer-wordmark strong {
  font-size: 20px;
  letter-spacing: 0;
}

.ozer-wordmark small {
  margin-top: 4px;
  color: var(--ozer-muted);
  font-size: 11px;
  font-weight: 900;
}

.ozer-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ozer-nav a,
.ozer-header-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.ozer-nav a:hover {
  background: var(--ozer-navy-soft);
  transform: none;
}

.ozer-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ozer-header-login {
  min-width: 92px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid var(--ozer-line);
  border-radius: 7px;
  background: white;
  color: var(--ozer-ink);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ozer-header-login:hover {
  border-color: rgba(212, 175, 55, 0.42);
  background: #fffaf0;
}

.ozer-header-cta {
  min-width: 124px;
  background: var(--ozer-gold);
  color: var(--ozer-ink) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.ozer-header .ozer-header-cta,
.ozer-home .ozer-header-cta:visited {
  color: var(--ozer-ink) !important;
}

.ozer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 46px;
  align-items: center;
  padding: 86px 0 54px;
}

.ozer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8a6a10;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ozer-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ozer-gold);
}

.ozer-hero h1,
.ozer-section h2,
.ozer-access h2 {
  margin: 0;
  color: var(--ozer-ink);
}

.ozer-hero h1 {
  margin-top: 14px;
  font-size: 78px;
  line-height: 0.94;
  letter-spacing: 0;
}

.ozer-slogan {
  margin: 14px 0 0;
  color: var(--ozer-gold);
  font-size: 31px;
  font-weight: 900;
}

.ozer-lead,
.ozer-section-head p,
.ozer-access p,
.ozer-footer p {
  color: var(--ozer-muted);
  font-size: 17px;
  line-height: 1.65;
}

.ozer-lead {
  max-width: 680px;
  margin: 18px 0 0;
}

.ozer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.ozer-btn,
.ozer-submit,
.ozer-login-actions button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 11px 16px;
  font-weight: 900;
}

.ozer-btn-primary {
  border: 1px solid var(--ozer-gold);
  background: var(--ozer-gold);
  color: var(--ozer-ink) !important;
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.22);
}

.ozer-submit {
  border: 1px solid var(--ozer-ink);
  background: var(--ozer-ink);
  color: white;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.18);
}

.ozer-home .ozer-btn-primary:visited {
  color: var(--ozer-ink) !important;
}

.ozer-btn-secondary,
.ozer-login-actions button {
  border: 1px solid var(--ozer-line);
  background: white;
  color: var(--ozer-ink);
}

.ozer-dashboard {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(221, 227, 234, 0.95);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.ozer-dashboard-head,
.ozer-login-head,
.ozer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ozer-dashboard-head span,
.ozer-dashboard article span,
.ozer-dashboard article small,
.ozer-login-head small {
  color: var(--ozer-muted);
}

.ozer-dashboard-head strong,
.ozer-login-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ozer-ink);
  font-size: 18px;
}

.ozer-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--ozer-gold-soft);
  color: #6f5200 !important;
  font-size: 12px;
  font-weight: 900;
}

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

.ozer-dashboard article,
.ozer-card,
.ozer-module-card,
.ozer-compare article,
.ozer-login-card {
  border: 1px solid var(--ozer-line);
  border-radius: 8px;
  background: white;
}

.ozer-dashboard article {
  min-height: 116px;
  padding: 15px;
}

.ozer-dashboard article strong {
  display: block;
  margin: 10px 0 4px;
  color: var(--ozer-ink);
  font-size: 27px;
  line-height: 1;
}

.ozer-signal-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #0f172a;
  color: white;
}

.ozer-signal {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: start;
}

.ozer-signal span {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--ozer-gold);
}

.ozer-signal p {
  margin: 0;
  color: #dbe4ef;
}

.ozer-section,
.ozer-access {
  padding: 54px 0;
}

.ozer-section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.ozer-section h2,
.ozer-access h2 {
  margin-top: 10px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

.ozer-card-grid,
.ozer-module-grid,
.ozer-compare {
  display: grid;
  gap: 14px;
}

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

.ozer-card,
.ozer-module-card,
.ozer-compare article {
  padding: 20px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.ozer-card-icon,
.ozer-module-card span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  background: var(--ozer-gold-soft);
  color: #7a5a00;
  font-size: 12px;
  font-weight: 900;
}

.ozer-card h3,
.ozer-module-card h3,
.ozer-compare h3 {
  margin: 16px 0 8px;
  color: var(--ozer-ink);
  font-size: 19px;
}

.ozer-card p,
.ozer-module-card p {
  margin: 0;
  color: var(--ozer-muted);
  line-height: 1.55;
}

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

.ozer-module-card {
  min-height: 185px;
}

.ozer-compare-section {
  padding-bottom: 44px;
}

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

.ozer-compare article {
  background: #ffffff;
}

.ozer-compare .is-ozer {
  border-color: rgba(212, 175, 55, 0.56);
  background: linear-gradient(180deg, #ffffff, #fffaf0);
}

.ozer-compare ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ozer-compare li {
  position: relative;
  padding-left: 22px;
  color: #334155;
}

.ozer-compare li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.ozer-compare .is-ozer li::before {
  background: var(--ozer-gold);
}

.ozer-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 28px;
  align-items: center;
}

.ozer-access-note {
  border: 1px solid var(--ozer-line);
  border-radius: 8px;
  background: white;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.ozer-access-note strong {
  display: block;
  color: var(--ozer-ink);
  font-size: 20px;
}

.ozer-access-note p {
  margin: 10px 0 0;
}

.ozer-login-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
}

.ozer-login-modal.is-open {
  display: grid;
}

.ozer-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(10px);
}

.ozer-login-dialog {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
}

.ozer-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--ozer-gold-soft);
  color: #6f5200;
  font-size: 12px;
  font-weight: 900;
}

.ozer-login-dialog .ozer-login-card {
  padding-top: 58px;
}

.ozer-login-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.ozer-login-head {
  justify-content: start;
  margin-bottom: 4px;
}

.ozer-login-actions {
  display: grid;
  gap: 8px;
}

.ozer-login-actions button {
  width: 100%;
  box-shadow: none;
}

.ozer-login-card .message {
  min-height: 18px;
  margin: 0;
}

.ozer-footer {
  padding: 26px 0 34px;
  border-top: 1px solid rgba(221, 227, 234, 0.9);
  color: var(--ozer-muted);
}

.ozer-footer p,
.ozer-footer span {
  margin: 0;
  font-weight: 800;
}

.ozer-fatal .brand-mark {
  border-radius: 50%;
  background: white;
  color: #0f172a;
}

.ozer-hero-saas {
  display: block;
  padding: 86px 0 36px;
  text-align: center;
}

.ozer-hero-saas .ozer-hero-copy {
  width: min(880px, 100%);
  margin: 0 auto;
}

.ozer-hero-saas .ozer-kicker {
  justify-content: center;
}

.ozer-hero-saas h1 {
  margin-top: 18px;
  font-size: 70px;
  line-height: 0.98;
}

.ozer-hero-saas .ozer-lead {
  max-width: 760px;
  margin: 20px auto 0;
  font-size: 20px;
}

.ozer-hero-saas .ozer-actions {
  justify-content: center;
}

.ozer-hero-proof {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.ozer-hero-proof span {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ozer-muted);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 900;
}

.ozer-product-showcase,
.ozer-rt54,
.ozer-final-cta {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ozer-product-showcase {
  padding: 22px 0 60px;
}

.ozer-product-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(221, 227, 234, 0.95);
  border-radius: 8px;
  background: white;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.16);
}

.ozer-product-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  background: #0f172a;
  color: white;
}

.ozer-product-sidebar strong {
  margin-bottom: 12px;
  color: #f8fafc;
  font-size: 22px;
}

.ozer-product-sidebar span {
  border-radius: 7px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 240, 0.86);
  font-weight: 800;
}

.ozer-product-main {
  display: grid;
  gap: 16px;
  padding: 24px;
  background:
    radial-gradient(circle at 95% 0%, rgba(212, 175, 55, 0.12), transparent 36%),
    linear-gradient(180deg, #ffffff, #f8fafc);
}

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

.ozer-workflow-preview {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}

.ozer-workflow-preview > div {
  border: 1px solid var(--ozer-line);
  border-radius: 8px;
  background: white;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.ozer-workflow-preview span,
.ozer-product-main .ozer-dashboard-head span {
  color: #8a6a10;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ozer-workflow-preview strong {
  display: block;
  margin-top: 8px;
  color: var(--ozer-ink);
  font-size: 18px;
}

.ozer-workflow-preview p {
  margin: 8px 0 0;
  color: var(--ozer-muted);
  line-height: 1.5;
}

.ozer-solutions .ozer-section-head,
.ozer-trust .ozer-section-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.ozer-solutions .ozer-kicker,
.ozer-trust .ozer-kicker {
  justify-content: center;
}

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

.ozer-solution-card {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 116px;
  border: 1px solid var(--ozer-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.ozer-solution-card span {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--ozer-gold);
}

.ozer-solution-card p {
  margin: 0;
  color: var(--ozer-ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
}

.ozer-rt54 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: center;
  margin-top: 28px;
  margin-bottom: 48px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  padding: 34px;
  box-shadow: 0 28px 75px rgba(15, 23, 42, 0.18);
}

.ozer-rt54 .ozer-kicker,
.ozer-rt54 p {
  color: rgba(248, 250, 252, 0.76);
}

.ozer-rt54 h2 {
  margin: 12px 0 14px;
  color: white;
  font-size: 42px;
  line-height: 1.05;
}

.ozer-rt54 p {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.65;
}

.ozer-rt54-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
}

.ozer-rt54-card span {
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 10px 12px;
  font-weight: 900;
}

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

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

.ozer-module-grid-saas .ozer-module-card {
  min-height: 150px;
}

.ozer-module-grid-saas .ozer-module-card::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--ozer-gold);
}

.ozer-compare-strong article {
  padding: 24px;
}

.ozer-final-cta {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-top: 38px;
  margin-bottom: 38px;
  border: 1px solid var(--ozer-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(255, 255, 255, 0.94)),
    white;
  padding: 48px 22px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.1);
}

.ozer-final-cta .ozer-kicker {
  justify-content: center;
}

.ozer-final-cta h2 {
  margin: 12px 0 0;
  color: var(--ozer-ink);
  font-size: 46px;
  line-height: 1.05;
}

.ozer-final-cta p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--ozer-muted);
  font-size: 18px;
  line-height: 1.6;
}

.ozer-footer nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.ozer-footer nav a {
  color: var(--ozer-muted);
  font-weight: 900;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 10px;
  width: 12px;
  height: 4px;
  border-radius: 999px;
  background: #d4af37;
}

.brand h1,
.brand p,
.page-title h2,
.page-title p {
  margin: 0;
}

.brand h1 {
  font-size: 19px;
}

.brand p,
.page-title p,
.muted {
  color: var(--muted);
}

.form-stack {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

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

.field span,
.section-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 11px 12px;
  min-height: 42px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.13);
}

textarea {
  resize: vertical;
  min-height: 86px;
}

.primary,
.secondary,
.danger,
.ghost,
.nav-button,
.subtab {
  border-radius: 7px;
  min-height: 40px;
  padding: 9px 13px;
  font-weight: 800;
  white-space: nowrap;
}

.primary {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.secondary {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.danger {
  background: var(--red-2);
  color: var(--red);
}

.danger-soft {
  border-radius: 7px;
  min-height: 40px;
  padding: 9px 13px;
  background: var(--red-2);
  color: var(--red);
  font-weight: 800;
  white-space: nowrap;
}

.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}

.ghost:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.22);
}

.text-button {
  background: transparent;
  min-height: auto;
  padding: 0;
  font-weight: 800;
}

.danger-text {
  color: var(--red);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.row-actions button {
  min-height: 34px;
  padding: 7px 10px;
}

.message {
  min-height: 20px;
  color: var(--red);
  font-weight: 700;
}

.flash {
  position: sticky;
  top: 12px;
  z-index: 5;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px auto;
  border: 1px solid rgba(212, 175, 55, 0.36);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.96);
  color: #5c4300;
  padding: 10px 13px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.99), rgba(30, 41, 59, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  color: #f8fafc;
  box-shadow: 18px 0 45px rgba(15, 23, 42, 0.14);
}

.sidebar .brand p,
.sidebar .study-chip span,
.sidebar .user-box,
.sidebar .muted {
  color: rgba(226, 232, 240, 0.72);
}

.sidebar .brand-mark {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.study-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.study-chip strong,
.study-chip span {
  display: block;
}

.study-chip span {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 6px;
  align-content: start;
}

.nav-button {
  width: 100%;
  background: transparent;
  color: rgba(226, 232, 240, 0.82);
  text-align: left;
  border: 1px solid transparent;
}

.nav-button.is-active {
  background: rgba(212, 175, 55, 0.14);
  color: white;
  border-color: rgba(212, 175, 55, 0.34);
  box-shadow: inset 3px 0 0 #d4af37, 0 12px 24px rgba(0, 0, 0, 0.14);
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.user-box {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}

.main {
  min-width: 0;
  padding: 24px clamp(16px, 3vw, 36px);
}

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

.page-title h2 {
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
  color: #0f172a;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.actions.split {
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.actions select,
.actions input {
  width: auto;
  min-width: 160px;
  max-width: 100%;
  flex: 1 1 160px;
}

.month-input {
  width: auto;
  min-width: 150px;
}

.module-view {
  display: grid;
  gap: 14px;
  min-width: 0;
}

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

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

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

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

.card,
.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.card:hover,
.panel:hover {
  border-color: rgba(12, 135, 148, 0.26);
}

.card {
  padding: 16px;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(23, 107, 80, 0.75), rgba(12, 135, 148, 0.5), transparent);
}

.kpi {
  display: grid;
  gap: 6px;
}

.kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.kpi strong {
  font-size: 26px;
  letter-spacing: 0;
}

.panel-header,
.panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 250, 0.92));
}

.panel-header > div {
  min-width: 0;
}

.panel-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.panel-title {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0;
}

.panel-body {
  padding: 16px;
}

.table-wrap {
  overflow: auto;
  max-height: min(52vh, 560px);
  max-width: 100%;
  min-width: 0;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.wizard-layout {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.wizard-steps {
  display: grid;
  gap: 7px;
  max-height: min(62vh, 680px);
  overflow: auto;
  padding-right: 4px;
}

.wizard-step {
  width: 100%;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  text-align: left;
  min-height: 46px;
  padding: 9px 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.wizard-step.is-active {
  background: linear-gradient(135deg, var(--green-2), var(--cyan-2));
  border-color: rgba(12, 135, 148, 0.36);
  color: #073e2c;
  box-shadow: inset 3px 0 0 var(--accent), 0 8px 18px rgba(12, 135, 148, 0.12);
}

.wizard-step span,
.wizard-step small {
  display: block;
}

.wizard-step small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.wizard-current {
  min-width: 0;
}

.wizard-summary {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 250, 0.9));
  padding: 14px;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.wizard-summary h3 {
  margin: 0 0 6px;
}

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

.panel-header.compact {
  padding: 0 0 12px;
  border-bottom: 0;
}

.actions.end {
  justify-content: flex-end;
  padding-top: 12px;
}

.closing-actions {
  flex: 1 1 260px;
  justify-content: flex-end;
}

.closing-actions button {
  flex: 1 1 150px;
  max-width: 230px;
  min-width: 0;
  white-space: normal;
  line-height: 1.15;
}

.accounting-command-center {
  overflow: hidden;
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
  align-items: stretch;
}

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

.phase-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.phase-card strong,
.phase-card span,
.phase-card small {
  display: block;
  min-width: 0;
}

.phase-card strong {
  color: var(--text);
  font-size: 13px;
}

.phase-card span,
.phase-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.phase-card.is-started {
  border-color: rgba(12, 135, 148, 0.28);
  background: linear-gradient(180deg, rgba(232, 246, 240, 0.9), rgba(255, 255, 255, 0.9));
}

.phase-card.is-complete {
  border-color: rgba(47, 118, 87, 0.36);
  background: linear-gradient(180deg, rgba(219, 241, 231, 0.92), rgba(247, 252, 249, 0.92));
}

.phase-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(13, 35, 29, 0.08);
}

.phase-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}

.eecc-preview-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(15, 51, 43, 0.05), rgba(12, 135, 148, 0.07)),
    rgba(255, 255, 255, 0.92);
}

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

.preview-head h4 {
  margin: 3px 0 0;
  font-size: 15px;
  line-height: 1.25;
}

.preview-order {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.preview-order span {
  border: 1px solid rgba(47, 118, 87, 0.22);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(232, 246, 240, 0.86);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}

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

.quality-panel {
  padding-top: 0;
}

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

.quality-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  min-width: 0;
}

.quality-item strong,
.quality-item span {
  display: block;
}

.quality-item strong {
  font-size: 12px;
  color: var(--text);
}

.quality-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.quality-item.ok {
  border-color: rgba(47, 118, 87, 0.28);
  background: rgba(232, 246, 240, 0.62);
}

.quality-item.warn {
  border-color: rgba(169, 111, 32, 0.28);
  background: rgba(255, 247, 225, 0.68);
}

.quality-item.error {
  border-color: rgba(180, 58, 43, 0.28);
  background: rgba(255, 235, 230, 0.72);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(7, 24, 21, 0.58);
  padding: 18px;
  backdrop-filter: blur(6px);
}

.modal-card {
  width: min(1040px, 100%);
  max-height: min(90vh, 860px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.accounting-step-modal {
  width: min(1520px, 98vw);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 15px 16px;
  background:
    linear-gradient(90deg, rgba(23, 107, 80, 0.08), rgba(12, 135, 148, 0.08)),
    white;
}

.modal-head h2 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.15;
}

.modal-close {
  flex: 0 0 auto;
}

.modal-body {
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.accounting-step-modal .table-wrap {
  max-height: min(56vh, 560px);
}

.annex-i-wrap {
  max-height: min(60vh, 600px);
  overflow: auto;
}

.annex-i-table {
  min-width: 2040px;
  font-size: 12px;
}

.annex-i-table th {
  text-align: center;
  vertical-align: middle;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.annex-i-table td {
  vertical-align: middle;
  overflow-wrap: normal;
  word-break: normal;
}

.annex-i-table input {
  min-width: 108px;
  padding: 8px 9px;
}

.annex-i-table thead tr:nth-child(2) th {
  min-width: 112px;
}

.annex-i-table thead tr:first-child th {
  white-space: nowrap;
}

.structured-annex-wrap {
  max-height: min(60vh, 620px);
  overflow: auto;
}

.structured-annex-table {
  min-width: 1280px;
  font-size: 12px;
}

.structured-annex-table th {
  text-align: center;
  vertical-align: middle;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.structured-annex-table td {
  vertical-align: middle;
  overflow-wrap: normal;
  word-break: normal;
}

.structured-annex-table input {
  min-width: 110px;
  padding: 8px 9px;
}

.structured-annex-rubro {
  min-width: 300px;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
}

.structured-annex-rubro input {
  min-width: 280px;
}

.structured-heading td {
  position: sticky;
  left: 0;
  z-index: 1;
}

.annex-i-rubro {
  min-width: 240px;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
}

.annex-i-rubro input {
  min-width: 220px;
}

.readonly-cell {
  background: var(--surface-3);
  font-weight: 800;
  white-space: nowrap;
}

.icon-col {
  width: 56px;
  text-align: center;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 18px;
  background: rgba(248, 251, 250, 0.86);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
}

thead th:first-child {
  border-top-left-radius: 7px;
}

thead th:last-child {
  border-top-right-radius: 7px;
}

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

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #e9f3f0, #dfece8);
  color: #123f34;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  border-bottom: 1px solid var(--line-strong);
}

tbody tr {
  background: rgba(255, 255, 255, 0.72);
}

tbody tr:nth-child(even) {
  background: rgba(248, 251, 250, 0.72);
}

tbody tr:hover td {
  background: rgba(223, 245, 247, 0.46);
}

tbody tr[data-client-select] {
  cursor: pointer;
}

tbody tr.is-selected td {
  background: rgba(220, 239, 232, 0.86);
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.status.ok {
  background: var(--green-2);
  color: #06422c;
  border-color: rgba(23, 107, 80, 0.14);
}

.status.warn {
  background: var(--amber-2);
  color: var(--amber);
  border-color: rgba(155, 100, 26, 0.16);
}

.status.bad {
  background: var(--red-2);
  color: var(--red);
  border-color: rgba(163, 58, 44, 0.16);
}

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

.closing-mini-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.closing-mini-form button {
  width: 100%;
  min-width: 0;
  white-space: normal;
  line-height: 1.15;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--muted);
  font-weight: 800;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.stacked-actions {
  display: grid;
  gap: 10px;
  align-content: start;
}

.import-box {
  border-top: 1px solid var(--line);
  background: var(--surface-3);
}

.module-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.module-switches legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 0 5px;
}

.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  padding: 7px 10px;
  font-weight: 800;
}

.switch-row input {
  width: auto;
  min-height: auto;
}

.module-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 260px;
}

.mini-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 251, 250, 0.94);
  padding: 5px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-switch input {
  width: auto;
  min-height: auto;
}

.secret-text {
  display: inline-block;
  max-width: 220px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff7f5;
  padding: 5px 7px;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.span-2 {
  grid-column: span 2;
}

.span-4 {
  grid-column: span 4;
}

.gri-workbench {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr);
  align-items: start;
}

.gri-editor {
  display: grid;
  gap: 12px;
  max-height: min(68vh, 760px);
  overflow: auto;
}

.gri-disclosure-head,
.gri-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 251, 250, 0.9);
  min-width: 0;
  box-shadow: var(--shadow-soft);
}

.gri-disclosure-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  gap: 12px;
  padding: 14px;
}

.gri-disclosure-head h3 {
  margin: 8px 0 6px;
  font-size: 21px;
}

.gri-section {
  padding: 0;
}

.gri-section .form-grid {
  padding: 14px;
}

.gri-section .table-wrap {
  max-height: 360px;
  padding: 0 14px 14px;
}

.gri-section table {
  min-width: 900px;
}

.gri-section td input,
.gri-section td select {
  min-width: 150px;
}

.gri-section h4 {
  margin: 0;
}

.subtabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.subtab {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78);
}

.subtab.is-active {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(29, 95, 122, 0.18);
}

.hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 12px;
}

.gri-workbench {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
}

.receipt-preview {
  max-height: 58vh;
  overflow: auto;
}

.receipt-paper {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  min-width: min(540px, 100%);
  box-shadow: var(--shadow-soft);
}

.receipt-paper h3 {
  margin: 0 0 8px;
}

.payroll-workbench {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
}

.payroll-workbench.compact {
  align-items: start;
}

.payroll-toolbar .form-grid {
  align-items: end;
}

.payroll-receipt-workbench {
  display: grid;
  gap: 12px;
  max-height: min(72vh, 760px);
  overflow: auto;
}

.concept-apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.applied-concepts {
  display: grid;
  gap: 7px;
}

.applied-concept {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.7fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(248, 251, 250, 0.94);
  padding: 8px;
}

.applied-concept code {
  color: var(--blue);
  white-space: normal;
  overflow-wrap: anywhere;
}

.editable-contributions {
  display: grid;
  gap: 8px;
}

.editable-contributions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.editable-contributions table input {
  width: 100%;
  min-width: 110px;
}

.editable-contributions table th:last-child,
.editable-contributions table td:last-child {
  width: 42px;
  text-align: center;
}

.attendance-module {
  display: grid;
  gap: 14px;
}

.attendance-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, auto) minmax(0, 2fr);
  gap: 12px;
  align-items: end;
}

.attendance-toolbar .subtabs {
  justify-content: end;
}

.historical-payroll-detail {
  display: grid;
  gap: 14px;
}

.historical-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: start;
}

.historical-title h3 {
  margin: 0 0 4px;
}

.payroll-history-split {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
}

.labor-chart {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  color: var(--muted);
}

.labor-chart strong,
.labor-chart span {
  display: block;
}

.labor-donut {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.concept-picker {
  display: grid;
  gap: 7px;
  max-height: 230px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 251, 250, 0.94);
  padding: 8px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  padding: 9px;
}

.check-row input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.check-row code {
  color: var(--blue);
  white-space: normal;
}

.compact-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chat-box {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 420px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 250, 0.9));
}

.chat-log {
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: auto;
  max-height: 360px;
  padding: 14px;
}

.bubble {
  border-radius: 8px;
  padding: 12px;
  background: var(--blue-2);
  border: 1px solid rgba(29, 95, 122, 0.12);
}

.bubble.user {
  background: var(--green-2);
  border-color: rgba(23, 107, 80, 0.14);
}

.mobile-menu {
  display: none;
}

@media (max-width: 1100px) {
  .ozer-hero {
    grid-template-columns: 1fr;
    padding-top: 62px;
  }

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

  .ozer-metric-grid-wide,
  .ozer-solution-grid,
  .ozer-trust-grid,
  .ozer-module-grid-saas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ozer-product-shell,
  .ozer-rt54 {
    grid-template-columns: 1fr;
  }

  .ozer-product-sidebar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: auto;
  }

  .ozer-workflow-preview {
    grid-template-columns: 1fr;
  }

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

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

  .split,
  .payroll-workbench,
  .payroll-history-split,
  .gri-workbench {
    grid-template-columns: 1fr;
  }

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

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

  .span-4 {
    grid-column: span 2;
  }
}

@media (max-width: 780px) {
  .ozer-header,
  .ozer-hero,
  .ozer-section,
  .ozer-access,
  .ozer-footer {
    width: min(100% - 24px, 1180px);
  }

  .ozer-header {
    position: static;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 12px;
  }

  .ozer-nav {
    justify-content: start;
  }

  .ozer-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ozer-header-login,
  .ozer-header-cta {
    width: 100%;
    min-width: 0;
  }

  .ozer-hero {
    padding: 38px 0 22px;
    gap: 24px;
  }

  .ozer-hero h1 {
    font-size: 48px;
  }

  .ozer-hero-saas {
    padding-top: 48px;
  }

  .ozer-hero-saas h1 {
    font-size: 42px;
  }

  .ozer-hero-saas .ozer-lead {
    font-size: 16px;
  }

  .ozer-slogan {
    font-size: 25px;
  }

  .ozer-lead,
  .ozer-section-head p,
  .ozer-access p,
  .ozer-footer p {
    font-size: 15px;
  }

  .ozer-section,
  .ozer-access {
    padding: 34px 0;
  }

  .ozer-section h2,
  .ozer-access h2 {
    font-size: 28px;
  }

  .ozer-card-grid-3,
  .ozer-module-grid,
  .ozer-metric-grid-wide,
  .ozer-solution-grid,
  .ozer-trust-grid,
  .ozer-module-grid-saas,
  .ozer-compare,
  .ozer-access,
  .ozer-metric-grid {
    grid-template-columns: 1fr;
  }

  .ozer-product-showcase,
  .ozer-rt54,
  .ozer-final-cta {
    width: min(100% - 24px, 1180px);
  }

  .ozer-product-showcase {
    padding-bottom: 34px;
  }

  .ozer-product-shell {
    min-height: auto;
  }

  .ozer-product-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }

  .ozer-product-main {
    padding: 14px;
  }

  .ozer-solution-card {
    min-height: auto;
  }

  .ozer-rt54 {
    padding: 22px;
  }

  .ozer-rt54 h2,
  .ozer-final-cta h2 {
    font-size: 30px;
  }

  .ozer-final-cta {
    padding: 34px 18px;
  }

  .ozer-footer nav {
    justify-content: start;
  }

  .ozer-module-card {
    min-height: auto;
  }

  .ozer-footer {
    display: grid;
    justify-items: start;
  }

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

  .sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto;
    border-right: 0;
    box-shadow: none;
  }

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

  .topbar {
    display: grid;
  }

  .actions {
    justify-content: start;
  }

  .actions select,
  .actions input,
  .month-input {
    width: 100%;
    min-width: 0;
  }

  .concept-apply-grid,
  .applied-concept,
  .attendance-toolbar {
    grid-template-columns: 1fr;
  }

  .attendance-toolbar .subtabs {
    justify-content: start;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .form-grid,
  .split,
  .wizard-layout,
  .command-grid,
  .phase-track,
  .quality-list,
  .gri-disclosure-head {
    grid-template-columns: 1fr;
  }

  .preview-facts {
    grid-template-columns: 1fr;
  }

  .wizard-steps {
    max-height: 260px;
  }

  .wizard-summary-kpis {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 8px;
    align-items: stretch;
  }

  .modal-card {
    max-height: calc(100vh - 16px);
  }

  .modal-head {
    align-items: stretch;
  }

  .modal-head h2 {
    font-size: 18px;
  }

  .modal-body {
    padding: 12px;
  }

  .closing-actions {
    width: 100%;
    justify-content: stretch;
  }

  .closing-actions button {
    flex: 1 1 100%;
    max-width: none;
  }

  .span-2,
  .span-4 {
    grid-column: auto;
  }

  .main {
    padding: 16px;
  }

  .page-title h2 {
    font-size: 30px;
  }

  table {
    min-width: 560px;
  }

  .flash {
    margin-left: 0;
  }
}
