/* ============================================================
   TAPTICO EOS DASHBOARD - STYLES
   Brand-aligned design system
   ============================================================ */

:root {
    /* Taptico Brand Colors */
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #e94560;
    --accent-hover: #d63851;
    --accent-light: rgba(233, 69, 96, 0.1);
    --blue: #0f3460;
    --blue-light: #1a4a8a;

    /* Status Colors */
    --green: #10b981;
    --green-bg: rgba(16, 185, 129, 0.1);
    --yellow: #f59e0b;
    --yellow-bg: rgba(245, 158, 11, 0.1);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.1);
    --orange: #f97316;
    --orange-bg: rgba(249, 115, 22, 0.1);

    /* Neutrals */
    --bg: #0d1117;
    --bg-card: #161b22;
    --bg-card-hover: #1c2333;
    --bg-elevated: #1e2533;
    --border: #30363d;
    --border-light: #21262d;
    --text: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;

    /* Sizing */
    --sidebar-width: 260px;
    --sidebar-collapsed: 60px;
    --topbar-height: 64px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-sm: 6px;

    /* Shadows */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

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

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

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--primary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease, width 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--orange));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.brand-name {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 2px;
    display: block;
    color: var(--text);
}

.brand-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    margin-top: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

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

.nav-item .material-icons-outlined {
    font-size: 20px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.eos-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--accent), #c2185b);
    border-radius: var(--radius);
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: opacity 0.15s;
}

.eos-link:hover {
    opacity: 0.9;
}

.eos-link .material-icons-outlined {
    font-size: 16px;
}

