/* Local Apple Store-inspired visual system. */
:root {
  --rail: 0px;
  --ink: #1d1d1f;
  --muted: #68686d;
  --green: #8d1246;
  --line: #e2e2e7;
  --card: #fff;
  --shadow: none;
  color: var(--ink);
  background: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "PingFang SC", Arial, sans-serif;
}
body {
  background: #f5f5f7;
}
.workspace {
  margin-left: 0;
}
.sidebar {
  position: relative;
  inset: auto;
  width: 100%;
  height: 54px;
  background: rgba(250, 250, 252, 0.94);
  color: #303033;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 2.1vw, 42px);
  border-bottom: 1px solid #e7e7eb;
  z-index: 10;
}
.brand {
  height: auto;
  flex: none;
  margin: 0;
  border: none;
  gap: 7px;
}
.brand strong {
  font-size: 15px;
  letter-spacing: -0.04em;
  color: #27272b;
}
.brand small,
.side-foot {
  display: none;
}
.brand #brand-mark svg {
  width: 26px;
  height: 26px;
}
.sidebar nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.65vw, 30px);
  padding: 0;
  overflow: visible;
}
.nav-group {
  display: contents;
}
.nav-group + .nav-group {
  margin: 0;
}
.nav-label,
.nav-group a .ico {
  display: none;
}
.nav-group a {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  padding: 0;
  margin: 0;
  border-radius: 0;
  font-size: 13px;
  color: #47474b;
  white-space: nowrap;
  background: transparent;
}
.nav-group a:hover,
.nav-group a.active {
  background: transparent;
  color: #921343;
}
.nav-group a.active:before {
  background: #961848;
  top: auto;
  left: 15%;
  right: 15%;
  bottom: 6px;
  width: auto;
  height: 2px;
}
.topbar {
  margin: 0 auto;
  width: min(1392px, 94%);
  height: 43px;
  background: transparent;
  border: 0;
  padding: 0;
  justify-content: flex-end;
}
.crumb {
  display: none;
}
.book-switch {
  background: transparent;
  color: #58585e;
  border: 1px solid #dddde2;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}
.book-list {
  border-color: var(--line);
}
.book-list button:hover,
.icon-btn:hover {
  background: #f5f5f7;
}
main {
  width: min(1392px, 94%);
  max-width: none;
  margin: 0 auto;
  padding: 12px 0 55px;
}
.page-heading {
  margin: 9px 0 26px;
}
.page-heading h1 {
  letter-spacing: -0.055em;
  font-size: clamp(30px, 3.2vw, 50px);
  font-weight: 680;
  color: #84103f;
}
.page-heading p {
  color: #6e6e73;
}
.btn {
  border-radius: 999px;
  border: 1px solid #d6d6dc;
  color: #26262a;
  background: #fff;
  font-weight: 500;
  padding: 8px 17px;
}
.btn:hover {
  background: #f5f5f7;
  border-color: #adadb5;
}
.btn.primary {
  background: #0071e3;
  border-color: #0071e3;
  color: white;
}
.btn.primary:hover {
  background: #0077ed;
}
.panel,
.metric,
.cat-stat,
.ledger-metric {
  background: white;
  border-color: #e9e9ed;
  border-radius: 18px;
  box-shadow: 0 3px 13px #30303d07;
}
.panel-head h2,
.panel h2,
.ledger-title h2 {
  color: #25252a;
  font-weight: 650;
}
.panel-head p,
.subtle {
  color: #707076;
}
.tab.active,
.cat-tab.active,
.ledger-tabs .selected,
.badge {
  background: #ededf2;
  color: #3c3c46;
}
.cat-link,
.ledger-link {
  color: #0066cc;
}
.cat-link:hover,
.ledger-link:hover {
  background: #f0f3fb;
}
.positive {
  color: #256849;
}
.negative {
  color: #ac2145 !important;
}
.cat-tabs,
.ledger-tabs {
  border-color: #ececf0;
}
.cat-tab:hover {
  background: #f4f4f6;
}
table th {
  background: #f7f7f9;
  color: #6b6b73;
}
td,
th {
  border-color: #ececf0;
}
td {
  color: #303036;
}
tbody tr:hover td {
  background: #fbfbfd;
}
select,
input:not([type="checkbox"]):not([type="radio"]),
textarea {
  color: #1d1d1f;
  border-color: #d5d5dc;
}
dialog {
  border-radius: 19px;
  border-color: #dddde2;
}
.toast {
  background: #28282a;
}
.dialog-head {
  border-color: #e6e6eb;
}
.cat-upload {
  background: #f6f6f9;
  border-color: #c3c3ce;
  color: #3d3d4a;
}
.cat-form input[readonly],
.cat-preview-stats .cat-stat {
  background: #f6f6f9;
  color: #4c4c58;
}
.overview-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 0;
  min-height: 126px;
}
.overview-hero .org-line {
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: 0.09em;
  font-size: 13px;
  color: #7a6470;
}
.overview-hero h1 {
  font-size: clamp(40px, 4.3vw, 70px);
  color: #880d40;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.hero-emblem {
  width: clamp(70px, 6.8vw, 108px);
  height: auto;
  display: block;
}
.overview-hero .heading-actions {
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  flex-direction: column;
}
.overview-hero .heading-actions button {
  color: #06c;
  border: 0;
  background: transparent;
  padding: 2px 0;
  min-height: 29px;
  font-size: 14px;
  flex-direction: row-reverse;
  gap: 7px;
}
.overview-hero .heading-actions .btn:hover {
  text-decoration: underline;
}
.module-bar {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 34px;
}
.module-bar a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 5px;
  padding: 3px;
  border-radius: 12px;
}
.module-bar b {
  font-size: 14px;
  font-weight: 600;
  color: #343439;
  line-height: 1.5;
}
.module-bar a:hover b {
  text-decoration: underline;
}
.module-picture {
  display: block;
  width: clamp(56px, 5.8vw, 86px);
  aspect-ratio: 1;
  background-image: url("/module-objects.webp");
  background-size: 400% 200%;
  background-position: calc(var(--col) * 100% / 3) calc(var(--row) * 100%);
  transition: transform 0.18s;
}
.module-bar a:hover .module-picture {
  transform: translateY(-3px);
}
.overview-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 13px;
}
.overview-section-heading h2 {
  font-size: clamp(24px, 2.2vw, 35px);
  font-weight: 670;
  letter-spacing: -0.045em;
  color: #84103f;
}
.overview-section-heading h2 span {
  color: #a94a72;
}
.overview-period,
.range-note,
.chart-caption {
  color: #6e6e73;
  font-size: 13px;
}
.scope-row {
  justify-content: flex-end;
  margin-top: -46px;
  margin-bottom: 14px;
  min-height: 37px;
}
.scope-row .range-note {
  display: none;
}
.overview-period {
  display: none;
}
.scope-controls {
  gap: 8px;
}
.filter-pill {
  border-color: #dcdce1;
  border-radius: 999px;
  color: #717178;
  background: #fff;
}
.filter-pill select {
  color: #43434a;
  max-width: 260px;
}
.dashboard-kpis {
  gap: clamp(10px, 1.4vw, 20px);
}
.dashboard-kpis .metric {
  position: relative;
  border: 0;
  overflow: hidden;
  padding: 19px 21px 20px;
  color: #251b22;
  box-shadow: 0 4px 13px #30303d09;
  min-height: 139px;
  border-radius: 18px;
}
.dashboard-kpis .metric:nth-child(1) {
  background: #f3c5d6;
}
.dashboard-kpis .metric:nth-child(2) {
  background: #bad3ec;
}
.dashboard-kpis .metric:nth-child(3) {
  background: #cec0eb;
}
.dashboard-kpis .metric:nth-child(4) {
  background: #ffe9a8;
}
.dashboard-kpis .metric-name {
  font-weight: 600;
  font-size: 14px;
}
.dashboard-kpis .metric-icon {
  border: 1px solid #ffffff68;
  background: #ffffff40;
  color: #37303e;
  border-radius: 50%;
  height: 29px;
  width: 29px;
}
.dashboard-kpis .metric-value {
  color: #211c24;
  font-size: clamp(25px, 2.55vw, 44px);
  letter-spacing: -0.055em;
  margin: 11px 0 9px;
}
.dashboard-kpis .metric-unit {
  color: #413c47;
  font-size: 0.52em;
}
.dashboard-kpis .metric-meta {
  color: #554854;
}
.chart-grid {
  margin: 19px 0;
  gap: 18px;
  grid-template-columns: minmax(0, 1.72fr) minmax(270px, 1fr);
}
.bar-track {
  background: #f2f0f4;
}
.rank-idx,
.rank-row:first-child .rank-idx {
  color: #896476;
}
.rank-line b {
  color: #383439;
}
.legend i {
  background: #9c3464;
}
.legend span + span i {
  background: #778dcc;
}
.rank-line span,
.legend span {
  color: #5a5560;
}
.trend-tip {
  background: #333036ed;
}
.summary-panel .tabs {
  border-color: #e1e1e5;
  background: #f4f4f7;
}
.summary-panel .tab.active {
  color: #28282f;
}
.summary-foot {
  background: #fcfcfd;
  color: #6c6c75;
  border-color: #ececf0;
}
.ledger-strip {
  background: white;
  border-color: #e7e7ec;
  border-radius: 15px;
}
.ledger-strip button:hover {
  background: #f6f6fa;
}
.ledger-strip span {
  color: #62616a;
}
.ledger-strip small {
  color: #74747b;
}
.shop-panel + .shop-panel,
.tariff-panel,
.breakdown-panel {
  margin-top: 18px;
}
.shop-note {
  margin-top: 14px;
}
.tariff-panel td small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.cost-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 4px 21px 17px;
}
.cost-strip small,
.cost-strip strong {
  display: block;
}
.cost-strip small {
  font-size: 13px;
  color: #66666c;
}
.cost-strip strong {
  font-size: 20px;
  margin-top: 5px;
}
.breakdown-panel details {
  border-top: 1px solid #e8e8ed;
  padding: 12px 21px;
}
.breakdown-panel summary {
  font-size: 14px;
  cursor: pointer;
  color: #06c;
}
.materials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}
.materials-list span {
  background: #f5f5f7;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
}
@media (min-width: 1600px) {
  .module-bar {
    margin-bottom: 45px;
  }
  .overview-hero {
    min-height: 148px;
  }
  .dashboard-kpis .metric {
    min-height: 153px;
  }
}
@media (max-width: 960px) {
  .sidebar {
    justify-content: flex-start;
    padding: 0 3%;
    gap: 15px;
  }
  .sidebar nav {
    gap: 13px;
    overflow-x: auto;
  }
  .nav-group a {
    font-size: 12px;
  }
  .brand strong {
    display: none;
  }
  .chart-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr);
  }
  .rank-list {
    grid-template-columns: 1fr;
  }
  .dashboard-kpis .metric {
    padding: 15px;
    min-height: 122px;
  }
  .module-bar {
    margin-bottom: 23px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    display: flex;
    transform: none;
    height: 46px;
    width: 100%;
    gap: 13px;
    overflow: hidden;
  }
  .sidebar nav {
    height: 46px;
  }
  .nav-group a {
    min-height: 46px;
  }
  .topbar {
    height: 36px;
  }
  .brand #brand-mark svg {
    width: 23px;
    height: 23px;
  }
  .topbar,
  .workspace main {
    width: calc(100% - 32px);
  }
  .workspace main {
    padding-top: 4px;
  }
  .overview-hero {
    min-height: 99px;
    gap: 8px;
    grid-template-columns: 1fr auto auto;
  }
  .overview-hero .org-line {
    font-size: 12px;
  }
  .overview-hero h1 {
    font-size: 34px;
  }
  .hero-emblem {
    width: 56px;
  }
  .overview-hero .heading-actions {
    gap: 0;
    margin-left: 8px;
  }
  .overview-hero .heading-actions button {
    font-size: 12px;
    min-height: 24px;
  }
  .module-bar {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scrollbar-width: thin;
    margin: 10px 0 25px;
    padding-bottom: 7px;
  }
  .module-bar a {
    flex: 1 0 61px;
  }
  .module-picture {
    width: 57px;
  }
  .module-bar b {
    font-size: 13px;
  }
  .scope-row {
    margin-top: 0;
    justify-content: flex-start;
    margin-bottom: 10px;
    min-height: 0;
  }
  .overview-section-heading {
    margin-bottom: 8px;
  }
  .overview-period {
    display: inline;
    font-size: 11px;
  }
  .dashboard-kpis .metric {
    min-height: 111px;
    padding: 12px 14px;
  }
  .dashboard-kpis .metric-value {
    font-size: 26px;
  }
  .chart-grid {
    grid-template-columns: 1fr;
    margin: 13px 0;
    gap: 13px;
  }
  .cost-strip {
    grid-template-columns: 1fr 1fr;
  }
  .page-heading {
    margin-top: 6px;
  }
  .overview-hero {
    margin-top: 0;
  }
  .rank-list {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .workspace {
    min-height: calc(100vh - 46px);
  }
  .ledger-strip {
    padding: 13px 0;
  }
}
@media (max-width: 440px) {
  .rank-list {
    grid-template-columns: 1fr;
  }
  .hero-emblem {
    width: 45px;
  }
  .module-bar {
    gap: 6px;
  }
  .overview-hero h1 {
    font-size: 30px;
  }
  .scope-controls .filter-pill select {
    max-width: 198px;
  }
}
.module-picture {
  mask-image: radial-gradient(
    ellipse 72% 72% at center,
    black 54%,
    transparent 100%
  );
}
.module-bar b {
  white-space: nowrap;
}
.product-chart {
  padding: 14px 10px;
  display: grid;
  gap: 15px;
}
.product-bar {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(60px, 1.35fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.product-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-bar b {
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  min-width: 70px;
  text-align: right;
}
.product-track {
  display: grid;
  gap: 3px;
}
.product-track i,
.product-track em {
  display: block;
  height: 6px;
  border-radius: 2px;
  background: #9c3464;
}
.product-track em {
  background: #778dcc;
  height: 5px;
}
.book-switch:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline-color: #0071e3;
}
