.atlas-tools {
  --at-bg: #0c0e14;
  --at-panel: #141720;
  --at-elevated: #1b1f2c;
  --at-border: #2b3040;
  --at-text: #eff0f7;
  --at-muted: #a0a5b8;
  --at-accent: #ad94ff;
  --at-mint: #9ee3ca;
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  max-height: min(92dvh, 1100px);
  padding: 0;
  margin: auto;
  overflow: auto;
  border: 1px solid var(--at-border);
  border-radius: 24px;
  background: var(--at-bg);
  color: var(--at-text);
  box-shadow: 0 32px 120px #0009;
  font-family: inherit;
  color-scheme: dark;
}
.atlas-tools::backdrop { background: #04060dc9; backdrop-filter: blur(7px); }
.atlas-tools *, .atlas-tools *::before, .atlas-tools *::after { box-sizing: border-box; }
.atlas-tools [hidden] { display: none !important; }
.atlas-tools button, .atlas-tools input, .atlas-tools select { font: inherit; }
.atlas-tools button { cursor: pointer; }
.atlas-tools button:disabled { cursor: default; opacity: .5; }
.atlas-tools button:focus-visible, .atlas-tools input:focus-visible, .atlas-tools select:focus-visible, .atlas-tools summary:focus-visible { outline: 2px solid var(--at-mint); outline-offset: 4px; }
.atlas-tools h2, .atlas-tools h3, .atlas-tools p, .atlas-tools dl { margin: 0; }
.atlas-tools p { line-height: 1.65; }
.atlas-tools .at-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 32px 32px 24px; background: radial-gradient(ellipse at 80% 0, #ad94ff12, transparent 75%); }
.atlas-tools .at-eyebrow { color: var(--at-accent); font-size: 10px; letter-spacing: .15em; font-weight: 750; margin-bottom: 10px; }
.atlas-tools .at-header h2 { max-width: 800px; font-size: clamp(24px, 3.5vw, 35px); line-height: 1.2; font-weight: 650; letter-spacing: -.035em; }
.atlas-tools .at-intro { color: var(--at-muted); font-size: 13px; margin-top: 11px; }
.atlas-tools .at-close, .atlas-tools .at-remove { flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--at-border); border-radius: 50%; background: transparent; color: var(--at-muted); width: 36px; height: 36px; line-height: 1; font-size: 23px; }
.atlas-tools .at-close:hover, .atlas-tools .at-remove:hover { color: var(--at-text); background: var(--at-elevated); }
.atlas-tools .at-tabs { display: flex; gap: 6px; padding: 0 32px; border-bottom: 1px solid var(--at-border); }
.atlas-tools .at-tabs button { background: transparent; color: var(--at-muted); border: 0; border-bottom: 2px solid transparent; padding: 15px 16px; font-size: 13px; font-weight: 650; }
.atlas-tools .at-tabs button[aria-selected="true"] { color: var(--at-mint); border-bottom-color: var(--at-mint); }
.atlas-tools .at-tabs button span { display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 5px; background: #9ee3ca12; color: var(--at-mint); font-size: 10px; }
.atlas-tools .at-panel { padding: 26px 32px 32px; }
.atlas-tools .at-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.atlas-tools h3 { font-size: 16px; line-height: 1.4; letter-spacing: -.015em; font-weight: 650; }
.atlas-tools .at-section-heading p, .atlas-tools .at-check-heading p { font-size: 12px; color: var(--at-muted); margin-top: 4px; }
.atlas-tools .at-text-button { background: transparent; color: var(--at-muted); border: none; font-size: 11px; padding: 8px 0 8px 8px; white-space: nowrap; }
.atlas-tools .at-text-button:hover { color: var(--at-text); }
.atlas-tools label { display: grid; gap: 7px; font-size: 11px; font-weight: 600; color: var(--at-muted); }
.atlas-tools input:not([type="file"]), .atlas-tools select { min-width: 0; width: 100%; height: 43px; border: 1px solid var(--at-border); border-radius: 9px; color: var(--at-text); background: var(--at-panel); padding: 0 12px; font-size: 12px; }
.atlas-tools input::placeholder { color: #747c92; }
.atlas-tools .at-search-fields { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; }
.atlas-tools .at-small { color: var(--at-muted); font-size: 11px; }
.atlas-tools #atlas-search-status { margin: 9px 0; min-height: 18px; }
.atlas-tools .at-search-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; gap: 8px; margin: 0 0 24px; }
.atlas-tools .at-search-results li { min-width: 0; }
.atlas-tools .at-result { width: 100%; height: 66px; border: 1px solid var(--at-border); border-radius: 10px; background: var(--at-panel); color: var(--at-text); padding: 10px; display: flex; align-items: center; gap: 10px; text-align: left; }
.atlas-tools .at-result:not(:disabled):hover { border-color: #ad94ff70; background: #1a1b2a; }
.atlas-tools .at-result-letter { display: grid; place-items: center; width: 33px; height: 33px; flex-shrink: 0; border-radius: 9px; color: var(--at-accent); font-size: 15px; background: #ad94ff12; }
.atlas-tools .at-result-title { min-width: 0; flex: 1; }
.atlas-tools .at-result-title strong, .atlas-tools .at-result-title small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.atlas-tools .at-result-title strong { font-size: 11px; font-weight: 650; }
.atlas-tools .at-result-title small { color: var(--at-muted); font-size: 10px; margin-top: 4px; }
.atlas-tools .at-add-label { color: var(--at-mint); font-size: 10px; white-space: nowrap; }
.atlas-tools .at-empty-search { grid-column: 1 / -1; padding: 16px; font-size: 12px; color: var(--at-muted); background: var(--at-panel); border-radius: 10px; }
.atlas-tools .at-check-form { background: #161921; border: 1px solid var(--at-border); border-radius: 14px; padding: 19px; }
.atlas-tools .at-check-heading { display: flex; gap: 11px; align-items: flex-start; }
.atlas-tools .at-step { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border: 1px solid #ad94ff30; color: var(--at-accent); border-radius: 8px; font-size: 10px; font-weight: 650; }
.atlas-tools .at-check-fields { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; margin: 17px 0 11px; }
.atlas-tools .at-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 15px; border: 1px solid var(--at-border); border-radius: 9px; color: var(--at-text); background: var(--at-elevated); font-size: 11px; font-weight: 650; line-height: 1.4; text-align: center; }
.atlas-tools .at-button:not(:disabled):hover { background: #242a3b; border-color: #46506a; }
.atlas-tools .at-primary { background: var(--at-mint); color: #10261f; border-color: var(--at-mint); }
.atlas-tools .at-primary:not(:disabled):hover { background: #b9f0dc; border-color: #b9f0dc; }
.atlas-tools .at-status { color: var(--at-mint); font-size: 12px; margin: 14px 0; }
.atlas-tools .at-status:empty { margin: 18px 0; }
.atlas-tools .at-compare-grid { display: grid; grid-template-columns: repeat(var(--at-columns, 3), minmax(0, 1fr)); gap: 12px; }
.atlas-tools .at-project-card { display: flex; flex-direction: column; min-width: 0; background: var(--at-panel); border: 1px solid var(--at-border); border-radius: 14px; padding: 18px; }
.atlas-tools .at-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.atlas-tools .at-type { color: var(--at-accent); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; }
.atlas-tools .at-remove { width: 25px; height: 25px; font-size: 18px; border-color: transparent; }
.atlas-tools .at-project-card h3 button { border: none; padding: 0; background: transparent; color: var(--at-text); text-align: left; font-size: 18px; line-height: 1.35; font-weight: 650; overflow-wrap: anywhere; }
.atlas-tools .at-project-card h3 button:hover { color: var(--at-accent); }
.atlas-tools .at-author { color: var(--at-muted); font-size: 10px; margin: 5px 0 12px; }
.atlas-tools .at-card-description { color: #c4c8d7; font-size: 12px; min-height: 78px; margin-bottom: 18px; overflow-wrap: anywhere; }
.atlas-tools .at-facts { display: grid; gap: 0; margin-top: auto; }
.atlas-tools .at-facts > div { border-top: 1px solid var(--at-border); padding: 11px 0; }
.atlas-tools .at-facts dt { color: var(--at-muted); font-size: 10px; margin-bottom: 5px; }
.atlas-tools .at-facts dd { margin: 0; color: var(--at-text); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.atlas-tools .at-facts summary { cursor: pointer; color: var(--at-mint); }
.atlas-tools .at-version-list { max-height: 130px; overflow: auto; margin-top: 9px; font-size: 10px; color: var(--at-muted); }
.atlas-tools .at-file-state { display: flex; align-items: flex-start; gap: 8px; border-radius: 9px; background: #090c124d; padding: 12px; min-height: 108px; margin: 8px 0 14px; }
.atlas-tools .at-dot { width: 6px; height: 6px; border-radius: 50%; background: #697087; flex-shrink: 0; margin-top: 6px; }
.atlas-tools .at-file-state strong { font-size: 11px; font-weight: 650; }
.atlas-tools .at-file-state p { color: var(--at-muted); font-size: 10px; margin-top: 5px; overflow-wrap: anywhere; }
.atlas-tools .at-match .at-dot { background: var(--at-mint); }
.atlas-tools .at-match strong { color: var(--at-mint); }
.atlas-tools .at-no-match .at-dot { background: #edc092; }
.atlas-tools .at-no-match strong { color: #edc092; }
.atlas-tools .at-error .at-dot { background: #f39ca9; }
.atlas-tools .at-error strong { color: #f39ca9; }
.atlas-tools .at-loading .at-dot { background: var(--at-accent); animation: at-pulse 1s ease-in-out infinite alternate; }
.atlas-tools .at-open-files { width: 100%; margin-top: auto; justify-content: space-between; }
.atlas-tools .at-empty { grid-column: 1 / -1; display: grid; justify-items: center; padding: 35px 20px; text-align: center; background: var(--at-panel); border: 1px dashed var(--at-border); border-radius: 14px; }
.atlas-tools .at-empty-symbol { color: var(--at-accent); font-size: 24px; margin-bottom: 13px; }
.atlas-tools .at-empty p { max-width: 400px; color: var(--at-muted); font-size: 12px; margin-top: 8px; }
.atlas-tools .at-source-note { font-size: 10px; color: var(--at-muted); margin-top: 13px; }
.atlas-tools .at-bottom-actions { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--at-border); }
.atlas-tools .at-collection-hero { display: flex; align-items: flex-start; gap: 22px; padding: 8px 0 27px; }
.atlas-tools .at-collection-mark { display: grid; place-items: center; flex-shrink: 0; width: 63px; height: 63px; border: 1px solid #ad94ff30; border-radius: 18px; color: var(--at-accent); background: #ad94ff10; font-size: 32px; }
.atlas-tools .at-collection-hero h3 { font-size: 23px; }
.atlas-tools .at-collection-hero p:not(.at-eyebrow) { color: var(--at-muted); font-size: 12px; margin-top: 9px; max-width: 600px; }
.atlas-tools .at-collection-hero p.at-saved-count { color: var(--at-mint); font-size: 11px; }
.atlas-tools .at-backup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.atlas-tools .at-backup-grid article { display: flex; flex-direction: column; align-items: flex-start; padding: 23px; background: var(--at-panel); border: 1px solid var(--at-border); border-radius: 14px; }
.atlas-tools .at-backup-grid h3 { margin-top: 14px; }
.atlas-tools .at-backup-grid p { margin: 10px 0 22px; font-size: 12px; color: var(--at-muted); }
.atlas-tools .at-backup-grid .at-button { margin-top: auto; }
.atlas-tools .at-checklist-box { display: flex; gap: 25px; align-items: center; justify-content: space-between; border-top: 1px solid var(--at-border); padding-top: 25px; margin-top: 20px; }
.atlas-tools .at-checklist-box p { color: var(--at-muted); font-size: 12px; max-width: 570px; margin-top: 7px; }
.atlas-tools .at-checklist-box .at-button { flex-shrink: 0; }
@keyframes at-pulse { to { opacity: .25; } }
@media (max-width: 800px) {
  .atlas-tools .at-search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-tools .at-compare-grid { grid-template-columns: 1fr; }
  .atlas-tools .at-card-description { min-height: 0; }
  .atlas-tools .at-file-state { min-height: 0; }
  .atlas-tools .at-facts { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .atlas-tools .at-check-fields { grid-template-columns: 1fr 1fr; }
  .atlas-tools #atlas-run-check { grid-column: 1 / -1; }
  .atlas-tools .at-checklist-box { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 520px) {
  .atlas-tools { width: calc(100vw - 16px); max-height: 95dvh; border-radius: 17px; }
  .atlas-tools .at-header { padding: 23px 18px 18px; gap: 10px; }
  .atlas-tools .at-header h2 { font-size: 25px; }
  .atlas-tools .at-panel { padding: 20px 18px 24px; }
  .atlas-tools .at-tabs { padding: 0 10px; gap: 0; }
  .atlas-tools .at-tabs button { font-size: 11px; padding: 14px 9px; }
  .atlas-tools .at-tabs button span { margin-left: 4px; }
  .atlas-tools .at-section-heading { align-items: flex-start; }
  .atlas-tools .at-search-fields { grid-template-columns: 1fr; }
  .atlas-tools .at-search-results { grid-template-columns: 1fr; }
  .atlas-tools .at-check-form { padding: 15px; }
  .atlas-tools .at-check-fields { grid-template-columns: 1fr; }
  .atlas-tools .at-bottom-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .atlas-tools .at-collection-hero { gap: 14px; }
  .atlas-tools .at-collection-mark { width: 43px; height: 43px; border-radius: 13px; font-size: 24px; }
  .atlas-tools .at-collection-hero h3 { font-size: 20px; }
  .atlas-tools .at-backup-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .atlas-tools .at-loading .at-dot { animation: none; } }
