/* My dashboards page. Uses the design tokens from site.css. */
.db-page { padding-top: 20px; }
.db-sec { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 26px 0 12px; }
.db-sec-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.db-sec-head .db-sec { margin: 0; }
.db-days { width: auto; }
.db-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.db-actions select { width: auto; height: 42px; padding-top: 0; padding-bottom: 0; font-weight: 600; }
.btn-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.db-danger { color: var(--red); }
.db-hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.db-gap { margin-top: 12px; }

/* Shared banner */
.db-share-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; padding: 16px 18px; margin-bottom: 16px; border-radius: var(--radius-lg); border: 1px solid var(--accent); background: var(--accent-soft); }
.db-share-banner b { display: block; }
.db-share-banner span { color: var(--text-2); font-size: 0.9rem; }

/* Home */
.db-home-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.db-home-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.04em; }
.db-greet { margin: 0 0 4px; color: var(--muted); font-weight: 550; }

.db-plan { list-style: none; margin: 0; padding: 12px 2px 6px; display: flex; gap: 12px; overflow-x: auto; }
.db-plan > li { flex: 0 0 auto; }
.db-slot { position: relative; display: flex; align-items: stretch; min-width: 240px; height: 100%; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--c, var(--accent)); box-shadow: var(--shadow); }
.db-slot-time { display: flex; align-items: center; padding-left: 10px; }
.db-slot-time input { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--text); font-variant-numeric: tabular-nums; padding: 6px 4px; border-radius: 8px; }
.db-slot-time input:focus { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.db-slot-open { flex: 1; display: grid; gap: 2px; text-align: left; padding: 12px 34px 12px 8px; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; border-radius: 0 14px 14px 0; }
.db-slot-open b { font-weight: 650; }
.db-slot-open small { color: var(--muted); }
.db-slot-open:hover b { color: var(--accent-text); }
.db-slot-rm { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.db-slot-rm:hover { background: var(--surface-2); color: var(--red); }
.db-slot.next { border-color: var(--accent); border-left-color: var(--c, var(--accent)); box-shadow: 0 0 0 3px var(--ring); }
.db-slot.next::before, .db-slot.now::before { position: absolute; top: -10px; left: 14px; font-size: 0.7rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.db-slot.next::before { content: 'Up next'; background: var(--accent); color: var(--on-accent); }
.db-slot.now::before { content: 'Now'; background: var(--green); color: #fff; }
.db-slot.done { opacity: 0.55; }
.db-slot-add { border: 2px dashed var(--border-strong); border-left-width: 2px; box-shadow: none; background: transparent; color: var(--accent-text); font: inherit; font-weight: 650; padding: 0 18px; min-height: 64px; cursor: pointer; justify-content: center; align-items: center; }

.db-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.db-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.2s var(--ease); }
.db-card:hover { transform: translateY(-2px); }
.db-card-art { height: 120px; display: flex; align-items: end; padding: 12px; border: 0; border-bottom: 4px solid var(--c); cursor: pointer; width: 100%; }
.db-mini-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: 72%; }
.db-mini-tiles i { height: 20px; border-radius: 5px; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.db-mini-tiles i.m, .db-mini-tiles i.l { grid-column: span 2; }
.db-card-info { padding: 14px 16px 10px; display: grid; gap: 2px; }
.db-card-info b { font-size: 1.05rem; }
.db-card-info small { color: var(--muted); }
.db-card-row { display: flex; gap: 6px; padding: 0 16px 14px; flex-wrap: wrap; }
.db-card-new { min-height: 220px; display: grid; place-items: center; border: 2px dashed var(--border-strong); background: transparent; box-shadow: none; color: var(--accent-text); font: inherit; font-weight: 650; cursor: pointer; }

/* Dashboard */
.db-dash { border-radius: 22px; padding: 4px 0 24px; }
.db-dash.db-has-bg { padding: 16px 18px 24px; margin: 0 -18px; }
.db-dash.db-anim { animation: db-drift 90s linear infinite; }
@keyframes db-drift { to { background-position: 260px 520px; } }
.db-dash-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.db-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; max-width: 100%; }
.db-tab { white-space: nowrap; border: 0; background: transparent; padding: 0 14px; min-height: 36px; border-radius: 9px; font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--muted); cursor: pointer; display: flex; gap: 8px; align-items: center; }
.db-tab[aria-selected='true'] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.db-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.db-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 14px; }
.db-title-row h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.db-class { font-weight: 700; font-size: 0.9rem; padding: 4px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); }

