/* ==========================================================================
   Jethur v3 — Components
   Every class here maps to a component in the Design System PDF
   (Components & Variants · Navigation & Layout · Charts).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Icons
   -------------------------------------------------------------------------- */
.ic { width: 16px; height: 16px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic-12 { width: 12px; height: 12px; }
.ic-14 { width: 14px; height: 14px; }
.ic-18 { width: 18px; height: 18px; }
.ic-20 { width: 20px; height: 20px; }
.ic-24 { width: 24px; height: 24px; }
.ic-fill { fill: currentColor; stroke: none; }

/* Icon tile (used in header meta, notifications, chart titles) */
.icon-tile { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.icon-tile.sm { width: 24px; height: 24px; border-radius: 6px; }
.icon-tile.lg { width: 40px; height: 40px; border-radius: 10px; }
.icon-tile.brand   { background: var(--brand); color: #fff; }
.icon-tile.success { background: var(--success-3); color: var(--success-1); }
.icon-tile.warning { background: var(--warning-3); color: var(--warning-1); }
.icon-tile.danger  { background: var(--danger-3); color: var(--danger-1); }
.icon-tile.pending { background: var(--pending-3); color: var(--pending-1); }
.icon-tile.retired { background: var(--retired-3); color: var(--retired-1); }
.icon-tile.newbie  { background: var(--newbie-3); color: var(--newbie-1); }
.icon-tile.inactive{ background: var(--inactive-3); color: var(--inactive-1); }
.icon-tile.deceased{ background: var(--deceased-3); color: var(--deceased-1); }
.icon-tile.orange  { background: var(--warning-1); color: #fff; }
.icon-tile.solid-success { background: var(--success-1); color: #fff; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: 6px; border: 1px solid transparent;
  font-size: var(--btn-size); font-weight: 400; line-height: 1; cursor: pointer;
  white-space: nowrap; user-select: none; transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  background: #fff; color: var(--text-primary);
}
.btn .ic { width: 14px; height: 14px; }
.btn:focus-visible { outline: 2px solid var(--success-2); outline-offset: 1px; }
.btn.sm { height: 26px; padding: 0 10px; font-size: 11px; border-radius: 5px; }
.btn.lg { height: 40px; padding: 0 20px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.pill { border-radius: var(--r-pill); }
.btn.icon { padding: 0; width: 32px; }
.btn.icon.sm { width: 26px; }

.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: #124d28; border-color: #124d28; }
.btn-primary:active { background: #0f4222; }

.btn-danger { background: var(--danger-1); color: #fff; border-color: var(--danger-1); }
.btn-danger:hover { background: #c20013; }

.btn-outline-danger { background: #fff; color: var(--danger-1); border-color: var(--danger-1); }
.btn-outline-danger:hover { background: var(--danger-3); }

.btn-default { background: #fff; color: var(--text-primary); border-color: var(--stroke-1); box-shadow: var(--shadow-sm); }
.btn-default:hover { background: var(--light-blue); border-color: var(--stroke-2); }

.btn-outline { background: #fff; color: var(--text-primary); border-color: var(--stroke-2); }
.btn-outline:hover { background: var(--inactive-3); }

.btn-outline-primary { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--success-3); }

.btn-success { background: var(--success-1); color: #fff; border-color: var(--success-1); }
.btn-success:hover { background: #0b6a53; }

.btn-dark { background: var(--nav-bar); color: #fff; border-color: var(--nav-bar); }
.btn-dark:hover { background: #2b3134; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--text-primary); }
.btn-ghost:hover { background: var(--inactive-3); }

.btn-ai { background: #fff; color: var(--text-primary); border-color: var(--ai-border); }
.btn-ai:hover { background: var(--ai-bg); }

.btn-link { background: none; border: none; padding: 0; height: auto; color: var(--text-link); font-size: var(--link-size); font-weight: 500; text-decoration: underline; }
.btn-link:hover { color: #995308; }

.btn:disabled, .btn.disabled { background: var(--inactive-3); color: var(--stroke-2); border-color: var(--inactive-3); cursor: not-allowed; box-shadow: none; }

.btn-add-new { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-primary); cursor: pointer; background: none; border: none; padding: 0; }
.btn-add-new .plus { width: 16px; height: 16px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.btn-add-new .plus .ic { width: 10px; height: 10px; stroke-width: 2.2; }

/* Modal action buttons (Approve / Revert / Reject) */
.btn-action { height: 24px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--stroke-1); background: #fff; font-size: 11px; color: var(--text-primary); cursor: pointer; }
.btn-action.approve.active { background: var(--success-3); color: var(--success-1); border-color: var(--success-2); }
.btn-action.revert.active  { background: var(--warning-3); color: var(--warning-1); border-color: var(--warning-2); }
.btn-action.reject.active  { background: var(--danger-3);  color: var(--danger-1);  border-color: var(--danger-2); }

/* --------------------------------------------------------------------------
   Badges / Status
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 4px; font-size: 11px; font-weight: 400; line-height: 1; white-space: nowrap; border: 1px solid transparent;
}
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.success  { background: var(--success-3);  color: var(--success-1);  border-color: var(--success-2); }
.badge.warning  { background: var(--warning-3);  color: var(--warning-1);  border-color: var(--warning-2); }
.badge.danger   { background: var(--danger-3);   color: var(--danger-1);   border-color: var(--danger-2); }
.badge.pending  { background: var(--pending-3);  color: var(--pending-1);  border-color: var(--pending-2); }
.badge.inactive { background: var(--inactive-3); color: var(--inactive-1); border-color: var(--inactive-2); }
.badge.deceased { background: var(--deceased-3); color: var(--deceased-1); border-color: var(--deceased-2); }
.badge.retired  { background: var(--retired-3);  color: var(--retired-1);  border-color: var(--retired-2); }
.badge.newbie   { background: var(--newbie-3);   color: var(--newbie-1);   border-color: var(--newbie-2); }
.badge.info     { background: var(--retired-3);  color: var(--retired-1);  border-color: var(--retired-2); }
.badge.ai       { background: #fff; color: var(--text-primary); border-color: var(--ai-border); }
.badge.ai .ai-mark { width: 12px; height: 14px; }
.badge.plain    { background: #fff; color: var(--text-primary); border-color: var(--stroke-1); }

/* Risk status — solid */
.badge.solid { color: #fff; border-color: transparent; font-weight: 400; }
.badge.solid.very-low { background: var(--success-1); }
.badge.solid.low      { background: var(--brand); }
.badge.solid.medium   { background: var(--warning-1); }
.badge.solid.high     { background: var(--danger-1); }
.badge.solid.critical { background: var(--danger-1); }
.badge.solid.dark     { background: var(--nav-bar); }

/* Review status — dot + text */
.badge.review { padding: 0 8px; }
.badge.review .dot { width: 4px; height: 4px; }

/* Framework badge — icon + label */
.badge.framework { padding: 0 8px 0 6px; border-radius: var(--r-pill); }
.badge.framework .ic { width: 11px; height: 11px; }
.badge.framework.solid { background: var(--nav-bar); color: #fff; }

/* Count badge */
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 16px; padding: 0 5px; border-radius: var(--r-pill); background: var(--success-1); color: #fff; font-size: 9px; font-weight: 500; }
.count.light { background: var(--success-3); color: var(--success-1); }
.count.danger { background: var(--danger-1); }
.count.warning { background: var(--warning-1); }

/* --------------------------------------------------------------------------
   Avatars
   -------------------------------------------------------------------------- */
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--newbie-1); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 500; flex: 0 0 auto; letter-spacing: .2px; }
.avatar.xs { width: 20px; height: 20px; font-size: 8px; }
.avatar.sm { width: 24px; height: 24px; font-size: 9px; }
.avatar.lg { width: 36px; height: 36px; font-size: 12px; }
.avatar.xl { width: 44px; height: 44px; font-size: 14px; }
.avatar.c-purple { background: var(--newbie-1); }
.avatar.c-orange { background: var(--warning-1); }
.avatar.c-green  { background: var(--success-1); }
.avatar.c-gold   { background: var(--pending-1); }
.avatar.c-blue   { background: var(--retired-1); }
.avatar.c-dark   { background: var(--nav-bar); }
.avatar.c-brand  { background: var(--brand); }
.avatar-group { display: inline-flex; align-items: center; }
.avatar-group .avatar { border: 2px solid #fff; margin-left: -8px; }
.avatar-group .avatar:first-child { margin-left: 0; }

.user { display: inline-flex; align-items: center; gap: 8px; }
.user .user-name { font-size: 12px; color: var(--text-primary); line-height: 1.2; }
.user .user-role { font-size: 10px; color: var(--text-secondary); line-height: 1.2; }
.user.boxed { padding: 6px 10px; border: 1px solid var(--stroke-1); border-radius: 8px; background: #fff; }
.user .user-action { color: var(--text-secondary); cursor: pointer; }

/* --------------------------------------------------------------------------
   Form fields
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 12px; font-weight: 500; color: var(--text-primary); }
.field-label .req { color: var(--danger-1); }
.field-help { font-size: 11px; color: var(--text-secondary); }
.field-error { font-size: 11px; color: var(--danger-1); }

.control {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border: 1px solid var(--stroke-1); border-radius: 6px; background: #fff; color: var(--text-primary);
  font-size: 12px; transition: border-color .15s, box-shadow .15s; position: relative;
}
.control .ic { color: var(--text-secondary); }
.control input, .control select, .control textarea {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 12px; color: var(--text-primary); padding: 0; height: 100%;
}
.control input::placeholder, .control textarea::placeholder { color: var(--text-secondary); }
.control:hover { border-color: var(--stroke-2); }
.control:focus-within, .control.focus { border-color: var(--success-1); box-shadow: 0 0 0 1px var(--success-1) inset; }
.control.error { border-color: var(--danger-1); }
.control.error:focus-within { box-shadow: 0 0 0 1px var(--danger-1) inset; }
.control.disabled, .control:has(input:disabled), .control:has(textarea:disabled) { background: var(--inactive-3); border-color: var(--stroke-1); color: var(--stroke-2); pointer-events: none; }
.control.disabled input::placeholder, .control.disabled .ic, .control.disabled .placeholder { color: var(--stroke-2); }
.control .placeholder { color: var(--text-secondary); flex: 1; }
.control .value { flex: 1; color: var(--text-primary); }
.control.textarea { height: auto; min-height: 80px; align-items: flex-start; padding: 10px 12px; }
.control.textarea textarea { resize: vertical; min-height: 58px; line-height: 1.4; }
.control.select { cursor: pointer; }
.control .caret { margin-left: auto; color: var(--text-secondary); }
.control.search { border-radius: 6px; }
.control.search .clear { cursor: pointer; color: var(--text-secondary); }
.control.rounded { border-radius: var(--r-pill); }

/* Number spinner */
.control.number .spin { display: flex; flex-direction: column; margin-left: auto; color: var(--text-secondary); }
.control.number .spin button { border: none; background: none; padding: 0; height: 10px; line-height: 0; cursor: pointer; color: inherit; display: flex; }
.control.number .spin .ic { width: 10px; height: 10px; }

/* Tags inside multi-select */
.tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px 0 8px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 10px; }
.tag .x { cursor: pointer; opacity: .8; font-size: 11px; line-height: 1; }
.tag.light { background: var(--success-3); color: var(--success-1); }
.tag.chip { background: #fff; border: 1px solid var(--stroke-2); color: var(--text-primary); border-radius: var(--r-pill); height: 22px; }

/* Date range */
.range { display: flex; align-items: center; gap: 8px; }
.range .control { flex: 1; }
.range .arrow { color: var(--text-secondary); font-size: 12px; }

/* Rich text editor */
.rte { border: 1px solid var(--stroke-1); border-radius: 6px; background: #fff; overflow: hidden; transition: border-color .15s; }
.rte:focus-within, .rte.focus { border-color: var(--success-1); }
.rte.error { border-color: var(--danger-1); }
.rte.disabled { background: var(--inactive-3); color: var(--stroke-2); pointer-events: none; }
.rte-toolbar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--stroke-1); background: var(--light-blue); }
.rte.disabled .rte-toolbar { background: transparent; }
.rte-toolbar button { border: none; background: none; width: 24px; height: 24px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-primary); font-size: 12px; }
.rte-toolbar button:hover { background: var(--stroke-1); }
.rte-toolbar .sep { width: 1px; height: 14px; background: var(--stroke-2); margin: 0 4px; }
.rte-body { min-height: 96px; padding: 10px 12px; font-size: 12px; color: var(--text-primary); outline: none; }
.rte-body:empty::before { content: attr(data-placeholder); color: var(--text-secondary); }
.rte.disabled .rte-body:empty::before { color: var(--stroke-2); }

/* Dropdown popover (select options) */
.popover { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border-radius: 8px; box-shadow: var(--shadow-popover); padding: 6px; z-index: 40; }
.popover.static { position: static; box-shadow: var(--shadow-popover); }
.option { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; color: var(--text-primary); }
.option:hover { background: var(--inactive-3); }
.option.selected { background: var(--success-3); color: var(--success-1); }
.option .check { margin-left: auto; color: var(--success-1); }
.option .dot { width: 6px; height: 6px; border-radius: 50%; }
.option-group { font-size: 11px; color: var(--text-secondary); padding: 8px 10px 4px; }
.option .avatar { width: 24px; height: 24px; font-size: 8px; }
.option .opt-title { font-size: 12px; line-height: 1.2; }
.option .opt-sub { font-size: 10px; color: var(--text-secondary); line-height: 1.2; }
.option.selected .opt-sub { color: var(--success-1); opacity: .85; }
.popover .control.search { height: 30px; margin: 2px 2px 6px; }

/* --------------------------------------------------------------------------
   Selection controls
   -------------------------------------------------------------------------- */
.checkbox, .radio { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--stroke-2); background: #fff; cursor: pointer; display: inline-grid; place-content: center; flex: 0 0 auto; transition: all .12s; }
.checkbox { border-radius: 4px; }
.radio { border-radius: 50%; }
.checkbox:hover, .radio:hover { border-color: var(--success-1); }
.checkbox:checked, .checkbox:indeterminate { background: var(--success-1); border-color: var(--success-1); }
.checkbox:checked::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.checkbox:indeterminate::after { content: ''; width: 8px; height: 2px; background: #fff; }
.radio:checked { border-color: var(--success-1); border-width: 1.5px; }
.radio:checked::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success-1); }
.checkbox:disabled, .radio:disabled { background: var(--inactive-2); border-color: var(--inactive-2); cursor: not-allowed; }
.checkbox:disabled:checked { background: var(--deceased-2); border-color: var(--deceased-2); }
.radio:disabled:checked::after { background: var(--inactive-1); }

.switch { appearance: none; -webkit-appearance: none; width: 32px; height: 18px; border-radius: var(--r-pill); background: var(--inactive-2); border: 1px solid var(--stroke-2); position: relative; cursor: pointer; margin: 0; transition: background .15s; flex: 0 0 auto; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch:checked { background: var(--success-1); border-color: var(--success-1); }
.switch:checked::after { left: 16px; }
.switch:disabled { background: var(--inactive-3); border-color: var(--stroke-1); cursor: not-allowed; }
.switch:disabled:checked { background: var(--success-2); border-color: var(--success-2); }

.check-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; }
.check-label .lbl-title { font-size: 12px; line-height: 1.2; }
.check-label .lbl-sub { font-size: 10px; color: var(--text-secondary); line-height: 1.2; }

/* Switcher toggle (grid / list) */
.switcher { display: inline-flex; border: 1px solid var(--stroke-1); border-radius: 6px; padding: 2px; background: #fff; gap: 2px; }
.switcher button { width: 24px; height: 24px; border: none; border-radius: 4px; background: transparent; color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.switcher button .ic { width: 13px; height: 13px; }
.switcher button.active { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--stroke-1); }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 2px 10px; font-size: 12px; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; border-top: 0; border-left: 0; border-right: 0; }
.tab .ic { width: 13px; height: 13px; }
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs.borderless { border-bottom: none; }

/* Filter tabs (pill) */
.filter-tab { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--stroke-1); background: #fff; font-size: 11px; cursor: pointer; color: var(--text-primary); }
.filter-tab .ic { width: 11px; height: 11px; }
.filter-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.filter-tab:hover:not(.active) { background: var(--inactive-3); }

/* Segmented (View History / Approval Levels) */
.segmented { display: inline-flex; gap: 6px; }
.segmented button { height: 26px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--stroke-1); background: #fff; font-size: 11px; cursor: pointer; }
.segmented button.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* --------------------------------------------------------------------------
   Slider / Compliance score
   -------------------------------------------------------------------------- */
.hslider { display: flex; flex-direction: column; gap: 6px; }
.hslider-track { position: relative; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #E85A4F 0%, #F0A04B 50%, #FFC55A 70%, #8FCC60 100%); }
.hslider-track.muted { background: linear-gradient(90deg, #EEC2C5 0%, #EDD7BF 50%, #F7E080 70%, #AFD6CC 100%); }
.hslider-thumb { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--warning-1); transform: translate(-50%, -50%); cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.hslider-thumb.danger { border-color: var(--danger-1); }
.hslider-thumb.success { border-color: var(--success-1); }
.hslider-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-secondary); }
.hslider-labels .active { font-weight: 500; }
.hslider-labels .active.danger { color: var(--danger-1); }
.hslider-labels .active.warning { color: var(--warning-1); }
.hslider-labels .active.success { color: var(--success-1); }
.score-box { width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; }
.score-box.danger { background: var(--danger-3); color: var(--danger-1); }
.score-box.warning { background: var(--warning-3); color: var(--warning-1); }
.score-box.success { background: var(--success-3); color: var(--success-1); }
.score-box.plain { background: var(--inactive-3); color: var(--text-primary); }

/* --------------------------------------------------------------------------
   Progress
   -------------------------------------------------------------------------- */
.progress { display: flex; flex-direction: column; gap: 6px; }
.progress-head { display: flex; justify-content: space-between; font-size: 11px; }
.progress-head .pct { color: var(--success-1); font-weight: 500; }
.progress-track { height: 5px; border-radius: 3px; background: var(--stroke-1); overflow: hidden; }
.progress-track.thin { height: 3px; }
.progress-track.thick { height: 8px; }
.progress-bar { height: 100%; border-radius: 3px; background: var(--success-1); transition: width .3s; }
.progress-bar.brand { background: var(--brand); }
.progress-bar.danger { background: var(--danger-1); }
.progress-bar.warning { background: var(--warning-1); }
.progress-bar.blue { background: var(--retired-1); }
.progress-sub { font-size: 10px; color: var(--text-secondary); }
.progress-row { display: flex; align-items: center; gap: 12px; font-size: 11px; }
.progress-row .label { width: 90px; flex: 0 0 auto; color: var(--text-primary); }
.progress-row .progress-track { flex: 1; }
.progress-row .pct { width: 32px; text-align: right; color: var(--text-primary); font-size: 10px; }
.progress-row .chev { color: var(--text-secondary); }
.progress-segmented { display: flex; gap: 3px; height: 6px; }
.progress-segmented span { flex: 1; border-radius: 3px; background: var(--stroke-1); }
.progress-segmented span.fill-1 { background: var(--success-1); }
.progress-segmented span.fill-2 { background: var(--retired-1); }

/* Progress stepper */
.stepper { display: flex; align-items: center; }
.stepper .step { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--stroke-2); background: #fff; color: var(--text-secondary); }
.stepper .step .ic { width: 12px; height: 12px; }
.stepper .step.done, .stepper .step.current { background: var(--success-1); border-color: var(--success-1); color: #fff; }
.stepper .step.pending { background: var(--inactive-2); border-color: var(--inactive-2); color: var(--inactive-1); }
.stepper .line { width: 72px; height: 2px; background: var(--stroke-1); margin: 0 12px; }
.stepper .line.done { background: var(--success-1); }

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */
.alert { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; border: 1px solid; font-size: 11px; }
.alert .alert-icon { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 600; flex: 0 0 auto; }
.alert .alert-icon .ic { width: 10px; height: 10px; stroke-width: 2.5; }
.alert .alert-title { font-weight: 500; }
.alert .alert-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; }
.alert .alert-close { cursor: pointer; font-size: 12px; line-height: 1; }
.alert.info    { background: var(--retired-3); border-color: var(--retired-2); color: var(--text-primary); } .alert.info .alert-icon { background: var(--retired-1); } .alert.info .alert-close { color: var(--retired-1); }
.alert.success { background: var(--success-3); border-color: var(--success-2); } .alert.success .alert-icon { background: var(--success-1); } .alert.success .alert-close { color: var(--success-1); }
.alert.warning { background: var(--warning-3); border-color: var(--warning-2); } .alert.warning .alert-icon { background: var(--warning-1); } .alert.warning .alert-close { color: var(--warning-1); }
.alert.danger  { background: var(--danger-3);  border-color: var(--danger-2); }  .alert.danger .alert-icon { background: var(--danger-1); } .alert.danger .alert-close { color: var(--danger-1); }

/* Info strip inside dialogs */
.strip { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; border: 1px solid; font-size: 11px; text-align: left; }
.strip .ic { width: 13px; height: 13px; flex: 0 0 auto; }
.strip.warning { background: var(--warning-3); border-color: var(--warning-2); color: var(--warning-1); }
.strip.success { background: var(--success-3); border-color: var(--success-2); color: var(--success-1); }
.strip.info    { background: var(--retired-3); border-color: var(--retired-2); color: var(--retired-1); }

/* Toast (runtime) */
.toast-host { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast-host .alert { box-shadow: var(--shadow-lg); min-width: 320px; animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.breadcrumb a { color: var(--brand); display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb .sep { color: var(--text-secondary); font-size: 10px; }
.breadcrumb .current { color: var(--text-primary); font-weight: 500; }

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--text-secondary); flex-wrap: wrap; }
.pagination .page-size { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 1px solid var(--stroke-1); border-radius: 4px; background: #fff; color: var(--text-primary); cursor: pointer; }
.pagination .pages { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.pagination .page { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 4px; border: none; background: transparent; color: var(--text-primary); font-size: 11px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.pagination .page:hover { background: var(--inactive-3); }
.pagination .page.active { background: var(--brand); color: #fff; }
.pagination .page:disabled { color: var(--stroke-2); cursor: not-allowed; }
.pagination .page .ic { width: 10px; height: 10px; }

/* --------------------------------------------------------------------------
   Cards & panels
   -------------------------------------------------------------------------- */
.card { background: #fff; border: 1px solid var(--stroke-1); border-radius: 12px; }
.card.shadow { border-color: transparent; box-shadow: var(--shadow-md); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--stroke-1); }
.card-head .card-title { font-size: 13px; font-weight: 500; }
.card-head .card-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.card-body { padding: 16px; }
.card-foot { padding: 12px 16px; border-top: 1px solid var(--stroke-1); display: flex; align-items: center; gap: 8px; }
.card.p-12 .card-body { padding: 12px; }
.card.chart { padding: 0; }
.card.chart .card-body { padding: 16px 20px 20px; }

.kv { display: flex; flex-direction: column; gap: 2px; }
.kv .k { font-size: 11px; color: var(--text-secondary); }
.kv .v { font-size: 12px; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px 24px; }
.kv-box { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--stroke-1); border-radius: 8px; overflow: hidden; background: #fff; }
.kv-box .kv { padding: 10px 12px; border-right: 1px solid var(--stroke-1); border-bottom: 1px solid var(--stroke-1); }
.kv-box .kv:nth-child(3n) { border-right: none; }
.kv-box .kv:nth-last-child(-n+3) { border-bottom: none; }

/* Header meta blocks (Title Goes Here / Content) */
.meta-item { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-left: 1px solid var(--stroke-1); }
.meta-item:first-child { border-left: none; padding-left: 0; }
.meta-item .kv .k { font-size: 11px; }
.meta-item .kv .v { font-size: 12px; }

/* Evidence card */
.evidence { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--stroke-1); border-radius: 10px; background: #fff; }
.evidence .file-icon { width: 30px; height: 30px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 9px; font-weight: 600; flex: 0 0 auto; }
.file-icon.pdf { background: #DB0015; } .file-icon.docx { background: #1D60E2; } .file-icon.xlsx { background: #0E7B61; } .file-icon.txt { background: #611EBA; } .file-icon.img { background: #B6630A; } .file-icon.word { background: #2B5FB8; }
.evidence .ev-title { font-size: 12px; font-weight: 500; }
.evidence .ev-sub { font-size: 10px; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 4px; }
.evidence .ev-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--text-secondary); }
.evidence .ev-actions .ic { width: 13px; height: 13px; cursor: pointer; }
.evidence.stack { flex-direction: column; align-items: stretch; padding: 0; }
.evidence.stack .ev-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.evidence.stack .ev-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-top: 1px solid var(--stroke-1); font-size: 11px; }
.evidence.stack .ev-foot .ev-btns { display: inline-flex; gap: 8px; }

/* Dropzone */
.dropzone { border: 1px dashed var(--success-2); background: var(--success-3); border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.dropzone .dz-icon { width: 28px; height: 28px; border-radius: 6px; background: var(--success-1); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.dropzone .dz-title { font-size: 12px; font-weight: 500; }
.dropzone .dz-title a { color: var(--brand); text-decoration: underline; }
.dropzone .dz-sub { font-size: 10px; color: var(--text-secondary); }
.dropzone .btn { margin-left: auto; }
.dropzone.large { flex-direction: column; text-align: center; padding: 24px; gap: 8px; }
.dropzone.large .btn { margin-left: 0; margin-top: 6px; }
.dropzone.large .dz-types { display: flex; gap: 6px; justify-content: center; margin-top: 4px; }
.dropzone .type-chip { height: 20px; padding: 0 8px; border-radius: var(--r-pill); border: 1px solid var(--stroke-2); background: #fff; font-size: 10px; display: inline-flex; align-items: center; }

/* AI analysing list */
.ai-analysing { border: 1px solid var(--ai-border); border-radius: 10px; background: #fff; }
.ai-analysing .aa-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--stroke-1); font-size: 12px; font-weight: 500; }
.ai-analysing .aa-head .caret { margin-left: auto; color: var(--text-secondary); }
.ai-analysing .aa-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 11px; color: var(--text-primary); border-bottom: 1px solid var(--stroke-1); }
.ai-analysing .aa-row:last-child { border-bottom: none; }
.ai-analysing .aa-row .aa-tag { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: var(--pending-3); color: var(--pending-1); white-space: nowrap; }

/* Compliance card */
.comp-card { background: #fff; border: 1px solid var(--stroke-1); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.comp-card .cc-top { display: flex; align-items: center; gap: 8px; }
.comp-card .cc-top .more { margin-left: auto; color: var(--text-secondary); cursor: pointer; }
.comp-card .cc-title { font-size: 13px; font-weight: 500; line-height: 1.35; }
.comp-card .cc-date { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: var(--warning-3); border-radius: 8px; font-size: 12px; }
.comp-card .cc-date .d { font-weight: 500; color: var(--warning-1); }
.comp-card .cc-date .due { font-size: 10px; color: var(--warning-1); display: inline-flex; align-items: center; gap: 4px; }
.comp-card .cc-foot { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--text-secondary); padding-top: 10px; border-top: 1px solid var(--stroke-1); }
.comp-card .cc-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.comp-card .cc-box { border: 1px solid var(--stroke-1); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.comp-card .cc-box .k { font-size: 10px; color: var(--text-secondary); }

/* Activate standard card */
.std-card { background: #fff; border: 1px solid var(--stroke-1); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.std-card .std-logo { width: 32px; height: 32px; border-radius: 6px; background: var(--newbie-1); color: #fff; font-size: 9px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.std-card .std-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 10px; color: var(--text-secondary); }
.std-card .std-meta span { display: inline-flex; align-items: center; gap: 4px; }
.std-card .std-meta .new { color: var(--warning-1); }
.std-card .std-license { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 6px; background: var(--warning-3); color: var(--warning-1); font-size: 10px; }

/* Insight card */
.insight { background: #fff; border: 1px solid var(--stroke-1); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.insight .in-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.insight .in-num { font-size: 20px; font-weight: 500; }
.insight .in-sub { font-size: 10px; }

/* Document card */
.doc-card { background: #fff; border: 1px solid var(--stroke-1); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.doc-card .dc-top { display: flex; align-items: center; gap: 8px; }
.doc-card .dc-top .more { margin-left: auto; color: var(--text-secondary); cursor: pointer; }
.doc-card .dc-title { font-size: 13px; font-weight: 500; line-height: 1.35; }
.doc-card .dc-meta { display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--text-secondary); }
.doc-card .dc-meta .type { color: var(--pending-1); display: inline-flex; align-items: center; gap: 3px; }
.doc-card .dc-ack { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 8px; background: var(--success-3); font-size: 11px; }
.doc-card .dc-foot { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--text-secondary); padding-top: 10px; border-top: 1px solid var(--stroke-1); }

/* Overview / cover card */
.cover { border: 1px dashed var(--success-2); background: var(--success-3); border-radius: 10px; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.cover .cover-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--newbie-2); color: var(--newbie-1); display: inline-flex; align-items: center; justify-content: center; }
.cover .cover-title { font-size: 12px; font-weight: 500; }
.cover .cover-sub { font-size: 10px; color: var(--text-secondary); }

/* Checkout bars */
.checkout-bar { display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 8px 0 14px; background: var(--nav-bar); color: #fff; border-radius: 8px; font-size: 11px; }
.checkout-bar .btn { height: 26px; font-size: 11px; }

/* Review details */
.review-panel { background: #fff; border: 1px solid var(--stroke-1); border-radius: 10px; }
.review-panel .rp-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; font-weight: 500; }
.review-panel .rp-head .right { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--warning-1); }
.review-panel .rp-body { padding: 12px; border-top: 1px solid var(--stroke-1); }
.review-panel .rp-actions { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-top: 1px solid var(--stroke-1); font-size: 12px; }

/* Empty state */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 24px 16px; }
.empty .empty-title { font-size: 13px; font-weight: 500; }
.empty .empty-sub { font-size: 11px; color: var(--text-secondary); max-width: 320px; }
.empty .empty-art { margin-bottom: 8px; }
.skeleton-card { width: 150px; padding: 10px 12px; border-radius: 8px; background: #fff; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 8px; }
.skeleton-card .lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.skeleton-card .lines span { height: 5px; border-radius: 3px; background: var(--stroke-1); }
.skeleton-card .lines span:last-child { width: 60%; }
.skeleton-card.fail .mark { width: 20px; height: 20px; border-radius: 50%; background: var(--danger-3); color: var(--danger-1); display: inline-flex; align-items: center; justify-content: center; }
.skeleton-card .mark.sync { width: 20px; height: 20px; border-radius: 50%; background: var(--success-3); color: var(--success-1); display: inline-flex; align-items: center; justify-content: center; }

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */
.accordion { background: #fff; border: 1px solid var(--stroke-1); border-radius: 10px; overflow: hidden; }
.accordion + .accordion { margin-top: 10px; }
.acc-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; user-select: none; }
.acc-head .acc-title { font-size: 13px; font-weight: 500; }
.acc-head .acc-sub { font-size: 10px; color: var(--text-secondary); }
.acc-head .acc-right { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.acc-head .chev { color: var(--text-secondary); transition: transform .2s; }
.accordion.open .acc-head .chev { transform: rotate(180deg); }
.acc-body { display: none; border-top: 1px solid var(--stroke-1); padding: 14px; }
.accordion.open .acc-body { display: block; }
.accordion.success-tint { background: var(--success-3); border-color: var(--success-2); }
.accordion.ai-tint { border: 2px solid; border-image: linear-gradient(90deg, var(--success-1), var(--cards)) 1; border-radius: 0; }

/* Requirement accordion header */
.req-code { font-size: 11px; color: var(--warning-1); font-weight: 500; }
.req-title { font-size: 12px; font-weight: 500; }
.req-meta { display: flex; align-items: center; gap: 16px; font-size: 10px; color: var(--text-primary); margin-top: 6px; }
.req-meta .m { display: inline-flex; align-items: center; gap: 5px; }
.req-meta .m .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success-1); }
.req-meta .m b { font-weight: 500; }

/* Vertical evidence stepper */
.vstep { display: grid; grid-template-columns: 24px 1fr; gap: 0 12px; }
.vstep .vs-node { display: flex; flex-direction: column; align-items: center; }
.vstep .vs-node .circle { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--stroke-2); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--success-1); flex: 0 0 auto; }
.vstep .vs-node .circle.muted { background: var(--inactive-2); border-color: var(--inactive-2); }
.vstep .vs-node .vline { flex: 1; width: 1px; background: var(--stroke-2); min-height: 10px; }
.vstep .vs-content { padding-bottom: 12px; }

/* AI analysis timeline (Frame 2147227578) */
.ai-timeline { border: 1.5px solid transparent; border-radius: 12px; background: linear-gradient(#fff,#fff) padding-box, linear-gradient(90deg, var(--success-1), var(--cards)) border-box; padding: 14px 16px; }
.ai-timeline .at-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.ai-timeline .at-row { display: grid; grid-template-columns: 16px 1fr; gap: 0 10px; position: relative; padding-bottom: 12px; }
.ai-timeline .at-row .at-icon { color: var(--pending-1); display: flex; flex-direction: column; align-items: center; }
.ai-timeline .at-row .at-icon .ic { width: 14px; height: 14px; }
.ai-timeline .at-row .at-icon::after { content: ''; flex: 1; width: 1px; background: var(--success-2); margin-top: 4px; }
.ai-timeline .at-row:last-child .at-icon::after { display: none; }
.ai-timeline .at-title { font-size: 12px; font-weight: 500; }
.ai-timeline .at-sub { font-size: 10px; color: var(--text-secondary); margin: 2px 0 6px; }
.ai-timeline .at-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ai-timeline .at-tags .badge { height: 18px; font-size: 9px; }

/* --------------------------------------------------------------------------
   Dropdown menu
   -------------------------------------------------------------------------- */
.menu { background: #fff; border-radius: 8px; box-shadow: var(--shadow-popover); padding: 4px; min-width: 180px; }
.menu-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 11px; color: var(--text-primary); cursor: pointer; border-radius: 6px; border-bottom: 1px solid var(--stroke-1); }
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: var(--inactive-3); }
.menu-item .ic { width: 13px; height: 13px; color: var(--text-secondary); }
.menu-item.danger { color: var(--danger-1); }
.menu-item.danger .ic { color: var(--danger-1); }
.menu.flat .menu-item { border-bottom: none; }
.dropdown { position: relative; display: inline-block; }
.dropdown > .menu { position: absolute; top: calc(100% + 4px); right: 0; display: none; z-index: 40; }
.dropdown.open > .menu { display: block; }
.dropdown.left > .menu { right: auto; left: 0; }

/* --------------------------------------------------------------------------
   Table
   -------------------------------------------------------------------------- */
.table-wrap { background: #fff; border: 1px solid var(--stroke-1); border-radius: 10px; overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { text-align: left; font-weight: 500; font-size: 11px; color: var(--text-primary); background: var(--light-blue); padding: 10px 14px; border-bottom: 1px solid var(--stroke-1); white-space: nowrap; }
.table th .sort { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.table th .sort .ic { width: 10px; height: 10px; color: var(--text-secondary); }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--stroke-1); vertical-align: middle; color: var(--text-primary); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--light-blue); }
.table td .user .user-name { font-size: 12px; }
.table.bordered td, .table.bordered th { border-right: 1px solid var(--stroke-1); }
.table.bordered td:last-child, .table.bordered th:last-child { border-right: none; }
.table .row-title { font-weight: 500; }
.table .td-actions { display: inline-flex; gap: 8px; align-items: center; }

/* --------------------------------------------------------------------------
   Dialog
   -------------------------------------------------------------------------- */
.dialog { background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); width: 340px; max-width: 100%; padding: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.dialog .dlg-icon { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; border: 1.5px solid; }
.dialog .dlg-icon .ic { width: 20px; height: 20px; }
.dialog .dlg-icon.success { background: var(--success-3); border-color: var(--success-1); color: var(--success-1); }
.dialog .dlg-icon.danger  { background: var(--danger-3);  border-color: var(--danger-1);  color: var(--danger-1); }
.dialog .dlg-icon.warning { background: var(--warning-3); border-color: var(--warning-1); color: var(--warning-1); }
.dialog .dlg-icon.info    { background: var(--retired-3); border-color: var(--retired-1); color: var(--retired-1); }
.dialog .dlg-icon.plain   { background: var(--inactive-3); border-color: var(--inactive-3); color: var(--success-1); }
.dialog .dlg-title { font-size: 16px; font-weight: 500; }
.dialog .dlg-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.5; }
.dialog .dlg-actions { display: flex; gap: 10px; width: 100%; margin-top: 12px; }
.dialog .dlg-actions .btn { flex: 1; }
.dialog .field { width: 100%; text-align: left; margin-top: 8px; }
.dialog .strip { width: 100%; margin-top: 6px; }

/* Modal (form) */
.modal { background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); width: 460px; max-width: 100%; overflow: hidden; }
.modal .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--stroke-1); font-size: 14px; font-weight: 500; }
.modal .modal-head .close { cursor: pointer; color: var(--text-primary); display: inline-flex; }
.modal .modal-body { padding: 16px; background: var(--light-blue); }
.modal .modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--stroke-1); background: #fff; }
.modal.wide { width: 620px; }

/* Overlay (runtime) */
.overlay { position: fixed; inset: 0; background: rgba(26,26,26,.45); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 24px; animation: fade-in .15s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */
.list { background: #fff; border-radius: 10px; box-shadow: var(--shadow-popover); padding: 8px; width: 240px; max-width: 100%; }
.list .control.search { height: 30px; margin-bottom: 6px; }
.list-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 12px; border-radius: 6px; cursor: pointer; }
.list-item:hover { background: var(--inactive-3); }
.list-item.selected { background: var(--success-3); color: var(--success-1); }
.list-item .li-title { font-size: 12px; line-height: 1.2; }
.list-item .li-sub { font-size: 10px; color: var(--text-secondary); line-height: 1.2; display: inline-flex; align-items: center; gap: 6px; }
.list-item .check { margin-left: auto; color: var(--success-1); }
.list-item .avatar { width: 24px; height: 24px; font-size: 8px; }
.list-heading { font-size: 11px; color: var(--text-secondary); padding: 8px 10px 4px; }
.list.wide { width: 400px; }
.list .chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 2px 8px; }
.list .total { font-size: 11px; padding: 4px 10px 6px; }

/* Container rows */
.row-box { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--stroke-1); border-radius: 8px; font-size: 12px; }

/* --------------------------------------------------------------------------
   Activity timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 1px; background: var(--stroke-2); }
.tl-item { position: relative; }
.tl-item .tl-icon { position: absolute; left: -40px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--stroke-1); display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.tl-item .tl-icon .ic { width: 13px; height: 13px; }
.tl-item .tl-icon.purple { color: var(--newbie-1); border-color: var(--newbie-2); }
.tl-item .tl-icon.gold { color: var(--pending-1); border-color: var(--pending-2); }
.tl-card { background: #fff; border: 1px solid var(--stroke-1); border-radius: 10px; padding: 12px; max-width: 420px; }
.tl-card .tl-head { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.tl-card .tl-head b { font-weight: 500; }
.tl-card .tl-head .time { margin-left: auto; color: var(--text-secondary); font-size: 10px; white-space: nowrap; }
.tl-card .tl-body { margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.tl-card .tl-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; font-size: 11px; border: 1px solid var(--stroke-1); }
.tl-card .tl-chip.success { background: var(--success-3); border-color: var(--success-2); }
.tl-card .tl-foot { margin-top: 8px; font-size: 10px; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   Notification panel
   -------------------------------------------------------------------------- */
.notif-panel { width: 340px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.notif-panel .np-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--stroke-1); }
.notif-panel .np-sub { padding: 8px 16px; font-size: 11px; color: var(--text-secondary); border-bottom: 1px solid var(--stroke-1); }
.notif-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--stroke-1); position: relative; cursor: pointer; }
.notif-item:hover { background: var(--light-blue); }
.notif-item.unread { background: var(--light-blue); }
.notif-item.unread::after { content: ''; position: absolute; right: 16px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--success-1); }
.notif-item .ni-title { font-size: 12px; font-weight: 500; }
.notif-item .ni-body { font-size: 11px; color: var(--text-secondary); margin: 2px 0 4px; line-height: 1.4; }
.notif-item .ni-time { font-size: 10px; color: var(--text-secondary); }
.notif-list { max-height: 480px; overflow: auto; }

/* --------------------------------------------------------------------------
   Side filter / Index sidebar
   -------------------------------------------------------------------------- */
.side-filter { width: 280px; background: #fff; border: 1px solid var(--stroke-1); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.side-filter .sf-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--stroke-1); font-size: 14px; font-weight: 500; }
.side-filter .sf-body { padding: 8px 16px; flex: 1; overflow: auto; }
.side-filter .sf-group { padding: 8px 0; border-bottom: 1px solid var(--stroke-1); }
.side-filter .sf-group:last-child { border-bottom: none; }
.side-filter .sf-group-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; padding: 6px 0; cursor: pointer; }
.side-filter .sf-group-head .chev { margin-left: auto; color: var(--text-secondary); transition: transform .2s; }
.side-filter .sf-group.open .sf-group-head .chev { transform: rotate(180deg); }
.side-filter .sf-options { display: none; flex-direction: column; gap: 2px; padding: 4px 0 6px; }
.side-filter .sf-group.open .sf-options { display: flex; }
.side-filter .sf-opt { display: flex; align-items: center; gap: 8px; font-size: 11px; padding: 5px 0; cursor: pointer; }
.side-filter .sf-opt .n { margin-left: auto; color: var(--text-secondary); font-size: 10px; }
.side-filter .sf-more { font-size: 10px; color: var(--text-link); text-decoration: underline; cursor: pointer; padding: 4px 0; }
.side-filter .sf-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--stroke-1); font-size: 10px; color: var(--brand); }

.index-sidebar { width: 340px; background: #fff; border: 1px solid var(--stroke-1); border-radius: 12px; overflow: hidden; }
.index-sidebar .is-head { padding: 14px 16px 10px; }
.index-sidebar .is-fw { font-size: 11px; color: var(--retired-1); font-weight: 500; }
.index-sidebar .is-title { font-size: 14px; font-weight: 500; margin-top: 2px; }
.index-sidebar .is-sub { font-size: 10px; color: var(--text-secondary); }
.index-sidebar .is-body { padding: 0 16px 16px; }
.index-sidebar .control.search { margin: 8px 0 12px; height: 32px; }
.section-head { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 11px; font-weight: 500; cursor: pointer; }
.section-head .chev { margin-left: auto; color: var(--text-secondary); }
.section-item { display: flex; align-items: center; gap: 8px; padding: 6px 0 6px 14px; font-size: 11px; color: var(--text-secondary); }
.section-item .check-ic { margin-left: auto; color: var(--success-1); }
.section-item .check-ic.warn { color: var(--warning-1); }
.section-block { border-bottom: 1px solid var(--stroke-1); padding: 4px 0; }

/* --------------------------------------------------------------------------
   Chat / Messages / Comments
   -------------------------------------------------------------------------- */
.chat { display: flex; flex-direction: column; gap: 14px; padding: 12px; }
.msg { display: flex; flex-direction: column; gap: 6px; max-width: 78%; }
.msg .bubble { padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--stroke-1); font-size: 11px; line-height: 1.45; }
.msg .msg-meta { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text-secondary); }
.msg .msg-meta .avatar { width: 20px; height: 20px; font-size: 8px; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me .bubble { background: var(--success-3); border-color: var(--success-2); }
.msg.ai .bubble { background: var(--ai-bg); border-color: var(--ai-border); }
.msg .ai-mark { width: 12px; height: 15px; }
.chat-box { background: #fff; border: 1px solid var(--stroke-1); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.chat-box .cb-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--stroke-1); font-size: 13px; font-weight: 500; }
.chat-box .cb-head .right { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; color: var(--text-secondary); }
.chat-box .cb-body { flex: 1; min-height: 200px; background: var(--light-blue); }
.chat-box .cb-search { padding: 8px 12px; border-bottom: 1px solid var(--stroke-1); display: flex; gap: 8px; align-items: center; background: #fff; }
.chat-box .cb-search .control { flex: 1; height: 30px; }

/* Message input bar */
.msg-input { background: #fff; border: 1px solid var(--stroke-1); border-radius: 10px; overflow: hidden; }
.msg-input .mi-actions { display: flex; gap: 6px; padding: 8px 10px 0; }
.msg-input .rte-toolbar { border-bottom: none; background: transparent; padding: 6px 10px 0; }
.msg-input .mi-body { padding: 6px 12px 10px; font-size: 11px; color: var(--text-secondary); outline: none; min-height: 28px; }
.msg-input .mi-body:empty::before { content: attr(data-placeholder); color: var(--text-secondary); }
.msg-input .mi-foot { display: flex; align-items: center; gap: 6px; padding: 8px 10px 10px; }
.msg-input .mi-foot .tool { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--stroke-2); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--text-primary); cursor: pointer; }
.msg-input .mi-foot .tool .ic { width: 11px; height: 11px; }
.msg-input .mi-foot .send { margin-left: auto; width: 24px; height: 24px; border-radius: 4px; background: var(--brand); color: #fff; border: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.msg-input .mi-foot .send.ai { background: var(--cards); color: var(--text-primary); }
.msg-input .mi-foot .send .ic { width: 12px; height: 12px; fill: currentColor; stroke: none; }

/* AI chat suggestions */
.suggest { padding: 8px 10px; border: 1px solid var(--stroke-1); border-radius: 8px; background: #fff; font-size: 10px; color: var(--text-primary); cursor: pointer; line-height: 1.4; }
.suggest:hover { border-color: var(--stroke-2); background: var(--light-blue); }
.ai-footnote { font-size: 9px; color: var(--text-secondary); text-align: center; padding: 8px 12px 12px; }

/* View history */
.history { display: grid; grid-template-columns: 20px 1fr; gap: 12px; }
.history .h-node { display: flex; flex-direction: column; align-items: center; }
.history .h-node .n { width: 18px; height: 18px; border-radius: 50%; background: var(--success-1); color: #fff; font-size: 9px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.history .h-node .l { flex: 1; width: 0; border-left: 1px dashed var(--stroke-2); margin: 4px 0; }
.history .h-card { background: #fff; border: 1px solid var(--stroke-1); border-radius: 8px; padding: 10px 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.history .h-card.lvl { grid-template-columns: 80px repeat(3, 1fr); align-items: center; }
.history .h-card .lvl-name { font-size: 13px; font-weight: 500; }

/* --------------------------------------------------------------------------
   Sync / Items list / Associated items
   -------------------------------------------------------------------------- */
.items-list { border: 1px solid var(--stroke-1); border-radius: 8px; background: #fff; overflow: hidden; }
.items-list .il-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12px; font-weight: 500; background: var(--light-blue); cursor: pointer; }
.items-list .il-head .ic.danger { color: var(--danger-1); }
.items-list .il-head .right { margin-left: auto; display: inline-flex; gap: 10px; color: var(--text-secondary); }
.items-list .il-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--stroke-1); font-size: 11px; }
.items-list .il-row .code { color: var(--danger-1); font-weight: 500; white-space: nowrap; }
.items-list .il-row .t { font-size: 12px; font-weight: 500; }
.items-list .il-row .s { font-size: 10px; color: var(--text-secondary); }
.items-list .il-row .right { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 10px; color: var(--text-secondary); }

.assoc { background: #fff; border: 1px solid var(--stroke-1); border-radius: 12px; }
.assoc .as-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--stroke-1); font-size: 13px; font-weight: 500; }
.assoc .as-head .right { margin-left: auto; }
.assoc .as-item { padding: 12px 14px; border-bottom: 1px solid var(--stroke-1); display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.assoc .as-item:last-child { border-bottom: none; }
.assoc .as-title { font-size: 12px; font-weight: 500; }
.assoc .as-title .type { font-size: 10px; margin-left: 6px; color: var(--retired-1); }
.assoc .as-title .type.risk { color: var(--danger-1); }
.assoc .as-sub { font-size: 10px; color: var(--text-secondary); margin-top: 2px; }
.assoc .as-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 10px; margin-top: 6px; }
.assoc .as-conf { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--success-1); margin-top: 8px; }
.assoc .as-actions { display: inline-flex; gap: 6px; align-items: flex-start; grid-row: 1 / span 3; }

/* --------------------------------------------------------------------------
   Charts (SVG-based; painted by components.js)
   -------------------------------------------------------------------------- */
.chart-svg { display: block; overflow: visible; }
.chart-axis text { font-family: var(--font); font-size: 9px; fill: var(--text-secondary); }
.chart-grid line { stroke: var(--stroke-1); stroke-width: 1; }
.chart-center-label { font-size: 9px; fill: var(--text-secondary); }
.chart-center-value { font-size: 14px; font-weight: 500; fill: var(--text-primary); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 10px; color: var(--text-primary); }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.legend .lg i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.legend.center { justify-content: center; }
.heatmap { display: grid; gap: 3px; font-size: 10px; }
.heatmap .hm-cell { height: 34px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--text-primary); border-radius: 2px; }
.heatmap .hm-cell.empty { background: var(--inactive-3); }
.heatmap .hm-y { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right; padding-right: 8px; font-size: 9px; color: var(--text-primary); line-height: 1.2; }
.heatmap .hm-x { text-align: center; font-size: 9px; padding-top: 6px; color: var(--text-primary); line-height: 1.2; }
.risk-rating .rr-title { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.risk-rating .rr-title.danger { color: var(--danger-1); } .risk-rating .rr-title.warning { color: var(--warning-1); } .risk-rating .rr-title.success { color: var(--brand); }
.risk-rating .rr-bar { display: flex; gap: 2px; position: relative; height: 22px; }
.risk-rating .rr-bar span { flex: 1; }
.risk-rating .rr-bar span:nth-of-type(1){background:#3CA36A}.risk-rating .rr-bar span:nth-of-type(2){background:#A8D26F}.risk-rating .rr-bar span:nth-of-type(3){background:#F5C56B}.risk-rating .rr-bar span:nth-of-type(4){background:#F0906C}.risk-rating .rr-bar span:nth-of-type(5){background:#E66A5F}
.risk-rating .rr-marker { position: absolute; top: -10px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--text-primary); transform: translateX(-50%); }
.risk-rating .rr-foot { font-size: 9px; color: var(--text-primary); margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.risk-rating .rr-foot .x { color: var(--text-secondary); }
.rank-row { display: grid; grid-template-columns: 90px 1fr 32px; align-items: center; gap: 12px; font-size: 10px; padding: 5px 0; }
.rank-row .progress-track { height: 3px; }

/* --------------------------------------------------------------------------
   Component showcase (documentation pages)
   -------------------------------------------------------------------------- */
.ds-page { max-width: 1240px; }
.ds-title { font-size: 24px; font-weight: 500; margin: 0 0 6px; }
.ds-desc { font-size: 13px; color: var(--text-secondary); margin: 0 0 28px; max-width: 640px; line-height: 1.5; }
.ds-section { margin-bottom: 40px; }
.ds-section-title { font-size: 18px; font-weight: 500; margin: 0 0 2px; padding-bottom: 8px; border-bottom: 1px solid var(--stroke-1); }
.ds-section-meta { font-size: 11px; color: var(--text-secondary); margin: 6px 0 16px; }
.ds-label { font-size: 11px; color: var(--text-secondary); margin: 18px 0 8px; }
.ds-demo { background: #fff; border: 1px solid var(--stroke-1); border-radius: 12px; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.ds-demo.top { align-items: flex-start; }
.ds-demo.col { flex-direction: column; align-items: stretch; }
.ds-demo.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); align-items: start; }
.ds-demo.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: start; }
.ds-demo.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; }
@media (max-width: 1100px) { .ds-demo.grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .ds-demo.grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px) { .ds-demo.grid-4, .ds-demo.grid-3, .ds-demo.grid-2 { grid-template-columns: 1fr; } }
.ds-swatch { display: flex; flex-direction: column; gap: 6px; width: 96px; }
.ds-swatch .sw { height: 64px; border-radius: 10px; border: 1px solid var(--stroke-1); }
.ds-swatch .sw-name { font-size: 11px; }
.ds-swatch .sw-hex { font-size: 10px; color: var(--text-secondary); text-transform: uppercase; }
.ds-type-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; margin-bottom: 12px; }
.ds-type-row .spec { font-size: 11px; } .ds-type-row .spec small { display: block; color: var(--text-secondary); font-size: 10px; margin-top: 2px; }
.ds-type-row .sample { background: #fff; border: 1px solid var(--stroke-1); border-radius: 8px; padding: 12px 18px; }
.ds-space-row { display: grid; grid-template-columns: 120px 60px 1fr; align-items: center; background: #fff; border: 1px solid var(--stroke-1); border-radius: 6px; padding: 8px 14px; margin-bottom: 6px; font-size: 11px; }
.ds-space-row .bar { height: 14px; background: var(--brand); border-radius: 3px; }
.ds-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.ds-icon-cell { background: #fff; border: 1px solid var(--stroke-1); border-radius: 8px; padding: 12px 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 9px; color: var(--text-secondary); text-align: center; }
.ds-icon-cell .ic { width: 18px; height: 18px; color: var(--text-primary); }
.ds-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; background: #fff; border: 1px solid var(--stroke-1); border-radius: 4px; padding: 1px 5px; color: var(--text-secondary); }
.ds-note { font-size: 11px; color: var(--text-secondary); margin-top: 8px; }

/* --------------------------------------------------------------------------
   Dashboard kit (Document Dashboard reference)
   -------------------------------------------------------------------------- */
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 1200px) { .span-3, .span-4, .span-5, .span-7 { grid-column: span 6; } }
@media (max-width: 800px) { .span-3, .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; } }

.page-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title-row .pt-title { font-size: 20px; font-weight: 500; line-height: 1.3; }
.page-title-row .pt-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.page-title-row .pt-actions { display: flex; gap: 10px; }
.page-title-row .btn { height: 36px; font-size: 13px; border-radius: 8px; padding: 0 16px; }
.section-title { font-size: 16px; font-weight: 500; margin: 8px 0 14px; }

.kpi-card { background: #fff; border: 1px solid var(--stroke-1); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.kpi-card .kpi-head { display: flex; align-items: center; gap: 12px; padding-right: 24px; }
.kpi-card .kpi-title { font-size: 14px; font-weight: 500; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.kpi-card .kpi-info { position: absolute; top: 18px; right: 18px; color: var(--text-primary); cursor: help; }
.kpi-card .kpi-info .ic { width: 14px; height: 14px; }
.kpi-card .kpi-num { font-size: 28px; font-weight: 500; line-height: 1.1; margin-top: 8px; }
.kpi-card .kpi-sub { font-size: 13px; color: var(--text-secondary); }
.kpi-card .kpi-sub.danger { color: var(--danger-1); }
.kpi-card .icon-tile { width: 32px; height: 32px; border-radius: 50%; }

.hero-card { background: var(--success-3); border: 1px solid var(--success-2); border-radius: 16px; padding: 24px; display: flex; align-items: center; gap: 24px; }
.hero-card .hero-pct { font-size: 32px; font-weight: 500; color: var(--brand); line-height: 1; }
.hero-card .hero-label { font-size: 14px; color: var(--text-secondary); margin-left: 8px; }
.hero-card .hero-sub { font-size: 13px; color: var(--text-secondary); margin-top: 10px; line-height: 1.5; }

.card .card-head .card-title-wrap { display: flex; flex-direction: column; }
.card .card-head .card-sub { font-size: 12px; color: var(--text-secondary); }
.card .card-head .icon-tile { width: 32px; height: 32px; }

.coverage-row { display: grid; grid-template-columns: 180px 1fr 60px; align-items: center; gap: 16px; font-size: 13px; padding: 9px 0; }
.coverage-row .progress-track { height: 6px; }
.coverage-row .n { text-align: right; }
.coverage-row .status-cell { display: flex; }

.miss-item { padding: 10px 0; }
.miss-item .mi-title { font-size: 13px; font-weight: 500; }
.miss-item .mi-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.stat-tile { border-radius: 10px; padding: 14px 16px; border: 1px solid; }
.stat-tile .st-label { font-size: 13px; }
.stat-tile .st-num { font-size: 22px; font-weight: 500; margin-top: 6px; }
.stat-tile.warning { background: var(--warning-3); border-color: var(--warning-2); } .stat-tile.warning .st-label { color: var(--warning-1); }
.stat-tile.danger { background: var(--danger-3); border-color: var(--danger-2); } .stat-tile.danger .st-label { color: var(--danger-1); }
.stat-tile.success { background: var(--success-3); border-color: var(--success-2); } .stat-tile.success .st-label { color: var(--success-1); }

.legend.lg-text { font-size: 13px; gap: 14px 40px; }
.legend.lg-text .lg i { width: 8px; height: 8px; }
.legend.cols-2 { display: grid; grid-template-columns: 1fr 1fr; }
.legend.stack { flex-direction: column; align-items: flex-start; }

/* --------------------------------------------------------------------------
   Policy Discovery kit
   -------------------------------------------------------------------------- */
.page-divider { height: 1px; background: var(--stroke-1); margin: 16px 0; }
.collapse-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 4px 0; user-select: none; }
.collapse-head .chev { color: var(--text-primary); transition: transform .2s; }
.collapse-head.closed .chev { transform: rotate(180deg); }
.ai-banner { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 14px; background: var(--ai-bg); border: 1.5px solid var(--ai-border); }
.ai-banner .ai-mark { width: 26px; height: 32px; flex: 0 0 auto; }
.ai-banner .ab-title { font-size: 18px; font-weight: 500; }
.ai-banner .ab-sub { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.ai-banner .btn { margin-left: auto; height: 36px; font-size: 13px; border-radius: 8px; padding: 0 16px; }
.filter-tab.lg { height: 40px; padding: 0 18px; font-size: 14px; }
.filter-tab.lg .ic { width: 14px; height: 14px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar .control.search { width: 340px; height: 40px; border-radius: 10px; font-size: 14px; }
.toolbar .control.search input { font-size: 14px; }
.toolbar .btn { height: 40px; font-size: 14px; border-radius: 8px; padding: 0 16px; }
.table.lg th { font-size: 14px; padding: 16px 20px; background: var(--light-blue); }
.table.lg th .sort .ic { width: 12px; height: 12px; }
.table.lg td { font-size: 14px; padding: 16px 20px; }
.table.lg .badge { height: 30px; font-size: 13px; padding: 0 10px; border-radius: 6px; }
.table.lg .badge.framework { border-radius: var(--r-pill); }
.table.lg .btn { height: 40px; font-size: 14px; border-radius: 8px; padding: 0 16px; }
.table.lg .user .avatar { width: 30px; height: 30px; font-size: 11px; }
.table.lg .user .user-name { font-size: 14px; white-space: nowrap; }
.table.lg td.nowrap { white-space: nowrap; }
.doc-cell { display: flex; align-items: flex-start; gap: 12px; }
.doc-cell .doc-ic { width: 26px; height: 26px; border-radius: 6px; background: var(--retired-1); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 8px; }
.doc-cell .doc-ic .ic { width: 16px; height: 16px; }
.doc-cell .dc-t { font-size: 16px; font-weight: 400; color: var(--text-primary); line-height: 1.3; }
.doc-cell .dc-d { font-size: 13px; color: var(--text-secondary); margin-top: 3px; line-height: 1.4; max-width: 360px; }
.link-more { font-size: 13px; color: var(--text-link); text-decoration: underline; font-weight: 500; white-space: nowrap; }
.ai-run { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 16px; gap: 6px; }
.ai-run .ai-steps { width: 100%; max-width: 520px; text-align: left; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-run .ai-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); opacity: .35; transition: opacity .3s; }
.ai-run .ai-step.on { opacity: 1; color: var(--text-primary); }
.ai-run .ai-step .st-ic { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--stroke-2); display: inline-flex; align-items: center; justify-content: center; color: var(--success-1); background: #fff; flex: 0 0 auto; }
.ai-run .ai-step.done .st-ic { background: var(--success-3); border-color: var(--success-2); }
.ai-run .ai-step.on:not(.done) .st-ic { border-color: var(--ai-border); }
@keyframes j-spin { to { transform: rotate(360deg); } }
.ai-run .spin { animation: j-spin 1s linear infinite; }
.skeleton-card.lg { width: 250px; padding: 14px 16px; border-radius: 10px; }
.skeleton-card.lg .ai-mark { width: 24px; height: 30px; }
.skeleton-card.lg .lines span { height: 8px; }
.skeleton-card.lg .lines span:first-child { width: 55%; height: 14px; }

/* ==========================================================================
   Document Register kit — workspace, file tiles, folder cards, register toolbar
   ========================================================================== */
.ws-card { background: #fff; border: 1px solid var(--stroke-1); border-radius: 14px; padding: 20px 22px; }
.ws-card .ws-head { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.ws-card .ws-head .ws-title { font-size: 18px; font-weight: 700; }
.ws-card .ws-head .chev { margin-left: auto; color: var(--text-primary); transition: transform .2s; }
.ws-card.closed .ws-head .chev { transform: rotate(180deg); }
.ws-card.closed .ws-body { display: none; }
.ws-card .ws-body { margin-top: 18px; }
.ws-card .ws-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-card .ws-row { display: flex; gap: 16px; overflow-x: auto; padding: 18px 2px 4px; scroll-snap-type: x proximity; }
.ws-card .ws-row > .doc-card { flex: 0 0 calc((100% - 48px) / 4); min-width: 260px; scroll-snap-align: start; }
.ws-card .ws-row .empty { flex: 1; }

/* File-type tile (Word / PowerPoint / Visio / PDF / generic) */
.ftile { width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ftile svg { width: 22px; height: 22px; }
.ftile.word  { background: #DCE8FF; color: #2B5FB8; }
.ftile.ppt   { background: #FFE0DC; color: #D14B2A; }
.ftile.visio { background: #DCE8FF; color: #2E63C9; }
.ftile.pdf   { background: #F4DADA; color: #C8261E; }
.ftile.doc   { background: #2B5FB8; color: #fff; }
.ftile.xlsx  { background: #DDF3EA; color: #0E7B61; }

/* Large document card (register grid) */
.doc-card.lg { padding: 20px; gap: 12px; border-radius: 14px; }
.doc-card.lg .dc-top { gap: 10px; }
.doc-card.lg .dc-top .badge { height: 26px; font-size: 13px; padding: 0 10px; border-radius: 6px; }
.doc-card .dc-top .more, .folder-card .more, .table .more { display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); cursor: pointer; }
.doc-card.lg .dc-top .more .ic, .folder-card .more .ic, .table .more .ic { width: 18px; height: 18px; }
.doc-card.ws .dc-top .more .ic { width: 18px; height: 18px; }
.doc-card.lg .dc-title { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; min-height: 46px; }
.doc-card.lg .dc-meta { font-size: 14px; gap: 0; }
.doc-card.lg .dc-meta > span + span::before { content: ''; display: inline-block; width: 1px; height: 14px; background: var(--stroke-2); margin: 0 10px; vertical-align: -2px; }
.doc-card.lg .dc-meta .type { gap: 5px; font-weight: 500; }
.doc-card.lg .dc-meta .type .ic { width: 14px; height: 14px; }
.doc-card.lg .dc-meta .type.policy { color: var(--retired-1); }
.doc-card.lg .dc-meta .type.sop, .doc-card.lg .dc-meta .type.forms { color: var(--pending-1); }
.doc-card.lg .dc-meta .type.guideline { color: var(--newbie-1); }
.doc-card.lg .dc-desc { font-size: 14px; line-height: 1.5; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.doc-card.lg .dc-fw { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-card.lg .dc-fw .badge { height: 26px; font-size: 13px; padding: 0 10px; }
.doc-card.lg .dc-ack { padding: 12px 14px; font-size: 14px; font-weight: 500; border-radius: 10px; }
.ring { width: 18px; height: 18px; flex: 0 0 auto; }
.doc-card.lg .user .avatar { width: 30px; height: 30px; font-size: 11px; }
.doc-card.lg .user .user-name { font-size: 14px; }
.doc-card.lg .dc-foot { font-size: 13px; padding-top: 14px; margin-top: auto; }
.doc-card.lg .dc-foot .ic { width: 14px; height: 14px; }
.doc-card.ws { padding: 20px; gap: 12px; border-radius: 14px; }
.doc-card.ws .dc-top .badge { height: 26px; font-size: 13px; padding: 0 10px; border-radius: 6px; }
.doc-card.ws .dc-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; min-height: 46px; }
.doc-card.ws .dc-meta { font-size: 14px; gap: 0; }
.doc-card.ws .dc-meta > span + span::before { content: ''; display: inline-block; width: 1px; height: 14px; background: var(--stroke-2); margin: 0 10px; vertical-align: -2px; }
.doc-card.ws .dc-meta .type { gap: 5px; font-weight: 500; }
.doc-card.ws .dc-meta .type.sop, .doc-card.ws .dc-meta .type.forms { color: var(--pending-1); }
.doc-card.ws .dc-meta .type.policy { color: var(--retired-1); }
.doc-card.ws .dc-foot { font-size: 13px; gap: 14px; padding-top: 14px; margin-top: 6px; }
.doc-card.ws .dc-foot .ic { width: 14px; height: 14px; }

/* Folder card */
.folder-card { text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--stroke-1); border-radius: 14px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; cursor: pointer; }
.folder-card:hover { border-color: var(--stroke-2); box-shadow: var(--shadow-sm); }
.folder-card .fc-ic { width: 44px; height: 36px; flex: 0 0 auto; }
.folder-card .fc-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.folder-card .fc-sub { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
.folder-card .more { margin-left: auto; }

/* Section head with inline add link */
.sec-row { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 16px; }
.sec-row .section-title { margin: 0; font-size: 18px; }
.sec-row .add-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-primary); cursor: pointer; text-decoration: none; }
.sec-row .add-link .plus { width: 20px; height: 20px; border-radius: 50%; background: var(--success-1); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.sec-row .add-link .plus .ic { width: 12px; height: 12px; stroke-width: 2.5; }
.sec-row.sub { margin: 18px 0 12px; }
.sec-row.sub .section-title { font-size: 15px; color: var(--text-secondary); font-weight: 600; }

/* Register toolbar extras */
.toolbar.register { gap: 12px; }
.toolbar.register .control.search { width: 380px; }
.toolbar.register .control.select { height: 34px; border-radius: 8px; padding: 0 12px 0 14px; font-size: 13px; width: auto; gap: 6px; position: relative; }
.toolbar.register .control.select .value { flex: 0 0 auto; white-space: nowrap; }
.toolbar.register .control.select .caret { width: 12px; height: 12px; color: var(--text-primary); }
.toolbar.register .control.select .popover { min-width: 180px; right: auto; }
.toolbar.register .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.toolbar.register .btn .chev { width: 12px; height: 12px; margin-left: 2px; }
.btn.filter-on { background: var(--newbie-3); border-color: var(--newbie-2); }
.btn .cnt { display: inline-flex; align-items: center; justify-content: center; height: 20px; min-width: 24px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; }
.toolbar.register .switcher { padding: 3px; border-radius: 8px; }
.toolbar.register .switcher button { width: 28px; height: 28px; border-radius: 6px; }
.toolbar.register .switcher button .ic { width: 15px; height: 15px; }
.menu.filter-menu { min-width: 220px; padding: 8px; }
.menu.filter-menu .fm-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--text-secondary); padding: 4px 8px 6px; }
.menu.filter-menu .fm-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.menu.filter-menu .fm-item:hover { background: var(--inactive-3); }
.menu.filter-menu .fm-foot { display: flex; justify-content: space-between; padding: 8px 8px 2px; border-top: 1px solid var(--stroke-1); margin-top: 6px; }

/* Register grids */
.reg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.reg-grid > .doc-card, .reg-grid > .folder-card { min-width: 0; }
.reg-pager { display: flex; align-items: center; margin: 24px 0 8px; font-size: 14px; }
.reg-pager .pagination { flex: 1; font-size: 14px; color: var(--text-primary); }
.reg-pager .pagination .page-size { height: 36px; font-size: 14px; padding: 0 12px; border-radius: 8px; }
.reg-pager .pagination .page { min-width: 32px; height: 32px; font-size: 14px; border-radius: 6px; }
.reg-pager .pagination .page .ic { width: 12px; height: 12px; }
.table.lg .ftile { width: 32px; height: 32px; border-radius: 7px; }
.table.lg .ftile svg { width: 18px; height: 18px; }
@media (max-width: 1400px) { .reg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ws-card .ws-row > .doc-card { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 1100px) { .reg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ws-card .ws-row > .doc-card { flex-basis: calc((100% - 16px) / 2); } }

/* Illustrated empty state — stacked record cards over a soft tint */
.empty-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 44px 16px 48px; --eh-tint: var(--success-3); --eh-dot: var(--success-2); }
.empty-hero.tone-newbie  { --eh-tint: var(--newbie-3);  --eh-dot: var(--newbie-2); }
.empty-hero.tone-warning { --eh-tint: var(--warning-3); --eh-dot: var(--pending-2); }
.empty-hero.tone-pending { --eh-tint: var(--pending-3); --eh-dot: var(--pending-2); }
.empty-hero.tone-retired { --eh-tint: var(--retired-3); --eh-dot: var(--retired-2); }
.empty-hero.tone-inactive{ --eh-tint: var(--inactive-3); --eh-dot: var(--inactive-2); }
.empty-hero .eh-art { position: relative; width: 300px; height: 150px; margin-bottom: 20px; }
.empty-hero .eh-art::before { content: ''; position: absolute; inset: -20px 10px; border-radius: 50%; background: radial-gradient(ellipse at center, var(--eh-tint) 0%, rgba(255,255,255,0) 72%); }
.empty-hero .eh-card { position: absolute; left: 50%; top: 50%; width: 250px; height: 78px; transform: translate(-50%, -50%); background: #fff; border: 1px solid var(--stroke-1); border-radius: 14px; box-shadow: 0 10px 28px rgba(19, 26, 21, .10); display: flex; align-items: center; gap: 14px; padding: 0 18px; }
.empty-hero .eh-card.back  { transform: translate(-50%, -50%) translateY(-20px) scale(.92); opacity: .55; box-shadow: none; }
.empty-hero .eh-card.back2 { transform: translate(-50%, -50%) translateY(-38px) scale(.84); opacity: .28; box-shadow: none; }
.empty-hero .eh-card .lines { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.empty-hero .eh-card .lines span { display: block; height: 9px; border-radius: 5px; background: var(--inactive-3); }
.empty-hero .eh-card .lines span:first-child { width: 58%; background: var(--inactive-2); }
.empty-hero .eh-card .icon-tile.lg .ic { width: 20px; height: 20px; }
.empty-hero .eh-badge { position: absolute; right: -10px; top: -12px; width: 30px; height: 30px; border-radius: 50%; background: var(--success-1); color: #fff; display: inline-flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.empty-hero .eh-badge .ic { stroke-width: 2.6; }
.empty-hero .eh-dot { position: absolute; border-radius: 50%; background: var(--eh-dot); opacity: .8; }
.empty-hero .eh-dot.d1 { width: 10px; height: 10px; left: 26px; top: 28px; }
.empty-hero .eh-dot.d2 { width: 7px; height: 7px; right: 34px; top: 18px; }
.empty-hero .eh-dot.d3 { width: 12px; height: 12px; right: 18px; bottom: 22px; opacity: .5; }
.empty-hero .eh-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.empty-hero .eh-sub { font-size: 14px; color: var(--text-secondary); margin-top: 6px; max-width: 460px; line-height: 1.5; }
.empty-hero .eh-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.empty-hero .eh-actions .btn { height: 38px; font-size: 14px; border-radius: 8px; padding: 0 16px; }
.empty-hero.compact { padding: 22px 16px 26px; }
.empty-hero.compact .eh-art { width: 260px; height: 118px; margin-bottom: 12px; }
.empty-hero.compact .eh-card { width: 220px; height: 66px; }
.empty-hero.compact .eh-title { font-size: 16px; }
.empty-hero.compact .eh-sub { font-size: 13px; }
.empty-hero .fc-ic { width: 26px; height: 22px; }
.btn.btn-ghost.demo { color: var(--text-secondary); }
.btn.btn-ghost.demo:hover { color: var(--text-primary); }

/* ==========================================================================
   Filter dialog — category rail (left) + option list (right)
   ========================================================================== */
.filter-dialog { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); width: 1060px; max-width: 100%; overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.filter-dialog .fd-head { display: flex; align-items: center; justify-content: space-between; padding: 26px 34px; border-bottom: 1px solid var(--stroke-1); }
.filter-dialog .fd-head .fd-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.filter-dialog .fd-head .close { cursor: pointer; color: var(--text-primary); display: inline-flex; padding: 4px; border-radius: 6px; }
.filter-dialog .fd-head .close:hover { background: var(--inactive-3); }
.filter-dialog .fd-head .close .ic { width: 20px; height: 20px; }
.filter-dialog .fd-body { display: flex; min-height: 420px; flex: 1; overflow: hidden; }
.filter-dialog .fd-rail { width: 310px; flex: 0 0 auto; border-right: 1px solid var(--stroke-1); padding: 30px 32px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.filter-dialog .fd-cat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; height: 52px; border-radius: 10px; font-size: 16px; font-weight: 500; color: var(--text-primary); cursor: pointer; border: none; background: transparent; text-align: left; width: 100%; }
.filter-dialog .fd-cat:hover { background: var(--inactive-3); }
.filter-dialog .fd-cat.active { background: var(--success-3); }
.filter-dialog .fd-cat .cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; }
.filter-dialog .fd-panel { flex: 1; padding: 30px 34px; overflow-y: auto; }
.filter-dialog .fd-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.filter-dialog .fd-panel-head .fd-count { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.filter-dialog .fd-panel-head .fd-all { font-size: 15px; font-weight: 600; color: var(--success-1); text-decoration: underline; cursor: pointer; }
.filter-dialog .fd-search { margin-bottom: 14px; }
.filter-dialog .fd-search .control { height: 36px; border-radius: 8px; }
.filter-dialog .fd-opt { display: flex; align-items: center; gap: 14px; height: 44px; cursor: pointer; font-size: 16px; color: var(--text-primary); }
.filter-dialog .fd-opt .checkbox { width: 20px; height: 20px; border-radius: 5px; }
.filter-dialog .fd-opt .fd-lbl { flex: 1; display: inline-flex; align-items: center; gap: 10px; }
.filter-dialog .fd-opt .fd-n { color: var(--text-secondary); font-size: 15px; font-variant-numeric: tabular-nums; }
.filter-dialog .fd-opt.disabled { opacity: .45; cursor: default; }
.filter-dialog .fd-empty { color: var(--text-secondary); font-size: 14px; padding: 12px 0; }
.filter-dialog .fd-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 22px 34px; border-top: 1px solid var(--stroke-1); }
.filter-dialog .fd-foot .btn { height: 42px; font-size: 15px; border-radius: 8px; padding: 0 20px; }
.filter-dialog.static { box-shadow: var(--shadow-md); border: 1px solid var(--stroke-1); max-height: none; }
.filter-dialog.static .fd-body { min-height: 360px; }
.filter-dialog.compact { width: 760px; }
.filter-dialog.compact .fd-head { padding: 18px 24px; } .filter-dialog.compact .fd-head .fd-title { font-size: 16px; }
.filter-dialog.compact .fd-rail { width: 230px; padding: 18px 20px; } .filter-dialog.compact .fd-cat { height: 40px; font-size: 13px; padding: 0 12px; }
.filter-dialog.compact .fd-panel { padding: 18px 24px; } .filter-dialog.compact .fd-panel-head .fd-count { font-size: 14px; } .filter-dialog.compact .fd-panel-head .fd-all { font-size: 12px; }
.filter-dialog.compact .fd-opt { height: 34px; font-size: 13px; } .filter-dialog.compact .fd-opt .checkbox { width: 16px; height: 16px; } .filter-dialog.compact .fd-opt .fd-n { font-size: 12px; }
.filter-dialog.compact .fd-foot { padding: 14px 24px; } .filter-dialog.compact .fd-foot .btn { height: 34px; font-size: 13px; }
@media (max-width: 1100px) { .filter-dialog .fd-rail { width: 240px; padding: 20px; } .filter-dialog .fd-cat { font-size: 14px; height: 44px; } }

/* Document table (list view) */
.doc-type { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.doc-type .ic { width: 14px; height: 14px; }
.doc-type.policy { color: var(--retired-1); } .doc-type.sop, .doc-type.forms { color: var(--pending-1); } .doc-type.guideline { color: var(--newbie-1); } .doc-type.charter { color: var(--text-primary); }
.ftile.sm { width: 26px; height: 26px; border-radius: 6px; } .ftile.sm svg { width: 15px; height: 15px; }
.doc-table .table.lg th { font-size: 14px; font-weight: 500; padding: 14px 20px; background: #fff; }
.doc-table .table.lg th .sort .ic { width: 12px; height: 12px; }
.doc-table .table.lg td { font-size: 15px; padding: 16px 20px; vertical-align: middle; }
.doc-table .doc-cell { gap: 12px; }
.doc-table .doc-cell .dc-t { font-size: 15px; font-weight: 400; line-height: 1.35; }
.doc-table .table.lg .badge { height: 28px; font-size: 13px; }
.doc-table .table.lg .user .avatar { width: 32px; height: 32px; font-size: 11px; }
.doc-table .table.lg .user .user-name { font-size: 15px; }
.doc-table td.act { text-align: center; width: 90px; }
.doc-table td.act .dropdown { display: inline-flex; }
.reg-pager.in { margin: 0; padding: 14px 20px; border-top: 1px solid var(--stroke-1); }
