/* ════════════════════════════════════════════════════════════
   PT Site Diary — Unified styles
   ════════════════════════════════════════════════════════════ */

:root[data-theme='dark'] {
  --bg: #0f1923;
  --bg2: #1a2632;
  --bg3: #243240;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --border: #2c3a48;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --danger: #ef4444;
  --warn: #f59e0b;
  --ok: #22c55e;
  --shadow: 0 2px 8px rgba(0,0,0,0.4);
  --radius: 12px;
}

:root[data-theme='light'] {
  --bg: #f4f6f9;
  --bg2: #ffffff;
  --bg3: #eef2f7;
  --text: #0f172a;
  --text2: #64748b;
  --border: #e2e8f0;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --danger: #dc2626;
  --warn: #d97706;
  --ok: #16a34a;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px; line-height: 1.45;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg);
}

/* ── Top bar ────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.topbar-title { font-weight: 700; font-size: 1rem; flex: 1; min-width: 0; }
.topbar-sub { font-size: 0.78rem; color: var(--text2); }
.topbar-gear { flex-shrink: 0; font-size: 1.1rem; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg3); color: var(--text);
  border-radius: 8px; padding: 8px 14px;
  font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: background 0.12s, border-color 0.12s, color 0.12s;
  text-decoration: none; user-select: none;
}
.btn:hover { background: var(--border); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--bg3); }
.btn-sm { padding: 6px 10px; font-size: 0.8rem; }
.btn-tiny { padding: 4px 8px; font-size: 0.75rem; }
.btn-full { width: 100%; }
.btn-full-small { width: 100%; font-size: 0.82rem; padding: 8px; }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-submit { font-size: 1rem; padding: 14px; }

/* ── Forms ──────────────────────────────────────────────── */
.form-input {
  display: block; width: 100%;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 0.9rem;
  font-family: inherit;
}
.form-input:focus { outline: none; border-color: var(--accent); }
textarea.form-input { resize: vertical; font-family: inherit; }
select.form-input {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2394a3b8' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}
input[type="date"].form-input,
input[type="time"].form-input {
  color-scheme: dark;
  height: 44px;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  font-family: inherit;
  line-height: 1.2;
}
input[type="date"].form-input::-webkit-date-and-time-value,
input[type="time"].form-input::-webkit-date-and-time-value {
  text-align: left;
  min-height: 1.2em;
}
:root[data-theme='light'] input[type="date"].form-input,
:root[data-theme='light'] input[type="time"].form-input { color-scheme: light; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 10px 14px;
  overflow: hidden;
}
.card-title {
  font-weight: 700; font-size: 0.85rem;
  padding: 12px 14px 8px;
  color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.card .form-input { margin: 0 14px 14px; width: calc(100% - 28px); }
.card textarea.form-input { margin: 0 14px 14px; width: calc(100% - 28px); }

/* ── Toast ──────────────────────────────────────────────── */
#toast {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%);
  background: var(--bg3); color: var(--text);
  padding: 10px 16px; border-radius: 8px; font-size: 0.88rem;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  z-index: 1000; max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* ── Modals ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 200;
}
.modal-sheet {
  background: var(--bg2);
  border-radius: 16px 16px 0 0;
  width: 100%; max-width: 520px;
  padding: 20px 20px 32px;
  max-height: 85vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
}
.modal-sheet > .auth-field { margin: 0; }
.modal-sheet > .btn { margin: 0; }
.modal-tall { padding-bottom: 28px; }
.modal-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }

/* ── Auth screens ───────────────────────────────────────── */
.name-prompt {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 20px;
  text-align: center;
}
.name-prompt-logo {
  width: 72px; height: 72px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800;
  margin-bottom: 18px;
}
.name-prompt-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.name-prompt-desc { color: var(--text2); margin-bottom: 28px; font-size: 0.9rem; }
.auth-form { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
.auth-field label { display: block; font-size: 0.75rem; color: var(--text2); margin-bottom: 6px; text-align: left; }
.auth-error { min-height: 18px; text-align: center; font-size: 0.85rem; color: var(--danger); }
.auth-theme-row { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; font-size: 0.85rem; color: var(--text2); }
.dim { color: var(--text2); }
.small { font-size: 0.78rem; }
.tiny { font-size: 0.72rem; font-weight: 400; }

/* ── Settings modal ─────────────────────────────────────── */
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.settings-info { padding: 14px 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.settings-info-label { font-size: 0.75rem; color: var(--text2); margin-bottom: 4px; }
.settings-info-val { font-size: 0.95rem; font-weight: 600; }
.settings-info-role { font-size: 0.8rem; color: var(--accent); margin-top: 2px; }

/* ── Project list (supervisor) ──────────────────────────── */
.project-list { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; flex: 1; }
.project-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer; text-align: left;
  font-family: inherit; color: var(--text);
}
.project-card:hover { border-color: var(--accent); }
.project-code {
  background: var(--accent); color: #fff;
  border-radius: 6px; padding: 4px 8px;
  font-weight: 700; font-size: 0.82rem;
}
.project-name { font-weight: 600; font-size: 0.95rem; }
.bottom-action-bar { padding: 12px 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }

/* ── Form scroll area ───────────────────────────────────── */
.form-scroll { flex: 1; overflow-y: auto; padding-bottom: 24px; }

/* ── Edit banner ────────────────────────────────────────── */
.edit-banner {
  background: #2a1d00; color: var(--warn);
  padding: 10px 16px; border-bottom: 1px solid var(--warn);
  font-size: 0.82rem; display: flex; align-items: center; gap: 6px;
}

/* ── Pending banner ─────────────────────────────────────── */
.pending-banner { background: #1a1a00; border-bottom: 1px solid var(--warn); padding: 6px 16px; font-size: 0.78rem; color: var(--warn); }

/* ── Weather ────────────────────────────────────────────── */
.weather-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 14px 14px; }
.weather-btn {
  background: var(--bg3); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 6px; font-size: 0.82rem; font-weight: 500;
  cursor: pointer; text-align: center; line-height: 1.3;
  font-family: inherit;
  transition: all 0.12s;
}
.weather-btn:hover { background: var(--border); }
.weather-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Rain ───────────────────────────────────────────────── */
.rain-section { padding: 10px 0 12px; border-top: 1px solid var(--border); }
.rain-label { font-size: 0.8rem; color: var(--text2); margin-bottom: 6px; padding: 0 14px; }
.rain-list { padding: 0 14px; }
.rain-add-wrap { padding: 0 14px; margin-top: 6px; }
.rain-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rain-row .form-input { flex: 1; min-width: 0; margin: 0; }
.rain-time { max-width: 160px; padding: 8px 10px; }

/* ── Counter rows (Section A — Staff) ───────────────────── */
.counter-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-top: 1px solid var(--border);
  gap: 10px; flex-wrap: wrap;
  transition: background 0.15s;
}
.counter-row.active { background: rgba(59,130,246,0.06); }
.counter-name { flex: 1; min-width: 140px; font-size: 0.9rem; font-weight: 500; }
.counter-controls { display: flex; align-items: center; gap: 8px; }
.cnt-btn {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px;
  width: 36px; height: 36px; font-size: 1.2rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center;
}
.cnt-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.cnt-val { min-width: 28px; text-align: center; font-weight: 700; font-size: 1rem; }
.counter-add-row { padding: 12px 14px; border-top: 1px solid var(--border); }
.inline-input { padding: 6px 10px; font-size: 0.88rem; }

