/*
 * Sentrix web D1 shared parts (batch D1-IMPL, lane SX-F, 2026-11-29).
 * Loaded after every other stylesheet. Names and meanings: d1-impl-20261129/sx-f/PARTS-SX.md.
 * Source of the look: DESIGN.md 9c9cb562f section 9 (Confirmed compromise, Selection cards, Step indicators, Final-canvas
 * round 2) and the approved mock kit mock/final/kit/kit-final.css (F-KIT). Light values follow 「Neutral greys, no yellow
 * cast」; dark values map onto the existing dark tokens (the dark theme is unchanged by D1).
 */

:root {
  --d1-font: Pretendard, "Noto Sans KR", system-ui, -apple-system, sans-serif;
  --d1-bg: #f4f5f7;
  --d1-card: #ffffff;
  --d1-hover: #f8f9fa;
  --d1-line: #e5e7ea;
  --d1-rule: #d1d5da;
  --d1-mute: #9aa0a6;
  --d1-sub: #5f6368;
  --d1-strong: #3c4043;
  --d1-ink: #1b1c1f;
  --d1-sel: #fff3eb;
  --d1-selt: #b64000;
  --d1-key: #ff6b00;
  --d1-key-h: #e65f00;
  --d1-chart: #ea5b00;
  --d1-danger: #dc2626;
  --d1-danger-t: #b91c1c;
  --d1-ok: #16a34a;
  --d1-tile: #eef0f3;
  --d1-quiet: #b8bdc4;
  --d1-r-work: 8px;
  --d1-r-card: 12px;
  --d1-r-friendly: 16px;
  --d1-s1: 0 1px 4px rgba(0, 0, 0, 0.08);
  --d1-s3: 0 4px 16px rgba(0, 0, 0, 0.12);
  --d1-btn-h: 40px;
  --d1-btn-h-sm: 32px;
  --d1-filter-h: 40px;
  --d1-sidebar-w: 214px;
  --d1-topbar-h: 64px;
  /* report choice tiles (sentrix-type-icons.js cut ring) leave the beige #F2EFEB for the neutral tile */
  --sx-type-tile: #eef0f3;
}

html[data-theme="dark"],
body.dark {
  --d1-bg: var(--ui-bg-canvas, #0b1220);
  --d1-card: var(--ui-bg-surface, #121c2f);
  --d1-hover: #172238;
  --d1-line: var(--ui-border-subtle, #23324e);
  --d1-rule: #33466a;
  --d1-mute: #8190a8;
  --d1-sub: var(--ui-text-secondary, #a3b0c6);
  --d1-strong: #cbd5e1;
  --d1-ink: var(--ui-text-primary, #eaf0ff);
  --d1-sel: rgba(255, 107, 0, 0.14);
  --d1-selt: #fb923c;
  --d1-tile: #1e293b;
  --d1-quiet: #64748b;
  --d1-s1: none;
  --d1-s3: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Existing light tokens → neutral greys (the redesign file and tokens.css use these on every surface).
   html:root:not(…) outranks tokens.css :root:not([data-theme="dark"]). */
html:root:not([data-theme="dark"]) {
  --soc-table-head-bg: #ffffff;
  --soc-status-text: #3c4043;
  --soc-status-progress-dot: #1b1c1f;
  --soc-status-done-dot: #9aa0a6;
  --soc-status-cancel-text: #5f6368;
  --sx-warm-subtle: #f8f9fa;
  --sx-warm-head: #ffffff;
  --sx-warm-border: #e5e7ea;
  --sx-warm-hover: #f8f9fa;
  --sx-warm-border-strong: #d1d5da;
  --bg-app: #f4f5f7;
  --bg-surface-subtle: #f8f9fa;
  --border-subtle: #e5e7ea;
  --border-default: #d1d5da;
  --divider-default: #e5e7ea;
  --text-primary: #1b1c1f;
  --text-secondary: #5f6368;
  --ui-text-tertiary: #9aa0a6;
  --ui-accent-weak: #fff3eb;
  --sxr-canvas: #f4f5f7;
  --sxr-card: #ffffff;
  --sxr-line: #e5e7ea;
  --sxr-line-soft: #e5e7ea;
  --sxr-line-strong: #d1d5da;
  --sxr-head: #ffffff;
  --sxr-row-hover: #f8f9fa;
  --sxr-ink: #1b1c1f;
  --sxr-ink-2: #3c4043;
  --sxr-sub: #5f6368;
  --sxr-muted: #9aa0a6;
  --sxr-chip: #eef0f3;
  --sxr-accent-fill: #fff3eb;
  --sxr-card-shadow: none;
}

/* ── type: five steps */
.d1-t-title { font: 800 24px/1.25 var(--d1-font); color: var(--d1-ink); margin: 0; }
.d1-t-section { font: 700 16px/1.3 var(--d1-font); color: var(--d1-ink); margin: 0; }
.d1-t-label { font: 600 13px/1.3 var(--d1-font); color: var(--d1-strong); }
.d1-t-body { font: 400 14px/1.45 var(--d1-font); color: var(--d1-ink); }
.d1-t-sub { font: 500 12px/1.4 var(--d1-font); color: var(--d1-sub); }
.d1-num { font-variant-numeric: tabular-nums; }
[class^="d1-"], [class*=" d1-"] { overflow-wrap: normal; word-break: keep-all; }

/* ── buttons and controls */
.d1-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--d1-btn-h); padding: 0 16px; border-radius: var(--d1-r-work);
  border: 1px solid var(--d1-rule); background: var(--d1-card); color: var(--d1-strong);
  font: 600 14px/1 var(--d1-font); white-space: nowrap; cursor: pointer;
}
.d1-btn:hover { background: var(--d1-hover); }
.d1-btn--sm { height: var(--d1-btn-h-sm); padding: 0 12px; font-size: 13px; }
.d1-btn--primary { background: var(--d1-key); border-color: var(--d1-key); color: #fff; }
.d1-btn--primary:hover { background: var(--d1-key-h); border-color: var(--d1-key-h); }
.d1-btn--danger { background: var(--d1-danger); border-color: var(--d1-danger); color: #fff; }
.d1-btn--danger:hover { background: var(--d1-danger-t); border-color: var(--d1-danger-t); }
.d1-btn--text { height: auto; padding: 0; border: 0; background: none; color: var(--d1-selt); }
.d1-btn--text:hover { background: none; text-decoration: underline; }
.d1-btn:disabled { opacity: 0.45; cursor: default; }
.d1-btn:focus-visible, .d1-ib:focus-visible, .d1-choice-card:focus-visible, .d1-help:focus-visible {
  outline: 2px solid var(--d1-selt); outline-offset: 2px;
}
.d1-ib {
  width: 32px; height: 32px; display: inline-grid; place-items: center; flex: none;
  border: 0; background: none; padding: 0; border-radius: var(--d1-r-work); color: var(--d1-sub); cursor: pointer;
}
.d1-ib:hover { background: var(--d1-hover); color: var(--d1-ink); }
.d1-ib svg { width: 20px; height: 20px; }
input[type="checkbox"].d1-check {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; flex: none;
  border: 1.5px solid var(--d1-rule); border-radius: 4px; background: var(--d1-card); display: inline-grid; place-items: center; cursor: pointer;
}
input[type="checkbox"].d1-check:checked {
  background: var(--d1-key) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--d1-key);
}
.d1-help {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--d1-mute); background: none; padding: 0;
  display: inline-grid; place-items: center; color: var(--d1-sub); font: 700 12px/1 var(--d1-font); cursor: pointer; vertical-align: middle;
}
.d1-help[aria-expanded="true"] { border-color: var(--d1-selt); color: var(--d1-selt); }

/* ── attached popover / menu (? help, ⋯ menu, site picker) */
.d1-pop {
  position: fixed; z-index: 520; max-width: 320px; padding: 12px 14px; border-radius: var(--d1-r-card);
  background: var(--d1-card); color: var(--d1-ink); box-shadow: var(--d1-s3); border: 1px solid var(--d1-line);
  font: 400 13px/1.5 var(--d1-font);
}
.d1-pop::before {
  content: ""; position: absolute; width: 10px; height: 10px; background: inherit;
  border-left: 1px solid var(--d1-line); border-top: 1px solid var(--d1-line); transform: rotate(45deg);
}
.d1-pop--arrow-top::before { top: -6px; left: var(--d1-pop-x, 16px); }
.d1-pop--arrow-bottom::before { bottom: -6px; left: var(--d1-pop-x, 16px); transform: rotate(225deg); }
.d1-pop--arrow-left::before { left: -6px; top: var(--d1-pop-y, 14px); transform: rotate(-45deg); }
.d1-pop--arrow-right::before { right: -6px; top: var(--d1-pop-y, 14px); transform: rotate(135deg); }

/* ── page frame, title row, filter bar */
.d1-page { padding: 28px 32px; max-width: 1600px; margin: 0 auto; box-sizing: border-box; }
.d1-page--narrow { max-width: 1320px; }
.d1-titlebar { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 16px; }
.d1-titlebar > h1, .d1-titlebar > h2 { margin: 0; font: 800 24px/1.25 var(--d1-font); color: var(--d1-ink); white-space: nowrap; }
.d1-titlebar-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.d1-filterbar { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: var(--d1-filter-h); margin-bottom: 12px; flex-wrap: nowrap; }
.d1-filterbar .d1-reset { margin-left: auto; }
.d1-search {
  position: relative; display: inline-flex; align-items: center; height: var(--d1-filter-h); width: 280px; min-width: 160px;
  border: 1px solid var(--d1-rule); border-radius: var(--d1-r-work); background: var(--d1-card); padding: 0 12px 0 36px; box-sizing: border-box;
}
.d1-search > svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--d1-sub); }
.d1-search > input { border: 0; outline: 0; background: none; width: 100%; font: 400 14px/1 var(--d1-font); color: var(--d1-ink); }
.d1-select, .d1-filter-btn {
  display: inline-flex; align-items: center; gap: 6px; height: var(--d1-filter-h); padding: 0 12px; max-width: 240px;
  border: 1px solid var(--d1-rule); border-radius: var(--d1-r-work); background: var(--d1-card); color: var(--d1-strong);
  font: 600 13px/1 var(--d1-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.d1-select.is-set { background: var(--d1-sel); border-color: var(--d1-sel); color: var(--d1-selt); }
.d1-select svg, .d1-filter-btn svg { width: 16px; height: 16px; flex: none; }
.d1-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--d1-key); color: #fff; font: 700 11px/18px var(--d1-font); text-align: center; }
.d1-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; }
.d1-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 6px 0 10px; border-radius: 14px; background: var(--d1-sel); color: var(--d1-selt); font: 600 12px/1 var(--d1-font); white-space: nowrap; }
.d1-chip button { border: 0; background: none; padding: 0; width: 18px; height: 18px; color: inherit; cursor: pointer; }
.d1-reset { border: 0; background: none; color: var(--d1-sub); font: 600 13px/1 var(--d1-font); cursor: pointer; white-space: nowrap; }

/* ── tables (header and content share one alignment) */
.d1-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--d1-card); border: 1px solid var(--d1-line); border-radius: var(--d1-r-card); overflow: hidden; }
.d1-table th, .d1-th {
  height: 44px; padding: 0 12px; background: var(--d1-card); border-bottom: 1px solid var(--d1-rule);
  font: 600 13px/1.2 var(--d1-font); color: var(--d1-strong); white-space: nowrap; text-align: center;
}
.d1-table td, .d1-td {
  height: 52px; padding: 0 12px; border-top: 1px solid var(--d1-line);
  font: 400 14px/1.35 var(--d1-font); color: var(--d1-ink); text-align: center;
}
.d1-table tr:first-child td { border-top: 0; }
.d1-table .d1-al, .d1-al { text-align: left; justify-content: flex-start; }
.d1-table .d1-ac, .d1-ac { text-align: center; justify-content: center; }
.d1-table .d1-ar, .d1-ar { text-align: right; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.d1-row-link { cursor: pointer; }
.d1-row-link:hover > td, .d1-row-link:hover { background: var(--d1-hover); }
.d1-row-link > td:last-child::after { content: "›"; margin-left: 8px; color: var(--d1-mute); }
.d1-sort { cursor: pointer; user-select: none; }
.d1-sort::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: middle; border: 4px solid transparent; border-top-color: var(--d1-rule); border-bottom: 0; }
.d1-sort[aria-sort="ascending"]::after { border-top: 0; border-bottom: 4px solid var(--d1-strong); }
.d1-sort[aria-sort="descending"]::after { border-top-color: var(--d1-strong); }
.d1-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.d1-pager { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 16px 0 4px; }
.d1-pager button {
  min-width: 32px; height: 32px; padding: 0 8px; border: 0; border-radius: var(--d1-r-work); background: none;
  color: var(--d1-strong); font: 600 13px/1 var(--d1-font); font-variant-numeric: tabular-nums; cursor: pointer;
}
.d1-pager button:hover:not(:disabled) { background: var(--d1-hover); }
.d1-pager button[aria-current="page"] { background: var(--d1-sel); color: var(--d1-selt); }
.d1-pager button:disabled { color: var(--d1-rule); cursor: default; }
.d1-pager .d1-pager-gap { color: var(--d1-mute); padding: 0 4px; }

