/* AgentTidy interactive demo: a copy of the Mac app's window, drawn at the app's own width
   (1182 points; a slightly shorter window than the default 758) and scaled to fit. Colors are the macOS system colors. */

.atd-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1182 / 620;
  overflow: hidden;
  border-radius: 12px;
}

.atd {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  position: absolute;
  top: 0;
  left: 0;
  width: 1182px;
  height: 620px;
  transform-origin: 0 0;
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.25;
  letter-spacing: -0.003em;
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  text-align: left;

  --blue: #0A84FF; --purple: #BF5AF2; --pink: #FF375F; --teal: #40C8E0; --orange: #FF9F0A;
  --indigo: #5E5CE6; --mint: #63E6E2; --cyan: #64D2FF; --green: #30D158; --red: #FF453A; --gray: #98989D;
  --accent: var(--blue);
  --t1: rgba(255, 255, 255, 0.86);
  --t2: rgba(255, 255, 255, 0.55);
  --t3: rgba(255, 255, 255, 0.28);
  --main: #15171C;
  --side: #1B1E24;
  --toolbar: #181B21;
  --sep: rgba(255, 255, 255, 0.09);
  --fill: rgba(255, 255, 255, 0.05);
  --fill2: rgba(255, 255, 255, 0.09);
  --control: rgba(255, 255, 255, 0.10);
  --sheet: #20232A;
  --shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

:root[data-theme="light"] .atd {
  --blue: #007AFF; --purple: #AF52DE; --pink: #FF2D55; --teal: #30B0C7; --orange: #FF9500;
  --indigo: #5856D6; --mint: #00C7BE; --cyan: #32ADE6; --green: #34C759; --red: #FF3B30; --gray: #8E8E93;
  --t1: rgba(0, 0, 0, 0.85);
  --t2: rgba(0, 0, 0, 0.5);
  --t3: rgba(0, 0, 0, 0.25);
  --main: #FFFFFF;
  --side: #E8E6E8;
  --toolbar: #F6F5F6;
  --sep: rgba(0, 0, 0, 0.09);
  --fill: rgba(0, 0, 0, 0.035);
  --fill2: rgba(0, 0, 0, 0.06);
  --control: rgba(0, 0, 0, 0.06);
  --sheet: #F2F1F2;
  --shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25);
}

:where(.atd) * { box-sizing: border-box; }
:where(.atd button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: default; text-align: inherit; }
.atd button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 6px; }

.atd .sym {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: var(--s) center / contain no-repeat;
  mask: var(--s) center / contain no-repeat;
}

.atd .c-blue { color: var(--blue); } .atd .c-purple { color: var(--purple); } .atd .c-pink { color: var(--pink); }
.atd .c-teal { color: var(--teal); } .atd .c-orange { color: var(--orange); } .atd .c-indigo { color: var(--indigo); }
.atd .c-mint { color: var(--mint); } .atd .c-cyan { color: var(--cyan); } .atd .c-green { color: var(--green); }
.atd .c-red { color: var(--red); } .atd .c-gray { color: var(--gray); } .atd .c-accent { color: var(--accent); }
.atd .c-2 { color: var(--t2); }

/* Window */
.atd-win {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  border-radius: 12px;
  background: var(--main);
  box-shadow: var(--shadow);
}

