/* ============================================================
   Open Diary Theme â€” Global Styles
   Dark personal OS aesthetic
   ============================================================ */

:root {
    /* Light theme (default) */
    --bg-primary:   #F8F9FA;
    --bg-card:      #FFFFFF;
    --bg-sidebar:   #F8F9FA;
    --bg-hover:     #EFF6FF;
    --bg-border:    rgba(2,35,69,0.12);
    --text-primary: #022345;
    --text-secondary:#445B73;
    --text-muted:   rgba(2,35,69,0.45);
    --accent:       #A4DFF5;
    --accent-strong:#022345;
    --accent-soft:  rgba(164,223,245,0.35);
    --shadow:       rgba(2,35,69,0.08);
    --navbar-h:     64px;
    --radius:       5px;
    --font-main:    'Inter', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
}

[data-theme="dark"] {
    --bg-primary:   #022345;
    --bg-card:      #111C2E;
    --bg-sidebar:   #0F1A2E;
    --bg-hover:     #16263D;
    --bg-border:    rgba(211,226,232,0.12);
    --text-primary: #F8F9FA;
    --text-secondary:#d3e2e8;
    --text-muted:   rgba(211,226,232,0.45);
    --accent:       #A4DFF5;
    --accent-strong:#A4DFF5;
    --accent-soft:  rgba(164,223,245,0.12);
    --shadow:       rgba(0,0,0,0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 1.65;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

[data-theme="dark"] a { color: var(--accent); }
[data-theme="dark"] a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Content typography — restore spacing stripped by reset */
.od-card p,
.od-main-content p {
    margin: 0 0 1em 0;
}
.od-card p:last-child,
.od-main-content p:last-child {
    margin-bottom: 0;
}
.od-card h1, .od-card h2, .od-card h3, .od-card h4,
.od-main-content h1, .od-main-content h2, .od-main-content h3, .od-main-content h4 {
    margin: 0.5em 0 0.5em 0;
}
.od-card ul, .od-card ol,
.od-main-content ul, .od-main-content ol {
    margin: 0 0 1em 1.5em;
}
.od-card blockquote,
.od-main-content blockquote,
.wp-block-quote {
    margin: 1em 0;
    padding: 0;
    color: var(--text-primary);
}

.wp-block-quote p {
    margin: 0 0 0.5em 0;
    font-size: 17px;
    line-height: 1.7;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
    display: inline;
    color: var(--text-primary);
}

.wp-block-quote cite {
    font-size: 13px;
    color: var(--text-muted);
    font-style: normal;
    display: block;
    margin-top: 8px;
}

/* ============================================================
   Navbar
   ============================================================ */

.od-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--navbar-h);
    background: var(--bg-card);
    border-bottom: 1px solid var(--bg-border);
    z-index: 100;
    backdrop-filter: blur(8px);
}
.od-navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 32px;
}
.od-navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}
.od-navbar-brand:hover { text-decoration: none; }
.od-brand-icon {
    width: 36px; height: 36px;
    background: var(--accent);
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    color: #022345;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(164,223,245,0.25);
}
.od-brand-name { font-weight: 800; font-size: 15px; color: var(--text-primary); }

.od-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    flex-wrap: nowrap;
    overflow: hidden;
}
.od-nav a {
    padding: 6px 12px;
    border-radius: 5px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.od-nav a:hover,
.od-nav a.active {
    background: var(--accent-soft);
    color: var(--accent);
    text-decoration: none;
}
.od-nav a.active { font-weight: 700; }

/* ============================================================
   Layout
   ============================================================ */

.od-main {
    padding-top: 0;
}
.od-content {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* ============================================================
   Cards
   ============================================================ */

.od-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 5px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px var(--shadow);
}
.od-card:hover {
    border-color: rgba(164,223,245,0.4);
}

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

.od-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}
.od-stat {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 5px;
    padding: 16px 20px;
}
.od-stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 6px; }
.od-stat-value { font-size: 28px; font-weight: 800; color: var(--accent-strong); }
[data-theme="dark"] .od-stat-value { color: var(--accent); }

