:root {
    --db-navy: #071a2d;
    --db-navy-2: #0d2a45;
    --db-blue: #1f6feb;
    --db-cyan: #0891b2;
    --db-teal: #0f766e;
    --db-gold: #d4af37;
    --db-gold-light: #f8d766;
    --db-green: #07845f;
    --db-text: #132238;
    --db-muted: #5b6f89;
    --db-border: #d4e0ee;
    --db-soft: #eef5fb;
    --db-surface: #ffffff;
    --db-background: #f3f7fb;
}

html { scroll-behavior: smooth; }
html, body.dbms-page { width: 100%; max-width: 100%; overflow-x: hidden; }
body.dbms-page { margin: 0; background: var(--db-background); color: var(--db-text); font-family: Arial, Helvetica, sans-serif; line-height: 1.62; }
.dbms-page *, .dbms-page *::before, .dbms-page *::after { box-sizing: border-box; }
.dbms-page [hidden] { display: none !important; }
.dbms-page a { text-underline-offset: 3px; }
.dbms-page code, .dbms-page pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.dbms-page .top-header { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 72px; padding: 0 34px; border-bottom: 2px solid var(--db-gold); background: var(--db-navy); box-shadow: 0 4px 16px rgba(7, 26, 45, .18); }
.dbms-page .top-header .logo { display: flex; align-items: center; height: 72px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.dbms-page .main-logo { display: block; width: 72px; height: 72px; margin-right: 10px; object-fit: contain; }
.dbms-page .brand-name { display: inline-flex; }
.dbms-page .logo-code { color: #b8d8f0; }
.dbms-page .logo-bhavya { color: var(--db-gold-light); }
.dbms-page .top-nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.dbms-page .top-nav a { padding: 9px 10px; color: #e6edf5; font-size: 13px; font-weight: 700; text-decoration: none; }

.dbms-page .docs-layout { display: flex; width: 100%; min-height: calc(100vh - 72px); }
.dbms-page .sidebar { position: sticky; top: 0; z-index: 30;; align-self: flex-start; width: 300px; height: calc(100vh - 20px); flex: 0 0 300px; padding: 18px 14px 28px; overflow-y: auto; border-right: 1px solid var(--db-border); background: #fff; scrollbar-width: thin; scrollbar-color: #b8c9db transparent; }
.dbms-page .sidebar > .sidebar-title:first-child { margin: 0 0 13px; padding: 12px 14px; border-left: 4px solid var(--db-gold); border-radius: 10px; background: var(--db-soft); color: var(--db-navy); font-size: 18px; font-weight: 800; }
.dbms-page .search-box { width: 100%; margin: 0 0 13px; padding: 11px 12px; border: 1px solid #bdcee0; border-radius: 9px; background: #fff; color: var(--db-text); font: inherit; font-size: 14px; }
.dbms-page .search-box:focus { border-color: var(--db-blue); outline: none; box-shadow: 0 0 0 3px rgba(31, 111, 235, .13); }
.dbms-page .dbms-home-link, .dbms-page .dbms-topic-link, .dbms-page .dbms-resource-link { display: block; margin: 2px 0; padding: 8px 11px; border-radius: 7px; color: #29445f; font-size: 13px; font-weight: 650; line-height: 1.35; text-decoration: none; transition: .18s ease; }
.dbms-page .dbms-home-link:hover, .dbms-page .dbms-topic-link:hover, .dbms-page .dbms-resource-link:hover, .dbms-page .dbms-topic-link.is-current { color: #064a75; background: #eaf4ff; }
.dbms-page .dbms-home-link.active { color: #fff; background: linear-gradient(135deg, #0f766e, #0891b2); }
.dbms-page .dbms-topic-link.is-complete::after { content: "✓"; float: right; color: var(--db-green); font-weight: 900; }
.dbms-page .dbms-sidebar-group { margin: 17px 6px 6px; color: #718097; font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.dbms-page .dbms-resource-link { color: #0b5b7a; }
.dbms-search-empty { margin: 12px 8px; color: #a43a32; font-size: 13px; }
.dbms-sidebar-toggle { display: none; }

.dbms-page .main-content { min-width: 0; flex: 1 1 auto; padding: 24px clamp(18px, 3vw, 48px) 52px; }
.dbms-page section, .dbms-level-card { scroll-margin-top: 96px; }
.subject-label, .section-label { display: inline-block; color: #a36e00; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.content-section { margin: 42px 0 0; }
.content-card { margin: 26px 0 0; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--db-border); border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(30, 56, 83, .06); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.section-heading h2, .content-card h2 { margin: 5px 0 4px; color: #0a3563; font-family: Georgia, "Times New Roman", serif; font-size: clamp(27px, 3vw, 39px); line-height: 1.15; }
.section-heading p, .content-card p { margin: 0; color: var(--db-muted); }

.dbms-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr); gap: clamp(26px, 4vw, 56px); align-items: center; overflow: hidden; min-height: 490px; padding: clamp(30px, 5vw, 66px); border-radius: 22px; color: #fff; background: radial-gradient(circle at 78% 18%, rgba(15, 165, 171, .26), transparent 26%), linear-gradient(135deg, #071a2d 0%, #0b2b4a 68%, #0e4962 100%); box-shadow: 0 18px 42px rgba(7, 26, 45, .2); }
.dbms-hero::after { content: ""; position: absolute; right: -90px; bottom: -130px; width: 360px; height: 360px; border: 1px solid rgba(248, 215, 102, .24); border-radius: 50%; }
.dbms-hero-copy { position: relative; z-index: 1; }
.dbms-hero .subject-label { color: var(--db-gold-light); }
.dbms-hero h1 { max-width: 760px; margin: 11px 0 17px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 64px); line-height: 1.03; letter-spacing: -.025em; }
.dbms-hero-copy > p { max-width: 720px; margin: 0; color: #c6d9ea; font-size: clamp(17px, 1.5vw, 20px); }
.dbms-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 25px 0; }
.dbms-button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; font-weight: 800; text-decoration: none; }
.dbms-button-primary { color: #082238; background: var(--db-gold-light); }
.dbms-button-primary:hover { background: #ffe58c; }
.dbms-button-secondary { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.07); }
.dbms-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dbms-hero-stats div { padding: 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(1, 15, 29, .27); }
.dbms-hero-stats strong, .dbms-hero-stats span { display: block; }
.dbms-hero-stats strong { color: var(--db-gold-light); font-size: 22px; }
.dbms-hero-stats span { color: #b9ccde; font-size: 11px; }

.schema-window { position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(133, 211, 226, .35); border-radius: 15px; background: #061525; box-shadow: 0 22px 50px rgba(0,0,0,.25); }
.schema-toolbar { display: flex; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid #23445f; color: #8bd7e7; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.schema-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 18px; }
.schema-table { border: 1px solid #315771; border-radius: 9px; background: #0c263c; }
.schema-table h2 { margin: 0; padding: 8px 10px; border-bottom: 1px solid #315771; color: #fff; font-family: inherit; font-size: 13px; }
.schema-table p { margin: 0; padding: 4px 10px; color: #b9d0e3; font-size: 11px; }
.schema-table b { margin-right: 4px; color: var(--db-gold-light); }
.schema-table.students { grid-column: 1; }
.schema-table.enrolments { grid-column: 3; }
.schema-table.courses { grid-column: 1; }
.schema-link { color: #47d2e7; font-size: 11px; white-space: nowrap; }
.link-one { grid-column: 2; grid-row: 1; }
.link-two { grid-column: 2; grid-row: 2; }
.schema-window pre { margin: 0; padding: 16px 19px 19px; border-top: 1px solid #23445f; color: #d4e5f2; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.schema-window code span { color: #65d3e8; font-weight: 800; }

.dbms-progress-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 34px; align-items: center; }
.dbms-progress-summary { padding: 17px 19px; border-radius: 13px; background: var(--db-soft); }
.dbms-progress-number { display: flex; align-items: baseline; gap: 7px; }
.dbms-progress-number strong { color: #0b5e78; font-size: 35px; line-height: 1; }
.dbms-progress-number span { color: var(--db-muted); font-weight: 700; }
.dbms-progress-track { height: 11px; margin: 15px 0 10px; overflow: hidden; border-radius: 999px; background: #cbd9e7; }
.dbms-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--db-teal), #20b7c9); transition: width .3s ease; }
.dbms-progress-footer { display: flex; align-items: center; justify-content: space-between; color: #31516e; font-size: 13px; }
.dbms-progress-footer button { padding: 5px 9px; border: 0; color: #9c3f38; background: transparent; cursor: pointer; font: inherit; font-weight: 700; }

.learning-loop { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.learning-loop article { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 11px; border: 1px solid var(--db-border); border-radius: 11px; background: #fff; }
.learning-loop b { display: grid; width: 34px; height: 34px; place-items: center; flex: 0 0 34px; border-radius: 50%; color: var(--db-gold-light); background: var(--db-navy); font-size: 11px; }
.learning-loop span { color: #173a5b; font-size: 13px; font-weight: 800; }

.stage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stage-grid article { position: relative; min-height: 218px; padding: 22px; overflow: hidden; border: 1px solid var(--db-border); border-top: 4px solid var(--db-cyan); border-radius: 14px; background: #fff; }
.stage-grid article:nth-child(2) { border-top-color: var(--db-gold); }
.stage-grid article:nth-child(3) { border-top-color: var(--db-blue); }
.stage-grid article:nth-child(4) { border-top-color: var(--db-teal); }
.stage-grid article > span { color: var(--db-muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.stage-grid article > b { position: absolute; right: 13px; top: 2px; color: #edf3f8; font-size: 68px; line-height: 1; }
.stage-grid h3 { position: relative; margin: 30px 0 8px; color: #0c3b6a; font-size: 20px; }
.stage-grid p { position: relative; margin: 0; color: var(--db-muted); font-size: 14px; }

.level-group { padding-top: 6px; }
.dbms-level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dbms-level-card { position: relative; display: flex; min-width: 0; flex-direction: column; min-height: 365px; padding: 22px; border: 1px solid var(--db-border); border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(25, 55, 86, .05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.dbms-level-card:hover { transform: translateY(-3px); border-color: #a8c9df; box-shadow: 0 14px 30px rgba(25, 55, 86, .1); }
.dbms-level-card[hidden] { display: none !important; }
.level-number { color: #9a6a00; font-size: 11px; font-weight: 900; letter-spacing: .09em; }
.level-icon { position: absolute; top: 17px; right: 18px; display: grid; min-width: 43px; height: 43px; padding: 0 8px; place-items: center; border-radius: 11px; color: #075474; background: #e7f6f8; font-size: 13px; font-weight: 900; }
.dbms-level-card h3 { max-width: calc(100% - 55px); margin: 22px 0 8px; color: #0b3c6d; font-size: 21px; line-height: 1.2; }
.dbms-level-card p { margin: 0 0 12px; color: var(--db-muted); font-size: 14px; }
.dbms-level-card ul { margin: 0 0 20px; padding-left: 20px; color: #314c67; font-size: 13px; }
.dbms-level-card li { margin: 5px 0; }
.level-open { display: inline-flex; margin: auto 0 10px; color: #0d63a5; font-size: 13px; font-weight: 900; text-decoration: none; }
.level-open:hover { color: #084a7c; text-decoration: underline; }
.level-complete { width: 100%; min-height: 42px; margin-top: auto; padding: 9px 12px; border: 1px solid #adc3d7; border-radius: 8px; color: #17486d; background: #f7fbff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; }
.level-complete:hover { border-color: var(--db-cyan); background: #edfafd; }
.level-complete.is-complete { border-color: #a9d7c8; color: #086044; background: #ecf9f4; }

.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.lab-grid article { padding: 21px; border: 1px solid #cfe0ee; border-radius: 14px; background: linear-gradient(145deg, #fff, #f1f8fb); }
.lab-grid span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(135deg, var(--db-teal), var(--db-cyan)); font-size: 12px; font-weight: 900; }
.lab-grid h3 { margin: 16px 0 6px; color: #103d66; }
.lab-grid p { margin: 0; color: var(--db-muted); font-size: 14px; }

.dataset-section { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; border-left: 5px solid var(--db-gold); }
.dataset-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.dataset-chips span { padding: 10px 13px; border: 1px solid var(--db-border); border-radius: 999px; color: #244966; background: #f7fbff; font-size: 13px; font-weight: 700; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.project-grid article { padding: 24px; border-radius: 15px; color: #fff; background: linear-gradient(145deg, #0b2a47, #10536b); }
.project-grid article > span { color: var(--db-gold-light); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.project-grid h3 { margin: 15px 0 7px; color: #fff; font-size: 21px; }
.project-grid p, .project-grid ul { color: #d0e3ee; font-size: 14px; }
.project-grid ul { padding-left: 19px; }

.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.practice-grid a { display: block; min-height: 220px; padding: 21px; border: 1px solid var(--db-border); border-radius: 14px; color: inherit; background: #fff; text-decoration: none; transition: .18s ease; }
.practice-grid a:hover { transform: translateY(-3px); border-color: var(--db-blue); box-shadow: 0 12px 28px rgba(31, 111, 235, .1); }
.practice-grid span { color: #9a6a00; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.practice-grid h3 { margin: 17px 0 8px; color: #0c3d6c; }
.practice-grid p { color: var(--db-muted); font-size: 14px; }
.practice-grid b { display: inline-block; margin-top: 10px; color: var(--db-blue); }
.dbms-topic-navigation { display: flex; justify-content: space-between; gap: 15px; margin-top: 38px; }
.dbms-topic-navigation a { padding: 12px 15px; border: 1px solid var(--db-border); border-radius: 9px; color: #0c4d80; background: #fff; font-weight: 800; text-decoration: none; }

.dbms-page :focus-visible { outline: 3px solid rgba(31, 111, 235, .4); outline-offset: 3px; }

@media (max-width: 1180px) {
    .dbms-page .dbms-hero { grid-template-columns: 1fr; }
    .dbms-page .schema-window { width: 100%; max-width: 700px; min-width: 0; }
    .dbms-page .dbms-level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dbms-page .learning-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dbms-page .stage-grid,
    .dbms-page .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .dbms-page .dbms-sidebar-toggle {
        position: sticky;
        top: 72px;
        z-index: 900;
        display: block;
        width: 100%;
        min-height: 44px;
        padding: 11px 18px;
        border: 0;
        border-bottom: 1px solid var(--db-border);
        color: #fff;
        background: #0c385b;
        text-align: left;
        font: inherit;
        font-weight: 800;
    }

    .dbms-page .docs-layout {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .dbms-page .docs-layout > .sidebar {
        position: fixed !important;
        top: 116px !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 950;
        width: min(340px, calc(100vw - 44px)) !important;
        max-width: calc(100vw - 44px) !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding-bottom: 32px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        transform: translateX(-105%);
        transition: transform .22s ease;
        background: #fff;
        box-shadow: 16px 0 30px rgba(0,0,0,.20);
    }

    .dbms-page .docs-layout > .sidebar.is-open { transform: translateX(0); }

    .dbms-page .dbms-sidebar-backdrop {
        position: fixed;
        inset: 116px 0 0;
        z-index: 940;
        background: rgba(4,18,31,.56);
    }

    body.dbms-drawer-open { overflow: hidden; }

    .dbms-page .main-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 18px 15px 42px !important;
        overflow: visible !important;
    }

    /* Critical fix: this card was still behaving like a two-column grid
       on phones, leaving the heading in an extremely narrow first column. */
    .dbms-page .content-card.dbms-progress-card,
    .dbms-page .dbms-progress-card {
        display: block !important;
        grid-template-columns: none !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .dbms-page .dbms-progress-card > * {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .dbms-page .dbms-progress-card > div:first-child {
        margin-bottom: 22px;
    }

    .dbms-page .dbms-progress-card h2,
    .dbms-page .section-heading h2,
    .dbms-page .content-card h2 {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    .dbms-page .dataset-section { grid-template-columns: minmax(0,1fr) !important; }
    .dbms-page .lab-grid,
    .dbms-page .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

    .dbms-page .dbms-hero,
    .dbms-page .dbms-hero > *,
    .dbms-page .schema-window,
    .dbms-page .schema-grid,
    .dbms-page .schema-table {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .dbms-page .schema-window pre {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: pre;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 680px) {
    .dbms-page .top-header { min-height: 64px; padding: 0 13px; }
    .dbms-page .top-header .logo,
    .dbms-page .main-logo { height: 64px; }
    .dbms-page .main-logo { width: 58px; margin-right: 5px; }
    .dbms-page .top-header .logo { font-size: 23px; }

    .dbms-page .dbms-sidebar-toggle { top: 64px; }
    .dbms-page .docs-layout > .sidebar {
    position: fixed !important;

    top: 108px !important;
    bottom: auto !important;

    height: calc(100dvh - 108px) !important;
    max-height: calc(100dvh - 108px) !important;

    overflow-y: scroll !important;
    overflow-x: hidden !important;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;

    padding-bottom: 50px !important;
}
    @supports not (height: 100dvh) {

    @media (max-width: 680px) {

        .dbms-page .docs-layout > .sidebar {
            height: calc(100vh - 108px) !important;
            max-height: calc(100vh - 108px) !important;
        }

    }
}
    .dbms-page .dbms-sidebar-backdrop { inset: 108px 0 0; }

    .dbms-page .main-content { padding: 14px 12px 36px !important; }
    .dbms-page .content-card { padding: 20px 16px !important; }

    .dbms-page .dbms-hero {
        min-height: 0;
        padding: 24px 17px;
        border-radius: 14px;
    }

    .dbms-page .dbms-hero h1 {
        font-size: clamp(34px, 10vw, 42px);
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    .dbms-page .dbms-hero-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }

    .dbms-page .schema-grid {
        grid-template-columns: minmax(0,1fr);
        padding: 14px;
    }

    .dbms-page .schema-table.students,
    .dbms-page .schema-table.enrolments,
    .dbms-page .schema-table.courses { grid-column: 1; }

    .dbms-page .schema-table.students { grid-row: 1; }
    .dbms-page .schema-table.enrolments { grid-row: 3; }
    .dbms-page .schema-table.courses { grid-row: 5; }
    .dbms-page .schema-link { justify-self: center; transform: rotate(90deg); }
    .dbms-page .link-one { grid-column: 1; grid-row: 2; }
    .dbms-page .link-two { grid-column: 1; grid-row: 4; }

    .dbms-page .dbms-level-grid,
    .dbms-page .stage-grid,
    .dbms-page .lab-grid,
    .dbms-page .project-grid,
    .dbms-page .practice-grid,
    .dbms-page .learning-loop {
        grid-template-columns: minmax(0,1fr) !important;
    }

    .dbms-page .dbms-level-card { min-height: 0; }
    .dbms-page .dbms-topic-navigation { flex-direction: column; }

    .dbms-page .dbms-progress-card h2 {
        font-size: clamp(28px, 8vw, 36px) !important;
        line-height: 1.12 !important;
    }
}

@media (max-width: 420px) {
    .dbms-page .main-content { padding-left: 10px !important; padding-right: 10px !important; }
    .dbms-page .content-card { padding-left: 14px !important; padding-right: 14px !important; }
    .dbms-page .dbms-hero { padding-left: 15px; padding-right: 15px; }
    .dbms-page .dbms-hero-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================
   DBMS MOBILE - PROGRESS CARD FIX
   ========================================= */

@media (max-width: 680px) {

    .dbms-page .dbms-progress-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;

        width: 100% !important;
        min-width: 0 !important;
    }

    .dbms-page .dbms-progress-card > div {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .dbms-page .dbms-progress-card h2 {
        display: block !important;
        width: 100% !important;

        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;

        writing-mode: horizontal-tb !important;

        font-size: 30px !important;
        line-height: 1.15 !important;
    }

    .dbms-page .dbms-progress-summary {
        width: 100% !important;
    }

    .dbms-page .dbms-progress-track {
        width: 100% !important;
    }
}

/* DBMS PHONE HEADER — EXACT HEIGHT FOR READING PROGRESS */
/* @media (max-width: 680px) {

    body.dbms-page .top-header {
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;

        padding: 0 13px !important;

        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
    }

    body.dbms-page .top-header .logo {
        height: 64px !important;
        min-height: 64px !important;
    }

    body.dbms-page .main-logo {
        width: 58px !important;
        height: 64px !important;
    }

    body.dbms-page .top-nav {
        width: auto !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
    }
}  */

/* =========================================
   DBMS MOBILE FIXED HEADER
   ========================================= */

@media (max-width: 680px) {

    body.dbms-page {
        padding-top: 64px !important;
    }

    body.dbms-page .top-header {
        position: fixed !important;

        top: 0 !important;
        left: 0 !important;
        right: 0 !important;

        width: 100% !important;

        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;

        padding: 0 13px !important;

        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0 !important;

        z-index: 100000 !important;
    }

    body.dbms-page .top-header .logo {
        height: 64px !important;
        min-height: 64px !important;
    }

    body.dbms-page .main-logo {
        width: 58px !important;
        height: 64px !important;
    }

    body.dbms-page .top-nav {
        width: auto !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
    }

    body.dbms-page .lesson-reading-progress {
        position: fixed !important;
        top: 64px !important;
        height: 4px !important;
        z-index: 100001 !important;
    }

    body.dbms-page .dbms-sidebar-toggle {
        top: 68px !important;
    }
}
