* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
:is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--dt-accent-text);
  outline-offset: 3px;
}
.library-results:focus-visible {
  outline: 2px solid var(--dt-accent-text);
  outline-offset: -2px;
}
button svg,
a svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 24px;
}
h2 {
  font-size: 16px;
}
h3 {
  font-size: 14px;
}
small {
  font-size: 12px;
}
a {
  color: inherit;
}
input,
select,
textarea {
  color: var(--dt-text);
}
input:not([type='checkbox']):not([type='radio']):not([type='range']),
select,
textarea {
  min-height: var(--dt-control-height);
  width: 100%;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-control-radius);
  background: var(--dt-panel);
  font-size: 13px;
}
textarea {
  resize: vertical;
}
input:is([type='checkbox'], [type='radio']) {
  accent-color: var(--dt-primary);
}
input[type='file']::file-selector-button {
  margin-right: 8px;
  padding: 5px 8px;
  border: 0;
  border-radius: 4px;
  background: var(--dt-primary-soft);
  color: var(--dt-accent-text);
  font: inherit;
}
label {
  font-size: 12px;
  font-weight: 500;
}
.skip-link {
  position: absolute;
  transform: translateY(-300%);
  background: var(--dt-panel);
  padding: 8px;
}
.skip-link:focus {
  transform: none;
  z-index: 2000;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* One action scale and explicit semantic states across every workspace. */
.button,
.icon-button {
  min-height: var(--dt-control-height);
  border-radius: var(--dt-control-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}
.button {
  padding: 8px 11px;
  border: 1px solid var(--dt-border);
  background: var(--dt-panel);
  text-decoration: none;
}
.icon-button {
  width: var(--dt-control-height);
  padding: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dt-muted);
  flex-shrink: 0;
}
.icon-button:hover:not(:disabled),
.ghost:hover:not(:disabled) {
  background: var(--dt-surface);
  color: var(--dt-accent-text);
}
.primary {
  color: white;
  background: var(--dt-accent-text);
  border-color: var(--dt-accent-text);
}
.primary:hover:not(:disabled) {
  background: #255e30;
  border-color: #255e30;
}
.ghost {
  color: var(--dt-accent-text);
  background: var(--dt-panel);
}
.danger {
  color: var(--dt-danger);
  border-color: var(--dt-danger-border);
}
.danger:hover:not(:disabled) {
  background: var(--dt-danger-soft);
}
.panel-action {
  border-color: var(--dt-border);
  color: var(--dt-accent-text);
  background: var(--dt-panel);
}
.panel-action[aria-expanded='true'],
.panel-action[data-active='true'] {
  border-color: var(--dt-primary);
  background: var(--dt-primary-soft);
}
.panel-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.text-button {
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--dt-accent-text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
}
.notice {
  flex-shrink: 0;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-control-radius);
  background: var(--dt-surface);
  color: var(--dt-text);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.notice.error {
  border-color: var(--dt-danger-border);
  background: var(--dt-danger-soft);
  color: var(--dt-danger);
}
.notice.success {
  border-color: #bbd9bf;
  background: var(--dt-primary-soft);
  color: var(--dt-accent-text);
}
@media (pointer: coarse) {
  .button,
  .icon-button {
    min-height: 44px;
  }
  .icon-button {
    min-width: 44px;
  }
}