/* ============================================================
   Page Header
   ============================================================ */

.od-page-header {
    margin-bottom: 28px;
}
.od-page-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.od-page-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================================
   Typography inside cards
   ============================================================ */

.od-card h2,
.od-content h2,
.od-timeline-content h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.15;
}
.od-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.od-card p,
.od-content p,
.od-timeline-content p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}
.od-card .od-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.od-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 12px; }

/* ============================================================
   Badges
   ============================================================ */

.od-badge {
    display: inline-flex; align-items: center;
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: capitalize;
}
.od-badge-green  { background: rgba(2,35,69,0.08);  color: #066837; }
.od-badge-yellow { background: rgba(183,140,30,0.12); color: #946A08; }
.od-badge-blue   { background: rgba(2,35,69,0.08);    color: #044B82; }
.od-badge-red    { background: rgba(139,30,30,0.08);   color: #991b1b; }
.od-badge-gray   { background: rgba(2,35,69,0.08);    color: #445B73; }
.od-badge-purple { background: rgba(88,28,135,0.08);  color: #7e22ce; }
[data-theme="dark"] .od-badge-green  { background: rgba(74,222,128,0.12); color: #86efac; }
[data-theme="dark"] .od-badge-yellow { background: rgba(251,191,36,0.12);  color: #fcd34d; }
[data-theme="dark"] .od-badge-blue   { background: rgba(147,197,253,0.12); color: #bfdbfe; }
[data-theme="dark"] .od-badge-red    { background: rgba(248,113,113,0.12); color: #fca5a5; }
[data-theme="dark"] .od-badge-gray   { background: rgba(148,163,184,0.1); color: #cbd5e1; }
[data-theme="dark"] .od-badge-purple { background: rgba(196,181,253,0.12); color: #ddd6fe; }

/* ============================================================
   Progress bar (skills)
   ============================================================ */

.od-progress-wrap { background: var(--bg-border); border-radius: 5px; height: 6px; width: 100%; overflow: hidden; margin: 6px 0 10px; }
.od-progress-bar  { height: 100%; background: var(--accent); border-radius: 5px; transition: width 0.8s ease; }

/* ============================================================
   Steps (workflows)
   ============================================================ */

.od-steps { list-style: none; margin-top: 16px; }
.od-step-item { display: flex; gap: 14px; margin-bottom: 18px; }
.od-step-num {
    width: 28px; height: 28px; flex-shrink: 0;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--accent);
}
.od-step-body h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.od-step-body p  { font-size: 13px; color: var(--text-secondary); }

/* ============================================================
   Detail sections
   ============================================================ */

.od-detail-section { margin-bottom: 24px; }
.od-detail-section h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 8px; }
.od-detail-section p, .od-detail-section li { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.od-detail-section ul { padding-left: 18px; }

/* ============================================================
   Search
   ============================================================ */

.od-search-form { display: flex; gap: 10px; margin-bottom: 24px; }
.od-search-form input[type="search"] {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 5px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}
.od-search-form input[type="search"]:focus { border-color: var(--accent); }
.od-search-form button {
    background: var(--accent-strong);
    color: #F8F9FA;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}
[data-theme="dark"] .od-search-form button { background: var(--accent); color: #022345; }

/* ============================================================
   Pagination
   ============================================================ */

.od-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.od-pagination a, .od-pagination span {
    padding: 8px 14px;
    border-radius: 5px;
    border: 1px solid var(--bg-border);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--bg-card);
}
.od-pagination a:hover { border-color: var(--accent); color: var(--accent); }
.od-pagination .current { background: var(--accent-strong); color: #F8F9FA; border-color: var(--accent-strong); font-weight: 700; }
[data-theme="dark"] .od-pagination .current { background: var(--accent); color: #022345; border-color: var(--accent); }

/* ============================================================
   Back link
   ============================================================ */

.od-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.od-back:hover { color: var(--accent-strong); text-decoration: none; }
[data-theme="dark"] .od-back:hover { color: var(--accent); }

/* ============================================================
   404
   ============================================================ */

.od-404 { text-align: center; padding: 80px 20px; }
.od-404 h1 { font-size: 80px; font-weight: 900; color: var(--accent-strong); line-height: 1; }
[data-theme="dark"] .od-404 h1 { color: var(--accent); }
.od-404 p  { color: var(--text-muted); margin: 16px 0 28px; font-size: 16px; }

/* ============================================================
   Date bar
   ============================================================ */

.od-date-bar {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.od-date-bar span { display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   Hero
   ============================================================ */

.od-hero {
    padding: 48px 0 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--bg-border);
    position: relative;
}
.od-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(164,223,245,0.2) 0%, transparent 70%);
    border-radius: 5px;
    pointer-events: none;
    z-index: 0;
}
.od-hero > * { position: relative; z-index: 1; }
.od-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 14px;
}
[data-theme="dark"] .od-hero-eyebrow { color: var(--accent); }
.od-hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.od-accent { color: var(--accent-strong); }
[data-theme="dark"] .od-accent { color: var(--accent); }
.od-hero-bio {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 28px;
}
.od-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.od-btn {
    display: inline-flex; align-items: center;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.od-btn-primary { background: var(--accent-strong); color: #F8F9FA; box-shadow: 0 2px 8px rgba(2,35,69,0.15); }
.od-btn-primary:hover { background: #043C74; text-decoration: none; }
[data-theme="dark"] .od-btn-primary { background: var(--accent); color: #022345; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
[data-theme="dark"] .od-btn-primary:hover { background: #c8ecf8; }
.od-btn-outline { border: 1px solid var(--bg-border); color: var(--text-secondary); background: transparent; }
.od-btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.od-hero-links { display: flex; gap: 20px; flex-wrap: wrap; }
.od-hero-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.od-hero-links a:hover { color: var(--accent); }

/* ============================================================
   Numbers bar
   ============================================================ */

.od-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 5px;
    margin-bottom: 48px;
    overflow: hidden;
}
.od-number-item {
    flex: 1;
    min-width: 120px;
    padding: 20px 16px;
    border-right: 1px solid var(--bg-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.od-number-item:last-child { border-right: none; }
.od-number-val  { font-size: 28px; font-weight: 900; color: var(--accent-strong); line-height: 1; }
[data-theme="dark"] .od-number-val { color: var(--accent); }
.od-number-label{ font-size: 11px; color: var(--text-muted); font-weight: 600; }

/* ============================================================
   Section headings & headers
   ============================================================ */

.od-section-heading {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.od-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.od-section-header .od-section-heading { margin-bottom: 0; }
.od-see-all { font-size: 13px; color: var(--accent-strong); text-decoration: none; }
.od-see-all:hover { text-decoration: underline; }
[data-theme="dark"] .od-see-all { color: var(--accent); }

/* ============================================================
   Sections grid (what's inside)
   ============================================================ */

.od-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.od-section-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 1px 3px var(--shadow);
}
.od-section-card:hover {
    border-color: rgba(164,223,245,0.4);
    text-decoration: none;
}
.od-section-icon { font-size: 22px; flex-shrink: 0; }
.od-section-card-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.od-section-card-desc  { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ============================================================
   Skills preview (homepage)
   ============================================================ */

.od-skills-preview {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 5px;
    padding: 8px 0;
    box-shadow: 0 1px 3px var(--shadow);
}
.od-skill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--bg-border);
}
.od-skill-row:last-child { border-bottom: none; }
.od-skill-info { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.od-skill-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.od-skill-cat  { font-size: 11px; color: var(--text-muted); background: var(--bg-border); padding: 2px 8px; border-radius: 5px; }

/* ============================================================
   Footer
   ============================================================ */

.od-footer { margin-top: 0; padding: 24px; border-top: 1px solid var(--bg-border); color: var(--text-muted); font-size: 13px; background: var(--bg-card); }
.od-footer-widgets { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center; }
.od-footer-widget p { margin: 0; }
.od-footer-widget-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 8px; }
.od-footer-menu li { display: inline; }
.od-footer-menu a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.od-footer-menu a:hover { color: var(--accent-strong); text-decoration: underline; }
[data-theme="dark"] .od-footer-menu a:hover { color: var(--accent); }

/* ============================================================
   Diary specific
   ============================================================ */

.od-diary-card {
    border-left: 4px solid var(--accent);
}
.od-diary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.od-diary-activity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}
.od-diary-routine {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-border);
    font-size: 14px;
    color: var(--text-secondary);
}
.od-diary-routine:last-child { border-bottom: none; }
.od-diary-routine.done { opacity: 0.45; text-decoration: line-through; }
.od-stack-list { display:flex; flex-direction:column; gap:12px; }
.od-stack-item {
    border-radius: 5px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px var(--shadow);
}
.od-diary-thoughts {
    border-left: 4px solid var(--accent);
    font-style: italic;
    color: var(--text-secondary);
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 5px;
}

/* ============================================================
   Responsive
   ============================================================ */

.od-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--bg-border);
    border-radius: 5px;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 18px;
    flex-shrink: 0;
}

.od-theme-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 5px;
    border: 1px solid var(--bg-border);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0;
    margin-left: auto;
}
.od-theme-toggle:hover { background: var(--accent-soft); }

@media (max-width: 900px) {
    .od-mobile-toggle { display: block; }
    .od-nav {
        display: none;
        position: absolute;
        top: var(--navbar-h);
        left: 0; right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--bg-border);
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 24px 20px;
        gap: 2px;
    }
    .od-nav.open { display: flex; }
    .od-nav a { width: 100%; padding: 10px 12px; }
    .od-content { padding: 28px 16px; }
    .od-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .od-card-grid { grid-template-columns: 1fr; }
    .od-numbers { flex-wrap: wrap; }
    .od-number-item { min-width: 100px; }
    .od-sections-grid { grid-template-columns: 1fr 1fr; }
    .od-hero-title { font-size: 32px; }

    /* Mobile sidebar: stack after main content, no internal scroll */
    .od-layout { flex-direction: column; }
    .od-main-content { order: 1; }
    .od-sidebar {
        order: 2;
        width: 100%;
        border-right: none;
        border-top: 1px solid var(--bg-border);
        overflow: visible;
    }
    .od-sidebar-inner {
        position: static;
        height: auto;
        overflow: visible;
        padding: 24px 16px;
    }

    /* Hide timeline dot and connecting line on mobile */
    .od-timeline-item { padding-left: 0; }
    .od-timeline-dot { display: none; }
    .od-timeline-item::before { display: none; }

    .od-footer { border-radius: 5px; }
}

/* Timeline for Diary Entries Block */
.od-diary-entries-block { position: relative; }
.od-timeline-item {
    position: relative;
    padding-left: 32px;
    margin-bottom: 32px;
}
.od-timeline-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: -32px;
    width: 2px;
    background: var(--accent);
    opacity: 0.35;
}
.od-timeline-item:last-child::before {
    display: none;
}
.od-timeline-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--accent);
}
.od-timeline-content {
    flex: 1;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bg-border);
}
.od-timeline-item:last-child .od-timeline-content {
    border-bottom: none;
}

.od-current-date {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 0;
}

/* ============================================================
   Sidebar Layout (40 / 60 split with independent scrolling)
   ============================================================ */

.od-layout {
    display: flex;
}

.od-sidebar {
    width: 270px;
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--bg-border);
    align-self: stretch;
}

.od-sidebar-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 24px 20px;
}

.od-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.od-main-content {
    flex: 1;
    padding: 16px 24px;
}

/* Subscription table */
.od-sub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.od-sub-table thead {
    position: sticky;
    top: 0;
    background: var(--bg-sidebar);
    z-index: 2;
}

.od-sub-table th {
    text-align: left;
    padding: 8px 4px;
    border-bottom: 2px solid var(--bg-border);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
}

.od-sub-table td {
    padding: 10px 4px;
    border-bottom: 1px solid var(--bg-border);
    color: var(--text-secondary);
    vertical-align: middle;
}

.od-sub-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.od-sub-status-paid {
    background: rgba(74,222,128,0.18);
    color: #86efac;
}

.od-sub-status-unpaid {
    background: rgba(248,113,113,0.15);
    color: #fca5a5;
}

.od-sub-status-pending {
    background: rgba(251,191,36,0.18);
    color: #fcd34d;
}

.od-sub-total-row td {
    border-top: 2px solid var(--bg-border);
    border-bottom: none;
    padding-top: 12px;
    font-size: 14px;
    color: var(--text-primary);
}

/* Sidebar stats widget */
.od-sidebar-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.od-sidebar-stat {
    background: var(--bg-hover);
    border: 1px solid var(--bg-border);
    border-radius: 5px;
    padding: 10px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.od-sidebar-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.od-sidebar-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Sidebar widget menu as pills */
.od-sidebar .widget_nav_menu ul,
.od-sidebar .menu,
.od-sidebar .wp-block-navigation__container,
.od-nav-menu-block .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.od-sidebar .widget_nav_menu ul li,
.od-sidebar .menu li,
.od-sidebar .wp-block-navigation-item,
.od-nav-menu-block .menu li {
    margin: 0;
}

.od-sidebar .widget_nav_menu ul li a,
.od-sidebar .menu li a,
.od-sidebar .wp-block-navigation-item__content,
.od-nav-menu-block .menu li a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--bg-hover);
    border: 1px solid var(--bg-border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.od-sidebar .widget_nav_menu ul li a:hover,
.od-sidebar .menu li a:hover,
.od-sidebar .wp-block-navigation-item__content:hover,
.od-nav-menu-block .menu li a:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-strong);
    text-decoration: none;
}

/* Topbar Widget Area */
.od-topbar {
    background: transparent;
    padding: 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.od-topbar .od-topbar-widget {
    display: flex;
    align-items: center;
}

.od-topbar .od-topbar-widget-title {
    display: none;
}

/* Topbar is mobile-only by default */
.od-topbar { display: none; }

@media (max-width: 900px) {
    .od-topbar { display: flex; justify-content: center; padding: 0 0 12px; }
}

/* Theme Toggle Widget */
.od-theme-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.od-theme-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.od-theme-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.od-theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.od-theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-border);
    border-radius: 24px;
    transition: background 0.25s;
}

.od-theme-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
}

.od-theme-toggle-input:checked + .od-theme-slider {
    background: #A4DFF5;
}

.od-theme-toggle-input:checked + .od-theme-slider::before {
    transform: translateX(20px);
}

/* Responsive sidebar */
@media (max-width: 768px) {
    .od-layout {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    .od-sidebar {
        width: 100%;
        max-width: none;
        min-width: auto;
        border-right: none;
        border-top: 1px solid var(--bg-border);
        border-bottom: none;
        overflow: visible;
    }
    .od-sidebar-inner {
        position: static;
        height: auto;
        overflow: visible;
        padding: 24px 16px;
    }
    .od-main-content {
        overflow: visible;
    }
    .od-timeline-item { padding-left: 0; }
    .od-timeline-dot { display: none; }
    .od-timeline-item::before { display: none; }
}

.od-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.od-load-more {
    background: var(--accent-soft);
    color: var(--accent-strong);
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.od-load-more:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.od-load-more:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

/* Diary Tools Used Today */
.od-diary-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.od-diary-tool {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.od-diary-tool:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.od-diary-tool img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.od-diary-tool-name {
    line-height: 1.4;
}

/* ============================================================
   Recommended Tools Grid
   ============================================================ */

.od-tools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.od-tool-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 6px;
    padding: 6px 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.od-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.od-tool-used-for {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1px;
}

.od-tool-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    text-decoration: none;
}

.od-tool-name:hover {
    color: var(--accent-strong);
    text-decoration: none;
}

.od-tool-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 0;
}

a.od-tool-label {
    color: var(--accent-strong);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

a.od-tool-label:hover {
    border-bottom-color: var(--accent-strong);
}

@media (max-width: 1100px) {
    .od-tools-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
    .od-tools-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
    .od-tools-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .od-tools-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Weekly Activities Widget */
.od-weekly-activities {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.od-weekly-day {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.od-weekly-day-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--bg-border);
    padding-bottom: 4px;
    margin-bottom: 2px;
}

.od-weekly-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    transition: background 0.15s ease;
}

.od-weekly-item:hover {
    background: var(--bg-hover);
}

.od-weekly-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.od-weekly-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.od-weekly-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.od-weekly-time {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Quote of the Day Card */
.od-quote-of-the-day-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    padding: 28px 32px;
    overflow: hidden;
}

.od-quote-of-the-day-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 12px;
    font-size: 120px;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--accent);
    opacity: 0.15;
    pointer-events: none;
    user-select: none;
}

.od-quote-of-the-day-card::after {
    content: '"';
    position: absolute;
    bottom: -40px;
    right: 20px;
    font-size: 120px;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--accent);
    opacity: 0.15;
    pointer-events: none;
    user-select: none;
}

.od-quote-of-the-day-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.od-quote-of-the-day-card .wp-block-quote {
    margin: 0;
    position: relative;
    z-index: 1;
}

.od-quote-of-the-day-card .wp-block-quote p {
    border-bottom: none;
    display: block;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
    color: var(--text-primary);
}

.od-quote-of-the-day-card .wp-block-quote cite {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

/* Favorite Playlist */
.od-favorite-playlist {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    padding: 24px 28px;
}

.od-favorite-playlist-title {
    margin: 0 0 16px 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.od-playlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.od-playlist-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.od-playlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.od-playlist-song {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.3;
}

.od-playlist-song:hover {
    color: var(--accent-strong);
    text-decoration: none;
}

.od-playlist-artist {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.od-playlist-audio {
    width: 100%;
    height: 32px;
    margin-top: 4px;
}

@media (max-width: 1100px) {
    .od-playlist-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .od-playlist-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .od-playlist-grid { grid-template-columns: repeat(1, 1fr); }
}

/* Diary Stats Widget */
.od-diary-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.od-diary-stat {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 5px;
    padding: 16px;
    text-align: center;
}

.od-diary-stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.3;
}

.od-diary-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

/* Diary Entries Card Grid Block */
.od-diary-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.od-diary-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.od-diary-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(164, 223, 245, 0.15);
    transform: translateY(-2px);
}

.od-diary-card-date {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-strong);
    background: var(--accent-soft);
    border-radius: 5px;
    padding: 4px 10px;
    width: fit-content;
}

.od-diary-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.od-diary-card-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--accent-soft);
    border-radius: 5px;
    padding: 4px 10px;
    width: fit-content;
}

