:root {
  --bg: #071523;
  --bg-2: #0d2334;
  --card: rgba(255, 252, 246, 0.9);
  --card-strong: rgba(255, 255, 255, 0.96);
  --ink: #142534;
  --muted: #5f6f7d;
  --line: rgba(20, 37, 52, 0.12);
  --primary: #005482;
  --primary-2: #0a3550;
  --accent: #f9a351;
  --danger: #a83f39;
  --shadow: 0 30px 80px rgba(4, 16, 28, 0.22);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #071523 0%, #0c2941 42%, #12334b 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(249, 163, 81, 0.18), transparent 24rem),
    radial-gradient(circle at 85% 15%, rgba(39, 151, 203, 0.18), transparent 28rem),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80") center/cover;
  opacity: 0.22;
  pointer-events: none;
}

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

button,
a.button {
  cursor: pointer;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 21, 35, 0.1), rgba(7, 21, 35, 0.35));
}

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

.welcome-shell,
.workspace-shell {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 720px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(5, 22, 36, 0.92), rgba(8, 46, 74, 0.76)),
    url("https://images.unsplash.com/photo-1554224154-26032fced8bd?auto=format&fit=crop&w=1800&q=80") center/cover;
  padding: 24px clamp(18px, 5vw, 72px) 120px;
  border-bottom-left-radius: 44px;
  border-bottom-right-radius: 44px;
  box-shadow: var(--shadow);
}

.landing-hero {
  min-height: 760px;
}

.welcome-shell.is-auth-view .landing-hero,
.welcome-shell.is-auth-view .landing-panel {
  display: none;
}

.welcome-shell.is-auth-view .auth-gateway {
  margin: 24px auto 72px;
}

.workspace-hero {
  min-height: 420px;
  padding-bottom: 80px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  background: rgba(8, 26, 42, 0.5);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
}

.topbar-light {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 37, 52, 0.08);
}

.topbar-light .brand {
  color: var(--ink);
}

.topbar-light .brand small {
  color: var(--muted);
}

.topbar-light .nav-link {
  color: #fff;
  background: var(--primary-2);
  border-color: transparent;
}

.topbar-light .nav-link:hover {
  background: var(--primary);
}

.nav-link-solid {
  padding-inline: 18px;
  box-shadow: 0 12px 24px rgba(10, 53, 80, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.brand-logo {
  width: 110px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.15));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
}

.nav-actions,
.hero-actions,
.input-actions,
.table-actions,
.import-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.nav-link {
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  transition: background 150ms ease, transform 150ms ease;
}

.nav-button {
  font: inherit;
}

.nav-static {
  cursor: default;
  background: rgba(249, 163, 81, 0.18);
  border-color: rgba(249, 163, 81, 0.32);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.hero-content {
  width: min(860px, 100%);
  padding-top: 96px;
}

.hero-grid {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding-top: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.hero-grid .hero-content {
  padding-top: 0;
}

.compact-hero {
  padding-top: 56px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero .eyebrow {
  color: #ffd0a3;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.hero-content p:not(.eyebrow),
.section-heading p,
.hint,
.preview-entry p,
.insight-output,
.auth-summary {
  color: var(--muted);
}

.hero-content p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.7;
}

.workflow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.workflow-steps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 19px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

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

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

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 32px rgba(0, 84, 130, 0.28);
}

.secondary {
  color: var(--primary-2);
  background: #e5f0f7;
}

.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.ghost-dark {
  color: var(--ink);
  background: rgba(20, 37, 52, 0.08);
}

.danger {
  color: #fff;
  background: var(--danger);
}

.wide {
  width: 100%;
}

.stack {
  width: min(1240px, calc(100% - 28px));
  margin: -84px auto 80px;
  position: relative;
  z-index: 1;
}

.workspace-shell .stack {
  margin-top: -48px;
}

.workspace-shell {
  position: relative;
  padding-left: 280px;
}

.timesheet-page {
  width: min(1240px, calc(100% - 28px));
  margin: -48px auto 80px;
  position: relative;
  z-index: 1;
}

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

.timesheet-page-head p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.8);
}

.timesheet-panel {
  margin-bottom: 22px;
}

.timesheet-detail-page {
  margin-bottom: 0;
}

.timesheet-insights-page {
  margin-bottom: 0;
}

.timesheet-insight-output {
  display: grid;
  gap: 12px;
}

.pillar-drawer {
  position: fixed;
  top: 104px;
  left: 14px;
  z-index: 4;
  width: 240px;
  height: calc(100vh - 118px);
  max-height: calc(100vh - 118px);
}

.drawer-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 12px;
  border-radius: 26px;
  background: rgba(8, 26, 42, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 44px rgba(3, 16, 29, 0.25);
  overflow: hidden;
}

