/* src/css/tokens.css */
:root,
[data-theme=light] {
  color-scheme: light;
  --t-surface: #ece8df;
  --t-surface-raised: #f8f6f1;
  --t-surface-sunken: #ddd8cc;
  --t-ink: #2b2a27;
  --t-ink-soft: #5c5850;
  --t-accent: #f28c28;
  --t-accent-deep: #b35c0a;
  --t-accent-ink: #2b1600;
  --t-edge: #c9c3b4;
  --t-off: #b9b3a4;
  --t-grille: #b9b3a4;
  --t-focus: #9a4d00;
  --t-critical: #d42330;
  --t-critical-bg: #c81e2b;
  --t-critical-ink: #ffffff;
  --t-warning: #8f6c00;
  --t-warning-bg: #f6e39a;
  --t-warning-ink: #4d3b00;
  --t-ok: #2f9e44;
  --t-ok-bg: #d6ead3;
  --t-ok-ink: #1e5423;
  --t-lcd-bg: #2f3a2c;
  --t-lcd-ink: #c8e6a0;
  --t-shade: rgba(60, 50, 30, 0.25);
  --t-highlight: rgba(255, 255, 255, 0.9);
  --t-lcd-glow: rgba(200, 230, 160, 0.5);
}
[data-theme=dark] {
  color-scheme: dark;
  --t-surface: #242527;
  --t-surface-raised: #303134;
  --t-surface-sunken: #18191a;
  --t-ink: #ecebe7;
  --t-ink-soft: #a6a49e;
  --t-accent: #f59a3e;
  --t-accent-deep: #7a3f06;
  --t-accent-ink: #1c1d1f;
  --t-edge: #121213;
  --t-off: #3b3b3e;
  --t-grille: #0e0e0f;
  --t-focus: #f59a3e;
  --t-critical: #ff4d57;
  --t-critical-bg: #5c1519;
  --t-critical-ink: #ffd9dc;
  --t-warning: #f0c419;
  --t-warning-bg: #4a3c07;
  --t-warning-ink: #f8e08a;
  --t-ok: #3ecf5c;
  --t-ok-bg: #173d1c;
  --t-ok-ink: #bde8c0;
  --t-lcd-bg: #140c02;
  --t-lcd-ink: #ffab40;
  --t-shade: rgba(0, 0, 0, 0.6);
  --t-highlight: rgba(255, 255, 255, 0.13);
  --t-lcd-glow: rgba(255, 171, 64, 0.55);
}
:root,
[data-theme] {
  --t-depth-raised: 0 1px 0 var(--t-highlight) inset, 0 10px 24px var(--t-shade);
  --t-depth-sunken: inset 0 2px 4px var(--t-shade);
}
:root {
  --t-font:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  --t-font-lcd:
    "DSEG7",
    ui-monospace,
    "Cascadia Mono",
    Consolas,
    monospace;
  --t-space-1: 4px;
  --t-space-2: 8px;
  --t-space-3: 12px;
  --t-space-4: 16px;
  --t-space-5: 24px;
  --t-space-6: 32px;
  --t-radius-sm: 7px;
  --t-radius: 12px;
  --t-radius-lg: 18px;
  --t-radius-pill: 999px;
  --t-press-depth: 3px;
  --t-touch: 44px;
  --t-key-height: 48px;
  --t-text-sm: 13px;
  --t-text: 16px;
  --t-text-lg: 20px;
}

/* src/css/motion.css */
:root {
  --t-ease-press: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-ease-snap: cubic-bezier(0.3, 1.6, 0.5, 1);
  --t-dur-press: 90ms;
  --t-dur-release: 220ms;
  --t-dur-snap: 160ms;
  --t-dur-fade: 180ms;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --t-ease-spring: linear(0, 0.35 8%, 0.8 18%, 1.06 30%, 1.08 38%, 1.02 52%, 0.99 66%, 1);
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --t-dur-press: 0ms;
    --t-dur-release: 0ms;
    --t-dur-snap: 0ms;
    --t-dur-fade: 0ms;
  }
}