.od-diary-card-icon {
    font-size: 14px;
}

.od-diary-card-activities {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-radius: 5px;
    padding: 4px 10px;
    width: fit-content;
}

.od-diary-card-snippet {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Single Post Page */
.od-single-card {
    background: #fff;
    border: 1px solid var(--bg-border);
    border-radius: 10px;
    padding: 28px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.od-single-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-strong);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 8px 0 0;
}

.od-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-border);
}

.od-share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.od-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--bg-border);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.od-share-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.od-share-whatsapp {
    color: #25D366;
}

.od-share-email {
    color: #EA4335;
}

/* Category Posts Block */
.od-cat-posts-wrap {
    margin-top: 8px;
}

.od-cat-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.od-cat-post-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.od-cat-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.od-cat-post-thumb {
    height: 140px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--bg-border);
}

.od-cat-post-body {
    padding: 16px;
}

.od-cat-post-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-strong);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 6px;
}

.od-cat-post-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.35;
}

.od-cat-post-snippet {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Comments */
.od-comments-wrap {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--bg-border);
}

.od-comments-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px;
}

.od-comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.od-comment-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--bg-border);
}

.od-comment-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.od-comment-body {
    flex: 1;
}

.od-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.od-comment-author {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.od-comment-author a {
    color: var(--text-primary);
    text-decoration: none;
}

.od-comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.od-comment-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 8px;
}

