/* ══════════════════════════════════════════════
   OZKIZ Amazon Manager - Professional Dashboard
   White sidebar, collapsible, mobile-friendly
   ══════════════════════════════════════════════ */

:root {
    --bg-dark: #f5f7fa;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-input: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --accent: #4f46e5;
    --accent-hover: #6366f1;
    --accent-light: rgba(79,70,229,0.08);
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;
    --text: #1e293b;
    --text-dim: #475569;
    --text-muted: #94a3b8;
    --sidebar-text: #334155;
    --sidebar-muted: #94a3b8;
    --sidebar-section: #64748b;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    display: flex;
    min-height: 100vh;
}

/* ══════════════════════════════════════════════
   SIDEBAR - White, Clean, Collapsible
   ══════════════════════════════════════════════ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.25s ease, transform 0.25s ease;
    box-shadow: 1px 0 4px rgba(0,0,0,0.03);
}

/* Sidebar top row (logo + close button) */
.sidebar-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar .logo { padding: 0; }
.sidebar .logo h2 {
    font-size: 1.3em;
    color: var(--accent);
    font-weight: 700;
}
.sidebar .logo span {
    font-size: 0.72em;
    color: var(--sidebar-muted);
    display: block;
    margin-top: 2px;
}

.sidebar-close-btn {
    background: none;
    border: none;
    font-size: 1.4em;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
    transition: all 0.15s;
    line-height: 1;
}
.sidebar-close-btn:hover {
    background: var(--bg-input);
    color: var(--text);
}

/* Nav groups */
.sidebar .nav-group {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.sidebar .nav-group:last-of-type { border-bottom: none; }

.sidebar .nav-group-title {
    padding: 0 20px;
    font-size: 0.65em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sidebar-section);
    margin-bottom: 6px;
    font-weight: 600;
}

/* Nav items */
.sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.88em;
    cursor: pointer;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    font-weight: 450;
}

.sidebar .nav-item:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.sidebar .nav-item.active {
    background: var(--accent);
    color: #ffffff;
    border-left-color: var(--accent);
    font-weight: 600;
    border-radius: 0 8px 8px 0;
    margin-right: 8px;
}

.sidebar .nav-item .icon {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

.sidebar .nav-item .badge-count {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 0.7em;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
}

/* Sidebar footer */
.sidebar-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85em;
}
.sidebar-footer a:hover { color: #f87171; }

/* ── Sidebar Collapsed (desktop) ── */
.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
    overflow: hidden;
}

.content.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width) !important;
}

/* ── Sidebar Overlay (mobile) ── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
    transition: opacity 0.25s;
    opacity: 0;
}
.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* ── Hamburger Button ── */
.hamburger-btn {
    display: none; /* hidden on desktop by default, shown on mobile + when collapsed */
    background: none;
    border: 1px solid var(--border);
    font-size: 1.2em;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    line-height: 1;
}
.hamburger-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}

/* Show hamburger when sidebar is collapsed (desktop) */
.sidebar-collapsed ~ .hamburger-btn,
.content.sidebar-collapsed .hamburger-btn {
    display: inline-flex;
}

/* ── Main Content ── */
.content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    transition: margin-left 0.25s ease;
}

/* ── Top Header ── */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-header h1 { font-size: 1.2em; font-weight: 600; }
.top-header .header-actions { display: flex; align-items: center; gap: 12px; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 600;
}

.status-pill.running { background: rgba(16,185,129,0.15); color: var(--success); }
.status-pill.stopped { background: rgba(239,68,68,0.15); color: var(--danger); }

.status-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: currentColor; animation: pulse 2s infinite;
}

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

/* ── Pages ── */
.page { display: none; padding: 24px 28px; }
.page.active { display: block; }

/* ── Metric Cards ── */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.metric-card .metric-label { font-size: 0.78em; color: var(--text-muted); margin-bottom: 8px; }
.metric-card .metric-value { font-size: 1.8em; font-weight: 700; letter-spacing: -1px; }
.metric-card .metric-change { font-size: 0.78em; margin-top: 8px; }
.metric-card .metric-change.up { color: var(--success); }
.metric-card .metric-change.down { color: var(--danger); }
.metric-card .metric-icon { position: absolute; top: 16px; right: 16px; font-size: 1.8em; opacity: 0.15; }

/* ── Panels ── */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
}

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

