/* ══════════════════════════════════════════════
   CAIS Federal Portal — Desktop Layout
   Page-specific layout styles for the desktop UI.
   ══════════════════════════════════════════════ */

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.6rem;
  max-width: var(--max-width);
  width: 100%;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.header-bar.scrolled { box-shadow: var(--shadow-lg); }

.header-logo {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--black);
  text-transform: uppercase;
}
.header-logo span { color: var(--copper); }

.header-right { display: flex; gap: 1.2rem; align-items: center; position: relative; }

.header-nav { display: flex; gap: 1.5rem; align-items: center; }

.header-nav a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.15s var(--ease-out);
  cursor: pointer;
}
.header-nav a:hover { color: var(--black); }
.header-nav a.active { color: var(--copper); font-weight: 600; }

/* ── TIMER CHIP ── */
/* Uses base .chip styles — no overrides needed */

/* ── SPARKLINE ── */
.sparkline-wrap {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 20px 24px 12px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sparkline-wrap .section-label { margin-bottom: 12px; }

.sparkline-svg {
  width: 100%;
  height: 80px;
  display: block;
}

.sparkline-labels {
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
}

.sparkline-labels span {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--light-gray);
  letter-spacing: 0.03em;
}

/* ── TIME TRACKING TAB ── */
.time-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 1.5rem;
}

.time-summary-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, border-color 0.3s;
}

.time-summary-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: 6px;
}

.time-summary-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--copper);
}

.time-summary-value.active {
  font-family: var(--font-mono);
  color: var(--green);
}

.time-week-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(229, 224, 219, 0.4);
}

[data-theme="dark"] .time-week-row { border-bottom-color: rgba(46, 42, 38, 0.6); }

.time-week-label {
  font-size: 0.85rem;
  font-weight: 500;
  flex: 1;
}

.time-week-days {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--light-gray);
}

.time-week-total {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--copper);
  min-width: 50px;
  text-align: right;
}

.time-day {
  margin-bottom: 16px;
}

.time-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.time-day-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.time-day-total {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--copper);
}

.time-day-bar-wrap {
  height: 3px;
  background: var(--border);
  border-radius: 100px;
  margin-bottom: 8px;
  overflow: hidden;
}

.time-day-bar {
  height: 100%;
  background: var(--copper);
  border-radius: 100px;
  min-width: 2px;
  transition: width 0.5s var(--ease-out);
}

.time-sessions { padding-left: 8px; }

/* ── Daily Log header row + manual-entry form ── */
.time-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.time-log-header .section-label { margin: 0; }

.time-manual-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.time-manual-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
}

.time-manual-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.time-manual-field span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-gray);
}

.time-manual-field .input {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 10px;
}

.time-manual-error {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #c0392b;
  margin-top: 10px;
}

.time-manual-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

@media (max-width: 600px) {
  .time-manual-row { grid-template-columns: 1fr; }
}

.time-session-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 0.78rem;
  color: var(--gray);
}

.time-session-range {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--light-gray);
}

.time-session-dur {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray);
}

.header-user {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--copper);
  padding: 4px 12px;
  background: var(--copper-light);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.header-user:empty { display: none; }

/* ── MAIN ── */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 2rem 4rem;
}

/* ── AMBIENT TIMER (bottom-left) ── */
.ambient-timer {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.3s var(--ease-out), box-shadow 0.3s;
}

.ambient-timer:hover { opacity: 0.8; }
.ambient-timer.tracking { opacity: 0.6; }
.ambient-timer.tracking:hover { opacity: 1; }

.ambient-timer-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ambient-timer-display {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.02em;
}

/* ── HERO ── */
.hero {
  margin-bottom: 3.5rem;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-bg-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 18, 16, 0.85) 0%, rgba(20, 18, 16, 0.6) 100%);
}

/* When no image is set, hide the wash so it's transparent */
.hero-bg:not([style*="background-image"]) .hero-bg-wash,
.hero-bg[style=""] .hero-bg-wash {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;
}