.od-comment-text p {
    margin: 0 0 8px;
}

.od-comment-text p:last-child {
    margin-bottom: 0;
}

.od-comment-reply a {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-strong);
    text-decoration: none;
}

.od-comment-reply a:hover {
    text-decoration: underline;
}

.od-comment-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.od-comment-nav a {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-strong);
    text-decoration: none;
}

.od-comments-closed {
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

/* Comment Form */
.comment-respond {
    margin-top: 20px;
}

.comment-reply-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.comment-reply-title small {
    font-size: 12px;
    font-weight: 400;
    margin-left: 8px;
}

.comment-reply-title small a {
    color: var(--text-muted);
    text-decoration: none;
}

.comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.comment-form .required {
    color: #EA4335;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.comment-form p {
    margin-bottom: 14px;
}

.od-comment-submit {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    background: var(--accent-strong);
    color: #fff;
    transition: background 0.15s ease;
}

.od-comment-submit:hover {
    background: var(--accent);
}

/* Nested comments */
.od-comment-list .children {
    list-style: none;
    margin: 12px 0 0 24px;
    padding: 0;
}

.od-comment-list .children .od-comment-item {
    padding: 12px 0;
    border-bottom: none;
    border-top: 1px solid var(--bg-border);
}

/* Infinite scroll spinner */
.od-scroll-spinner {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 24px 0;
}

.od-scroll-spinner span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-strong);
    animation: od-spinner-bounce 1.2s infinite ease-in-out both;
}