/* ── Machinery / Labour rows (with times) ───────────────── */
.mach-row {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 8px 14px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.mach-row.active { border-color: var(--accent); background: rgba(59,130,246,0.07); }
.mach-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.mach-name { flex: 1; min-width: 0; font-size: 0.95rem; font-weight: 600; }
.mach-actions { display: flex; gap: 4px; flex-shrink: 0; }
.mach-body {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.mach-qty { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mach-times {
  display: flex; align-items: center; gap: 4px;
  flex: 1; min-width: 0;
}
.mach-times-sep { color: var(--text2); font-size: 1rem; flex-shrink: 0; padding: 0 2px; }
.mach-time { padding: 7px 6px; font-size: 0.82rem; flex: 1; min-width: 0; text-align: center; }
@media (max-width: 480px) {
  .mach-body { flex-direction: column; align-items: stretch; gap: 8px; }
  .mach-qty { justify-content: flex-start; }
  .mach-times { width: 100%; }
  .mach-add-time { align-self: flex-start; }
}

/* ── No work ────────────────────────────────────────────── */
.no-work-card { margin: 8px 14px; border: 2px solid var(--warn); border-radius: var(--radius); overflow: hidden; }
.no-work-head { background: #1a1400; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; }
:root[data-theme='light'] .no-work-head { background: #fff7e0; }
.no-work-title { font-weight: 700; font-size: 0.88rem; color: var(--warn); }
.no-work-sub { font-size: 0.75rem; color: var(--text2); margin-top: 2px; }
.no-work-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text2); padding: 6px 16px; flex-shrink: 0; }
.no-work-btn.active { background: var(--warn); color: #000; border-color: var(--warn); }
.no-work-expand { padding: 12px 16px; background: #120f00; border-top: 1px solid var(--warn); }
:root[data-theme='light'] .no-work-expand { background: #fffaeb; }
.no-work-label { font-size: 0.8rem; color: var(--warn); margin-bottom: 8px; }

.submit-wrap { padding: 0 14px 24px; }
.submit-msg { margin-top: 10px; text-align: center; font-size: 0.85rem; color: var(--text2); }

/* ── History list ───────────────────────────────────────── */
.history-filter-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.history-filter-bar select.form-input,
.history-filter-bar input.form-input { flex: 1; min-width: 0; padding: 6px 8px; font-size: 0.85rem; }
.history-day-btns { display: flex; gap: 4px; }
.day-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text2); padding: 6px 10px; border-radius: 6px; font-size: 0.78rem; cursor: pointer; font-family: inherit; }
.day-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.history-list { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.history-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  cursor: pointer; text-align: left; color: var(--text); font-family: inherit;
}
.history-card-top { display: flex; align-items: center; justify-content: space-between; }
.history-card-date { font-weight: 700; font-size: 0.95rem; }
.history-edit-badge { background: var(--warn); color: #000; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.history-card-project { font-size: 0.85rem; color: var(--text2); margin-top: 2px; }
.history-card-id { font-size: 0.72rem; margin-top: 2px; font-family: monospace; }
.ptr-indicator { text-align: center; font-size: 0.8rem; color: var(--text2); padding: 8px; transition: transform 0.16s; }

.empty-state-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.empty-state { text-align: center; }
.empty-state-icon { font-size: 2.4rem; margin-bottom: 12px; }
.empty-state-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state-text { color: var(--text2); font-size: 0.88rem; }

/* ── Report detail (rendered HTML) ──────────────────────── */
.detail-body { flex: 1; overflow-y: auto; padding-bottom: 24px; }
.rc-card { background: var(--bg2); border-radius: var(--radius); margin: 12px 14px; padding: 16px; }
.rc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.85rem; margin-bottom: 12px; }
.rc-meta div { background: var(--bg3); padding: 8px 10px; border-radius: 6px; }
.rc-nowork { background: #2a1d00; color: var(--warn); border: 1px solid var(--warn); padding: 12px; border-radius: 8px; margin-bottom: 12px; font-weight: 600; text-align: center; }
.rc-section { margin-top: 14px; }
.rc-section-title { font-weight: 700; font-size: 0.8rem; color: var(--text2); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.rc-list { margin: 0; padding-left: 18px; font-size: 0.9rem; }
.rc-list li { margin: 3px 0; }
.rc-text { background: var(--bg3); padding: 10px 12px; border-radius: 6px; font-size: 0.9rem; white-space: normal; }
.detail-actions { padding: 0 14px 24px; display: flex; flex-direction: column; gap: 8px; }
.mach-add-time { align-self: center; }
.version-picker { display: flex; gap: 6px; padding: 12px 14px 0; flex-wrap: wrap; }
.version-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text2); padding: 6px 12px; border-radius: 6px; font-size: 0.82rem; cursor: pointer; font-family: inherit; }
.version-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Profile screen ─────────────────────────────────────── */
.profile-wrap { flex: 1; overflow-y: auto; padding-bottom: 24px; }
.profile-line { padding: 6px 14px; font-size: 0.9rem; }
.profile-pending { margin: 10px 14px; padding: 12px; background: #1a1a00; border: 1px solid var(--warn); border-radius: 8px; color: var(--warn); font-size: 0.88rem; }
:root[data-theme='light'] .profile-pending { background: #fffaeb; }
.profile-pending-detail { color: var(--text2); font-size: 0.82rem; margin-top: 4px; }

/* ════════════════════════════════════════════════════════
   ADMIN
   ════════════════════════════════════════════════════════ */

.admin-body { flex: 1; overflow-y: auto; padding-bottom: 70px; }
.admin-tab { padding: 0; }

.admin-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--bg2); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(3, 1fr);
  z-index: 50; padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-btn {
  background: transparent; border: 0; color: var(--text2);
  padding: 8px 0 10px; cursor: pointer; font-family: inherit; font-size: 0.74rem;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tabbar-btn.active { color: var(--accent); }
.tabbar-icon { font-size: 1.3rem; }

/* ── Today tab ──────────────────────────────────────────── */
.today-bar { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; background: var(--bg2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.today-date { font-weight: 700; font-size: 1rem; }
.today-grid { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.today-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.today-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.today-card-title { font-weight: 700; font-size: 0.95rem; }
.today-card-count { font-size: 1.2rem; font-weight: 800; min-width: 28px; text-align: center; }
.today-card-count.ok { color: var(--ok); }
.today-card-count.pending { color: var(--warn); }
.today-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.78rem; padding: 3px 8px; border-radius: 4px; background: var(--bg3); }
.chip.ok { background: rgba(34, 197, 94, 0.15); color: var(--ok); }
.chip.none { background: rgba(245, 158, 11, 0.15); color: var(--warn); }

/* ── Reports tab ────────────────────────────────────────── */
.reports-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: var(--bg2); position: sticky; top: 0; z-index: 5;
  align-items: center;
}
.reports-filter-bar select.form-input,
.reports-filter-bar input.form-input { flex: 1 1 140px; min-width: 120px; max-width: 220px; padding: 8px 10px; font-size: 0.85rem; }
.reports-filter-bar .btn { flex-shrink: 0; }
.reports-list { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.report-row { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; text-align: left; cursor: pointer; color: var(--text); font-family: inherit; display: block; }
.report-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.report-row-date { font-weight: 700; }
.report-row-tags { display: flex; gap: 4px; }
.tag { font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.tag.ack { background: rgba(34,197,94,0.18); color: var(--ok); }
.tag.pending { background: rgba(245,158,11,0.18); color: var(--warn); }
.tag.edited { background: rgba(59,130,246,0.18); color: var(--accent); }
.tag.rejected { background: rgba(239,68,68,0.18); color: var(--danger); }
.report-row-project { font-size: 0.88rem; }
.report-row-sub { font-size: 0.76rem; margin-top: 2px; font-family: monospace; }

.detail-topbar { padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg2); position: sticky; top: 0; z-index: 5; }

/* ── Config tab ─────────────────────────────────────────── */
.config-subtabs {
  display: flex; gap: 4px; padding: 10px 14px;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.subtab-btn { flex: 1; background: var(--bg3); border: 1px solid var(--border); color: var(--text2); padding: 8px; border-radius: 6px; font-family: inherit; font-size: 0.82rem; cursor: pointer; position: relative; }
.subtab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pending-badge { display: inline-block; margin-left: 4px; background: var(--danger); color: #fff; font-size: 0.66rem; padding: 1px 6px; border-radius: 8px; font-weight: 700; }
.config-pane { padding: 12px 14px; }
.config-action-row { display: flex; justify-content: flex-end; margin-bottom: 10px; }

.admin-row { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; }
.admin-row-main { flex: 1; min-width: 0; }
.admin-row-title { font-weight: 600; font-size: 0.92rem; }
.admin-row-sub { font-size: 0.78rem; margin-top: 2px; }
.admin-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.role-badge { font-size: 0.66rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
.role-badge.admin { background: rgba(59,130,246,0.18); color: var(--accent); }
.role-badge.supervisor { background: rgba(34,197,94,0.18); color: var(--ok); }

/* ── Presets modal ──────────────────────────────────────── */
.presets-section { margin-top: 16px; }
.presets-section-title { font-weight: 700; font-size: 0.85rem; color: var(--text2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.preset-row { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.preset-row .form-input { flex: 1; }

/* ── Profile requests ───────────────────────────────────── */
.requests-list { display: flex; flex-direction: column; gap: 8px; }
.request-row { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.request-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.request-row-user { font-size: 0.9rem; }
.request-row-diff { font-size: 0.88rem; margin: 6px 0; }
.request-row-actions { display: flex; gap: 6px; margin-top: 8px; }

/* ── Export ─────────────────────────────────────────────── */
.export-progress { margin-top: 10px; text-align: center; font-size: 0.85rem; color: var(--text2); min-height: 18px; }
