:root {
  color-scheme: light;
  --surface: #fff;
  --background: #f5f7fb;
  --stroke: #e2e7f0;
  --ink: #17243b;
  --muted: #5d6b80;
  --blue: #2454d4;
  --blue-dark: #1845bd;
  --blue-pale: #eaf0ff;
  --radius: 12px;
  font-family: "Pretendard", "Inter", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--background); color: var(--ink); font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #3c6df0;
  outline-offset: 3px;
}
button, input, select { -webkit-tap-highlight-color: transparent; }
button > [data-icon], [data-icon] svg { pointer-events: none; }
[data-icon] { display: inline-flex; align-items: center; flex: none; }
[data-icon] svg { display: block; width: 17px; height: 17px; }

.topbar {
  min-height: 69px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--stroke);
}
.brand, .topbar-start, .topbar-end, .file-card { display: flex; align-items: center; }
.topbar-start { min-width: 0; gap: 11px; }
.icon-button.sidebar-toggle { flex: none; width: 36px; height: 36px; }
.sidebar-toggle[aria-expanded="false"] { color: var(--blue-dark); background: var(--blue-pale); border-color: #c4d3fc; }
.brand { gap: 11px; }
.topbar-end { gap: 8px; }
.brand-mark {
  width: 38px;
  height: 38px;
  justify-content: center;
  background: linear-gradient(145deg, #3a6af0, #214dcf);
  color: white;
  border-radius: 10px;
  box-shadow: 0 2px 4px #204bd229;
}
.brand-mark svg { width: 23px; height: 23px; }
.brand strong, .brand small { display: block; line-height: 1.35; }
.brand strong { font-size: 19px; letter-spacing: -.06em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.button:disabled { opacity: .48; }
.primary { background: var(--blue); color: #fff; }
.primary:not(:disabled):hover { background: var(--blue-dark); }
.secondary { background: #fff; color: #32415a; border-color: #dce3ef; }
.secondary:not(:disabled):hover, .secondary[aria-expanded="true"] { background: #f1f5ff; border-color: #c4d3fc; color: var(--blue-dark); }
.secondary [data-icon] { color: #60708b; }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #52647d;
  background: white;
  border: 1px solid var(--stroke);
  border-radius: 7px;
}
.icon-button:not(:disabled):hover { background: #eef3ff; color: var(--blue); }
.icon-button:disabled { opacity: .44; }

.layout { --sidebar-width: 240px; min-height: calc(100vh - 69px); display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); transition: grid-template-columns 180ms ease; }
.layout.sidebar-collapsed { --sidebar-width: 60px; }
.sidebar { display: flex; flex-direction: column; min-width: 0; padding: 16px 12px 18px; border-right: 1px solid var(--stroke); background: var(--surface); }
.sidebar-top { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-bottom: 10px; }
.sidebar-top .sidebar-heading { margin-block: 0; white-space: nowrap; }
.sidebar-collapsed .sidebar { padding-inline: 6px; }
.sidebar-collapsed .sidebar-top { justify-content: center; }
.sidebar-collapsed :is(.sidebar-heading, .sheet-label, .sidebar-footer) { display: none; }
.sidebar-collapsed .sheet-nav { margin-top: 0; }
.sidebar-collapsed .nav-table { width: 100%; margin: 0; min-height: 45px; padding: 4px; flex-direction: column; justify-content: center; gap: 3px; text-align: center; }
.sidebar-collapsed .nav-table .nav-name { width: 100%; flex: none; font-size: 9px; }
.sidebar-collapsed .sheet-group + .sheet-group { border-top: 1px solid var(--stroke); padding-top: 5px; }
.sidebar-heading { margin: 0 0 12px 7px; color: #61708a; font-size: 12px; font-weight: 700; }
.file-card { gap: 9px; min-height: 64px; padding: 9px; border: 1px solid var(--stroke); border-radius: 10px; background: #fafbfe; }
.file-icon { width: 33px; height: 35px; border-radius: 7px; justify-content: center; background: #e7f5ed; color: #24825a; }
.file-icon svg { width: 19px; height: 19px; }
.file-details { min-width: 0; flex: 1; }
.file-details strong, .file-details > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-details strong { font-size: 12px; font-weight: 750; }
.file-details > span { margin-top: 5px; color: var(--muted); font-size: 11px; }
#close-workbook { flex: none; }
#close-workbook:not(:disabled):hover { color: #a33340; border-color: #efbac3; background: #fcebed; }
[data-theme="dark"] #close-workbook:not(:disabled):hover { color: #ffc2ca; border-color: #78505d; background: #4b2937; }
.sheet-nav { margin-top: 21px; min-width: 0; max-height: min(66vh, 800px); overflow: auto; }
.sheet-group { margin: 4px 0 10px; }
.sheet-label, .nav-table {
  border: 0;
  border-radius: 7px;
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  text-align: left;
  color: #394964;
}
.sheet-label { margin: 0; font-weight: 700; font-size: 12px; }
.sheet-hidden { flex: none; padding: 1px 6px; border: 1px solid var(--stroke); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 600; }
.cell-dialog-value { max-height: min(50vh, 420px); margin-bottom: 0; }
.nav-table { width: calc(100% - 10px); margin: 1px 0 1px 10px; font-size: 12px; }
.sheet-label > .nav-name, .nav-table > .nav-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-label [data-icon], .nav-table [data-icon] { color: #7486a4; }
.sheet-label [data-icon] svg, .nav-table [data-icon] svg { width: 15px; height: 15px; }
.nav-table:hover { background: #f2f5fb; }
.nav-table[aria-current="true"] { background: var(--blue-pale); color: var(--blue-dark); font-weight: 750; }
.nav-table[aria-current="true"] [data-icon] { color: var(--blue-dark); }
.sidebar-footer { margin-top: auto; border-top: 1px solid var(--stroke); padding: 16px 7px 0; color: var(--muted); font-size: 11px; }
.sidebar-footer > div, .text-button { display: flex; align-items: center; gap: 7px; }
.sidebar-footer [data-icon] svg { width: 15px; height: 15px; }
.text-button { margin-top: 9px; padding: 4px 0; border: 0; background: transparent; font-size: 12px; color: var(--blue-dark); }
.text-button:hover { text-decoration: underline; }

main { min-width: 0; width: 100%; max-width: 1720px; padding: 27px 38px 26px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; min-height: 21px; color: var(--muted); font-size: 12px; }
.breadcrumbs span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs [data-icon] { color: #8591a7; }
.breadcrumbs [data-icon] svg { width: 14px; height: 14px; }
.breadcrumbs .current { color: #334563; font-weight: 700; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 15px 0 22px; }
.page-header > div:first-child { min-width: 0; }
h1 { margin: 0; font-size: clamp(25px, 2.6vw, 36px); line-height: 1.25; letter-spacing: -.06em; overflow-wrap: anywhere; }
.view-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.range-tag { display: inline-flex; align-items: center; gap: 5px; background: #e7eefc; color: #345692; border-radius: 5px; padding: 3px 7px; font: 650 11px ui-monospace, "Cascadia Mono", monospace; }
.range-tag [data-icon] svg { width: 12px; height: 12px; }
.view-switch { display: flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid #dde5f2; border-radius: 9px; background: #eaf0f8; }
.view-switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; white-space: nowrap; border: 0; border-radius: 6px; background: transparent; color: #576880; font-size: 12px; font-weight: 700; }
.view-switch button:hover:not(:disabled) { color: var(--blue); }
.view-switch button[aria-pressed="true"] { background: #fff; color: #2251ca; box-shadow: 0 1px 3px #13244914; }
.view-switch button:disabled { opacity: .48; }
.view-switch [data-icon] svg { width: 15px; height: 15px; }
.view-actions { display: grid; gap: 5px; justify-items: end; flex: none; }
#source-sheet { max-width: 100%; padding: 5px; border: 1px solid var(--stroke); border-radius: 6px; background: var(--surface); color: var(--ink); }

.data-card { border: 1px solid var(--stroke); border-radius: var(--radius); background: #fff; box-shadow: 0 3px 7px #13244908; }
.closed-workspace { display: grid; justify-items: center; gap: 11px; margin-top: 12px; padding: 42px 16px; text-align: center; }
.closed-workspace > [data-icon] { padding: 10px; border-radius: 10px; color: var(--blue-dark); background: var(--blue-pale); }
.closed-workspace > [data-icon] svg { width: 24px; height: 24px; }
.closed-workspace h1 { font-size: 20px; }
.closed-workspace p { margin: 0 0 5px; color: var(--muted); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; }
.search-box { display: flex; align-items: center; gap: 9px; width: min(390px, 100%); height: 40px; padding: 0 10px 0 11px; border: 1px solid #dce3ef; border-radius: 8px; color: #697a96; }
.search-box:focus-within { border-color: #7396ef; box-shadow: 0 0 0 3px #e5ecff; }
.search-box:has(input:disabled) { opacity: .55; }
.search-box input { min-width: 0; flex: 1; align-self: stretch; padding: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font-size: 13px; }
.search-box input::placeholder { color: #697990; }
.search-box input::-webkit-search-cancel-button { display: none; }
kbd { background: #f5f7fb; border: 1px solid var(--stroke); border-radius: 4px; padding: 2px 5px; white-space: nowrap; font: 11px ui-monospace, "Cascadia Mono", monospace; }
.search-box .icon-button { border: 0; width: 23px; height: 24px; }
.search-box .icon-button svg { width: 14px; height: 14px; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.filter-count { border-radius: 20px; padding: 1px 5px; color: var(--blue-dark); background: var(--blue-pale); font-size: 11px; }
.filter-panel {
  position: absolute;
  z-index: 3;
  top: calc(100% + 8px);
  right: 0;
  width: min(300px, calc(100vw - 28px));
  display: grid;
  gap: 8px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  box-shadow: 0 12px 36px #1a2e5c22;
}
.filter-panel strong { margin-bottom: 2px; }
.filter-panel label, #range-form > label { font-weight: 700; font-size: 12px; }
.filter-panel select, .filter-panel input, #range-form > input, #range-form > select {
  min-width: 0;
  width: 100%;
  height: 37px;
  padding: 0 9px;
  border: 1px solid #d7e0ee;
  border-radius: 6px;
  background: white;
  color: var(--ink);
}
.filter-panel .button { margin-top: 5px; }
.active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.filter-chip { max-width: 100%; min-height: 27px; display: inline-flex; gap: 6px; align-items: center; border: 0; border-radius: 5px; padding: 3px 7px; color: #244da9; background: var(--blue-pale); font-size: 11px; }
.filter-chip > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-chip [data-icon] svg { width: 12px; height: 12px; }
.clear-filters { margin: 0 0 0 3px; font-size: 11px; }
.cell-style-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 0 16px 12px; color: var(--muted); font-size: 12px; }
.cell-style-controls label { display: flex; align-items: center; gap: 7px; }
.cell-style-controls select, #cell-style-form > select { min-height: 34px; padding: 0 7px; border: 1px solid var(--stroke); border-radius: 6px; color: var(--ink); background: var(--surface); }
#edit-cell-style[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-pale); color: var(--blue-dark); }

.grid-scroll { overflow: auto; overflow-anchor: none; max-height: clamp(270px, 62vh, 680px); border-top: 1px solid var(--stroke); }
.grid-scroll:focus-visible { outline-offset: -2px; }
table { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; font-size: 13px; }
th, td { height: 47px; padding: 0 13px; text-align: left; border-bottom: 1px solid #ebeff6; white-space: nowrap; }
thead th { position: sticky; top: 0; z-index: 1; height: 43px; color: #475872; background: #f3f6fb; border-bottom-color: var(--stroke); font-weight: 750; }
tbody tr:hover :is(td, th) { background: #f5f8ff; }
.row-number { text-align: center; color: #64748b; font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 400; padding: 0 5px; }
.row-number[scope="row"] { background: #fafbfe; }
.header-sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  padding: 5px 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  font-weight: inherit;
}
.header-sort:hover, th[aria-sort] .header-sort { color: var(--blue-dark); }
.header-sort > span:first-child, .cell-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.header-sort [data-icon] { color: #8798b2; }
th[aria-sort] [data-icon] { color: var(--blue-dark); }
.header-sort [data-icon] svg { width: 13px; height: 13px; }
.cell-text { display: inline-block; max-width: 100%; vertical-align: middle; }
.cell-edit-target { display: inline-flex; align-items: center; width: 100%; min-width: 0; min-height: 31px; padding: 2px 5px; border: 1px dashed var(--stroke); border-radius: 5px; color: inherit; background: transparent; font: inherit; text-align: left; vertical-align: middle; }
.cell-edit-target:hover { border-color: var(--blue); background: var(--blue-pale); }
.numeric .cell-edit-target { justify-content: flex-end; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.align-left .cell-edit-target { justify-content: flex-start; }
.align-center .cell-edit-target { justify-content: center; }
.align-right .cell-edit-target { justify-content: flex-end; }
.item-code { color: #4c6286; font-size: 12px; font-variant-numeric: tabular-nums; }
.category-tag { color: #3b557d; background: #edf2fa; padding: 3px 7px; border-radius: 5px; font-size: 11px; }
.status-pill { display: inline-flex; gap: 5px; align-items: center; max-width: 100%; border-radius: 20px; padding: 4px 8px; font-weight: 700; font-size: 11px; }
.status-pill::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-positive { color: #11734c; background: #e5f6ee; }
.status-warning { color: #87530c; background: #fff1d7; }
.status-danger { color: #a33340; background: #fcebed; }
.status-neutral { color: #4c6084; background: #edf2fa; }
mark { background: #ffecaa; color: inherit; border-radius: 2px; }
.source-table td, .source-table tbody th { height: 36px; border-right: 1px solid #ebeff6; }
.source-table td.in-table { background: #f0f5ff; }
.source-table tr:hover td.in-table { background: #e7efff; }
table .grid-spacer td { height: 0; border: 0; padding: 0; font-size: 0; pointer-events: none; }

.empty { padding: 43px 18px; text-align: center; color: var(--muted); border-top: 1px solid var(--stroke); }
.empty strong { display: block; margin-top: 9px; color: var(--ink); }
.empty p { margin: 7px 0 0; font-size: 12px; }
.empty svg { width: 28px; height: 28px; color: #8298bc; }
.table-footer { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 10px 16px; gap: 10px; border-top: 1px solid var(--stroke); }
.table-footer p { margin: 0; color: var(--muted); font-size: 12px; }
.table-footer p strong { color: #304465; }
.page-buttons { display: flex; gap: 8px; align-items: center; white-space: nowrap; color: var(--muted); font-size: 12px; }
.page-buttons > span { text-align: center; min-width: 36px; font-variant-numeric: tabular-nums; }
.row-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.row-controls label { display: flex; gap: 5px; align-items: center; white-space: nowrap; }
.row-controls select { min-height: 32px; padding-inline: 5px; border: 1px solid var(--stroke); border-radius: 6px; color: var(--ink); background: var(--surface); }
.row-pages { flex-wrap: wrap; }
.content-footer { display: flex; align-items: flex-start; gap: 6px; margin: 13px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.content-footer [data-icon] svg { width: 15px; height: 15px; }
.notice { padding: 10px 12px; margin-bottom: 12px; color: #294876; background: #e9f0ff; border-radius: 8px; font-size: 13px; }
.notice.error { background: #ffedf0; color: #8c2539; }
.drop-layer { position: fixed; z-index: 5; inset: 0; display: grid; place-items: center; background: #1b315bad; pointer-events: none; }
.drop-layer > div { min-width: min(340px, 90vw); text-align: center; display: grid; justify-items: center; gap: 12px; padding: 36px 22px; background: #f3f7ff; border: 2px dashed #6590ff; border-radius: 17px; color: var(--blue-dark); }
.drop-layer svg { width: 32px; height: 32px; }
.drop-layer strong { font-size: 17px; }

dialog { width: min(430px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--stroke); border-radius: 13px; color: var(--ink); background: white; box-shadow: 0 24px 80px #05133b33; }
dialog::backdrop { background: #1a2c5173; }
#range-form { display: grid; gap: 8px; }
#cell-style-form { display: grid; gap: 8px; }
#cell-style-form fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
#cell-style-form legend, #cell-style-form > label { margin-bottom: 5px; font-weight: 700; }
.style-scope-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.style-scope-buttons + .style-scope-buttons { margin-top: 6px; }
.style-scope-buttons .button { min-height: 34px; padding-inline: 9px; }
#cell-style-form .style-scope-buttons button[aria-pressed="true"] { border-color: #2454d4; background: #2454d4; color: #fff; }
#cell-style-form .text-button[aria-pressed="true"] { font-weight: 700; text-decoration: underline; }
[data-style-choice]:is([data-style-choice="neutral"], [data-style-choice="positive"], [data-style-choice="warning"], [data-style-choice="danger"])::before { content: ""; flex: none; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--choice-dot, #8494b0); }
[data-style-choice="positive"] { --choice-dot: #2aa873; }
[data-style-choice="warning"] { --choice-dot: #dc9627; }
[data-style-choice="danger"] { --choice-dot: #d95565; }
#clear-cell-alignment[aria-pressed="true"] { font-weight: 700; text-decoration: underline; }
.cell-style-value { margin: 0 0 5px; padding: 10px; max-height: 130px; overflow: auto; overflow-wrap: anywhere; white-space: pre-wrap; border-radius: 6px; background: var(--background); color: var(--ink); }
#range-form > label:not(:first-child) { margin-top: 4px; }
.dialog-header, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dialog-header h2 { margin: 0; font-size: 19px; letter-spacing: -.04em; }
.dialog-description { margin: 2px 0 6px; color: var(--muted); font-size: 12px; }
.dialog-actions { justify-content: flex-end; margin-top: 12px; }
.range-error { margin: 5px 0 0; color: #a33340; font-size: 12px; }
.install-instructions { display: grid; gap: 13px; margin: 15px 0 0; padding: 0; list-style: none; }
.install-instructions li { display: grid; gap: 3px; padding: 10px 12px; border-radius: 7px; background: var(--background); }
.install-instructions span, #install-dialog p { color: var(--muted); line-height: 1.5; }

@media (max-width: 1000px) {
  .layout { --sidebar-width: 205px; }
  main { padding-inline: 23px; }
  .topbar { padding-right: 23px; }
}
@media (max-width: 720px) {
  .topbar { min-height: 61px; padding-inline: 16px; }
  .layout, .layout.sidebar-collapsed { position: relative; grid-template-columns: 54px minmax(0, 1fr); }
  .sidebar { position: absolute; z-index: 4; inset: 0 auto 0 0; width: min(225px, 76vw); padding: 10px; box-shadow: 12px 0 32px #0818302b; transition: width 180ms ease; }
  .sidebar-collapsed .sidebar { width: 54px; box-shadow: none; }
  .sheet-group { margin: 0 0 4px; }
  .sheet-label, .nav-table { min-height: 31px; }
  .sidebar-footer { display: none; }
  main { grid-column: 2; padding: 17px 10px 22px; }
  .page-header { align-items: flex-start; margin: 10px 0 16px; }
  .toolbar { flex-wrap: wrap; padding: 11px; gap: 8px; }
  .search-box { width: 100%; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions .button { min-height: 35px; }
  .filter-panel { left: 0; right: auto; width: min(300px, 100%); }
  .table-footer { padding-inline: 10px; flex-wrap: wrap; }
}
@media (max-width: 430px) {
  .topbar-start { gap: 8px; }
  .brand { gap: 7px; }
  .install-label { display: none; }
  #install-app { padding-inline: 10px; }
  .view-switch button { padding-inline: 7px; }
  .view-switch [data-icon], kbd { display: none; }
  .view-meta { gap: 5px; }
  .page-header { flex-wrap: wrap; }
  .view-actions { justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .layout, .sidebar { transition: none; }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #151e2d;
  --background: #0e1623;
  --stroke: #32415a;
  --ink: #e5edf8;
  --muted: #aebdd2;
  --blue: #3a68e2;
  --blue-dark: #a8c2ff;
  --blue-pale: #21385e;
}
[data-theme="dark"] :is(.data-card, .secondary, .icon-button, .filter-panel, dialog, .view-switch button[aria-pressed="true"], .filter-panel input, .filter-panel select, #range-form > input, #range-form > select) {
  background: var(--surface); border-color: var(--stroke); color: var(--ink);
}
[data-theme="dark"] .primary { color: white; background: #2f60da; }
[data-theme="dark"] .primary:hover:not(:disabled) { background: #2854c1; }
[data-theme="dark"] :is(.file-card, kbd, .view-switch, thead th, .row-number[scope="row"]) { background: #1b283c; border-color: var(--stroke); }
[data-theme="dark"] :is(.sidebar-heading, .sheet-label, .nav-table, .search-box, .view-switch button, .row-number, .item-code, .breadcrumbs .current, .secondary [data-icon], .table-footer p strong, thead th),
[data-theme="dark"] .search-box input::placeholder { color: var(--muted); }
[data-theme="dark"] :is(.nav-table:hover, .nav-table[aria-current="true"], .icon-button:not(:disabled):hover, .sidebar-toggle[aria-expanded="false"], .secondary:not(:disabled):hover, .secondary[aria-expanded="true"], .view-switch button[aria-pressed="true"], .range-tag, .filter-chip) {
  background: var(--blue-pale); color: var(--blue-dark); border-color: var(--stroke);
}
[data-theme="dark"] :is(.search-box, th, td, .source-table tbody th) { border-color: var(--stroke); }
[data-theme="dark"] .search-box:focus-within { border-color: #749afa; box-shadow: 0 0 0 2px #354b79; }
[data-theme="dark"] tbody tr:hover :is(td, th) { background: #1d2b40; }
[data-theme="dark"] :is(.source-table td.in-table, .source-table tr:hover td.in-table, .drop-layer > div, .notice) { background: #23395d; color: #b9ceff; }
[data-theme="dark"] :is(.category-tag, .status-neutral) { background: #293850; color: #c1d3ee; }
[data-theme="dark"] :is(.status-positive, .file-icon) { background: #153e32; color: #94e2bc; }
[data-theme="dark"] .status-warning { background: #493515; color: #ffdb8a; }
[data-theme="dark"] :is(.status-danger, .notice.error) { background: #4b2937; color: #ffc2ca; }
[data-theme="dark"] .range-error { color: #ffc2ca; }
[data-theme="dark"] mark { background: #695320; color: #fff1b9; }
@media (max-width: 375px) {
  .brand small { display: none; }
}

/* Slim rounded scrollbars with no visible track. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { min-width: 36px; min-height: 36px; border: 2px solid transparent; border-radius: 999px; background-color: #c5cfdf; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #9eacc4; }
::-webkit-scrollbar-thumb:active { background-color: #7f90ad; }
[data-theme="dark"]::-webkit-scrollbar-thumb, [data-theme="dark"] ::-webkit-scrollbar-thumb { background-color: #3d4d68; }
[data-theme="dark"]::-webkit-scrollbar-thumb:hover, [data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background-color: #566a8d; }
[data-theme="dark"]::-webkit-scrollbar-thumb:active, [data-theme="dark"] ::-webkit-scrollbar-thumb:active { background-color: #6f84aa; }
/* Firefox has no scrollbar pseudo-elements. */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: #c5cfdf transparent; }
  [data-theme="dark"], [data-theme="dark"] * { scrollbar-color: #3d4d68 transparent; }
}