.drawer-header {
  display: grid;
  gap: 2px;
  padding: 10px 10px 4px;
  color: rgba(255, 255, 255, 0.9);
}

.drawer-header span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(249, 211, 134, 0.92);
}

.drawer-header strong {
  font-size: 1rem;
}

.drawer-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}

.drawer-item {
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  min-height: 48px;
  transition: background 150ms ease, box-shadow 150ms ease;
  position: relative;
}

.drawer-item:hover,
.drawer-item.is-active {
  background: rgba(249, 163, 81, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(249, 163, 81, 0.36),
    0 12px 24px rgba(249, 163, 81, 0.08);
}

.drawer-item.is-active::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6d47f, #c99f35);
}

.drawer-label {
  position: relative;
  z-index: 1;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.auth-gateway {
  width: min(1240px, calc(100% - 28px));
  margin: -72px auto 72px;
  position: relative;
  z-index: 2;
  scroll-margin-top: 24px;
  overflow: hidden;
}

.auth-stage {
  display: flex;
  justify-content: center;
}

.auth-story,
.auth-panel {
  border-radius: 26px;
  padding: clamp(22px, 4vw, 34px);
}

.auth-story {
  display: none;
}

.auth-panel {
  background: rgba(255, 248, 240, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: 0 32px 76px rgba(4, 16, 28, 0.16);
  position: relative;
  width: min(560px, 100%);
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(249, 163, 81, 0.08), transparent 25%, rgba(255, 255, 255, 0.5) 70%);
  pointer-events: none;
}

.auth-panel > * {
  position: relative;
  z-index: 1;
}

.auth-card {
  display: grid;
  gap: 16px;
}

.auth-card-mark {
  width: 92px;
  height: 92px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(95, 60, 145, 0.98), rgba(107, 36, 153, 0.92));
  box-shadow: 0 18px 36px rgba(79, 33, 117, 0.2);
}

.auth-card-mark img {
  width: 64px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.14));
}

.auth-card-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.auth-card-copy {
  margin: 0 auto;
  max-width: 42ch;
  text-align: center;
  line-height: 1.7;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(20, 37, 52, 0.06);
}

.auth-mode-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.auth-mode-button.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 14px 26px rgba(0, 84, 130, 0.22);
}

.auth-google-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.google-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(20, 37, 52, 0.12);
  background: #fff;
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1;
  background-image: linear-gradient(90deg, #4285f4 0 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(20, 37, 52, 0.12);
}

.auth-divider span {
  color: var(--muted);
}

.auth-form-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

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

.auth-form label {
  font-weight: 900;
  color: var(--ink);
}

.auth-switch {
  justify-self: center;
}

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

.landing-panel {
  width: min(1240px, calc(100% - 28px));
  margin: 22px auto;
}

.panel {
  margin-bottom: 22px;
  background: rgba(255, 248, 240, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: clamp(20px, 4vw, 42px);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading p {
  max-width: 760px;
  line-height: 1.6;
  margin-bottom: 0;
}

.auth-summary {
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(20, 37, 52, 0.06);
  font-weight: 800;
}

.auth-copy {
  margin-bottom: 0;
  color: var(--muted);
}

.consent-card {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 37, 52, 0.08);
}

.consent-card-inline {
  margin-bottom: 0;
  padding: 14px 16px;
  gap: 8px;
}

.consent-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.consent-line input {
  margin-top: 4px;
}

.consent-copy {
  display: grid;
  gap: 2px;
}

.consent-copy small {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

.consent-copy a {
  color: var(--primary);
  text-decoration: none;
}

.consent-copy a:hover,
.legal-footer a:hover,
.legal-page a:hover {
  text-decoration: underline;
}

.hint-compact {
  margin: 0;
  line-height: 1.45;
}

.legal-summary {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(20, 37, 52, 0.04);
  font-size: 0.9rem;
}

.legal-summary summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--primary-2);
}

.legal-summary ul {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.45;
}

.legal-footer {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto 56px;
  padding: 16px 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.auth-legal-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
  font-size: 0.92rem;
}

.auth-legal-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.legal-footer-workspace {
  width: min(1240px, calc(100% - 28px));
  margin-top: -32px;
  padding-bottom: 36px;
  position: relative;
  z-index: 1;
}

.legal-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 700;
}

.legal-page {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 28px 0 64px;
}

.legal-page-shell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
}

.legal-page-topbar {
  margin-bottom: 24px;
}

.legal-page-card {
  background: rgba(255, 248, 240, 0.94);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 42px);
}

.legal-page-card h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  margin-bottom: 18px;
}

.legal-page-card h2 {
  color: var(--ink);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-page-card p,
.legal-page-card li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-page-card ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-page-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.legal-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.legal-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(20, 37, 52, 0.05);
  border: 1px solid rgba(20, 37, 52, 0.08);
  margin-bottom: 20px;
}

