.te98-dialog {
  --te98-ink: #203536;
  --te98-muted: #526769;
  --te98-line: #d5dfe0;
  color: var(--te98-ink);
  background: #fff;
  border: 1px solid #9bb6b5;
  border-radius: 6px;
  padding: 0;
  width: min(600px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  font: 13px/1.45 Arial, sans-serif;
  letter-spacing: 0;
  overscroll-behavior: contain;
}
.te98-dialog::backdrop { background: rgb(13 39 39 / 38%); }
.te98-dialog *, .te98-dialog *::before, .te98-dialog *::after { box-sizing: border-box; letter-spacing: 0; }
.te98-dialog [hidden] { display: none !important; }
.te98-dialog h2, .te98-dialog h3, .te98-dialog p { margin: 0; color: inherit; }
.te98-dialog h2 { font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.te98-dialog h3 { font-size: 13px; margin: 12px 0 6px; }
.te98-header { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--te98-line); background: #f4f7f7; }
.te98-content { padding: 12px 16px; min-width: 0; }
.te98-dialog .te98-limits, .te98-dialog .te98-empty { color: var(--te98-muted); }
.te98-dialog .te98-status { margin-top: 8px; min-height: 19px; }
.te98-dialog .te98-error { margin-top: 8px; padding: 8px; color: #8d2430; border-left: 3px solid #a72f38; background: #fff1f2; overflow-wrap: anywhere; }
.te98-list { list-style: none; margin: 0; padding: 0; }
.te98-row { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 6px 0; border-bottom: 1px solid var(--te98-line); }
.te98-info { flex: 1 1 auto; min-width: 0; }
.te98-name { display: block; font-weight: 600; overflow-wrap: anywhere; white-space: pre-wrap; }
.te98-meta { display: block; margin-top: 2px; color: var(--te98-muted); font-size: 12px; overflow-wrap: anywhere; }
.te98-actions { display: flex; flex: 0 0 auto; gap: 4px; }
.te98-tool { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 44px; width: 44px; height: 44px; padding: 8px; margin: 0; border: 1px solid var(--te98-line); border-radius: 3px; background: #fff; color: var(--te98-ink); font: inherit; text-decoration: none; cursor: pointer; box-shadow: none; transform: none; }
.te98-command { width: auto; flex-basis: auto; padding-inline: 12px; background: var(--brand-primary, #087a78); color: #fff; border-color: #087a78; }
.te98-tool:hover:not(:disabled) { background: #edf7f5; border-color: #82ada9; color: #203536; }
.te98-tool:disabled { cursor: default; opacity: .58; }
.te98-icon, .te98-icon svg { display: block; width: 16px; height: 16px; flex: 0 0 16px; pointer-events: none; }
.te98-icon svg { stroke-width: 1.75; }
.te98-dialog :is(button, a, input):focus-visible { outline: 2px solid #126a9a; outline-offset: 2px; }
.te98-picker { display: grid; gap: 6px; margin-top: 16px; min-width: 0; }
.te98-picker input { width: 100%; min-width: 0; min-height: 44px; padding: 4px; border: 1px solid #aebfc1; border-radius: 3px; background: #fff; color: inherit; font: inherit; }
.te98-picker input::file-selector-button { min-height: 34px; max-width: 100%; margin-right: 8px; padding: 4px 8px; font: inherit; border: 1px solid var(--te98-line); border-radius: 3px; background: #f4f7f7; color: #203536; cursor: pointer; }
.te98-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--te98-line); }
.te98-footer > :first-child { margin-right: auto; }
@media (max-width: 400px) {
  .te98-content { padding: 10px; }
  .te98-header { padding: 8px 10px; }
  .te98-dialog h2 { font-size: 16px; }
  .te98-row { gap: 6px; }
  .te98-footer { padding: 10px; }
}