/* src/css/base.css */
@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DSEG7";
  src: url("./fonts/DSEG7Classic-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
.t-app {
  margin: 0;
  min-height: 100vh;
  background: var(--t-surface);
  color: var(--t-ink);
  font: 400 var(--t-text) / 1.45 var(--t-font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.t-app *,
.t-app *::before,
.t-app *::after {
  box-sizing: border-box;
}
.t-num {
  font-variant-numeric: tabular-nums;
}
.t-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
:where(.t-key, .t-hold-key__button, .t-switch, .t-segmented [role=tab], .t-check, .t-field):focus-visible {
  outline: 2px solid var(--t-focus);
  outline-offset: 3px;
}

/* src/css/components/key.css */
.t-key,
.t-hold-key__button {
  --t-key-edge: var(--t-edge);
  box-sizing: border-box;
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--t-space-2);
  min-height: var(--t-key-height);
  min-width: var(--t-touch);
  margin: 0;
  padding: 0 var(--t-space-5);
  border: 0;
  border-radius: var(--t-radius);
  cursor: pointer;
  font: 600 15px / 1 var(--t-font);
  letter-spacing: 0.04em;
  color: var(--t-ink);
  background: var(--t-surface-raised);
  background:
    linear-gradient(
      180deg,
      var(--t-surface-raised),
      var(--t-surface));
  box-shadow:
    0 var(--t-press-depth) 0 var(--t-key-edge),
    0 6px 10px var(--t-shade),
    inset 0 1px 0 var(--t-highlight);
  transform: translateY(0);
  transition: transform var(--t-dur-release) var(--t-ease-spring), box-shadow var(--t-dur-release) var(--t-ease-spring);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.t-key.is-pressed,
t-hold-key.is-holding .t-hold-key__button {
  transform: translateY(var(--t-press-depth));
  box-shadow:
    0 0 0 var(--t-key-edge),
    0 2px 4px var(--t-shade),
    inset 0 1px 0 var(--t-highlight);
  transition-duration: var(--t-dur-press);
  transition-timing-function: var(--t-ease-press);
}
.t-key--accent {
  --t-key-edge: var(--t-accent-deep);
  color: var(--t-accent-ink);
  background: var(--t-accent);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--t-accent) 82%, white),
      var(--t-accent));
}
.t-key--sm {
  min-height: var(--t-touch);
  padding: 0 var(--t-space-4);
  font-size: var(--t-text-sm);
}
.t-key--block {
  display: flex;
  width: 100%;
}
.t-key:disabled,
.t-key[aria-disabled=true],
.t-hold-key__button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}
.t-key[aria-busy=true] {
  cursor: progress;
  color: transparent;
}
.t-key[aria-busy=true]::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--t-ink-soft);
  border-top-color: transparent;
  border-radius: 50%;
  animation: t-spin 700ms linear infinite;
}
@keyframes t-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (hover: hover) {
  .t-key:not(:disabled):not(.is-pressed):hover,
  .t-hold-key__button:not(:disabled):hover {
    filter: brightness(1.03);
  }
}

/* src/css/components/hold-key.css */
t-hold-key {
  display: block;
}
t-hold-key .t-hold-key__button {
  display: flex;
  width: 100%;
  min-height: 120px;
  overflow: hidden;
  font-size: var(--t-text-lg);
  touch-action: none;
  -webkit-touch-callout: none;
}
.t-hold-key__label {
  position: relative;
}
.t-hold-key__fill {
  position: absolute;
  inset: 0;
  background: var(--t-accent);
  opacity: 0.35;
  transform: scaleX(0);
  transform-origin: left center;
}
t-hold-key.is-holding .t-hold-key__fill {
  transform: scaleX(1);
  transition: transform var(--t-hold-duration, 1000ms) linear;
}
.t-hold-key__dial {
  --t-dial-size: min(78vw, 320px);
  position: relative;
  width: var(--t-dial-size);
  height: var(--t-dial-size);
  margin: 0 auto;
}
.t-hold-key__ring {
  position: absolute;
  inset: 0;
}
.t-hold-key__tick {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 6%;
  margin: -3% 0 0 -1.5px;
  border-radius: 2px;
  background: var(--t-grille);
  transform: rotate(var(--t-tick-angle)) translateY(calc(var(--t-dial-size) / -2 + 10px));
}
.t-hold-key__tick.is-lit {
  background: var(--t-accent);
  box-shadow: 0 0 6px var(--t-accent);
}
t-hold-key .t-hold-key__button.t-hold-key__button--dial {
  --t-key-edge: var(--t-accent-deep);
  position: absolute;
  inset: 12%;
  width: auto;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  font-size: var(--t-text-lg);
  font-weight: 700;
  color: var(--t-accent-ink);
  background: var(--t-accent);
  background:
    radial-gradient(
      circle at 50% 35%,
      color-mix(in srgb, var(--t-accent) 80%, white),
      var(--t-accent) 70%);
}
.t-hold-key__button--dial .t-hold-key__fill {
  display: none;
}

