Files

1179 lines
23 KiB
CSS
Raw Permalink Normal View History

/*
* app-theme.css — shared theme for the learning-paths prototypes.
*
* Tokens mirror packages/ui/src/index.css (shadcn-svelte) exactly:
* OKLCH palette, Geist, --radius: 0.625rem, shadow-2xs, and the component
* recipes from @cio/ui base components (Button, Badge, Item, Progress, Sidebar).
* Dark mode uses the same `.dark` class convention as the app.
*/
:root {
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--card: oklch(1 0 0);
--card-foreground: oklch(0.145 0 0);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0);
--primary: oklch(0.488 0.243 264.376);
--primary-foreground: oklch(0.97 0.014 254.604);
--secondary: oklch(0.967 0.001 286.375);
--secondary-foreground: oklch(0.21 0.006 285.885);
--muted: oklch(0.97 0 0);
--muted-foreground: oklch(0.556 0 0);
--accent: oklch(0.97 0 0);
--accent-foreground: oklch(0.205 0 0);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.922 0 0);
--input: oklch(0.922 0 0);
--ring: oklch(0.708 0 0);
--radius: 0.625rem;
--sidebar: oklch(0.985 0 0);
--sidebar-foreground: oklch(0.145 0 0);
--sidebar-accent: oklch(0.97 0 0);
--sidebar-accent-foreground: oklch(0.205 0 0);
--sidebar-border: oklch(0.922 0 0);
/* Semantic states from @cio/ui Badge variants (emerald / amber) */
--success: oklch(0.596 0.145 163.225); /* emerald-600 */
--success-foreground: #fff;
--success-soft: oklch(0.596 0.145 163.225 / 0.12);
--warning: oklch(0.666 0.179 58.318); /* amber-600 */
--warning-foreground: #fff;
--warning-soft: oklch(0.666 0.179 58.318 / 0.14);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--shadow-2xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.dark {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(0.205 0 0);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.205 0 0);
--popover-foreground: oklch(0.985 0 0);
--primary: oklch(0.424 0.199 265.638);
--primary-foreground: oklch(0.97 0.014 254.604);
--secondary: oklch(0.274 0.006 286.033);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.269 0 0);
--muted-foreground: oklch(0.708 0 0);
--accent: oklch(0.269 0 0);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.556 0 0);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(1 0 0 / 10%);
--success: oklch(0.696 0.17 162.48); /* emerald-500 */
--success-foreground: oklch(0.262 0.051 172.552); /* emerald-950 */
--success-soft: oklch(0.696 0.17 162.48 / 0.16);
--warning: oklch(0.769 0.188 70.08); /* amber-500 */
--warning-foreground: oklch(0.279 0.077 45.635); /* amber-950 */
--warning-soft: oklch(0.769 0.188 70.08 / 0.16);
}
/* ============ base ============ */
* {
box-sizing: border-box;
border-color: var(--border);
}
html,
body {
margin: 0;
padding: 0;
}
body {
font-family:
'Geist',
ui-sans-serif,
system-ui,
-apple-system,
'Segoe UI',
Roboto,
sans-serif;
background: var(--background);
color: var(--foreground);
font-size: 14px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
a {
color: inherit;
text-decoration: none;
}
button {
font: inherit;
}
.tnum {
font-variant-numeric: tabular-nums;
}
.text-muted {
color: var(--muted-foreground);
}
.text-primary {
color: var(--primary);
}
/* ============ app shell ============ */
.app {
display: grid;
grid-template-columns: 256px 1fr;
min-height: 100vh;
}
.main {
display: flex;
flex-direction: column;
min-width: 0;
}
.content {
padding: 28px 28px 64px;
}
.wrap {
max-width: 960px;
margin: 0 auto;
}
.wrap-narrow {
max-width: 760px;
margin: 0 auto;
}
/* sidebar (mirrors @cio/ui base/sidebar) */
.sidebar {
background: var(--sidebar);
border-right: 1px solid var(--sidebar-border);
padding: 16px 12px;
display: flex;
flex-direction: column;
gap: 2px;
position: sticky;
top: 0;
height: 100vh;
}
.brand {
display: flex;
align-items: center;
gap: 8px;
padding: 4px 8px 14px;
}
.brand-mark {
width: 28px;
height: 28px;
border-radius: var(--radius-md);
background: var(--primary);
color: var(--primary-foreground);
display: grid;
place-items: center;
font-weight: 700;
font-size: 14px;
}
.brand-name {
font-weight: 600;
font-size: 14px;
letter-spacing: -0.01em;
}
.nav-label {
font-size: 11px;
color: var(--muted-foreground);
font-weight: 500;
padding: 12px 8px 4px;
}
.nav-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px;
border-radius: var(--radius-md);
color: var(--sidebar-foreground);
font-weight: 400;
font-size: 14px;
transition: background 0.1s;
}
.nav-item svg {
width: 16px;
height: 16px;
stroke-width: 2;
color: var(--muted-foreground);
flex-shrink: 0;
}
.nav-item:hover {
background: var(--sidebar-accent);
}
.nav-item.active {
background: var(--sidebar-accent);
color: var(--sidebar-accent-foreground);
font-weight: 500;
}
.nav-item.active svg {
color: var(--sidebar-accent-foreground);
}
.nav-tail {
margin-left: auto;
font-size: 12px;
color: var(--muted-foreground);
}
.nav-badge {
margin-left: auto;
font-size: 11px;
font-weight: 600;
background: var(--primary);
color: var(--primary-foreground);
border-radius: 999px;
padding: 1px 7px;
}
.sidebar-foot {
margin-top: auto;
display: flex;
align-items: center;
gap: 10px;
padding: 8px;
border-top: 1px solid var(--sidebar-border);
}
.avatar {
width: 30px;
height: 30px;
border-radius: 999px;
background: var(--secondary);
color: var(--secondary-foreground);
display: grid;
place-items: center;
font-weight: 600;
font-size: 12px;
flex-shrink: 0;
}
.who {
min-width: 0;
}
.who .nm {
font-size: 13px;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.who .rl {
font-size: 11.5px;
color: var(--muted-foreground);
}
/* path identity block (teacher path sidebar) */
.back-link {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: var(--muted-foreground);
padding: 6px 8px;
border-radius: var(--radius-md);
margin-bottom: 4px;
}
.back-link:hover {
background: var(--sidebar-accent);
color: var(--foreground);
}
.back-link svg {
width: 15px;
height: 15px;
stroke-width: 2;
}
.path-id {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 8px 14px;
border-bottom: 1px solid var(--sidebar-border);
margin-bottom: 6px;
}
.path-id .ico {
width: 32px;
height: 32px;
border-radius: var(--radius-md);
background: var(--primary);
color: var(--primary-foreground);
display: grid;
place-items: center;
flex-shrink: 0;
}
.path-id .ico svg {
width: 16px;
height: 16px;
stroke-width: 2;
}
.path-id .nm {
font-size: 13px;
font-weight: 600;
line-height: 1.3;
letter-spacing: -0.01em;
}
.path-id .st {
font-size: 11.5px;
font-weight: 500;
display: flex;
align-items: center;
gap: 5px;
margin-top: 2px;
}
.path-id .st .dot {
width: 6px;
height: 6px;
border-radius: 999px;
}
.st-active {
color: var(--success);
}
.st-active .dot {
background: var(--success);
}
.st-draft {
color: var(--warning);
}
.st-draft .dot {
background: var(--warning);
}
/* topbar */
.topbar {
height: 56px;
border-bottom: 1px solid var(--border);
background: color-mix(in oklab, var(--background) 90%, transparent);
backdrop-filter: blur(8px);
position: sticky;
top: 0;
z-index: 100;
display: flex;
align-items: center;
gap: 12px;
padding: 0 24px;
}
.crumbs {
display: flex;
align-items: center;
gap: 8px;
font-size: 13.5px;
color: var(--muted-foreground);
min-width: 0;
}
.crumbs a:hover {
color: var(--foreground);
}
.crumbs .sep {
color: var(--border);
}
.crumbs .here {
color: var(--foreground);
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.top-title {
font-weight: 600;
font-size: 15px;
letter-spacing: -0.01em;
}
.top-actions {
margin-left: auto;
display: flex;
align-items: center;
gap: 8px;
}
/* ============ buttons (mirrors @cio/ui base/button) ============ */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
border-radius: var(--radius-md);
font-size: 14px;
font-weight: 500;
white-space: nowrap;
height: 36px;
padding: 0 16px;
border: 1px solid transparent;
cursor: pointer;
transition:
background 0.12s,
border-color 0.12s,
color 0.12s;
box-shadow: var(--shadow-2xs);
user-select: none;
}
.btn svg {
width: 16px;
height: 16px;
stroke-width: 2;
flex-shrink: 0;
}
.btn-primary {
background: var(--primary);
color: var(--primary-foreground);
}
.btn-primary:hover {
background: color-mix(in oklab, var(--primary) 90%, transparent);
}
.btn-outline {
background: var(--background);
border-color: var(--input);
color: var(--foreground);
}
.btn-outline:hover {
background: var(--accent);
color: var(--accent-foreground);
}
.btn-secondary {
background: var(--secondary);
color: var(--secondary-foreground);
}
.btn-secondary:hover {
background: color-mix(in oklab, var(--secondary) 80%, transparent);
}
.btn-ghost {
background: transparent;
box-shadow: none;
color: var(--foreground);
}
.btn-ghost:hover {
background: var(--accent);
}
.btn-destructive {
background: var(--destructive);
color: #fff;
}
.btn-success {
background: var(--success);
color: var(--success-foreground);
}
.btn-sm {
height: 32px;
padding: 0 12px;
font-size: 13px;
gap: 6px;
}
.btn-sm svg {
width: 15px;
height: 15px;
}
.btn-lg {
height: 40px;
padding: 0 24px;
}
.btn[disabled],
.btn.disabled {
opacity: 0.5;
pointer-events: none;
cursor: not-allowed;
}
.btn-icon {
width: 36px;
padding: 0;
}
.btn-icon.btn-sm {
width: 32px;
}
/* ============ badges (mirrors @cio/ui base/badge) ============ */
.badge {
display: inline-flex;
align-items: center;
gap: 4px;
width: fit-content;
border-radius: var(--radius-md);
border: 1px solid transparent;
padding: 2px 8px;
font-size: 12px;
font-weight: 500;
white-space: nowrap;
}
.badge svg {
width: 12px;
height: 12px;
stroke-width: 2.4;
}
.badge-default {
background: var(--primary);
color: var(--primary-foreground);
}
.badge-secondary {
background: var(--secondary);
color: var(--secondary-foreground);
}
.badge-success {
background: var(--success);
color: var(--success-foreground);
}
.badge-warning {
background: var(--warning);
color: var(--warning-foreground);
}
.badge-outline {
border-color: var(--border);
color: var(--foreground);
background: transparent;
}
.badge-success-soft {
background: var(--success-soft);
color: var(--success);
}
.badge-primary-soft {
background: color-mix(in oklab, var(--primary) 12%, transparent);
color: var(--primary);
}
.badge-muted {
background: var(--muted);
color: var(--muted-foreground);
}
/* ============ cards ============ */
.card {
background: var(--card);
color: var(--card-foreground);
border: 1px solid var(--border);
border-radius: var(--radius-xl);
box-shadow: var(--shadow-2xs);
}
.card-pad {
padding: 20px;
}
/* ============ item rows (mirrors @cio/ui base/item) ============ */
.item {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 16px;
border-radius: var(--radius-md);
border: 1px solid transparent;
padding: 16px;
font-size: 14px;
transition:
background 0.1s,
border-color 0.1s;
}
.item-muted {
background: color-mix(in oklab, var(--muted) 50%, transparent);
}
.item-outline {
border-color: var(--border);
}
.item-done {
opacity: 0.6;
}
.item-done .item-title,
.item-done .item-desc {
color: var(--muted-foreground);
text-decoration: line-through;
}
.item-current {
background: var(--card);
border-color: var(--primary);
box-shadow: var(--shadow-sm);
}
.item-dashed {
border: 1px dashed var(--border);
background: transparent;
}
a.item:hover {
background: color-mix(in oklab, var(--accent) 50%, transparent);
}
.item-media-icon {
width: 32px;
height: 32px;
border-radius: var(--radius-sm);
background: var(--muted);
border: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
align-self: flex-start;
margin-top: 2px;
color: var(--muted-foreground);
}
.item-media-icon svg {
width: 16px;
height: 16px;
stroke-width: 2;
}
.item-media-icon.is-done {
background: var(--success);
border-color: var(--success);
color: var(--success-foreground);
}
.item-media-icon.is-current {
background: color-mix(in oklab, var(--primary) 10%, transparent);
border-color: color-mix(in oklab, var(--primary) 30%, transparent);
color: var(--primary);
}
.item-media-lg {
width: 40px;
height: 40px;
}
.item-media-lg svg {
width: 19px;
height: 19px;
}
.item-content {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.item-title {
font-size: 14px;
font-weight: 500;
line-height: 1.4;
letter-spacing: -0.01em;
}
.item-title-lg {
font-size: 15px;
font-weight: 600;
}
.item-desc {
font-size: 13px;
color: var(--muted-foreground);
line-height: 1.45;
}
.item-actions {
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.item-eyebrow {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
color: var(--muted-foreground);
}
/* ============ progress (mirrors @cio/ui base/progress) ============ */
.progress {
height: 8px;
border-radius: var(--radius-md);
overflow: hidden;
background: color-mix(in oklab, var(--primary) 20%, transparent);
flex: 1;
}
.progress > span {
display: block;
height: 100%;
background: var(--primary);
border-radius: var(--radius-md);
transition: width 0.3s;
}
.progress-success > span {
background: var(--success);
}
.progress-thin {
height: 6px;
}
/* progress ring (mirrors @cio/ui custom/percent-ring-progress) */
.ring {
position: relative;
width: 56px;
height: 56px;
flex-shrink: 0;
}
.ring-sm {
width: 40px;
height: 40px;
}
.ring svg {
width: 100%;
height: 100%;
transform: rotate(-90deg);
display: block;
}
.ring .track {
stroke: var(--border);
}
.ring .arc {
stroke: var(--success);
transition: stroke-dashoffset 0.7s ease-out;
}
.ring .lbl {
position: absolute;
inset: 0;
display: grid;
place-items: center;
font-size: 12.5px;
font-weight: 600;
color: var(--foreground);
}
.ring-sm .lbl {
font-size: 10px;
}
/* completion dots (setup page pattern) */
.dots {
display: flex;
gap: 4px;
}
.dot {
width: 8px;
height: 8px;
border-radius: 999px;
background: var(--border);
}
.dot.on {
background: var(--success);
}
/* ============ forms ============ */
.input,
.textarea,
.select {
width: 100%;
font: inherit;
font-size: 14px;
color: var(--foreground);
background: transparent;
border: 1px solid var(--input);
border-radius: var(--radius-md);
padding: 7px 12px;
outline: none;
box-shadow: var(--shadow-2xs);
transition:
border-color 0.12s,
box-shadow 0.12s;
}
.input:focus,
.textarea:focus {
border-color: var(--ring);
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}
.textarea {
resize: vertical;
min-height: 76px;
line-height: 1.55;
}
.label {
display: block;
font-size: 13px;
font-weight: 500;
margin-bottom: 6px;
}
.hint {
font-size: 12px;
color: var(--muted-foreground);
margin-top: 5px;
}
.field {
margin-bottom: 18px;
}
.field:last-child {
margin-bottom: 0;
}
/* switch */
.switch {
position: relative;
width: 36px;
height: 20px;
flex-shrink: 0;
cursor: pointer;
display: inline-block;
}
.switch input {
position: absolute;
opacity: 0;
inset: 0;
margin: 0;
cursor: pointer;
z-index: 1;
}
.switch .track {
position: absolute;
inset: 0;
background: var(--input);
border-radius: 999px;
transition: background 0.15s;
}
.switch .knob {
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
border-radius: 999px;
background: var(--background);
box-shadow: var(--shadow-sm);
transition: transform 0.15s;
}
.switch input:checked + .track {
background: var(--primary);
}
.switch input:checked ~ .knob {
transform: translateX(16px);
}
/* ============ tables ============ */
.thead,
.trow {
display: grid;
align-items: center;
gap: 14px;
padding: 12px 16px;
}
.thead {
font-size: 12px;
color: var(--muted-foreground);
font-weight: 500;
border-bottom: 1px solid var(--border);
}
.trow {
border-bottom: 1px solid var(--border);
font-size: 14px;
}
.trow:last-child {
border-bottom: none;
}
a.trow:hover {
background: color-mix(in oklab, var(--accent) 50%, transparent);
}
/* ============ misc components ============ */
.icon-btn {
width: 32px;
height: 32px;
border-radius: var(--radius-md);
border: 1px solid var(--input);
background: var(--background);
display: grid;
place-items: center;
color: var(--muted-foreground);
cursor: pointer;
box-shadow: var(--shadow-2xs);
}
.icon-btn:hover {
color: var(--foreground);
background: var(--accent);
}
.icon-btn svg {
width: 15px;
height: 15px;
stroke-width: 2;
}
.seg-toggle {
display: inline-flex;
padding: 3px;
background: var(--muted);
border-radius: var(--radius-lg);
gap: 2px;
}
.seg-toggle a,
.seg-toggle button {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 12px;
border-radius: var(--radius-md);
border: none;
background: transparent;
font-size: 13px;
font-weight: 500;
color: var(--muted-foreground);
cursor: pointer;
}
.seg-toggle .on {
background: var(--background);
color: var(--foreground);
box-shadow: var(--shadow-2xs);
}
.seg-toggle svg {
width: 14px;
height: 14px;
stroke-width: 2;
}
.stat-card {
padding: 16px 18px;
}
.stat-card .k {
font-size: 13px;
color: var(--muted-foreground);
font-weight: 500;
display: flex;
align-items: center;
gap: 7px;
}
.stat-card .k svg {
width: 15px;
height: 15px;
stroke-width: 2;
}
.stat-card .v {
font-size: 26px;
font-weight: 600;
letter-spacing: -0.02em;
margin-top: 4px;
}
.stat-card .s {
font-size: 12px;
color: var(--muted-foreground);
margin-top: 2px;
}
/* page headers */
.page-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 20px;
margin: 8px 0 20px;
}
.page-title {
font-size: 24px;
font-weight: 400;
letter-spacing: -0.025em;
margin: 0 0 4px;
}
.page-sub {
color: var(--muted-foreground);
font-size: 14px;
margin: 0;
}
.sec-title {
font-size: 16px;
font-weight: 600;
letter-spacing: -0.01em;
margin: 0;
}
.sec-head {
display: flex;
align-items: center;
gap: 10px;
margin: 28px 0 14px;
}
.sec-head .count {
font-size: 12px;
font-weight: 500;
color: var(--muted-foreground);
background: var(--muted);
padding: 1px 8px;
border-radius: 999px;
}
.sec-head .more {
margin-left: auto;
font-size: 13.5px;
color: var(--primary);
font-weight: 500;
display: flex;
align-items: center;
gap: 4px;
}
.sec-head .more svg {
width: 14px;
height: 14px;
stroke-width: 2;
}
/* segmented path progress (course-count segments) */
.segs {
display: flex;
gap: 4px;
flex: 1;
}
.seg {
flex: 1;
height: 6px;
border-radius: 999px;
background: color-mix(in oklab, var(--primary) 15%, transparent);
position: relative;
overflow: hidden;
}
.seg.done {
background: var(--success);
}
.seg.half::after {
content: '';
position: absolute;
inset: 0;
width: 45%;
background: var(--primary);
border-radius: 999px;
}
/* lock veil for thumbnails */
.lock-veil {
position: absolute;
inset: 0;
background: oklch(0.145 0 0 / 0.35);
display: grid;
place-items: center;
}
.lock-veil svg {
width: 18px;
height: 18px;
color: #fff;
stroke-width: 2.2;
}
/* ============ journey spine (learner path detail) ============ */
.journey {
position: relative;
margin-top: 16px;
}
.step {
position: relative;
display: grid;
grid-template-columns: 36px 1fr;
gap: 16px;
padding-bottom: 16px;
}
.step:last-child {
padding-bottom: 0;
}
.rail {
position: relative;
display: flex;
justify-content: center;
}
.rail::before {
content: '';
position: absolute;
top: 38px;
bottom: -16px;
width: 2px;
background: var(--border);
border-radius: 2px;
}
.step:last-child .rail::before,
.step.no-rail .rail::before {
display: none;
}
.step.s-done .rail::before {
background: var(--success);
}
.step.s-current .rail::before {
background: linear-gradient(180deg, var(--success) 0%, var(--border) 70%);
}
.node {
width: 36px;
height: 36px;
border-radius: 999px;
z-index: 1;
display: grid;
place-items: center;
font-weight: 600;
font-size: 13px;
background: var(--muted);
color: var(--muted-foreground);
border: 1px solid var(--border);
}
.node svg {
width: 17px;
height: 17px;
stroke-width: 2.4;
}
.step.s-done .node {
background: var(--success);
border-color: var(--success);
color: var(--success-foreground);
}
.step.s-current .node {
background: var(--primary);
border-color: var(--primary);
color: var(--primary-foreground);
box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 15%, transparent);
}
/* horizontal stepper (in-course ribbon) */
.stepper {
display: flex;
align-items: center;
}
.snode {
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
flex-shrink: 0;
width: 110px;
text-align: center;
}
.sdot {
width: 28px;
height: 28px;
border-radius: 999px;
display: grid;
place-items: center;
font-weight: 600;
font-size: 12px;
background: var(--muted);
color: var(--muted-foreground);
border: 1px solid var(--border);
}
.sdot svg {
width: 14px;
height: 14px;
stroke-width: 2.6;
}
.snode.done .sdot {
background: var(--success);
border-color: var(--success);
color: var(--success-foreground);
}
.snode.current .sdot {
background: var(--primary);
border-color: var(--primary);
color: var(--primary-foreground);
box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 15%, transparent);
}
.slabel {
font-size: 11px;
font-weight: 500;
color: var(--muted-foreground);
line-height: 1.25;
}
.snode.current .slabel {
color: var(--foreground);
font-weight: 600;
}
.sbar {
flex: 1;
height: 2px;
background: var(--border);
min-width: 12px;
margin: 0 -14px 18px;
}
.sbar.filled {
background: var(--success);
}
/* ============ responsive ============ */
@media (max-width: 860px) {
.app {
grid-template-columns: 1fr;
}
.sidebar {
display: none;
}
.item {
flex-wrap: wrap;
}
.item-actions {
width: 100%;
}
.item-actions .btn {
flex: 1;
}
}