/* ── overview: summary cards, panels, mini table */
.d1-cards { display: grid; gap: 24px; margin-bottom: 24px; }
.d1-sum { background: var(--d1-card); border-radius: var(--d1-r-friendly); padding: 20px 24px; box-shadow: var(--d1-s1); min-width: 0; text-align: left; border: 0; font-family: var(--d1-font); }
button.d1-sum { cursor: pointer; width: 100%; }
.d1-sum-k { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--d1-font); color: var(--d1-sub); white-space: nowrap; }
.d1-sum-k svg { flex: none; }
.d1-sum-k .d1-chev { margin-left: auto; color: var(--d1-mute); }
.d1-sum-v { font: 800 24px/1.2 var(--d1-font); color: var(--d1-ink); margin-top: 14px; }
.d1-sum-v small { font: 600 13px/1 var(--d1-font); margin-left: 2px; }
.d1-sum-d { font: 500 12px/1.4 var(--d1-font); color: var(--d1-sub); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d1-sum-d b { color: var(--d1-ink); font-weight: 600; }
.d1-sum-d b.up { color: var(--d1-danger-t); }
.d1-sum--risk { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.d1-sum--risk .d1-sum-l { flex: 1; min-width: 0; }
.d1-sum--risk .d1-sum-w { font: 800 24px/1.2 var(--d1-font); margin-top: 14px; }
.d1-sum--risk svg { flex: none; }
.d1-grid21 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 24px; }
.d1-grid11 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.d1-panel { background: var(--d1-card); border-radius: var(--d1-r-friendly); padding: 18px 24px; min-width: 0; }
.d1-panel-h { display: flex; align-items: center; gap: 12px; height: 32px; margin-bottom: 8px; }
.d1-panel-h h2 { margin: 0; font: 700 16px/1 var(--d1-font); color: var(--d1-ink); white-space: nowrap; }
.d1-panel-act { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.d1-panel-act .d1-per { font: 500 12px/1 var(--d1-font); color: var(--d1-sub); white-space: nowrap; }
.d1-more { font: 600 13px/1 var(--d1-font); color: var(--d1-selt); text-decoration: none; white-space: nowrap; background: none; border: 0; padding: 0; cursor: pointer; }
.d1-sortbtn {
  height: 32px; border: 1px solid var(--d1-rule); border-radius: var(--d1-r-work); display: inline-flex; align-items: center; gap: 6px;
  padding: 0 10px 0 12px; font: 600 13px/1 var(--d1-font); color: var(--d1-strong); background: var(--d1-card); white-space: nowrap; cursor: pointer;
}
.d1-sortbtn svg { width: 14px; height: 14px; }
.d1-mt-h, .d1-mt-r { display: grid; align-items: center; text-align: center; column-gap: 12px; }
.d1-mt-h { height: 36px; border-bottom: 1px solid var(--d1-rule); font: 600 13px/1 var(--d1-font); color: var(--d1-strong); }
.d1-mt-r { height: 52px; border-top: 1px solid var(--d1-line); font: 400 14px/1.3 var(--d1-font); color: var(--d1-ink); }
.d1-mt-h + .d1-mt-r { border-top: 0; }
button.d1-mt-r { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; padding: 0; cursor: pointer; font-family: var(--d1-font); }
button.d1-mt-r:hover { background: var(--d1-hover); }
.d1-mt .d1-al { text-align: left; min-width: 0; }
.d1-mt .d1-ar { text-align: right; }
.d1-cell-t { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d1-cell-s { font: 500 12px/1.3 var(--d1-font); color: var(--d1-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d1-who { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; }
.d1-who > div { min-width: 0; }
.d1-mt-empty { height: 156px; display: grid; place-items: center; font: 500 13px/1 var(--d1-font); color: var(--d1-sub); }

/* ── marks: status dot, urgent / important flag, avatar, completion */
.d1-dot { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--d1-font); color: var(--d1-selt); white-space: nowrap; }
.d1-dot::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--d1-key); flex: none; }
.d1-dot--risk { color: var(--d1-danger-t); }
.d1-dot--risk::before { background: var(--d1-danger); }
.d1-dot--prog { color: var(--d1-ink); }
.d1-dot--prog::before { background: var(--d1-ink); }
.d1-dot--done { color: var(--d1-sub); }
.d1-dot--done::before { background: var(--d1-mute); }
.d1-urg, .d1-flag { display: inline-grid; place-items: center; color: var(--d1-danger); vertical-align: middle; flex: none; }
.d1-urg svg, .d1-flag svg { width: 20px; height: 20px; }
.d1-flag-title { color: var(--d1-danger-t); }
.d1-avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: #e5e7ea; overflow: hidden; }
.d1-avatar svg { display: block; }
.d1-done-mark { display: grid; place-items: center; width: max-content; margin: 0 auto 16px; border-radius: 50%; color: #fff; }
/* r7 (CSP): the whole mark is one SVG sized by its width/height attributes */
.d1-done-mark svg { display: block; }
.d1-done-mark .d1-done-bg { fill: var(--d1-ok); }
.d1-done-mark .d1-done-ink { stroke: #fff; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ── choice cards (one-question wizard steps) */
.d1-choice { display: grid; gap: 16px; }
.d1-choice-card {
  display: flex; align-items: center; gap: 16px; min-height: 96px; padding: 20px; text-align: left; box-sizing: border-box;
  background: var(--d1-card); border: 1px solid var(--d1-line); border-radius: var(--d1-r-friendly);
  font: 700 16px/1.25 var(--d1-font); color: var(--d1-ink); cursor: pointer; --sx-solid-cut: var(--d1-tile);
}
.d1-choice-card:hover { border-color: var(--d1-rule); }
.d1-choice-card small, .d1-choice-s { display: block; font: 500 12px/1.4 var(--d1-font); color: var(--d1-sub); margin-top: 4px; }
.d1-choice-card[aria-checked="true"], .d1-choice-card.is-selected {
  background: var(--d1-sel); border-color: var(--d1-key); box-shadow: inset 0 0 0 0.5px var(--d1-key); color: var(--d1-selt);
}
.d1-choice-card[aria-checked="true"] small, .d1-choice-card.is-selected small { color: var(--d1-selt); }
.d1-choice-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--d1-tile); display: grid; place-items: center; flex: none; }
.d1-choice-tile svg { width: 32px; height: 32px; }
.d1-choice--form .d1-choice-card { min-height: 64px; padding: 14px 16px; gap: 12px; --sx-solid-cut: var(--d1-card); }
.d1-choice--form .d1-choice-card[aria-checked="true"], .d1-choice--form .d1-choice-card.is-selected { --sx-solid-cut: var(--d1-sel); }
.d1-choice--form .d1-choice-icon svg { width: 24px; height: 24px; display: block; }

/* ── step indicator: quiet steps, line split per step, orange up to the current step */
.d1-steps { display: grid; gap: 16px; padding-bottom: 12px; margin-bottom: 28px; }
.d1-steps > span {
  position: relative; display: flex; align-items: center; gap: 8px; height: 40px; min-width: 0;
  font: 600 14px/1 var(--d1-font); color: var(--d1-mute); white-space: nowrap;
}
.d1-steps > span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 2px; border-radius: 2px; background: var(--d1-line); }
.d1-steps > span.is-done::after, .d1-steps > span.is-current::after { background: var(--d1-key); }
.d1-steps i {
  width: 24px; height: 24px; border-radius: 12px; border: 1.5px solid var(--d1-rule); background: var(--d1-card); flex: none;
  display: grid; place-items: center; font: 700 12px/1 var(--d1-font); font-style: normal; color: var(--d1-mute); font-variant-numeric: tabular-nums;
}
.d1-steps i svg { width: 12px; height: 12px; }
.d1-steps .is-done { color: var(--d1-strong); }
.d1-steps .is-done i { color: var(--d1-sub); }
.d1-steps .is-done em { font: 500 12px/1 var(--d1-font); font-style: normal; color: var(--d1-sub); }
.d1-steps .is-done b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.d1-steps .is-current { color: var(--d1-selt); }
.d1-steps .is-current i { background: var(--d1-key); border-color: var(--d1-key); color: #fff; }

/* ── detail head, dialog, drawer */
.d1-dh { display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 16px 0 24px; border-bottom: 1px solid var(--d1-line); background: var(--d1-card); box-sizing: border-box; }
.d1-dh > b { flex: 1; min-width: 0; font: 700 16px/1.3 var(--d1-font); color: var(--d1-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d1-dialog-backdrop { position: fixed; inset: 0; z-index: 510; background: rgba(17, 19, 21, 0.4); display: grid; place-items: center; padding: 16px; }
.d1-dialog {
  width: 440px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box;
  background: var(--d1-card); border-radius: var(--d1-r-card); box-shadow: var(--d1-s3); font-family: var(--d1-font);
}
.d1-dialog-h { display: flex; align-items: center; gap: 8px; padding: 20px 16px 0 24px; }
.d1-dialog-h h2, .d1-dialog-h h3 { flex: 1; margin: 0; font: 700 16px/1.35 var(--d1-font); color: var(--d1-ink); }
.d1-dialog-b { padding: 12px 24px 0; font: 400 14px/1.5 var(--d1-font); color: var(--d1-strong); }
.d1-dialog-f { display: flex; justify-content: flex-end; gap: 8px; padding: 24px; }
.d1-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 505; width: 440px; max-width: 100vw; display: flex; flex-direction: column;
  background: var(--d1-card); box-shadow: var(--d1-s3); font-family: var(--d1-font);
}
.d1-drawer--form { width: 480px; }
.d1-drawer-b { flex: 1; overflow: auto; padding: 20px 24px; }
.d1-drawer-f { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--d1-line); }

/* ── empty state and skeleton */
.d1-empty { display: grid; justify-items: center; gap: 12px; padding: 48px 16px; text-align: center; font: 500 14px/1.4 var(--d1-font); color: var(--d1-sub); }
.d1-empty svg { width: 48px; height: 48px; }
.d1-skel, .d1-skel-line, .d1-skel-block { display: block; border-radius: var(--d1-r-work); background: #eceef1; }
html[data-theme="dark"] :is(.d1-skel, .d1-skel-line, .d1-skel-block) { background: #1c2840; }
.d1-skel-line { height: 12px; margin: 8px 0; }
.d1-skel-card { background: var(--d1-card); border-radius: var(--d1-r-friendly); padding: 20px 24px; box-shadow: var(--d1-s1); min-width: 0; }
.d1-skel-shimmer :is(.d1-skel, .d1-skel-line, .d1-skel-block) { animation: d1-skel-pulse 1.4s ease-in-out infinite; }
@keyframes d1-skel-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) {
  .d1-skel-shimmer :is(.d1-skel, .d1-skel-line, .d1-skel-block) { animation: none; }
}

/* ── shell: sidebar (DESIGN 「Confirmed compromise」 + SIDEBAR-MAP.md). Rows carry a Sentrix Solid 20px glyph in the quiet
   tier (accent grey); the selected row alone shows the orange accent, the #FFF3EB fill and #B64000 text. No left bar or dot.
   The :not(#d1sb) chain outranks the components.css selection rules (#menuSheetPanel + three :not(#r61…)). */
#menuSheetPanel .soc-menu-sub-item-icon .d1-sb-glyph { display: inline-grid; place-items: center; width: 20px; height: 20px; }
html body #menuSheetPanel#menuSheetPanel#menuSheetPanel .soc-menu-sub-item-icon .d1-sb-glyph svg.sx-solid-icon { width: 20px !important; height: 20px !important; min-width: 20px !important; display: block; }
#menuSheetPanel .soc-menu-sub-item-icon .d1-sb-glyph--on { display: none; }
#menuSheetPanel .soc-menu-sub-item.is-active .soc-menu-sub-item-icon .d1-sb-glyph--on { display: inline-grid; }
#menuSheetPanel .soc-menu-sub-item.is-active .soc-menu-sub-item-icon .d1-sb-glyph--off { display: none; }
html:not([data-theme="dark"]) body:is(.soc-desktop-shell, .soc-desktop-adaptive):not(.soc-auth-shell-active) #menuSheetPanel .soc-menu-sub-item[data-d1-glyph]:not(#d1sb):not(#d1sb):not(#d1sb):not(#d1sb) .soc-menu-sub-item-label {
  color: #3c4043 !important;
  font-weight: 600 !important;
}
html:not([data-theme="dark"]) body:is(.soc-desktop-shell, .soc-desktop-adaptive):not(.soc-auth-shell-active) #menuSheetPanel .soc-menu-sub-item.is-active:not(#d1sb):not(#d1sb):not(#d1sb):not(#d1sb) {
  background: #fff3eb !important;
  background-color: #fff3eb !important;
  box-shadow: none !important;
  --sx-solid-cut: #fff3eb;
}
html:not([data-theme="dark"]) body:is(.soc-desktop-shell, .soc-desktop-adaptive):not(.soc-auth-shell-active) #menuSheetPanel .soc-menu-sub-item.is-active:not(#d1sb):not(#d1sb):not(#d1sb):not(#d1sb) .soc-menu-sub-item-label {
  color: #b64000 !important;
  font-weight: 700 !important;
}
html body:is(.soc-desktop-shell, .soc-desktop-adaptive):not(.soc-auth-shell-active) #menuSheetPanel .soc-menu-sub-item.is-active:not(.soc-menu-sub-item--nested):not(#d1sb):not(#d1sb):not(#d1sb):not(#d1sb)::before,
html body:is(.soc-desktop-shell, .soc-desktop-adaptive):not(.soc-auth-shell-active) #menuSheetPanel .soc-menu-sub-item.is-active:not(#d1sb):not(#d1sb):not(#d1sb):not(#d1sb)::after {
  display: none !important;
  content: none !important;
}
html[data-theme="dark"] body:is(.soc-desktop-shell, .soc-desktop-adaptive):not(.soc-auth-shell-active) #menuSheetPanel .soc-menu-sub-item.is-active:not(#d1sb):not(#d1sb):not(#d1sb):not(#d1sb) {
  background: rgba(255, 107, 0, 0.14) !important;
  --sx-solid-cut: #1f2433;
}
html[data-theme="dark"] #menuSheetPanel .soc-menu-sub-item:not(.is-active) { --sx-solid-cut: var(--ui-bg-surface, #121c2f); }
html:not([data-theme="dark"]) #menuSheetPanel .soc-menu-sub-item:not(.is-active) { --sx-solid-cut: #ffffff; }

