/* Same black/red brand + layout language as the original Apps Script app's PIM.html,
   carried over so this doesn't look or feel like a different product mid-migration. */
:root {
  --primary: #b91c1c;
  --primary-dark: #7f1d1d;
  --black: #1a1a1a;
  --border: #ddd2d2;
  --bg: #f7f5f5;
  --text: #1f1a1a;
  --muted: #7a6e6e;
  --good: #1f7a3d;
  --good-bg: #d4edda;
  --stall-bg: #fff3cd;
  --stall-text: #8a6300;
  --bad: #b91c1c;
  --bad-bg: #f8d7da;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.5; background: var(--bg); color: var(--text);
}

/* Branding + nav strip, kept together and pinned to the top of the viewport while the
   page scrolls - matters most on a phone, where a long PIM/Submission Log/compliance list
   would otherwise scroll the only way back to another page clean out of view. Restores a
   real feature the original Apps Script app had (Dashboard.html/Monitoring.html/PIM.html
   all did this) that didn't make it into this port until now. */
.page-header-sticky { position: sticky; top: 0; z-index: 30; }

.topbar {
  background: var(--black); color: #fff; text-align: center; padding: 14px 12px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.3px;
}
.topbar .accent { color: var(--primary); }

/* A single horizontally-scrolling row of pill links, not plain underlined text - the
   class the HTML always expected but that never actually had a rule defined for it. On a
   phone this scrolls sideways with a thumb swipe instead of wrapping onto a second,
   cramped line. */
