:root {
  --primary-700: #245b63;
  --primary-500: #2f7c82;
  --primary-100: #ddf2f0;
  --accent-600: #d97745;
  --accent-100: #fce8dc;
  --success-700: #2f6b4f;
  --success-100: #e2f3e9;
  --warning-700: #8a5a16;
  --warning-100: #fff3d6;
  --danger-700: #b13b3b;
  --info-100: #e5f0fb;
  --text-900: #173042;
  --text-600: #526473;
  --border: #d8e2e5;
  --surface: #fff;
  --canvas: #f5f8f7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text-900);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #efad66; outline-offset: 2px; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); }
.auth-brand { padding: clamp(32px, 8vw, 112px); display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, var(--primary-700), #3b8b83); color: white; }
.logo-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #f7c873; color: var(--primary-700); font-size: 25px; font-weight: 800; }
.auth-brand h1 { max-width: 480px; margin: 24px 0 12px; font-size: clamp(32px, 5vw, 56px); line-height: 1.08; }
.auth-brand p { max-width: 500px; color: #e4f6f2; font-size: 18px; line-height: 1.6; }
.auth-perks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.auth-perks span { padding: 9px 13px; border: 1px solid #ffffff44; border-radius: 99px; font-size: 13px; }
.auth-card { width: min(440px, calc(100% - 40px)); margin: auto; padding: 32px 0; }
.auth-card h2 { margin: 0 0 8px; font-size: 28px; }
.muted { color: var(--text-600); }
.form-group { margin: 20px 0; }
.form-group label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.form-group input, .form-group select { width: 100%; min-height: 46px; border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; background: var(--surface); color: var(--text-900); }
.primary-btn { width: 100%; min-height: 46px; border: 0; border-radius: 10px; background: var(--primary-700); color: white; font-weight: 700; }
.secondary-btn { min-height: 42px; border: 1px solid var(--border); border-radius: 10px; padding: 0 15px; background: white; color: var(--text-900); font-weight: 700; }
.text-btn { border: 0; padding: 0; background: transparent; color: var(--primary-700); font-weight: 700; }
.demo-note { margin-top: 22px; padding: 13px; border-radius: 10px; background: var(--info-100); color: #285b88; font-size: 13px; line-height: 1.5; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 256px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 16px; border-right: 1px solid var(--border); background: var(--surface); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 26px; font-weight: 800; }
.brand .logo-mark { width: 38px; height: 38px; border-radius: 12px; font-size: 20px; }
.nav { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--text-600); text-decoration: none; font-size: 14px; font-weight: 650; }
.nav-link:hover, .nav-link.active { background: var(--primary-100); color: var(--primary-700); }
.sidebar-footer { position: absolute; right: 16px; bottom: 22px; left: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-600); }
.main { min-width: 0; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; border-bottom: 1px solid var(--border); background: #ffffffcc; backdrop-filter: blur(10px); }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 24px; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { position: relative; border: 0; background: transparent; color: var(--text-600); font-size: 20px; }
.badge-dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-600); }
.profile { position: relative; }
.profile-btn { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; color: var(--text-900); font-weight: 700; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-100); color: var(--accent-600); }
.profile-menu { position: absolute; z-index: 3; top: 48px; right: 0; width: 180px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: white; box-shadow: 0 12px 30px #1730421c; }
.profile-menu button { width: 100%; border: 0; border-radius: 8px; padding: 10px; background: transparent; text-align: left; }
.profile-menu button:hover { background: var(--canvas); }
.page { max-width: 1440px; margin: 0 auto; padding: 32px; }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 20px; color: var(--text-600); font-size: 13px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 26px; }
.page-heading h1 { margin: 0 0 7px; font-size: 32px; }
.page-heading p { margin: 0; color: var(--text-600); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: 16px; padding: 22px; background: var(--surface); box-shadow: 0 2px 10px #17304208; }
.metric-label { color: var(--text-600); font-size: 13px; font-weight: 650; }
.metric-value { display: block; margin-top: 8px; font-size: 30px; font-variant-numeric: tabular-nums; }
.metric-change { color: var(--success-700); font-size: 12px; }
.content-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-top: 16px; }
.card h2 { margin: 0 0 16px; font-size: 18px; }
.list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #edf1f1; }
.list li:last-child { border-bottom: 0; padding-bottom: 0; }
.status { display: inline-flex; padding: 5px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status.success { background: var(--success-100); color: var(--success-700); }
.status.warning { background: var(--warning-100); color: var(--warning-700); }
.status.info { background: var(--info-100); color: #285b88; }
.empty-state, .error-state { padding: 35px 20px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; }
.empty-state strong, .error-state strong { display: block; margin-bottom: 6px; }
.error-state { border-color: #e9bcbc; background: #fff8f8; }
.error-state strong { color: var(--danger-700); }
.skeleton { height: 15px; margin: 12px 0; border-radius: 8px; background: linear-gradient(90deg, #edf3f2 25%, #f8fbfa 50%, #edf3f2 75%); background-size: 200% 100%; animation: pulse 1.2s infinite; }
@keyframes pulse { to { background-position: -200% 0; } }
@media (max-width: 1199px) { .app-shell { grid-template-columns: 80px minmax(0, 1fr); } .sidebar { padding: 20px 10px; } .brand { justify-content: center; padding: 0 0 24px; } .brand span, .nav-link span, .sidebar-footer { display: none; } .nav-link { justify-content: center; padding: 0; font-size: 21px; } .nav-link[title] { position: relative; } .topbar, .page { padding-right: 24px; padding-left: 24px; } .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .auth-layout { display: block; } .auth-brand { min-height: 310px; padding: 34px 24px; } .auth-brand h1 { margin-top: 17px; font-size: 34px; } .auth-brand p { font-size: 15px; } .auth-perks { margin-top: 15px; } .auth-card { width: min(440px, calc(100% - 32px)); padding: 30px 0 45px; } .app-shell { display: block; } .sidebar { position: fixed; z-index: 5; top: 0; left: -280px; width: 256px; transition: left .2s ease; box-shadow: 8px 0 24px #1730421c; } .sidebar.open { left: 0; } .brand { justify-content: flex-start; padding: 0 10px 26px; } .brand span, .nav-link span, .sidebar-footer { display: block; } .nav-link { justify-content: flex-start; padding: 0 12px; font-size: 14px; } .menu-toggle { display: block; } .topbar { height: 68px; padding: 0 16px; } .profile-btn > span:not(.avatar) { display: none; } .page { padding: 24px 16px 90px; } .page-heading { display: block; } .page-heading .primary-btn { width: auto; margin-top: 16px; padding: 0 16px; } .page-heading h1 { font-size: 26px; } .metrics, .content-grid { grid-template-columns: 1fr; } .mobile-nav { position: fixed; z-index: 4; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; padding: 8px; border-top: 1px solid var(--border); background: white; } .mobile-nav a { color: var(--text-600); font-size: 11px; text-align: center; text-decoration: none; } .mobile-nav a strong { display: block; font-size: 20px; } }
@media (min-width: 768px) { .mobile-nav { display: none; } }