/* src/css/components/switch.css */
.t-switch {
  box-sizing: border-box;
  appearance: none;
  position: relative;
  flex: none;
  width: 58px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--t-radius-pill);
  cursor: pointer;
  background: var(--t-surface-sunken);
  box-shadow: var(--t-depth-sunken);
  transition: background var(--t-dur-snap) var(--t-ease-press);
}
.t-switch::before {
  content: "";
  position: absolute;
  inset: -6px -2px;
}
.t-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    linear-gradient(
      180deg,
      var(--t-surface-raised),
      var(--t-surface));
  box-shadow: 0 2px 3px var(--t-shade), inset 0 1px 0 var(--t-highlight);
  transition: transform var(--t-dur-snap) var(--t-ease-snap);
}
.t-switch[aria-checked=true] {
  background: var(--t-accent);
}
.t-switch[aria-checked=true]::after {
  transform: translateX(26px);
}
.t-switch:disabled,
.t-switch[aria-disabled=true] {
  cursor: not-allowed;
  opacity: 0.5;
}
.t-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--t-space-3);
  min-height: var(--t-touch);
}

/* src/css/components/segmented.css */
.t-segmented {
  box-sizing: border-box;
  display: flex;
  min-width: 0;
  gap: 2px;
  max-width: 100%;
  padding: 3px;
  overflow-x: auto;
  border-radius: var(--t-radius);
  background: var(--t-surface-sunken);
  box-shadow: var(--t-depth-sunken);
  scrollbar-width: none;
}
.t-segmented::-webkit-scrollbar {
  display: none;
}
.t-segmented [role=tab] {
  appearance: none;
  flex: 1 0 auto;
  min-height: var(--t-touch);
  margin: 0;
  padding: 0 var(--t-space-4);
  border: 0;
  border-radius: var(--t-radius-sm);
  cursor: pointer;
  white-space: nowrap;
  font: 600 var(--t-text-sm) / 1 var(--t-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t-ink-soft);
  background: transparent;
  transition: background var(--t-dur-snap) var(--t-ease-press), color var(--t-dur-snap) var(--t-ease-press);
}
.t-segmented [role=tab]:focus-visible {
  outline-offset: -3px;
}
.t-segmented [role=tab][aria-selected=true] {
  color: var(--t-ink);
  background: var(--t-surface-raised);
  box-shadow: 0 1px 2px var(--t-shade), inset 0 1px 0 var(--t-highlight);
}
.t-segmented [role=tab]:disabled,
.t-segmented [role=tab][aria-disabled=true] {
  cursor: not-allowed;
  opacity: 0.5;
}