/* When hero has a bg image, text should be white */
.hero-bg[style*="background-image"] ~ .hero-content .hero-label,
.hero-bg[style*="background-image"] ~ .hero-content h1,
.hero-bg[style*="background-image"] ~ .hero-content .hero-desc {
  color: #fff;
}

.hero-bg[style*="background-image"] ~ .hero-content .hero-label {
  opacity: 0.7;
}

.hero-bg[style*="background-image"] ~ .hero-content .hero-desc {
  opacity: 0.8;
}

.hero-img-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.hero-img-btn::after {
  content: '';
  width: 14px;
  height: 14px;
  background: white;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;
}

.hero:hover .hero-img-btn { opacity: 0.6; }
.hero-img-btn:hover { opacity: 1 !important; background: rgba(255, 255, 255, 0.25); }

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 1rem;
}

.hero-desc {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  color: var(--gray);
  line-height: 1.6;
  max-width: 600px;
}

/* ── STATUS STRIP ── */
.status-strip {
  display: flex;
  gap: 12px;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  align-items: center;
}

.last-updated {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--light-gray);
  letter-spacing: 0.05em;
  width: 100%;
  margin-top: 4px;
}

/* ── TABS ── */
.section-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  transition: border-color 0.3s;
}

.section-nav button {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray);
  background: none;
  border: none;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  position: relative;
  transition: color 0.15s var(--ease-out);
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-nav button:hover { color: var(--black); }
.section-nav button.active { color: var(--copper); font-weight: 600; }
.section-nav button.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--copper);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 1px 8px rgba(196, 113, 59, 0.3);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── PROGRESS ── */
.progress-wrap { margin-bottom: 1.5rem; }

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-gray);
}

.progress-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--copper);
  font-weight: 600;
}

/* ── TASK FILTER ── */
.task-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.filter-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color 0.15s var(--ease-out), background 0.3s;
}
.filter-input:focus { border-color: var(--copper); }
.filter-input::placeholder { color: var(--light-gray); }

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray);
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
}
.filter-btn:hover { border-color: var(--copper); color: var(--copper); }
.filter-btn.active { background: var(--copper-light); color: var(--copper); border-color: var(--copper); }

/* ── TAB BADGE ── */
.tab-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  background: var(--copper-light);
  color: var(--copper);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  min-width: 18px;
  text-align: center;
}

/* ── TASK LIST ── */
.task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(229, 224, 219, 0.5);
  transition: opacity 0.2s, transform 0.15s var(--ease-out);
}
[data-theme="dark"] .task-item { border-bottom-color: rgba(46, 42, 38, 0.8); }
.task-item:last-child { border-bottom: none; }
.task-item[draggable="true"] { cursor: grab; }
.task-item.dragging { opacity: 0.4; }
.task-item.drag-over { transform: translateY(3px); }

.task-check { margin-top: 1px; }

.task-content { flex: 1; display: flex; flex-direction: column; gap: 4px; }

.task-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.4;
}
.task-title.done { text-decoration: line-through; color: var(--light-gray); }

.task-meta-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.task-due {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--light-gray);
  letter-spacing: 0.05em;
}

/* ── ADD FORM ── */
.add-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.add-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color 0.15s var(--ease-out), background 0.3s;
}
.add-input:focus { border-color: var(--copper); }
.add-input::placeholder { color: var(--light-gray); }

/* ── FINANCE GRID ── */
.finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 2rem;
}

.finance-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.finance-card.highlight {
  background: linear-gradient(145deg, #C4713B 0%, #d4915f 50%, #e8b88a 100%);
  border-color: transparent;
  color: white;
  box-shadow: var(--copper-glow-shadow), var(--shadow-md);
}
[data-theme="dark"] .finance-card.highlight {
  background: linear-gradient(145deg, #C4713B 0%, #a05a2d 50%, #7a4420 100%);
}

.finance-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 8px;
}

.finance-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.finance-sub {
  font-size: 0.78rem;
  opacity: 0.6;
  margin-top: 4px;
}

/* ── CONTACTS ── */
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s, border-color 0.3s;
}
.contact-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--card-shadow);
}
.contact-info { flex: 1; }
.contact-name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.contact-role { font-size: 0.8rem; color: var(--gray); margin-top: 2px; }
.contact-detail {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--light-gray);
  letter-spacing: 0.03em;
  margin-top: 4px;
}

