/* 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,") no-repeat center / contain; mask: url("data:image/svg+xml;utf8,") 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); }