/* ============================================================
   Assure MyHome Portal — Master Stylesheet
   Modern premium UI with green/dark brand palette
   ============================================================ */

/* System font stack — no external dependency */

:root {
  --g:        #2D7A2D;
  --g2:       #1a5c1a;
  --g3:       #3da03d;
  --g4:       #5cbf5c;
  --glight:   #edf7ed;
  --gdim:     #d4ead4;
  --gborder:  #b8d8b8;
  --dark:     #080d08;
  --dark2:    #0c130c;
  --dark3:    #111a11;
  --dark4:    #172017;
  --card:     #ffffff;
  --surf:     #f3f8f3;
  --surf2:    #e8f2e8;
  --t1:       #0d1a0d;
  --t2:       #2a422a;
  --t3:       #5a7a5a;
  --t4:       #8aaa8a;
  --t5:       #aac8aa;
  --bdr:      rgba(45,122,45,0.12);
  --bdr2:     rgba(45,122,45,0.22);
  --bdr3:     rgba(45,122,45,0.38);
  --amber:    #b87a14;
  --amber-bg: #fef6e8;
  --amber-bd: #f5d89a;
  --red:      #c0281a;
  --red-bg:   #fef0ee;
  --red-bd:   #f5b8b0;
  --blue:     #1a5a9c;
  --blue-bg:  #e8f0fb;
  --blue-bd:  #b0ccf5;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,30,0,0.08), 0 1px 2px rgba(0,30,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,30,0,0.08), 0 2px 4px rgba(0,30,0,0.05);
  --transition: all 0.18s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; -webkit-font-smoothing: antialiased; }

body {
  font-family: system-ui,-apple-system,'Segoe UI','Helvetica Neue',Arial,sans-serif;
  background: var(--surf);
  color: var(--t1);
  line-height: 1.5;
}

a { color: var(--g); text-decoration: none; }
a:hover { color: var(--g2); }

