/* ============================================================
   ProjectApp Mobile — CSS
   Versión 1.0 | VectraSur Consultores
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:        #002C52;
  --blue:        #2A6E9E;
  --blue-light:  #4A8FBF;
  --success:     #3DAB8A;
  --danger:      #E53E3E;
  --warning:     #F59E0B;
  --text:        #1A2B3C;
  --text-muted:  #6B7A8D;
  --bg:          #F0F4F8;
  --surface:     #FFFFFF;
  --border:      #E2E8F0;
  --navy-grad:   linear-gradient(135deg, #002C52 0%, #1a4a70 100%);
  --bottom-h:    64px;
  --header-h:    68px;
  --radius:      12px;
  --shadow:      0 2px 12px rgba(0,44,82,.10);
  --shadow-lg:   0 8px 32px rgba(0,44,82,.18);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; }

/* ── Utilidades ─────────────────────────────────────────────── */
.hidden   { display: none !important; }
.flex     { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.center   { align-items: center; justify-content: center; }
.gap-1    { gap: .5rem; }
.gap-2    { gap: 1rem; }
.text-muted { color: var(--text-muted); font-size: .82rem; }
.text-sm    { font-size: .85rem; }
.fw-600     { font-weight: 600; }
.w-full     { width: 100%; }

/* ── Login View ─────────────────────────────────────────────── */
#login-view {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy-grad);
  padding: 2rem 1.5rem;
}
.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2.5rem;
}
.login-logo img { width: 106px; height: 106px; object-fit: contain; filter: brightness(0) invert(1); }
.login-logo h1  { color: #fff; font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; }
.login-logo p   { color: rgba(255,255,255,.65); font-size: .82rem; text-align: center; }

.login-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}
.login-card h2 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; text-align: center; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-muted); margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .04em; }
.form-group input,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus { outline: none; border-color: var(--blue); background: #fff; }

.btn-primary {
  width: 100%;
  padding: .85rem;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .2s, transform .1s;
  margin-top: .5rem;
}
.btn-primary:active { transform: scale(.98); background: #001f3d; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.login-error {
  background: #FFF5F5;
  color: var(--danger);
  border: 1px solid #FED7D7;
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .85rem;
  margin-top: .75rem;
  text-align: center;
}

/* ── App Shell ──────────────────────────────────────────────── */
#app-view {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────────── */
#app-header {
  background: var(--navy-grad);
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: var(--header-h);
  box-shadow: 0 2px 8px rgba(0,44,82,.25);
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}
.header-left { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; }
.header-logo { width: 34px; height: 34px; object-fit: contain; filter: brightness(0) invert(1); flex-shrink: 0; }
.header-titles { flex: 1; min-width: 0; }
.header-titles .ht-company  { font-size: .68rem; color: rgba(255,255,255,.65); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-titles .ht-project  { font-size: .9rem; color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.header-titles .ht-client   { font-size: .7rem; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-right { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.header-avatar {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .78rem; font-weight: 700;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.3);
  transition: background .2s;
}
.header-avatar:active { background: rgba(255,255,255,.28); }

/* Avatar dropdown */
.avatar-menu {
  position: absolute;
  top: calc(var(--header-h) - 2px);
  right: .75rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: .5rem 0;
  min-width: 180px;
  z-index: 200;
  border: 1px solid var(--border);
}
.avatar-menu-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem;
  font-size: .88rem;
  color: var(--text);
  width: 100%;
  text-align: left;
  transition: background .15s;
}
.avatar-menu-item:active { background: var(--bg); }
.avatar-menu-item.danger { color: var(--danger); }
.avatar-menu-divider { height: 1px; background: var(--border); margin: .25rem 0; }

/* ── Main Scroll Area ───────────────────────────────────────── */
#main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px));
}

/* ── Module Sections ────────────────────────────────────────── */
.module-view { padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.module-title {
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
  display: flex; align-items: center; gap: .5rem;
}
.module-title i { color: var(--blue); font-size: .95rem; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: .9rem; font-weight: 700; color: var(--navy); }
.card-body { padding: 1rem; }

/* ── Project List ───────────────────────────────────────────── */
.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  cursor: pointer;
  transition: box-shadow .15s, transform .1s;
  border-left: 4px solid var(--blue);
  position: relative;
}
.project-card:active { transform: scale(.985); box-shadow: var(--shadow-lg); }
.project-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg,var(--navy) 0%,var(--blue) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff; font-size: .95rem;
}
.project-card-body { flex: 1; min-width: 0; }
.project-card-name   { font-size: .95rem; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-card-client { font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }
.project-card-meta   { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.project-badge {
  font-size: .7rem; font-weight: 600; padding: .2rem .5rem;
  border-radius: 20px; white-space: nowrap;
}
.badge-active   { background: rgba(61,171,138,.12); color: var(--success); }
.badge-progress { background: rgba(42,110,158,.12); color: var(--blue); }
.badge-currency { background: rgba(0,44,82,.08); color: var(--navy); }
.project-arrow { color: var(--text-muted); align-self: center; font-size: .85rem; }
.project-company-logo {
  width: 28px; height: 28px; object-fit: contain; border-radius: 6px;
  border: 1px solid var(--border); flex-shrink: 0;
}

/* ── Search / Filter ────────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center; gap: .5rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .55rem .85rem;
  box-shadow: var(--shadow);
}
.search-bar i { color: var(--text-muted); font-size: .85rem; }
.search-bar input {
  flex: 1; border: none; background: none; font-size: .9rem;
  color: var(--text); outline: none;
}

/* ── KPI Grid ───────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.kpi-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .85rem .9rem;
  position: relative;
  min-width: 0;
}
.kpi-label { font-size: .68rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem; padding-right: 1.2rem; line-height: 1.3; }
.kpi-value { font-size: 1.35rem; font-weight: 800; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-sub   { font-size: .7rem; color: var(--text-muted); margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-card .info-btn {
  position: absolute; top: .6rem; right: .6rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(42,110,158,.1); color: var(--blue);
  font-size: .65rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Tooltip */
.has-tooltip { position: relative; display: inline-block; }
.tooltip-box {
  display: none;
  position: fixed;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: .55rem .8rem;
  font-size: .75rem;
  max-width: 220px;
  z-index: 9999;
  line-height: 1.4;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}
.tooltip-box.visible { display: block; }

/* ── Progress Bar ───────────────────────────────────────────── */
.progress-wrap { display: flex; align-items: center; gap: .6rem; }
.progress-bar  {
  flex: 1; height: 7px; background: var(--border);
  border-radius: 4px; overflow: hidden;
}
.progress-fill { height: 100%; border-radius: 4px; transition: width .4s ease; }
.progress-pct  { font-size: .78rem; font-weight: 700; min-width: 32px; text-align: right; }

/* ── Activity List (Reporte al Día) ─────────────────────────── */
.activity-item {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; margin-top: 4px;
}
.activity-body { flex: 1; min-width: 0; }
.activity-name { font-size: .88rem; font-weight: 600; color: var(--navy); }
.activity-meta { font-size: .74rem; color: var(--text-muted); margin-top: .15rem; }

/* ── Status Badge ───────────────────────────────────────────── */
.status-badge {
  display: inline-block; padding: .2rem .6rem;
  border-radius: 20px; font-size: .72rem; font-weight: 700;
  white-space: nowrap;
}
.st-pending    { background: rgba(107,122,141,.12); color: var(--text-muted); }
.st-progress   { background: rgba(42,110,158,.12);  color: var(--blue); }
.st-completed  { background: rgba(61,171,138,.12);  color: var(--success); }
.st-critical   { background: rgba(229,62,62,.1);    color: var(--danger); }

/* ── Tasks Table (Planificación) ────────────────────────────── */
.tasks-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.tasks-table {
  width: 100%; border-collapse: collapse; font-size: .78rem;
  white-space: nowrap;
}
.tasks-table thead th {
  background: var(--navy); color: #fff;
  padding: .55rem .7rem; text-align: left;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .04em;
  font-weight: 600; position: sticky; top: 0; z-index: 10;
}
.tasks-table tbody tr { border-bottom: 1px solid var(--border); }
.tasks-table tbody tr:last-child { border-bottom: none; }
.tasks-table tbody tr:nth-child(even) { background: rgba(240,244,248,.6); }
.tasks-table tbody td {
  padding: .55rem .7rem; color: var(--text);
  max-width: 160px; overflow: hidden; text-overflow: ellipsis;
}
.tasks-table td.task-name { max-width: 150px; font-weight: 600; color: var(--navy); white-space: normal; line-height: 1.3; }
.tasks-table td.critical-cell { color: var(--danger); font-weight: 700; }
.tasks-table td.text-center { text-align: center; }

/* ── Gantt (Planificación) ──────────────────────────────────── */
.gantt-container {
  overflow-x: auto; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gantt-svg { display: block; }

/* ── Plan Tabs ──────────────────────────────────────────────── */
.tab-bar {
  display: flex; gap: .35rem;
  background: var(--surface);
  border-radius: 10px;
  padding: .3rem;
  box-shadow: var(--shadow);
}
.tab-btn {
  flex: 1; padding: .55rem .5rem;
  border-radius: 8px; font-size: .8rem; font-weight: 600;
  color: var(--text-muted); text-align: center;
  transition: all .2s;
}
.tab-btn.active { background: var(--navy); color: #fff; }

/* ── Costs ──────────────────────────────────────────────────── */
.cost-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem 0; border-bottom: 1px solid var(--border);
  gap: .5rem;
}
.cost-row:last-child { border-bottom: none; }
.cost-left { flex: 1; min-width: 0; }
.cost-name { font-size: .88rem; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cost-cat  { font-size: .72rem; color: var(--text-muted); margin-top: .1rem; }
.cost-right { text-align: right; flex-shrink: 0; }
.cost-amount { font-size: .92rem; font-weight: 700; color: var(--navy); }
.cost-date   { font-size: .7rem; color: var(--text-muted); margin-top: .1rem; }
.cost-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }

/* ── Chart Container ────────────────────────────────────────── */
.chart-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}
.chart-title { font-size: .82rem; font-weight: 700; color: var(--navy); margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem; }
.chart-canvas-wrap { position: relative; width: 100%; }

/* ── Summary EVM Table ──────────────────────────────────────── */
.evm-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .65rem 0; border-bottom: 1px solid var(--border);
}
.evm-row:last-child { border-bottom: none; }
.evm-label { font-size: .82rem; color: var(--text); display: flex; align-items: center; gap: .4rem; }
.evm-val   { font-size: .88rem; font-weight: 700; }

/* ── Minutes ─────────────────────────────────────────────────── */
.minute-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .9rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  cursor: pointer;
}
.minute-left { flex: 1; min-width: 0; }
.minute-title  { font-size: .9rem; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minute-date   { font-size: .75rem; color: var(--text-muted); margin-top: .15rem; }
.minute-type   { font-size: .7rem; font-weight: 600; padding: .2rem .55rem; border-radius: 20px; background: rgba(42,110,158,.1); color: var(--blue); margin-top: .3rem; display: inline-block; }
.btn-download {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0;
  transition: background .2s;
}
.btn-download:active { background: var(--blue); }

/* ── Export View ─────────────────────────────────────────────── */
.export-btn {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  width: 100%;
  text-align: left;
  transition: box-shadow .15s, transform .1s;
  border-left: 4px solid var(--navy);
}
.export-btn:active { transform: scale(.985); box-shadow: var(--shadow-lg); }
.export-btn-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.export-btn-body { flex: 1; min-width: 0; }
.export-btn-title { font-size: .92rem; font-weight: 700; color: var(--navy); }
.export-btn-desc  { font-size: .75rem; color: var(--text-muted); margin-top: .15rem; }
.export-btn-arrow { color: var(--text-muted); font-size: .85rem; }

/* ── Bottom Navigation ──────────────────────────────────────── */
#bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  box-shadow: 0 -4px 20px rgba(0,44,82,.10);
  z-index: 200;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .2rem; cursor: pointer; padding: .4rem .2rem;
  transition: background .15s; border-radius: 8px; margin: .35rem .2rem 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-item.active { background: rgba(42,110,158,.1); }
.nav-item i { font-size: 1.15rem; color: var(--text-muted); transition: color .15s; }
.nav-item.active i { color: var(--blue); }
.nav-item span { font-size: .62rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; transition: color .15s; }
.nav-item.active span { color: var(--blue); }

/* ── More Bottom Sheet ──────────────────────────────────────── */
#sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 300;
  backdrop-filter: blur(2px);
}
#more-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 0 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 400;
  box-shadow: 0 -8px 40px rgba(0,44,82,.2);
  transform: translateY(0);
}
.sheet-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--border); margin: .75rem auto 1rem;
}
.sheet-title { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 .25rem .5rem; }
.sheet-item {
  display: flex; align-items: center; gap: .85rem;
  padding: .9rem .25rem; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s; border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.sheet-item:last-child { border-bottom: none; }
.sheet-item:active { background: var(--bg); }
.sheet-item-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.sheet-item-body { flex: 1; }
.sheet-item-label { font-size: .92rem; font-weight: 600; color: var(--navy); }
.sheet-item-desc  { font-size: .75rem; color: var(--text-muted); margin-top: .1rem; }
.sheet-item-arrow { color: var(--text-muted); font-size: .8rem; }

/* ── Loading / Empty States ─────────────────────────────────── */
.loading-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 3rem 1rem; gap: 1rem;
  color: var(--text-muted);
}
.loading-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 3rem 1rem; gap: .75rem;
  color: var(--text-muted); text-align: center;
}
.empty-state i { font-size: 2.5rem; opacity: .35; }
.empty-state p { font-size: .88rem; max-width: 240px; }