.lock-overlay {
  display: none;
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(12, 41, 65, 0.88), rgba(5, 22, 36, 0.94));
  color: #fff;
  box-shadow: 0 18px 40px rgba(4, 16, 28, 0.18);
}

.lock-overlay strong {
  display: block;
  font-size: 1.05rem;
}

.lock-overlay p {
  margin: 8px 0 14px;
  color: rgba(255, 255, 255, 0.84);
}

.is-locked .lock-overlay {
  display: block;
}

.is-locked .log-layout,
.is-locked .insight-grid {
  filter: blur(1.5px);
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
}

.auth-grid,
.log-layout,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.input-card,
.preview-card,
.import-card {
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
}

.input-card {
  display: grid;
  gap: 12px;
}

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

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

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

.landing-card,
.step-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff8ef 100%);
  border: 1px solid rgba(20, 37, 52, 0.08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(4, 16, 28, 0.06);
}

.landing-card strong,
.step-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero-showcase {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 22px;
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(3, 16, 29, 0.18);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.link-button:hover {
  color: var(--primary-2);
  text-decoration: underline;
}

.reset-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 37, 52, 0.1);
}

.reset-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

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

.reset-form--stacked .button {
  width: 100%;
  justify-content: center;
}

.dashboard-panel {
  background: linear-gradient(180deg, #0b1d2e 0%, #10273d 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.quickstart-panel {
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.92), rgba(255, 255, 255, 0.98));
}

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

.quickstart-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fff8ef 100%);
  border: 1px solid rgba(20, 37, 52, 0.08);
  box-shadow: 0 18px 42px rgba(4, 16, 28, 0.08);
}

.quickstart-card h3 {
  margin-bottom: 0;
  font-size: 1.18rem;
}

.quickstart-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.quickstart-card strong {
  color: var(--ink);
}

.quickstart-card-head,
.quickstart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.quickstart-step {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 900;
}

.quickstart-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20, 37, 52, 0.06);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.quickstart-status.is-done {
  background: rgba(12, 126, 82, 0.12);
  color: #0d7b56;
}

.quickstart-status.is-ready {
  background: rgba(249, 163, 81, 0.16);
  color: #9a5e12;
}

.dashboard-panel .eyebrow {
  color: #f0bf59;
}

.dashboard-panel h2,
.dashboard-panel h3,
.dashboard-panel .section-heading p,
.dashboard-panel .hint {
  color: rgba(255, 255, 255, 0.78);
}

.dashboard-panel h2,
.dashboard-panel h3 {
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
}

.chart-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 42px rgba(4, 16, 28, 0.18);
}

.chart-card-header {
  margin-bottom: 18px;
}

.chart-card-header .eyebrow {
  margin-bottom: 8px;
}

.chart-card-header h3 {
  margin-bottom: 0;
}

.pillar-chart {
  display: grid;
  gap: 12px;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.chart-label {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
}

.chart-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.chart-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e7be59, #f7d98d);
}

.chart-row strong {
  min-width: 54px;
  text-align: right;
  color: rgba(255, 255, 255, 0.92);
}

.trend-chart {
  width: 100%;
  height: 240px;
}

.trend-chart rect {
  fill: url(#trendGradient);
}

.chart-axis {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1.5;
}

.chart-text {
  fill: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.chart-value {
  fill: #f3d27a;
  font-size: 12px;
  font-weight: 800;
}

.showcase-header span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.showcase-header strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 18px;
}

.showcase-bars {
  display: grid;
  gap: 12px;
}

.showcase-bars div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.showcase-bars b,
.showcase-bars em {
  font-style: normal;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.76);
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e7be59, #f7d98d);
}

.showcase-insight {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(249, 163, 81, 0.12);
  border: 1px solid rgba(249, 163, 81, 0.26);
}

.showcase-insight strong {
  display: block;
  margin-bottom: 8px;
  color: #ffd88a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.showcase-insight p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  color: var(--ink);
  background: #fffcf7;
  line-height: 1.6;
  margin-bottom: 14px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(0, 84, 130, 0.18);
  border-color: var(--primary);
}

.hint {
  margin: 12px 0 0;
  line-height: 1.55;
}

.import-card {
  margin-top: 22px;
}

.import-controls input[type="file"] {
  flex: 1 1 320px;
  margin: 0;
}

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

.pillar-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  padding: 0;
  color: #fff;
  text-align: left;
  background: #102c2a;
  box-shadow: 0 18px 42px rgba(16, 44, 42, 0.21);
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--image) center/cover;
  transform: scale(1.03);
  transition: transform 240ms ease;
}