/* ── floating 도우미 button: Sentrix Solid aiAssistant 22px inside the existing white disc (R2 H7); the glyph carries its
   own orange star, so the old orange dot is dropped. */
html body #supportChatbotLauncher .sxa-launch-icon:has(> svg.sx-solid-icon) { --sx-solid-cut: #ffffff; }
html body #supportChatbotLauncher .sxa-launch-icon:has(> svg.sx-solid-icon)::after { display: none; }
html body #supportChatbotLauncher .sxa-launch-icon > svg.sx-solid-icon { width: 22px; height: 22px; display: block; }
html[data-theme="dark"] body #supportChatbotLauncher .sxa-launch-icon:has(> svg.sx-solid-icon),
body.dark #supportChatbotLauncher .sxa-launch-icon:has(> svg.sx-solid-icon) { background: #ffffff; }

/* ── login (F-LOGIN sx-login*, DESIGN 「Login and loading screens」 + 「Round 2 overrides»). One 400px column on the grey base:
   the real logo once above one white card; 간편 로그인 is the main block, 「아이디로 로그인」 is the small grey link that opens
   the fields below it. Sentrix keeps its capsule buttons and inputs (recommended option). The orbit decoration is dropped. */
html body #authView#authView#authView#authView.auth-c2:not([hidden]):not(.hidden) {
  background: var(--d1-bg) !important;
  min-height: 100vh; display: flex !important; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 16px 56px !important; box-sizing: border-box; gap: 0 !important;
}
html body #authView#authView#authView#authView.auth-c2 :is(.auth-c2-band, .auth-c2-hero, .sxr-login-orbit) { display: none !important; }
html body #authView#authView#authView#authView.auth-c2 .auth-c2-top {
  position: static !important; display: flex !important; justify-content: center; width: 400px; max-width: 100%; margin: 0 0 32px !important; padding: 0 !important; background: none !important;
}
html body #authView#authView#authView#authView.auth-c2 .auth-c2-brand { display: inline-flex !important; align-items: center; gap: 14px; height: 36px; }
html body #authView#authView#authView#authView.auth-c2 .auth-c2-brand :is(.auth-logo-mark, .auth-wordmark) { display: inline-flex !important; height: 36px; width: auto; }
html body #authView#authView#authView#authView.auth-c2 .auth-c2-brand img { height: 100% !important; width: auto !important; max-width: none !important; }
html body #authView#authView#authView#authView.auth-c2 .auth-c2-brand .auth-wordmark { height: 26px; }
html body #authView#authView#authView#authView.auth-c2 .auth-c2-main { width: 400px !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; display: block !important; }
html body #authView#authView#authView#authView.auth-c2 .auth-c2-card {
  width: 100% !important; max-width: 400px !important; margin: 0 !important; box-sizing: border-box;
  padding: 32px !important; border-radius: 12px !important; border: 1px solid var(--d1-line) !important;
  background: var(--d1-card) !important; box-shadow: var(--d1-s1) !important;
}
html body #authView#authView#authView#authView.auth-c2 .d1-login-title { margin: 0 0 24px; font: 800 22px/1.3 var(--d1-font); color: var(--d1-ink); }
html body #authView#authView#authView#authView.auth-c2:is([data-auth-step="code"], [data-mfa-step]) .d1-login-title,
html body #authView#authView#authView#authView.auth-c2:has(#sxTenantPendingNotice:not([hidden])) .d1-login-title { display: none; }
html body #authView#authView#authView#authView.auth-c2 #sxSocialPanel { display: grid !important; gap: 10px !important; margin: 0 !important; }
html body #authView#authView#authView#authView.auth-c2 #sxSocialPanel[hidden] { display: none !important; }
html body #authView#authView#authView#authView.auth-c2 #sxSocialPanel .sx-social-btn { width: 100% !important; height: 48px !important; margin: 0 !important; border-radius: 999px !important; font: 700 15px/1 var(--d1-font) !important; }
html body #authView#authView#authView#authView.auth-c2 #sxSocialPanel .sx-social-btn[hidden] { display: none !important; }
html body #authView#authView#authView#authView.auth-c2 #sxSocialPanel .sx-social-status:empty { display: none; }
html body #authView#authView#authView#authView.auth-c2 #sxSocialPanel .sx-social-other {
  justify-self: center; display: inline-flex !important; align-items: center; gap: 4px; margin: 14px 0 0 !important; padding: 4px 0 !important;
  background: none !important; border: 0 !important; color: var(--d1-sub) !important; font: 500 13px/1.2 var(--d1-font) !important;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