.db-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); grid-auto-flow: dense; gap: 14px; }
.db-tile { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.db-tile.s { grid-column: span 1; }
.db-tile.m { grid-column: span 2; }
.db-tile.l { grid-column: span 2; grid-row: span 2; }
.db-t-head { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.db-open { margin-left: auto; font-size: 0.8rem; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.db-t-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.db-big { font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.db-mid { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.db-small { font-size: 0.92rem; color: var(--text-2); }
.db-ex { font-style: italic; }
.db-q { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; text-wrap: balance; white-space: pre-line; }
.db-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.db-mini { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.db-mini:hover { background: var(--surface-2); }
.db-mini-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.db-mini-primary:hover { background: var(--accent-hover); }
.db-done { color: var(--red); }
.db-flash { animation: db-flash 0.6s ease-in-out 4; }
@keyframes db-flash { 50% { box-shadow: 0 0 0 6px var(--red); } }
.db-picked { color: var(--accent-text); word-break: break-word; }
.db-placeholder { color: var(--muted); font-size: clamp(1.4rem, 2.4vw, 2rem); }
.db-answer { color: var(--accent-text); }
.db-lamps { display: flex; gap: 10px; }
.db-lamp { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: color-mix(in srgb, var(--c) 20%, var(--surface-3)); }
.db-lamp[aria-pressed='true'] { background: var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 60%, transparent); }
.db-lesson { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #000)); border: 0; color: #fff; }
.db-lesson .db-t-head { color: rgba(255, 255, 255, 0.8); }
.db-lesson-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.db-lesson-obj { font-size: 1.05rem; color: rgba(255, 255, 255, 0.9); white-space: pre-line; }
[data-theme='dark'] .db-lesson { color: var(--on-accent); }
[data-theme='dark'] .db-lesson .db-t-head, [data-theme='dark'] .db-lesson-obj { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }
.db-nn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; }
.db-nn-cell { border-radius: 14px; border: 2px solid var(--border); display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 12px; }
.db-nn-cell:first-child { border-color: var(--accent); background: var(--accent-soft); }
.db-nn-cell small { font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--muted); }
.db-nn-cell:first-child small { color: var(--accent-text); }
.db-nn-cell svg { width: clamp(56px, 7vw, 110px); height: clamp(56px, 7vw, 110px); color: var(--accent-text); }
.db-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.db-steps button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.db-steps button span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; font-size: 0.8rem; flex: none; }
.db-steps button.done { opacity: 0.55; text-decoration: line-through; }
.db-steps button.done span { background: var(--green); border-color: var(--green); color: #fff; }
.db-starter-list { margin: 0; padding-left: 1.4em; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 18px; font-size: 1.15rem; font-weight: 600; }
.db-plen { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; color: var(--text-2); }
.db-empty { grid-column: 1 / -1; }

/* Colourful tiles */
.db-colour .db-tile:not(.db-lesson) { background: color-mix(in srgb, var(--tc) 9%, var(--surface)); border-color: color-mix(in srgb, var(--tc) 35%, var(--border)); border-top: 5px solid var(--tc); }
.db-colour .db-tile:not(.db-lesson) .db-t-head { color: color-mix(in srgb, var(--tc) 75%, var(--text)); }

/* Edit mode */
.db-edit-bar { display: none; position: absolute; top: 10px; right: 10px; gap: 4px; z-index: 2; }
.db-edit-bar button { min-width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-weight: 700; font-size: 0.85rem; }
.db-edit-bar .db-x { color: var(--red); }
.db-editing .db-edit-bar { display: flex; }
.db-editing .db-open { display: none; }
.db-editing .db-tile { outline: 2px dashed var(--border-strong); outline-offset: -2px; cursor: grab; }
.db-editing .db-t-head { padding-right: 190px; }
.db-tile.dragging { opacity: 0.4; }
.db-add-tile { display: none; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--accent-text); font: inherit; font-weight: 650; cursor: pointer; min-height: 180px; }
.db-editing .db-add-tile { display: block; }

/* Drawer */
.db-scrim { position: fixed; inset: 0; background: rgba(10, 13, 20, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 60; }
.db-scrim.open { opacity: 1; pointer-events: auto; }
.db-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateX(100%); visibility: hidden; transition: transform 0.3s var(--ease), visibility 0s 0.3s; z-index: 61; display: flex; flex-direction: column; }
.db-drawer.open { transform: none; visibility: visible; transition: transform 0.3s var(--ease); }
.db-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.db-drawer-head h2 { margin: 0; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-drawer-body { padding: 18px; overflow: auto; }
.db-drawer-body p { margin-top: 0; color: var(--text-2); }
.db-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.db-list button { width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.db-list button:hover { border-color: var(--accent); background: var(--accent-soft); }
.db-list b { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-size: 1.05rem; }
.db-list b.db-dotb { background: var(--c); }
.db-list span { font-weight: 650; }
.db-list small { color: var(--muted); }
.db-need { border-color: var(--red) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent) !important; }
.db-bg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.db-bg-opt { display: grid; gap: 6px; padding: 6px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; text-align: center; }
.db-bg-opt[aria-checked='true'] { border-color: var(--accent); color: var(--accent-text); }
.db-bg-sw { height: 44px; border-radius: 8px; background-size: 130px 130px; }

/* Display options */
body.db-easy { font-family: Verdana, Tahoma, 'Segoe UI', sans-serif; letter-spacing: 0.02em; word-spacing: 0.1em; }
body.db-easy .db-big, body.db-easy .db-mid, body.db-easy .db-q, body.db-easy .db-lesson-title { letter-spacing: 0; }
body.db-hc { --bg: #000; --surface: #000; --surface-2: #111; --surface-3: #222; --border: #fff; --border-strong: #fff; --text: #fff; --text-2: #fff; --muted: #e6e6e6; --accent: #ffe14d; --accent-hover: #fff07a; --accent-soft: #222; --accent-text: #ffe14d; --on-accent: #000; --ring: rgba(255, 225, 77, 0.6); background: #000; color: #fff; }
body.db-hc .db-tile { border-width: 2px; }
body.db-hc .db-lesson { background: #000; border: 2px solid #ffe14d; color: #fff; }
body.db-hc .db-lesson-obj, body.db-hc .db-lesson .db-t-head { color: #fff; }

/* Zoom button on each tile */
.db-zoom-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; min-width: 30px; justify-content: center; padding: 0 6px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 650; text-transform: none; letter-spacing: 0; }
.db-zoom-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.db-zoom-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.db-open + .db-zoom-btn { margin-left: 4px; }
.db-lesson .db-zoom-btn { color: rgba(255, 255, 255, 0.8); }
.db-editing .db-zoom-btn { display: none; }
.db-present-hint { display: none; }

/* Coloured task steps */
.db-steps li { --sc: var(--accent); }
.db-steps button span { background: var(--sc); border-color: var(--sc); color: #fff; font-weight: 700; }
.db-steps button.current { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--sc) 35%, transparent); }

/* Present: everything fits one screen. Tiles scale their text to their own size. */
body.presenting .db-home, body.presenting .db-share-banner { display: none !important; }
body.presenting .db-dash { position: fixed; inset: 0; z-index: 50; margin: 0; border-radius: 0; padding: 1.6vh 1.6vw; overflow: hidden; background-color: var(--bg); display: flex; flex-direction: column; }
body.presenting .db-dash-head { position: absolute; top: 1.4vh; right: 1.6vw; z-index: 3; transition: opacity 0.4s; }
body.presenting.idle .db-dash-head, body.presenting.idle .db-present-hint { opacity: 0; }
body.presenting .db-title-row { margin: 0 0 1.4vh; padding-right: 180px; flex: none; }
body.presenting .db-title-row h1 { font-size: clamp(1.4rem, 4.2vh, 3.2rem); }
body.presenting .db-present-hint { display: inline; color: var(--muted); font-size: 0.9rem; transition: opacity 0.4s; }
body.presenting .db-grid { flex: 1; min-height: 0; grid-auto-rows: minmax(0, 1fr); gap: 1.4vh 1.2vw; }
body.presenting .db-add-tile, body.presenting .db-empty { display: none; }
body.presenting .db-tile { cursor: zoom-in; min-height: 0; }

/* Zoomed tile fills the screen */
.db-tile.db-zoomed { position: fixed; inset: 0; z-index: 80; border-radius: 0; border: 0; padding: 3vh 4vw; cursor: zoom-out; grid-column: auto; grid-row: auto; animation: db-zoom-in 0.25s var(--ease); }
body.db-zoom-on { overflow: hidden; }
.db-tile.db-zoomed .db-zoom-btn { height: 44px; padding: 0 14px; border-color: var(--border-strong); background: var(--surface); color: var(--text); font-size: 1rem; }
.db-lesson.db-zoomed .db-zoom-btn { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.db-colour .db-tile.db-zoomed:not(.db-lesson) { background: color-mix(in srgb, var(--tc) 9%, var(--surface)); border-top: 8px solid var(--tc); }
@keyframes db-zoom-in { from { transform: scale(0.92); opacity: 0.4; } }

/* Text sizes follow the tile's own size when presenting or zoomed. */
body.presenting .db-tile, .db-tile.db-zoomed { container-type: size; }
body.presenting .db-tile .db-t-body, .db-tile.db-zoomed .db-t-body { min-height: 0; }
body.presenting .db-t-head, .db-zoomed .db-t-head { font-size: clamp(0.72rem, min(4.5cqh, 2.2cqw), 1.6rem); }
body.presenting .db-big, .db-zoomed .db-big { font-size: clamp(1.6rem, min(34cqh, 21cqw), 40vh); }
body.presenting .db-placeholder, .db-zoomed .db-placeholder { font-size: clamp(1.2rem, min(14cqh, 8cqw), 12vh); }
body.presenting .db-mid, .db-zoomed .db-mid { font-size: clamp(1rem, min(11cqh, 6cqw), 9vh); }
body.presenting .db-q, .db-zoomed .db-q { font-size: clamp(1rem, min(12cqh, 6.4cqw), 10vh); }
body.presenting .db-small, body.presenting .db-plen, .db-zoomed .db-small, .db-zoomed .db-plen { font-size: clamp(0.85rem, min(6.5cqh, 3.2cqw), 4.5vh); }
body.presenting .db-lesson-title, .db-zoomed .db-lesson-title { font-size: clamp(1.2rem, min(20cqh, 8.5cqw), 16vh); }
body.presenting .db-lesson-obj, .db-zoomed .db-lesson-obj { font-size: clamp(0.9rem, min(9cqh, 4cqw), 7vh); }
body.presenting .db-steps, .db-zoomed .db-steps { flex: 1; min-height: 0; grid-auto-rows: minmax(0, 1fr); gap: min(2cqh, 10px); }
body.presenting .db-steps button, .db-zoomed .db-steps button { height: 100%; padding: 0 min(2cqw, 18px); font-size: clamp(0.8rem, min(calc(48cqh / var(--n)), 4cqw), 7vh); }
body.presenting .db-steps button span, .db-zoomed .db-steps button span { width: 1.6em; height: 1.6em; font-size: 0.8em; }
body.presenting .db-starter-list, .db-zoomed .db-starter-list { font-size: clamp(0.9rem, min(10cqh, 4.6cqw), 8vh); grid-template-columns: repeat(auto-fill, minmax(min(12em, 100%), 1fr)); }
body.presenting .db-lamp, .db-zoomed .db-lamp { width: clamp(40px, min(30cqh, 16cqw), 40vh); height: clamp(40px, min(30cqh, 16cqw), 40vh); }
body.presenting .db-lamps, .db-zoomed .db-lamps { gap: min(3cqw, 24px); }
body.presenting .db-nn-cell svg, .db-zoomed .db-nn-cell svg { width: min(34cqh, 16cqw); height: min(34cqh, 16cqw); }
body.presenting .db-mini, .db-zoomed .db-mini { min-height: clamp(36px, 9cqh, 64px); padding: 0 clamp(12px, 2cqw, 26px); font-size: clamp(0.85rem, min(5cqh, 2.4cqw), 1.5rem); border-radius: 12px; }
body.presenting .db-t-body, .db-zoomed .db-t-body { gap: min(3cqh, 18px); }

@media (max-width: 900px) { .db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .db-grid { grid-template-columns: 1fr; }
  .db-tile.m, .db-tile.l { grid-column: span 1; }
  .db-tile.l { grid-row: span 1; }
  .db-actions { margin-left: 0; }
  .db-dash.db-has-bg { margin: 0 -12px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .db-dash.db-anim, .db-flash, .db-tile.db-zoomed { animation: none; }
  .db-card, .db-drawer, .db-scrim { transition: none; }
}
@media print { .db-drawer, .db-scrim { display: none; } }

/* Tiles for spelling, points and class jobs */
.db-jobs li b { display: block; font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.04em; color: var(--tc, var(--muted)); }
.db-points { list-style: none; margin: 0; padding: 0 14px 14px; display: grid; gap: 6px; overflow: auto; }
.db-points li { position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 4px 6px 4px 10px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.db-pt-bar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--pc) 25%, transparent); border-right: 3px solid var(--pc); pointer-events: none; }
.db-pt-name, .db-points b, .db-points button { position: relative; }
.db-pt-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-scramble { letter-spacing: 0.08em; text-transform: lowercase; }
