/*
 * GOMD — çalışma alanı panosu (dashboard.php).
 * Yalnız style.css tema belirteçlerini kullanır; açık ve koyu temada aynı
 * işaretleme doğru kontrastla çizilir. Tüm sınıflar db- önekiyle yalıtılmıştır.
 */

.db {
    --db-gap: clamp(0.9rem, 1.6vw, 1.35rem);
    --db-ocean: var(--primary);
    --db-climate: var(--accent-warning);
    --db-maritime: var(--accent-violet);
    --db-campus: var(--accent-success);
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--db-gap);
    font-variant-numeric: tabular-nums;
    min-width: 0;
}
.db *, .db *::before, .db *::after { box-sizing: border-box; }
.db a { text-underline-offset: 3px; }
.db :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------------ hero */
.db-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(79, 187, 216, 0.28) 0%, rgba(79, 187, 216, 0) 55%),
        radial-gradient(90% 120% at 0% 100%, rgba(10, 78, 112, 0.55) 0%, rgba(10, 78, 112, 0) 60%),
        var(--surface-inverse);
    color: var(--text-on-inverse);
    --text-primary: var(--text-on-inverse);
    --text-secondary: var(--text-on-inverse-soft);
    --text-muted: var(--text-on-inverse-soft);
    --text-on-surface: var(--text-on-inverse);
    --text-on-surface-soft: var(--text-on-inverse-soft);
    padding: clamp(1.4rem, 3.2vw, 2.4rem);
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
}
.db-hero-contours {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    opacity: 0.22;
    pointer-events: none;
    color: #7CC0DE;
}
.db-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 0.9rem; }
.db-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ED3EA;
}
.db-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-on-inverse);
}
.db-chip .gicon { flex: none; }
.db-hero h1 {
    margin: 0;
    font-size: clamp(1.55rem, 2.6vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: #FFFFFF;
    max-width: 22ch;
}
.db-hero-lead {
    margin: 0.7rem 0 0;
    max-width: 58ch;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.6;
    color: var(--text-on-inverse-soft);
}
.db-hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.35rem; }
.db-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.6rem 1.05rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
    cursor: pointer;
}
.db-btn:hover { transform: translateY(-1px); }
.db-btn-primary { background: #55A9CE; color: #06121A; }
.db-btn-primary:hover { background: #7CC0DE; }
.db-btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); color: #FFFFFF; }
.db-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.db-hero-panel {
    display: grid;
    gap: 0.6rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
}
.db-hero-panel h2 {
    margin: 0 0 0.15rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ED3EA;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.db-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4CBE8E; box-shadow: 0 0 0 0 rgba(76, 190, 142, 0.6); animation: db-pulse 2.4s infinite; flex: none; }
@keyframes db-pulse { 0% { box-shadow: 0 0 0 0 rgba(76, 190, 142, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(76, 190, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 190, 142, 0); } }
.db-hero-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.db-hero-stat:first-of-type { border-top: 0; }
.db-hero-stat dt { font-size: 0.82rem; color: var(--text-on-inverse-soft); }
.db-hero-stat dd { margin: 0; font-size: 1.35rem; font-weight: 800; color: #FFFFFF; letter-spacing: -0.01em; }
.db-hero-note { margin: 0.25rem 0 0; font-size: 0.72rem; line-height: 1.45; color: var(--text-on-inverse-soft); }

/* ------------------------------------------------------------------ KPI */
.db-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--db-gap); }
.db-kpi {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.05rem 1.1rem 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.db-kpi:hover { border-color: var(--border-glow); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.db-kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.db-kpi-label { font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); }
.db-kpi-icon {
    width: 34px; height: 34px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    color: var(--kpi-accent, var(--primary));
    background: color-mix(in srgb, var(--kpi-accent, var(--primary)) 12%, transparent);
}
.db-kpi-value { font-size: clamp(1.45rem, 2.2vw, 1.85rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--text-primary); }
.db-kpi-meta { font-size: 0.76rem; color: var(--text-muted); line-height: 1.45; }
.db-kpi::after {
    content: "";
    position: absolute;
    left: 1.1rem; right: 1.1rem; top: 0;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--kpi-accent, var(--primary));
    opacity: 0.85;
}

/* ------------------------------------------------------------------ grid & cards */
.db-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--db-gap); }
.db-span-4 { grid-column: span 4; }
.db-span-5 { grid-column: span 5; }
.db-span-6 { grid-column: span 6; }
.db-span-7 { grid-column: span 7; }
.db-span-8 { grid-column: span 8; }
.db-span-12 { grid-column: 1 / -1; }
.db-col { display: flex; flex-direction: column; gap: var(--db-gap); min-width: 0; }

