:root {
  color-scheme: light;
  --bg: #f5f7fb; --surface: #ffffff; --surface-soft: #eef2f7; --text: #172033; --muted: #657089;
  --border: #dfe5ee; --primary: #335cff; --primary-dark: #2445d0; --success: #15803d; --warning: #b45309; --danger: #b42318;
  --shadow: 0 12px 36px rgba(33, 49, 86, .08); --radius: 16px;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; background: var(--surface); border-right: 1px solid var(--border); padding: 28px 18px; display: flex; flex-direction: column; z-index: 2; }
.brand { color: var(--text); font-weight: 800; letter-spacing: -.03em; font-size: 19px; padding: 8px 12px; display: block; }
.sidebar nav { margin-top: 32px; display: grid; gap: 6px; } .sidebar nav a { padding: 11px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; } .sidebar nav a:hover, .sidebar nav a.active { background: #edf1ff; color: var(--primary); text-decoration: none; }
.sidebar-footer { margin-top: auto; padding: 12px; display: grid; gap: 1px; border-top: 1px solid var(--border); color: var(--muted); } .sidebar-footer span { color: var(--text); font-weight: 650; } .sidebar-footer small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { margin-left: 250px; padding: 32px clamp(20px, 4vw, 64px); max-width: 1500px; min-height: 100vh; } .public-main { margin-left: 0; max-width: none; padding: 0; } .mobile-header, .mobile-nav { display: none; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; } h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.04em; margin: 0 0 8px; } h2 { margin: 0 0 14px; letter-spacing: -.025em; } h3 { margin: 0 0 8px; } .muted { color: var(--muted); } .eyebrow { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .button, button { border: 0; border-radius: 10px; background: var(--primary); color: white; padding: 10px 15px; font: inherit; font-weight: 700; cursor: pointer; display: inline-block; } .button:hover, button:hover { background: var(--primary-dark); text-decoration: none; } .button.secondary, button.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); } .button.danger, button.danger { background: var(--danger); } .link-button { background: transparent; color: var(--primary); padding: 0; font-weight: 650; text-align: left; } .link-button:hover { background: transparent; text-decoration: underline; }
.grid { display: grid; gap: 18px; } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); } .metric .metric-label { color: var(--muted); font-size: 13px; font-weight: 700; } .metric .metric-value { font-size: 25px; font-weight: 800; margin-top: 9px; letter-spacing: -.035em; }
.section { margin-top: 26px; } .section-header { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 12px; } .notice { border: 1px solid #f3d49b; background: #fff9e9; color: #7a4a00; padding: 12px 14px; border-radius: 12px; margin: 14px 0; }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--border); vertical-align: top; white-space: nowrap; } th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; } td.wrap { white-space: normal; min-width: 200px; } tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: var(--surface-soft); font-size: 12px; font-weight: 750; } .badge-active { background: #dcfce7; color: var(--success); } .badge-paused { background: #fff4cc; color: var(--warning); } .badge-canceled, .badge-completed { background: #f1f3f6; color: var(--muted); }
.form-card { max-width: 960px; } .form-section { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 22px; } .form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; } .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; } .field { display: grid; gap: 6px; } .field > span { color: var(--muted); font-size: 13px; font-weight: 700; } input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); padding: 10px 11px; font: inherit; } textarea { min-height: 110px; resize: vertical; } .full { grid-column: 1 / -1; } .form-actions { display: flex; gap: 10px; margin-top: 24px; }
.tag-picker { display: grid; gap: 9px; } .tag-chips { display: flex; gap: 7px; flex-wrap: wrap; min-height: 4px; } .tag-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 5px 8px; border-radius: 999px; background: #edf1ff; color: var(--primary-dark); font-size: 13px; font-weight: 700; } .tag-chip-new { background: #e8f7ef; color: #166534; } .tag-chip button { min-height: 0; padding: 0 2px; background: transparent; color: inherit; font-size: 17px; line-height: 1; } .tag-chip button:hover { background: transparent; } .tag-picker-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; } .tag-picker-row .button, .tag-picker-row button { min-height: 0; padding: 8px 11px; white-space: nowrap; } .custom-billing-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.password-new-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.flash { border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; background: #e8efff; color: #1e3a8a; } .flash.error { background: #fee4e2; color: var(--danger); } .flash.success { background: #dcfce7; color: var(--success); }
.auth-shell { min-height: 100svh; display: grid; place-items: center; padding: 28px 16px; background: radial-gradient(circle at 12% 10%, rgba(51, 92, 255, .12), transparent 34%), linear-gradient(180deg, #f8faff 0%, #eef2f8 100%); } .auth-card { width: min(100%, 440px); background: rgba(255,255,255,.96); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 22px 60px rgba(33, 49, 86, .14); padding: clamp(24px, 5vw, 38px); } .auth-card h1 { font-size: clamp(28px, 7vw, 34px); line-height: 1.08; margin-top: 16px; } .auth-card form { margin-top: 22px; display: grid; gap: 15px; } .auth-card input, .auth-card button { min-height: 46px; } .brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--primary); font-weight: 850; font-size: 22px; } .auth-footer { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 18px; color: var(--muted); }
.list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; } .list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); } .list li:last-child { border-bottom: 0; } .empty { text-align: center; color: var(--muted); padding: 32px 12px; } .right { text-align: right; } .small { font-size: 12px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .sidebar { display: none; } .main { margin-left: 0; padding: 18px 14px 92px; } .public-main { padding: 0; } .mobile-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; } .mobile-nav { position: fixed; z-index: 5; inset: auto 10px 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 7px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 12px 32px rgba(33,49,86,.18); backdrop-filter: blur(12px); } .mobile-nav a { min-width: 0; min-height: 52px; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 11px; color: var(--muted); font-size: 10px; font-weight: 750; text-align: center; } .mobile-nav a span { font-size: 19px; line-height: 1; } .mobile-nav a.active, .mobile-nav a:hover { background: #edf1ff; color: var(--primary); text-decoration: none; } .page-header { display: grid; } .section-header { align-items: flex-start; } .actions, .form-actions { width: 100%; flex-wrap: wrap; } .actions > *, .form-actions > * { flex: 1 1 auto; } .button, button { min-height: 44px; } .grid-4, .grid-3, .grid-2, .form-grid, .custom-billing-fields { grid-template-columns: 1fr; } .password-new-row { grid-template-columns: 1fr; } .tag-picker-row { grid-template-columns: 1fr; } .tag-picker-row .button, .tag-picker-row button { width: 100%; } .card { padding: 16px; } th, td { padding: 10px 8px; } .auth-shell { padding: 18px 14px; } .auth-card { border-radius: 18px; padding: 24px 18px; } h1 { font-size: 30px; } }