/* ── NOTES ── */
.note-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin-bottom: 10px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.3s, border-color 0.3s;
}
.note-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--card-shadow);
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--light-gray);
  text-transform: uppercase;
}

.note-body {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.65;
  white-space: pre-wrap;
}

/* ── TIMELINE ── */
.timeline-item { display: flex; gap: 16px; padding: 12px 0; }

.timeline-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
}

.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 5px;
  transition: background 0.3s;
}
.timeline-dot.active { background: var(--copper); }
.timeline-dot.done { background: var(--green); }

.timeline-line {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin-top: 6px;
  transition: background 0.3s;
}

.timeline-content { flex: 1; padding-bottom: 12px; }
.timeline-title { font-size: 0.9rem; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.timeline-desc { font-size: 0.82rem; color: var(--gray); line-height: 1.5; }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--light-gray);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── DOCUMENTS ── */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.docs-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px;
  max-height: 70vh;
  overflow-y: auto;
  position: sticky;
  top: 120px;
}

.docs-sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-gray);
  padding: 6px 10px 12px;
}

.doc-item {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--gray);
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.doc-item:hover { background: var(--copper-light); color: var(--copper); }
.doc-item.active { background: var(--copper-light); color: var(--copper); font-weight: 600; }

.doc-viewer {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  min-height: 300px;
}

.doc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.doc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
}

.doc-content {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.7;
}
.doc-content h1, .doc-content h2, .doc-content h3 {
  font-family: var(--font-display);
  color: var(--black);
  margin: 1.4em 0 0.6em;
  letter-spacing: -0.3px;
}
.doc-content h1 { font-size: 1.4rem; }
.doc-content h2 { font-size: 1.15rem; }
.doc-content h3 { font-size: 1rem; }
.doc-content p { margin-bottom: 1em; }
.doc-content ul, .doc-content ol { margin: 0 0 1em 1.4em; }
.doc-content li { margin-bottom: 0.3em; }
.doc-content code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--copper);
}
.doc-content pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  overflow-x: auto;
  margin: 1em 0;
}
.doc-content pre code { background: none; padding: 0; color: var(--black); }
.doc-content blockquote {
  border-left: 3px solid var(--copper);
  padding-left: 14px;
  color: var(--light-gray);
  margin: 1em 0;
}
.doc-content a { color: var(--copper); }

/* ── ADMIN ── */
.admin-controls {
  display: flex;
  gap: 8px;
  margin-left: 12px;
}

/* ── SHORTCUTS MODAL ── */
.shortcuts-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.shortcuts-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

.shortcuts-modal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-modal);
  padding: 2rem;
  width: calc(100vw - 3rem);
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
  transform: scale(0.95) translateY(8px);
  transition: transform 0.25s var(--ease-out), background 0.3s, border-color 0.3s;
}
.shortcuts-overlay.open .shortcuts-modal { transform: scale(1) translateY(0); }

.shortcuts-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: -0.3px;
}

.shortcut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(229, 224, 219, 0.3);
}
[data-theme="dark"] .shortcut-row { border-bottom-color: rgba(46, 42, 38, 0.5); }
.shortcut-row:last-child { border-bottom: none; }

.shortcut-label { font-size: 0.85rem; color: var(--gray); }

.shortcut-key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--black);
  letter-spacing: 0.03em;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

/* ── TIME TRACKER ── */
.timer-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, border-color 0.3s;
}

.timer-main {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.timer-dot-wrap { flex-shrink: 0; }

.timer-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--light-gray);
  transition: background 0.3s;
}

.timer-display {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--black);
  flex: 1;
}

.timer-stop-btn {
  background: var(--red);
  color: #fff;
}
.timer-stop-btn:hover { background: #a33025; }

.timer-stats {
  display: flex;
  gap: 24px;
}

.timer-stat-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: 2px;
}

.timer-stat-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--copper);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── PROFILE DROPDOWN ── */
.header-right { position: relative; }

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s var(--ease-out);
}

