.ds {
  color-scheme: light;
  --ds-bg: #fff;
  --ds-fg: #171717;
  --ds-muted: #595959;
  --ds-surface: #f5f5f5;
  --ds-hover: #eaeaea;
  --ds-line: #dedede;
  --ds-control-line: #858585;
  --ds-focus: #404040;
  --ds-overlay: rgb(0 0 0 / 48%);
  --ds-font: "DS Medeo Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ds-mono: ui-monospace, Consolas, monospace;
  --ds-text-xs: .75rem;
  --ds-text-sm: .875rem;
  --ds-text: 1rem;
  --ds-heading: 1.25rem;
  --ds-1: .25rem;
  --ds-2: .5rem;
  --ds-3: .75rem;
  --ds-4: 1rem;
  --ds-5: 1.25rem;
  --ds-6: 1.5rem;
  --ds-8: 2rem;
  --ds-12: 3rem;
  --ds-target: 2.25rem;
  --ds-radius: .5rem;
  --ds-radius-lg: .75rem;
  --ds-shadow: 0 12px 32px rgb(0 0 0 / 12%);
}


@font-face {
  font-family: "DS Medeo Sans";
  src: url("./assets/medeo.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.ds {
  background: var(--ds-bg);
  color: var(--ds-fg);
  font: 400 var(--ds-text)/1.5 var(--ds-font);
  text-align: start;
  overflow-wrap: anywhere;
}
.ds, .ds *, .ds *::before, .ds *::after { box-sizing: border-box; }
.ds :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
.ds :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ds :where(a) { color: inherit; text-underline-offset: .2em; }
.ds :focus-visible { outline: 2px solid var(--ds-focus); outline-offset: 3px; }
.ds [hidden] { display: none !important; }
.ds .ds-icon { inline-size: 1rem; block-size: 1rem; flex: none; }
.ds .ds-muted { color: var(--ds-muted); }
.ds .ds-stack { display: grid; gap: var(--ds-4); min-inline-size: 0; }
.ds .ds-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-2); }
.ds .ds-sr-only, .ds .ds-skip:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.ds .ds-skip:focus { position: fixed; inset: var(--ds-4) auto auto var(--ds-4); z-index: 5; }


.ds .ds-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-2);
  min-block-size: var(--ds-target);
  min-inline-size: var(--ds-target);
  padding: var(--ds-1) var(--ds-3);
  border: 1px solid transparent;
  border-radius: var(--ds-radius);
  background: var(--ds-fg);
  color: var(--ds-bg);
  font-size: var(--ds-text-sm);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.ds .ds-button:hover { background: var(--ds-focus); }
.ds .ds-button:is([data-variant="outline"], [data-variant="ghost"]) { background: var(--ds-bg); color: var(--ds-fg); }
.ds .ds-button[data-variant="outline"] { border-color: var(--ds-control-line); }
.ds .ds-button:is([data-variant="outline"], [data-variant="ghost"]):hover { background: var(--ds-hover); }
.ds .ds-button[aria-pressed="true"], .ds .ds-button[aria-current] { background: var(--ds-hover); color: var(--ds-fg); border-color: var(--ds-control-line); }
.ds .ds-button:disabled { background: var(--ds-surface); color: var(--ds-muted); border-color: var(--ds-line); cursor: default; }
.ds .ds-button[data-icon] { padding-inline: var(--ds-2); }
@media (forced-colors: active) {
  .ds .ds-button { border-color: ButtonText; }
  .ds .ds-button:disabled { border-color: GrayText; color: GrayText; }
  .ds .ds-button:is([aria-pressed="true"], [aria-current]) { border-style: dashed; }
}