.panel-header h3 { font-size: 0.95em; font-weight: 600; }
.panel-body { padding: 20px; }
.panel-body.no-pad { padding: 0; }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85em; }

.data-table th {
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.data-table tr:hover td { background: #f8fafc; }
.data-table tr:last-child td { border-bottom: none; }

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-info { background: rgba(59,130,246,0.15); color: var(--info); }
.badge-neutral { background: rgba(148,163,184,0.15); color: var(--text-muted); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.84em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    color: #fff;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-success { background: var(--success); }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); }
.btn-warning { background: var(--warning); color: #000; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-dim); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 5px 12px; font-size: 0.78em; }
.btn-lg { padding: 12px 24px; font-size: 0.95em; }

/* ── Form ── */
.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.88em;
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.form-label { display: block; font-size: 0.8em; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.form-group { margin-bottom: 16px; }

/* ── Product Cards ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}
.product-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(99,102,241,0.15); }

.product-card .product-img {
    height: 180px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card .product-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.product-card .product-info { padding: 14px; }
.product-card .product-name {
    font-size: 0.85em;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .product-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.product-card .product-price { font-weight: 700; color: var(--accent); }
.product-card .product-actions { display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--border); }

/* ── Alerts ── */
.alert-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f1f5f9; }
.alert-item:last-child { border-bottom: none; }

.alert-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.alert-dot.critical { background: var(--danger); }
.alert-dot.high { background: var(--warning); }
.alert-dot.medium { background: var(--info); }
.alert-dot.low { background: var(--success); }

.alert-content { flex: 1; }
.alert-title { font-size: 0.88em; font-weight: 500; }
.alert-desc { font-size: 0.78em; color: var(--text-muted); margin-top: 4px; }
.alert-time { font-size: 0.72em; color: var(--text-muted); white-space: nowrap; }

/* ── Log Viewer ── */
.log-viewer {
    background: #1e293b;
    color: #4ade80;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    font-size: 0.75em;
    line-height: 1.6;
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* ── Engine Jobs ── */
.engine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }

.engine-job {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.engine-job .job-info { flex: 1; }
.engine-job .job-name { font-size: 0.85em; font-weight: 500; }
.engine-job .job-schedule { font-size: 0.72em; color: var(--text-muted); }
.engine-job .job-status { font-size: 0.72em; margin-top: 2px; }

/* ── Tab Bar ── */
.tab-bar { display: flex; border-bottom: 1px solid var(--border); padding: 0 20px; gap: 0; overflow-x: auto; }

.tab-btn {
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Customer Message ── */
.msg-item { display: flex; gap: 14px; padding: 16px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: background 0.15s; }
.msg-item:hover { background: rgba(99,102,241,0.04); }

.msg-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85em; flex-shrink: 0;
}

.msg-body { flex: 1; min-width: 0; }
.msg-header { display: flex; justify-content: space-between; align-items: center; }
.msg-sender { font-size: 0.85em; font-weight: 600; }
.msg-time { font-size: 0.72em; color: var(--text-muted); }
.msg-preview { font-size: 0.8em; color: var(--text-dim); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Todo Items ── */
.todo-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #f1f5f9; }
.todo-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.todo-item label { font-size: 0.85em; cursor: pointer; flex: 1; }

/* ── Loading ── */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,17,23,0.7);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.loading-overlay.show { display: flex; }

.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--text); margin-top: 16px; font-size: 0.9em; }

/* ── Grid Layouts ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }

/* ── Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    align-items: center;
    justify-content: center;
}
.modal-overlay.show { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 1em; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.3em; cursor: pointer; }
.modal-body { padding: 24px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--border); }

/* ── Empty ── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 2.5em; margin-bottom: 12px; opacity: 0.4; }

/* ── Settings ── */
.settings-section { margin-bottom: 24px; }
.settings-section h4 { font-size: 0.9em; color: var(--accent); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings-grid .full-width { grid-column: 1 / -1; }
.field-wrap { position: relative; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Flash (login) ── */
.flash-msg { padding: 12px 20px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.88em; }
.flash-success { background: rgba(16,185,129,0.12); color: var(--success); }
.flash-error { background: rgba(239,68,68,0.12); color: var(--danger); }

/* ── Chart Components ── */
.chart-container { position: relative; height: 300px; }
.chart-period-bar { display: flex; gap: 8px; }
.chart-period-bar button {
    padding: 5px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    font-size: 0.78em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.chart-period-bar button:hover { border-color: var(--accent); color: var(--accent); }
.chart-period-bar button.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ── Status Dots ── */
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.status-dot.green { background: #22c55e; }
.status-dot.yellow { background: #eab308; }
.status-dot.red { background: #ef4444; }

/* ── ACOS Badge ── */
.acos-badge { padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.acos-good { background: #dcfce7; color: #166534; }
.acos-warning { background: #fef9c3; color: #854d0e; }
.acos-bad { background: #fecaca; color: #991b1b; }

/* ── Pipeline Funnel ── */
.pipeline-funnel { display: flex; justify-content: space-between; align-items: center; }
.pipeline-stage { text-align: center; flex: 1; padding: 16px 8px; }
.pipeline-stage .number { font-size: 32px; font-weight: bold; }
.pipeline-arrow { display: flex; flex-direction: column; align-items: center; color: #94a3b8; font-size: 1.5em; padding: 0 4px; }

/* ── Action Buttons ── */
.action-btn {
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 12px;
    background: transparent;
    font-weight: 500;
    transition: all 0.15s;
}
.action-btn:hover { transform: translateY(-1px); }
.action-btn.pause { border-color: #eab308; color: #854d0e; background: rgba(234,179,8,0.08); }
.action-btn.pause:hover { background: rgba(234,179,8,0.15); }
.action-btn.resume { border-color: #22c55e; color: #166534; background: rgba(34,197,94,0.08); }
.action-btn.resume:hover { background: rgba(34,197,94,0.15); }

/* ── Budget Input ── */
.budget-input {
    width: 70px;
    padding: 4px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.85em;
    text-align: right;
}
.budget-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(99,102,241,0.15); }

/* ── Recommendation Cards ── */
.recommendation-card {
    padding: 12px;
    border-left: 4px solid;
    margin-bottom: 8px;
    border-radius: 4px;
    transition: transform 0.1s;
}
.recommendation-card:hover { transform: translateX(2px); }
.recommendation-card.high { border-color: #ef4444; background: #fef2f2; }
.recommendation-card.medium { border-color: #eab308; background: #fffbeb; }
.recommendation-card.low { border-color: #22c55e; background: #f0fdf4; }

/* ── Shipping Plan Modal ── */
.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ── API Badge ── */
.api-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.api-badge.connected { background: #dcfce7; color: #166534; }
.api-badge.estimated { background: #fef9c3; color: #854d0e; }

/* ══════════════════════════════════════════════
   RESPONSIVE - Mobile First
   ══════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Sidebar: hidden by default, slides in from left */
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    }

    /* Content: full width */
    .content {
        margin-left: 0 !important;
    }

    /* Show hamburger */
    .hamburger-btn {
        display: inline-flex !important;
    }

    /* Grid layouts single column */
    .grid-2, .grid-3-1 { grid-template-columns: 1fr; }

    /* Metrics: 2 columns */
    .metrics-row { grid-template-columns: repeat(2, 1fr) !important; }

    /* Page padding */
    .page { padding: 16px; }

    /* Top header */
    .top-header { padding: 12px 16px; }
    .top-header h1 { font-size: 1em; }

    /* Pipeline */
    .pipeline-funnel { flex-direction: column; gap: 8px; }
    .pipeline-arrow { transform: rotate(90deg); padding: 4px 0; }

    /* Chart */
    .chart-container { height: 220px; }

    /* Tables: horizontal scroll */
    .panel-body.no-pad { overflow-x: auto; }
    .data-table { min-width: 600px; }

    /* Engine grid */
    .engine-grid { grid-template-columns: 1fr; }

    /* Panel header: stack on very small screens */
    .panel-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Metric cards: smaller on mobile */
    .metric-card { padding: 14px; }
    .metric-card .metric-value { font-size: 1.4em; }
}

/* ═══ Action Plan ═══ */
#action-plan-panel { border-left: 4px solid var(--accent); }
.action-phase-header:hover { background: var(--accent-light) !important; }
.action-item:hover { background: var(--bg-input); }
.action-checked { opacity: 0.55; }
.action-checked span[style*="font-weight:600"] { text-decoration: line-through; }
.phase-done .action-phase-header { opacity: 0.6; }

/* Very small screens */
@media (max-width: 480px) {
    .metrics-row { grid-template-columns: 1fr !important; }

    .chart-period-bar {
        flex-wrap: wrap;
    }
}