/* src/css/components/check.css */
.t-check {
  box-sizing: border-box;
  appearance: none;
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  border-radius: var(--t-radius-sm);
  cursor: pointer;
  background:
    linear-gradient(
      180deg,
      var(--t-surface-raised),
      var(--t-surface));
  box-shadow:
    0 2px 0 var(--t-edge),
    0 3px 5px var(--t-shade),
    inset 0 1px 0 var(--t-highlight);
  transition: transform var(--t-dur-press) var(--t-ease-press), box-shadow var(--t-dur-press) var(--t-ease-press);
}
.t-check::before {
  content: "";
  position: absolute;
  inset: -9px;
}
.t-check:checked {
  transform: translateY(2px);
  background: var(--t-accent);
  box-shadow: 0 0 0 var(--t-accent-deep), inset 0 1px 2px var(--t-shade);
}
.t-check:checked::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 9px;
  width: 6px;
  height: 12px;
  border: solid var(--t-accent-ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.t-check:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.t-check-row {
  display: flex;
  align-items: center;
  gap: var(--t-space-3);
  min-height: var(--t-touch);
  cursor: pointer;
}

/* src/css/components/io.css */
.t-io,
.t-io-all input[type=checkbox]:not(.t-check),
.t-io-all input[type=radio]:not(.t-check) {
  box-sizing: border-box;
  appearance: none;
  position: relative;
  flex: none;
  display: inline-block;
  vertical-align: middle;
  width: 68px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--t-radius-pill);
  cursor: pointer;
  background:
    radial-gradient(
      circle at 50px 18px,
      transparent 3.5px,
      var(--t-surface-raised) 4px,
      var(--t-surface-raised) 6.5px,
      transparent 7px),
    var(--t-surface-sunken);
  box-shadow: var(--t-depth-sunken);
  transition: background-color var(--t-dur-snap) var(--t-ease-press);
}
.t-io::before,
.t-io-all input[type=checkbox]:not(.t-check)::before,
.t-io-all input[type=radio]:not(.t-check)::before {
  content: "";
  position: absolute;
  inset: -4px -2px;
}
.t-io::after,
.t-io-all input[type=checkbox]:not(.t-check)::after,
.t-io-all input[type=radio]:not(.t-check)::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(
      180deg,
      var(--t-surface-raised),
      var(--t-surface));
  box-shadow: 0 3px 5px var(--t-shade), inset 0 1px 0 var(--t-highlight);
  transition: transform var(--t-dur-snap) var(--t-ease-snap);
}
.t-io:checked,
.t-io-all input[type=checkbox]:not(.t-check):checked,
.t-io-all input[type=radio]:not(.t-check):checked {
  background: linear-gradient(var(--t-surface-raised), var(--t-surface-raised)) 17px 11px / 3px 14px no-repeat, var(--t-accent);
}
.t-io:checked::after,
.t-io-all input[type=checkbox]:not(.t-check):checked::after,
.t-io-all input[type=radio]:not(.t-check):checked::after {
  transform: translateX(32px);
}
.t-io:active::after,
.t-io-all input[type=checkbox]:not(.t-check):active::after,
.t-io-all input[type=radio]:not(.t-check):active::after {
  box-shadow: 0 1px 2px var(--t-shade), inset 0 1px 0 var(--t-highlight);
}
.t-io:focus-visible,
.t-io-all input[type=checkbox]:not(.t-check):focus-visible,
.t-io-all input[type=radio]:not(.t-check):focus-visible {
  outline: 2px solid var(--t-accent);
  outline-offset: 3px;
}
.t-io:disabled,
.t-io-all input[type=checkbox]:not(.t-check):disabled,
.t-io-all input[type=radio]:not(.t-check):disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* src/css/components/field.css */
.t-label {
  display: flex;
  flex-direction: column;
  gap: var(--t-space-1);
  font-size: var(--t-text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--t-ink-soft);
}
.t-field {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--t-touch);
  margin: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--t-radius-sm);
  font: 400 16px / 1.4 var(--t-font);
  color: var(--t-ink);
  background: var(--t-surface-sunken);
  box-shadow: var(--t-depth-sunken);
}
.t-field::placeholder {
  color: var(--t-ink-soft);
  opacity: 1;
}
textarea.t-field {
  min-height: 96px;
  resize: vertical;
}
select.t-field {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      var(--t-ink-soft) 50%),
    linear-gradient(
      135deg,
      var(--t-ink-soft) 50%,
      transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
@supports (appearance: base-select) {
  select.t-field,
  .t-app select,
  select.t-field::picker(select),
  .t-app select::picker(select) {
    appearance: base-select;
  }
  select.t-field,
  .t-app select {
    padding-right: 12px;
    background-image: none;
  }
  select.t-field::picker-icon,
  .t-app select::picker-icon {
    color: var(--t-ink-soft);
  }
  select.t-field::picker(select),
  .t-app select::picker(select) {
    box-sizing: border-box;
    position-area: block-end span-inline-end;
    width: anchor-size(width);
    position-try-fallbacks: none;
    max-height: 50vh;
    margin: var(--t-space-1) 0 0;
    padding: var(--t-space-1);
    border: 0;
    border-radius: var(--t-radius-sm);
    background: var(--t-surface-raised);
    box-shadow: var(--t-depth-raised);
  }
  select.t-field option,
  .t-app select option {
    min-height: var(--t-touch);
    padding: 10px 12px;
    border-radius: var(--t-radius-sm);
    font: 400 16px / 1.4 var(--t-font);
    color: var(--t-ink);
  }
  select.t-field option:checked,
  .t-app select option:checked {
    background: var(--t-surface-sunken);
  }
}
.t-field:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.t-field[aria-invalid=true] {
  border: 2px solid var(--t-warning);
}
.t-field-error {
  display: flex;
  align-items: baseline;
  gap: var(--t-space-1);
  margin: var(--t-space-1) 0 0;
  font-size: var(--t-text-sm);
  color: var(--t-ink);
}
.t-field-error::before {
  content: "\26a0";
  color: var(--t-warning);
}

/* src/css/components/led.css */
.t-led {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--t-off);
  box-shadow: inset 0 1px 2px var(--t-shade);
}
.t-led[data-state=ok] {
  background: var(--t-ok);
  box-shadow: 0 0 8px var(--t-ok);
}
.t-led[data-state=warning] {
  background: var(--t-warning);
  box-shadow: 0 0 8px var(--t-warning);
}
.t-led[data-state=critical] {
  background: var(--t-critical);
  box-shadow: 0 0 10px var(--t-critical);
  animation: t-blink 1s steps(2, jump-none) infinite;
}
@keyframes t-blink {
  50% {
    opacity: 0.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .t-led[data-state=critical] {
    animation: none;
  }
}
.t-led-row {
  display: inline-flex;
  align-items: center;
  gap: var(--t-space-2);
  font-size: var(--t-text-sm);
  color: var(--t-ink-soft);
}

/* src/css/components/lcd.css */
t-lcd {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 8ch;
  padding: var(--t-space-2) var(--t-space-3);
  border-radius: 6px;
  color: var(--t-lcd-ink);
  background: var(--t-lcd-bg);
  box-shadow: inset 0 2px 4px var(--t-shade);
}
.t-lcd__label {
  font: 600 10px / 1 var(--t-font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
.t-lcd__value {
  font: 700 24px / 1.1 var(--t-font-lcd);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 6px var(--t-lcd-glow);
}

/* src/css/components/panel.css */
.t-panel {
  box-sizing: border-box;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--t-space-4);
  padding: var(--t-space-4);
  border-radius: var(--t-radius-lg);
  color: var(--t-ink);
  background:
    linear-gradient(
      180deg,
      var(--t-surface-raised),
      var(--t-surface));
  box-shadow: var(--t-depth-raised);
}
@media (min-width: 600px) {
  .t-panel {
    padding: var(--t-space-5);
  }
}
.t-panel--sunken {
  background: var(--t-surface-sunken);
  box-shadow: var(--t-depth-sunken);
}
.t-panel__grille {
  height: 10px;
  border-radius: 3px;
  opacity: 0.6;
  background:
    repeating-linear-gradient(
      90deg,
      var(--t-grille) 0 3px,
      transparent 3px 7px);
}
.t-panel__title {
  margin: 0;
  font: 600 11px / 1.2 var(--t-font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-ink-soft);
}

/* src/css/components/tag.css */
.t-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--t-space-1);
  padding: 2px 8px;
  border-radius: var(--t-radius-pill);
  white-space: nowrap;
  font: 600 12px / 1.4 var(--t-font);
  letter-spacing: 0.04em;
  color: var(--t-ink);
  background: var(--t-surface-sunken);
}
.t-tag[data-tone=ok] {
  color: var(--t-ok-ink);
  background: var(--t-ok-bg);
}
.t-tag[data-tone=warning] {
  color: var(--t-warning-ink);
  background: var(--t-warning-bg);
}
.t-tag[data-tone=critical] {
  color: var(--t-critical-ink);
  background: var(--t-critical-bg);
}

