:root {
  --cream: #FAF6EC;
  --paper: #FFFFFF;
  --ink: #2B2620;
  --brown: #8A7A62;
  --line: #DDD3BE;
  --rust: #A3402C;
  --sage: #5C7A52;
  --gold: #D9A94E;
  --forest-dark: #2E3A26;
  --forest: #47542F;
  --panel-blue: #3B5F7A;
  --icon-orange: #D97B3D;
  --icon-blue: #3B7A9E;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--rust); }

/* Login — real photo (images/agrivo-background.jpg) behind a frosted
   glass card, with a faint dark gradient over the top so the card stays
   readable regardless of how bright any part of the photo is. */
.login-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(20,15,5,0.08), rgba(20,15,5,0.22)),
    url('../images/agrivo-background.jpg') center center / cover no-repeat;
}

.login-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 252, 244, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 24px;
  padding: 40px 36px 30px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 25px 60px rgba(60,45,20,0.35);
  text-align: center;
}
.login-logo-row { display: flex; align-items: center; justify-content: center; }
.login-logo-img { max-width: 190px; width: 100%; height: auto; display: block; }
.login-tagline { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brown); margin: 8px 0 24px; }
.login-heading { font-family: "Playfair Display", Georgia, serif; font-size: 21px; font-weight: 700; color: var(--ink); margin: 0 0 20px; }

.login-field { text-align: left; margin-bottom: 14px; }
.login-field label { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--brown); margin-bottom: 6px; }
.login-input-wrap { position: relative; }
.login-input-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--brown); opacity: 0.75; pointer-events: none; }
.login-input-wrap input { width: 100%; padding: 11px 14px 11px 38px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; background: rgba(255,255,255,0.75); }
.login-input-wrap input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,169,78,0.25); }