.pillar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 16, 15, 0.08), rgba(3, 16, 15, 0.84));
}

.pillar-card:hover::before {
  transform: scale(1.08);
}

.pillar-card.is-selected {
  outline: 4px solid var(--accent);
}

.pillar-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 24px;
}

.pillar-content h3 {
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.pillar-content p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
}

.pillar-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
}

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

#previewCount,
#actualCount {
  border-radius: 999px;
  padding: 8px 11px;
  background: #f5e3d0;
  font-weight: 900;
}

.preview-list,
.insight-output {
  display: grid;
  gap: 12px;
  max-height: 460px;
  overflow: auto;
  margin-bottom: 16px;
}

.preview-entry,
.actual-entry,
.insight-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  background: #fffbf2;
}

.preview-entry p {
  margin-bottom: 12px;
}

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

.preview-editable {
  background: linear-gradient(180deg, #fffdf9 0%, #fff8ee 100%);
}

.preview-edit-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.preview-edit-grid label span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preview-edit-grid .wide {
  grid-column: 1 / -1;
}

.preview-row-actions {
  margin-top: 12px;
  justify-content: flex-end;
}

.empty-state {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  background: rgba(20, 37, 52, 0.05);
  border-radius: 18px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.summary-strip article {
  border-radius: 20px;
  padding: 18px;
  background: var(--card-strong);
  border: 1px solid var(--line);
}

.summary-strip span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.summary-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 2rem;
}

.table-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.table-pager span {
  color: var(--muted);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card-strong);
}

.detail-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card-strong);
  padding: 22px;
}

.detail-shell {
  display: grid;
  gap: 18px;
}

.detail-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.detail-summary h3 {
  margin-bottom: 6px;
}

.detail-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--muted);
  font-weight: 800;
}

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

.detail-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.detail-grid label.wide {
  grid-column: 1 / -1;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.pillar-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--primary-2);
  background: #e5f0f7;
  font-weight: 900;
}

.inline-pillar-select {
  width: 100%;
  max-width: 152px;
  border: 1px solid rgba(20, 37, 52, 0.12);
  border-radius: 999px;
  padding: 7px 30px 7px 12px;
  color: var(--primary-2);
  background: #e5f0f7;
  font-weight: 900;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary-2) 50%), linear-gradient(135deg, var(--primary-2) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.inline-pillar-select:focus {
  outline: 2px solid rgba(0, 84, 130, 0.28);
  outline-offset: 2px;
}

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

.edit-input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(20, 37, 52, 0.16);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
}

.is-editing td {
  background: rgba(249, 163, 81, 0.08);
}

.edit-row,
.save-row,
.cancel-row {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
}

.edit-row,
.save-row {
  color: #fff;
  background: var(--primary);
}

.cancel-row {
  color: var(--ink);
  background: #e8edf1;
}

.delete-row {
  color: var(--danger);
  background: transparent;
  border: 0;
  font-weight: 900;
}

dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  font-weight: 900;
}

.markdown p,
.markdown ul {
  margin: 0 0 12px;
  line-height: 1.6;
}

.markdown ul {
  padding-left: 18px;
}

.billing-panel {
  width: min(1240px, calc(100% - 28px));
  margin: 22px auto 80px;
}

.billing-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.92), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(20, 37, 52, 0.08);
  box-shadow: 0 24px 60px rgba(4, 16, 28, 0.12);
}

.billing-summary h3 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.billing-summary p {
  margin-bottom: 0;
}

.billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.billing-actions--stacked {
  flex-direction: column;
}

.billing-plan-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.billing-plan-choices.is-hidden {
  display: none;
}

.billing-actions .button {
  min-width: 180px;
}

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

  .hero-grid,
  .landing-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .auth-grid,
  .log-layout,
  .insight-grid,
  .xero-layout {
    grid-template-columns: 1fr;
  }

  .auth-stage {
    display: flex;
  }

  .workspace-shell {
    padding-left: 0;
  }

  .pillar-drawer {
    display: none;
  }
}

.xero-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
}

@media (max-width: 760px) {
  .hero {
    min-height: 620px;
    padding-bottom: 90px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }

  .hero-grid {
    width: min(1240px, calc(100% - 28px));
  }

  .topbar,
  .section-heading {
    display: block;
  }

  .nav-actions,
  .table-actions {
    margin-top: 16px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-logo {
    width: 88px;
  }

  .stack {
    margin-top: -56px;
  }

  .pillar-grid,
  .landing-grid--eight,
  .landing-grid,
  .steps-grid,
  .dashboard-grid,
  .detail-grid,
  .summary-strip,
  dl {
    grid-template-columns: 1fr;
  }

  .detail-summary,
  .table-pager,
  .legal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-meta {
    justify-items: start;
  }
}