/* src/css/components/toast.css */
.t-toast-region {
  position: fixed;
  z-index: 1000;
  right: var(--t-space-4);
  bottom: calc(var(--t-space-4) + env(safe-area-inset-bottom, 0px));
  left: var(--t-space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--t-space-2);
  pointer-events: none;
}
@media (min-width: 600px) {
  .t-toast-region {
    right: var(--t-space-5);
    bottom: var(--t-space-5);
    left: auto;
    align-items: flex-end;
  }
}
t-toast {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 420px;
  padding: var(--t-space-3) var(--t-space-4);
  border-left: 4px solid var(--t-off);
  border-radius: var(--t-radius);
  font: 500 15px / 1.4 var(--t-font);
  color: var(--t-ink);
  background: var(--t-surface-raised);
  box-shadow: var(--t-depth-raised);
  pointer-events: none;
  animation: t-toast-in var(--t-dur-fade) var(--t-ease-press);
}
t-toast[data-tone=ok] {
  border-left-color: var(--t-ok);
}
t-toast[data-tone=ok]::before {
  content: "\2713  ";
}
t-toast[data-tone=warning] {
  border-left-color: var(--t-warning);
}
t-toast[data-tone=warning]::before {
  content: "\26a0  ";
}
t-toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-dur-fade), transform var(--t-dur-fade);
}
@keyframes t-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* src/css/components/icon.css */
t-icon {
  display: inline-flex;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.2em;
}
t-icon svg {
  width: 100%;
  height: 100%;
}