.ds .ds-field { display: grid; gap: var(--ds-1); min-inline-size: 0; font-size: var(--ds-text-sm); }
.ds .ds-label { font-weight: 600; }
.ds .ds-input {
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: var(--ds-target);
  padding: var(--ds-1) var(--ds-2);
  border: 1px solid var(--ds-control-line);
  border-radius: var(--ds-radius);
  background: var(--ds-bg);
  font-size: var(--ds-text);
}
.ds textarea.ds-input { min-block-size: 5rem; resize: vertical; }
.ds .ds-input::placeholder { color: var(--ds-muted); opacity: 1; }
.ds .ds-input:disabled { background: var(--ds-surface); color: var(--ds-muted); }
.ds .ds-input[readonly] { background: var(--ds-surface); }
.ds .ds-input[aria-invalid="true"] { border: 2px solid var(--ds-fg); }
.ds .ds-choice {
  display: flex;
  align-items: center;
  gap: var(--ds-2);
  min-block-size: var(--ds-target);
  inline-size: fit-content;
  font-size: var(--ds-text-sm);
}
.ds .ds-choice input { accent-color: var(--ds-fg); margin: 0; inline-size: 1rem; block-size: 1rem; }
.ds .ds-choice:has(:disabled) { color: var(--ds-muted); }
.ds .ds-fieldset { min-inline-size: 0; margin: 0; padding: var(--ds-3); border: 1px solid var(--ds-line); border-radius: var(--ds-radius); }


.ds .ds-card, .ds .ds-alert {
  min-inline-size: 0;
  padding: var(--ds-4);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-bg);
}
.ds .ds-alert { border-inline-start: 3px solid var(--ds-control-line); }
.ds .ds-badge {
  display: inline-block;
  padding: var(--ds-1) var(--ds-2);
  border-radius: var(--ds-radius);
  background: var(--ds-surface);
  color: var(--ds-fg);
  font-size: var(--ds-text-xs);
  font-weight: 600;
}
.ds .ds-avatar {
  display: inline-grid;
  place-items: center;
  inline-size: var(--ds-target);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ds-surface);
  font-size: var(--ds-text-sm);
  font-weight: 600;
}
.ds .ds-separator { border: 0; border-block-start: 1px solid var(--ds-line); margin: 0; }
.ds .ds-progress { inline-size: 100%; accent-color: var(--ds-fg); }
.ds .ds-table-wrap { overflow: auto; max-inline-size: 100%; }
.ds .ds-table { width: 100%; border-collapse: collapse; font-size: var(--ds-text-sm); }
.ds .ds-table :is(th, td) { padding: var(--ds-2) var(--ds-3); text-align: start; border-block-end: 1px solid var(--ds-line); }
.ds .ds-table thead { background: var(--ds-surface); }
.ds .ds-empty { border-style: dashed; text-align: center; justify-items: center; padding: var(--ds-8) var(--ds-4); }


.ds .ds-disclosure { border-block-end: 1px solid var(--ds-line); }
.ds .ds-disclosure > summary { min-block-size: var(--ds-target); padding: var(--ds-2); cursor: pointer; font-weight: 600; }
.ds .ds-disclosure[open] > summary { background: var(--ds-surface); }
.ds .ds-disclosure > div { padding: var(--ds-3) var(--ds-2); }
.ds .ds-dialog {
  inline-size: min(28rem, calc(100% - var(--ds-8)));
  max-block-size: calc(100% - var(--ds-8));
  overflow: auto;
  padding: var(--ds-6);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-bg);
  color: var(--ds-fg);
  box-shadow: var(--ds-shadow);
}
.ds .ds-dialog::backdrop { background: var(--ds-overlay); }
.ds .ds-dialog:not([open]), .ds [popover]:not(:popover-open) { display: none; }
.ds .ds-popover {
  position: fixed;
  inset: auto var(--ds-4) var(--ds-4) auto;
  margin: 0;
  max-inline-size: min(22rem, calc(100% - var(--ds-8)));
  color: var(--ds-fg);
  box-shadow: var(--ds-shadow);
}
.ds:has(.ds-dialog[open]) { overscroll-behavior: contain; }