html body #authView#authView#authView#authView.auth-c2 .d1-login-chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 6px; }
html body #authView#authView#authView#authView.auth-c2 .sx-social-other[aria-expanded="true"] .d1-login-chev { transform: translateY(2px) rotate(-135deg); }
html body #authView#authView#authView#authView.auth-c2[data-sx-login-method="password"]:not([data-auth-step="code"]) #sxSocialPanel:not([hidden]) + #loginForm {
  margin-top: 20px !important; padding-top: 28px !important; border-top: 1px solid var(--d1-line) !important;
}
html body #authView#authView#authView#authView.auth-c2 #loginForm .auth-input-field { margin: 0 0 18px !important; }
html body #authView#authView#authView#authView.auth-c2 #loginForm .auth-field-label {
  position: static !important; width: auto !important; height: auto !important; clip: auto !important; overflow: visible !important;
  display: block !important; margin: 0 0 8px !important; font: 600 13px/1.2 var(--d1-font) !important; color: var(--d1-strong) !important;
}
html body #authView#authView#authView#authView.auth-c2 #loginForm .d1-login-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
html body #authView#authView#authView#authView.auth-c2 .d1-login-forgot { border: 0; background: none; padding: 0; margin: 0 0 8px; color: var(--d1-selt); font: 600 13px/1.2 var(--d1-font); cursor: pointer; white-space: nowrap; }
html body #authView#authView#authView#authView.auth-c2 #loginForm input:is([type="text"], [type="password"]) {
  height: 44px !important; border-radius: 999px !important; border: 1px solid var(--d1-rule) !important; background: var(--d1-card) !important;
  padding: 0 18px !important; font: 400 15px/1 var(--d1-font) !important; color: var(--d1-ink) !important; box-shadow: none !important; box-sizing: border-box; width: 100% !important;
}
html body #authView#authView#authView#authView.auth-c2 #loginForm input:is([type="text"], [type="password"]):focus { border: 2px solid var(--d1-key) !important; padding: 0 17px !important; outline: 0 !important; }
html body #authView#authView#authView#authView.auth-c2 #loginForm input[aria-invalid="true"] { border-color: var(--d1-danger) !important; }
html body #authView#authView#authView#authView.auth-c2 #loginForm .input-error:not(.hidden) { display: block; margin-top: 6px; color: var(--d1-danger-t) !important; font: 500 13px/1.4 var(--d1-font) !important; }
html body #authView#authView#authView#authView.auth-c2 #loginForm .auth-options { justify-content: flex-start !important; margin: 0 0 20px !important; }
html body #authView#authView#authView#authView.auth-c2 #loginForm .auth-options .choice-row { font: 500 13px/1.2 var(--d1-font) !important; color: var(--d1-strong) !important; gap: 8px; }
html body #authView#authView#authView#authView.auth-c2 #loginForm :is(#loginSubmitBtn, #loginTenantSubmitBtn) {
  width: 100% !important; height: 44px !important; border-radius: 999px !important; font: 700 15px/1 var(--d1-font) !important; margin: 0 !important;
}
html body #authView#authView#authView#authView.auth-c2 .auth-c2-foot {
  position: fixed !important; left: 0; right: 0; bottom: 16px; display: flex !important; justify-content: center; gap: 20px;
  margin: 0 !important; padding: 0 !important; background: none !important; font: 500 12px/1 var(--d1-font) !important; color: var(--d1-sub) !important;
}
/* company-code step: one account line, title, field without a repeated label, steps split per segment, one way back */
html body #authView#authView#authView#authView.auth-c2 #authC2CodeLead { display: none !important; }
html body #authView#authView#authView#authView.auth-c2 #authC2TenantField > .auth-field-label {
  position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap; margin: 0 !important;
}
html body #authView#authView#authView#authView.auth-c2 .auth-c2-steps {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px !important; margin: 0 0 24px !important; padding: 0 0 10px !important; list-style: none; background: none !important;
}
html body #authView#authView#authView#authView.auth-c2 .auth-c2-steps::before, html body #authView#authView#authView#authView.auth-c2 .auth-c2-steps::after { display: none !important; }
html body #authView#authView#authView#authView.auth-c2 .auth-c2-steps li {
  position: relative; display: flex !important; align-items: center; gap: 8px; height: 32px; font: 600 13px/1 var(--d1-font) !important; color: var(--d1-mute) !important; white-space: nowrap; background: none !important;
}
html body #authView#authView#authView#authView.auth-c2 .auth-c2-steps li::after { content: "" !important; display: block !important; position: absolute !important; left: 0 !important; right: 0 !important; top: auto !important; bottom: -10px !important; width: auto !important; height: 2px !important; border-radius: 2px; background: var(--d1-line) !important; }
html body #authView#authView#authView#authView.auth-c2 .auth-c2-steps li:is(.is-done, [aria-current="step"])::after { background: var(--d1-key) !important; }
html body #authView#authView#authView#authView.auth-c2 .auth-c2-steps li i {
  width: 24px !important; height: 24px !important; border-radius: 12px !important; border: 1.5px solid var(--d1-rule) !important; background: var(--d1-card) !important; flex: none;
  display: grid !important; place-items: center; font: 700 12px/1 var(--d1-font) !important; font-style: normal !important; color: var(--d1-mute) !important;
}
html body #authView#authView#authView#authView.auth-c2 .auth-c2-steps li.is-done { color: var(--d1-strong) !important; }
html body #authView#authView#authView#authView.auth-c2 .auth-c2-steps li.is-done i { color: transparent !important; position: relative; }
html body #authView#authView#authView#authView.auth-c2 .auth-c2-steps li.is-done i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border-right: 1.5px solid var(--d1-sub); border-bottom: 1.5px solid var(--d1-sub); transform: rotate(45deg); }
html body #authView#authView#authView#authView.auth-c2 .auth-c2-steps li[aria-current="step"] { color: var(--d1-selt) !important; }
html body #authView#authView#authView#authView.auth-c2 .auth-c2-steps li[aria-current="step"] i { background: var(--d1-key) !important; border-color: var(--d1-key) !important; color: #fff !important; }
html body #authView#authView#authView#authView.auth-c2 .auth-c2-account {
  display: flex !important; align-items: center; gap: 10px; margin: 0 0 24px !important; padding: 0 16px !important; height: 48px; border-radius: 8px !important; background: var(--d1-bg) !important; border: 0 !important;
}
html body #authView#authView#authView#authView.auth-c2 .auth-c2-account dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html body #authView#authView#authView#authView.auth-c2 .auth-c2-account dd { margin: 0 !important; font: 600 14px/1.2 var(--d1-font) !important; color: var(--d1-ink) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #authView#authView#authView#authView.auth-c2 #authC2CodeTitle { margin: 0 0 16px !important; font: 800 22px/1.3 var(--d1-font) !important; color: var(--d1-ink) !important; }
html body #authView#authView#authView#authView.auth-c2 .auth-c2-link { color: var(--d1-sub) !important; font: 500 13px/1.2 var(--d1-font) !important; }
@media (max-width: 480px) {
  html body #authView#authView#authView#authView.auth-c2 .auth-c2-card { padding: 24px 20px !important; }
  html body #authView#authView#authView#authView.auth-c2 .auth-c2-foot { position: static !important; margin-top: 24px !important; }
}

/* ── loading (F-LOGIN sx-loading-boot / -offline): the mark, a 3px progress line with an orange segment and one status line
   naming the stage, with the three stages as small dots (done ink · now orange · next grey). The radar decoration, wordmark,
   stage icons and security sentence are dropped. A failure becomes one state card: mark, title, cause, 다시 시도. */
html body #startupOverlay.soc-startup-overlay { background: var(--d1-bg) !important; }
html body #startupOverlay .soc-startup-panel {
  background: none !important; box-shadow: none !important; border: 0 !important; width: 320px !important; max-width: calc(100vw - 32px) !important;
  padding: 0 !important; display: flex !important; flex-direction: column; align-items: center; gap: 0 !important;
}
html body #startupOverlay :is(.soc-startup-radar-orbit, .soc-startup-radar-sweep, .soc-startup-radar-ring, .soc-startup-radar-sites, .soc-startup-wordmark, .soc-startup-status-dots, .soc-startup-security, .soc-startup-stage-icon, .soc-startup-stage-connector, .soc-startup-stage-copy small, #startupOverlayPercent) { display: none !important; }
html body #startupOverlay .soc-startup-brand { margin: 0 0 32px !important; }
html body #startupOverlay .soc-startup-radar { width: 56px !important; height: 56px !important; background: none !important; border: 0 !important; box-shadow: none !important; display: grid !important; place-items: center; }
html body #startupOverlay .soc-startup-radar::before, html body #startupOverlay .soc-startup-radar::after { display: none !important; }
html body #startupOverlay .soc-startup-logo { position: static !important; width: 56px !important; height: auto !important; transform: none !important; animation: none !important; }
html body #startupOverlay .soc-startup-copy { order: 2; margin: 16px 0 12px !important; padding: 0 !important; min-height: 0 !important; text-align: center; }
html body #startupOverlay .soc-startup-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html body #startupOverlay .soc-startup-message { margin: 0 !important; font: 500 14px/1.4 var(--d1-font) !important; color: var(--d1-strong) !important; }
html body #startupOverlay .soc-startup-progress-wrap { order: 1; width: 200px !important; margin: 0 !important; }
html body #startupOverlay .soc-startup-progress-track { height: 3px !important; border-radius: 2px !important; background: var(--d1-line) !important; overflow: hidden; }
html body #startupOverlay .soc-startup-progress-bar { height: 3px !important; border-radius: 2px !important; background: var(--d1-key) !important; box-shadow: none !important; }
html body #startupOverlay .soc-startup-stages { order: 3; display: flex !important; justify-content: center; gap: 16px !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
html body #startupOverlay .soc-startup-stage { display: inline-flex !important; align-items: center; gap: 6px; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; min-width: 0 !important; }
html body #startupOverlay .soc-startup-stage::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--d1-rule); flex: none; }
html body #startupOverlay .soc-startup-stage strong { font: 500 12px/1 var(--d1-font) !important; color: var(--d1-mute) !important; white-space: nowrap; }
html body #startupOverlay .soc-startup-stage.is-completed::before { background: var(--d1-strong); }
html body #startupOverlay .soc-startup-stage.is-completed strong { color: var(--d1-strong) !important; }
html body #startupOverlay .soc-startup-stage.is-running::before { background: var(--d1-key); }
html body #startupOverlay .soc-startup-stage.is-running strong { color: var(--d1-selt) !important; font-weight: 600 !important; }
html body #startupOverlay .soc-startup-stage.is-failed::before { background: var(--d1-danger); }
html body #startupOverlay .soc-startup-stage-copy { display: inline !important; }
/* failure: one state card */
html body #startupOverlay:has(#startupOverlayError:not([hidden])) .soc-startup-panel {
  width: 400px !important; padding: 32px !important; background: var(--d1-card) !important; border: 1px solid var(--d1-line) !important; border-radius: 12px !important; box-shadow: var(--d1-s1) !important;
}
html body #startupOverlay:has(#startupOverlayError:not([hidden])) :is(.soc-startup-progress-wrap, .soc-startup-stages) { display: none !important; }
html body #startupOverlay:has(#startupOverlayError:not([hidden])) .soc-startup-title { position: static !important; width: auto; height: auto; clip: auto; margin: 0 0 8px !important; font: 800 20px/1.3 var(--d1-font) !important; color: var(--d1-ink) !important; }
html body #startupOverlay #startupOverlayError { order: 4; width: 100%; margin: 16px 0 0 !important; padding: 0 !important; background: none !important; border: 0 !important; text-align: center; font: 400 14px/1.5 var(--d1-font) !important; color: var(--d1-sub) !important; }
html body #startupOverlay #startupOverlayError p { margin: 0 0 20px !important; display: grid; gap: 4px; }
html body #startupOverlay #startupOverlayFailedItem { font: 600 13px/1.4 var(--d1-font) !important; color: var(--d1-sub) !important; }
html body #startupOverlay #startupOverlayError .soc-startup-error-actions { display: grid !important; gap: 12px; justify-items: stretch; text-align: center; }
html body #startupOverlay #startupOverlayRetryBtn { order: -1; width: 100% !important; height: 44px !important; border-radius: 999px !important; border: 0 !important; background: var(--d1-key) !important; color: #fff !important; font: 700 15px/1 var(--d1-font) !important; }
html body #startupOverlay #startupOverlayError small { font: 500 12px/1 var(--d1-font) !important; color: var(--d1-mute) !important; }
html:not([data-theme="dark"]) body #startupOverlay .soc-startup-logo--light { display: block !important; }
html:not([data-theme="dark"]) body #startupOverlay .soc-startup-logo--dark { display: none !important; }
html body #startupOverlay #startupOverlayError .soc-startup-error-actions { width: 100%; }
html body #startupOverlay #startupOverlayRetryBtn { justify-self: stretch !important; width: 336px !important; max-width: 100% !important; padding: 0 16px !important; }

