1569 lines
37 KiB
CSS
1569 lines
37 KiB
CSS
/* Shared component rules extracted from styles.css */`r`n`r`n.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
min-height: var(--control-height);
|
|
padding: 0 12px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: var(--radius);
|
|
color: var(--text);
|
|
background: var(--surface);
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
|
|
}
|
|
|
|
.btn:hover {
|
|
border-color: var(--hover-border);
|
|
background: var(--surface-muted);
|
|
}
|
|
|
|
.btn:active {
|
|
background: var(--surface-soft);
|
|
}
|
|
|
|
.btn:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.btn.isBusy {
|
|
cursor: progress;
|
|
opacity: 0.85;
|
|
pointer-events: none;
|
|
position: relative;
|
|
}
|
|
|
|
.btn.isBusy .btnIcon {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.btn.isBusy::before {
|
|
position: absolute;
|
|
left: 12px;
|
|
top: 50%;
|
|
width: 14px;
|
|
height: 14px;
|
|
margin-top: -7px;
|
|
content: "";
|
|
border-radius: 50%;
|
|
border: 2px solid currentColor;
|
|
border-top-color: transparent;
|
|
opacity: 0.85;
|
|
animation: btnSpin 720ms linear infinite;
|
|
}
|
|
|
|
.btn.isBusy:not(:has(.btnIcon))::before {
|
|
position: relative;
|
|
left: 0;
|
|
top: 0;
|
|
margin: 0 6px 0 0;
|
|
display: inline-block;
|
|
}
|
|
|
|
@keyframes btnSpin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.btn.isBusy::before {
|
|
animation-duration: 2s;
|
|
}
|
|
}
|
|
|
|
.btn:focus-visible,
|
|
.tabBtn:focus-visible {
|
|
outline: none;
|
|
box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary);
|
|
}
|
|
|
|
/* Button kbd hint: render data-kbd badge when [data-kbd-mod] is present */
|
|
.btn[data-kbd]::after {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-left: 6px;
|
|
padding: 0 6px;
|
|
height: 18px;
|
|
border: 1px solid color-mix(in oklab, currentColor 28%, transparent);
|
|
border-bottom-width: 2px;
|
|
border-radius: 4px;
|
|
color: inherit;
|
|
background: color-mix(in oklab, var(--surface) 30%, transparent);
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
letter-spacing: 0.04em;
|
|
line-height: 1;
|
|
content: attr(data-kbd-prefix) attr(data-kbd);
|
|
pointer-events: none;
|
|
opacity: 0.55;
|
|
transition: opacity var(--motion-fast);
|
|
}
|
|
|
|
.btn[data-kbd]:hover::after {
|
|
opacity: 1;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.btn[data-kbd]::after {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.btnIcon {
|
|
display: inline-flex;
|
|
flex: 0 0 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.btnIcon svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.btnPrimary {
|
|
position: relative;
|
|
color: var(--on-primary);
|
|
border-color: transparent;
|
|
background:
|
|
linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 45%),
|
|
linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
|
|
box-shadow:
|
|
0 1px 0 rgba(255, 255, 255, 0.32) inset,
|
|
0 -1px 0 rgba(0, 0, 0, 0.18) inset,
|
|
0 6px 16px -4px rgba(245, 158, 11, 0.5),
|
|
0 1px 3px rgba(63, 98, 18, 0.25);
|
|
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
|
|
isolation: isolate;
|
|
}
|
|
|
|
.btnPrimary::before {
|
|
position: absolute;
|
|
inset: -2px;
|
|
z-index: -1;
|
|
content: "";
|
|
border-radius: inherit;
|
|
padding: 2px;
|
|
background: conic-gradient(from 0deg, #fcd34d, #4f46e5, #fcd34d);
|
|
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
|
-webkit-mask-composite: xor;
|
|
mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
|
mask-composite: exclude;
|
|
opacity: 0;
|
|
transition: opacity 200ms ease;
|
|
}
|
|
|
|
.btnPrimary:hover {
|
|
color: var(--on-primary);
|
|
transform: translateY(-1px);
|
|
background:
|
|
linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 45%),
|
|
linear-gradient(135deg, #f9a8d4 0%, #fcd34d 50%, #f59e0b 100%);
|
|
box-shadow:
|
|
0 1px 0 rgba(255, 255, 255, 0.4) inset,
|
|
0 -1px 0 rgba(0, 0, 0, 0.18) inset,
|
|
0 10px 24px -4px rgba(245, 158, 11, 0.62),
|
|
0 2px 4px rgba(63, 98, 18, 0.3);
|
|
}
|
|
|
|
.btnPrimary:hover::before {
|
|
opacity: 1;
|
|
animation: btnConic 1.6s linear infinite;
|
|
}
|
|
|
|
.btnPrimary:active {
|
|
transform: translateY(0);
|
|
background: linear-gradient(135deg, #d97706, #92400e);
|
|
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset;
|
|
}
|
|
|
|
@keyframes btnConic {
|
|
to { --conic-angle: 360deg; }
|
|
}
|
|
|
|
.btnSoft {
|
|
color: var(--text-strong);
|
|
border-color: var(--border);
|
|
background: linear-gradient(180deg, var(--surface), var(--surface-soft));
|
|
box-shadow: 0 1px 0 var(--hairline) inset, 0 1px 2px rgba(40, 30, 50, 0.04);
|
|
}
|
|
|
|
.btnSoft:hover {
|
|
color: var(--text-strong);
|
|
border-color: var(--primary-border);
|
|
background: linear-gradient(180deg, var(--surface), var(--primary-soft));
|
|
box-shadow: 0 1px 0 var(--hairline) inset, 0 4px 12px -4px rgba(245, 158, 11, 0.18);
|
|
}
|
|
|
|
.btnGhost {
|
|
color: var(--muted);
|
|
border-color: transparent;
|
|
background: transparent;
|
|
}
|
|
|
|
.btnGhost:hover {
|
|
color: var(--text-strong);
|
|
border-color: var(--border);
|
|
background: var(--surface-muted);
|
|
}
|
|
|
|
.btnDanger {
|
|
position: relative;
|
|
color: var(--on-primary);
|
|
border-color: transparent;
|
|
background:
|
|
linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 45%),
|
|
linear-gradient(135deg, #fb7185 0%, #ef4444 50%, #b91c1c 100%);
|
|
box-shadow:
|
|
0 1px 0 rgba(255, 255, 255, 0.32) inset,
|
|
0 -1px 0 rgba(0, 0, 0, 0.18) inset,
|
|
0 6px 16px -4px rgba(220, 38, 38, 0.5),
|
|
0 1px 3px rgba(127, 29, 29, 0.25);
|
|
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.btnDanger:hover {
|
|
color: var(--on-primary);
|
|
transform: translateY(-1px);
|
|
background:
|
|
linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 45%),
|
|
linear-gradient(135deg, #fda4af 0%, #fb7185 50%, #ef4444 100%);
|
|
box-shadow:
|
|
0 1px 0 rgba(255, 255, 255, 0.4) inset,
|
|
0 -1px 0 rgba(0, 0, 0, 0.18) inset,
|
|
0 10px 24px -4px rgba(220, 38, 38, 0.62),
|
|
0 2px 4px rgba(127, 29, 29, 0.3);
|
|
}
|
|
|
|
.btnDanger:active {
|
|
transform: translateY(0);
|
|
background: linear-gradient(135deg, #b91c1c, #7f1d1d);
|
|
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset;
|
|
}
|
|
|
|
.btnDangerSoft {
|
|
color: var(--danger);
|
|
border-color: var(--danger-border);
|
|
background: var(--danger-soft);
|
|
box-shadow: 0 1px 0 var(--hairline) inset;
|
|
}
|
|
|
|
.btnDangerSoft:hover {
|
|
color: var(--danger);
|
|
border-color: var(--danger);
|
|
background: var(--danger-soft-hover);
|
|
box-shadow: 0 1px 0 var(--hairline) inset, 0 4px 12px -4px rgba(220, 38, 38, 0.32);
|
|
}
|
|
|
|
.btn.small {
|
|
min-height: 28px;
|
|
padding: 0 9px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.btnIconOnly {
|
|
width: var(--control-height);
|
|
padding: 0;
|
|
}
|
|
|
|
/* Theme toggle: show sun in dark mode, moon in light mode */
|
|
.themeIconSun,
|
|
.themeIconMoon {
|
|
display: none;
|
|
}
|
|
|
|
:root[data-theme="dark"] .themeIconSun {
|
|
display: inline-flex;
|
|
}
|
|
|
|
:root:not([data-theme="dark"]) .themeIconMoon {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.tabBtn {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 10px;
|
|
width: 100%;
|
|
min-width: 0;
|
|
min-height: 38px;
|
|
padding: 0 12px 0 18px;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-md);
|
|
color: var(--muted);
|
|
background: transparent;
|
|
font-size: var(--text-base);
|
|
font-weight: 500;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
letter-spacing: var(--tracking-tight);
|
|
counter-increment: tabIdx;
|
|
transition: color var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast), padding var(--motion-fast);
|
|
}
|
|
|
|
/* Channel slot ID — small mono number prefix */
|
|
.tabBtn::before {
|
|
font-family: "IBM Plex Mono", ui-monospace, monospace;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.06em;
|
|
color: var(--muted-soft);
|
|
content: counter(tabIdx, decimal-leading-zero);
|
|
margin-right: 2px;
|
|
display: inline-block;
|
|
opacity: 0.7;
|
|
transition: color var(--motion-fast), opacity var(--motion-fast);
|
|
}
|
|
|
|
/* Right-side mini cyan dot on hover */
|
|
.tabBtn::after {
|
|
position: absolute;
|
|
right: 10px;
|
|
top: 50%;
|
|
transform: translateY(-50%) scale(0.4);
|
|
width: 5px;
|
|
height: 5px;
|
|
border-radius: 50%;
|
|
background: var(--secondary);
|
|
box-shadow: 0 0 6px var(--secondary);
|
|
content: "";
|
|
opacity: 0;
|
|
transition: opacity var(--motion-fast), transform var(--motion-fast);
|
|
}
|
|
|
|
.tabBtn:hover {
|
|
color: var(--text);
|
|
background: color-mix(in oklab, var(--surface-muted) 70%, var(--primary-soft) 30%);
|
|
}
|
|
|
|
.tabBtn:hover::before {
|
|
color: var(--primary);
|
|
opacity: 1;
|
|
}
|
|
|
|
.tabBtn:hover::after {
|
|
opacity: 0.7;
|
|
transform: translateY(-50%) scale(1);
|
|
}
|
|
|
|
.tabBtn.active {
|
|
color: var(--text-strong);
|
|
background:
|
|
linear-gradient(90deg, color-mix(in oklab, var(--primary) 14%, transparent), transparent 70%),
|
|
color-mix(in oklab, var(--surface-muted) 50%, var(--primary-soft) 50%);
|
|
box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 25%, transparent);
|
|
}
|
|
|
|
.tabBtn.active::before {
|
|
color: var(--primary);
|
|
opacity: 1;
|
|
}
|
|
|
|
.tabBtn.active::after {
|
|
opacity: 1;
|
|
transform: translateY(-50%) scale(1);
|
|
background: var(--primary);
|
|
box-shadow: 0 0 8px var(--primary);
|
|
}
|
|
|
|
.tabIcon {
|
|
display: inline-flex;
|
|
flex: 0 0 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
color: var(--muted-soft);
|
|
transition: color var(--motion-fast);
|
|
}
|
|
|
|
.tabBtn.active .tabIcon,
|
|
.tabBtn:hover .tabIcon {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.tabIcon svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.tabText {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.tabBtn[data-badge]:not([data-badge="0"])::after {
|
|
margin-left: auto;
|
|
padding: 1px 6px;
|
|
border-radius: 99px;
|
|
background: var(--surface-muted);
|
|
color: var(--muted);
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
|
font-size: 12px;
|
|
font-variant-numeric: tabular-nums;
|
|
line-height: 1.4;
|
|
content: attr(data-badge);
|
|
}
|
|
|
|
.tabBtn.active[data-badge]:not([data-badge="0"])::after {
|
|
background: var(--primary);
|
|
color: var(--on-primary);
|
|
}
|
|
|
|
.panels {
|
|
min-width: 0;
|
|
max-width: var(--panel-max);
|
|
}
|
|
|
|
.panel {
|
|
position: relative;
|
|
overflow: hidden;
|
|
min-width: 0;
|
|
padding: 22px 22px 24px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
background:
|
|
radial-gradient(at 0% 0%, color-mix(in oklab, var(--primary) 6%, transparent), transparent 45%),
|
|
radial-gradient(at 100% 100%, color-mix(in oklab, var(--secondary) 5%, transparent), transparent 45%),
|
|
var(--surface);
|
|
box-shadow: var(--shadow-soft);
|
|
transition: border-color var(--motion), box-shadow var(--motion);
|
|
}
|
|
|
|
.panel::before {
|
|
position: absolute;
|
|
inset: 0 0 auto 0;
|
|
height: 1px;
|
|
content: "";
|
|
pointer-events: none;
|
|
background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 60%, transparent), color-mix(in oklab, var(--secondary) 60%, transparent), transparent);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.panel.active {
|
|
animation: panelFadeIn 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
|
|
}
|
|
|
|
.panel.active:hover {
|
|
border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
|
|
}
|
|
|
|
@keyframes panelFadeIn {
|
|
from { opacity: 0; transform: translateY(4px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.panel.active {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
.panel.cardLog {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.panel[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.sectionTitle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
margin: 22px 0 12px;
|
|
padding: 6px 0 8px;
|
|
color: var(--muted);
|
|
font-family: "IBM Plex Mono", ui-monospace, monospace;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
line-height: 1.3;
|
|
border-bottom: 1px solid var(--border);
|
|
position: sticky;
|
|
top: 64px;
|
|
z-index: 4;
|
|
background: linear-gradient(180deg, var(--surface) 70%, color-mix(in oklab, var(--surface) 0%, transparent));
|
|
backdrop-filter: blur(6px);
|
|
transition: box-shadow var(--motion-fast);
|
|
counter-increment: sectionIdx;
|
|
}
|
|
|
|
.panels {
|
|
counter-reset: sectionIdx;
|
|
}
|
|
|
|
/* When sticky-pinned (top:64px is reached), elevate with a subtle shadow */
|
|
.sectionTitle:not(.cardTitle):not(summary) {
|
|
box-shadow: 0 0 0 0 transparent;
|
|
}
|
|
|
|
@supports (position: sticky) {
|
|
.sectionTitle.isStuck {
|
|
box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.12), 0 1px 0 var(--border);
|
|
}
|
|
}
|
|
|
|
:root[data-theme="dark"] .sectionTitle.isStuck {
|
|
box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.5), 0 1px 0 var(--border);
|
|
}
|
|
|
|
.cardTitle.sectionTitle,
|
|
summary.sectionTitle {
|
|
position: static;
|
|
background: transparent;
|
|
backdrop-filter: none;
|
|
}
|
|
|
|
/* Section number (mono leading-zero) replaces the dot */
|
|
.sectionTitle::before {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 22px;
|
|
height: 16px;
|
|
padding: 0 5px;
|
|
border: 1px solid color-mix(in oklab, var(--primary) 35%, var(--border));
|
|
border-radius: 4px;
|
|
background: color-mix(in oklab, var(--primary) 8%, transparent);
|
|
color: var(--primary);
|
|
font-family: "IBM Plex Mono", ui-monospace, monospace;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
flex: 0 0 auto;
|
|
content: "§ " counter(sectionIdx, decimal-leading-zero);
|
|
}
|
|
|
|
/* Trailing line that extends to the right edge */
|
|
.sectionTitle::after {
|
|
flex: 1 1 auto;
|
|
height: 1px;
|
|
margin-left: 4px;
|
|
content: "";
|
|
background: linear-gradient(90deg, color-mix(in oklab, var(--primary) 20%, transparent), transparent);
|
|
}
|
|
|
|
.cardTitle.sectionTitle::before,
|
|
summary.sectionTitle::before,
|
|
.cardTitle.sectionTitle::after,
|
|
summary.sectionTitle::after {
|
|
display: none;
|
|
}
|
|
|
|
.panel > .sectionTitle:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* Headline-style section titles: when used as a card heading or nested heading,
|
|
keep the original strong color and bigger size. */
|
|
.cardTitle.sectionTitle,
|
|
summary.sectionTitle {
|
|
margin: 0;
|
|
padding: 0 0 12px;
|
|
color: var(--text-strong);
|
|
font-size: 16px;
|
|
letter-spacing: -0.005em;
|
|
text-transform: none;
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
min-width: 0;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.row.grid2,
|
|
.row.grid3 {
|
|
display: grid;
|
|
align-items: start;
|
|
gap: 10px;
|
|
}
|
|
|
|
.row.grid2 {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.row.grid3 {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.inline2 {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 0;
|
|
min-width: 0;
|
|
border-radius: var(--radius-md);
|
|
isolation: isolate;
|
|
}
|
|
|
|
.inline2 > .input,
|
|
.inline2 > input {
|
|
border-radius: 0;
|
|
margin-left: -1px;
|
|
}
|
|
|
|
.inline2 > .input:first-child,
|
|
.inline2 > input:first-child {
|
|
border-top-left-radius: var(--radius-md);
|
|
border-bottom-left-radius: var(--radius-md);
|
|
margin-left: 0;
|
|
}
|
|
|
|
.inline2 > .input:last-child,
|
|
.inline2 > input:last-child {
|
|
border-top-right-radius: var(--radius-md);
|
|
border-bottom-right-radius: var(--radius-md);
|
|
}
|
|
|
|
.inline2 > .input:focus-visible,
|
|
.inline2 > input:focus-visible {
|
|
z-index: 1;
|
|
}
|
|
|
|
.inline2 > span {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 6px;
|
|
color: var(--muted);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.rowActions {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-2);
|
|
margin-top: var(--space-4);
|
|
padding-top: var(--space-3);
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.rowActions .btnPrimary {
|
|
order: -1;
|
|
}
|
|
|
|
.label {
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.input,
|
|
.small,
|
|
.logSearchBox {
|
|
width: 100%;
|
|
min-width: 0;
|
|
min-height: var(--control-height);
|
|
padding: 0 10px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text);
|
|
background: var(--surface);
|
|
font-size: var(--text-base);
|
|
caret-color: var(--primary);
|
|
outline: none;
|
|
transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
|
|
}
|
|
|
|
input[type="number"].input,
|
|
input[type="text"].input[id*="ip"],
|
|
input[type="text"].input[id*="path"],
|
|
input[type="text"].input[id*="port"],
|
|
.statTrace,
|
|
input[id^="yanghao_"][type="number"] {
|
|
font-family: "IBM Plex Mono", ui-monospace, monospace;
|
|
font-feature-settings: "ss01", "tnum";
|
|
}
|
|
|
|
.input:hover,
|
|
.small:hover,
|
|
.logSearchBox:hover {
|
|
border-color: var(--primary-border);
|
|
}
|
|
|
|
.input:focus-visible,
|
|
.small:focus-visible,
|
|
.logSearchBox:focus-visible {
|
|
border-color: var(--primary);
|
|
background: color-mix(in oklab, var(--primary-soft) 35%, var(--surface));
|
|
box-shadow:
|
|
0 0 0 1px var(--primary),
|
|
0 0 0 4px color-mix(in oklab, var(--primary) 20%, transparent),
|
|
0 0 14px -2px color-mix(in oklab, var(--primary) 40%, transparent);
|
|
}
|
|
|
|
.input::placeholder,
|
|
.small::placeholder,
|
|
.logSearchBox::placeholder {
|
|
color: var(--muted-soft);
|
|
}
|
|
|
|
select.input {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
|
|
linear-gradient(135deg, var(--muted) 50%, transparent 50%);
|
|
background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
|
|
background-size: 5px 5px, 5px 5px;
|
|
background-repeat: no-repeat;
|
|
padding-right: 28px;
|
|
}
|
|
|
|
/* Number inputs: hide native spinner everywhere, keep arrow keys */
|
|
input[type="number"] {
|
|
-moz-appearance: textfield;
|
|
appearance: textfield;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
input[type="number"]::-webkit-inner-spin-button,
|
|
input[type="number"]::-webkit-outer-spin-button {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Custom number stepper: wraps an input with .numStepperWrap, +/- buttons appear on hover/focus */
|
|
.numStepperWrap {
|
|
position: relative;
|
|
display: block;
|
|
}
|
|
|
|
.numStepperWrap > input[type="number"] {
|
|
padding-right: 32px;
|
|
}
|
|
|
|
.numStepperBtns {
|
|
position: absolute;
|
|
right: 4px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
gap: 1px;
|
|
opacity: 0;
|
|
transition: opacity var(--motion-fast);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.numStepperWrap:hover .numStepperBtns,
|
|
.numStepperWrap:focus-within .numStepperBtns {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.numStepperBtn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 18px;
|
|
height: 12px;
|
|
padding: 0;
|
|
border: 1px solid var(--border);
|
|
border-radius: 3px;
|
|
color: var(--muted);
|
|
background: var(--surface);
|
|
cursor: pointer;
|
|
transition: color var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast);
|
|
}
|
|
|
|
.numStepperBtn:hover {
|
|
color: var(--text);
|
|
border-color: var(--hover-border);
|
|
background: var(--surface-muted);
|
|
}
|
|
|
|
.numStepperBtn:active {
|
|
background: var(--primary-soft);
|
|
color: var(--primary-accent-text);
|
|
}
|
|
|
|
.numStepperBtn svg {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
.textarea {
|
|
min-height: 96px;
|
|
padding: 9px 10px;
|
|
line-height: 1.55;
|
|
resize: vertical;
|
|
}
|
|
|
|
.check {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
min-height: var(--control-height);
|
|
padding: 7px 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text);
|
|
background: var(--surface-soft);
|
|
font-size: var(--text-base);
|
|
line-height: var(--leading-snug);
|
|
transition: border-color var(--motion-fast), background var(--motion-fast);
|
|
}
|
|
|
|
.check:hover {
|
|
border-color: var(--hover-border);
|
|
background: var(--surface-muted);
|
|
}
|
|
|
|
.check:has(input[type="checkbox"]:checked) {
|
|
border-color: var(--primary-border);
|
|
background: var(--primary-soft);
|
|
}
|
|
|
|
.check input[type="checkbox"] {
|
|
flex: 0 0 auto;
|
|
width: 15px;
|
|
height: 15px;
|
|
margin: 0;
|
|
accent-color: var(--primary);
|
|
}
|
|
|
|
/* Toggle switch variant: add class .check.isToggle, the checkbox renders as a sliding switch.
|
|
Apply by toggling .isToggle on existing .check labels. */
|
|
.check.isToggle {
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.check.isToggle input[type="checkbox"] {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
position: relative;
|
|
flex: 0 0 32px;
|
|
width: 32px;
|
|
height: 18px;
|
|
border-radius: 999px;
|
|
background: var(--border-strong);
|
|
cursor: pointer;
|
|
transition: background var(--motion-fast);
|
|
}
|
|
|
|
.check.isToggle input[type="checkbox"]::after {
|
|
position: absolute;
|
|
left: 2px;
|
|
top: 2px;
|
|
content: "";
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
background: var(--surface);
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
|
|
transition: transform var(--motion-fast), background var(--motion-fast);
|
|
}
|
|
|
|
.check.isToggle input[type="checkbox"]:checked {
|
|
background: linear-gradient(90deg, var(--primary), var(--secondary));
|
|
box-shadow: 0 0 12px -2px color-mix(in oklab, var(--primary) 55%, transparent);
|
|
}
|
|
|
|
.check.isToggle input[type="checkbox"]:checked::after {
|
|
transform: translateX(14px);
|
|
background: #fff;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 8px color-mix(in oklab, var(--primary) 40%, transparent);
|
|
}
|
|
|
|
.check.isToggle input[type="checkbox"]:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring), 0 0 12px -2px color-mix(in oklab, var(--primary) 55%, transparent);
|
|
}
|
|
|
|
.check span {
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.hint {
|
|
min-width: 0;
|
|
color: var(--muted);
|
|
font-size: var(--text-sm);
|
|
line-height: var(--leading-snug);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
/* Empty-state hint inside table / chart / reservations: dashed framed placeholder */
|
|
.table > .hint:only-child,
|
|
.chart > .hint:only-child,
|
|
.reservationsContent > .hint:only-child {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
min-height: 80px;
|
|
padding: 24px 16px;
|
|
border: 1px dashed var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: color-mix(in oklab, var(--surface-soft) 60%, transparent);
|
|
color: var(--muted-soft);
|
|
font-size: var(--text-sm);
|
|
text-align: center;
|
|
}
|
|
|
|
.table > .hint:only-child::before,
|
|
.chart > .hint:only-child::before,
|
|
.reservationsContent > .hint:only-child::before {
|
|
content: "";
|
|
width: 28px;
|
|
height: 28px;
|
|
flex: 0 0 28px;
|
|
background-color: currentColor;
|
|
-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>") no-repeat center / contain;
|
|
mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>") no-repeat center / contain;
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.divider {
|
|
height: 1px;
|
|
margin: 16px 0;
|
|
background: var(--border);
|
|
}
|
|
|
|
.table {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
margin-top: 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--surface);
|
|
}
|
|
|
|
.tableRow {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: minmax(92px, 0.65fr) minmax(0, 1.7fr) minmax(54px, 0.45fr);
|
|
gap: 12px;
|
|
min-width: 0;
|
|
padding: 11px 14px 11px 18px;
|
|
border-top: 1px solid var(--border);
|
|
color: var(--text);
|
|
font-size: var(--text-sm);
|
|
line-height: var(--leading-snug);
|
|
transition: background var(--motion-fast), padding var(--motion-fast);
|
|
}
|
|
|
|
/* Left-side hover accent stripe */
|
|
.tableRow:not(.tableHead)::before {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 8px;
|
|
bottom: 8px;
|
|
width: 2px;
|
|
content: "";
|
|
border-radius: 0 2px 2px 0;
|
|
background: linear-gradient(180deg, var(--primary), var(--secondary));
|
|
opacity: 0;
|
|
transition: opacity var(--motion-fast);
|
|
}
|
|
|
|
.tableRow:not(.tableHead):hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.tableRow:not(.tableHead) > div:not(:last-child) {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tableRow:not(.tableHead) > div:not(:last-child):hover {
|
|
white-space: normal;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.tableRow:not(.tableHead):hover {
|
|
background: color-mix(in oklab, var(--primary-soft) 35%, var(--surface-soft));
|
|
}
|
|
|
|
.tableRow:nth-child(odd):not(.tableHead) {
|
|
background: color-mix(in oklab, var(--surface-soft) 50%, transparent);
|
|
}
|
|
|
|
.tableRow:nth-child(odd):not(.tableHead):hover {
|
|
background: color-mix(in oklab, var(--primary-soft) 35%, var(--surface-soft));
|
|
}
|
|
|
|
.tableRow:first-child {
|
|
border-top: 0;
|
|
}
|
|
|
|
.tableRow > div {
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.tableRow .mono {
|
|
font-family: "IBM Plex Mono", ui-monospace, monospace;
|
|
font-variant-numeric: tabular-nums;
|
|
font-feature-settings: "ss01";
|
|
color: var(--muted);
|
|
}
|
|
|
|
.tableHead {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
color: var(--primary);
|
|
background:
|
|
linear-gradient(90deg, color-mix(in oklab, var(--primary) 8%, transparent), transparent 60%),
|
|
var(--surface-muted);
|
|
font-family: "IBM Plex Mono", ui-monospace, monospace;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
border-bottom: 1px solid color-mix(in oklab, var(--primary) 25%, var(--border));
|
|
}
|
|
|
|
.mono {
|
|
font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
|
font-feature-settings: "ss01", "tnum";
|
|
}
|
|
|
|
/* ==================== Skeleton placeholders ==================== */
|
|
@keyframes skeletonShimmer {
|
|
0% { background-position: -200% 0; }
|
|
100% { background-position: 200% 0; }
|
|
}
|
|
|
|
.skeleton {
|
|
position: relative;
|
|
overflow: hidden;
|
|
background:
|
|
linear-gradient(90deg,
|
|
transparent 0,
|
|
color-mix(in oklab, var(--primary) 22%, transparent) 35%,
|
|
color-mix(in oklab, var(--secondary) 22%, transparent) 65%,
|
|
transparent 100%) var(--surface-muted);
|
|
background-size: 200% 100%;
|
|
background-repeat: no-repeat;
|
|
animation: skeletonShimmer 1.8s linear infinite;
|
|
border-radius: var(--radius-sm);
|
|
color: transparent !important;
|
|
user-select: none;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.skeleton * {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.skeletonText {
|
|
display: inline-block;
|
|
width: var(--skeleton-w, 60%);
|
|
height: 0.85em;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.skeleton {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
/* Connected button group: shared border, no doubled middle border */
|
|
.btnGroup {
|
|
display: inline-flex;
|
|
align-items: stretch;
|
|
isolation: isolate;
|
|
}
|
|
|
|
.btnGroup > .btn {
|
|
border-radius: 0;
|
|
margin-left: -1px;
|
|
}
|
|
|
|
.btnGroup > .btn:first-child {
|
|
border-top-left-radius: var(--radius-md);
|
|
border-bottom-left-radius: var(--radius-md);
|
|
margin-left: 0;
|
|
}
|
|
|
|
.btnGroup > .btn:last-child {
|
|
border-top-right-radius: var(--radius-md);
|
|
border-bottom-right-radius: var(--radius-md);
|
|
}
|
|
|
|
.btnGroup > .btn:hover,
|
|
.btnGroup > .btn:focus-visible {
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Scroll-to-top floating button */
|
|
.scrollTopBtn {
|
|
position: fixed;
|
|
right: 20px;
|
|
bottom: 70px;
|
|
z-index: 70;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 38px;
|
|
height: 38px;
|
|
padding: 0;
|
|
border: 1px solid color-mix(in oklab, var(--primary) 30%, var(--border));
|
|
border-radius: 50%;
|
|
background:
|
|
radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--primary) 16%, transparent), transparent 60%),
|
|
color-mix(in oklab, var(--surface) 75%, transparent);
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
box-shadow:
|
|
0 4px 16px -2px color-mix(in oklab, var(--primary) 30%, transparent),
|
|
0 2px 6px rgba(0, 0, 0, 0.1);
|
|
backdrop-filter: blur(10px);
|
|
transition: opacity 180ms ease, transform 180ms ease, color var(--motion-fast),
|
|
border-color var(--motion-fast), background var(--motion-fast),
|
|
box-shadow var(--motion-fast);
|
|
}
|
|
|
|
.scrollTopBtn[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.scrollTopBtn:hover {
|
|
color: var(--primary);
|
|
border-color: var(--primary);
|
|
background:
|
|
radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--primary) 26%, transparent), transparent 60%),
|
|
var(--surface);
|
|
transform: translateY(-2px);
|
|
box-shadow:
|
|
0 6px 24px -2px color-mix(in oklab, var(--primary) 50%, transparent),
|
|
0 2px 8px rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.scrollTopBtn {
|
|
right: 12px;
|
|
bottom: 80px;
|
|
}
|
|
}
|
|
|
|
/* Device select wrapper with status dot */
|
|
.deviceSelectWrap {
|
|
position: relative;
|
|
display: block;
|
|
}
|
|
|
|
.deviceSelectWrap select {
|
|
padding-right: 40px;
|
|
}
|
|
|
|
.deviceSelectDot {
|
|
position: absolute;
|
|
right: 28px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--muted-soft);
|
|
box-shadow: 0 0 0 2px color-mix(in oklab, var(--muted-soft) 16%, transparent);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.deviceSelectDot[data-state="ok"] {
|
|
background: var(--success);
|
|
box-shadow: 0 0 0 2px color-mix(in oklab, var(--success) 16%, transparent);
|
|
}
|
|
|
|
/* ==================== Tooltip (data-tooltip) ==================== */
|
|
[data-tooltip] {
|
|
position: relative;
|
|
}
|
|
|
|
[data-tooltip]::before,
|
|
[data-tooltip]::after {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: calc(100% + 8px);
|
|
transform: translateX(-50%) translateY(2px);
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
transition: opacity 120ms ease, transform 120ms ease;
|
|
z-index: 50;
|
|
}
|
|
|
|
[data-tooltip]::before {
|
|
content: attr(data-tooltip);
|
|
padding: 6px 10px;
|
|
border: 1px solid color-mix(in oklab, var(--primary) 35%, var(--border));
|
|
border-radius: var(--radius-sm);
|
|
background: color-mix(in oklab, var(--surface) 90%, transparent);
|
|
color: var(--text-strong);
|
|
font-family: "IBM Plex Mono", ui-monospace, monospace;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: none;
|
|
white-space: nowrap;
|
|
box-shadow:
|
|
0 0 0 1px color-mix(in oklab, var(--primary) 20%, transparent),
|
|
0 4px 14px -2px color-mix(in oklab, var(--primary) 40%, transparent);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
:root[data-theme="dark"] [data-tooltip]::before {
|
|
box-shadow:
|
|
0 0 0 1px color-mix(in oklab, var(--primary) 28%, transparent),
|
|
0 4px 14px -2px color-mix(in oklab, var(--primary) 50%, transparent);
|
|
}
|
|
|
|
[data-tooltip]::after {
|
|
content: "";
|
|
width: 8px;
|
|
height: 8px;
|
|
bottom: calc(100% + 4px);
|
|
border: 1px solid color-mix(in oklab, var(--primary) 35%, var(--border));
|
|
border-top: 0;
|
|
border-left: 0;
|
|
background: color-mix(in oklab, var(--surface) 90%, transparent);
|
|
transform: translateX(-50%) rotate(45deg);
|
|
}
|
|
|
|
[data-tooltip]:hover::before,
|
|
[data-tooltip]:hover::after,
|
|
[data-tooltip]:focus-visible::before,
|
|
[data-tooltip]:focus-visible::after {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
|
|
[data-tooltip]:hover::after,
|
|
[data-tooltip]:focus-visible::after {
|
|
transform: translateX(-50%) rotate(45deg);
|
|
}
|
|
|
|
/* Position bottom (below the trigger) */
|
|
[data-tooltip][data-tooltip-pos="bottom"]::before,
|
|
[data-tooltip][data-tooltip-pos="bottom"]::after {
|
|
bottom: auto;
|
|
top: calc(100% + 8px);
|
|
}
|
|
|
|
[data-tooltip][data-tooltip-pos="bottom"]::after {
|
|
top: calc(100% + 4px);
|
|
border: 1px solid var(--border);
|
|
border-bottom: 0;
|
|
border-right: 0;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
[data-tooltip]::before,
|
|
[data-tooltip]::after { display: none; }
|
|
}
|
|
|
|
|
|
/* ==================== Shortcuts help overlay ==================== */
|
|
.shortcutsOverlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 90;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
background: color-mix(in oklab, var(--bg) 70%, transparent);
|
|
backdrop-filter: blur(6px);
|
|
opacity: 0;
|
|
transition: opacity 160ms ease;
|
|
}
|
|
|
|
.shortcutsOverlay.isVisible {
|
|
opacity: 1;
|
|
}
|
|
|
|
.shortcutsCard {
|
|
position: relative;
|
|
width: min(420px, 100%);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--surface);
|
|
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
transform: translateY(8px) scale(0.98);
|
|
transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
|
|
}
|
|
|
|
.shortcutsCard::before {
|
|
position: absolute;
|
|
inset: 0 0 auto 0;
|
|
height: 1px;
|
|
content: "";
|
|
pointer-events: none;
|
|
background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 70%, transparent), color-mix(in oklab, var(--secondary) 70%, transparent), transparent);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
:root[data-theme="dark"] .shortcutsCard {
|
|
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.shortcutsOverlay.isVisible .shortcutsCard {
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
|
|
.shortcutsHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 14px 10px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--surface-soft);
|
|
}
|
|
|
|
.shortcutsTitle {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--text-strong);
|
|
letter-spacing: var(--tracking-tight);
|
|
}
|
|
|
|
.shortcutsClose {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--muted);
|
|
background: transparent;
|
|
cursor: pointer;
|
|
transition: color var(--motion-fast), background var(--motion-fast);
|
|
}
|
|
|
|
.shortcutsClose:hover {
|
|
color: var(--primary);
|
|
background: color-mix(in oklab, var(--primary-soft) 60%, transparent);
|
|
box-shadow: 0 0 10px -2px color-mix(in oklab, var(--primary) 45%, transparent);
|
|
}
|
|
|
|
.shortcutsList {
|
|
display: grid;
|
|
gap: 2px;
|
|
padding: 8px;
|
|
}
|
|
|
|
.shortcutsRow {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 8px 10px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: var(--text-sm);
|
|
color: var(--text);
|
|
}
|
|
|
|
.shortcutsRow:hover {
|
|
background: var(--surface-soft);
|
|
}
|
|
|
|
.shortcutsDesc {
|
|
color: var(--text);
|
|
}
|
|
|
|
.shortcutsKeys {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.shortcutsKeys kbd {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 22px;
|
|
height: 22px;
|
|
padding: 0 6px;
|
|
border: 1px solid var(--border-strong);
|
|
border-bottom-width: 2px;
|
|
border-radius: 5px;
|
|
background: var(--surface);
|
|
color: var(--text-strong);
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
|
font-size: 13px;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.shortcutsPlus {
|
|
color: var(--muted-soft);
|
|
font-size: 12px;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.shortcutsOverlay,
|
|
.shortcutsCard {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
/* ==================== Toast ==================== */
|
|
.toastContainer {
|
|
position: fixed;
|
|
right: 20px;
|
|
bottom: 20px;
|
|
z-index: 100;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
max-width: min(420px, calc(100vw - 40px));
|
|
pointer-events: none;
|
|
}
|
|
|
|
.toast {
|
|
display: grid;
|
|
grid-template-columns: 22px 1fr auto;
|
|
align-items: start;
|
|
gap: 10px;
|
|
padding: 12px 12px 12px 16px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
font-size: var(--text-sm);
|
|
line-height: var(--leading-snug);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
|
|
pointer-events: auto;
|
|
animation: toastIn 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
:root[data-theme="dark"] .toast {
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.toast::before {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 3px;
|
|
content: "";
|
|
background: linear-gradient(180deg, var(--muted-soft), color-mix(in oklab, var(--muted-soft) 40%, transparent));
|
|
}
|
|
|
|
.toast-success {
|
|
border-color: color-mix(in oklab, var(--success) 30%, var(--border));
|
|
}
|
|
.toast-success::before { background: linear-gradient(180deg, var(--success), color-mix(in oklab, var(--success) 30%, transparent)); }
|
|
.toast-success .toastIcon {
|
|
color: var(--success);
|
|
background: color-mix(in oklab, var(--success) 12%, transparent);
|
|
box-shadow: 0 0 10px -2px color-mix(in oklab, var(--success) 60%, transparent);
|
|
}
|
|
|
|
.toast-error {
|
|
border-color: color-mix(in oklab, var(--danger) 30%, var(--border));
|
|
}
|
|
.toast-error::before { background: linear-gradient(180deg, var(--danger), color-mix(in oklab, var(--danger) 30%, transparent)); }
|
|
.toast-error .toastIcon {
|
|
color: var(--danger);
|
|
background: color-mix(in oklab, var(--danger) 12%, transparent);
|
|
box-shadow: 0 0 10px -2px color-mix(in oklab, var(--danger) 60%, transparent);
|
|
}
|
|
|
|
.toast-warn {
|
|
border-color: color-mix(in oklab, var(--warning) 30%, var(--border));
|
|
}
|
|
.toast-warn::before { background: linear-gradient(180deg, var(--warning), color-mix(in oklab, var(--warning) 30%, transparent)); }
|
|
.toast-warn .toastIcon {
|
|
color: var(--warning);
|
|
background: color-mix(in oklab, var(--warning) 12%, transparent);
|
|
box-shadow: 0 0 10px -2px color-mix(in oklab, var(--warning) 60%, transparent);
|
|
}
|
|
|
|
.toast-info::before { background: linear-gradient(180deg, var(--primary), var(--secondary)); }
|
|
.toast-info .toastIcon {
|
|
color: var(--primary);
|
|
background: color-mix(in oklab, var(--primary) 14%, transparent);
|
|
box-shadow: 0 0 10px -2px color-mix(in oklab, var(--primary) 60%, transparent);
|
|
}
|
|
|
|
.toastIcon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 22px;
|
|
height: 22px;
|
|
margin-top: 0;
|
|
border-radius: 50%;
|
|
flex: 0 0 22px;
|
|
}
|
|
|
|
.toastIcon svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.toastBody {
|
|
min-width: 0;
|
|
color: var(--text);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.toastClose {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 22px;
|
|
height: 22px;
|
|
margin: -2px -2px 0 4px;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--muted-soft);
|
|
background: transparent;
|
|
cursor: pointer;
|
|
transition: background var(--motion-fast), color var(--motion-fast);
|
|
}
|
|
|
|
.toastClose:hover {
|
|
color: var(--primary);
|
|
background: color-mix(in oklab, var(--primary-soft) 60%, transparent);
|
|
box-shadow: 0 0 10px -2px color-mix(in oklab, var(--primary) 45%, transparent);
|
|
}
|
|
|
|
.toast.isLeaving {
|
|
animation: toastOut 220ms ease forwards;
|
|
}
|
|
|
|
@keyframes toastIn {
|
|
from { opacity: 0; transform: translateY(8px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
@keyframes toastOut {
|
|
to { opacity: 0; transform: translateY(-4px); }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.toast,
|
|
.toast.isLeaving {
|
|
animation: none;
|
|
}
|
|
}
|