.db-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1rem, 1.6vw, 1.3rem);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
}
.db-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.db-card-title { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-size: 1rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.01em; }
.db-card-title .gicon { color: var(--primary); flex: none; }
.db-card-sub { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }
.db-link {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.8rem; font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}
.db-link:hover { text-decoration: underline; }
.db-muted { color: var(--text-muted); font-size: 0.78rem; line-height: 1.5; margin: 0; }

/* ------------------------------------------------------------------ theme coverage */
.db-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-subtle); border: 1px solid var(--border-color); }
.db-stack > span { display: block; height: 100%; min-width: 3px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.db-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; }
.db-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 0.2rem 0.55rem; align-items: center; padding: 0.6rem 0.7rem; border-radius: var(--radius-md); background: var(--surface-subtle); border: 1px solid var(--border-color); text-decoration: none; color: inherit; }
.db-legend a { color: inherit; text-decoration: none; display: contents; }
.db-legend li:hover { border-color: var(--border-glow); }
.db-swatch { width: 12px; height: 12px; border-radius: 4px; }
.db-legend-name { font-size: 0.84rem; font-weight: 700; color: var(--text-primary); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-legend-value { font-size: 0.84rem; font-weight: 800; color: var(--text-primary); }
.db-legend-meta { grid-column: 2 / -1; font-size: 0.74rem; color: var(--text-secondary); }

/* mini sayılar (kapsam kartının altı) */
.db-mini { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; padding-top: 0.9rem; border-top: 1px dashed var(--border-color); }
.db-mini > div { min-width: 0; }
.db-mini dt { font-size: 0.72rem; color: var(--text-muted); line-height: 1.35; }
.db-mini dd { margin: 0.15rem 0 0; font-size: 1.15rem; font-weight: 800; color: var(--text-primary); }

/* ------------------------------------------------------------------ bars (providers) */
.db-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.db-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 0.75rem; align-items: baseline; }
.db-bar-name { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-bar-value { font-size: 0.8rem; font-weight: 800; color: var(--text-secondary); }
.db-bar-track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--surface-subtle); overflow: hidden; }
.db-bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--secondary)); width: 0; transition: width .7s cubic-bezier(.2,.7,.2,1); }

/* ------------------------------------------------------------------ tier ladder */
.db-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; counter-reset: tier; }
.db-ladder li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0.1rem 0.65rem;
    align-items: center;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}
.db-ladder-num {
    grid-row: span 2;
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.76rem; font-weight: 800;
    background: var(--surface-subtle); color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.db-ladder-name { font-size: 0.86rem; font-weight: 700; color: var(--text-primary); }
.db-ladder-desc { font-size: 0.74rem; color: var(--text-muted); line-height: 1.4; }
.db-ladder li.is-reached .db-ladder-num { background: color-mix(in srgb, var(--accent-success) 14%, transparent); color: var(--accent-success); border-color: color-mix(in srgb, var(--accent-success) 35%, transparent); }
.db-ladder li.is-current { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--bg-card)); box-shadow: 0 0 0 3px var(--primary-glow); }
.db-ladder li.is-current .db-ladder-num { background: var(--primary); color: var(--text-on-fill); border-color: var(--primary); }
.db-ladder li.is-locked { opacity: 0.72; }
.db-cta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.db-btn-solid { background: var(--action-bg); color: var(--action-text); }
.db-btn-solid:hover { background: var(--primary-hover); }
.db-btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text-primary); }
.db-btn-outline:hover { background: var(--nav-hover); }

