.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; }
.header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--rf-line); }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -.03em; }
.brand-mark { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--rf-primary), var(--rf-cyan)); color: #fff; box-shadow: var(--rf-shadow); }
.nav { display: flex; gap: 12px; align-items: center; }
.nav a { color: var(--rf-muted); font-weight: 650; font-size: 14px; padding: 10px 12px; border-radius: 12px; }
.nav a.router-link-active, .nav a:hover { color: var(--rf-primary); background: var(--rf-surface-2); }
.btn { border: 0; cursor: pointer; border-radius: 14px; padding: 12px 16px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .2s; }
.btn-primary { background: var(--rf-primary); color: #fff; box-shadow: var(--rf-shadow); }
.btn-primary:hover { background: var(--rf-primary-2); transform: translateY(-1px); }
.btn-soft { background: var(--rf-surface-2); color: var(--rf-primary); }
.btn-outline { background: transparent; border: 1px solid var(--rf-line); color: var(--rf-primary); }
.btn-danger { background: #fee2e2; color: #991b1b; }
.hero { padding: 74px 0 42px; background: radial-gradient(circle at 20% 20%, rgba(0,174,234,.16), transparent 34%), linear-gradient(180deg, #fff, var(--rf-bg)); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 42px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--rf-line); background: #fff; color: var(--rf-primary); border-radius: 999px; padding: 8px 12px; font-weight: 800; font-size: 13px; }
h1 { font-size: clamp(42px, 6vw, 72px); line-height: .94; letter-spacing: -.06em; margin: 18px 0; }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; margin: 0 0 12px; }
h3 { margin: 0 0 8px; letter-spacing: -.02em; }
p { line-height: 1.6; }
.hero-card, .card, .panel { background: var(--rf-surface); border: 1px solid var(--rf-line); border-radius: var(--rf-radius); box-shadow: var(--rf-shadow); }
.hero-card { padding: 24px; }
.card { padding: 22px; }
.metric { padding: 18px; border-radius: 16px; background: var(--rf-surface-2); }
.metric strong { display: block; font-size: 28px; letter-spacing: -.04em; }
.section { padding: 56px 0; }
.solution-card { min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.badge-beta { background: #fff7ed; color: #c2410c; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-draft { background: #f1f5f9; color: #475569; }
.badge-paused { background: #fee2e2; color: #991b1b; }
.badge-high { background: #fee2e2; color: #991b1b; }
.badge-medium { background: #fef3c7; color: #92400e; }
.badge-low { background: #dcfce7; color: #166534; }
.footer { border-top: 1px solid var(--rf-line); padding: 28px 0; color: var(--rf-muted); background: #fff; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 850; color: var(--rf-primary); }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--rf-line); border-radius: 14px; padding: 12px 13px; background: #fff; color: var(--rf-ink); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--rf-cyan); box-shadow: 0 0 0 4px rgba(0,174,234,.12); }
.auth-wrap { min-height: calc(100vh - 150px); display: grid; place-items: center; padding: 42px 0; }
.auth-card { width: min(520px, calc(100% - 24px)); }
.app-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--rf-primary); color: #fff; padding: 22px; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { margin-bottom: 30px; }
.side-nav { display: grid; gap: 8px; }
.side-nav a { padding: 12px 14px; border-radius: 14px; color: rgba(255,255,255,.75); font-weight: 750; }
.side-nav a.router-link-active, .side-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.content { padding: 28px; }
.table-wrap { overflow-x: auto; border-radius: var(--rf-radius); border: 1px solid var(--rf-line); background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--rf-line); text-align: left; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--rf-muted); background: #f8fafc; }
.alert { border-radius: 14px; padding: 12px 14px; border: 1px solid var(--rf-line); background: #fff; }
.alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.loading { padding: 24px; text-align: center; color: var(--rf-muted); }
.empty { padding: 26px; text-align: center; color: var(--rf-muted); border: 1px dashed var(--rf-line); border-radius: var(--rf-radius); background: rgba(255,255,255,.7); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .content { padding: 18px; }
}
