@media screen {
  :host {
    display: contents;
    font: 14px var(--da-ui, sans-serif);
    color: var(--da-text);
  }
  :host *,
  :host *::before,
  :host *::after {
    box-sizing: border-box;
  }
  :host [hidden] {
    display: none !important;
  }
  :host button {
    font: inherit;
    color: var(--da-text);
    cursor: pointer;
    border: 1px solid var(--da-line);
    border-radius: 6px;
    background: var(--da-panel);
    padding: 5px 9px;
    font-size: 12px;
    min-height: 30px;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  :host button:hover:not(:disabled) {
    background: var(--da-soft);
  }
  :host button:active:not(:disabled) {
    background: var(--da-soft);
    border-color: var(--da-primary);
  }
  :host button:disabled {
    cursor: default;
    opacity: 0.55;
  }
  :host button:focus-visible {
    outline: 2px solid var(--da-focus);
    outline-offset: 2px;
  }
  :host .da-ai-tools {
    position: fixed;
    z-index: var(--da-layer-popover);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    width: max-content;
    max-width: min(420px, calc(100vw - 12px));
    padding: 4px;
    background: var(--da-panel);
    border: 1px solid var(--da-line);
    border-radius: 8px;
    box-shadow: var(--da-shadow);
  }
  :host .da-ai-status {
    max-width: 280px;
    font-size: 12px;
    line-height: 1.45;
    padding: 2px 4px;
    color: var(--da-muted);
    overflow-wrap: anywhere;
  }
  :host .da-ai-status:empty {
    display: none;
  }
  :host .da-ai-status[data-tone="error"] {
    color: var(--da-danger);
  }
  :host .da-ai-keep {
    background: var(--da-primary);
    color: var(--da-on-primary);
    border-color: var(--da-primary);
  }
  :host .da-ai-keep:hover:not(:disabled) {
    background: var(--da-primary-hover);
  }
  @media (max-width: 600px) {
    :host .da-ai-tools {
      max-width: calc(100vw - 12px);
    }
    :host .da-ai-tools button {
      min-height: 36px;
    }
    :host .da-ai-status {
      max-width: min(280px, calc(100vw - 30px));
    }
  }
  @media (prefers-reduced-motion: reduce) {
    :host * {
      scroll-behavior: auto !important;
    }
  }
  @media (forced-colors: active) {
    :host .da-ai-tools,
    :host button {
      border-color: ButtonText;
    }
  }
}
@media print {
  :host {
    display: none !important;
  }
}