.od-scroll-spinner span:nth-child(1) { animation-delay: -0.32s; }
.od-scroll-spinner span:nth-child(2) { animation-delay: -0.16s; }

@keyframes od-spinner-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.od-scroll-sentinel {
    height: 1px;
}

/* Emoji size fix */
body img.emoji,
body .wp-smiley,
body .emoji {
    width: 1em !important;
    height: 1em !important;
    max-width: none !important;
    vertical-align: -0.1em;
    display: inline-block;
}

/* Tool Entries */
.od-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.od-tool-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.od-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.od-tool-logo {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border-bottom: 1px solid var(--bg-border);
    overflow: hidden;
}

.od-tool-logo img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.od-tool-logo-placeholder {
    font-size: 48px;
}

.od-tool-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.od-tool-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text-primary);
}

.od-tool-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 10px;
    flex: 1;
}

.od-tool-link {
    font-size: 12px;
    color: var(--text-muted);
    word-break: break-all;
}

/* Single Tool */
.od-tool-single-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
}

.od-tool-single-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bg-border);
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
}

.od-tool-single-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.od-tool-single-title-wrap h1 {
    margin: 0 0 8px;
}

.od-tool-single-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: var(--accent-strong);
    color: #fff;
    transition: background 0.15s ease;
}

.od-tool-single-link:hover {
    background: var(--accent);
}