/* ── top bar account avatar without a photo: grey disc + white silhouette (r2) */
html body :is(#topbarProfileAvatar, #topbarProfileDrawerAvatar).is-silhouette {
  background: #e5e7ea !important; color: #fff !important; border: 0 !important; box-shadow: none !important; overflow: hidden; display: inline-grid; place-items: center;
}
html body :is(#topbarProfileAvatar, #topbarProfileDrawerAvatar).is-silhouette > svg.topbar-profile-avatar-silhouette { width: 100%; height: 100%; display: block; }

/* ── desktop sidebar: the 「내정보 · 로그아웃」 footer is removed (DESIGN 9장 Sentrix web: 내 정보 has one entry, the top-bar
   account menu, which now also holds 로그아웃). The phone menu sheet keeps its footer. (r2) */
html body:is(.soc-desktop-shell, .soc-desktop-adaptive):not(.soc-auth-shell-active) #menuSheetPanel#menuSheetPanel #mobileMenuRootPage > .mobile-nav-actions { display: none !important; }

/* ══ Round 3 (DESIGN.md b633b1623 「Round 3」, mock/final/ANIMATION-SPEC.md, values from mock/final/motion-demo) ══ */
/* ── motion tokens */
:root {
  --motion-micro: 120ms;
  --motion-standard: 200ms;
  --motion-panel: 240ms;
  --motion-emphasis: 320ms;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-emphasis: cubic-bezier(0.16, 1, 0.3, 1);
  --d1-ok-bg: #f0fdf4;
}
html[data-theme="dark"], body.dark { --d1-ok-bg: #12291b; }

/* ── A1–A4 row results (SentrixD1Kit.motionRowResult / motionRowFail) */
.d1-row-motion { transition: background var(--motion-standard), opacity var(--motion-standard) var(--ease-in), transform var(--motion-standard) var(--ease-in), max-height var(--motion-standard) var(--ease-in), min-height var(--motion-standard) var(--ease-in), padding var(--motion-standard); overflow: hidden; }
.d1-row-motion.d1-row-ok, .d1-row-motion.d1-row-ok > td { background: var(--d1-ok-bg) !important; }
.d1-row-motion.d1-row-grey, .d1-row-motion.d1-row-grey > td { background: var(--d1-bg) !important; }
.d1-row-motion.d1-row-grey, .d1-row-motion.d1-row-grey * { color: var(--d1-mute) !important; }
.d1-row-motion.d1-row-gone-r { opacity: 0; transform: translateX(16px); }
.d1-row-motion.d1-row-gone-l { opacity: 0; transform: translateX(-16px); }
.d1-row-motion.d1-row-fold { max-height: 0 !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; border-top-width: 0 !important; }
.d1-row-shake { animation: d1-shake 240ms; }
@keyframes d1-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-4px); } }
.d1-row-err { display: block; font: 500 12px/1.4 var(--d1-font); color: var(--d1-danger-t); padding: 4px 0 8px; }
.d1-spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: d1-sp 0.7s linear infinite; vertical-align: -3px; }
@keyframes d1-sp { to { transform: rotate(360deg); } }
.d1-chk { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--d1-ok); transform: scale(0.6); animation: d1-pop var(--motion-emphasis) var(--ease-emphasis) forwards; }
.d1-chk svg { width: 14px; height: 14px; }
.d1-chk path, .d1-done-mark.d1-motion path { stroke: #fff; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: d1-draw 240ms var(--ease-out) 160ms forwards; }
@keyframes d1-pop { to { transform: scale(1); } }
@keyframes d1-draw { to { stroke-dashoffset: 0; } }
@keyframes d1-fade { to { opacity: 1; } }
.d1-roll { display: inline-block; font-variant-numeric: tabular-nums; transition: transform var(--motion-standard) var(--ease-out), opacity var(--motion-standard); }
.d1-roll.is-rolling { transform: translateY(-8px); opacity: 0; }

/* ── C4 completion (SentrixD1Kit.motionDone): 56px mark pops, stroke draws, text fades up 80ms later */
.d1-done-mark.d1-motion { transform: scale(0.6); opacity: 0; animation: d1-pop var(--motion-emphasis) var(--ease-emphasis) forwards, d1-fade var(--motion-emphasis) forwards; }
.d1-done-mark.d1-motion path { animation-delay: 200ms; stroke-dasharray: 30; stroke-dashoffset: 30; }
.d1-done-mark.d1-done--warn .d1-done-bg { fill: #ea580c; }
.d1-done-mark.d1-done--fail .d1-done-bg { fill: var(--d1-danger); }
.d1-done-text { opacity: 0; transform: translateY(8px); }
.d1-done-text.is-in { transition: opacity var(--motion-standard) var(--ease-out) 80ms, transform var(--motion-standard) var(--ease-out) 80ms; opacity: 1; transform: none; }

/* ── B overlays: enter and leave (add .is-closing before removing; SentrixD1Kit.closeAnimated) */
.d1-drawer { animation: d1-drawer-in var(--motion-panel) var(--ease-out); }
.d1-drawer.is-closing { animation: d1-drawer-out 192ms var(--ease-in) forwards; }
@keyframes d1-drawer-in { from { transform: translateX(24px); opacity: 0; } }
@keyframes d1-drawer-out { to { transform: translateX(24px); opacity: 0; } }
.d1-pop { animation: d1-pop-in 150ms var(--ease-out); }
.d1-pop.d1-pop--arrow-bottom { animation-name: d1-pop-in-up; }
.d1-pop.is-closing { animation: d1-fade-out 100ms var(--ease-in) forwards; }
@keyframes d1-pop-in { from { transform: translateY(-4px); opacity: 0; } }
@keyframes d1-pop-in-up { from { transform: translateY(4px); opacity: 0; } }
@keyframes d1-fade-out { to { opacity: 0; } }
.d1-dialog-backdrop { animation: d1-backdrop-in var(--motion-standard) var(--ease-out); }
.d1-dialog-backdrop .d1-dialog { animation: d1-dialog-in var(--motion-panel) var(--ease-emphasis); }
.d1-dialog-backdrop.is-closing { animation: d1-fade-out 160ms var(--ease-in) forwards; }
.d1-dialog-backdrop.is-closing .d1-dialog { animation: d1-dialog-out 160ms var(--ease-in) forwards; }
@keyframes d1-backdrop-in { from { background: rgba(17, 19, 21, 0); } }
@keyframes d1-dialog-in { from { transform: scale(0.96); opacity: 0; } }
@keyframes d1-dialog-out { to { transform: scale(0.96); opacity: 0; } }
.d1-toast {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 530;
  display: flex; align-items: center; gap: 12px; max-width: 420px; padding: 10px 14px; border-radius: 10px;
  background: var(--d1-ink); color: var(--d1-bg); font: 500 14px/1.4 var(--d1-font); box-shadow: var(--d1-s3);
  transform: translateY(12px); opacity: 0; transition: transform var(--motion-standard) var(--ease-out), opacity var(--motion-standard);
}
.d1-toast.is-in { transform: none; opacity: 1; }
.d1-toast.is-closing { transition-duration: 160ms; transition-timing-function: var(--ease-in); transform: translateY(12px); opacity: 0; }
.d1-toast button { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: inherit; font: 600 13px/1 var(--d1-font); cursor: pointer; }

/* ── F login and loading: the opened ID fields fade in (240ms); the loading status line and bar move softly */
html body #authView#authView#authView#authView.auth-c2[data-sx-login-method="password"]:not([data-auth-step="code"]) #sxSocialPanel:not([hidden]) + #loginForm { animation: d1-expand-in var(--motion-panel) var(--ease-out); }
@keyframes d1-expand-in { from { opacity: 0; transform: translateY(-6px); } }
html body #startupOverlay .soc-startup-progress-bar { transition: width var(--motion-standard) var(--ease-out) !important; }
html body #startupOverlay .soc-startup-message { animation: d1-fade-in var(--motion-standard) var(--ease-out); }
@keyframes d1-fade-in { from { opacity: 0; } }

/* ── C1 wizard focus: <body data-mode="wizard"> (SentrixD1Kit.wizardMode). Above 1366px the sidebar slides out (240ms) and the
   shell grid becomes 0 1fr; the top bar shows only 「‹ 나가기」 + the wizard name (global search and breadcrumb hidden).
   At 1366px and below the sidebar keeps its normal behaviour. */
.d1-wizard-bar { display: none; }
@media (min-width: 1367px) {
  html body.soc-desktop-shell .container.admin-layout { transition: grid-template-columns var(--motion-panel) ease-in-out; }
  html body.soc-desktop-shell #menuSheetPanel { transition: transform var(--motion-panel) ease-in-out, opacity var(--motion-panel); }
  /* r6: card wizards (보고하기 · 티켓 접수 · 행사 보고하기, data-wizard="card") keep the r3 entry: sidebar out, grid 0 1fr */
  html body.soc-desktop-shell[data-mode="wizard"][data-wizard="card"] .container.admin-layout { grid-template-columns: 0 minmax(0, 1fr) !important; }
  html body.soc-desktop-shell[data-mode="wizard"][data-wizard="card"] #menuSheetPanel#menuSheetPanel { pointer-events: none !important; } /* r13: position by animation below */
  /* r4 (F-WIZ): the top bar keeps only 「‹ 나가기」 | wizard name on the left and the account name on the right. Notifications,
     AI, theme, search, date, language, brand and the floating 도우미 button are hidden while the wizard runs. */
  html body.soc-desktop-shell[data-mode="wizard"] #appShellTopbar :is(#topbarBreadcrumb, #topbarCurrentTitle, #topbarGlobalSearchBtn, #topbarGlobalSearchPanel, .topbar-brand-heading, #menuToggleBtn, #topbarDateStatus, #topbarNotificationPermissionBtn, #openPasswordBtn, #topbarUtilityCluster, #topbarLanguageWrap, #topbarNotificationsBtn, #topbarThemeToggleBtn, #topbarAccountShortcutBtn, #arlsChatbotLauncher) { display: none !important; }
  html body.soc-desktop-shell[data-mode="wizard"] #supportChatbotLauncher { display: none !important; }
  html body.soc-desktop-shell[data-mode="wizard"] #appShellTopbar .d1-wizard-bar { display: inline-flex; align-items: center; gap: 0; margin-left: 16px; min-width: 0; }
  html body.soc-desktop-shell[data-mode="wizard"] #appShellTopbar .d1-wizard-bar .d1-wizard-exit { margin-right: 12px; }
  html body.soc-desktop-shell[data-mode="wizard"] #appShellTopbar .d1-wizard-bar .d1-wizard-title { padding-left: 16px; border-left: 1px solid var(--d1-line); line-height: 24px; }
}
.d1-wizard-exit { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px 0 6px; border: 0; border-radius: 8px; background: none; color: var(--d1-strong); font: 600 14px/1 var(--d1-font); cursor: pointer; white-space: nowrap; }
.d1-wizard-exit:hover { background: var(--d1-hover); }
.d1-wizard-exit svg { width: 18px; height: 18px; }
.d1-wizard-title { font: 700 16px/1.2 var(--d1-font); color: var(--d1-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── reduced motion: movement and size changes become an instant change, check strokes show their end state */
@media (prefers-reduced-motion: reduce) {
  :root { --motion-micro: 1ms; --motion-standard: 1ms; --motion-panel: 1ms; --motion-emphasis: 1ms; }
  .d1-row-motion, .d1-drawer, .d1-pop, .d1-dialog-backdrop, .d1-dialog, .d1-toast, .d1-done-mark, .d1-done-text, .d1-chk, .d1-roll, #menuSheetPanel, .container.admin-layout,
  .d1-row-motion *, .d1-chk *, .d1-done-mark * { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .d1-row-motion, .d1-toast, .d1-drawer { transform: none !important; }
  /* r4: with reduced motion the wizard sidebar fades (240ms) instead of sliding; the grid change is immediate */
  html body.soc-desktop-shell[data-mode="wizard"] #menuSheetPanel#menuSheetPanel { transform: none !important; }
  html body.soc-desktop-shell #menuSheetPanel#menuSheetPanel { transition: opacity 240ms linear !important; }
}

/* ══ r5 — the screen title appears once (DESIGN.md cdb30cace) ══
   The top bar has no screen name. After the content title ([data-d1-screen-title]) scrolls away, SentrixD1Kit fades a 16/700
   copy into the left of the top bar; it leaves when the title comes back. Breadcrumbs show parents only, above the title. */
html body #appShellTopbar #topbarCurrentTitle.d1-compact-title {
  display: block !important; margin-left: 16px; max-width: 40vw; min-width: 0;
  font: 700 16px/1.2 var(--d1-font) !important; color: var(--d1-ink) !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity var(--motion-standard) var(--ease-out);
}
html body #appShellTopbar #topbarCurrentTitle.d1-compact-title.is-in { opacity: 1; }
.d1-crumbs { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; min-width: 0; font: 500 13px/1.3 var(--d1-font); color: var(--d1-sub); }
.d1-crumb { border: 0; background: none; padding: 0; color: var(--d1-sub); font: inherit; cursor: pointer; white-space: nowrap; }
.d1-crumb:hover { color: var(--d1-selt); text-decoration: underline; }
.d1-crumb-sep { color: var(--d1-mute); }
@media (prefers-reduced-motion: reduce) {
  html body #appShellTopbar #topbarCurrentTitle.d1-compact-title { transition: none !important; }
}


/* ══ r6 — task wizards use the dark step rail (DESIGN.md cdb30cace 「Round 4」, F-WIZ2; values from F-WIZ2/scripts) ══
   <body data-mode="wizard" data-wizard="rail">: above 1366px the rail (214px, #1F2125, full height under the top bar) slides
   over the sidebar's exact place (translateX(-100%→0) 240ms) while the sidebar steps back (-24px, transparent). The rail starts
   with the step list (no name line); each step is number + main label. At 1366px and below there is no rail: a horizontal row
   of step chips sits above the work panel ([data-d1-wizard-chips]). Reduced motion: the rail fades. */
.d1-wizard-rail { display: none; }
.d1-wizard-chips { display: none; }
@media (min-width: 1367px) {
  .d1-wizard-rail {
    display: block; position: fixed; left: 0; top: var(--d1-topbar-h, 64px); bottom: 0; width: 214px; z-index: 450; box-sizing: border-box;
    padding: 24px 0 0; background: #1f2125; overflow-y: auto; transform: translateX(-100%);
    transition: transform var(--motion-panel) var(--ease-out), opacity var(--motion-panel);
  }
  .d1-wizard-rail.is-in { transform: none; }
  html body.soc-desktop-shell[data-mode="wizard"][data-wizard="rail"] #menuSheetPanel#menuSheetPanel { transform: translateX(-24px) !important; opacity: 0 !important; pointer-events: none !important; }
  html body.soc-desktop-shell[data-mode="wizard"][data-wizard="rail"] .container.admin-layout { background: #ffffff !important; }
}
@media (max-width: 1366px) {
  html body[data-mode="wizard"][data-wizard="rail"] .d1-wizard-chips { display: flex; }
}
.d1-wizard-rail ol { list-style: none; margin: 0; padding: 0; }
.d1-wizard-rail li { position: relative; height: 48px; margin: 0 12px 8px; padding: 0 12px; border-radius: 8px; display: flex; align-items: center; gap: 10px; box-sizing: border-box; font-family: var(--d1-font); }
.d1-wizard-rail li > button { all: unset; display: flex; align-items: center; gap: 10px; min-width: 0; width: 100%; height: 100%; cursor: pointer; }
.d1-wizard-rail li > button:focus-visible { outline: 2px solid #fb923c; outline-offset: 2px; border-radius: 6px; }
.d1-wizard-rail .d1-rail-c { width: 24px; height: 24px; border-radius: 50%; flex: none; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font: 700 12px/1 var(--d1-font); font-variant-numeric: tabular-nums; }
.d1-wizard-rail .d1-rail-c svg { width: 12px; height: 12px; }
.d1-wizard-rail .d1-rail-t { font: 600 15px/20px var(--d1-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.d1-wizard-rail li.is-current { background: #313236; }
.d1-wizard-rail li.is-current .d1-rail-c { background: #ff6b00; color: #fff; }
.d1-wizard-rail li.is-current .d1-rail-t { color: #fff; font-weight: 700; }
.d1-wizard-rail li.is-done .d1-rail-c { border: 1.5px solid #5a5e64; color: #c3c6cb; }
.d1-wizard-rail li.is-done .d1-rail-t { color: #c3c6cb; }
.d1-wizard-rail li.is-next .d1-rail-c { border: 1.5px solid #4a4e54; color: #8a8f96; }
.d1-wizard-rail li.is-next .d1-rail-t { color: #8a8f96; }
.d1-wizard-rail .d1-rail-ln { position: absolute; left: 23px; top: 40px; width: 2px; height: 24px; border-radius: 1px; background: #3c4043; }
.d1-wizard-rail .d1-rail-ln.is-on { background: #fb923c; }
/* work panel: content at most 1642px, centred (근무상황기록부 · 색인부 · Finance 1154, 행사 만들기 1256 use their own width) */
.d1-wizard-panel { max-width: 1642px; margin: 0 auto; padding: 40px 32px; box-sizing: border-box; }
.d1-wizard-step-k { font: 700 12px/16px var(--d1-font); color: #6f7785; letter-spacing: 0.4px; }
.d1-wizard-step-q { margin: 13px 0 0; font: 800 24px/32px var(--d1-font); color: var(--d1-ink); letter-spacing: -0.3px; }
/* ≤1366 step chips */
.d1-wizard-chips { gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.d1-wizard-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 6px; border-radius: 16px; background: var(--d1-card); border: 1px solid var(--d1-line); font: 600 13px/1 var(--d1-font); color: var(--d1-sub); white-space: nowrap; }
.d1-wizard-chip i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--d1-font); font-style: normal; border: 1.5px solid var(--d1-rule); color: var(--d1-mute); box-sizing: border-box; }
.d1-wizard-chip i svg { width: 10px; height: 10px; }
.d1-wizard-chip.is-current { background: var(--d1-sel); border-color: var(--d1-sel); color: var(--d1-selt); }
.d1-wizard-chip.is-current i { background: var(--d1-key); border-color: var(--d1-key); color: #fff; }
.d1-wizard-chip.is-done { color: var(--d1-strong); }
.d1-wizard-chip.is-done i { color: var(--d1-sub); }
/* horizontal step bar on covers (Round 4): main label under the number, no sub-lines; steps({stacked:true}) */
.d1-steps.d1-steps--stacked > span { flex-direction: column; justify-content: flex-start; gap: 6px; height: auto; padding-bottom: 4px; align-items: center; text-align: center; }
.d1-steps.d1-steps--stacked i { width: 28px; height: 28px; border-radius: 14px; font-size: 13px; }
.d1-steps.d1-steps--stacked > span > :is(em) { display: none; }
.d1-steps.d1-steps--stacked > span { font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  .d1-wizard-rail { transform: none !important; opacity: 0; transition: opacity 240ms linear !important; }
  .d1-wizard-rail.is-in { opacity: 1; }
  html body.soc-desktop-shell[data-mode="wizard"][data-wizard="rail"] #menuSheetPanel#menuSheetPanel,
  html body.soc-desktop-shell[data-mode="wizard"][data-wizard="card"] #menuSheetPanel#menuSheetPanel { transform: none !important; }
}

/* r7 (CSP): fixed spacers and the four-card skeleton row, formerly inline styles */
.d1-gap-16 { height: 16px; }
.d1-gap-8 { height: 8px; }
.d1-cards.d1-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.d1-avatar > svg { display: block; }

/* r10: a hidden top-bar title is never shown, whatever product rule (components.css :has(...)) gives .topbar-current-title */
html body #appShellTopbar #topbarCurrentTitle.hidden, html body #topbarCurrentTitle.topbar-current-title.hidden { display: none !important; }

/* r11 (VQA-D1SX2-A): the wizard top bar 「‹ 나가기 | 이름」 + account is there at every width — 1366, 1024 and 200% (960) too,
   where the sidebar or drawer itself stays as it is. Only the global controls step aside while a wizard runs. */
html body[data-mode="wizard"] #appShellTopbar :is(#topbarBreadcrumb, #topbarCurrentTitle, #topbarGlobalSearchBtn, #topbarGlobalSearchPanel, .topbar-brand-heading, #menuToggleBtn, #topbarDateStatus, #topbarNotificationPermissionBtn, #openPasswordBtn, #topbarUtilityCluster, #topbarLanguageWrap, #topbarNotificationsBtn, #topbarThemeToggleBtn, #topbarAccountShortcutBtn, #arlsChatbotLauncher) { display: none !important; }
html body[data-mode="wizard"] #supportChatbotLauncher { display: none !important; }
html body[data-mode="wizard"] #appShellTopbar .d1-wizard-bar:not([hidden]) { display: inline-flex !important; align-items: center; gap: 0; margin-left: 16px; min-width: 0; }
html body[data-mode="wizard"] #appShellTopbar .d1-wizard-bar .d1-wizard-exit { margin-right: 12px; flex: none; }
html body[data-mode="wizard"] #appShellTopbar .d1-wizard-bar .d1-wizard-title { padding-left: 16px; border-left: 1px solid var(--d1-line); line-height: 24px; max-width: 48vw; }

/* ══ r12 (VQA-D1SX2-A) ══
   D-SX-175: 보고하기 · 티켓 접수 step bar (components.css RP-04 drew finished steps as an ink-filled disc and an ink underline —
   DESIGN 「Never ink-black filled discs or dark underlines for completed steps」). Finished = white circle, 1.5px #D1D5DA ring,
   #5F6368 check; the line is split per step and orange up to the current step, grey after it (Step indicators). The same marks
   apply to the question rows inside a step (.w4-row-mark). */
html body #reportPanel#reportPanel#reportPanel#reportPanel#reportPanel#reportPanel #reportView .w4-step:is([data-w4-state="done"], [data-w4-state="skipped"])::after { background: var(--d1-key) !important; }
html body #reportPanel#reportPanel#reportPanel#reportPanel#reportPanel#reportPanel #reportView .w4-step:is([data-w4-state="done"], [data-w4-state="skipped"]) .w4-step-check circle,
html body #reportPanel#reportPanel#reportPanel#reportPanel#reportPanel#reportPanel #reportView .w4-row-mark svg circle { fill: var(--d1-card) !important; stroke: var(--d1-rule) !important; stroke-width: 1.5px !important; }
html body #reportPanel#reportPanel#reportPanel#reportPanel#reportPanel#reportPanel #reportView .w4-step:is([data-w4-state="done"], [data-w4-state="skipped"]) .w4-step-check path,
html body #reportPanel#reportPanel#reportPanel#reportPanel#reportPanel#reportPanel #reportView .w4-row-mark svg path { stroke: var(--d1-sub) !important; stroke-width: 2 !important; }
html body #reportPanel#reportPanel#reportPanel#reportPanel#reportPanel#reportPanel #reportView .w4-step:is([data-w4-state="done"], [data-w4-state="skipped"]) .w4-step-copy > strong { color: var(--d1-strong) !important; }

/* D-SX-183: with reduced motion, movement becomes a fade of the same length (ANIMATION-SPEC 0-3) instead of an instant swap —
   kit overlays, the 보고하기 · 티켓 접수 step change (#reportFlowStart.sxa-step-next/prev) and the top-bar drawers and popovers. */
@media (prefers-reduced-motion: reduce) {
  .d1-drawer { animation: d1-fade-in 240ms linear !important; transform: none !important; }
  .d1-drawer.is-closing { animation: d1-fade-out 192ms linear forwards !important; }
  .d1-pop { animation: d1-fade-in 150ms linear !important; }
  .d1-pop.is-closing { animation: d1-fade-out 100ms linear forwards !important; }
  .d1-dialog-backdrop { animation: d1-fade-in 200ms linear !important; }
  .d1-dialog-backdrop .d1-dialog { animation: d1-fade-in 240ms linear !important; }
  .d1-dialog-backdrop.is-closing, .d1-dialog-backdrop.is-closing .d1-dialog { animation: d1-fade-out 160ms linear forwards !important; }
  .d1-toast { transform: none !important; transition: opacity 200ms linear !important; }
  .d1-toast.is-closing { transition-duration: 160ms !important; }
  html body #reportFlowStart#reportFlowStart:is(.sxa-step-next, .sxa-step-prev) { animation: d1-fade-in 240ms linear !important; transform: none !important; }
  html body #topbarNotificationsDrawer#topbarNotificationsDrawer:not(.hidden), html body #topbarDownloadsDrawer#topbarDownloadsDrawer:not(.hidden) { animation: d1-fade-in 240ms linear !important; transform: none !important; }
  html body #topbarProfileDrawer#topbarProfileDrawer:not(.hidden), html body #topbarGlobalSearchPanel#topbarGlobalSearchPanel:not(.hidden) { animation: d1-fade-in 150ms linear !important; transform: none !important; }
}

/* ══ r13 (VQA-D1SX2-B D-SX-190) — card wizard immersion at 1367px and above (F-WIZ sx-report-entry-imm) ══
   The sidebar is position:fixed and the content is pushed by main's margin-left 214px, so the old grid 0 1fr never moved the
   content: it stayed centred 107px right of the window. Shared CSS (sentrix-redesign 3-id !important) also brought the 214px
   logo cell back, and the 티켓 path (#ticketsView left without .hidden) brought the bell back through :has() rules.
   Now main's margin goes to 0 (240ms), and the sidebar leaves by a 240ms animation of the individual `translate` property.
   Shared CSS pins transform/opacity with !important, so those cannot be animated. An animation still plays when the app
   re-renders the sidebar in the same frame, which cancels a transition. The top bar keeps only 「‹ 나가기 | 이름」 + account,
   whatever screen the wizard was opened from. Leaving the wizard plays the way back (body.d1-wizard-leaving, kit JS).
   With reduced motion the sidebar fades in place (opacity 240ms, r4 transition) and the content moves at once. */
@keyframes d1-wiz-sidebar-out { from { translate: 0 0; } to { translate: -100% 0; } }
@keyframes d1-wiz-sidebar-in { from { translate: -100% 0; } to { translate: 0 0; } }
@media (min-width: 1367px) {
  html body.soc-desktop-shell[data-mode="wizard"][data-wizard="card"] #menuSheetPanel#menuSheetPanel#menuSheetPanel#menuSheetPanel { animation: d1-wiz-sidebar-out 240ms ease-in-out both !important; }
  html body.soc-desktop-shell.d1-wizard-leaving:not([data-mode="wizard"]) #menuSheetPanel#menuSheetPanel#menuSheetPanel#menuSheetPanel { animation: d1-wiz-sidebar-in 240ms ease-in-out both !important; }
  html body.soc-desktop-shell[data-mode="wizard"][data-wizard="card"]:not(#d1a):not(#d1b):not(#d1c):not(#d1d):not(#d1e):not(#d1f) main.container.admin-layout { margin-left: 0 !important; width: 100% !important; max-width: 100% !important; transition: margin-left 240ms ease-in-out, width 240ms ease-in-out !important; }
  html body.soc-desktop-shell.d1-wizard-leaving:not([data-mode="wizard"]):not(#d1a):not(#d1b):not(#d1c):not(#d1d):not(#d1e):not(#d1f) main.container.admin-layout { transition: margin-left 240ms ease-in-out, width 240ms ease-in-out !important; }
}
/* the wizard top bar is the same from every entry: logo cell, breadcrumb, bell and the other global controls step aside */
html body[data-mode="wizard"]:not(#d1a):not(#d1b):not(#d1c):not(#d1d):not(#d1e):not(#d1f) #appShellTopbar :is(.topbar-brand-heading, #topbarBreadcrumb, #topbarCurrentTitle, #topbarGlobalSearchBtn, #topbarGlobalSearchPanel, #menuToggleBtn, #topbarDateStatus, #topbarNotificationPermissionBtn, #openPasswordBtn, #topbarUtilityCluster, #topbarLanguageWrap, #topbarNotificationsBtn, #topbarThemeToggleBtn, #topbarAccountShortcutBtn, #arlsChatbotLauncher) { display: none !important; }
html body[data-mode="wizard"]:not(#d1a):not(#d1b):not(#d1c):not(#d1d):not(#d1e):not(#d1f) #appShellTopbar > .topbar-left { padding-left: 16px !important; margin-left: 0 !important; }
html body[data-mode="wizard"]:not(#d1a):not(#d1b):not(#d1c):not(#d1d):not(#d1e):not(#d1f) #appShellTopbar .d1-wizard-bar:not([hidden]) { margin-left: 0 !important; }
@media (min-width: 1367px) and (prefers-reduced-motion: reduce) {
  html body.soc-desktop-shell:is([data-mode="wizard"], .d1-wizard-leaving) #menuSheetPanel#menuSheetPanel#menuSheetPanel#menuSheetPanel { animation: none !important; translate: none !important; }
  html body.soc-desktop-shell[data-mode="wizard"][data-wizard="card"]:not(#d1a):not(#d1b):not(#d1c):not(#d1d):not(#d1e):not(#d1f) #menuSheetPanel#menuSheetPanel { opacity: 0 !important; transition: opacity 240ms linear !important; }
  html body.soc-desktop-shell.d1-wizard-leaving:not(#d1a):not(#d1b):not(#d1c):not(#d1d):not(#d1e):not(#d1f) #menuSheetPanel#menuSheetPanel { transition: opacity 240ms linear !important; }
  /* r14 (D-SX-183): one more ID than the 240ms margin rule above, so with reduced motion the content moves at once */
  html body.soc-desktop-shell:is([data-mode="wizard"], .d1-wizard-leaving):not(#d1a):not(#d1b):not(#d1c):not(#d1d):not(#d1e):not(#d1f):not(#d1g) main.container.admin-layout { transition: none !important; }
}

/* ══ r14 (VQA-D1SX3-A · B) ══
   D-SX-183: the top-bar drawers closed by .hidden (display:none) at once. They now leave the way they came in: 알림 · 다운로드
   slide 24px right and fade out in 192ms, 계정 메뉴 · 통합 검색 lift and fade in 120ms (exit = 80% of the entry). The display
   change waits for the end (transition-behavior allow-discrete), so no app code changes. Reduced motion: fade only. */
html body:not(#d1a):not(#d1b) :is(#topbarNotificationsDrawer, #topbarDownloadsDrawer).hidden { opacity: 0 !important; translate: 24px 0; transition: opacity 192ms var(--ease-in, ease-in), translate 192ms var(--ease-in, ease-in), display 192ms allow-discrete !important; }
html body:not(#d1a):not(#d1b) :is(#topbarProfileDrawer, #topbarGlobalSearchPanel).hidden { opacity: 0 !important; translate: 0 -4px; transition: opacity 120ms var(--ease-in, ease-in), translate 120ms var(--ease-in, ease-in), display 120ms allow-discrete !important; }
html body:not(#d1a):not(#d1b) #topbarDrawerBackdrop.hidden { opacity: 0 !important; transition: opacity 192ms linear, display 192ms allow-discrete !important; }
@media (prefers-reduced-motion: reduce) {
  html body:not(#d1a):not(#d1b) :is(#topbarNotificationsDrawer, #topbarDownloadsDrawer, #topbarProfileDrawer, #topbarGlobalSearchPanel).hidden { translate: none; }
}
/* D-SX-212: with the closed 도우미 pill shown (1024px and up) the old N1/D4 rule ended the page scroller 72px above the window,
   so cards, the roster's last week, heatmaps and pagers were cut at a hard line over an empty band. The scroller now runs to the
   window bottom and only its bottom padding keeps the last content clear of the pill (DESIGN: no cut-off UI). 티켓 and 상황실,
   which fit the window and scroll inside, keep the band: their own lists end above the pill. */
@media (min-width: 1024px) {
  html body.soc-support-chatbot-on:not(.soc-auth-shell-active):has(#supportChatbotLauncher:not(.hidden)):not(:has(#dashboardPanel:not(.hidden) :is(#ticketsView, #alertsView):not(.hidden))):not(#d1a) .soc-app-shell > main.container.ds-page.admin-layout {
    height: 100% !important; max-height: 100% !important; padding-bottom: calc(var(--sxa-shell-reserve, 72px) + 16px) !important;
  }
}
/* dark theme: the photo-less avatar keeps its shape on a dark disc (the light #E5E7EA disc read as a white circle) */
:is(html[data-theme="dark"], body.dark) :is(#topbarProfileAvatar, #topbarProfileDrawerAvatar).is-silhouette:not(#d1a) { background: #3c4043 !important; }
:is(html[data-theme="dark"], body.dark) :is(#topbarProfileAvatar, #topbarProfileDrawerAvatar).is-silhouette:not(#d1a) > svg :is(circle, path) { fill: #9aa0a6; }
:is(html[data-theme="dark"], body.dark) .d1-avatar { background: #3c4043; }
:is(html[data-theme="dark"], body.dark) .d1-avatar svg :is(circle, path) { fill: #9aa0a6; }

/* ══ r15 (VQA-D1SX3-B D-SX-221) — a screen panel that is not the current screen stays hidden at every width ══
   At 960px (200% zoom) the settings panels' own display:grid !important (#id.class, d1-sxb.css) outranked the shared
   .admin-tab-content.hidden rule, so 리마인드 · 알림 설정 · 작업 기록 stacked empty under every screen (about 6,000px) and
   pushed 공지사항's title to y1736. Above 1023px a desktop rule happened to win. Two IDs here keep .hidden / [hidden] final
   for every screen panel of the shell, whatever a screen's own layout rule says. */
html body:not(#d1a):not(#d1b) main.container > :is(.admin-tab-content, .soc-workspace-panel):is(.hidden, [hidden]) { display: none !important; }

/* ══ r16 (VQA-D1SX4-A) ══
   D-SX-212 after 상황실 / 티켓: the app leaves #ticketsView / #alertsView without .hidden inside the hidden #dashboardPanel when
   another screen opens, so the r14 「티켓 · 상황실 keep the band」 exception still matched and 지원근무자 현황 · 순찰 · 리포트 허브 ·
   직원 점수 · 보고하기 kept the 944px scroller (grey band 1008–1080). The exception now needs the view inside a shown
   #dashboardPanel (edited in the r14 block above).
   H5: the legacy styles.css `button:hover { filter: brightness(1.1) }` washed the selected sidebar row's fill to white; the
   selected row keeps its fill under the pointer and keyboard focus. */
html body:is(.soc-desktop-shell, .soc-desktop-adaptive):not(.soc-auth-shell-active) #menuSheetPanel .soc-menu-sub-item.is-active:not(#d1sb):not(#d1sb):not(#d1sb):not(#d1sb):is(:hover, :focus-visible, :active) { filter: none !important; }

/* ══ r17 (VQA-D1SX4-B D-SX-212 직원 목록) ══
   At 1280px and up the shared PL-1 rule (sentrix-redesign 「한 화면 맞춤」) pins #dashboardPanel to height:100% as a flex column
   for 직원 목록, so the list should shrink inside it. The D1 people screen (d1-sxb2 .sxb2-people, mock sx-people: 「페이지가
   스크롤」) lays its pane and table out as normal blocks, so the list overflowed a fixed 928px panel and the pager showed 2px
   at 1920 · 1366 with no scroll. While the D1 people screen is shown the panel follows its content and the page scroller
   scrolls (its bottom padding still clears the 도우미 pill). */
@media (min-width: 1280px) {
  html body:not(#d1a):not(#d1b) #dashboardPanel#dashboardPanel.is-active:not(.hidden):has(#peopleView.sxb2-people.is-active:not(.hidden)) { display: block !important; height: auto !important; max-height: none !important; overflow: visible !important; }
}
/* D-SX-191 (SXB2 CDP · VQA): index.html #sentrixSharedShellSpacingAuthority zeroes main's top padding only through a list of
   「:has(#homeView:not(.hidden)) …」 keys. The app leaves the last realtime view without .hidden, so a screen opened after 홈
   matched by accident (title y96) and the same screen opened after 티켓 did not (y124): 보고하기 · 리포트 허브 · 직원 점수 · 순찰 ·
   작업 기록 · 맞춤 리포트 · 등록된 링크. Same root as D-SX-212 (a key on a view the previous screen left behind). The shell's top
   padding is now 0 for every desktop screen, whatever was open before; #dashboardPanel's too, including 주간 보고, which
   the list missed. Each screen keeps its own top spacing. */
/* r19 (D-SX-236): desktop shell only. The 960px (200%) adaptive shell keeps main's 16px top padding, which 상황실's own
   -32px pull-up (#alertsView) counts on; zeroing it there put the 상황실 title and 「사건 보고」 under the top bar. */
@media (min-width: 1024px) {
  html body.soc-desktop-shell:not(.soc-auth-shell-active):not(#d1a) main.container.admin-layout { padding-top: 0 !important; }
  html body.soc-desktop-shell:not(.soc-auth-shell-active):not(#d1a) #dashboardPanel:has(> #weeklyView:not(.hidden)) { padding-top: 0 !important; }
}

/* ══ r19 (VQA-D1SX5-A D-SX-238) — an unselected sidebar row shows a light fill under the pointer (H5, DESIGN 「Hover and
   selected tonal shift」); the label keeps its colour, the selected row keeps its own fill (r16). */
html:not([data-theme="dark"]) body:is(.soc-desktop-shell, .soc-desktop-adaptive):not(.soc-auth-shell-active) #menuSheetPanel .soc-menu-sub-item:not(.is-active):not(#d1sb):not(#d1sb):not(#d1sb):not(#d1sb):hover { background: #f1f3f4 !important; background-color: #f1f3f4 !important; --sx-solid-cut: #f1f3f4; }
html[data-theme="dark"] body:is(.soc-desktop-shell, .soc-desktop-adaptive):not(.soc-auth-shell-active) #menuSheetPanel .soc-menu-sub-item:not(.is-active):not(#d1sb):not(#d1sb):not(#d1sb):not(#d1sb):hover { background: rgba(255, 255, 255, 0.06) !important; }

/* ══ r20 (VQA-D1SX5-B D-SX-232) — one scroll owner: main ══
   Screen panels (#dashboardPanel and its views, .admin-tab-content, .soc-workspace-panel) clip x (overflow-x hidden), which
   makes them y scroll containers with no range of their own; with overscroll-behavior contain (index.html
   #sentrixHalfWidthResponsiveFinalAuthority) the wheel, trackpad and PageDown stopped there and never reached main. A screen
   panel now hands the scroll on to main; panels that really scroll keep scrolling first and pass the rest to main. */
html body:not(.soc-auth-shell-active):not(#d1a):not(#d1b) main.container.admin-layout > :is(.admin-tab-content, .soc-workspace-panel, #dashboardPanel),
html body:not(.soc-auth-shell-active):not(#d1a):not(#d1b) #dashboardPanel > :is(#homeView, #weeklyView, #alertsView, #ticketsView, #reportsHubView, #accountPanel, #peopleView, #myProfileView, #analyticsView),
html body:not(.soc-auth-shell-active):not(#d1a):not(#d1b) main.container.admin-layout [data-view-scroller="true"] { overscroll-behavior: auto !important; }

/* ══ r21 (smoke-d1sx5c D-SX-236 · D-SX-242) ══
   D-SX-236: below 1024px (200% = 960) #alertsView is pulled up 32px inside #dashboardPanel, which clips its own top (overflow-x
   hidden → y auto), so the 상황실 title and 「사건 보고」 were cut at the panel's top edge. At that width the view starts inside
   the panel's own padding instead.
   D-SX-242: the selected bottom tab (≤1023px) showed a curled 2px orange underline; DESIGN 「selection = fill + text colour, no
   bar」. It now takes the sidebar's selected fill and text colour, light and dark. */
@media (max-width: 1023.98px) {
  html body:not(.soc-auth-shell-active):not(#d1a):not(#d1b) #dashboardPanel > #alertsView#alertsView:not(.hidden) { margin-top: 0 !important; }
  html body:not(#d1a):not(#d1b) #bottomTabNav .soc-bottom-tab-btn.is-active { border-bottom-color: transparent !important; box-shadow: none !important; background: #fff3eb !important; color: #b64000 !important; border-radius: 12px; }
  html[data-theme="dark"] body:not(#d1a):not(#d1b) #bottomTabNav .soc-bottom-tab-btn.is-active,
  html body.dark:not(#d1a):not(#d1b) #bottomTabNav .soc-bottom-tab-btn.is-active { background: rgba(255, 107, 0, 0.14) !important; color: #ff8a3d !important; }
}

/* ══ r22 (운영 신고 12-01, d1sx6) ══
   D-SX-250: the 리포트 허브 detail drawer (.d1-drawer.sxb2-drawer, 주간 보고 · 사건 받기) opened in the page column, left of
   centre: an old shared list (components.css 60036, 「body.soc-desktop-shell #reportsHubView .soc-hub-preview-panel …
   { position: sticky; top: 16px }」) outranked the kit's position:fixed. A D1 drawer stays fixed at the right edge under the
   top bar (DESIGN), whatever an older panel rule on that screen says.
   D-SX-246: the 「?」 help button is one 20px circle everywhere (a title row's flex stretch drew 20×40 on 직원 점수), with a
   44px press area around it. */
html body.soc-desktop-shell:not(#d1a):not(#d1b) :is(#reportsHubView, #employeeScorePanel, #accountPanel, #peopleView, #auditPanel, #opsSupportPanel) .d1-drawer:not(.hidden) { position: fixed !important; }
html body:not(#d1a):not(#d1b):not(#d1c):not(#d1d):not(#d1e):not(#d1f):not(#d1g) .d1-help {
  box-sizing: border-box !important; flex: none !important; align-self: center !important; width: 20px !important; height: 20px !important;
  min-width: 20px !important; min-height: 20px !important; max-width: 20px !important; max-height: 20px !important; aspect-ratio: 1 / 1; border-radius: 50% !important; padding: 0 !important; position: relative; overflow: visible !important;
}
html body:not(#d1a):not(#d1b):not(#d1c):not(#d1d):not(#d1e):not(#d1f):not(#d1g) .d1-help::before { content: ""; position: absolute; inset: -12px -8px; border-radius: 50%; } /* 36×44 press area: wide enough, without covering a close or menu button beside it */

/* ══ r24 (D1 R7 AI-02, d1sx6) — AI 도우미 entry in the top bar, left of the bell (Sentrix HR pattern) ══
   40×40 ghost button (the bell's size in this top bar), radius 9, 21px Sentrix Solid aiAssistant glyph; hover and open = the light surface fill with a 1px
   inset line (HR arls-chatbot.css is-topbar). Shown only while the assistant is on for this company
   (body.soc-support-chatbot-on, set by js/support-chatbot.js); the floating 「도우미」 launcher and the bottom band it
   reserved are gone. The attached panel under the button is the assistant's own (SXB). */
html body #appShellTopbar #topbarAssistantBtn { display: none !important; }
html body.soc-support-chatbot-on:not(.soc-auth-shell-active) #appShellTopbar #topbarAssistantBtn {
  display: inline-grid !important; place-items: center; flex: none; box-sizing: border-box; width: 40px !important; height: 40px !important; min-width: 40px !important; padding: 0 !important; margin: 0 !important;
  border: 0 !important; border-radius: 9px !important; background: transparent !important; color: var(--d1-ink) !important; box-shadow: none !important; cursor: pointer;
}
html body #appShellTopbar #topbarAssistantBtn svg { width: 21px; height: 21px; display: block; }
/* the glyph keeps Sentrix Solid's own paint (white body, ink line, orange small sparkle, ink dot) in both themes, as the sidebar glyphs */
html body.soc-support-chatbot-on #appShellTopbar #topbarAssistantBtn:hover { background: var(--d1-hover) !important; }
html body.soc-support-chatbot-on #appShellTopbar #topbarAssistantBtn[aria-expanded="true"] { background: var(--d1-hover) !important; box-shadow: inset 0 0 0 1px var(--d1-rule) !important; }
html body.soc-support-chatbot-on #appShellTopbar #topbarAssistantBtn:focus-visible { outline: 2px solid var(--d1-key); outline-offset: 2px; }
html body[data-mode="wizard"] #appShellTopbar #topbarAssistantBtn { display: none !important; }
html body:has(#topbarAssistantBtn):not(#d1a):not(#d1b) #supportChatbotLauncher#supportChatbotLauncher { display: none !important; }
html body:has(#topbarAssistantBtn) { --sxa-shell-reserve: 0px; }