/* ------------------------------------------------------------------ station table */
.db-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.db-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; min-width: 560px; }
.db-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.db-table th, .db-table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border-color); white-space: nowrap; }
.db-table thead th { position: sticky; top: 0; background: var(--table-head-bg); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); }
.db-table tbody tr:last-child td { border-bottom: 0; }
.db-table tbody tr:hover { background: var(--nav-hover); }
html:root body .db .db-table tbody th { background: transparent !important; font-weight: 400 !important; font-size: 0.82rem !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--text-primary) !important; position: static; }
.db-table td.num, .db-table th.num { text-align: right; }
.db-station { display: flex; flex-direction: column; gap: 0.1rem; }
.db-station strong { font-weight: 700; color: var(--text-primary); }
.db-station small { font-size: 0.7rem; color: var(--text-muted); }
.db-na { color: var(--text-muted); }
.db-tag {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.12rem 0.45rem; border-radius: 6px;
    font-size: 0.68rem; font-weight: 700;
    background: var(--surface-subtle); color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.db-tag.is-tr { color: var(--accent-info); border-color: color-mix(in srgb, var(--accent-info) 35%, transparent); background: color-mix(in srgb, var(--accent-info) 9%, transparent); }

/* ------------------------------------------------------------------ alerts */
.db-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.db-alert {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.15rem 0.7rem;
    padding: 0.7rem 0.8rem;
    border-radius: var(--radius-md);
    border: 1px solid color-mix(in srgb, var(--sev) 32%, transparent);
    background: color-mix(in srgb, var(--sev) 7%, var(--bg-card));
}
.db-alert[data-sev="critical"] { --sev: var(--accent-danger); }
.db-alert[data-sev="danger"] { --sev: var(--accent-danger); }
.db-alert[data-sev="warning"] { --sev: var(--accent-warning); }
.db-alert-icon { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--sev); background: color-mix(in srgb, var(--sev) 14%, transparent); }
.db-alert-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.84rem; font-weight: 800; color: var(--text-primary); }
.db-alert-desc { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.45; }
.db-alert-desc strong { color: var(--text-primary); }
.db-sdg { font-size: 0.66rem; font-weight: 800; padding: 0.1rem 0.4rem; border-radius: 5px; color: var(--sev); border: 1px solid color-mix(in srgb, var(--sev) 40%, transparent); }
.db-empty {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.85rem 0.9rem; border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--accent-success) 8%, var(--bg-card));
    border: 1px solid color-mix(in srgb, var(--accent-success) 30%, transparent);
    color: var(--text-primary); font-size: 0.84rem;
}
.db-empty .gicon { color: var(--accent-success); flex: none; }