/* ── TOPBAR ── */
.topbar {
  background: var(--dark);
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(45,122,45,0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-logo {
  width: 32px; height: 32px;
  background: var(--g);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.topbar-name {
  font-family: system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size: 15px; font-weight: 700;
  color: #e8f5e8; letter-spacing: 0.01em;
}
.topbar-name em { color: #5cbf5c; font-style: normal; }
.role-badge {
  font-size: 9px; padding: 3px 9px;
  border-radius: 20px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.rb-admin    { background: rgba(45,122,45,0.2);    color: #7dcc7d; border: 1px solid rgba(45,122,45,0.35); }
.rb-crm      { background: rgba(26,90,156,0.2);    color: #7db8e8; border: 1px solid rgba(26,90,156,0.35); }
.rb-customer { background: rgba(184,122,20,0.18);  color: #e8b84d; border: 1px solid rgba(184,122,20,0.35); }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-notif-btn {
  width: 32px; height: 32px;
  background: rgba(45,122,45,0.1);
  border: 1px solid rgba(45,122,45,0.2);
  border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: var(--transition);
}
.topbar-notif-btn:hover { background: rgba(45,122,45,0.18); }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: #e87d3d; border-radius: 50%;
  border: 1.5px solid var(--dark);
}
.topbar-user { display: flex; align-items: center; gap: 8px; }
.topbar-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(184,122,20,0.2);
  border: 1.5px solid rgba(184,122,20,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #e8b84d;
  flex-shrink: 0;
}
.topbar-uname { font-size: 12px; color: rgba(168,203,168,0.55); }
.btn-signout {
  font-size: 11px; background: transparent;
  border: 1px solid rgba(45,122,45,0.25);
  color: rgba(200,230,200,0.45);
  border-radius: 7px; padding: 5px 12px; cursor: pointer;
  transition: var(--transition);
}
.btn-signout:hover { border-color: rgba(45,122,45,0.5); color: rgba(200,230,200,0.75); }

/* ── PAGE LAYOUT ── */
.page-layout { display: flex; min-height: calc(100vh - 54px); }

/* ── SIDEBAR ── */
.sidebar {
  width: 210px;
  background: var(--dark2);
  border-right: 1px solid rgba(45,122,45,0.12);
  padding: 1.1rem 0.7rem;
  flex-shrink: 0;
  overflow-y: auto;
}
.sidebar-section {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(120,160,120,0.35);
  padding: 0 10px;
  margin: 1.1rem 0 0.35rem;
}
.sidebar-section:first-child { margin-top: 0; }
.sidebar-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 500;
  color: rgba(168,203,168,0.45);
  cursor: pointer; margin-bottom: 1px;
  transition: var(--transition);
  text-decoration: none;
}
.sidebar-item:hover {
  background: rgba(45,122,45,0.1);
  color: rgba(168,203,168,0.8);
}
.sidebar-item.active {
  background: rgba(45,122,45,0.2);
  color: #a8e6a8; font-weight: 600;
}
.sidebar-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.sidebar-badge {
  margin-left: auto; background: rgba(200,80,20,0.28);
  color: #e8a87d; font-size: 9px; font-weight: 700;
  padding: 1px 6px; border-radius: 10px;
}

/* ── MAIN CONTENT ── */
.main-content { flex: 1; padding: 1.75rem; overflow: auto; }

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 1.5rem; }
.page-breadcrumb {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--t4); margin-bottom: 6px;
}
.page-breadcrumb span { color: var(--t3); }
.page-title {
  font-family: system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--t1); margin-bottom: 3px;
}
.page-subtitle { font-size: 12px; color: var(--t3); }

/* ── STAT CARDS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px; margin-bottom: 1.25rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--bdr2); }
.stat-value {
  font-family: system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size: 26px; font-weight: 800; line-height: 1;
  color: var(--t1);
}
.stat-value.green  { color: var(--g); }
.stat-value.amber  { color: var(--amber); }
.stat-value.blue   { color: var(--blue); }
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--t3); margin-top: 5px; }
.stat-sub   { font-size: 10px; color: var(--t4); margin-top: 2px; }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  margin-bottom: 1rem;
}
.card-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.card-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--t2);
}
.card-action { font-size: 11px; font-weight: 600; color: var(--g); cursor: pointer; }
.card-action:hover { color: var(--g2); }

/* ── PROGRESS RING ── */
.ring-container { position: relative; flex-shrink: 0; }
.ring-container svg { display: block; transform: rotate(-90deg); }
.ring-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring-pct {
  font-family: system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size: 32px; font-weight: 800;
  color: var(--g); line-height: 1;
}
.ring-lbl { font-size: 9px; color: var(--t4); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 3px; }

/* ── STAGE PIPELINE ── */
.pipeline {
  display: flex; gap: 2px;
  margin-bottom: 8px;
}
.pipe-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pipe-block {
  width: 100%; height: 30px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700;
  text-align: center; line-height: 1.2; padding: 2px;
}
.pipe-done   { background: var(--g);  color: #fff; }
.pipe-active { background: var(--g3); color: #fff; }
.pipe-todo   { background: var(--surf2); color: var(--t4); border: 1px solid var(--bdr); }
.pipe-num    { font-size: 9px; color: var(--t4); }

/* ── PROGRESS BAR ── */
.progress-bar-track {
  background: var(--surf2); border-radius: 8px;
  height: 8px; overflow: hidden;
  margin: 8px 0 4px;
}
.progress-bar-fill {
  height: 100%; border-radius: 8px;
  background: var(--g);
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* ── MILESTONE TIMELINE ── */
.milestone-list { display: flex; flex-direction: column; }
.milestone-item {
  display: flex; align-items: flex-start;
  gap: 10px; padding: 6px 0; position: relative;
}
.milestone-item:not(:last-child)::after {
  content: '';
  position: absolute; left: 10px; top: 22px;
  width: 1.5px; height: calc(100% - 4px);
  background: var(--bdr2);
}
.ms-dot {
  width: 21px; height: 21px; border-radius: 50%;
  flex-shrink: 0; display: flex;
  align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; z-index: 1;
  margin-top: 1px;
}
.ms-done   { background: var(--g); color: #fff; }
.ms-active { background: #fff; border: 2px solid var(--g); color: var(--g); }
.ms-todo   { background: var(--surf2); border: 1.5px solid var(--bdr2); }
.ms-name   { font-size: 12px; font-weight: 600; color: var(--t1); }
.ms-name.dim { color: var(--t3); font-weight: 400; }
.ms-date   { font-size: 10px; color: var(--t3); margin-top: 1px; }
.ms-active-pill {
  font-size: 9px; padding: 2px 7px; border-radius: 20px;
  background: var(--glight); color: #1a5c1a;
  border: 1px solid var(--gborder); font-weight: 600;
  display: inline-block; margin-top: 3px;
}
.ms-pct { font-size: 10px; font-weight: 700; color: var(--g); margin-left: auto; padding-top: 2px; flex-shrink: 0; }

/* ── PILLS / BADGES ── */
.pill {
  font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
  display: inline-flex; align-items: center;
  white-space: nowrap;
}
.pill-green  { background: var(--glight); color: #1a5c1a; border: 1px solid var(--gborder); }
.pill-amber  { background: var(--amber-bg); color: #855008; border: 1px solid var(--amber-bd); }
.pill-red    { background: var(--red-bg);   color: #8a1a10; border: 1px solid var(--red-bd); }
.pill-blue   { background: var(--blue-bg);  color: #0c4080; border: 1px solid var(--blue-bd); }
.pill-gray   { background: #f0f0ee; color: #3a3a3a; border: 1px solid #d8d8d4; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
  transition: var(--transition); text-decoration: none;
  white-space: nowrap;
}
.btn-primary   { background: var(--g);   color: #fff; }
.btn-primary:hover { background: var(--g2); color: #fff; }
.btn-secondary { background: transparent; color: var(--t2); border: 1px solid var(--bdr2); }
.btn-secondary:hover { background: var(--surf2); }
.btn-danger    { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-bd); }
.btn-sm { padding: 5px 11px; font-size: 11px; border-radius: var(--radius-sm); }
.btn-xs { padding: 3px 8px;  font-size: 10px; border-radius: 5px; }

/* ── FORMS ── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--t3); margin-bottom: 5px;
}
.form-control {
  width: 100%; padding: 9px 12px;
  background: var(--card); border: 1px solid var(--bdr2);
  border-radius: var(--radius-md); color: var(--t1);
  font-size: 13px; font-family: inherit; outline: none;
  transition: border 0.15s;
}
.form-control:focus { border-color: var(--g3); }
textarea.form-control { min-height: 90px; resize: vertical; }
select.form-control   { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; }
table.data-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.data-table th {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--t3);
  padding: 8px 12px; text-align: left;
  border-bottom: 1px solid var(--bdr2); white-space: nowrap;
}
.data-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--bdr);
  color: var(--t1); vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surf); }

/* ── DOCUMENT ROW ── */
.doc-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--bdr);
}
.doc-row:last-child { border-bottom: none; }
.doc-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--glight); border: 1px solid var(--gborder);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doc-name  { font-size: 13px; font-weight: 600; color: var(--t1); }
.doc-meta  { font-size: 10px; color: var(--t4); margin-top: 1px; }
.doc-new   { font-size: 8px; padding: 1px 5px; border-radius: 10px; background: var(--amber-bg); color: #855008; border: 1px solid var(--amber-bd); font-weight: 700; margin-left: 6px; vertical-align: middle; }

/* ── TICKET ITEM ── */
.ticket-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--bdr);
}
.ticket-item:last-child { border-bottom: none; }
.ticket-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ti-open     { background: var(--amber-bg); border: 1px solid var(--amber-bd); }
.ti-progress { background: var(--blue-bg);  border: 1px solid var(--blue-bd);  }
.ti-resolved { background: var(--glight);   border: 1px solid var(--gborder);  }
.ticket-ref  { font-size: 10px; color: var(--t4); font-family: monospace; margin-bottom: 2px; }
.ticket-subj { font-size: 13px; font-weight: 600; color: var(--t1); }
.ticket-meta { font-size: 11px; color: var(--t3); margin-top: 2px; }

/* ── ALERT / FLASH ── */
.alert {
  padding: 10px 14px; border-radius: var(--radius-md);
  font-size: 13px; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}
.alert-success { background: var(--glight); color: #1a5c1a; border: 1px solid var(--gborder); }
.alert-error   { background: var(--red-bg);  color: var(--red);  border: 1px solid var(--red-bd); }
.alert-warning { background: var(--amber-bg); color: #855008; border: 1px solid var(--amber-bd); }

/* ── WATI TAG ── */
.wati-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; padding: 5px 10px;
  border-radius: 20px; background: var(--glight);
  color: var(--g2); border: 1px solid var(--gborder);
}

/* ── UPDATE FEED ── */
.update-item { padding: 10px 0; border-bottom: 1px solid var(--bdr); }
.update-item:last-child { border-bottom: none; }
.update-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.update-dot    { width: 7px; height: 7px; border-radius: 50%; background: var(--g); flex-shrink: 0; }
.update-title  { font-size: 13px; font-weight: 600; color: var(--t1); }
.update-date   { font-size: 10px; color: var(--t4); margin-left: auto; }
.update-body   { font-size: 12px; color: var(--t2); line-height: 1.6; padding-left: 15px; }
.update-stage  { font-size: 9px; padding: 2px 7px; border-radius: 20px; background: var(--glight); color: #1a5c1a; border: 1px solid var(--gborder); font-weight: 700; margin-left: 15px; margin-top: 5px; display: inline-block; }

/* ── PHOTO GRID ── */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.photo-card { border: 1px solid var(--bdr); border-radius: var(--radius-md); overflow: hidden; background: var(--card); }
.photo-thumb { aspect-ratio: 4/3; background: var(--glight); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-info { padding: 7px 8px; }
.photo-caption { font-size: 11px; font-weight: 600; color: var(--t1); line-height: 1.3; }
.photo-date    { font-size: 9px; color: var(--t4); margin-top: 1px; }

/* ── TWO-COLUMN GRID LAYOUTS ── */
.grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3   { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.grid-r30 { display: grid; grid-template-columns: 1fr 300px; gap: 14px; }
.grid-l30 { display: grid; grid-template-columns: 300px 1fr; gap: 14px; }

/* ── AVATAR ── */
.avatar {
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700;
  flex-shrink: 0; text-transform: uppercase;
}
.av-sm { width: 32px; height: 32px; font-size: 11px; }
.av-md { width: 40px; height: 40px; font-size: 13px; }
.av-green  { background: var(--glight); color: var(--g2); border: 1px solid var(--gborder); }
.av-amber  { background: var(--amber-bg); color: #855008; border: 1px solid var(--amber-bd); }
.av-blue   { background: var(--blue-bg);  color: #0c4080;  border: 1px solid var(--blue-bd); }

/* ── LOGIN PAGE ── */
.login-page {
  min-height: 100vh; background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; position: relative; overflow: hidden;
}
.login-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45,122,45,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,122,45,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.login-bg-glow {
  position: absolute; top: -5%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 350px;
  background: radial-gradient(ellipse, rgba(45,122,45,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.login-card {
  background: rgba(12,19,12,0.97);
  border: 1px solid rgba(45,122,45,0.28);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  width: 100%; max-width: 400px;
  position: relative; z-index: 1;
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px; font-weight: 800;
  color: #e8f5e8; letter-spacing: -0.3px;
  margin-top: 0.75rem;
}
.login-brand em { color: var(--g4); font-style: normal; }
.login-tagline {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(168,203,168,0.35); margin-top: 5px;
}
.login-field { margin-bottom: 1rem; }
.login-field label {
  display: block; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(168,203,168,0.45); margin-bottom: 6px;
}
.login-field input {
  width: 100%; padding: 12px 14px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(45,122,45,0.2);
  border-radius: var(--radius-md); color: #e8f5e8;
  font-size: 14px; font-family: inherit; outline: none;
  transition: border 0.2s;
}
.login-field input:focus { border-color: var(--g3); }
.login-field input::placeholder { color: rgba(168,203,168,0.2); }
.login-error {
  background: rgba(192,40,26,0.15); color: #e88880;
  border: 1px solid rgba(192,40,26,0.3); border-radius: var(--radius-md);
  padding: 9px 12px; font-size: 12px; margin-bottom: 1rem;
}
.btn-login {
  width: 100%; padding: 13px;
  background: var(--g); border: none;
  border-radius: var(--radius-md); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.2s; margin-top: 0.25rem;
  letter-spacing: 0.02em;
}
.btn-login:hover { background: var(--g2); }

/* ── UTILITIES ── */
.flex      { display: flex; }
.flex-col  { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.mt-1   { margin-top: 0.5rem; }
.mt-2   { margin-top: 1rem; }
.mt-3   { margin-top: 1.5rem; }
.mb-1   { margin-bottom: 0.5rem; }
.mb-2   { margin-bottom: 1rem; }
.text-sm  { font-size: 11px; }
.text-xs  { font-size: 10px; }
.text-muted { color: var(--t3); }
.text-green { color: var(--g); }
.font-bold  { font-weight: 700; }
.w-full { width: 100%; }
.text-right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sidebar { width: 52px; padding: 1rem 0.3rem; }
  .sidebar-item span { display: none; }
  .sidebar-section { display: none; }
  .sidebar-badge { display: none; }
  .grid-r30, .grid-l30, .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .main-content { padding: 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}
