* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0a0a0a;
  --card: #141414;
  --border: #222;
  --accent: #C8FF00;
  --text: #fff;
  --muted: #a0a0a0;
  --accent-dim: #3a3f00;

  /* Surface scale */
  --surface-0: #0a0a0a;
  --surface-1: #111111;
  --surface-2: #141414;
  --surface-3: #1a1a1a;
  --surface-4: #222222;
  --surface-5: #333333;

  /* Semantic colors */
  --success: #22c55e;
  --success-dim: rgba(34, 197, 94, 0.15);
  --warning: #f59e0b;
  --warning-dim: rgba(245, 158, 11, 0.15);
  --error: #ef4444;
  --error-dim: rgba(239, 68, 68, 0.15);
  --info: #3b82f6;
  --info-dim: rgba(59, 130, 246, 0.15);
  --purple: #a855f7;
  --purple-dim: rgba(168, 85, 247, 0.15);
  --gold: #FFD700;

  /* Hover border */
  --hover-border: #444;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* Type scale */
  --text-xs: 0.7rem;
  --text-sm: 0.8rem;
  --text-base: 0.9rem;
  --text-md: 1rem;
  --text-lg: 1.15rem;
  --text-xl: 1.4rem;
  --text-2xl: 2rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Font weights */
  --font-normal: 400;
  --font-medium: 600;
  --font-bold: 700;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.5; }
.hidden { display: none !important; }
.logo { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -1px; }
.subtitle { color: var(--muted); font-size: .9rem; }
.error { color: var(--error); font-size: .85rem; margin-top: .5rem; }
.muted { color: var(--muted); }
small { font-size: .8rem; }

