:root {
  color: #182022;
  background: #f4f6f5;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
button, input { font: inherit; }
svg { width: 20px; height: 20px; flex: 0 0 auto; }

.topbar {
  height: 60px;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #dce2df;
  background: rgba(255, 255, 255, .94);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 720; text-decoration: none; }
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: white;
  background: #126e60;
  border-radius: 6px;
}
.environment { margin-left: auto; color: #68736f; font: 600 11px/1 ui-monospace, monospace; }

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.auth-shell { min-height: calc(100vh - 60px); display: grid; grid-template-columns: 1.15fr .85fr; }
.auth-context { padding: clamp(48px, 8vw, 112px); background: #123d38; color: white; display: flex; flex-direction: column; justify-content: center; }
.auth-context h1 { max-width: 540px; margin: 18px 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.08; letter-spacing: 0; }
.auth-context p { max-width: 520px; color: #c8d8d4; font-size: 17px; line-height: 1.7; }
.auth-points { margin-top: 40px; display: grid; gap: 16px; }
.auth-point { display: flex; align-items: center; gap: 12px; color: #eaf1ef; }
.auth-point svg { color: #7dd3bd; }
.eyebrow { color: #76cdb5; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.auth-panel { padding: clamp(32px, 7vw, 96px); display: flex; align-items: center; background: #fff; }
.form-wrap { width: min(400px, 100%); margin: 0 auto; }
.form-wrap h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: 0; }
.muted { color: #68736f; line-height: 1.6; }
.field { margin: 22px 0; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.field input { width: 100%; height: 46px; border: 1px solid #cbd3d0; border-radius: 6px; padding: 0 13px; outline: none; }
.field input:focus { border-color: #126e60; box-shadow: 0 0 0 3px #d9eee8; }
.button { min-height: 44px; border: 0; border-radius: 6px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: #126e60; color: white; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #0d594e; }
.button-full { width: 100%; }
.button-secondary { color: #27312e; background: #e7ecea; }
.button-secondary:hover { background: #dce4e1; }
.error { padding: 11px 13px; border-left: 3px solid #c43f33; background: #fff0ee; color: #8c271e; font-size: 14px; }
.demo-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e3e8e6; color: #68736f; font-size: 13px; line-height: 1.7; }

.dashboard { padding: 42px 0 72px; }
.dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.dashboard-head h1 { margin: 4px 0 0; font-size: 32px; letter-spacing: 0; }
.user-actions { display: flex; align-items: center; gap: 14px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #dcece8; color: #126e60; font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.stat, .panel { border: 1px solid #dde3e1; border-radius: 7px; background: white; }
.stat { padding: 20px; }
.stat-label { color: #68736f; font-size: 13px; }
.stat-value { margin-top: 8px; font-size: 28px; font-weight: 760; }
.panel-header { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e5e9e7; }
.panel-header h2 { margin: 0; font-size: 17px; }
.data-row { min-height: 58px; padding: 12px 20px; display: grid; grid-template-columns: 1.2fr 1fr 1fr .7fr; align-items: center; gap: 12px; border-bottom: 1px solid #edf0ef; }
.data-row:last-child { border-bottom: 0; }
.data-row.header { min-height: 42px; color: #68736f; background: #fafbfa; font-size: 12px; font-weight: 700; }
.status { width: max-content; padding: 4px 9px; border-radius: 999px; background: #def1e8; color: #17644f; font-size: 12px; font-weight: 700; }
.hero { padding: 64px 0 44px; border-bottom: 1px solid #dce2df; background: white; }
.hero h1 { max-width: 700px; margin: 10px 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.1; letter-spacing: 0; }
.hero p { max-width: 650px; color: #68736f; font-size: 17px; line-height: 1.7; }
.app-grid { padding: 30px 0 70px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.app-card { min-height: 180px; padding: 24px; border: 1px solid #dce2df; border-radius: 7px; background: white; text-decoration: none; display: flex; flex-direction: column; }
.app-card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 6px; background: #dcece8; color: #126e60; }
.app-card h2 { margin: 22px 0 4px; font-size: 20px; }
.app-card p { margin: 0; color: #68736f; }
.app-card .link { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 8px; color: #126e60; font-weight: 700; }

@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-context { min-height: 330px; padding: 42px 24px; }
  .auth-context h1 { font-size: 38px; }
  .auth-points { display: none; }
  .auth-panel { padding: 40px 24px 56px; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .data-row { grid-template-columns: 1.4fr 1fr; }
  .data-row > :nth-child(3), .data-row > :nth-child(4) { display: none; }
}