/* ------------------------------------------------------------------ recent list & sensor */
.db-list { list-style: none; margin: 0; padding: 0; display: grid; }
.db-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 0.75rem; padding: 0.65rem 0; border-top: 1px solid var(--border-color); }
.db-list li:first-child { border-top: 0; padding-top: 0.1rem; }
.db-list a { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-list a:hover { color: var(--primary); text-decoration: underline; }
.db-list .db-list-meta { grid-column: 1 / -1; font-size: 0.74rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-list .db-list-value { font-size: 0.78rem; font-weight: 800; color: var(--text-secondary); }

.db-sensor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
.db-sensor { padding: 0.7rem 0.8rem; border-radius: var(--radius-md); background: var(--surface-subtle); border: 1px solid var(--border-color); min-width: 0; }
.db-sensor-label { font-size: 0.74rem; font-weight: 700; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-sensor-value { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); margin-top: 0.15rem; }
.db-sensor-value small { font-size: 0.72rem; font-weight: 700; color: var(--text-secondary); margin-left: 0.2rem; }

/* ------------------------------------------------------------------ modules */
.db-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.35rem; }
.db-section-head h2 { margin: 0; font-size: 1.12rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.01em; }
.db-section-head p { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--text-secondary); }
.db-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--db-gap); }
.db-group { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.db-group h3 { margin: 0 0 0.35rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.db-module {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 16px;
    gap: 0.05rem 0.7rem;
    align-items: center;
    padding: 0.6rem 0.55rem;
    margin: 0 -0.35rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: background-color .15s ease;
}
.db-module:hover { background: var(--nav-hover); }
.db-module-icon { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.db-module-name { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.db-module-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }
.db-module-go { grid-row: 1 / span 2; grid-column: 3; color: var(--text-muted); }
.db-module:hover .db-module-go { color: var(--primary); }
.db-module.is-suggested .db-module-icon { background: var(--primary); color: var(--text-on-fill); }

/* ------------------------------------------------------------------ ops (admin) */
.db-ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0.6rem; }
.db-op { padding: 0.75rem 0.85rem; border-radius: var(--radius-md); background: var(--surface-subtle); border: 1px solid var(--border-color); }
.db-op-value { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); }
.db-op-label { font-size: 0.74rem; color: var(--text-secondary); margin-top: 0.1rem; }

/* ------------------------------------------------------------------ about */
.db-about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.db-about p { margin: 0 0 0.6rem; font-size: 0.88rem; line-height: 1.65; color: var(--text-secondary); }
.db-about p strong { color: var(--text-primary); }
.db-focus { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.db-focus li { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.65rem; border-radius: 999px; font-size: 0.76rem; font-weight: 600; color: var(--text-secondary); background: var(--surface-subtle); border: 1px solid var(--border-color); }
.db-focus .gicon { color: var(--primary); }

.db-footer { text-align: center; padding: 1.25rem 0 0.5rem; border-top: 1px solid var(--border-color); font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }
.db-footer strong { color: var(--text-secondary); }
.db-footer p { margin: 0.15rem 0; }

/* ------------------------------------------------------------------ loading / error */
.db-skel {
    display: inline-block;
    min-width: 4.5ch;
    height: 0.9em;
    border-radius: 6px;
    vertical-align: middle;
    background: linear-gradient(90deg, var(--surface-subtle) 0%, var(--border-color) 50%, var(--surface-subtle) 100%);
    background-size: 200% 100%;
    animation: db-shimmer 1.3s ease-in-out infinite;
}
.db-hero .db-skel { background: linear-gradient(90deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.06) 100%); background-size: 200% 100%; }
@keyframes db-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.db-error { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--accent-danger); }
.db-error[hidden] { display: none; }
.db-retry { font: inherit; font-weight: 700; font-size: 0.78rem; padding: 0.3rem 0.7rem; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text-primary); cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
    .db *, .db *::before, .db *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1199px) {
    .db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .db-span-4, .db-span-5, .db-span-6, .db-span-7, .db-span-8 { grid-column: 1 / -1; }
}
@media (max-width: 1199px) {
    .db-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
    .db-about { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575px) {
    .db-kpis { gap: 0.6rem; }
    .db-kpi { padding: 0.85rem 0.8rem; }
    .db-kpi-icon { display: none; }
    .db-legend { grid-template-columns: minmax(0, 1fr); }
    .db-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .db-hero-actions .db-btn { flex: 1 1 100%; }
    .db-sensor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
    .db-kpis { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ özgüllük
   institutional.css başlıkları html:root body h2 ile biçimliyor; pano bileşenleri
   kendi ölçüsünü korusun diye aynı kök önekiyle yazılır. */
html:root body .db .db-card-title { font-size: 1rem; line-height: 1.35; letter-spacing: -0.01em; font-weight: 800; }
html:root body .db .db-hero-panel h2 { font-size: 0.74rem; line-height: 1.4; letter-spacing: 0.1em; font-weight: 800; }
html:root body .db .db-section-head h2 { font-size: 1.12rem; line-height: 1.35; font-weight: 800; }
html:root body .db .db-group h3, html:root body .db h3.db-eyebrow { font-size: 0.74rem; line-height: 1.4; letter-spacing: 0.1em; font-weight: 800; }
html:root body .db .db-hero h1 { color: #FFFFFF; max-width: 24ch; }

/* COP31 card (data from cop31_data.php) */
.db-c31 .db-card-head { align-items: center; }
.db-c31-brand { display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; margin-bottom: 0.45rem; border-radius: 8px; background: #FFFFFF; border: 1px solid rgba(15, 46, 63, 0.12); box-shadow: 0 2px 8px rgba(15, 46, 63, 0.06); text-decoration: none; }
.db-c31-brand img { display: block; width: 96px; height: 39px; object-fit: contain; }
.db-c31-brand-lg { margin-bottom: 0; padding: 5px 10px; }
.db-c31-brand-lg img { width: 112px; height: 45px; }
.db-about-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.65rem; }
.db-about-head .db-card-title { margin: 0 !important; }
.db-c31-count { display: grid; justify-items: center; margin: 0; padding: 0.45rem 0.8rem; border-radius: 12px; background: var(--surface-inverse); color: var(--text-on-inverse); }
.db-c31-count strong { font-size: 1.6rem; line-height: 1; font-weight: 800; color: #a6dbd1; font-variant-numeric: tabular-nums; }
.db-c31-count span { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-on-inverse-soft); }
.db-c31 .db-list { margin: 0.4rem 0 0.9rem; }
.db-c31 .db-list a { white-space: normal; }