.profile-dropdown.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  width: 280px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.profile-role { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--light-gray); margin-top: 2px; }
.profile-divider { height: 1px; background: var(--border); margin-bottom: 12px; }
.profile-field { margin-bottom: 12px; }
.profile-label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--light-gray); margin-bottom: 4px; display: block; }
.profile-input { font-size: 0.85rem; padding: 8px 10px; }
.profile-actions { display: flex; gap: 8px; }

.profile-admin-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--gray);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}

.profile-action-btn:hover { background: var(--copper-light); color: var(--copper); }

.profile-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  background: var(--red);
  color: #fff;
  padding: 1px 5px;
  border-radius: 100px;
  margin-left: 4px;
}

.profile-badge:empty { display: none; }

.request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.request-item:last-child { border-bottom: none; }

.request-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.request-email {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--light-gray);
}

.request-reason {
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 2px;
}

.profile-action-icon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--copper);
  width: 16px;
  text-align: center;
}

/* ── DOCUMENT ROWS ── */
.doc-category { margin-bottom: 1.5rem; }

.doc-category-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: 8px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.3s, border-color 0.3s;
}

.doc-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--card-shadow);
}

.doc-icon { font-size: 1.4rem; flex-shrink: 0; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--black); }
.doc-path { font-family: var(--font-mono); font-size: 0.6rem; color: var(--light-gray); letter-spacing: 0.03em; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-open-btn { flex-shrink: 0; text-decoration: none; }

/* ── INLINE VIEWER ── */
.doc-viewer-inline {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-top: 1.5rem;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}

.doc-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.doc-viewer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.doc-viewer-content {
  padding: 24px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--gray);
}

.doc-viewer-content h1, .doc-viewer-content h2, .doc-viewer-content h3 {
  font-family: var(--font-display);
  color: var(--black);
  margin: 1.5em 0 0.5em;
}

.doc-viewer-content h1 { font-size: 1.3rem; font-weight: 800; }
.doc-viewer-content h2 { font-size: 1.1rem; font-weight: 700; }
.doc-viewer-content h3 { font-size: 0.95rem; font-weight: 700; }
.doc-viewer-content p { margin-bottom: 1em; }
.doc-viewer-content ul, .doc-viewer-content ol { margin: 0.5em 0 1em 1.5em; }
.doc-viewer-content li { margin-bottom: 0.3em; }
.doc-viewer-content code { font-family: var(--font-mono); font-size: 0.85em; background: var(--border); padding: 2px 5px; border-radius: 4px; }
.doc-viewer-content table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.doc-viewer-content th, .doc-viewer-content td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; font-size: 0.85rem; }
.doc-viewer-content th { font-weight: 600; background: var(--bg); }

/* ── NEWS BUTTON ── */
.header-news-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.header-news-btn:hover {
  border-color: var(--copper);
  transform: scale(1.05);
}

/* ── NEWS DRAWER ── */
.news-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.news-overlay.open {
  opacity: 1;
  visibility: visible;
}

.news-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  z-index: 160;
  background: var(--bg);
  border-left: 1px solid var(--glass-border);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
}

.news-drawer.open {
  transform: translateX(0);
}

.news-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.news-drawer-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.news-drawer-actions {
  display: flex;
  gap: 4px;
}

.news-refresh-btn, .news-close-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--gray);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.news-refresh-btn:hover, .news-close-btn:hover {
  color: var(--copper);
  background: var(--copper-light);
}

.news-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}

.news-loading {
  text-align: center;
  padding: 2rem;
  color: var(--light-gray);
  font-size: 0.85rem;
}

.news-item {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 4px;
  text-decoration: none;
  color: var(--black);
  transition: background 0.15s;
}

.news-item:hover {
  background: var(--glass-bg);
}

.news-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.news-item-feed {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  background: var(--copper-light);
  padding: 2px 6px;
  border-radius: var(--radius-badge);
}

.news-item-ago {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--light-gray);
}

.news-item-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 3px;
}

.news-item-source {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--light-gray);
  letter-spacing: 0.03em;
}