.login-error { display: flex; align-items: center; gap: 8px; background: #FBE4E4; color: #B3453B; border: 1px solid #F2C6C2; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; margin: 2px 0 14px; text-align: left; }
.login-error svg { width: 14px; height: 14px; flex-shrink: 0; }

.login-submit { width: 100%; background: linear-gradient(180deg, #6B5330, #4A3A20); color: #fff; border: none; border-radius: 12px; padding: 13px 0; font-size: 14.5px; font-weight: 600; cursor: pointer; margin-top: 4px; letter-spacing: 0.3px; box-shadow: 0 8px 20px rgba(74,58,32,0.35); }
.login-submit:hover { filter: brightness(1.08); }

.login-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.login-remember { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--brown); }
.login-forgot { font-size: 11px; color: var(--brown); text-align: right; line-height: 1.4; max-width: 160px; }

.login-sparkle { position: absolute; bottom: 16px; right: 18px; width: 20px; height: 20px; color: var(--gold); opacity: 0.75; }

.login-demo-note { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line); font-family: monospace; font-size: 10px; color: var(--brown); line-height: 1.6; text-align: left; }

/* Header / nav — a slim status bar over a taller olive-green bar holding
   the logo, nav pills, and the signed-in user. */
.topbar { display: flex; justify-content: center; align-items: center; gap: 16px; background: var(--forest-dark); color: rgba(255,255,255,0.85); font-size: 11px; padding: 6px 20px; position: relative; }
.topbar-location { position: absolute; right: 20px; }
.site-header { display: flex; align-items: center; gap: 18px; background: var(--forest); padding: 12px 20px; flex-wrap: wrap; }
.site-header-bar { display: contents; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-logo { height: 30px; width: auto; display: block; }
.tagline { font-size: 11px; color: rgba(255,255,255,0.75); white-space: nowrap; }
.nav-toggle { display: none; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.3); color: #fff; border-radius: 8px; width: 38px; height: 38px; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.nav-toggle svg { width: 19px; height: 19px; }
.nav-toggle:hover { background: rgba(255,255,255,0.16); }
.site-nav-collapse { display: contents; }
.nav-pills { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; flex: 1; }
.nav-pill { text-decoration: none; color: rgba(255,255,255,0.85); font-size: 12.5px; padding: 7px 11px; border-radius: 20px; white-space: nowrap; }
.nav-pill:hover { background: rgba(255,255,255,0.1); }
.nav-pill.active { background: var(--gold); color: var(--ink); font-weight: 600; }
.nav-badge { background: var(--rust); color: #fff; font-size: 10px; border-radius: 20px; padding: 1px 6px; margin-left: 3px; }
.nav-status-badge { font-size: 10.5px; font-weight: 700; border-radius: 20px; padding: 4px 10px; margin-left: 4px; white-space: nowrap; }
.nav-status-badge.good { background: #E4EEE0; color: #3D5C36; }
.nav-status-badge.warn { background: #F1ECDF; color: var(--brown); }
.user-chip { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.user-chip-text { font-size: 12px; color: rgba(255,255,255,0.9); white-space: nowrap; }
.role { text-transform: capitalize; color: rgba(255,255,255,0.65); }
.logout-link { font-size: 12px; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.4); border-radius: 8px; padding: 6px 11px; white-space: nowrap; }
.logout-link:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 900px) {
  .topbar { flex-direction: column; gap: 2px; padding: 8px 16px; }
  .topbar-location { position: static; }

  /* Collapse the nav into a hamburger-triggered dropdown instead of
     letting the pills wrap into a ragged multi-line mess. */
  .site-header { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px; }
  .site-header-bar { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .nav-toggle { display: flex; }
  .site-nav-collapse { display: none; width: 100%; }
  .site-nav-collapse.open { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.15); }
  .nav-pills { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-pill { width: 100%; padding: 12px 14px; border-radius: 8px; display: flex; align-items: center; }
  .nav-status-badge { align-self: flex-start; margin: 4px 0 4px 14px; }
  .user-chip { width: 100%; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.15); }
  .user-chip-text { flex: 1; white-space: normal; }
}

/* Layout */
.main { max-width: 680px; margin: 0 auto; padding: 20px 20px 60px; }
.main-wide { max-width: 1120px; }
h1 { font-size: 21px; margin: 2px 0 4px; }
.eyebrow { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--brown); margin: 0; }
.meta { font-family: monospace; font-size: 11px; color: var(--brown); margin: 0 0 18px; }

/* Dashboard */
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr) minmax(230px, 280px); grid-template-rows: auto auto; gap: 14px; margin: 18px 0 20px; align-items: stretch; }
.dash-card { display: block; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: inherit; }
.dash-card-link { text-decoration: none; color: inherit; display: block; }
.dash-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 10px; }
.dash-icon svg { width: 18px; height: 18px; }
.dash-icon-chicken { background: var(--icon-orange); }
.dash-icon-rabbit { background: var(--brown); }
.dash-icon-fish { background: var(--icon-blue); }
.dash-icon-clock { background: #6B5330; }
.dash-icon-weather { background: var(--gold); }
.dash-icon-triage { background: var(--sage); }
.dash-card-title { font-weight: 600; font-size: 14.5px; }
.dash-card-meta { font-size: 11px; color: var(--brown); margin-top: 4px; }
.dash-status { font-size: 11px; font-weight: 600; color: var(--brown); margin-top: 10px; }
.dash-progress-track { height: 6px; border-radius: 4px; background: var(--cream); margin-top: 6px; overflow: hidden; }
.dash-progress-fill { height: 100%; background: var(--gold); border-radius: 4px; }
.dash-badge { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; padding: 3px 9px; border-radius: 20px; margin-top: 10px; }
.dash-badge-high { background: #FBE4E4; color: var(--rust); }
.dash-inline-btn { display: block; width: 100%; text-align: center; margin-top: 12px; background: var(--paper); border: 1px solid var(--ink); color: var(--ink); border-radius: 8px; padding: 8px 0; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.dash-inline-btn-link { box-sizing: border-box; }

.dash-side { grid-column: 4; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 14px; }
.panel { border-radius: 14px; padding: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.panel-header { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #fff; margin: -16px -16px 12px; padding: 12px 16px; }
.panel-critical .panel-header { background: var(--rust); }
.panel-critical.panel-clear .panel-header { background: var(--sage); }
.panel-oversight .panel-header { background: var(--panel-blue); }
.panel-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.panel-row:last-of-type { border-bottom: none; }
.panel-link { text-decoration: none; color: var(--ink); }
.panel-link:hover { color: var(--rust); }
.panel-warn { flex-shrink: 0; color: var(--rust); }
.panel-footer { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.panel-footer-good { color: var(--sage); }
.panel-footer-bad { color: var(--rust); }

.disclaimer-wide { text-align: center; }

@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { grid-column: 1; grid-row: auto; }
}

/* Checklist */
.section-block { margin-top: 10px; }
.section-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--rust); font-weight: 600; margin: 18px 0 6px; }
.task-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); gap: 10px; }
.task-label { flex: 1; font-size: 13.5px; }
.task-attr { font-family: monospace; font-size: 10px; color: var(--brown); margin-top: 2px; }
.slot-buttons { display: flex; gap: 4px; }
.inline-form { display: inline; }
.slot-btn { font-family: monospace; font-size: 10px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--brown); border-radius: 6px; padding: 4px 7px; min-width: 30px; cursor: pointer; }
.slot-btn.done { background: var(--sage); color: #fff; border-color: var(--sage); font-size: 12px; }
.slot-btn:disabled { cursor: default; opacity: 0.7; }
.flag-btn { background: none; border: none; color: var(--rust); cursor: pointer; font-size: 14px; padding: 4px; border-radius: 6px; }
.flag-btn.flagged { background: var(--rust); color: #fff; }
.lock-btn { width: 100%; margin-top: 18px; background: linear-gradient(180deg, #C97C3D, #A3402C); color: #fff; border: none; border-radius: 10px; padding: 11px 0; font-size: 13.5px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px rgba(163,64,44,0.3); }
.lock-btn:hover:not(:disabled) { filter: brightness(1.05); }
.lock-btn:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.disclaimer { font-family: monospace; font-size: 11px; color: var(--brown); background: #F1ECDF; border-radius: 8px; padding: 10px; margin-top: 16px; line-height: 1.6; }

/* Inventory */
.category-tabs { display: flex; gap: 8px; margin: 14px 0; }
.category-tab { text-decoration: none; font-size: 12.5px; font-weight: 500; color: var(--brown); background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.category-tab.active { color: #fff; background: var(--forest); border-color: var(--forest); }
.inv-list { display: flex; flex-direction: column; gap: 8px; }
.inv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.inv-row.low { border-color: #E9C9BC; background: #FBEFEA; }
.low-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--rust); background: #FBE4D4; border: 1px solid #F0C8A8; border-radius: 20px; padding: 2px 8px; margin-bottom: 5px; }
.inv-info { flex: 1; min-width: 0; }
.inv-name { font-weight: 600; font-size: 14.5px; }
.inv-meta { font-family: monospace; font-size: 11px; color: var(--brown); margin-top: 4px; }
.qty-controls { display: flex; align-items: center; gap: 6px; }
.qty-btn { background: var(--cream); border: 1px solid var(--line); border-radius: 50%; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; color: var(--ink); line-height: 1; }
.qty-btn:hover { background: var(--line); }
.qty-value { font-family: monospace; font-size: 14px; min-width: 60px; text-align: center; }
.remove-btn { background: #FBE4E4; border: 1px solid #F0C0BC; border-radius: 50%; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; color: var(--rust); line-height: 1; }
.remove-btn:hover { background: #F5CFCB; }
.add-card { background: var(--paper); border: 1px dashed var(--line); border-radius: 14px; padding: 14px; margin-top: 18px; }
.form-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.form-field { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--brown); flex: 1; min-width: 140px; }
.form-field input, .form-field select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; }
.row-actions { display: flex; align-items: center; gap: 10px; }

/* Financial */
.fin-summary { display: flex; gap: 10px; margin: 14px 0; }
.fin-card { flex: 1; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.fin-card-income { border-left: 4px solid var(--sage); }
.fin-card-expense { border-left: 4px solid var(--rust); }
.fin-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fin-card-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--brown); }
.fin-badge { font-size: 9.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.fin-badge-good { background: #E4EEE0; color: var(--sage); }
.fin-badge-bad { background: #FBE4E4; color: var(--rust); }
.fin-card-link { display: block; margin-top: 8px; font-size: 11px; font-weight: 600; color: var(--brown); text-decoration: none; }
.fin-card-link:hover { color: var(--rust); }
.fin-amount { font-size: 20px; font-weight: 700; margin-top: 6px; }
.amt-income { color: var(--sage); font-family: monospace; font-weight: 600; }
.amt-expense { color: var(--rust); font-family: monospace; font-weight: 600; }
.icon-input { position: relative; display: flex; align-items: center; }
.icon-input svg { position: absolute; left: 9px; width: 14px; height: 14px; color: var(--brown); opacity: 0.65; pointer-events: none; }
.icon-input-text { position: absolute; left: 10px; font-size: 13px; font-weight: 600; color: var(--brown); opacity: 0.65; pointer-events: none; }
.icon-input input, .icon-input select { width: 100%; padding-left: 28px; }
.txn-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.txn-icon.income { background: #E4EEE0; }
.txn-icon.expense { background: #F1ECDF; }

/* Maintenance */
.eq-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; background: var(--cream); }
.inv-row.low .eq-icon { background: #FBD9D4; }

/* Textareas (aquaculture observations, etc.) */
.form-field textarea { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; resize: vertical; min-height: 50px; }

/* Aquaculture readings table */
.aqua-table { display: flex; flex-direction: column; }
.aqua-row { display: grid; grid-template-columns: 110px 1fr 1fr 1fr 108px 1.4fr; gap: 6px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.aqua-row.head { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.3px; color: var(--brown); font-weight: 600; background: #EDE7D3; border-radius: 6px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.aqua-row.fail { background: #FBEFEA; border-radius: 8px; padding-left: 4px; }
.aqua-label { font-size: 12.5px; font-weight: 600; }
.aqua-row input[type="text"], .aqua-row select { width: 100%; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-family: inherit; }
.pf-cell { display: flex; align-items: center; gap: 4px; }
.pf-select { font-weight: 600; text-align: center; cursor: pointer; }
.pf-select.pf-pass { background: var(--sage); color: #fff; border-color: var(--sage); }
.pf-select.pf-fail { background: var(--rust); color: #fff; border-color: var(--rust); }
.pf-warn { color: var(--rust); font-size: 13px; flex-shrink: 0; }

/* Section cards (Aquaculture Tank/Readings/Observations groups) */
.section-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin: 14px 0; overflow: hidden; }
.section-card-header { background: #EFE6CE; color: var(--ink); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.section-card-body { padding: 14px; }

/* Reusable "last saved" success banner */
.save-banner { display: flex; align-items: center; gap: 8px; background: #E4EEE0; color: #3D5C36; border: 1px solid #C9DCC1; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; margin: 10px 0; }
.save-banner-icon { background: var(--sage); color: #fff; border-radius: 50%; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }

/* Inline completion progress (reuses .dash-progress-track/.dash-progress-fill) */
.meta-progress { font-size: 11.5px; font-weight: 600; color: var(--brown); margin: 4px 0 4px; }
.meta-progress .dash-progress-track { margin-top: 5px; max-width: 260px; }

.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-row .lock-btn { margin-top: 0; flex: 1; }
.btn-secondary { background: var(--sage); box-shadow: 0 6px 16px rgba(92,122,82,0.3); }

/* Time clock */
.clock-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-align: center; margin: 14px 0 20px; }
.clock-status { font-size: 13.5px; color: var(--brown); margin-bottom: 14px; }
.clock-btn { background: var(--ink); color: #fff; border: none; border-radius: 10px; padding: 13px 32px; font-size: 15px; font-weight: 600; cursor: pointer; }
.clock-btn.out { background: var(--rust); }
.gps-tag { display: inline-block; font-family: monospace; font-size: 10px; padding: 2px 7px; border-radius: 20px; margin-left: 6px; }
.gps-tag.verified { background: #E4EEE0; color: var(--sage); }
.gps-tag.simulated { background: #F1ECDF; color: var(--brown); }
.date-pill { display: inline-block; font-family: monospace; font-size: 10px; padding: 2px 9px; border-radius: 20px; background: var(--cream); border: 1px solid var(--line); color: var(--brown); }
.clock-card-row { display: flex; align-items: center; gap: 22px; text-align: left; flex-wrap: wrap; }
.clock-seg { display: flex; flex-direction: column; gap: 5px; }
.clock-seg-label { font-size: 11px; font-weight: 600; color: var(--brown); display: flex; align-items: center; gap: 5px; }
.clock-seg-label svg { width: 13px; height: 13px; opacity: 0.7; }
.clock-seg-value { font-size: 18px; font-weight: 700; color: var(--ink); }
.clock-seg-sub { font-size: 12.5px; font-weight: 600; color: var(--brown); }
.clock-elapsed { color: var(--rust); display: flex; align-items: center; gap: 7px; }
.clock-elapsed svg { width: 15px; height: 15px; opacity: 0.55; }
.clock-divider { width: 1px; align-self: stretch; background: var(--line); }
.clock-card-row form { margin-left: auto; }
.time-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; background: var(--cream); }
.time-icon.good { background: #E4EEE0; }

/* Weather */
.weather-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 14px 0 20px; }
.weather-card-header { display: flex; justify-content: space-between; background: #EFE6CE; color: var(--ink); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.weather-scene { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; background: linear-gradient(180deg, #E4EDF2, #F4F0E4); flex-wrap: wrap; }
.weather-scene-icon { font-size: 64px; line-height: 1; }
.weather-temp-block { text-align: right; }
.weather-temp-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--brown); }
.weather-temp-value { font-size: 38px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.weather-temp-sub { font-size: 13px; color: var(--brown); }
.weather-temp-updated { font-size: 10.5px; color: var(--brown); opacity: 0.8; margin-top: 4px; }
.weather-chips { display: flex; gap: 10px; padding: 14px; flex-wrap: wrap; }
.weather-chip { flex: 1; min-width: 150px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.weather-chip-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.weather-chip-sub { font-size: 11px; color: var(--brown); margin-top: 2px; }
.weather-chip-plain { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--ink); text-align: center; }
.weather-hi { font-size: 15px; font-weight: 700; color: var(--ink); }
.weather-lo { font-size: 13px; color: var(--brown); margin-right: 6px; }
.rain-pill { font-family: monospace; font-size: 10px; padding: 2px 8px; border-radius: 20px; background: #E4EEF5; color: var(--icon-blue); }

/* AI Triage */
.triage-grid { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-top: 14px; }
.triage-side { flex: 1 1 260px; }
.triage-main { flex: 2 1 380px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.info-card-header { background: var(--brown); color: #fff; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 14px; }
.info-card-body { padding: 14px; font-size: 12.5px; color: var(--ink); line-height: 1.6; }
.triage-card-header { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.triage-card-icon { font-size: 16px; }
.triage-observe-field { margin: 10px 0; }
textarea.triage-textarea { min-height: 110px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; resize: vertical; }
.btn-clear { background: var(--cream); color: var(--brown); border: 1px solid var(--line); border-radius: 10px; padding: 0 20px; font-size: 13.5px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.btn-clear:hover { background: var(--line); }
.btn-row .btn-clear { flex: 0 0 auto; }

/* Reports */
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 20px; }
.report-grid-full { grid-column: 1 / -1; }
.section-card-header-blue { background: var(--panel-blue); color: #fff; }
.report-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.report-row:last-child { border-bottom: none; }
.report-row.warn-row { background: #FBEFEA; border-radius: 8px; padding: 10px; margin: 2px 0; }
.report-row-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; background: var(--cream); }
.report-row-body { flex: 1; min-width: 0; }
.report-row-title { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.report-row-meta { font-size: 11px; color: var(--brown); margin-top: 2px; }
.report-row-warn { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--rust); background: #FBE4D4; border: 1px solid #F0C8A8; border-radius: 20px; padding: 2px 8px; }
.report-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.report-table th { text-align: left; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--brown); background: var(--cream); padding: 9px 14px; border-bottom: 1px solid var(--line); }
.report-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.report-table tr:last-child td { border-bottom: none; }
.report-table-empty { text-align: center; color: var(--brown); font-family: monospace; font-size: 12px; padding: 16px; }
@media (max-width: 900px) {
  .report-grid { grid-template-columns: 1fr; }
}

/* Audit */
.audit-list { padding: 4px 14px; }
.audit-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.audit-row:last-child { border-bottom: none; }
.audit-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; background: var(--cream); }
.audit-icon.neutral { background: var(--cream); }
.audit-icon.flag { background: #FBE4E4; }
.audit-icon.income { background: #E4EEE0; }
.audit-icon.expense { background: #F1ECDF; }
.audit-row-text { flex: 1; min-width: 0; font-size: 13px; color: var(--ink); }
.audit-row-meta { color: var(--brown); font-weight: 400; }
.audit-amount { font-family: monospace; font-weight: 700; font-size: 13px; white-space: nowrap; }
.audit-view-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); color: var(--brown); text-decoration: none; font-size: 12px; flex-shrink: 0; }
.audit-view-btn:hover { background: var(--line); }

/* Admin */
.admin-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; margin-top: 14px; }
.user-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.user-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar-lg { width: 42px; height: 42px; font-size: 14px; }
.user-card-headtext { flex: 1; min-width: 0; }
.user-card-name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.btn-save { background: var(--sage); color: #fff; border: none; border-radius: 8px; padding: 9px 20px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-save:hover { filter: brightness(1.05); }
.btn-delete { background: #FBE4E4; color: var(--rust); border: 1px solid #F0C0BC; border-radius: 8px; padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-delete:hover { background: #F5CFCB; }
.resolve-btn { background: var(--sage); color: #fff; border: none; border-radius: 8px; padding: 7px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.resolve-btn:hover { filter: brightness(1.05); }
.triage-card-icon-svg { width: 17px; height: 17px; flex-shrink: 0; }
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
}

/* Notification preferences */
.notif-channels { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.notif-channel { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.notif-channel input { width: 16px; height: 16px; accent-color: var(--rust); }
.notif-soon { font-weight: 400; font-size: 11px; color: var(--brown); }
.notif-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 8px 0 18px; }
.notif-cat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; cursor: pointer; }
.notif-cat input { width: 16px; height: 16px; accent-color: var(--rust); }

/* Audit log tags */
.tag { display: inline-block; font-family: monospace; font-size: 10px; padding: 2px 7px; border-radius: 20px; margin-left: 4px; vertical-align: middle; }
.tag-lock { background: #E4EEE0; color: var(--sage); }
.tag-flag { background: #FBEFEA; color: var(--rust); }
.tag-neutral { background: #F1ECDF; color: var(--brown); }