/* ── Toast ──────────────────────────────────────────────────── */
#m-toast {
  position: fixed; bottom: calc(var(--bottom-h) + 16px + env(safe-area-inset-bottom,0px));
  left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--navy); color: #fff;
  padding: .65rem 1.2rem; border-radius: 24px;
  font-size: .85rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity .25s, transform .25s;
  pointer-events: none; z-index: 9999; white-space: nowrap;
  max-width: calc(100vw - 2rem); text-align: center;
}
#m-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#m-toast.success { background: var(--success); }
#m-toast.error   { background: var(--danger); }
#m-toast.warning { background: var(--warning); color: var(--text); }

/* ── Section Dividers / Misc ────────────────────────────────── */
.section-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
  padding: .25rem 0; margin-top: .25rem;
}
.divider { height: 1px; background: var(--border); margin: .25rem 0; }
.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .6rem; border-radius: 20px;
  font-size: .72rem; font-weight: 600;
}
.chip-blue   { background: rgba(42,110,158,.1); color: var(--blue); }
.chip-green  { background: rgba(61,171,138,.1);  color: var(--success); }
.chip-red    { background: rgba(229,62,62,.1);   color: var(--danger); }
.chip-orange { background: rgba(245,158,11,.1);  color: var(--warning); }
.chip-gray   { background: rgba(107,122,141,.1); color: var(--text-muted); }

/* ── Back Button ─────────────────────────────────────────────── */
.btn-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600; color: var(--blue);
  padding: .35rem 0;
}
.btn-back:active { opacity: .7; }

/* ── Scrollbar (Webkit) ─────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,44,82,.2); border-radius: 2px; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeIn  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn .25s ease forwards; }