/* ── NEWS LINK PREVIEW ── */
.news-item-wrap {
  position: relative;
}

.news-preview-card {
  max-height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 14px;
  opacity: 0;
  transition: max-height 0.3s var(--ease-out), opacity 0.25s ease, margin 0.3s;
}

.news-item-wrap:hover .news-preview-card {
  max-height: 180px;
  opacity: 1;
  margin: 4px 14px 8px;
}

.news-preview-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

/* ── OVERVIEW LAYOUT ── */
.overview-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.overview-main { min-width: 0; }

.overview-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-section {
  margin-bottom: 20px;
}

.sidebar-heading {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--gray);
  font-size: 0.78rem;
  transition: background 0.15s, color 0.15s;
}

.sidebar-link:hover {
  background: var(--copper-light);
  color: var(--copper);
}

.sidebar-link-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.sidebar-link-title {
  flex: 1;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-link-cat {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light-gray);
  flex-shrink: 0;
}

/* ── NOTE EDITING ── */
.note-card.editing {
  border-color: var(--copper);
  box-shadow: var(--copper-glow-shadow);
}

.note-actions { display: flex; gap: 2px; }

.note-meta { display: flex; align-items: center; gap: 8px; }

.note-edit-area {
  margin-top: 8px;
}

.note-edit-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 8px;
}

.note-body[data-click-edit]:hover {
  background: var(--copper-glow);
  border-radius: 6px;
  margin: -4px;
  padding: 4px;
}

/* ── QUICK-ADD MODAL ── */
.quickadd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.quickadd-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.quickadd-modal {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-modal);
  width: calc(100vw - 3rem);
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(-10px);
  transition: transform 0.25s var(--ease-out), background 0.3s, border-color 0.3s;
  overflow: hidden;
}

.quickadd-overlay.open .quickadd-modal {
  transform: scale(1) translateY(0);
}

.quickadd-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
}

.quickadd-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.quickadd-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 1rem;
  border: none;
  background: transparent;
  color: var(--black);
  outline: none;
}

.quickadd-input::placeholder { color: var(--light-gray); }

.quickadd-type-toggle {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--copper-light);
  color: var(--copper);
  cursor: pointer;
  transition: background 0.15s;
}

.quickadd-type-toggle:hover { background: var(--copper-mid); }

.quickadd-hint {
  display: flex;
  gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--light-gray);
}

.quickadd-hint kbd {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.55rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 3px;
}