/* Sidebar */
.atd-side {
  width: 270px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--side);
  border-right: 1px solid var(--sep);
}
.atd-side-top { height: 52px; display: flex; align-items: center; padding: 0 12px 0 18px; }
.atd-lights { display: flex; gap: 8px; }
.atd-lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,.15); }
.atd-lights i:nth-child(2) { background: #FEBC2E; }
.atd-lights i:nth-child(3) { background: #28C840; }
.atd-side-toggle { margin-left: auto; width: 38px; height: 34px; border-radius: 17px; display: grid; place-items: center; background: var(--control); color: var(--t2); font-size: 17px; }
.atd-side-list { flex: 1; overflow: hidden; padding: 0 10px; }
.atd-side-h { font-size: 11px; font-weight: 600; color: var(--t2); padding: 14px 4px 5px; }
.atd-side-h:first-child { padding-top: 6px; }
.atd-srow {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 8px 0 20px;
  border-radius: 7px; font-size: 13.5px; color: var(--t1); position: relative;
}
.atd-srow { padding-left: 14px; }
.atd-srow .sym.ic { font-size: 17px; color: var(--accent); width: 21px; }
.atd-srow .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atd-srow .disc { position: absolute; left: 1px; font-size: 9px; color: var(--t2); }
.atd-srow .val { font-size: 12.5px; color: var(--t2); font-variant-numeric: tabular-nums; }
.atd-srow:hover { background: var(--fill); }
.atd-srow.on { background: var(--accent); color: #fff; }
.atd-srow.on .sym.ic, .atd-srow.on .val, .atd-srow.on .disc { color: #fff; }
.atd-badge { font-size: 11.5px; font-weight: 600; padding: 2px 6px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.atd-srow.on .atd-badge { background: rgba(255,255,255,.25) !important; color: #fff !important; }
.atd-free { font-size: 12.5px; font-weight: 600; color: var(--orange); display: flex; align-items: center; gap: 4px; }
.atd-free .sym { font-size: 11px; }
.atd-srow.on .atd-free { color: #fff; }
.atd-side-foot { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; border-top: 1px solid var(--sep); font-size: 12.5px; font-weight: 500; }
.atd-side-foot .ok { color: var(--green); font-size: 15px; }
.atd-side-foot .sp { flex: 1; }
.atd-side-foot .ib { width: 28px; height: 28px; display: grid; place-items: center; color: var(--t2); font-size: 15px; border-radius: 6px; }

/* Main column */
.atd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.atd-toolbar { height: 52px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 10px 0 20px; background: var(--toolbar); border-bottom: 1px solid var(--sep); }
.atd-title { flex: 1; min-width: 0; }
.atd-title b { display: block; font-size: 14px; font-weight: 700; }
.atd-title span { display: block; font-size: 11px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.atd-tools { display: flex; align-items: center; height: 36px; padding: 0 6px; border-radius: 18px; background: var(--control); }
.atd-tools button { width: 38px; height: 30px; display: grid; place-items: center; font-size: 16px; color: var(--t2); border-radius: 15px; }
.atd-tools button:hover { background: var(--fill2); }
.atd-search { width: 324px; height: 36px; border-radius: 18px; background: var(--control); display: flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--t2); font-size: 13.5px; }
.atd-search .sym { font-size: 14px; }
.atd-search input { all: unset; flex: 1; min-width: 0; color: var(--t1); font: inherit; }
.atd-search input::placeholder { color: var(--t2); }

.atd-row { flex: 1; min-height: 0; display: flex; }
.atd-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.atd-page { flex: 1; min-height: 0; overflow: auto; scrollbar-width: none; }
.atd-page::-webkit-scrollbar { display: none; }

/* Storage bar */
.atd-storage { flex: none; padding: 11px 18px 12px; background: var(--fill); border-bottom: 1px solid var(--sep); }
.atd-storage-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; }
.atd-storage-head b { font-size: 12.5px; font-weight: 600; flex: 1; }
.atd-storage-head span { font-size: 11.5px; font-weight: 500; color: var(--t2); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 4px; }
.atd-storage-head .free { font-weight: 600; }
.atd-bar { display: flex; gap: 2px; height: 11px; border-radius: 5.5px; overflow: hidden; background: var(--fill2); }
.atd-bar i { border-radius: 4px; background: currentColor; min-width: 2px; }
.atd-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 9px; font-size: 11.5px; }
.atd-legend span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.atd-legend i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.atd-legend em { font-style: normal; color: var(--t2); }
.atd-legend b { font-weight: 500; color: var(--t1); font-variant-numeric: tabular-nums; }

/* Overview cards */
.atd-cards { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--sep); }
.atd-card { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px; background: var(--fill); }
.atd-card-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--t2); }
.atd-card-h i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--t1); background: var(--fill2); }
.atd-card-v { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.atd-card p { margin: 0; font-size: 11.5px; color: var(--t2); line-height: 1.3; }
.atd-card .grow { flex: 1; }
.atd-link { color: var(--accent); font-size: 13.5px; }
.atd-btn { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--control); box-shadow: 0 0.5px 0 rgba(0,0,0,.2); align-self: flex-start; white-space: nowrap; }
.atd-btn.green { background: var(--green); color: #fff; }
.atd-btn.blue { background: var(--accent); color: #fff; }
.atd-btn.red { background: var(--red); color: #fff; }
.atd-btn.big { height: 28px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.atd-btn[disabled] { opacity: 0.45; }

/* Filter strip */
.atd-filters { display: flex; align-items: center; gap: 7px; padding: 0 18px; height: 44px; border-bottom: 1px solid var(--sep); }
.atd-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 6px; background: var(--control); font-size: 12.5px; }
.atd-chip .sym { font-size: 12px; }
.atd-chip.on { background: var(--accent); color: #fff; }
.atd-vsep { width: 1px; height: 18px; background: var(--sep); margin: 0 4px; }
.atd-pop { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; height: 24px; padding: 0 8px 0 10px; border-radius: 6px; background: var(--control); font-size: 12.5px; }
.atd-pop .sym { font-size: 10px; color: var(--t2); }

/* Item list */
.atd-list { padding: 6px 18px 10px; }
.atd-item { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--sep); border-radius: 0; position: relative; }
.atd-item.ins { background: color-mix(in srgb, var(--accent) 9%, transparent); border-radius: 6px; }
.atd-check { width: 22px; height: 22px; display: grid; place-items: center; font-size: 19px; color: var(--t3); flex: none; }
.atd-check.on { color: var(--accent); }
.atd-check.lock { color: var(--orange); font-size: 14px; }
.atd-tile { width: 28px; height: 28px; flex: none; border-radius: 7px; display: grid; place-items: center; font-size: 14px; position: relative; }
.atd-tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0.12; }
.atd-item-t { flex: 1; min-width: 0; }
.atd-item-t .l1 { display: flex; align-items: center; gap: 7px; min-width: 0; }
.atd-item-t .l1 b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atd-tier { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.atd-tier::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.atd-item-t .l2 { font-size: 12.5px; color: var(--t2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atd-item.locked .l1 b, .atd-item.locked .atd-size { color: var(--t2); }
.atd-item.locked .l2 { color: var(--orange); }
.atd-hover { display: none; gap: 8px; color: var(--t2); font-size: 13.5px; }
.atd-item:hover .atd-hover, .atd-item.ins .atd-hover { display: flex; }
.atd-item.ins .atd-hover .i { color: var(--accent); }
.atd-size { min-width: 74px; text-align: right; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.atd-group-h { display: flex; align-items: center; gap: 8px; padding: 14px 4px 6px; font-size: 12.5px; font-weight: 600; }
.atd-group-h .sym { color: var(--accent); font-size: 14px; }
.atd-group-h em { font-style: normal; color: var(--t2); font-weight: 400; font-family: var(--mono); font-size: 11.5px; }
.atd-group-h .r { margin-left: auto; color: var(--t2); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Bottom bar */
.atd-bottom { height: 52px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-top: 1px solid var(--sep); background: var(--toolbar); font-size: 12.5px; color: var(--t2); }
.atd-bottom .sp { flex: 1; }
.atd-bottom b { color: var(--t1); font-weight: 500; }
.atd-bottom .amt { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Inspector */
.atd-insp { width: 310px; flex: none; border-left: 1px solid var(--sep); background: var(--main); display: flex; flex-direction: column; }
.atd-insp-h { height: 40px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 11.5px; font-weight: 600; color: var(--t2); letter-spacing: 0.02em; border-bottom: 1px solid var(--sep); }
.atd-insp-h button { font-size: 15px; color: var(--t2); }
.atd-insp-b { flex: 1; overflow: auto; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; }
.atd-insp-b::-webkit-scrollbar { display: none; }
.atd-insp-top { display: flex; gap: 12px; align-items: flex-start; }
.atd-insp-top .atd-tile { width: 40px; height: 40px; border-radius: 10px; font-size: 18px; }
.atd-insp-top b { display: block; font-size: 15px; font-weight: 600; }
.atd-insp-top div > span { display: block; font-size: 20px; font-weight: 600; color: var(--t2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.atd-hr { height: 1px; background: var(--sep); }
.atd-verdict { padding: 12px; border-radius: 10px; position: relative; }
.atd-verdict::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0.12; }
.atd-verdict .h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.atd-verdict .h .sym { font-size: 16px; }
.atd-verdict p { margin: 6px 0 0; font-size: 12.5px; color: var(--t1); line-height: 1.3; position: relative; }
.atd-gs h4 { margin: 0 0 4px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; color: var(--t2); }
.atd-gs p { margin: 0; font-size: 13.5px; line-height: 1.3; }
.atd-gs code { font-family: var(--mono); font-size: 12.5px; }
.atd-helplinks { display: flex; flex-direction: column; gap: 4px; }
.atd-helplinks a { display: flex; gap: 6px; align-items: flex-start; color: var(--accent); font-size: 12.5px; text-decoration: none; line-height: 1.3; }
.atd-helplinks a .sym { margin-top: 1px; font-size: 13px; }
.atd-helplinks a:hover { text-decoration: underline; }
.atd-dl { margin: -6px 0 0; display: grid; grid-template-columns: 112px 1fr; gap: 8px 10px; font-size: 12.5px; }
.atd-dl dt { color: var(--t2); }
.atd-dl dd { margin: 0; }
.atd-path { font-family: var(--mono); font-size: 11.5px; color: var(--t2); word-break: break-all; line-height: 1.35; }

/* Active & Protected */
.atd-sec-h { font-size: 12px; font-weight: 600; color: var(--t2); padding: 12px 22px 6px; border-bottom: 1px solid var(--sep); }
.atd-arow { display: flex; align-items: center; gap: 12px; padding: 9px 4px; margin: 0 18px; border-bottom: 1px solid var(--sep); }
.atd-arow .atd-tile { width: 26px; height: 26px; border-radius: 6px; font-size: 13px; }
.atd-arow .t { flex: 1; min-width: 0; }
.atd-arow .t .l1 { display: flex; align-items: center; gap: 6px; }
.atd-arow .t .l1 b { font-size: 15px; font-weight: 600; }
.atd-arow .t .l1 span { font-size: 11.5px; font-weight: 600; padding: 2px 6px; border-radius: 9px; background: var(--fill2); }
.atd-arow .t .l2 { font-size: 11.5px; color: var(--t2); margin-top: 3px; }
.atd-arow .st { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--t2); font-variant-numeric: tabular-nums; }
.atd-arow .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.atd-arow .st.locks { color: var(--t1); }

/* Recently Cleaned */
.atd-hsum { display: flex; align-items: center; gap: 22px; padding: 12px 20px; border-bottom: 1px solid var(--sep); }
.atd-stat { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.atd-stat b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.atd-stat span { font-size: 12.5px; color: var(--t2); }
.atd-seg { margin-left: auto; display: flex; width: 220px; height: 24px; border-radius: 6px; background: var(--control); padding: 2px; }
.atd-seg span { flex: 1; display: grid; place-items: center; font-size: 12.5px; border-radius: 5px; }
.atd-seg span.on { background: var(--accent); color: #fff; }
.atd-day { display: flex; justify-content: space-between; padding: 14px 4px 6px; font-size: 12.5px; font-weight: 600; color: var(--t2); border-bottom: 1px solid var(--sep); }
.atd-batch { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--sep); }
.atd-batch .dis { font-size: 9px; color: var(--t2); width: 8px; }
.atd-batch .atd-tile { width: 26px; height: 26px; border-radius: 6px; font-size: 13px; }
.atd-batch .t { flex: 1; min-width: 0; }
.atd-batch .t b { display: block; font-size: 13.5px; font-weight: 600; }
.atd-batch .t span { display: block; font-size: 12.5px; color: var(--t2); margin-top: 2px; }
.atd-batch .sz { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.atd-batch .stt { width: 110px; text-align: right; font-size: 11.5px; color: var(--t2); }
.atd-batch.child { padding-left: 24px; }
.atd-batch.child .t b { font-weight: 500; }

/* Disk Usage */
.atd-disk { padding: 18px 22px 24px; }
.atd-disk-stats { display: flex; align-items: baseline; gap: 20px; }
.atd-disk-stats .atd-stat b { font-size: 20px; }
.atd-disk-stats .atd-stat span { font-size: 13.5px; }
.atd-disk-stats .m { margin-left: auto; font-size: 11.5px; color: var(--t2); }
.atd-dbar { display: flex; gap: 2px; height: 14px; border-radius: 5px; overflow: hidden; margin-top: 12px; }
.atd-dbar i { border-radius: 3px; }
.atd-dlegend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; font-size: 11.5px; }
.atd-dlegend span { display: flex; align-items: center; gap: 6px; }
.atd-dlegend i { width: 10px; height: 10px; border-radius: 2px; }
.atd-dlegend em { font-style: normal; color: var(--t2); }
.atd-disk h3 { margin: 26px 0 8px; font-size: 15px; font-weight: 600; }
.atd-frow { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--sep); border-radius: 0; width: 100%; }
.atd-frow:hover { background: var(--fill); }
.atd-frow .chev { width: 12px; font-size: 9px; color: var(--t2); text-align: center; }
.atd-frow .nm { width: 260px; flex: none; font-family: var(--mono); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atd-frow .br { flex: 1; min-width: 30px; height: 6px; }
.atd-frow .br i { display: block; height: 6px; border-radius: 3px; background: var(--accent); }
.atd-pill { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 10px; color: var(--green); position: relative; white-space: nowrap; }
.atd-pill::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0.15; }
.atd-frow .fo { font-size: 13px; color: var(--t2); }
.atd-frow .sz { width: 90px; text-align: right; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.atd-fdet { padding: 10px 4px 10px 28px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--sep); }
.atd-fdet h5 { margin: 4px 0 0; display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; text-transform: uppercase; color: var(--t2); }
.atd-fdet h5 button { text-transform: none; color: var(--accent); font-size: 12.5px; font-weight: 400; }
.atd-fitem { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 3px 0; }
.atd-fitem .atd-check { font-size: 16px; width: 18px; height: 18px; }
.atd-fitem .vi { font-size: 13px; }
.atd-fitem .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atd-fitem .vt { font-size: 11.5px; color: var(--t2); white-space: nowrap; }
.atd-fitem .sp { flex: 1; }
.atd-fitem .sz { font-weight: 500; font-variant-numeric: tabular-nums; }
.atd-fitem .in { color: var(--t2); }
.atd-sub { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.atd-sub .nm { width: 220px; font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atd-sub .br { flex: 1; height: 5px; }
.atd-sub .br i { display: block; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 60%, transparent); }
.atd-sub .sz { font-variant-numeric: tabular-nums; }

/* Sheet and alert */
.atd-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25); display: flex; justify-content: center; align-items: flex-start; z-index: 5; }
.atd-sheet { width: 600px; margin-top: 52px; padding: 22px; border-radius: 0 0 12px 12px; background: var(--sheet); box-shadow: 0 18px 50px rgba(0,0,0,.35), 0 0 0 0.5px var(--sep); display: flex; flex-direction: column; gap: 14px; }
.atd-sheet-h { display: flex; gap: 12px; align-items: center; }
.atd-sheet-h .sym { font-size: 30px; color: var(--green); }
.atd-sheet-h b { display: block; font-size: 20px; font-weight: 600; }
.atd-sheet-h span { display: block; font-size: 12.5px; color: var(--t2); margin-top: 2px; }
.atd-notes { padding: 12px; border-radius: 8px; background: var(--fill2); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.atd-notes div { display: flex; gap: 8px; align-items: flex-start; color: var(--t2); line-height: 1.3; }
.atd-notes .sym { margin-top: 2px; }
.atd-notes .o { color: var(--orange); }
.atd-notes .r { color: var(--red); }
.atd-sheet-list { max-height: 260px; overflow: auto; border-radius: 6px; border: 1px solid var(--sep); background: var(--main); }
.atd-sl { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--sep); }
.atd-sl .t { flex: 1; min-width: 0; }
.atd-sl .t .l1 { display: flex; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 500; }
.atd-sl .t .l1 em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 1px 6px; border-radius: 9px; }
.atd-sl .t .l1 em.p { color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.atd-sl .t .l1 em.r { color: var(--orange); background: color-mix(in srgb, var(--orange) 18%, transparent); }
.atd-sl .t .l2 { font-family: var(--mono); font-size: 11.5px; color: var(--t2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atd-sl .r { text-align: right; }
.atd-sl .r b { display: block; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.atd-sl .r span { font-size: 11.5px; color: var(--t2); }
.atd-confirm { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 500; }
.atd-confirm .box { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--t3); display: grid; place-items: center; font-size: 10px; color: #fff; }
.atd-confirm .box.on { background: var(--accent); border-color: var(--accent); }
.atd-sheet-f { display: flex; justify-content: space-between; }
.atd-alert { width: 260px; margin-top: 200px; padding: 20px 16px 16px; border-radius: 12px; background: var(--sheet); box-shadow: 0 18px 50px rgba(0,0,0,.35), 0 0 0 0.5px var(--sep); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.atd-alert img { width: 56px; height: 56px; border-radius: 12px; }
.atd-alert b { font-size: 13.5px; font-weight: 700; }
.atd-alert p { margin: 0; font-size: 11.5px; line-height: 1.35; }
.atd-alert .atd-btn { align-self: stretch; justify-content: center; height: 26px; font-size: 13px; }

.atd-note { position: absolute; right: 14px; bottom: 62px; z-index: 6; font-size: 11.5px; padding: 6px 10px; border-radius: 8px; background: var(--sheet); color: var(--t2); box-shadow: 0 6px 20px rgba(0,0,0,.25), 0 0 0 0.5px var(--sep); }

/* Static excerpts used beside the page's sections */
.atd.atd-snippet {
  position: relative; width: 100%; height: auto; transform: none;
  border-radius: 12px; overflow: hidden; background: var(--main);
  box-shadow: var(--shadow); pointer-events: none; font-size: 13.5px;
}
.atd-snippet .atd-list { padding: 4px 16px 6px; }
.atd-snippet .atd-item:last-child, .atd-snippet .atd-batch:last-child { border-bottom: 0; }
.atd-snippet .atd-hover { display: none !important; }
.atd-snippet .atd-disk { padding: 16px 18px 6px; }
.atd-snippet .atd-disk h3 { margin-top: 18px; }
.atd-snippet .atd-frow .nm { width: 200px; }
.atd-snippet .atd-dlegend { grid-template-columns: repeat(2, 1fr); }
.atd-snippet .atd-hsum .atd-seg { display: none; }
.atd-snippet .atd-sec-h { padding-left: 20px; }
.atd-snippet .atd-arow { margin: 0 16px; }
.atd-snippet .atd-disk-stats .m { display: none; }

/* Step pictures: the scan summary, the Inspector and the review sheet */
.atd-snippet .atd-cards { border-bottom: 0; }
.atd-snippet .atd-insp { width: auto; border-left: 0; }
.atd-snippet .atd-insp-b { overflow: hidden; }
.atd-snippet .atd-sheet { width: auto; margin: 0; border-radius: 0; box-shadow: none; background: var(--main); }
.atd-snippet .atd-sheet-list { max-height: none; }
.atd-snippet .atd-disk-stats { flex-wrap: wrap; gap: 4px 16px; }
.atd-snippet .atd-disk-stats .atd-stat b { font-size: 17px; }
.atd-snippet .atd-disk-stats .atd-stat span { font-size: 12.5px; }
.atd-snippet .atd-hsum { flex-wrap: wrap; gap: 6px 16px; }
.atd.atd-snippet { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); }
:root[data-theme="light"] .atd.atd-snippet { box-shadow: 0 10px 28px rgba(17, 19, 24, 0.08); }
/* Buttons in rows (bottom bar, sheet footers, Recently Cleaned summary) are centered vertically;
   only the overview cards stack their button at the top. */
.atd-bottom .atd-btn, .atd-sheet-f .atd-btn, .atd-hsum .atd-btn, .atd-stat .atd-btn { align-self: center; }