/* src/css/components/nav.css */
.t-nav {
  box-sizing: border-box;
  display: flex;
  gap: var(--t-space-1);
  padding: 6px;
  background: var(--t-surface-sunken);
}
.t-nav--bar,
.t-nav--auto {
  position: fixed;
  z-index: 900;
  right: 0;
  bottom: 0;
  left: 0;
  justify-content: space-around;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 16px var(--t-shade);
}
.t-nav--rail {
  position: sticky;
  top: 0;
  flex-direction: column;
  align-items: center;
  width: 72px;
  height: 100vh;
  height: 100dvh;
  padding: var(--t-space-3) var(--t-space-2);
}
@media (min-width: 600px) {
  .t-nav--auto {
    position: sticky;
    top: 0;
    right: auto;
    bottom: auto;
    left: auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 72px;
    height: 100vh;
    height: 100dvh;
    padding: var(--t-space-3) var(--t-space-2);
    box-shadow: none;
  }
}
.t-nav__spacer {
  flex: 1;
}
.t-nav--bar .t-nav__spacer {
  display: none;
}
@media (max-width: 599px) {
  .t-nav--auto .t-nav__spacer {
    display: none;
  }
}
.t-nav__item {
  box-sizing: border-box;
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  min-width: var(--t-touch);
  min-height: var(--t-touch);
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--t-radius);
  cursor: pointer;
  font-size: 22px;
  color: var(--t-ink-soft);
  background: transparent;
  transition: background var(--t-dur-snap) var(--t-ease-press), color var(--t-dur-snap) var(--t-ease-press);
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}
.t-nav__item[aria-current=page] {
  color: var(--t-accent-ink);
  background: var(--t-accent);
  box-shadow: inset 0 2px 3px var(--t-shade);
}
.t-nav__item[aria-disabled=true],
.t-nav__item:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.t-nav__item:focus-visible {
  outline: 2px solid var(--t-focus);
  outline-offset: 2px;
}
.t-nav__item[data-t-tip]::after {
  content: attr(data-t-tip);
  position: absolute;
  z-index: 10;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 4px 8px;
  border-radius: var(--t-radius-sm);
  white-space: nowrap;
  font: 600 12px / 1.2 var(--t-font);
  color: var(--t-ink);
  background: var(--t-surface-raised);
  box-shadow: var(--t-depth-raised);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity var(--t-dur-fade);
}
.t-nav--rail .t-nav__item[data-t-tip]::after {
  top: 50%;
  bottom: auto;
  left: calc(100% + 8px);
  transform: translateY(-50%);
}
@media (min-width: 600px) {
  .t-nav--auto .t-nav__item[data-t-tip]::after {
    top: 50%;
    bottom: auto;
    left: calc(100% + 8px);
    transform: translateY(-50%);
  }
}
.t-nav__item.is-tip::after,
.t-nav__item:focus-visible::after {
  opacity: 1;
}
@media (hover: hover) {
  .t-nav__item:hover::after {
    opacity: 1;
  }
  .t-nav__item:not([aria-current=page]):hover {
    color: var(--t-ink);
  }
}

/* src/css/tactile.css */