/* ══════════════════════════════════════════════
   MOBILE RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* ── Header ── */
  .header { padding: 10px 12px; }
  .header-bar {
    padding: 0.5rem 0.8rem;
    border-radius: 14px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .header-logo {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
  }
  .header-right { gap: 0.6rem; }
  .header-nav { display: none; }
  .admin-controls { display: none; }
  .time-summary-grid { grid-template-columns: 1fr 1fr; }
  .time-summary-value { font-size: 1rem; }
  .header-user { font-size: 0.65rem; padding: 3px 8px; }
  .theme-toggle { width: 28px; height: 28px; font-size: 0.75rem; }
  .ambient-timer { bottom: 16px; left: 16px; padding: 6px 10px; }
  .ambient-timer-display { font-size: 0.65rem; }

  /* ── Main ── */
  .main { padding: 80px 1rem 3rem; }

  /* ── Hero ── */
  .hero { border-radius: 14px; }
  .hero-content { padding: 1.5rem 1.2rem; }
  .hero-img-btn { opacity: 0.6; }
  .hero { margin-bottom: 2rem; }
  .hero-label { font-size: 0.55rem; margin-bottom: 0.6rem; }
  .hero h1 { font-size: 1.6rem; letter-spacing: -0.5px; margin-bottom: 0.6rem; }
  .hero-desc { font-size: 0.88rem; }

  /* ── Status Strip ── */
  .status-strip { gap: 6px; margin-bottom: 1.5rem; }
  .chip { font-size: 0.7rem; padding: 5px 10px; gap: 6px; }
  .chip .dot { width: 6px; height: 6px; }
  .last-updated { display: none; }

  /* ── Tabs ── */
  .section-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 1.5rem;
    gap: 0;
  }
  .section-nav::-webkit-scrollbar { display: none; }
  .section-nav button {
    font-size: 0.75rem;
    padding: 0.6rem 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ── Cards ── */
  .card { padding: 16px; margin-bottom: 8px; border-radius: 12px; }
  .card:hover { transform: none; box-shadow: none; }
  .card-title { font-size: 0.95rem; }
  .card-body { font-size: 0.82rem; }

  /* ── Tasks ── */
  .task-filter-row { flex-wrap: wrap; gap: 6px; }
  .filter-btn { font-size: 0.6rem; padding: 6px 10px; }
  .filter-input { font-size: 0.78rem; padding: 8px 10px; }
  .task-item { padding: 12px 0; gap: 10px; }
  .task-title { font-size: 0.82rem; }
  .task-meta-row { gap: 4px; }
  .priority { font-size: 0.55rem; padding: 2px 6px; }
  .author-tag { font-size: 0.5rem; }

  /* ── Add Form ── */
  .add-row { flex-wrap: wrap; }
  .add-input { font-size: 0.82rem; padding: 10px 12px; }
  .select { font-size: 0.75rem; padding: 10px 12px; min-width: 80px; }

  /* ── Timer ── */
  .timer-card { padding: 16px; }
  .timer-display { font-size: 1.5rem; }
  .timer-stats { gap: 16px; }
  .timer-stat-value { font-size: 0.95rem; }

  /* ── Finance ── */
  .finance-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .finance-card { padding: 16px; border-radius: 12px; }
  .finance-value { font-size: 1.4rem; }
  .finance-label { font-size: 0.55rem; }
  .finance-sub { font-size: 0.7rem; }

  /* ── Contacts ── */
  .contact-card { padding: 14px 16px; gap: 12px; border-radius: 12px; }
  .contact-card:hover { transform: none; box-shadow: none; }
  .avatar { width: 36px; height: 36px; font-size: 0.8rem; }
  .contact-name { font-size: 0.88rem; }
  .contact-role { font-size: 0.75rem; }
  .contact-detail { font-size: 0.65rem; }

  /* ── Notes ── */
  .note-card { padding: 14px 16px; border-radius: 12px; }
  .note-card:hover { transform: none; box-shadow: none; }
  .note-body { font-size: 0.82rem; }
  .note-date { font-size: 0.55rem; }
  .textarea { min-height: 100px; font-size: 0.82rem; }

  /* ── Overview ── */
  .overview-layout { grid-template-columns: 1fr; }
  .overview-sidebar { position: static; }

  /* ── Documents ── */
  .doc-row { padding: 12px; gap: 10px; border-radius: 12px; }
  .doc-row:hover { transform: none; box-shadow: none; }
  .doc-icon { font-size: 1.2rem; }
  .doc-name { font-size: 0.82rem; }
  .doc-path { font-size: 0.55rem; }
  .doc-viewer-content { padding: 16px; font-size: 0.82rem; }

  /* ── Timeline ── */
  .timeline-title { font-size: 0.82rem; }
  .timeline-desc { font-size: 0.75rem; }
  .timeline-date { font-size: 0.55rem; }

  /* ── Profile Dropdown ── */
  .profile-dropdown { right: -12px; }
  .profile-card { width: 260px; padding: 16px; }

  /* ── Shortcuts overlay — hide on mobile ── */
  .shortcuts-overlay { display: none; }

  /* ── Section labels ── */
  .section-label { font-size: 0.58rem; margin-bottom: 0.8rem; }
  .divider { margin: 1.5rem 0; }

  /* ── Progress ── */
  .progress-wrap { margin-bottom: 1rem; }

  /* ── General touch improvements ── */
  button, a, .checkbox, .doc-open-btn { min-height: 44px; }
  .btn-sm { min-height: 36px; padding: 8px 14px; }
  .delete-btn { min-height: 36px; min-width: 36px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.3rem; }
  .finance-grid { grid-template-columns: 1fr; }
  .chip { font-size: 0.65rem; padding: 4px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