/* Login */
.login-screen { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { text-align: center; }
.login-box input { display: block; margin: 1.5rem auto .75rem; padding: .75rem 1rem; width: 260px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 1rem; }
.login-box button { padding: .7rem 2rem; }

/* Buttons */
.btn { background: var(--accent); color: #000; border: none; padding: .5rem 1rem; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .85rem; }
.btn:hover { background: #b3e600; color: #000; }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #000; }
.btn:disabled { opacity: .4; cursor: wait; }
.btn-sm { padding: .4rem .75rem; font-size: .8rem; }

/* Header */
header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 1rem; }
.header-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Section titles */
.section-title { font-size: 1.1rem; font-weight: 700; padding: 0 2rem; margin: 1.5rem 0 .75rem; }
.section-hint { font-weight: 400; color: var(--muted); font-size: .85rem; }

/* Stats Row */
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; padding: 1.5rem 2rem; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.stat-card.accent { border-color: var(--accent-dim); background: linear-gradient(135deg, #141400, #1a1a0a); }
.stat-card h4 { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: .4rem; }
.stat-card .value { font-size: 1.6rem; font-weight: 700; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card .detail { color: var(--muted); font-size: .75rem; margin-top: .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-card .stat-sub { color: var(--muted); font-size: .65rem; margin-top: .15rem; }

/* Priority Cards */
.priority-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .75rem; padding: 0 2rem 1rem; }
.priority-card { background: var(--card); border: 1px solid var(--accent-dim); border-radius: 12px; padding: 1rem; cursor: pointer; display: flex; gap: .75rem; transition: border-color .2s; }
.priority-card:hover { border-color: var(--accent); }
.priority-rank { font-size: 1.4rem; font-weight: 800; color: var(--accent); min-width: 2rem; }
.priority-info { flex: 1; min-width: 0; }
.priority-info h3 { font-size: .95rem; margin-bottom: .3rem; }
.priority-meta { display: flex; gap: .75rem; font-size: .8rem; color: var(--muted); margin-bottom: .4rem; flex-wrap: wrap; }
.priority-desc { font-size: .8rem; color: #bbb; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.priority-contacts { margin-top: .5rem; display: flex; gap: .75rem; flex-wrap: wrap; font-size: .75rem; }
.priority-contacts a { color: var(--accent); text-decoration: none; }
.priority-contacts a:hover { text-decoration: underline; }
.priority-contacts span { color: var(--muted); }

/* Timeline */
.timeline { padding: 0 2rem 1.5rem; display: flex; flex-direction: column; gap: .25rem; }
.tl-month { display: flex; gap: 1rem; align-items: flex-start; }
.tl-label { font-weight: 700; color: var(--accent); min-width: 3rem; padding-top: .4rem; font-size: .85rem; }
.tl-events { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1; padding: .3rem 0; border-bottom: 1px solid var(--border); }
.tl-event { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: .3rem .6rem; font-size: .75rem; cursor: pointer; transition: border-color .2s; }
.tl-event:hover { border-color: var(--accent); }
.tl-event strong { display: block; }
.tl-event span { color: var(--muted); font-size: .7rem; }
.tl-event.rel-high { border-left: 3px solid var(--accent); }
.tl-event.rel-medium { border-left: 3px solid var(--gold); }

/* Charts */
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0 2rem 1.5rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.card h3 { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }

/* Vertical bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bar-col { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 4px; }
.bar { background: var(--accent); border-radius: 3px 3px 0 0; width: 100%; min-width: 16px; transition: height .3s; }
.bar-label { font-size: .65rem; color: var(--muted); }
.bar-value { font-size: .7rem; color: var(--text); }

/* Horizontal bar chart */
.bar-chart-h { display: flex; flex-direction: column; gap: .4rem; }
.hbar-row { display: flex; align-items: center; gap: .5rem; }
.hbar-label { font-size: .75rem; color: var(--muted); min-width: 80px; text-align: right; }
.hbar-track { flex: 1; height: 18px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.hbar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s; }
.hbar-value { font-size: .75rem; color: var(--text); min-width: 20px; }

/* Filters */
.filters { display: flex; gap: .75rem; padding: 0 2rem 1rem; flex-wrap: wrap; }
.filters input, .filters select { padding: .5rem .75rem; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: .85rem; }
.filters input { flex: 1; min-width: 200px; }

/* Table */
.table-wrap { padding: 0 2rem 2rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: .6rem .5rem; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); border-bottom: 1px solid var(--border); cursor: pointer; user-select: none; }
th:hover { color: var(--accent); }
td { padding: .6rem .5rem; border-bottom: 1px solid var(--border); font-size: .85rem; vertical-align: top; }
tr:hover td { background: var(--surface-3); }
tr { cursor: pointer; }
.rel-row-high td:first-child { color: var(--accent); }
.type-badge { background: var(--surface-3); padding: .15rem .5rem; border-radius: 4px; font-size: .75rem; }
.contact-cell { white-space: nowrap; }
.contact-cell a { color: var(--accent); text-decoration: none; margin-right: .3rem; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal-content { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; max-width: 640px; width: 90%; max-height: 85vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.modal-content h2 { color: var(--accent); margin-bottom: .25rem; font-size: 1.3rem; }
.modal-relevance { display: inline-block; font-size: .75rem; padding: .2rem .6rem; border-radius: 4px; margin-bottom: 1rem; text-transform: uppercase; font-weight: 600; }
.modal-relevance.rel-high { background: var(--accent-dim); color: var(--accent); }
.modal-relevance.rel-medium { background: #3a3500; color: var(--gold); }
.modal-relevance.rel-low { background: var(--surface-3); color: var(--muted); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .75rem; }
.modal-content .field { margin: .5rem 0; }
.modal-content .field label { color: var(--muted); font-size: .7rem; text-transform: uppercase; display: block; margin-bottom: .15rem; }
.modal-content .field p { font-size: .9rem; line-height: 1.5; }
.modal-contacts { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.modal-contacts h3 { font-size: .8rem; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.contact-link { display: block; color: var(--accent); text-decoration: none; font-size: .85rem; margin-bottom: .3rem; word-break: break-all; }
.contact-link:hover { text-decoration: underline; }

/* Feedback */
.fb-btn { background: none; border: 1px solid var(--border); border-radius: 6px; padding: .2rem .4rem; cursor: pointer; font-size: .85rem; transition: all .2s; }
.fb-btn:hover { border-color: var(--accent); }
.fb-up:hover { background: #1a2a00; }
.fb-down:hover { background: #2a0a0a; }
.fb-cell { white-space: nowrap; }
.fb-inline { display: inline-flex; gap: .3rem; align-items: center; }
.fb-clear { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .7rem; padding: .1rem .3rem; }
.fb-clear:hover { color: var(--text); }
.feedback-badge { font-size: .9rem; }
.feedback-badge.fb-down { opacity: .7; }
.flagged { opacity: .5; }
.flagged:hover { opacity: .8; }
.priority-header { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.priority-opp { font-size: .75rem; color: var(--accent); margin-top: .3rem; font-style: italic; }
.modal-top-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.feedback-note { background: #1a1a00; border: 1px solid var(--accent-dim); border-radius: 8px; padding: .5rem .75rem; font-size: .8rem; margin-bottom: 1rem; color: var(--muted); }
.feedback-reasons { display: flex; flex-wrap: wrap; gap: .5rem; }
.feedback-reason-btn { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: .5rem 1rem; color: var(--text); cursor: pointer; font-size: .85rem; transition: all .2s; }
.feedback-reason-btn:hover { border-color: var(--accent); background: #1a1a0a; }

/* Tab Bar */
.tab-bar { display: flex; gap: 0; padding: 0 2rem; border-bottom: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab-btn { background: none; border: none; color: var(--muted); padding: .75rem 1.25rem; font-size: .9rem; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; transition: all .2s; text-decoration: none; white-space: nowrap; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* GA Reports — Premium Analytics */
.ga-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; flex-wrap: wrap; gap: 1rem; }
.ga-header-left { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.ga-title { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.ga-period { color: var(--accent); font-size: .9rem; font-weight: 600; background: var(--accent-dim); padding: .3rem .8rem; border-radius: 20px; }
.ga-select-wrap { position: relative; }
.ga-select-wrap select { appearance: none; -webkit-appearance: none; padding: .55rem 2.2rem .55rem .9rem; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: .85rem; font-weight: 500; cursor: pointer; transition: border-color .2s; }
.ga-select-wrap select:hover, .ga-select-wrap select:focus { border-color: var(--accent); outline: none; }
.ga-select-wrap::after { content: '\25BE'; position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: .75rem; }

.ga-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 0 2rem 1.5rem; }
.ga-stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; transition: all .25s; position: relative; overflow: hidden; }
.ga-stat-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(200,255,0,.03), transparent); opacity: 0; transition: opacity .25s; }
.ga-stat-card:hover::before { opacity: 1; }
.ga-stat-card:hover { border-color: var(--surface-5); }
.ga-stat-label { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: .5rem; }
.ga-stat-value { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: .4rem; }
.ga-stat-change { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; font-weight: 600; padding: .15rem .5rem; border-radius: 20px; }
.ga-stat-change.positive { background: rgba(76,175,80,.15); color: var(--success); }
.ga-stat-change.negative { background: rgba(244,67,54,.15); color: var(--error); }
.ga-stat-change.neutral { background: rgba(136,136,136,.15); color: #888; }
.ga-stat-sub { color: var(--muted); font-size: .7rem; margin-left: .25rem; }

.ga-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0 2rem 1rem; }
.ga-grid-full { grid-template-columns: 1fr; }
.ga-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.ga-card-header { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.ga-card-header h3 { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; flex: 1; }
.ga-card-icon { font-size: 1rem; }

.ga-ranked-list { display: flex; flex-direction: column; gap: .5rem; }
.ga-rank-item { display: flex; align-items: center; gap: .65rem; }
.ga-rank-num { font-size: .7rem; font-weight: 700; color: var(--muted); min-width: 1.5rem; text-align: center; }
.ga-rank-num.top { color: var(--accent); font-size: .8rem; }
.ga-rank-info { flex: 1; min-width: 0; }
.ga-rank-label { font-size: .82rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ga-rank-bar { height: 4px; background: var(--surface-3); border-radius: 2px; margin-top: 3px; overflow: hidden; }
.ga-rank-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .4s ease; }
.ga-rank-value { font-size: .8rem; font-weight: 600; color: var(--accent); min-width: 2.5rem; text-align: right; }

.ga-devices-wrap { display: flex; flex-direction: column; gap: 1rem; }
.ga-device-item { display: flex; align-items: center; gap: .75rem; }
.ga-device-icon { font-size: 1.3rem; min-width: 2rem; text-align: center; }
.ga-device-info { flex: 1; }
.ga-device-name { font-size: .85rem; color: var(--text); margin-bottom: .25rem; }
.ga-device-bar { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.ga-device-bar-fill { height: 100%; border-radius: 3px; transition: width .4s ease; }
.ga-device-pct { font-size: .85rem; font-weight: 700; color: var(--text); min-width: 3rem; text-align: right; }

.ga-legend { display: flex; gap: 1rem; margin-left: auto; }
.ga-legend-item { display: flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--muted); }
.ga-legend-dot { width: 8px; height: 8px; border-radius: 50%; }

.ga-history-chart { display: flex; align-items: flex-end; gap: 2px; height: 160px; padding-top: .5rem; }
.ga-history-group { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 4px; height: 100%; }
.ga-history-bars { display: flex; align-items: flex-end; gap: 2px; flex: 1; width: 100%; }
.ga-history-bar { flex: 1; border-radius: 3px 3px 0 0; transition: height .4s ease; min-height: 2px; position: relative; }
.ga-history-bar:hover { opacity: .85; }
.ga-history-bar .ga-bar-tooltip { display: none; position: absolute; top: -1.5rem; left: 50%; transform: translateX(-50%); background: var(--surface-5); color: #fff; font-size: .65rem; padding: .15rem .4rem; border-radius: 4px; white-space: nowrap; }
.ga-history-bar:hover .ga-bar-tooltip { display: block; }
.ga-history-label { font-size: .65rem; color: var(--muted); white-space: nowrap; }

/* Modal banner image */
.modal-banner { margin: -1.5rem -1.5rem 1rem -1.5rem; overflow: hidden; border-radius: 12px 12px 0 0; }
.modal-banner img { width: 100%; max-height: 200px; object-fit: cover; display: block; }

/* Register button */
.register-btn { display: inline-block; margin: 1rem 0; padding: .75rem 1.5rem; font-size: 1rem; text-decoration: none; text-align: center; border-radius: 10px; }

/* Places / Local Partners */
.places-stats { grid-template-columns: repeat(4, 1fr); }
.place-status-select { padding: .3rem .5rem; border-radius: 6px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: .75rem; cursor: pointer; }
.place-status-select:focus { border-color: var(--accent); outline: none; }
.status-interested { border-color: var(--success); color: var(--success); }
.status-notinterested { border-color: var(--error); color: var(--error); opacity: .6; }
.status-active { border-color: var(--accent); color: var(--accent); }
.status-saved { color: var(--success); font-size: .75rem; margin-left: .3rem; }

@media (max-width: 768px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .chart-row { grid-template-columns: 1fr; }
  .priority-grid { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  header { padding: 1rem; }
  .section-title, .stats-row, .priority-grid, .filters, .table-wrap, .chart-row, .timeline { padding-left: 1rem; padding-right: 1rem; }
  .ga-stats-row { grid-template-columns: repeat(2, 1fr); }
  .ga-grid { grid-template-columns: 1fr; }
  .tab-bar { padding: 0 1rem; }
  .ga-header { padding: 1rem; }
  .ga-stats-row { padding: 0 1rem 1rem; }
  .ga-grid { padding: 0 1rem 1rem; }
  .places-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Modal navigation */
.modal-nav { display:flex; justify-content:space-between; align-items:center; padding:1rem 0 0; margin-top:1rem; border-top:1px solid var(--border); }
.modal-nav-btn { cursor:pointer; color:var(--accent); font-size:.85rem; padding:.3rem .8rem; border-radius:6px; transition:background .15s; user-select:none; }
.modal-nav-btn:hover { background:var(--accent-dim); }
.modal-nav-count { color:var(--muted); font-size:.8rem; }

/* Approach strategy */
.approach-strategy { background:rgba(200,255,0,0.06); border:1px solid var(--accent-dim); border-radius:10px; padding:1rem; margin:.5rem 0; }
.approach-strategy label { color:var(--accent); }

/* Status saved indicator */
.status-saved { color:var(--accent); font-size:.8rem; margin-left:.5rem; animation:fadeIn .3s; }

/* Place Comments */
.place-comments-section { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.place-comments-title { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: .75rem; }
.place-comment-form { display: flex; gap: .5rem; margin-bottom: 1rem; align-items: flex-start; }
.place-comment-textarea {
  flex: 1; padding: .6rem .75rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: .85rem; font-family: inherit;
  resize: vertical; min-height: 38px; line-height: 1.4; transition: border-color .2s;
}
.place-comment-textarea:focus { border-color: var(--accent); outline: none; }
.place-comment {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: .6rem .75rem; margin-bottom: .5rem; transition: border-color .2s;
}
.place-comment:hover { border-color: var(--hover-border); }
.place-comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .25rem; }
.place-comment-date { font-size: .7rem; color: var(--muted); }
.place-comment-delete {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: .9rem; padding: 0 .3rem; opacity: 0; transition: all .15s;
}
.place-comment:hover .place-comment-delete { opacity: 1; }
.place-comment-delete:hover { color: var(--error); }
.place-comment-text { font-size: .85rem; line-height: 1.5; color: #ddd; white-space: pre-wrap; word-break: break-word; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* ========== Instagram Content Approval ========== */
.ig-stats-row { grid-template-columns: repeat(5, 1fr); }

/* Upload zone */
.ig-upload-section { padding: 0 2rem 1rem; }
.ig-dropzone { border: 2px dashed var(--border); border-radius: 12px; padding: 2rem; text-align: center; cursor: pointer; transition: all .2s; }
.ig-dropzone:hover, .ig-dropzone.ig-dragover { border-color: var(--accent); background: rgba(200,255,0,.03); }
.ig-dropzone-icon { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
.ig-dropzone p { color: var(--muted); font-size: .9rem; }
.ig-progress { width: 100%; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin: 1rem 0; }
.ig-progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s; width: 0; }
.ig-upload-status { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0; }
.ig-file-label { color: var(--accent); cursor: pointer; text-decoration: underline; }

.ig-upload-preview { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.ig-preview-images { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ig-preview-images img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.ig-upload-form { display: flex; flex-direction: column; gap: .5rem; }
.ig-upload-form select, .ig-upload-form textarea, .ig-upload-form input { padding: .5rem .75rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: .85rem; }
.ig-upload-form textarea { resize: vertical; font-family: inherit; }
.ig-upload-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Shared filter button styles */
.filter-btn { background: none; border: 1px solid var(--border); color: var(--muted); padding: .4rem .9rem; font-size: .8rem; cursor: pointer; transition: all .2s; }
.filter-btn:first-child { border-radius: 8px 0 0 8px; }
.filter-btn:last-child { border-radius: 0 8px 8px 0; }
.filter-btn:not(:last-child) { border-right: none; }
.filter-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }
.filter-btn:hover:not(.active) { color: var(--text); border-color: var(--hover-border); }

/* Shared empty state */
.empty-state { text-align: center; padding: 3rem; color: var(--muted); font-size: 1rem; }

/* Filter bar */
.ig-filters { display: flex; justify-content: space-between; align-items: center; padding: 0 2rem 1rem; gap: 1rem; flex-wrap: wrap; }
.ig-filter-tabs { display: flex; gap: 0; }
.ig-filter-btn { background: none; border: 1px solid var(--border); color: var(--muted); padding: .4rem .9rem; font-size: .8rem; cursor: pointer; transition: all .2s; }
.ig-filter-btn:first-child { border-radius: 8px 0 0 8px; }
.ig-filter-btn:last-child { border-radius: 0 8px 8px 0; }
.ig-filter-btn:not(:last-child) { border-right: none; }
.ig-filter-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }
.ig-filter-btn:hover:not(.active) { color: var(--text); border-color: var(--hover-border); }
.ig-filters select { padding: .4rem .75rem; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: .8rem; }

/* Card grid */
.ig-grid { padding: 0 2rem 2rem; }
.ig-grid-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ig-section-header { margin-bottom: .75rem; }
.ig-section-header h3 { font-size: var(--text-md); font-weight: 600; margin-bottom: .15rem; }
.ig-section-header .muted { font-size: var(--text-xs); }
.ig-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; transition: all .2s; }
.ig-card:hover { border-color: var(--hover-border); transform: translateY(-2px); }
.ig-card-selected { border-color: var(--accent) !important; box-shadow: 0 0 0 2px var(--accent-dim); }

.ig-card-media { position: relative; aspect-ratio: 1; background: var(--surface-1); overflow: hidden; }
.ig-card-media img { width: 100%; height: 100%; object-fit: cover; }
.ig-no-media { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 3rem; color: var(--muted); background: var(--surface-1); }
.ig-media-count { position: absolute; top: .5rem; right: .5rem; background: rgba(0,0,0,.7); color: #fff; padding: .2rem .5rem; border-radius: 4px; font-size: .7rem; }
.ig-type-badge { position: absolute; top: .5rem; left: .5rem; background: rgba(0,0,0,.7); padding: .2rem .4rem; border-radius: 4px; font-size: .75rem; }

.ig-card-body { padding: .75rem; }
.ig-status { display: inline-block; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: .15rem .5rem; border-radius: 4px; margin-bottom: .4rem; }
.ig-status-draft { background: var(--surface-5); color: var(--muted); }
.ig-status-pending { background: rgba(245,158,11,.15); color: var(--warning); }
.ig-status-approved { background: rgba(34,197,94,.15); color: var(--success); }
.ig-status-posted { background: rgba(59,130,246,.15); color: var(--info); }
.ig-status-rejected { background: rgba(239,68,68,.15); color: var(--error); }
.ig-status-caption_review { background: rgba(168,85,247,.15); color: var(--purple); }
.ig-status-posting { background: rgba(59,130,246,.25); color: var(--info); animation: pulse-status 1.5s ease-in-out infinite; }
.ig-status-generating_caption { background: var(--purple-dim); color: var(--purple); animation: pulse-status 1.5s ease-in-out infinite; }
@keyframes pulse-status { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

.ig-caption-preview { font-size: .8rem; color: #ccc; line-height: 1.4; margin: .3rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ig-hashtags-preview { font-size: .7rem; color: var(--accent); opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-location { font-size: .7rem; color: var(--muted); margin-top: .2rem; }
.ig-scheduled { font-size: .7rem; color: var(--muted); margin-top: .3rem; }
.ig-posted-time { font-size: .75rem; color: var(--success); margin-top: .3rem; font-weight: 500; }
.ig-posted-time .muted { font-size: .65rem; font-weight: 400; }
.ig-publisher-note { font-size: .65rem; color: var(--muted); margin-top: .15rem; font-style: italic; }
.ig-card-pool { border-left: 3px solid var(--surface-5); }
.ig-card-pool .ig-card-body { padding: .5rem .75rem; }
.ig-status-pool { background: var(--surface-3); color: var(--muted); }
.ig-notes-preview { font-size: .8rem; color: #ccc; line-height: 1.3; margin: .2rem 0; }
.ig-card-posted { border-left: 3px solid var(--success); }
.ig-posted-badge { position: absolute; top: 8px; right: 8px; background: var(--success); color: #000; font-size: .6rem; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; letter-spacing: .5px; }
.ig-slot-badge { position: absolute; bottom: 8px; left: 8px; background: var(--purple, #a855f7); color: #fff; font-size: .55rem; font-weight: 600; padding: .15rem .5rem; border-radius: 4px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-publish-details { background: var(--surface-1); border: 1px solid var(--success); border-radius: 10px; padding: 1rem; margin: 1rem 0; }
.ig-publish-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .75rem; }
.ig-publish-item { display: flex; flex-direction: column; gap: .1rem; }
.ig-publish-label { font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.ig-publish-value { font-size: .85rem; color: var(--text); }
.ig-feedback-source { font-size: .6rem; background: var(--surface-3); padding: .1rem .4rem; border-radius: 3px; color: var(--accent); }
.ig-live-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .5rem; }
.ig-live-stat { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem .4rem; background: var(--surface-2); border-radius: 8px; }
.ig-live-stat-icon { font-size: 1.2rem; }
.ig-live-stat-val { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.ig-live-stat-label { font-size: .6rem; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.ig-action-btn.ig-ai { background: var(--purple-dim); }
.ig-action-btn.ig-ai:hover { background: var(--purple); color: #fff; }
.ig-action-btn.ig-post-now { background: var(--info-dim); }
.ig-action-btn.ig-post-now:hover { background: var(--info); color: #fff; }

.ig-card-actions { display: flex; border-top: 1px solid var(--border); }
.ig-action-btn { flex: 1; background: none; border: none; border-right: 1px solid var(--border); padding: .5rem; cursor: pointer; font-size: .85rem; transition: background .15s; color: var(--text); }
.ig-action-btn:last-child { border-right: none; }
.ig-action-btn:hover { background: var(--surface-3); }
.ig-action-btn.ig-approve:hover { background: rgba(34,197,94,.1); }
.ig-action-btn.ig-reject:hover { background: rgba(239,68,68,.1); }
.ig-action-btn.ig-delete:hover { background: rgba(239,68,68,.15); }

.ig-empty { grid-column: 1/-1; text-align: center; padding: 3rem; color: var(--muted); font-size: 1rem; }

/* Upload preview inline */
.ig-upload-preview-inline { text-align: left; }
.ig-preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.ig-type-indicator { background: var(--accent-dim); color: var(--accent); padding: .3rem .8rem; border-radius: 20px; font-size: .85rem; font-weight: 600; }
.ig-preview-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.ig-preview-thumb-wrap { position: relative; }
.ig-preview-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.ig-preview-remove { position: absolute; top: -6px; right: -6px; background: var(--error); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: .7rem; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; }
.ig-preview-remove:hover { background: #dc2626; }
.ig-multi-choice { padding: 1rem 0; }

/* Carousel thumbnail strip in cards */
.ig-carousel-strip { display: flex; gap: 3px; padding: 4px 6px; background: var(--surface-1); overflow-x: auto; }
.ig-carousel-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.ig-carousel-more { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--card); border-radius: 4px; font-size: .75rem; color: var(--muted); flex-shrink: 0; }

/* Schedule options */
.ig-schedule-options { margin-top: 1rem; }

/* Carousel slider */
.ig-slider { position: relative; overflow: hidden; border-radius: 10px; background: #000; margin-bottom: 1rem; }
.ig-slider-track { display: flex; transition: transform .3s ease; }
.ig-slider-slide { min-width: 100%; display: flex; align-items: center; justify-content: center; }
.ig-slider-slide img, .ig-slider-slide video { width: 100%; max-height: 400px; object-fit: contain; }
.ig-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.55); color: #fff; border: none; font-size: 1.8rem; line-height: 1; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; transition: background .2s; }
.ig-slider-arrow:hover { background: rgba(0,0,0,.8); }
.ig-slider-prev { left: 8px; }
.ig-slider-next { right: 8px; }
.ig-slider-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 6px; }
.ig-slider-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.ig-slider-dot.active { background: var(--accent, #C8FF00); transform: scale(1.3); }
.ig-slider-counter { position: absolute; top: 10px; right: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; padding: 3px 10px; border-radius: 20px; z-index: 2; }

/* Edit modal extras */
.ig-edit-media { margin-bottom: 1rem; text-align: center; }
.ig-edit-form label { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; margin: .5rem 0 .2rem; }
.ig-feedback-history { max-height: 150px; overflow-y: auto; }
.ig-feedback-item { font-size: .8rem; padding: .3rem 0; border-bottom: 1px solid var(--border); }

@media (max-width: 1024px) { .ig-grid-inner { grid-template-columns: repeat(2, 1fr); } }
/* n8n status badges */
.ig-n8n-status { font-size:.7rem; padding:2px 8px; border-radius:4px; text-align:center; font-weight:600; margin:0 .5rem .25rem; }
.ig-n8n-queued { background:var(--info); color:#fff; }
.ig-n8n-scheduled { background:var(--purple); color:#fff; }
.ig-n8n-posting { background:var(--warning); color:#000; }
.ig-n8n-posted { background:var(--success); color:#000; }
.ig-n8n-failed { background:var(--error); color:#fff; }
.ig-n8n-error { font-size:.65rem; color:var(--error); padding:0 .5rem .25rem; text-align:center; }

@media (max-width: 768px) {
  .ig-grid-inner { grid-template-columns: 1fr; }
  .ig-stats-row { grid-template-columns: repeat(2, 1fr); }
  .ig-upload-section, .ig-filters, .ig-grid { padding-left: 1rem; padding-right: 1rem; }
}

/* ========== Instagram Strategy Panel ========== */
.ig-section-explainer { margin: 0 1.5rem 1rem; padding: 12px 16px; background: var(--surface-1, #1a1a1a); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.ig-section-explainer strong { color: var(--text-primary, #e0e0e0); font-size: 0.85rem; }
.ig-section-explainer em { color: var(--accent); font-style: normal; font-weight: 600; }
.ig-strategy-section { margin: 0 1.5rem 1rem; }
.ig-strategy-toggle { display: flex; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: .75rem 1.25rem; cursor: pointer; font-size: 1rem; font-weight: 600; transition: background .2s; }
.ig-strategy-toggle:hover { background: var(--surface-3); }
.ig-strategy-arrow { font-size: .8rem; color: var(--muted); transition: transform .2s; }
.ig-strategy-panel { margin-top: .5rem; animation: fadeIn .2s; }
.ig-strategy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 1rem; }

.strat-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.strat-card-wide { grid-column: 1 / -1; }
.strat-card-header { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; cursor: pointer; border-bottom: 1px solid var(--border); }
.strat-card-header h3 { font-size: .95rem; font-weight: 600; }
.strat-toggle { color: var(--muted); font-size: .85rem; }
.strat-collapsed .strat-card-body { display: none; }
.strat-collapsed .strat-toggle { transform: rotate(0); }
.strat-card-body { padding: 1rem; }

.strat-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.strat-table th { text-align: left; padding: .4rem .5rem; color: var(--muted); border-bottom: 1px solid var(--border); font-weight: 500; }
.strat-table td { padding: .4rem .5rem; border-bottom: 1px solid var(--surface-3); }

.strat-pillar { margin-bottom: .75rem; }
.strat-pillar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .25rem; font-size: .85rem; }
.strat-pct { color: var(--accent); font-weight: 700; }
.strat-pillar-bar { height: 6px; background: var(--surface-4); border-radius: 3px; overflow: hidden; }
.strat-pillar-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }
.strat-pillar-desc { font-size: .78rem; color: var(--muted); margin-top: .2rem; }

.strat-hashtag-set { margin-bottom: .75rem; }
.strat-hashtag-set strong { font-size: .82rem; display: block; margin-bottom: .25rem; }
.strat-hashtags { font-size: .78rem; color: #7B93DB; background: var(--surface-1); border: 1px solid var(--surface-3); border-radius: 8px; padding: .5rem .75rem; cursor: pointer; position: relative; word-break: break-all; transition: border-color .2s; }
.strat-hashtags:hover { border-color: var(--accent); }
.strat-copy-hint { display: none; position: absolute; top: -1.5rem; right: .5rem; font-size: .7rem; color: var(--muted); }
.strat-hashtags:hover .strat-copy-hint { display: block; }
.strat-hashtags.strat-copied { border-color: var(--success); }
.strat-hashtags.strat-copied::after { content: '\2713 Copied!'; position: absolute; top: -1.5rem; right: .5rem; font-size: .7rem; color: var(--success); }

.strat-times-grid { display: flex; flex-direction: column; gap: .4rem; }
.strat-time-row { display: flex; align-items: center; gap: .75rem; font-size: .82rem; padding: .35rem 0; border-bottom: 1px solid var(--surface-3); }
.strat-time-day { font-weight: 600; min-width: 90px; }
.strat-time-val { color: var(--accent); font-weight: 500; min-width: 120px; }
.strat-time-note { color: var(--muted); font-size: .75rem; }
.strat-note { font-size: .8rem; color: var(--muted); margin-top: .75rem; padding: .5rem; background: var(--surface-1); border-radius: 8px; }

.strat-weeks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.strat-week h4 { font-size: .85rem; color: var(--accent); margin-bottom: .5rem; }
.strat-checklist { list-style: none; font-size: .8rem; }
.strat-checklist li { padding: .25rem 0; }
.strat-checklist label { display: flex; align-items: flex-start; gap: .4rem; cursor: pointer; }
.strat-checklist input[type="checkbox"] { accent-color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.strat-checklist input[type="checkbox"]:checked + span,
.strat-checklist label:has(input:checked) { text-decoration: line-through; color: var(--muted); }

@media (max-width: 600px) { .ig-strategy-grid { grid-template-columns: 1fr; } .strat-weeks-grid { grid-template-columns: 1fr; } }

/* Research Panel */
.research-header { margin-bottom: 1rem; }
.research-header h3 { font-size: 1.1rem; font-weight: 600; }
.research-weather-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.research-weather-day { background: var(--surface-3); border-radius: 8px; padding: 10px; text-align: center; font-size: .8rem; }
.research-weather-day strong { display: block; margin-bottom: 4px; font-size: .75rem; }
.research-temp { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin: 4px 0; }
.research-suitability { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.research-excellent .research-suitability { color: var(--success); }
.research-good .research-suitability { color: var(--accent); }
.research-poor .research-suitability { color: var(--error); }
.research-holiday-group { margin-bottom: .75rem; }
.research-holiday-group ul { margin: .3rem 0 0 1.2rem; font-size: .85rem; }
.research-holiday-group li { margin-bottom: .2rem; }
.research-perf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.research-perf-item { background: var(--surface-3); border-radius: 8px; padding: 12px; text-align: center; }
.research-perf-label { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.research-perf-val { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.research-top-posts { font-size: .85rem; margin-left: 1.2rem; }
.research-top-posts li { margin-bottom: .3rem; }

/* Instagram Analytics */
.ig-insights-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 1rem; }
.ig-insight-card { background: var(--card); border-radius: 12px; padding: 16px; text-align: center; border: 1px solid var(--border); }
.ig-insight-icon { font-size: 1.5rem; margin-bottom: 4px; }
.ig-insight-val { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.ig-insight-label { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.ig-insight-change { font-size: 0.85rem; font-weight: 600; margin-top: 4px; }

.ig-chart-container { background: var(--card); border-radius: 12px; padding: 16px; border: 1px solid var(--border); }
.ig-chart { display: flex; align-items: flex-end; gap: 2px; height: 150px; overflow-x: auto; }
.ig-chart-bar-group { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 12px; height: 100%; position: relative; display: flex; flex-direction: row; align-items: flex-end; gap: 1px; }
.ig-chart-bar { width: 6px; border-radius: 2px 2px 0 0; min-height: 1px; transition: height 0.3s; }
.ig-bar-impressions { background: var(--accent); }
.ig-bar-reach { background: #ff6b6b; }
.ig-chart-label { position: absolute; bottom: -18px; font-size: 0.55rem; color: var(--muted); white-space: nowrap; }
.ig-chart-legend { display: flex; gap: 16px; justify-content: center; margin-top: 24px; font-size: 0.8rem; color: var(--muted); }
.ig-legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }

.ig-top-posts { display: flex; flex-direction: column; gap: 8px; }
.ig-top-post { background: var(--card); border-radius: 10px; padding: 12px; border: 1px solid var(--border); cursor: pointer; transition: border-color 0.2s; }
.ig-top-post:hover { border-color: var(--accent); }
.ig-top-post-header { display: flex; gap: 12px; align-items: center; }
.ig-top-post-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.ig-top-post-thumb-placeholder { width: 64px; height: 64px; background: var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.ig-top-post-caption { font-size: 0.85rem; margin: 0 0 6px; line-height: 1.3; }
.ig-top-post-metrics { display: flex; gap: 10px; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; }
.ig-post-details { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); }
.ig-post-details p { margin: 4px 0; }

/* Weekly Content Calendar */
.cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cal-week { font-size: 1.1rem; font-weight: 600; color: var(--accent); }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.cal-card { background: var(--card); border-radius: 12px; padding: 1rem; transition: transform 0.15s; }
.cal-card:hover { transform: translateY(-2px); }
.cal-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.cal-card-header strong { font-size: 1rem; }
.cal-card-pillar { font-size: 0.85rem; font-weight: 600; margin-bottom: .4rem; }
.cal-card-type { font-size: 0.8rem; color: var(--muted); margin-bottom: .5rem; }
.cal-card-concept { font-size: 0.85rem; line-height: 1.4; margin-bottom: .5rem; }
.cal-card-caption { font-size: 0.8rem; color: var(--muted); font-style: italic; margin-bottom: .4rem; line-height: 1.3; }
.cal-card-hashtags { font-size: 0.75rem; color: var(--purple); margin-bottom: .3rem; }
.cal-card-notes { font-size: 0.8rem; color: var(--muted); padding-top: .4rem; border-top: 1px solid var(--border); }

/* ========== Monitoring Tab ========== */
.mon-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 1.5rem 2rem .5rem; gap: 1rem; }
.mon-title { font-size: 1.3rem; font-weight: 700; }
.mon-desc { color: var(--muted); font-size: .82rem; margin-top: .25rem; line-height: 1.4; }
.mon-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.mon-link:hover { text-decoration: underline; }
.mon-section { margin-bottom: .5rem; }
.mon-section-title { display: flex; align-items: center; gap: .5rem; padding: 0 2rem; }
.mon-section-title .section-title { padding: 0; }
.mon-info { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border); color: var(--muted); font-size: .65rem; font-style: italic; font-family: Georgia, serif; cursor: help; flex-shrink: 0; transition: all .2s; position: relative; }
.mon-info:hover { border-color: var(--accent); color: var(--accent); }

.mon-stats-5 { grid-template-columns: repeat(5, 1fr); }

.mon-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; margin: 0 2rem 1rem; }
.mon-card-header { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.mon-card-header h3 { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; flex: 1; }

.mon-legend { display: flex; gap: 1rem; margin-left: auto; flex-wrap: wrap; }
.mon-legend-item { display: flex; align-items: center; gap: .35rem; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.mon-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Charts */
.mon-chart { display: flex; align-items: flex-end; gap: 2px; height: 170px; padding-top: .5rem; }
.mon-chart-group { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 4px; height: 100%; }
.mon-chart-bars { display: flex; align-items: flex-end; gap: 2px; flex: 1; width: 100%; }
.mon-chart-dual { gap: 1px; }
.mon-chart-bar { flex: 1; border-radius: 3px 3px 0 0; transition: height .4s ease; min-height: 2px; position: relative; }
.mon-chart-bar:hover { opacity: .85; }
.mon-chart-bar .mon-bar-tooltip { display: none; position: absolute; top: -1.8rem; left: 50%; transform: translateX(-50%); background: var(--surface-5); color: #fff; font-size: .65rem; padding: .2rem .5rem; border-radius: 4px; white-space: nowrap; z-index: 10; pointer-events: none; }
.mon-chart-bar:hover .mon-bar-tooltip { display: block; }
.mon-chart-label { font-size: .6rem; color: var(--muted); white-space: nowrap; }

/* Stacked IG bar */
.mon-chart-bar.mon-stacked { display: flex; flex-direction: column; overflow: hidden; }
.mon-stack-likes { background: var(--accent); width: 100%; }
.mon-stack-comments { background: var(--purple); width: 100%; }

/* Table */
.mon-table { width: 100%; border-collapse: collapse; }
.mon-table th { text-align: left; padding: .5rem .5rem; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); border-bottom: 1px solid var(--border); }
.mon-table td { padding: .5rem .5rem; border-bottom: 1px solid var(--border); font-size: .82rem; }
.mon-table tr:hover td { background: var(--surface-3); }
.mon-post-id { font-family: 'SF Mono', 'Fira Code', monospace; color: var(--accent); font-size: .78rem; }

/* Status dot */
.mon-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Change badges */
.mon-change { display: inline-block; font-size: .7rem; font-weight: 600; padding: .1rem .4rem; border-radius: 10px; margin-left: .3rem; vertical-align: middle; }
.mon-positive { background: rgba(76,175,80,.15); color: var(--success); }
.mon-negative { background: rgba(244,67,54,.15); color: var(--error); }
.mon-neutral { background: rgba(136,136,136,.15); color: #888; }

/* GA weekly report cards */
.mon-report-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; margin-bottom: .75rem; }
.mon-report-card:last-child { margin-bottom: 0; }
.mon-report-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.mon-report-header strong { font-size: .95rem; }
.mon-report-badge { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: .15rem .5rem; border-radius: 4px; background: var(--accent-dim); color: var(--accent); }
.mon-report-metrics { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; margin-bottom: .5rem; }
.mon-report-metrics span { white-space: nowrap; }
.mon-report-devices { display: flex; gap: 1rem; font-size: .82rem; color: var(--muted); margin-bottom: .5rem; }
.mon-report-list { margin-top: .5rem; }
.mon-report-list-title { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: .3rem; font-weight: 600; }
.mon-report-list-item { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; padding: .2rem 0; border-bottom: 1px solid var(--surface-3); }
.mon-report-list-item:last-child { border-bottom: none; }
.mon-report-list-item code { color: var(--accent); font-size: .78rem; }
.mon-report-list-item em { font-style: normal; color: var(--muted); font-size: .78rem; }

/* IG posts header */
.mon-posts-header { font-size: .78rem; color: var(--muted); margin-bottom: .75rem; }

/* Engagement mini bar */
.mon-eng-cell { display: flex; align-items: center; gap: .5rem; }
.mon-eng-val { font-weight: 600; min-width: 1.5rem; font-size: .82rem; }
.mon-eng-bar { flex: 1; height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; min-width: 40px; }
.mon-eng-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }

/* ========== Ideas Board ========== */
.ideas-stats { grid-template-columns: repeat(5, 1fr); }

/* Input — collapsed */
.idea-input-collapsed {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem 1.25rem; margin: 0 2rem 1rem; color: var(--muted);
  cursor: text; transition: border-color .2s; font-size: .9rem;
}
.idea-input-collapsed:hover { border-color: var(--accent); }

/* Input — expanded */
.idea-input-expanded {
  background: var(--card); border: 1px solid var(--accent-dim); border-radius: 12px;
  padding: 1rem 1.25rem; margin: 0 2rem 1rem;
}
.idea-textarea {
  width: 100%; background: transparent; border: none; color: var(--text);
  font-size: .9rem; font-family: inherit; resize: none; outline: none; line-height: 1.5;
}
.idea-input-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: .75rem; gap: .5rem; flex-wrap: wrap;
}
.idea-input-left { display: flex; align-items: center; gap: .5rem; }
.idea-input-right { display: flex; align-items: center; gap: .5rem; }
.idea-icon-btn {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: .35rem .6rem; cursor: pointer; font-size: 1rem;
  transition: border-color .2s;
}
.idea-icon-btn:hover { border-color: var(--accent); }
.idea-status-picker {
  padding: .35rem .6rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: .8rem;
}

/* Image preview */
.idea-preview-wrap { position: relative; display: inline-block; margin-top: .5rem; }
.idea-preview-img { max-width: 200px; max-height: 150px; border-radius: 8px; display: block; }
.idea-preview-remove {
  position: absolute; top: -6px; right: -6px; background: var(--error); color: #fff;
  border: none; border-radius: 50%; width: 22px; height: 22px; font-size: .8rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.idea-preview-remove:hover { background: #dc2626; }

/* Filters */
.idea-filters {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 2rem 1rem; gap: 1rem; flex-wrap: wrap;
}
.idea-filter-tabs { display: flex; gap: 0; }
.idea-filter-btn {
  background: none; border: 1px solid var(--border); color: var(--muted);
  padding: .4rem .9rem; font-size: .8rem; cursor: pointer; transition: all .2s;
}
.idea-filter-btn:first-child { border-radius: 8px 0 0 8px; }
.idea-filter-btn:last-child { border-radius: 0 8px 8px 0; }
.idea-filter-btn:not(:last-child) { border-right: none; }
.idea-filter-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }
.idea-filter-btn:hover:not(.active) { color: var(--text); border-color: var(--hover-border); }
.idea-sort {
  padding: .4rem .75rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-size: .8rem;
}

/* Masonry Grid */
.ideas-masonry { column-width: 280px; column-gap: 1rem; padding: 0 2rem 2rem; }
.idea-card {
  break-inside: avoid; margin-bottom: 1rem; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  transition: border-color .2s, transform .18s ease-out, box-shadow .18s ease-out;
}
.idea-card:hover { border-color: var(--hover-border); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.idea-card-img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.idea-card-body { padding: 1rem; }
.idea-card-text { font-size: .88rem; color: #ddd; line-height: 1.5; margin: .5rem 0; white-space: pre-wrap; word-break: break-word; }
.idea-card-footer {
  display: flex; justify-content: space-between; align-items: center; margin-top: .5rem;
}
.idea-card-date { font-size: .72rem; color: var(--muted); }
.idea-card-actions { display: flex; gap: .25rem; opacity: 0; transition: opacity .2s; }
.idea-card:hover .idea-card-actions,
.idea-card:focus-within .idea-card-actions { opacity: 1; }
.idea-action-btn {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: .9rem; padding: .2rem .4rem; border-radius: 4px; transition: all .15s;
}
.idea-action-btn:hover { color: var(--text); background: var(--surface-4); }
.idea-action-delete:hover { color: var(--error); background: rgba(239,68,68,.1); }

/* Status pills */
.idea-status {
  display: inline-block; font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; padding: .15rem .5rem; border-radius: 4px;
}
.idea-status-spark { background: var(--accent-dim); color: var(--accent); }
.idea-status-exploring { background: rgba(59,130,246,.15); color: var(--info); }
.idea-status-ready { background: rgba(34,197,94,.15); color: var(--success); }
.idea-status-parked { background: var(--surface-5); color: var(--muted); }

/* Empty state */
.idea-empty { text-align: center; padding: 3rem; color: var(--muted); font-size: .95rem; }

/* New card animation */
@keyframes ideaAppear { from { opacity: 0; transform: scale(.95) translateY(8px); } to { opacity: 1; transform: none; } }
.idea-new { animation: ideaAppear .25s ease-out; }

/* FAB */
.idea-fab {
  display: none; position: fixed; bottom: 2rem; right: 2rem;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #000; border: none;
  font-size: 1.8rem; font-weight: 300; cursor: pointer;
  box-shadow: 0 4px 16px rgba(200,255,0,.3);
  transition: transform .15s, box-shadow .15s;
  z-index: 50; line-height: 1;
}
.idea-fab:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(200,255,0,.4); }

@media (max-width: 768px) {
  .ideas-stats { grid-template-columns: repeat(2, 1fr); }
  .ideas-masonry { padding: 0 1rem 2rem; column-width: 240px; }
  .idea-input-collapsed, .idea-input-expanded { margin-left: 1rem; margin-right: 1rem; }
  .idea-filters { padding: 0 1rem 1rem; }
  .idea-fab { display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 768px) {
  .mon-stats-5 { grid-template-columns: repeat(2, 1fr); }
  .mon-card { margin-left: 1rem; margin-right: 1rem; }
  .mon-header { padding: 1rem; }
  .mon-section-header { padding: 0 1rem; }
  .mon-report-metrics { gap: .5rem; }
}

/* ========== Instagram Notifications ========== */
.ig-notif-header { padding: .5rem 0 .75rem; }
.ig-notif-stats { display: flex; gap: .75rem; margin-bottom: .5rem; }
.ig-notif-stat { font-size: .85rem; color: var(--muted); }
.ig-notif-stat-unread { color: var(--info); font-weight: 600; }
.ig-notif-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.ig-notif-pill { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .6rem; border-radius: 20px; font-size: .75rem; background: var(--surface-3); border: 1px solid var(--border); cursor: pointer; transition: all .15s; }
.ig-notif-pill:hover { background: #252525; }
.ig-notif-pill-active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }
.ig-notif-pill-count { font-size: .7rem; opacity: .7; }
.ig-notif-list { max-height: 500px; overflow-y: auto; }
.ig-notif-date-header { font-size: .75rem; color: var(--muted); font-weight: 600; padding: .5rem 0 .25rem; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--surface-3); margin-bottom: .25rem; }
.ig-notif-item { display: flex; align-items: flex-start; gap: .6rem; padding: .5rem .25rem; border-bottom: 1px solid var(--surface-1); transition: background .15s; }
.ig-notif-item:hover { background: var(--surface-3); border-radius: 8px; }
.ig-notif-unread { background: rgba(59, 130, 246, 0.06); }
.ig-notif-unread .ig-notif-title { font-weight: 600; }
.ig-notif-icon { font-size: 1.1rem; flex-shrink: 0; width: 1.5rem; text-align: center; padding-top: .1rem; }
.ig-notif-body { flex: 1; min-width: 0; }
.ig-notif-title { font-size: .85rem; line-height: 1.3; }
.ig-notif-text { font-size: .78rem; color: var(--muted); line-height: 1.3; margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 500px; }
.ig-notif-time { font-size: .7rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; padding-top: .15rem; }

/* ========== Feed Browse Sessions ========== */
.ig-session-stats { display: flex; gap: .5rem; margin-bottom: .75rem; flex-wrap: wrap; }
.ig-session-stat-card { background: var(--surface-3); border: 1px solid var(--border); border-radius: 10px; padding: .5rem .75rem; text-align: center; flex: 1; min-width: 80px; }
.ig-session-stat-val { font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.ig-session-stat-label { font-size: .7rem; color: var(--muted); margin-top: .1rem; }
.ig-session-list { max-height: 70vh; overflow-y: auto; }
.ig-session-row { border-bottom: 1px solid var(--surface-1); padding: .5rem .25rem; transition: background .15s; }
.ig-session-row:hover { background: var(--surface-3); border-radius: 8px; }
.ig-session-header { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; cursor: pointer; }
.ig-session-date { font-size: .85rem; font-weight: 600; min-width: 80px; }
.ig-session-badge { font-size: .75rem; background: var(--surface-4); padding: .15rem .4rem; border-radius: 6px; }
.ig-session-details { padding: .75rem .5rem .5rem; max-height: 60vh; overflow-y: auto; }
.ig-session-like { display: flex; flex-direction: column; gap: .15rem; font-size: .85rem; padding: .5rem .75rem; margin-bottom: .35rem; background: var(--surface-2); border-radius: 8px; border-left: 3px solid var(--accent); }
.ig-session-like span:first-child { font-weight: 700; color: var(--text); font-size: .9rem; }
.ig-session-reason { color: var(--accent); font-size: .8rem; }
.ig-session-caption { color: var(--muted); font-size: .82rem; line-height: 1.4; white-space: normal; word-break: break-word; }
.ig-session-tt-summary { display: flex; flex-wrap: wrap; gap: .35rem; padding: .25rem 0; }
.ig-session-tt-chip { font-size: .75rem; padding: .2rem .5rem; background: var(--surface-3); border: 1px solid rgba(105,201,208,.3); border-radius: 6px; color: var(--muted); }

/* Max-width container */
.app-content { max-width: 1440px; margin: 0 auto; }

/* Focus styles */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== Today Dashboard ========== */
.stat-val { font-size: 1.6rem; font-weight: 700; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-note { color: var(--muted); font-size: .75rem; margin-top: .2rem; }
.today-actions .stats-row { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
  .today-actions .stats-row { grid-template-columns: 1fr; }
}

/* ========== Tab Badges ========== */
.tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9999px; background: var(--accent); color: #000;
  font-size: .65rem; font-weight: 700; margin-left: .4rem;
  vertical-align: middle; line-height: 1;
}

/* ========== Instagram Sub-Tabs ========== */
.ig-sub-tabs {
  display: flex; gap: 0; padding: 0 2rem; border-bottom: 1px solid var(--border);
  margin-bottom: .5rem;
}
.ig-sub-tab {
  background: none; border: none; color: var(--muted);
  padding: .6rem 1rem; font-size: .85rem; font-weight: 600;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: all .2s; text-decoration: none; white-space: nowrap;
}
.ig-sub-tab:hover { color: var(--text); }
.ig-sub-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ========== Page Loading Spinner ========== */
.page-loading {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: var(--bg);
}
.page-loading-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--surface-4);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: page-spin 0.6s linear infinite;
}
@keyframes page-spin { to { transform: rotate(360deg); } }

/* ========== Toast Notifications ========== */
.ig-toast {
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 9999;
  padding: .75rem 1.25rem; border-radius: 10px;
  background: #1a1a2e; color: #C8FF00; border: 1px solid #C8FF00;
  font-size: .95rem; font-weight: 500;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .3s, transform .3s;
  pointer-events: none; max-width: 400px;
}
.ig-toast-show { opacity: 1; transform: translateY(0); }

/* ========== Stat Card Links (Today Quick Actions) ========== */
a.stat-card-link {
  display: block; text-decoration: none; color: inherit; cursor: pointer;
}
a.stat-card-link:hover { border-color: var(--accent); }

/* ========== Plan Progress ========== */
.plan-progress-bar {
  width: 100%; height: 6px; border-radius: 3px;
  background: var(--surface-2); margin: .5rem 0 .25rem;
}
.plan-progress-fill {
  height: 100%; border-radius: 3px; background: var(--accent);
  transition: width .3s ease;
}

/* ========== Week Review ========== */
.week-review-toolbar { display: flex; gap: .5rem; margin-bottom: 1rem; }
.week-review-grid { display: flex; flex-direction: column; gap: .75rem; }
.week-review-day { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.week-review-day-header { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; background: var(--surface-2); font-size: var(--text-sm); }
.week-review-day-label { font-weight: 600; min-width: 140px; }
.week-review-day-type { color: var(--muted); }
.week-review-day-status { margin-left: auto; padding: .15rem .5rem; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; }
.week-review-status-review { background: var(--warning-dim); color: var(--warning); }
.week-review-status-generating { background: var(--info-dim); color: var(--info); }
.week-review-status-approved { background: var(--success-dim); color: var(--success); }
.week-review-status-posted { background: var(--success-dim); color: var(--success); }
.week-review-status-draft { background: var(--surface-3); color: var(--muted); }
.week-review-status-missing { background: var(--error-dim); color: var(--error); }
.week-review-day-top { display: flex; gap: 1rem; padding: .75rem 1rem; align-items: center; }
.week-review-day-time { color: var(--muted); font-size: var(--text-xs); }
.week-review-media { flex-shrink: 0; }
.week-review-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.week-review-thumb-placeholder { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: var(--surface-3); border-radius: var(--radius-sm); font-size: 1.5rem; }
.week-review-day-caption { padding: 0 1rem .75rem; }
.week-review-caption { font-size: var(--text-sm); line-height: 1.5; white-space: pre-line; margin-bottom: .5rem; }
.week-review-hashtags { font-size: var(--text-xs); color: var(--info); line-height: 1.4; word-break: break-all; }
.week-review-actions { display: flex; gap: .35rem; flex-shrink: 0; margin-left: auto; }
.week-review-needs-media { border-color: var(--error); opacity: .7; }
.week-review-needs-media .week-review-day-body { padding: .75rem 1rem; }

/* ========== Bookings ========== */
.booking-filter-tabs { display: flex; gap: .25rem; }
.booking-filter-btn {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--muted); padding: .4rem .9rem; font-size: var(--text-sm); cursor: pointer; transition: all .2s;
}
.booking-filter-btn:hover { border-color: var(--accent); color: var(--text); }
.booking-filter-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }

.booking-status {
  display: inline-block; padding: .2rem .6rem; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600; text-transform: capitalize;
}
.booking-pending { background: var(--warning-dim); color: var(--warning); }
.booking-confirmed { background: var(--success-dim); color: var(--success); }
.booking-cancelled { background: var(--error-dim); color: var(--error); }

tr.booking-past td { opacity: 0.5; }
tr.booking-past:hover td { opacity: 0.8; }

/* ── Fleet ── */
.fleet-bike-card { cursor: pointer; transition: border-color .2s; }
.fleet-bike-card:hover { border-color: var(--accent); }
.fleet-bike-plate { font-size: var(--text-sm); font-weight: 600; color: var(--text); background: var(--surface-4); display: inline-block; padding: 1px var(--space-2); border-radius: var(--radius-sm); margin-top: var(--space-1); letter-spacing: 1px; }
.fleet-bike-odo { font-size: var(--text-xl); font-weight: 700; color: var(--accent); margin: var(--space-2) 0; }
.fleet-bike-model { font-size: var(--text-xs); color: var(--muted); }
.fleet-status-active { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .5px; color: var(--success); margin-top: var(--space-2); }
.fleet-status-maint { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .5px; color: var(--warning); margin-top: var(--space-2); }
.fleet-status-retired { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-top: var(--space-2); }
.fleet-overdue-badge { font-size: var(--text-xs); color: var(--error); font-weight: 600; margin-top: var(--space-1); }
.fleet-maint-overdue { color: var(--error); font-weight: 600; }
.fleet-maint-soon { color: var(--warning); font-weight: 600; }
.fleet-maint-ok { color: var(--success); }
.fleet-maint-desc { font-size: var(--text-xs); color: var(--muted); }
.fleet-log-btn { background: var(--accent); color: #000; border: none; padding: .3rem .7rem; border-radius: var(--radius-sm); cursor: pointer; font-size: var(--text-xs); font-weight: 600; }
.fleet-log-btn:hover { filter: brightness(0.9); }
.fleet-modal-section { margin-top: var(--space-6); }
.fleet-modal-section h3 { font-size: var(--text-base); margin-bottom: var(--space-3); color: var(--text); }
.fleet-modal-table { width: 100%; }
.fleet-modal-table th, .fleet-modal-table td { padding: var(--space-2) var(--space-3); text-align: left; font-size: var(--text-sm); }
.fleet-inline-form { display: flex; align-items: center; gap: var(--space-2); }
.fleet-inline-form input { width: 120px; }
.fleet-log-form { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.fleet-log-form select, .fleet-log-form input { font-size: var(--text-sm); }
.fleet-log-form input[type="number"] { width: 100px; }
.fleet-log-form input[type="text"] { width: 160px; }
.fleet-tyre-note { font-size: var(--text-xs); color: var(--muted); margin-top: var(--space-3); padding: 0 var(--space-2); }
.fleet-item-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.fleet-item-link:hover { text-decoration: underline; }
.fleet-details-block { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-4); font-size: var(--text-sm); line-height: 1.7; color: var(--text); white-space: pre-line; margin-top: var(--space-4); }
.fleet-maint-interval { font-size: var(--text-sm); color: var(--accent); margin-bottom: var(--space-2); }
.fleet-video-link { display: inline-block; background: var(--error); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 600; text-decoration: none; margin-top: var(--space-2); }
.fleet-video-link:hover { filter: brightness(1.15); }
.fleet-video-link::before { content: "\25B6\00a0"; }

/* ===== Stories sub-page ===== */
.story-status { padding: .75rem 1rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: .95rem; }
.story-status.warn { border-color: var(--warning); background: rgba(245, 158, 11, .08); color: var(--warning); }
.story-status.error { border-color: var(--error); background: rgba(239, 68, 68, .08); color: var(--error); }
.story-row { display: flex; align-items: center; gap: 1rem; padding: .75rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-1); margin-bottom: .5rem; }
.story-thumb { width: 72px; height: 96px; object-fit: cover; border-radius: 6px; background: var(--surface-2); flex-shrink: 0; }
.story-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .7rem; font-weight: 600; text-transform: uppercase; background: var(--surface-3); color: var(--muted); width: fit-content; }
.tag-ok { background: rgba(34, 197, 94, .12); color: var(--success); }
.tag-warn { background: rgba(245, 158, 11, .12); color: var(--warning); }