.sidebar-meta {
    text-align: center;
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* ============================================================
   TOP BAR
   ============================================================ */

.topbar {
    height: var(--topbar-height);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-left h1 {
    font-size: 20px;
    font-weight: 700;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-right: 8px;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cadence-selector {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    padding: 3px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.cadence-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.cadence-btn.active {
    background: var(--accent);
    color: white;
}

.cadence-btn:hover:not(.active) {
    color: var(--text);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.date-display {
    font-size: 13px;
    color: var(--text-secondary);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--orange));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: white;
}

/* ============================================================
   PAGE CONTAINER & PAGES
   ============================================================ */

.page-container {
    padding: 24px;
}

.page {
    display: none;
    animation: fadeIn 0.2s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header-bar h2 {
    font-size: 22px;
    font-weight: 700;
}

.page-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.btn .material-icons-outlined {
    font-size: 18px;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 6px 10px;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

/* ============================================================
   KPI CARDS (DASHBOARD)
   ============================================================ */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color 0.15s;
}

.kpi-card:hover {
    border-color: var(--accent);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon.green { background: var(--green-bg); color: var(--green); }
.kpi-icon.blue { background: rgba(15, 52, 96, 0.3); color: #60a5fa; }
.kpi-icon.orange { background: var(--orange-bg); color: var(--orange); }
.kpi-icon.red { background: var(--red-bg); color: var(--red); }

.kpi-icon .material-icons-outlined { font-size: 24px; }

.kpi-info {
    flex: 1;
}

.kpi-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.kpi-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
}

.kpi-trend {
    font-size: 13px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.kpi-trend.up { color: var(--green); background: var(--green-bg); }
.kpi-trend.down { color: var(--red); background: var(--red-bg); }

/* ============================================================
   DASHBOARD GRID
   ============================================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.widget-2col {
    grid-column: span 2;
}

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

.widget-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.widget-link {
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.widget-link:hover {
    text-decoration: underline;
}

.widget-body {
    padding: 16px 20px;
    max-height: 400px;
    overflow-y: auto;
}

/* ============================================================
   SCORECARD TABLE
   ============================================================ */

.scorecard-container {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

.scorecard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.scorecard-table th {
    background: var(--bg-elevated);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.scorecard-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
}

.scorecard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.scorecard-table .sticky-col {
    position: sticky;
    z-index: 5;
    background: var(--bg-elevated);
}

.scorecard-table td.sticky-col {
    background: var(--bg-card);
}

.scorecard-table tbody tr:hover td.sticky-col {
    background: var(--bg-card-hover);
}

.col-measurable { left: 0; min-width: 180px; }
.col-owner { left: 180px; min-width: 100px; }
.col-goal { left: 280px; min-width: 80px; }

.cell-on-track { color: var(--green); font-weight: 600; }
.cell-off-track { color: var(--red); font-weight: 600; }
.cell-warn { color: var(--yellow); font-weight: 600; }

.sparkline-col { min-width: 130px; }

.sparkline {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 28px;
}

.sparkline-bar {
    width: 8px;
    border-radius: 2px 2px 0 0;
    min-height: 3px;
    transition: height 0.3s;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.green { background: var(--green); }
.status-dot.yellow { background: var(--yellow); }
.status-dot.red { background: var(--red); }

/* ============================================================
   ROCKS
   ============================================================ */

.rocks-summary {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
}

.rocks-summary .stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rocks-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.rock-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: border-color 0.15s;
}

.rock-card:hover {
    border-color: var(--accent);
}

.rock-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rock-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rock-status-badge.on-track { background: var(--green-bg); color: var(--green); }
.rock-status-badge.off-track { background: var(--red-bg); color: var(--red); }
.rock-status-badge.at-risk { background: var(--yellow-bg); color: var(--yellow); }
.rock-status-badge.complete { background: var(--green-bg); color: var(--green); }

.rock-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.rock-owner {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.rock-progress {
    margin-bottom: 8px;
}

.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-fill.green { background: var(--green); }
.progress-fill.yellow { background: var(--yellow); }
.progress-fill.red { background: var(--red); }

.rock-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.rock-milestones {
    margin-top: 12px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.milestone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding: 4px 0;
    color: var(--text-secondary);
}

.milestone.done {
    text-decoration: line-through;
    color: var(--text-muted);
}

.milestone .material-icons-outlined {
    font-size: 16px;
}

.milestone.done .material-icons-outlined { color: var(--green); }

/* ============================================================
   MEETINGS
   ============================================================ */

.meetings-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.meeting-agenda {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agenda-item {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s;
    cursor: pointer;
}

.agenda-item:hover {
    border-color: var(--accent);
}

.agenda-item.ids {
    border-color: var(--blue-light);
}

.agenda-item.completed {
    opacity: 0.6;
}

.agenda-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    min-width: 50px;
    padding-top: 2px;
}

.agenda-content {
    flex: 1;
}

.agenda-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.agenda-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.agenda-notes {
    font-size: 13px;
    color: var(--text);
    padding: 8px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    min-height: 36px;
    border: 1px solid transparent;
    transition: border-color 0.15s;
}

.agenda-notes:focus {
    outline: none;
    border-color: var(--accent);
}

.agenda-notes:empty::before {
    content: attr(placeholder);
    color: var(--text-muted);
}

.agenda-status {
    cursor: pointer;
    color: var(--text-muted);
    padding-top: 2px;
}

.agenda-status .material-icons-outlined {
    font-size: 22px;
    transition: color 0.15s;
}

.agenda-item.completed .agenda-status .material-icons-outlined {
    color: var(--green);
}

.meeting-rating {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.rating-scale {
    display: flex;
    gap: 4px;
}

.rating-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.15s;
    font-family: inherit;
}

.rating-btn:hover,
.rating-btn.selected {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.past-meetings h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.meeting-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meeting-history-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.meeting-history-item .mh-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.meeting-history-item .mh-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mh-rating-value {
    font-size: 24px;
    font-weight: 800;
}

.mh-rating-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* Pulse Chart */
.pulse-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 120px;
    padding-top: 10px;
}

.pulse-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
}

.pulse-bar {
    width: 100%;
    max-width: 28px;
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.4s ease;
}

.pulse-label {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

.pulse-value {
    font-size: 11px;
    font-weight: 700;
}

/* Quarter Progress */
.quarter-progress {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qp-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qp-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.qp-label span:first-child { color: var(--text-secondary); }
.qp-label span:last-child { font-weight: 700; }

/* ============================================================
   V/TO
   ============================================================ */

.vto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.vto-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.vto-card.full-width {
    grid-column: span 2;
}

.vto-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.vto-card-header .material-icons-outlined {
    color: var(--accent);
    font-size: 20px;
}

.vto-card-header h4 {
    font-size: 14px;
    font-weight: 600;
}

.vto-card-body {
    padding: 16px 20px;
    min-height: 80px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
}

.vto-card-body:focus {
    outline: none;
    background: rgba(233, 69, 96, 0.03);
}

.vto-card-body:empty::before {
    content: 'Click to edit...';
    color: var(--text-muted);
}

.vto-sub {
    margin-bottom: 14px;
}

.vto-sub label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.vto-sub div {
    min-height: 36px;
    font-size: 13px;
    line-height: 1.6;
}

.vto-sub div:focus {
    outline: none;
    background: rgba(233, 69, 96, 0.03);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin: -4px;
}

.vto-sub div:empty::before {
    content: 'Click to edit...';
    color: var(--text-muted);
}

/* ============================================================
   ISSUES
   ============================================================ */

.issues-board {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.issues-column {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.issues-column.resolved {
    opacity: 0.7;
}

.issues-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.issues-column-header h4 {
    font-size: 14px;
    font-weight: 600;
}

.issue-count {
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.issues-column-body {
    padding: 12px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.issue-card {
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s;
}

.issue-card:hover {
    border-color: var(--accent);
}

.issue-card-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.issue-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.issue-priority {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.issue-priority.high { background: var(--red-bg); color: var(--red); }
.issue-priority.medium { background: var(--yellow-bg); color: var(--yellow); }
.issue-priority.low { background: var(--green-bg); color: var(--green); }

/* ============================================================
   TO-DOS
   ============================================================ */

.todo-stats {
    font-size: 13px;
    color: var(--text-secondary);
}

.todo-stats strong {
    color: var(--accent);
}

.todos-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s;
}

.todo-item:hover {
    border-color: var(--accent);
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.todo-checkbox:hover {
    border-color: var(--accent);
}

.todo-checkbox.checked {
    background: var(--green);
    border-color: var(--green);
}

.todo-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.todo-text {
    flex: 1;
    font-size: 13px;
}

.todo-owner {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 80px;
}

.todo-due {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 80px;
}

.todo-due.overdue {
    color: var(--red);
    font-weight: 600;
}

/* Dashboard mini versions */
.todos-list .todo-item {
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
}

.todos-list .todo-item:last-child {
    border-bottom: none;
}

/* Dashboard rocks list */
.rocks-list .rock-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.rocks-list .rock-mini:last-child {
    border-bottom: none;
}

.rock-mini-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rock-mini-info {
    flex: 1;
}

.rock-mini-title {
    font-size: 13px;
    font-weight: 500;
}

.rock-mini-owner {
    font-size: 11px;
    color: var(--text-muted);
}

.rock-mini-progress {
    width: 80px;
}

/* Dashboard issues list */
.issues-list .issue-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.issues-list .issue-mini:last-child {
    border-bottom: none;
}

/* ============================================================
   ACCOUNTABILITY CHART
   ============================================================ */

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 32px 0;
}

.org-level {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.org-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    min-width: 220px;
    max-width: 280px;
    text-align: center;
    transition: border-color 0.15s;
}

.org-card:hover {
    border-color: var(--accent);
}

.org-card.visionary {
    border-top: 3px solid var(--accent);
}

.org-card.integrator {
    border-top: 3px solid var(--blue-light);
}

.org-card-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.org-card-title {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.org-card-roles {
    text-align: left;
    font-size: 12px;
    color: var(--text-secondary);
}

.org-card-roles li {
    padding: 3px 0;
    list-style: none;
    position: relative;
    padding-left: 14px;
}

.org-card-roles li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.org-connector {
    width: 2px;
    height: 32px;
    background: var(--border);
    position: relative;
}

.org-connector::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* ============================================================
   PROCESSES
   ============================================================ */

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.15s;
}

.process-card:hover {
    border-color: var(--accent);
}

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

.process-card-header h4 {
    font-size: 14px;
    font-weight: 600;
}

.process-owner {
    font-size: 11px;
    color: var(--text-muted);
}

.process-steps {
    padding: 16px 20px;
}

.process-step {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    position: relative;
}

.process-step:not(:last-child) {
    border-left: 2px solid var(--border);
    margin-left: 8px;
    padding-left: 22px;
}

.process-step:last-child {
    margin-left: 8px;
    padding-left: 22px;
}

.process-step-num {
    position: absolute;
    left: -1px;
    top: 8px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Form fields in modal */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%238b949e'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* ============================================================
   IDS Issues in meeting
   ============================================================ */

.ids-issues {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.ids-issue-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.ids-issue-row .issue-priority {
    font-size: 9px;
}

.ids-issue-title {
    flex: 1;
    font-weight: 500;
}

.ids-status-toggle {
    cursor: pointer;
    color: var(--text-muted);
}

.ids-status-toggle.resolved {
    color: var(--green);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .widget-2col {
        grid-column: span 1;
    }
    .issues-board {
        grid-template-columns: 1fr;
    }
    .vto-grid {
        grid-template-columns: 1fr;
    }
    .vto-card.full-width {
        grid-column: span 1;
    }
    .meetings-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar-toggle {
        display: block;
    }
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .topbar-left h1 {
        font-size: 16px;
    }
    .cadence-selector {
        display: none;
    }
    .page-container {
        padding: 16px;
    }
    .rocks-board {
        grid-template-columns: 1fr;
    }
}
