CxWebApp/static/css/app.css
CxAI Agent 75153b7fe9
Some checks are pending
build-and-push / image (push) Waiting to run
feat(cxwebapp): comprehensive pane enhancements
- All 14 panes rewritten with rich controls: KPIs, sparklines, meter
  gauges, presets, history sidebars, search/filter, bulk actions,
  schema-driven forms, copy buttons, auto-refresh.
- Backend /api/system enriched with cpu_count, rss_bytes, mem_total,
  mem_used_pct, loadavg[], user/system CPU times, max_rss_kb.
- CSS additions: .meter/.gauge, .seg, .chip(s), .spark, .slider, .dl,
  .link-card, details.card-d plus utility classes.
- ui.js helpers: copyToClipboard, withCopy/bindCopyButtons, sparkline,
  meterRow, fmtBytes/fmtNum, historyStore, inputFromSchema,
  collectSchemaForm.
- Files pane added; iCloud duplicate '*2' files removed.
2026-05-17 09:36:19 -05:00

758 lines
22 KiB
CSS

/* app.css — components built on tokens.css. No Tailwind dependencies. */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
font-family: var(--font-sans);
font-size: 14px;
color: var(--fg);
background: var(--bg);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--font-mono); font-size: 12.5px; }
pre {
background: var(--bg-elev-2);
border: 1px solid var(--border);
border-radius: var(--r);
padding: 12px 14px;
color: var(--fg);
overflow: auto;
margin: 0;
line-height: 1.55;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 16px; }
h3 { font-size: 13px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .08em; }
/* ---------- layout ---------- */
.app {
display: grid;
grid-template-columns: var(--nav-w) 1fr;
grid-template-rows: var(--header-h) 1fr;
grid-template-areas:
"side header"
"side main";
min-height: 100vh;
}
@media (max-width: 900px) {
.app { grid-template-columns: 1fr; grid-template-areas: "header" "main"; }
.sidebar { display: none; }
}
.header {
grid-area: header;
display: flex;
align-items: center;
gap: 12px;
padding: 0 20px;
background: var(--bg-elev);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 10;
backdrop-filter: blur(8px);
}
.header .crumb {
font-weight: 600;
font-size: 14.5px;
}
.header .crumb .sep { color: var(--fg-faint); margin: 0 6px; }
.header .grow { flex: 1; }
.cmd-trigger {
display: inline-flex;
align-items: center;
gap: 8px;
height: 32px;
padding: 0 12px;
border: 1px solid var(--border);
background: var(--bg);
color: var(--fg-muted);
border-radius: var(--r);
font-size: 12.5px;
cursor: pointer;
transition: background var(--t-fast), border-color var(--t-fast);
}
.cmd-trigger:hover { background: var(--bg-hover); border-color: var(--border-2); }
.cmd-trigger kbd {
font-family: var(--font-mono);
font-size: 11px;
padding: 1px 6px;
border-radius: 4px;
background: var(--bg-active);
color: var(--fg);
}
.icon-btn {
width: 32px; height: 32px;
display: inline-grid; place-items: center;
border: 1px solid var(--border);
background: var(--bg);
color: var(--fg-muted);
border-radius: var(--r);
cursor: pointer;
transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--bg-hover); color: var(--fg); }
.icon-btn svg { width: 16px; height: 16px; }
.sidebar {
grid-area: side;
background: var(--bg-elev);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
}
.brand {
display: flex;
align-items: center;
gap: 10px;
padding: 16px 18px;
border-bottom: 1px solid var(--border);
}
.brand .mark {
width: 32px; height: 32px;
border-radius: 8px;
background: var(--brand-grad);
display: grid; place-items: center;
color: white;
font-weight: 700;
font-size: 13px;
letter-spacing: -.03em;
box-shadow: var(--shadow-2);
}
.brand .name { font-weight: 600; font-size: 15px; }
.brand .ver { font-size: 11px; color: var(--fg-faint); }
.nav-group { padding: 10px 8px 4px; }
.nav-group .label {
font-size: 10.5px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: .1em;
color: var(--fg-faint);
padding: 8px 12px 4px;
}
.nav-item {
display: flex;
align-items: center;
gap: 10px;
padding: 7px 12px;
border-radius: var(--r-sm);
color: var(--fg-muted);
cursor: pointer;
font-size: 13.5px;
user-select: none;
border: none;
background: none;
width: 100%;
text-align: left;
transition: background var(--t-fast), color var(--t-fast);
}
.nav-item:hover { background: var(--bg-hover); color: var(--fg); }
.nav-item.active {
background: var(--bg-active);
color: var(--fg);
font-weight: 600;
}
.nav-item .ic { width: 16px; height: 16px; flex-shrink: 0; opacity: .8; }
.nav-item.active .ic { opacity: 1; color: var(--brand); }
.nav-item .pill {
margin-left: auto;
font-size: 10.5px;
padding: 1px 7px;
border-radius: 999px;
background: var(--bg-active);
color: var(--fg-muted);
}
.nav-item.active .pill { background: var(--brand); color: white; }
.sidebar-footer {
margin-top: auto;
padding: 12px;
border-top: 1px solid var(--border);
font-size: 11.5px;
color: var(--fg-faint);
display: flex;
justify-content: space-between;
align-items: center;
}
/* ---------- main ---------- */
.main {
grid-area: main;
padding: var(--pane-pad);
overflow-x: hidden;
}
.pane { display: none; animation: fade-in var(--t) ease; }
.pane.active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }
.pane-head {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 18px;
}
.pane-head .title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.pane-head .sub { color: var(--fg-muted); font-size: 13px; }
.pane-head .grow { flex: 1; }
/* ---------- cards ---------- */
.card {
background: var(--bg-elev);
border: 1px solid var(--border);
border-radius: var(--r-md);
padding: 18px 20px;
box-shadow: var(--shadow-1);
}
.card + .card { margin-top: var(--gap); }
.card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-title h2 { font-size: 15px; }
.grid { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
/* KPI tile */
.kpi {
background: var(--bg-elev);
border: 1px solid var(--border);
border-radius: var(--r-md);
padding: 16px 18px;
box-shadow: var(--shadow-1);
position: relative;
overflow: hidden;
}
.kpi .label {
font-size: 11px;
text-transform: uppercase;
letter-spacing: .08em;
color: var(--fg-muted);
font-weight: 600;
}
.kpi .value {
font-size: 26px;
font-weight: 700;
letter-spacing: -.02em;
margin-top: 4px;
}
.kpi .sub { font-size: 12px; color: var(--fg-faint); margin-top: 4px; }
.kpi .accent {
position: absolute; right: 14px; top: 14px;
width: 28px; height: 28px;
display: grid; place-items: center;
border-radius: 8px;
background: rgb(124 92 255 / .14);
color: var(--brand);
}
.kpi .accent svg { width: 16px; height: 16px; }
/* ---------- forms ---------- */
.input, select.input, textarea.input {
height: 36px;
padding: 0 12px;
border: 1px solid var(--border);
background: var(--bg);
color: var(--fg);
border-radius: var(--r-sm);
font: inherit;
font-size: 13.5px;
outline: none;
transition: border-color var(--t-fast), box-shadow var(--t-fast);
width: 100%;
}
textarea.input { height: auto; padding: 10px 12px; line-height: 1.5; font-family: var(--font-mono); font-size: 12.5px; }
.input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.input:disabled { opacity: .55; cursor: not-allowed; }
label.field { display: block; }
label.field .lbl { display: block; font-size: 11.5px; color: var(--fg-muted); font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.check input { accent-color: var(--brand); }
.btn {
height: 36px;
padding: 0 14px;
border-radius: var(--r-sm);
font: inherit; font-size: 13.5px; font-weight: 500;
cursor: pointer;
transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
display: inline-flex; align-items: center; gap: 7px;
border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover:not(:disabled) { background: #6a4ae6; }
.btn-secondary { background: var(--bg); border-color: var(--border); color: var(--fg); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--border-2); }
.btn-ghost { background: transparent; color: var(--fg-muted); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-hover); color: var(--fg); }
.btn-danger { background: var(--err); color: white; }
.btn-danger:hover:not(:disabled) { background: #be123c; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
/* ---------- status / pill / badge ---------- */
.pill {
display: inline-flex; align-items: center; gap: 6px;
padding: 2px 9px;
border-radius: 999px;
font-size: 11.5px;
font-weight: 500;
background: var(--bg-active);
color: var(--fg);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.err { background: var(--err-bg); color: var(--err); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.muted { color: var(--fg-faint); }
/* ---------- tables ---------- */
table.t {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
table.t th, table.t td {
text-align: left;
padding: 10px 12px;
border-bottom: 1px solid var(--border);
}
table.t th {
color: var(--fg-muted);
font-weight: 600;
font-size: 11px;
text-transform: uppercase;
letter-spacing: .06em;
background: var(--bg);
}
table.t tbody tr:hover { background: var(--bg-hover); }
table.t code { color: var(--fg-muted); }
/* ---------- list rows ---------- */
.row {
display: flex; align-items: center; gap: 10px;
padding: 10px 12px;
border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .ttl { font-weight: 500; }
.row .desc { color: var(--fg-muted); font-size: 12.5px; word-break: break-word; }
.row .id { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-faint); }
.row .act { color: var(--err); cursor: pointer; font-size: 12px; }
.row .act:hover { text-decoration: underline; }
/* ---------- console / log ---------- */
.console {
background: #0a0e1c;
color: #c7eebd;
border-radius: var(--r);
padding: 12px 14px;
font-family: var(--font-mono);
font-size: 12px;
line-height: 1.55;
overflow: auto;
border: 1px solid #1c2540;
}
html:not(.dark) .console { background: #0d1530; color: #d4f0c9; }
.log-line + .log-line { margin-top: 1px; }
.log-line .ts { color: #7c89a8; margin-right: 8px; }
/* ---------- toast ---------- */
.toasts {
position: fixed; right: 18px; bottom: 18px;
display: flex; flex-direction: column; gap: 8px;
z-index: 100;
pointer-events: none;
}
.toast {
background: var(--bg-elev);
border: 1px solid var(--border-2);
border-left: 3px solid var(--info);
border-radius: var(--r);
padding: 10px 14px;
box-shadow: var(--shadow-3);
min-width: 260px;
max-width: 360px;
font-size: 13px;
pointer-events: auto;
animation: toast-in var(--t) ease;
}
.toast.ok { border-left-color: var(--ok); }
.toast.warn { border-left-color: var(--warn); }
.toast.err { border-left-color: var(--err); }
.toast .ttl { font-weight: 600; font-size: 12.5px; margin-bottom: 2px; }
.toast .body { color: var(--fg-muted); font-size: 12.5px; word-break: break-word; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
/* ---------- command palette ---------- */
.palette-bg {
position: fixed; inset: 0;
background: rgb(8 12 28 / .55);
backdrop-filter: blur(4px);
display: none;
align-items: flex-start;
justify-content: center;
padding-top: 14vh;
z-index: 50;
}
.palette-bg.open { display: flex; }
.palette {
width: min(620px, 92vw);
background: var(--bg-elev);
border: 1px solid var(--border-2);
border-radius: var(--r-md);
box-shadow: var(--shadow-3);
overflow: hidden;
animation: pal-in var(--t-slow) cubic-bezier(.16,1,.3,1);
}
@keyframes pal-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.palette input {
width: 100%;
height: 52px;
padding: 0 18px;
border: 0;
background: transparent;
color: var(--fg);
font-size: 15px;
outline: none;
border-bottom: 1px solid var(--border);
}
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.palette li {
padding: 9px 12px;
border-radius: var(--r-sm);
cursor: pointer;
display: flex; align-items: center; gap: 10px;
font-size: 13.5px;
}
.palette li.active { background: var(--bg-active); }
.palette li .grow { flex: 1; min-width: 0; }
.palette li .ic { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }
.palette li .group { font-size: 11px; color: var(--fg-faint); }
/* ---------- misc ---------- */
.muted { color: var(--fg-muted); }
.faint { color: var(--fg-faint); }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.scroll { overflow: auto; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.divider { height: 1px; background: var(--border); margin: 12px 0; border: 0; }
/* skeleton loader */
.skel {
background: linear-gradient(90deg, var(--bg-active) 0%, var(--bg-hover) 50%, var(--bg-active) 100%);
background-size: 200% 100%;
animation: skel 1.2s linear infinite;
border-radius: var(--r-sm);
min-height: 12px;
}
@keyframes skel { to { background-position: -200% 0; } }
/* image gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery img {
width: 100%; aspect-ratio: 1/1; object-fit: cover;
border-radius: var(--r); border: 1px solid var(--border);
}
/* tool list */
.tool-card {
border: 1px solid var(--border);
border-radius: var(--r);
padding: 12px 14px;
background: var(--bg);
}
.tool-card + .tool-card { margin-top: 8px; }
.tool-card h4 { margin: 0; font-size: 13.5px; font-weight: 600; font-family: var(--font-mono); }
.tool-card p { margin: 4px 0 0; color: var(--fg-muted); font-size: 12.5px; }
.ml-2 { margin-left: 8px; }
/* tab bar (Files / Platform pane) */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; }
.tab {
background: transparent;
border: 1px solid transparent;
border-radius: var(--r-sm);
padding: 6px 12px;
font-size: 13px;
color: var(--fg-muted);
cursor: pointer;
font-weight: 500;
}
.tab:hover { background: var(--bg-hover); color: var(--fg); }
.tab.active {
background: var(--bg-active);
color: var(--fg);
border-color: var(--border);
}
/* tables (used by Files pane) */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.table th { font-weight: 600; color: var(--fg-muted); background: var(--bg-active); }
.table tbody tr:hover { background: var(--bg-hover); }
/* ---------- meters / gauges ---------- */
.meter {
position: relative;
height: 8px;
background: var(--bg-active);
border-radius: 999px;
overflow: hidden;
}
.meter > span {
display: block;
height: 100%;
background: var(--brand-grad);
border-radius: 999px;
transition: width var(--t) ease;
}
.meter.ok > span { background: linear-gradient(90deg, #16a34a, #4ade80); }
.meter.warn > span { background: linear-gradient(90deg, #d97706, #fbbf24); }
.meter.err > span { background: linear-gradient(90deg, #be123c, #f43f5e); }
.gauge {
display: grid;
grid-template-columns: 110px 1fr 70px;
align-items: center;
gap: 12px;
padding: 8px 0;
font-size: 12.5px;
}
.gauge .gname { color: var(--fg-muted); font-weight: 500; }
.gauge .gval { text-align: right; font-family: var(--font-mono); color: var(--fg); }
/* ---------- segmented control ---------- */
.seg {
display: inline-flex;
background: var(--bg-active);
padding: 3px;
border-radius: var(--r-sm);
gap: 2px;
}
.seg > button {
border: 0;
background: transparent;
color: var(--fg-muted);
padding: 4px 10px;
border-radius: 5px;
font: inherit;
font-size: 12.5px;
cursor: pointer;
transition: background var(--t-fast), color var(--t-fast);
}
.seg > button:hover { color: var(--fg); }
.seg > button.active {
background: var(--bg-elev);
color: var(--fg);
box-shadow: var(--shadow-1);
}
/* ---------- kbd ---------- */
kbd {
display: inline-block;
padding: 1px 6px;
font-family: var(--font-mono);
font-size: 11px;
background: var(--bg-active);
color: var(--fg);
border: 1px solid var(--border);
border-radius: 4px;
box-shadow: 0 1px 0 var(--border-2);
}
/* ---------- code / copy ---------- */
pre.code {
position: relative;
background: var(--bg-elev-2);
border: 1px solid var(--border);
font-size: 12px;
line-height: 1.55;
}
.copy-btn {
position: absolute;
top: 6px; right: 6px;
width: 26px; height: 26px;
display: grid; place-items: center;
background: var(--bg);
border: 1px solid var(--border);
color: var(--fg-muted);
border-radius: var(--r-sm);
cursor: pointer;
opacity: 0;
transition: opacity var(--t-fast);
}
.code-wrap { position: relative; }
.code-wrap:hover .copy-btn { opacity: 1; }
.copy-btn:hover { background: var(--bg-hover); color: var(--fg); }
.copy-btn svg { width: 13px; height: 13px; }
/* ---------- sparkline / chart ---------- */
.spark {
width: 100%;
height: 36px;
display: block;
}
.spark path.l { fill: none; stroke: var(--brand); stroke-width: 1.5; }
.spark path.a { fill: rgb(124 92 255 / .14); stroke: none; }
/* ---------- chip / select-multi ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 10px;
border-radius: 999px;
background: var(--bg-active);
color: var(--fg);
font-size: 12px;
cursor: pointer;
border: 1px solid transparent;
user-select: none;
transition: background var(--t-fast), border-color var(--t-fast);
}
.chip:hover { background: var(--bg-hover); }
.chip.active { background: rgb(124 92 255 / .15); color: var(--brand); border-color: var(--brand); }
.chip .x { color: var(--fg-faint); }
/* ---------- range slider ---------- */
input[type="range"].slider {
width: 100%;
-webkit-appearance: none;
appearance: none;
background: transparent;
height: 24px;
}
input[type="range"].slider::-webkit-slider-runnable-track {
height: 4px; background: var(--bg-active); border-radius: 999px;
}
input[type="range"].slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 16px; height: 16px;
border-radius: 50%;
background: var(--brand);
margin-top: -6px;
box-shadow: 0 1px 2px rgb(0 0 0 / .25);
cursor: pointer;
}
input[type="range"].slider::-moz-range-track {
height: 4px; background: var(--bg-active); border-radius: 999px;
}
input[type="range"].slider::-moz-range-thumb {
width: 16px; height: 16px; border: 0; border-radius: 50%;
background: var(--brand); cursor: pointer;
}
/* ---------- definition list ---------- */
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 13px; }
.dl dt { color: var(--fg-muted); font-weight: 500; }
.dl dd { margin: 0; font-family: var(--font-mono); font-size: 12.5px; word-break: break-word; }
/* ---------- small bits ---------- */
.small { font-size: 12px; }
.xsmall { font-size: 11px; }
.text-right { text-align: right; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 4px; }
.mt-1 { margin-top: 4px; }
.mb-1 { margin-bottom: 4px; }
.p-0 { padding: 0; }
.p-2 { padding: 8px; }
.no-pad { padding: 0; }
.full-w { width: 100%; }
.scroll-x { overflow-x: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dim { opacity: .65; }
.divider-vert { width: 1px; background: var(--border); margin: 0 8px; align-self: stretch; }
/* ---------- link cards ---------- */
.link-card {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: var(--r);
text-decoration: none;
color: var(--fg);
background: var(--bg);
transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.link-card:hover {
text-decoration: none;
border-color: var(--brand);
background: var(--bg-hover);
transform: translateY(-1px);
}
.link-card .lc-ic {
width: 32px; height: 32px;
display: grid; place-items: center;
border-radius: 8px;
background: rgb(124 92 255 / .14);
color: var(--brand);
flex-shrink: 0;
}
.link-card .lc-ic svg { width: 16px; height: 16px; }
.link-card .lc-title { font-weight: 600; font-size: 13.5px; }
.link-card .lc-sub { font-size: 12px; color: var(--fg-muted); }
/* ---------- collapsible / details ---------- */
details.card-d {
background: var(--bg-elev);
border: 1px solid var(--border);
border-radius: var(--r);
padding: 0;
}
details.card-d > summary {
padding: 10px 14px;
cursor: pointer;
font-weight: 500;
list-style: none;
display: flex;
align-items: center;
gap: 8px;
}
details.card-d > summary::-webkit-details-marker { display: none; }
details.card-d > summary::before {
content: '▸'; color: var(--fg-faint); transition: transform var(--t-fast);
}
details.card-d[open] > summary::before { transform: rotate(90deg); }
details.card-d > .body { padding: 12px 14px; border-top: 1px solid var(--border); }