:root {
color-scheme: light dark;
--color-bg: #ffffff;
--color-surface-raised: #ffffff;
--color-surface-sunken: #eef0f3;
--color-surface-hover: #eceef2;
--color-border: #dfe2e7;
--color-border-strong: #c4c9d1;
--color-overlay: rgba(15, 17, 21, 0.45);
--color-text: #14161a;
--color-text-muted: #5a6170;
--color-text-subtle: #7a8190;
--color-link: #2f5bea;
--color-primary: #2f5bea;
--color-primary-hover: #2448c7;
--color-primary-active: #1d3ba6;
--color-on-primary: #ffffff;
--color-primary-soft: #e8eefe;
--color-focus: #2f5bea;
--color-selection: #cdd9fc;
--color-success: #1a7f45;
--color-success-soft: #e7f5ec;
--color-warning: #b25e00;
--color-warning-soft: #fdf1e1;
--color-danger: #c62828;
--color-danger-fill: #c62828;
--color-danger-hover: #a81f1f;
--color-danger-soft: #fdecec;
--color-info: #0b6bcb;
--color-info-soft: #e6f1fc;
--shadow-2: 0 4px 12px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.04);
--shadow-3: 0 12px 32px rgba(16, 24, 40, 0.14), 0 4px 8px rgba(16, 24, 40, 0.06);
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-16: 4rem;
--radius-sm: 4px;
--radius-md: 6px;
--radius-lg: 10px;
--radius-xl: 14px;
--radius-full: 9999px;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
--ease-enter: cubic-bezier(0, 0, 0, 1);
--ease-exit: cubic-bezier(0.3, 0, 1, 1);
--dur-instant: 80ms;
--dur-fast: 140ms;
--dur-base: 200ms;
--dur-slow: 320ms;
--dur-page: 420ms;
--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
--text-xs: 0.75rem;
--text-sm: 0.8125rem;
--text-md: 0.875rem;
--text-base: 1rem;
--text-lg: 1.125rem;
--text-2xl: 1.5rem;
--leading-tight: 1.25;
--leading-normal: 1.5;
--weight-regular: 400;
--weight-medium: 500;
--weight-semibold: 600;
--control-h-sm: 28px;
--control-h-md: 36px;
--control-h-lg: 44px;
--row-h: 44px;
--density-pad: var(--space-4);
--hit-min: 24px;
--check-size: 18px;
--check-mark-w: 5px;
--check-mark-h: 9px;
--radio-dot: 10px;
--switch-w: 36px;
--switch-h: 20px;
--switch-thumb: 16px;
--badge-h: 20px;
--badge-dot: 6px;
--accent-w: 3px;
--shell-header-h: 56px;
--content-max-w: 1280px;
--content-narrow-w: 720px;
--page-gutter: clamp(var(--space-4), 4vw, var(--space-8));
--grid-gap: clamp(var(--space-4), 2vw, var(--space-6));
--z-header: 300;
--z-dropdown: 400;
--z-modal: 500;
--z-toast: 600;
}
:root[data-density="compact"] {
--control-h-sm: 24px;
--control-h-md: 30px;
--control-h-lg: 36px;
--row-h: 32px;
--density-pad: var(--space-3);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--color-bg: #0f1115;
--color-surface-raised: #1e222b;
--color-surface-sunken: #0b0d10;
--color-surface-hover: #232833;
--color-border: #2a2f3a;
--color-border-strong: #3a4150;
--color-overlay: rgba(0, 0, 0, 0.6);
--color-text: #e6e8ec;
--color-text-muted: #a3aab8;
--color-text-subtle: #6f7686;
--color-link: #8aa6ff;
--color-primary: #3f67e8;
--color-primary-hover: #3459d6;
--color-primary-active: #2c4dbf;
--color-primary-soft: #1c2540;
--color-focus: #8aa6ff;
--color-selection: #2b3a66;
--color-success: #2fa565;
--color-success-soft: #12261b;
--color-warning: #d88a1c;
--color-warning-soft: #2b1f0d;
--color-danger: #e5484d;
--color-danger-fill: #c93a3f;
--color-danger-hover: #b03035;
--color-danger-soft: #2c1414;
--color-info: #3b8fe0;
--color-info-soft: #10213a;
--shadow-2: 0 4px 12px rgba(0, 0, 0, 0.55);
--shadow-3: 0 12px 32px rgba(0, 0, 0, 0.65);
}
}
:root[data-theme="dark"] {
--color-bg: #020a04;
--color-surface-raised: #04110a;
--color-surface-sunken: #010603;
--color-surface-hover: #071a0d;
--color-border: #0c2b15;
--color-border-strong: #1a5a2a;
--color-overlay: rgba(0, 4, 1, 0.8);
--color-text: #c9dccb;
--color-text-muted: #6f9a76;
--color-text-subtle: #456b4c;
--color-link: #3aa845;
--color-primary: #2f9a3a;
--color-primary-hover: #38ad44;
--color-primary-active: #27822f;
--color-on-primary: #010603;
--color-primary-soft: #0a2412;
--color-focus: #38ad44;
--color-selection: #123d1d;
--color-success: #3aa845;
--color-success-soft: #071a0d;
--color-warning: #e6d34b;
--color-warning-soft: #2b2a0d;
--color-danger: #ff5f56;
--color-danger-fill: #c9332c;
--color-danger-hover: #a92a24;
--color-danger-soft: #2c1210;
--color-info: #5fd3e6;
--color-info-soft: #0d2a2e;
--shadow-2: none;
--shadow-3: 0 0 0 1px #1a5a2a;
--radius-sm: 0;
--radius-md: 0;
--radius-lg: 0;
--radius-xl: 0;
--font-sans: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
*,
*::before,
*::after {
box-sizing: border-box;
cursor: default;
-webkit-user-drag: none;
-webkit-touch-callout: none;
touch-action: pan-x pan-y;
overscroll-behavior: none;
}
html {
height: 100%;
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
margin: 0;
}
ul,
ol {
padding: 0;
list-style: none;
}
:focus,
:focus-visible {
outline: none;
}
::selection {
background: var(--color-selection);
color: var(--color-text);
}
body {
margin: 0;
height: var(--app-h, 100dvh);
overflow: hidden;
display: flex;
flex-direction: column;
padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
font: var(--weight-regular) var(--text-base) / var(--leading-normal) var(--font-sans);
background: var(--color-bg);
color: var(--color-text);
-webkit-font-smoothing: antialiased;
}
[hidden] {
display: none !important;
}
img,
svg,
video,
canvas {
display: block;
max-width: 100%;
height: auto;
}
a {
color: var(--color-link);
text-decoration: none;
transition: color var(--dur-instant) var(--ease-standard);
}
a:visited {
color: var(--color-link);
}
@media (hover: hover) and (pointer: fine) {
a:hover {
text-decoration: underline;
}
}
button,
input,
textarea,
select {
font: inherit;
color: inherit;
margin: 0;
}
button {
background: none;
border: 0;
padding: 0;
}
:disabled,
[aria-disabled="true"],
[aria-busy="true"],
[aria-current]:not([aria-current="false"]),
[role="tab"][aria-selected="true"] {
pointer-events: none;
}
input,
textarea {
-webkit-appearance: none;
appearance: none;
border-radius: 0;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"] {
-moz-appearance: textfield;
appearance: textfield;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
-webkit-appearance: none;
display: none;
}
input::-ms-clear,
input::-ms-reveal {
display: none;
}
input::-webkit-credentials-auto-fill-button,
input::-webkit-contacts-auto-fill-button,
input::-webkit-strong-password-auto-fill-button,
input::-webkit-caps-lock-indicator,
input::-webkit-calendar-picker-indicator,
input::-webkit-list-button {
display: none !important;
visibility: hidden;
pointer-events: none;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
-webkit-text-fill-color: var(--color-text);
box-shadow: 0 0 0 100px var(--color-surface-sunken) inset;
caret-color: var(--color-text);
transition: background-color 9999s ease-out;
}
input::placeholder,
textarea::placeholder {
color: var(--color-text-subtle);
opacity: 1;
}
textarea {
resize: none;
}
input[type="range"],
progress,
meter {
-webkit-appearance: none;
appearance: none;
background: transparent;
border: 0;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
}
hr {
border: 0;
height: 1px;
margin: 0;
background: var(--color-border);
}
fieldset {
margin: 0;
padding: 0;
border: 0;
min-width: 0;
}
legend {
padding: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
th,
td {
padding: 0;
text-align: start;
}
mark {
background: var(--color-primary-soft);
color: var(--color-text);
}
code,
kbd,
samp,
pre {
font-family: var(--font-mono);
font-size: var(--text-sm);
}
pre {
margin: 0;
overflow: auto;
}
input,
textarea,
[contenteditable="true"] {
caret-color: var(--color-primary);
}
audio,
video {
outline: none;
}
input[type="checkbox"],
input[type="radio"] {
-webkit-appearance: none;
appearance: none;
accent-color: transparent;
}
input[type="file"] {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
summary {
list-style: none;
}
summary::-webkit-details-marker {
display: none;
}
dialog {
padding: 0;
border: 0;
background: transparent;
color: inherit;
max-width: none;
max-height: none;
}
dialog::backdrop {
background: var(--color-overlay);
}
* {
scrollbar-width: none;
-ms-overflow-style: none;
}
*::-webkit-scrollbar {
width: 0;
height: 0;
display: none;
}
html,
.shell-main {
scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
html,
.shell-main {
scroll-behavior: auto;
}
}
*,
*::before,
*::after {
-webkit-user-select: none;
user-select: none;
}
input,
textarea,
[contenteditable="true"],
[data-selectable],
[data-selectable] * {
-webkit-user-select: text;
user-select: text;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
transition-duration: var(--dur-instant) !important;
animation-duration: var(--dur-instant) !important;
animation-iteration-count: 1 !important;
}
}
:root[data-perf="low"] *,
:root[data-perf="low"] *::before,
:root[data-perf="low"] *::after {
transition-duration: var(--dur-instant) !important;
animation-duration: var(--dur-instant) !important;
}
html[data-os="ios"] :is(input, textarea),
html[data-os="ipados"] :is(input, textarea) {
font-size: max(16px, 1em);
}
html[data-form="tv"] {
font-size: 125%;
}
html[data-form="tv"] :focus-visible {
outline: 3px solid var(--color-primary);
outline-offset: 3px;
}
@media (forced-colors: active) {
.switch input {
border: 1px solid CanvasText;
}
.radio input::before,
.switch input::before {
background: CanvasText;
}
.check input::before {
border-color: CanvasText;
}
.check input:checked,
.radio input:checked,
.switch input:checked {
background: Highlight;
border-color: Highlight;
}
.check input:checked::before {
border-color: HighlightText;
}
.radio input:checked::before,
.switch input:checked::before {
background: HighlightText;
}
}
.container {
width: min(100% - 2 * var(--page-gutter), var(--content-max-w));
margin-inline: auto;
}
.stack {
display: flex;
flex-direction: column;
gap: var(--space-4);
}
.cluster {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2);
}
.grid {
display: grid;
gap: var(--grid-gap);
grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.scroll-x {
overflow-x: auto;
}
.cluster--between {
justify-content: space-between;
}
.table {
width: 100%;
font-size: var(--text-md);
}
.table th,
.table td {
padding: var(--space-2) var(--space-3);
border-bottom: 1px solid var(--color-border);
text-align: start;
white-space: nowrap;
}
.table th {
color: var(--color-text-muted);
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
}
.table__sort {
display: inline-flex;
align-items: center;
gap: var(--space-1);
color: inherit;
font: inherit;
}
.table th[aria-sort="ascending"] .table__sort::after {
content: "↑";
}
.table th[aria-sort="descending"] .table__sort::after {
content: "↓";
}
.table--rows tbody tr {
transition: background-color var(--dur-instant) var(--ease-standard);
}
.table--rows tbody tr:active {
background: var(--color-surface-hover);
}
@media (hover: hover) and (pointer: fine) {
.table--rows tbody tr:hover {
background: var(--color-surface-hover);
}
}
.shell-header {
flex: none;
position: relative;
z-index: var(--z-header);
height: calc(var(--shell-header-h) + env(safe-area-inset-top));
padding-top: env(safe-area-inset-top);
display: flex;
align-items: center;
background: var(--color-bg);
border-bottom: 1px solid var(--color-border);
}
.shell-header .container {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-4);
}
.brand {
font-size: var(--text-base);
font-weight: var(--weight-semibold);
line-height: var(--leading-tight);
color: var(--color-text);
}
@media (hover: hover) and (pointer: fine) {
.brand:hover {
text-decoration: none;
}
}
.nav a {
transition: background-color var(--dur-instant) var(--ease-standard), color var(--dur-instant) var(--ease-standard);
display: inline-flex;
align-items: center;
height: var(--control-h-md);
padding: 0 var(--space-3);
border-radius: var(--radius-md);
color: var(--color-text-muted);
font-size: var(--text-md);
font-weight: var(--weight-medium);
line-height: var(--leading-tight);
}
@media (hover: hover) and (pointer: fine) {
.nav a:hover {
background: var(--color-surface-hover);
color: var(--color-text);
text-decoration: none;
}
}
.nav a[aria-current="page"] {
background: var(--color-primary-soft);
color: var(--color-text);
}
.narrow {
width: 100%;
max-width: var(--content-narrow-w);
}
.offline-bar {
flex: none;
padding: var(--space-2) var(--page-gutter);
background: var(--color-warning-soft);
border-bottom: 1px solid var(--color-border);
font-size: var(--text-sm);
line-height: 1.4;
text-align: center;
}
.shell-main {
flex: 1;
min-height: 0;
overflow-x: hidden;
overflow-y: auto;
padding-bottom: env(safe-area-inset-bottom);
}
.shell-main > .container {
padding-block: var(--space-8);
}
.page-title {
font-size: var(--text-2xl);
font-weight: var(--weight-semibold);
line-height: var(--leading-tight);
}
.section-title {
font-size: var(--text-lg);
font-weight: var(--weight-semibold);
line-height: var(--leading-tight);
}
.text-muted {
color: var(--color-text-muted);
}
.hint {
font-size: var(--text-sm);
line-height: 1.4;
color: var(--color-text-muted);
}
.prose {
max-width: 70ch;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-1);
height: var(--control-h-md);
padding: 0 var(--space-3);
border: 1px solid transparent;
border-radius: var(--radius-md);
font-size: var(--text-md);
font-weight: var(--weight-medium);
line-height: var(--leading-tight);
white-space: nowrap;
transition: background-color var(--dur-instant) var(--ease-standard), border-color var(--dur-instant) var(--ease-standard), color var(--dur-instant) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.btn:active {
transform: scale(0.98);
}
.btn--primary {
background: var(--color-primary);
color: var(--color-on-primary);
}
.btn--secondary {
background: var(--color-surface-raised);
color: var(--color-text);
border-color: var(--color-border-strong);
}
.btn--ghost {
background: transparent;
color: var(--color-text);
}
.btn--danger {
background: var(--color-danger-fill);
color: var(--color-on-primary);
}
@media (hover: hover) and (pointer: fine) {
.btn:hover {
text-decoration: none;
}
.btn--primary:hover {
background: var(--color-primary-hover);
}
.btn--secondary:hover,
.btn--ghost:hover {
background: var(--color-surface-hover);
}
.btn--danger:hover {
background: var(--color-danger-hover);
}
}
.btn--primary:active {
background: var(--color-primary-active);
}
.btn--secondary:active,
.btn--ghost:active {
background: var(--color-surface-hover);
}
.btn--danger:active {
background: var(--color-danger-hover);
}
.btn--sm {
height: var(--control-h-sm);
padding: 0 var(--space-2);
font-size: var(--text-sm);
}
.btn--lg {
height: var(--control-h-lg);
padding: 0 var(--space-4);
font-size: var(--text-base);
}
.btn--icon {
width: var(--control-h-md);
padding: 0;
}
.btn:disabled,
.btn[aria-disabled="true"] {
color: var(--color-text-subtle);
background: var(--color-surface-sunken);
border-color: transparent;
}
.btn[aria-busy="true"] {
opacity: 0.7;
}
.field {
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.field__label {
font-size: var(--text-md);
font-weight: var(--weight-medium);
line-height: var(--leading-tight);
}
.input,
.textarea {
width: 100%;
min-height: var(--control-h-md);
padding: 0 var(--space-3);
background: var(--color-surface-sunken);
border: 1px solid var(--color-border-strong);
border-radius: var(--radius-md);
font-size: var(--text-base);
line-height: var(--leading-tight);
color: var(--color-text);
transition: border-color var(--dur-instant) var(--ease-standard);
}
.textarea {
padding-block: var(--space-2);
line-height: var(--leading-normal);
}
@media (hover: hover) and (pointer: fine) {
.input:hover,
.textarea:hover {
border-color: var(--color-text-subtle);
}
}
.input:focus,
.textarea:focus {
border-color: var(--color-focus);
}
.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
border-color: var(--color-danger);
}
.input:disabled,
.textarea:disabled {
color: var(--color-text-subtle);
}
.popover {
position: fixed;
top: var(--popover-top, auto);
bottom: var(--popover-bottom, auto);
left: var(--popover-left, var(--space-2));
z-index: var(--z-dropdown);
min-width: var(--popover-min-w, 0);
max-width: var(--popover-max-w, 100%);
max-height: var(--popover-max-h, 320px);
overflow-y: auto;
padding: var(--space-1);
background: var(--color-surface-raised);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-2);
}
.select {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
text-align: start;
}
.select::after {
content: "â–¾";
color: var(--color-text-muted);
}
.select--empty {
color: var(--color-text-subtle);
}
.listbox [role="option"] {
padding: var(--space-2) var(--space-3);
border-radius: var(--radius-sm);
transition: background-color var(--dur-instant) var(--ease-standard);
}
.listbox .is-active {
background: var(--color-surface-hover);
}
.listbox [aria-selected="true"] {
font-weight: var(--weight-semibold);
}
@media (hover: hover) and (pointer: fine) {
.listbox [role="option"]:hover {
background: var(--color-surface-hover);
}
}
.date-field {
display: flex;
gap: var(--space-2);
}
.calendar {
padding: var(--space-3);
}
.calendar__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
margin-bottom: var(--space-2);
}
.calendar__title {
font-weight: var(--weight-semibold);
}
.calendar__grid {
display: grid;
grid-template-columns: repeat(7, var(--control-h-sm));
gap: var(--space-1);
}
.calendar__weekday {
font-size: var(--text-xs);
color: var(--color-text-muted);
text-align: center;
}
.calendar__day {
height: var(--control-h-sm);
border-radius: var(--radius-sm);
font-size: var(--text-md);
text-align: center;
transition: background-color var(--dur-instant) var(--ease-standard);
}
.calendar__day.is-today {
color: var(--color-primary);
font-weight: var(--weight-semibold);
}
.calendar__day:active {
background: var(--color-surface-hover);
}
.calendar__day[aria-pressed="true"] {
background: var(--color-primary);
color: var(--color-on-primary);
}
@media (hover: hover) and (pointer: fine) {
.calendar__day:hover {
background: var(--color-surface-hover);
}
.calendar__day[aria-pressed="true"]:hover {
background: var(--color-primary-hover);
}
}
.field__hint {
font-size: var(--text-sm);
line-height: 1.4;
color: var(--color-text-muted);
}
.field__error {
font-size: var(--text-sm);
line-height: 1.4;
color: var(--color-danger);
}
.check,
.radio {
display: inline-flex;
align-items: center;
gap: var(--space-2);
min-height: var(--hit-min);
font-size: var(--text-md);
line-height: var(--leading-tight);
}
.check input,
.radio input {
width: var(--check-size);
height: var(--check-size);
flex: none;
border: 1px solid var(--color-border-strong);
border-radius: var(--radius-sm);
background: var(--color-surface-raised);
display: grid;
place-content: center;
transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.radio input {
border-radius: var(--radius-full);
}
.check input::before,
.radio input::before {
content: "";
width: var(--radio-dot);
height: var(--radio-dot);
transform: scale(0);
transition: transform var(--dur-fast) var(--ease-standard);
}
.check input::before {
width: var(--check-mark-w);
height: var(--check-mark-h);
border: solid var(--color-on-primary);
border-width: 0 2px 2px 0;
transform: rotate(45deg) scale(0);
margin-top: -2px;
}
.radio input::before {
border-radius: var(--radius-full);
background: var(--color-on-primary);
}
.check input:checked,
.radio input:checked {
background: var(--color-primary);
border-color: var(--color-primary);
}
.check input:checked::before {
transform: rotate(45deg) scale(1);
}
.radio input:checked::before {
transform: scale(1);
}
.check input:focus,
.radio input:focus {
border-color: var(--color-focus);
}
.switch {
display: inline-flex;
align-items: center;
gap: var(--space-2);
min-height: var(--hit-min);
font-size: var(--text-md);
line-height: var(--leading-tight);
}
.switch input {
width: var(--switch-w);
height: var(--switch-h);
flex: none;
border-radius: var(--radius-full);
background: var(--color-border-strong);
position: relative;
transition: background-color var(--dur-fast) var(--ease-standard);
}
.switch input::before {
content: "";
position: absolute;
top: calc((var(--switch-h) - var(--switch-thumb)) / 2);
left: calc((var(--switch-h) - var(--switch-thumb)) / 2);
width: var(--switch-thumb);
height: var(--switch-thumb);
border-radius: var(--radius-full);
background: var(--color-on-primary);
transition: transform var(--dur-fast) var(--ease-standard);
}
.switch input:checked {
background: var(--color-primary);
}
.switch input:checked::before {
transform: translateX(calc(var(--switch-w) - var(--switch-h)));
}
.badge {
display: inline-flex;
align-items: center;
gap: var(--space-1);
height: var(--badge-h);
padding: 0 var(--space-2);
border-radius: var(--radius-full);
font-size: var(--text-xs);
font-weight: var(--weight-medium);
line-height: 1;
color: var(--color-text);
background: var(--color-surface-sunken);
}
.badge::before {
content: "";
width: var(--badge-dot);
height: var(--badge-dot);
border-radius: var(--radius-full);
background: currentColor;
}
.badge--neutral {
color: var(--color-text-muted);
}
.badge--success {
background: var(--color-success-soft);
}
.badge--success::before {
background: var(--color-success);
}
.badge--warning {
background: var(--color-warning-soft);
}
.badge--warning::before {
background: var(--color-warning);
}
.badge--danger {
background: var(--color-danger-soft);
}
.badge--danger::before {
background: var(--color-danger);
}
.badge--info {
background: var(--color-info-soft);
}
.badge--info::before {
background: var(--color-info);
}
.alert {
display: flex;
gap: var(--space-3);
padding: var(--space-4);
border-left: var(--accent-w) solid var(--color-info);
border-radius: var(--radius-md);
background: var(--color-info-soft);
font-size: var(--text-md);
line-height: 1.4;
}
.alert__title {
font-weight: var(--weight-medium);
}
.alert--success {
border-color: var(--color-success);
background: var(--color-success-soft);
}
.alert--warning {
border-color: var(--color-warning);
background: var(--color-warning-soft);
}
.alert--danger {
border-color: var(--color-danger);
background: var(--color-danger-soft);
}
.card {
background: var(--color-surface-raised);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
}
.card__header,
.card__footer {
padding: var(--space-3) var(--density-pad);
}
.card__header {
border-bottom: 1px solid var(--color-border);
font-weight: var(--weight-semibold);
line-height: var(--leading-tight);
}
.card__footer {
border-top: 1px solid var(--color-border);
display: flex;
justify-content: flex-end;
gap: var(--space-2);
}
.card__body {
padding: var(--density-pad);
}
.facts {
display: grid;
grid-template-columns: max-content minmax(0, 1fr);
gap: var(--space-1) var(--space-4);
font-size: var(--text-md);
line-height: 1.4;
}
.facts dt {
color: var(--color-text-muted);
}
.facts dd {
overflow-wrap: anywhere;
}
.card--interactive {
transition: border-color var(--dur-instant) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) {
.card--interactive:hover {
border-color: var(--color-border-strong);
transform: translateY(-1px);
}
}
.card--interactive:active {
border-color: var(--color-border-strong);
transform: scale(0.99);
}
.modal {
position: fixed;
inset: 0;
z-index: var(--z-modal);
margin: auto;
width: min(560px, 100vw - 2 * var(--space-4));
max-height: calc(100dvh - 2 * var(--space-8));
display: flex;
flex-direction: column;
background: var(--color-surface-raised);
border: 1px solid var(--color-border);
border-radius: var(--radius-xl);
box-shadow: var(--shadow-3);
overflow: hidden;
}
.modal[data-size="sm"] {
width: min(400px, 100vw - 2 * var(--space-4));
}
.modal[data-size="lg"] {
width: min(800px, 100vw - 2 * var(--space-4));
}
.modal__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-4);
padding: var(--space-4) var(--space-6);
border-bottom: 1px solid var(--color-border);
}
.modal__title {
font-size: var(--text-lg);
font-weight: var(--weight-semibold);
line-height: var(--leading-tight);
}
.modal__body {
padding: var(--space-6);
overflow: auto;
}
.modal__footer {
display: flex;
justify-content: flex-end;
gap: var(--space-2);
padding: var(--space-4) var(--space-6);
border-top: 1px solid var(--color-border);
}
@media (max-width: 639px) {
.modal {
width: 100vw;
height: 100dvh;
max-height: none;
border-radius: 0;
border: 0;
padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
}
.toast-region {
position: fixed;
right: var(--space-4);
bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
z-index: var(--z-toast);
display: flex;
flex-direction: column;
gap: var(--space-2);
width: min(360px, 100vw - 2 * var(--space-4));
pointer-events: none;
}
.toast {
display: flex;
align-items: flex-start;
gap: var(--space-3);
padding: var(--space-3) var(--space-4);
background: var(--color-surface-raised);
border: 1px solid var(--color-border);
border-left: var(--accent-w) solid var(--color-info);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-2);
font-size: var(--text-md);
line-height: 1.4;
pointer-events: auto;
}
.toast[data-tone="success"] {
border-left-color: var(--color-success);
}
.toast[data-tone="warning"] {
border-left-color: var(--color-warning);
}
.toast[data-tone="danger"] {
border-left-color: var(--color-danger);
}
.toast__text {
flex: 1;
}
.toast__close {
flex: none;
color: var(--color-text-muted);
transition: color var(--dur-instant) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) {
.toast__close:hover {
color: var(--color-text);
}
}
.toast__close:active {
color: var(--color-text);
}
.empty {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-2);
padding: var(--space-16) var(--space-4);
text-align: center;
color: var(--color-text-muted);
}
.empty__title {
font-size: var(--text-lg);
font-weight: var(--weight-semibold);
line-height: var(--leading-tight);
color: var(--color-text);
}
.skeleton {
height: var(--row-h);
border-radius: var(--radius-md);
background: var(--color-surface-sunken);
animation: skeleton var(--dur-page) var(--ease-standard) infinite alternate;
}
@keyframes skeleton {
to {
opacity: 0.5;
}
}
.clipboard {
position: fixed;
top: 0;
left: 0;
width: 1px;
height: 1px;
opacity: 0;
pointer-events: none;
}
.form-actions {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: var(--space-2);
}
@media (pointer: coarse) {
:root {
--control-h-sm: 36px;
--control-h-md: 44px;
--control-h-lg: 48px;
--row-h: 48px;
}
.toast-region {
right: auto;
left: 50%;
transform: translateX(-50%);
}
}
@font-face {
font-family: "VT323";
src: url("/vt323.ttf") format("truetype");
font-display: block;
}
html,
body {
background: var(--color-bg);
}
.dos {
height: 100dvh;
overflow: auto;
padding: 12px 16px;
background: var(--color-bg);
color: var(--color-primary);
font-family: "VT323", var(--font-mono);
font-size: 22px;
line-height: 1.1;
-webkit-font-smoothing: none;
-moz-osx-font-smoothing: unset;
font-smooth: never;
text-rendering: optimizeSpeed;
text-shadow: 0 0 2px rgba(47, 154, 58, 0.9), 0 0 9px rgba(47, 154, 58, 0.35);
}
.crt {
position: fixed;
inset: 0;
z-index: 10;
pointer-events: none;
background:
radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.55) 100%),
repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 0, rgba(0, 0, 0, 0.28) 1px, transparent 1px, transparent 3px);
}
.dos-bootlogo {
float: right;
width: 112px;
height: 112px;
margin: 0 0 8px 16px;
border-radius: 50%;
image-rendering: pixelated;
}
.dos-line {
min-height: 1.1em;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.dos-line--meta {
color: var(--color-text-subtle);
}
.dos-line--error {
color: var(--color-danger);
}
.dos-input {
position: relative;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.dos-input input {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
padding: 0;
border: 0;
opacity: 0;
font: inherit;
caret-color: transparent;
outline: none;
}
.dos-cursor {
color: var(--color-primary);
}
.dos-cursor--on {
background: var(--color-primary);
color: var(--color-bg);
}