.quick-nav {
  display: flex; gap: 8px; padding: 10px 14px; background: #2b2b2b;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.quick-nav::-webkit-scrollbar { display: none; }
.quick-nav a {
  flex-shrink: 0; padding: 8px 16px; border-radius: 18px; font-size: 12.5px; font-weight: 700;
  text-decoration: none; color: #fff; background: rgba(255,255,255,0.14); white-space: nowrap;
  transition: background 0.15s ease;
}
.quick-nav a:active { background: rgba(255,255,255,0.26); }
.quick-nav a.active { background: var(--primary); }

.wrap { max-width: 480px; margin: 0 auto; padding: 22px 16px 60px; }
@media (min-width: 700px) { .wrap { max-width: 1100px; } }

h1 { font-size: 21px; font-weight: 800; margin: 0 0 4px; color: var(--black); letter-spacing: -0.2px; }
.subtitle { font-size: 14px; color: var(--muted); margin: 0 0 24px; }

.field { margin-bottom: 18px; position: relative; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.1px; }
.field input, .field select {
  /* 16px, not smaller - anything under that makes iOS Safari zoom in on focus, which on a
     phone (this app's primary audience) is disorienting every time someone taps a field. */
  width: 100%; padding: 13px 14px; font-size: 16px; border: 1.5px solid var(--border);
  border-radius: 10px; background: #fff; color: var(--text); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(185,28,28,0.15); }
.field input[readonly] { background: #f0ebeb; color: var(--muted); font-style: italic; }
.field.checkbox-field {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px;
  border: 1.5px solid var(--border); border-radius: 10px; background: #fff;
}
.field.checkbox-field label { margin-bottom: 0; font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; order: 2; }
.field.checkbox-field input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.hint-only { margin-top: -8px; }

/* ---- Search / list ---- */
.list-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.search-field { flex: 1; min-width: 180px; margin: 0; }
.add-btn {
  flex-shrink: 0; padding: 0 18px; font-size: 14px; font-weight: 700;
  background: var(--primary); color: #fff; border: none; border-radius: 10px; cursor: pointer;
  transition: background 0.15s ease;
}
.add-btn:active { background: var(--primary-dark); }
.table-wrap { border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; overflow-y: visible; background: #fff; -webkit-overflow-scrolling: touch; }
table.project-table { border-collapse: collapse; width: max-content; min-width: 100%; table-layout: auto; }
table.project-table th {
  position: sticky; top: 0; background: var(--black); color: #fff; text-align: left;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
  padding: 8px 12px; white-space: nowrap; z-index: 1;
}
table.project-table td {
  height: 28px; padding: 6px 12px; font-size: 12.5px; line-height: 1.2;
  border-top: 1px solid var(--border); vertical-align: middle; white-space: nowrap;
}
table.project-table tr.data-row { cursor: pointer; }
table.project-table tr.data-row:active td:not(.col-sticky) { background: #faf5f5; }
table.project-table .col-sticky { position: sticky; left: 0; z-index: 1; background: #fff; border-left: 4px solid var(--primary); }
table.project-table th.col-sticky { z-index: 2; }
.cell-code { font-weight: 800; color: var(--black); }
.cell-muted { color: var(--muted); }
.cell-good { color: var(--good); font-weight: 700; }
.results-count { font-size: 12px; color: var(--muted); margin: -6px 0 12px; }
.empty-state { text-align: center; color: var(--muted); font-size: 14px; padding: 40px 10px; }

/* ---- Detail / edit ---- */
.back-btn { display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--primary); font-size: 14px; font-weight: 700; padding: 6px 0 12px; cursor: pointer; }
.section-title { font-size: 14px; font-weight: 800; color: var(--primary); margin: 22px 0 10px; text-transform: uppercase; letter-spacing: 0.4px; }
.section-title:first-of-type { margin-top: 4px; }
.save-btn, .submit-btn {
  width: 100%; padding: 15px; font-size: 16px; font-weight: 700; background: var(--primary);
  color: #fff; border: none; border-radius: 10px; cursor: pointer; margin-top: 10px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.save-btn:active, .submit-btn:active { background: var(--primary-dark, #7f1d1d); transform: scale(0.99); }
.save-btn:disabled, .submit-btn:disabled { background: #d9b2b2; cursor: not-allowed; transform: none; }
.save-status { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; text-align: center; display: none; }
.save-status.show { display: block; }
.save-status.success { background: #d4edda; color: var(--good); }
.save-status.error { background: #f8d7da; color: var(--primary); }
@media (min-width: 700px) {
  #formFields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: start; }
  #formFields .section-title { grid-column: 1 / -1; }
  #detailView .save-btn, #detailView .save-status { max-width: 480px; }
}

/* ---- Accomplishment Dashboard (Phase 2) ---- */
.login-gate .wrap { padding-top: 60px; }
.login-gate h1 { font-size: 22px; margin-bottom: 4px; }
.login-gate .subtitle { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.login-gate input {
  width: 100%; padding: 15px; font-size: 20px; letter-spacing: 3px; text-align: center;
  border: 1.5px solid var(--border); border-radius: 10px;
}
.login-gate input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(185,28,28,0.15); }
.login-btn {
  width: 100%; padding: 15px; font-size: 16px; font-weight: 700; background: var(--primary);
  color: #fff; border: none; border-radius: 10px; cursor: pointer; transition: background 0.15s ease;
}
.login-btn:active { background: var(--primary-dark); }
.login-btn:disabled { background: #d9b2b2; cursor: not-allowed; }
.login-error { color: var(--bad); font-size: 13px; margin-top: 10px; text-align: center; display: none; }
.login-error.show { display: block; }

.header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; gap: 10px; }
.header-row h1 { margin: 0; }
.refresh-btn {
  border: 1.5px solid var(--black); background: #fff; color: var(--black); font-size: 13px;
  font-weight: 700; padding: 9px 16px; border-radius: 20px; cursor: pointer; flex-shrink: 0;
  transition: background 0.15s ease;
}
.refresh-btn:active { background: #ececec; }
.refresh-btn:disabled { opacity: 0.5; }
.updated-at { font-size: 12px; color: var(--muted); margin: 0 0 18px; }

.viewer-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; gap: 6px; }
.logout-link { color: var(--primary); font-weight: 700; text-decoration: none; cursor: pointer; }
.change-passcode-panel { background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.change-passcode-panel label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.change-passcode-panel input { width: 100%; padding: 13px 14px; font-size: 16px; border: 1.5px solid var(--border); border-radius: 10px; }
.change-passcode-panel input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(185,28,28,0.15); }
.change-passcode-actions { display: flex; gap: 8px; margin-top: 12px; }
.change-passcode-actions .login-btn { flex: 1; }
.cancel-btn {
  flex: 1; padding: 13px; font-size: 14px; font-weight: 700; background: #fff; color: var(--black);
  border: 1.5px solid var(--black); border-radius: 10px; cursor: pointer; transition: background 0.15s ease;
}
.cancel-btn:active { background: #ececec; }
.passcode-success { color: var(--good); font-size: 13px; margin-top: 10px; text-align: center; display: none; }
.passcode-success.show { display: block; }

.total-amount-card { background: var(--black); border-radius: 12px; padding: 16px 14px; text-align: center; margin-bottom: 14px; }
.total-amount-label { color: #d9c9c9; font-size: 12px; font-weight: 600; letter-spacing: 0.3px; margin-bottom: 4px; }
.total-amount-value { color: #fff; font-size: 26px; font-weight: 800; }
.total-amount-period { color: #d9c9c9; font-size: 11px; margin-top: 4px; }
.total-amount-breakdown {
  display: flex; justify-content: center; gap: 22px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.breakdown-item { text-align: center; }
.total-amount-breakdown .breakdown-value { color: #fff; font-size: 14px; font-weight: 700; }
.total-amount-breakdown .breakdown-value.off { color: #e9b64a; }
.total-amount-breakdown .breakdown-label { color: #d9c9c9; font-size: 10px; margin-top: 2px; }

.summary-row { display: flex; gap: 8px; margin-bottom: 22px; }
.summary-card { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 10px; text-align: center; }
.summary-card .value { font-size: 22px; font-weight: 800; color: var(--black); }
.summary-card .label { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.3; }

.view-by-field { margin-bottom: 16px; }
.view-by-field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.view-by-field select {
  width: 100%; padding: 11px 12px; font-size: 15px; font-weight: 600; border: 1px solid var(--black);
  border-radius: 8px; background: #fff; color: var(--black);
}
.search-field.hidden { display: none; }

.group-card {
  background: #fff; border: 1px solid var(--border); border-left: 6px solid var(--primary);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer;
}
.group-card:active { background: #faf5f5; }
.drilldown-heading { font-size: 17px; font-weight: 800; color: var(--black); margin-bottom: 10px; }
.group-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.group-name { font-weight: 800; font-size: 15px; color: var(--black); }
.group-avg { font-weight: 800; font-size: 15px; padding: 2px 10px; border-radius: 12px; }
.group-avg.good { background: var(--good-bg); color: var(--good); }
.group-avg.stall { background: var(--stall-bg); color: var(--stall-text); }
.group-avg.bad { background: var(--bad-bg); color: var(--bad); }
.group-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.group-amount { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 13px; font-weight: 700; color: var(--black); }

.project-card { background: #fff; border: 1px solid var(--border); border-left: 6px solid var(--muted); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.project-card.good { border-left-color: var(--good); }
.project-card.stall { border-left-color: var(--stall-text); }
.project-card.bad { border-left-color: var(--bad); }
.project-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.project-id { font-weight: 800; font-size: 15px; color: var(--black); }
.project-name { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.project-week { font-weight: 800; font-size: 15px; padding: 2px 10px; border-radius: 12px; }
.project-week.good { background: var(--good-bg); color: var(--good); }
.project-week.stall { background: var(--stall-bg); color: var(--stall-text); }
.project-week.bad { background: var(--bad-bg); color: var(--bad); }

.progress-track { background: #eee0e0; border-radius: 6px; height: 8px; overflow: hidden; margin: 8px 0 6px; }
.progress-fill { height: 100%; background: var(--primary); }
.project-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.project-plan { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.slippage-badge { font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.slippage-badge.good { background: var(--good-bg); color: var(--good); }
.slippage-badge.stall { background: var(--stall-bg); color: var(--stall-text); }
.slippage-badge.bad { background: var(--bad-bg); color: var(--bad); }
.project-amount { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 13px; font-weight: 700; color: var(--black); }

/* ---- Project Monitoring Dashboard (Phase 3) ---- */
:root {
  --c-ongoing: #1f7a3d; --c-completed: #1a56db; --c-suspended: #c2660b;
  --c-terminated: #b91c1c; --c-notstarted: #6b7280; --c-unclassified: #c9c9c9;
}
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(6, 1fr); } }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 8px; text-align: center; }
.stat-card .value { font-size: 22px; font-weight: 800; }
.stat-card .label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-top: 3px; line-height: 1.3; }

.panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.panel-title { font-size: 14px; font-weight: 800; color: var(--black); margin: 0 0 14px; }

.donut-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.legend { flex: 1; min-width: 160px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-count { font-weight: 700; margin-left: auto; }

.bar-row { display: grid; grid-template-columns: 50px 1fr 70px; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; }
.bar-track { background: #eee0e0; border-radius: 5px; height: 16px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); border-radius: 5px; }
.bar-value { text-align: right; color: var(--muted); }

.callout-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .callout-grid { grid-template-columns: repeat(3, 1fr); } }
.callout { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.callout .title { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.callout .big-value { font-size: 26px; font-weight: 800; }
.callout .sub-row { display: flex; justify-content: space-between; font-size: 13px; margin-top: 6px; }

.compliance-summary-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.compliance-chip { flex: 1; min-width: 90px; text-align: center; padding: 10px 6px; border-radius: 8px; border: 1px solid var(--border); }
.compliance-chip .value { font-size: 20px; font-weight: 800; }
.compliance-chip .label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.compliance-chip.ontime { background: var(--good-bg); }
.compliance-chip.ontime .value { color: var(--good); }
.compliance-chip.late { background: var(--stall-bg); }
.compliance-chip.late .value { color: var(--stall-text); }
.compliance-chip.non { background: var(--bad-bg); }
.compliance-chip.non .value { color: var(--bad); }
.compliance-chip.off { background: #f1e9fb; }
.compliance-chip.off .value { color: #6d28d9; }

.compliance-group-title { font-size: 12px; font-weight: 800; text-transform: uppercase; margin: 16px 0 8px; letter-spacing: 0.3px; }
.compliance-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px; border-bottom: 1px solid var(--border); font-size: 13px; }
.compliance-row:last-child { border-bottom: none; }
.compliance-row-info { flex: 1; min-width: 200px; }
.compliance-row .proj-id { font-weight: 700; }
.compliance-row .proj-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.row-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.incident-btn {
  flex-shrink: 0; font-size: 11.5px; font-weight: 700; padding: 9px 14px; border-radius: 8px;
  border: 1.5px solid var(--c-terminated); background: #fff; color: var(--c-terminated); cursor: pointer;
}
.incident-btn:active { background: var(--bad-bg); }
.nte-btn { border-color: var(--c-notstarted); color: var(--c-notstarted); }
.nte-btn:active { background: #ececec; }

/* ---- Site Report Submission form (Phase 4) ---- */
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
input[type="date"], input[type="file"] {
  width: 100%; padding: 13px 14px; font-size: 16px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; color: var(--text);
}
input[readonly] { background: #f0ebeb; color: var(--black); font-weight: 700; }

.type-toggle { display: flex; gap: 10px; }
.type-toggle button {
  flex: 1; padding: 13px 8px; border: 1.5px solid var(--black); border-radius: 10px; background: #fff;
  font-size: 15px; font-weight: 700; color: var(--black); cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.type-toggle button.active { background: var(--black); border-color: var(--black); color: #fff; }
.type-toggle button:not(.active):active { background: #f0ebeb; }

.suggestions {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 10; background: #fff;
  border: 1.5px solid var(--border); border-top: none; border-radius: 0 0 10px 10px;
  max-height: 260px; overflow-y: auto; display: none; box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}
.suggestions.open { display: block; }
.suggestion-item { padding: 13px 14px; cursor: pointer; border-bottom: 1px solid #f1e9e9; }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover, .suggestion-item.highlighted { background: #fbeaea; }
.suggestion-id { font-weight: 700; font-size: 14px; color: var(--black); }
.suggestion-name { font-size: 12px; color: var(--muted); margin-top: 2px; }
.no-results { padding: 12px 14px; font-size: 13px; color: var(--muted); }

.error-text { color: var(--primary); font-size: 13px; margin-top: 6px; display: none; }
.error-text.show { display: block; }

.status { margin-top: 16px; padding: 12px 14px; border-radius: 8px; font-size: 14px; display: none; }
.status.show { display: block; }
.status.success { background: #e6f4ea; color: var(--good); }
.status.error { background: #fbeaea; color: var(--primary); }
.status.warning { background: #fff1e0; color: #8a4b06; border: 1px solid #f0c987; }

.spinner {
  display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; margin-right: 8px; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Submission Log (post-migration addition) ---- */
.log-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.log-toolbar .search-field { flex: 2; min-width: 180px; margin: 0; }
.log-toolbar .type-field { flex: 1; min-width: 120px; margin: 0; }
.log-row {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px;
}
.log-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.log-project-id { font-weight: 800; font-size: 14px; color: var(--black); }
.log-type-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 10px;
  background: var(--black); color: #fff; flex-shrink: 0;
}
.log-project-title { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.log-meta-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); }
.log-status-chip { font-weight: 700; padding: 1px 8px; border-radius: 10px; }
.log-status-chip.ontime { background: var(--good-bg); color: var(--good); }
.log-status-chip.late { background: var(--stall-bg); color: var(--stall-text); }
.log-status-chip.off { background: #f1e9fb; color: #6d28d9; }
.log-duplicate-flag { color: var(--primary); font-weight: 700; }
.log-file-link {
  display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--primary); text-decoration: none;
}
.log-file-link:hover { text-decoration: underline; }
.log-no-file { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 8px; }
.log-count { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.load-more-btn {
  width: 100%; padding: 13px; font-size: 14px; font-weight: 700; background: #fff; color: var(--black);
  border: 1.5px solid var(--black); border-radius: 10px; cursor: pointer; margin-top: 6px;
  transition: background 0.15s ease;
}
.load-more-btn:active { background: #ececec; }
.load-more-btn:disabled { opacity: 0.5; }
