@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --strata-font: "Inter", system-ui, sans-serif;
  font-family: var(--strata-font);
  --strata-canvas: #fff;
  --strata-ink: #232522;
  --strata-focus-width: 2px;
  --strata-focus-offset: 3px;
  --strata-focus-space: calc(var(--strata-focus-width) + var(--strata-focus-offset));
  --strata-muted: #666;
  --strata-border: rgb(0 0 0 / 15%);
  --strata-fill: #f5f6f4;
  --strata-button-fill: var(--strata-fill);
  --strata-button-text: var(--strata-ink);
  --strata-input-fill: var(--strata-canvas);
  --strata-input-border: 1px solid var(--strata-border);
  --strata-selected: #f2f2f2;
  --strata-hover: #f1f3ef;
  --strata-lime: rgb(102 255 24 / 9%);
  --strata-orange: rgb(255 118 20 / 11%);

  --strata-accent-red: #d81b21;
  --strata-accent-peach: #f18a5d;
  --strata-accent-yellow: #f5c519;
  --strata-accent-blue: #2463eb;
  --strata-accent-mint: #6ed5c6;
  --strata-accent-charcoal: #242426;
  --strata-accent-red-orange: #d43f1d;
  --strata-accent-cool-gray: #d8dde3;
  --strata-accent-primary: var(--strata-accent-mint);

  --strata-text-small: .6875rem;
  --strata-text-body: .75rem;
  --strata-text-section: .8125rem;
  --strata-text-title: 1rem;
  --strata-section-gap: clamp(40px, 6vw, 72px);
}

:where(strong, b, h1, h2, h3, th) { font-weight: 500; }

.ui-page-title {
  margin: 0 0 36px;
  font-size: clamp(22px, 1.8vw, 27px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.ui-section-title {
  margin: 0 0 12px;
  font-size: var(--strata-text-section);
  font-weight: 500;
  line-height: 1.3;
}

.ui-section-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--strata-section-gap);
}

.ui-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ui-list > li { padding: 16px 0; }


.ui-label {
  display: inline-block;
  border-radius: 0;
  background: var(--label-fill, var(--strata-fill));
  color: var(--strata-ink);
  padding: 2px 8px;
  font-size: var(--strata-text-small);
  font-weight: 400;
}

:where(a[href], button:enabled, summary, select:enabled, input:is([type="radio"], [type="checkbox"]):enabled,
  label:has(input:is([type="radio"], [type="checkbox"]):enabled)) { cursor: pointer; }
:where(button:disabled, select:disabled, input:disabled) { cursor: not-allowed; }

:where(button, input, select, textarea) { border-radius: 0; }

:focus-visible {
  outline: var(--strata-focus-width) solid var(--strata-ink);
  outline-offset: var(--strata-focus-offset);
}

.ui-select {
  position: relative;
  display: inline-grid;
  align-items: center;
  min-width: 0;
}
.ui-select > select {
  appearance: none;
  width: 100%;
  /* Every page-level padding shorthand must leave the inset glyph clear. */
  padding-inline-end: 2.25rem !important;
}
.ui-select-arrow {
  position: absolute;
  inset-inline-end: 12px;
  pointer-events: none;
  color: currentColor;
  font: inherit;
}

.ui-select:has(> select:disabled) .ui-select-arrow { opacity: .5; }

.project-picker {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.project-picker-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-picker [hidden] { display: none !important; }
.project-picker-create {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
}
.project-picker-create:hover { text-decoration: underline; }
.project-picker-toggle {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  justify-items: center;
}
.project-picker-toggle .project-switcher {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  overflow: clip;
  opacity: 0;
}
.project-picker-toggle .ui-select-arrow { position: static; }
.project-picker-toggle:hover { background: var(--strata-hover); }
.project-picker-toggle:has(select:focus-visible) {
  outline: 1px solid var(--strata-ink);
  outline-offset: 1px;
}

/* Keep the native select's keyboard behavior and anchor its open list to the row. */
@supports (appearance: base-select) and (width: anchor-size(width)) {
  .project-picker {
    anchor-name: --project-row;
    anchor-scope: --project-row;
  }
  .project-picker-toggle > .project-switcher,
  .project-switcher::picker(select) { appearance: base-select; }

  .project-switcher::picker(select) {
    position-anchor: --project-row;
    position-area: none;
    inset: auto;
    top: anchor(bottom);
    left: anchor(left);
    box-sizing: border-box;
    width: max(anchor-size(width), 9rem);
    max-height: min(50vh, 22rem);
    margin: 2px 0;
    padding: 3px;
    overflow-y: auto;
    border: var(--strata-input-border);
    border-radius: 0;
    background: var(--strata-canvas);
    color: var(--strata-ink);
    font: var(--strata-text-body)/1.4 var(--strata-font);
  }
  .project-switcher option {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-block-size: 28px;
    padding: 4px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .project-switcher option + option { margin-block-start: 2px; }
  .project-switcher option::checkmark { display: none; }
  .project-switcher option:checked { background: var(--strata-selected); font-weight: 500; }
  .project-switcher option:hover,
  .project-switcher option:focus-visible { background: var(--strata-hover); }
}