.od-tool-cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: var(--accent-strong);
    color: #fff;
    transition: background 0.15s ease;
}

.od-tool-cta:hover {
    background: var(--accent);
}

/* Tool Entries Block */
.od-tool-block-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.od-tool-block-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    overflow: hidden;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.od-tool-block-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.od-tool-block-main {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.od-tool-block-logo {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border-bottom: 1px solid var(--bg-border);
    overflow: hidden;
}

.od-tool-block-logo img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.od-tool-block-logo-placeholder {
    font-size: 48px;
}

.od-tool-block-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.od-tool-block-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text-primary);
}

.od-tool-block-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 10px;
    flex: 1;
}

.od-tool-block-cta {
    display: block;
    text-align: center;
    padding: 10px 16px;
    background: var(--bg-body);
    border-top: 1px solid var(--bg-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.od-tool-block-cta:hover {
    background: var(--od-accent, #A4DFF5);
    color: #022345;
}

/* Monthly Review */
.od-monthly-review {
    margin-bottom: 24px;
}

.od-monthly-review h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.od-review-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.od-review-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.od-review-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.od-monthly-review-graph {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.od-monthly-review-graph canvas {
    width: 100% !important;
    height: auto !important;
}

.od-no-data {
    color: var(--text-secondary);
    font-style: italic;
    padding: 16px;
    text-align: center;
}
