@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../media/fef07dbb0973bf53-s.12tyk43_3sh9u.woff2) format("woff2");
  unicode-range:
    U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../media/8a480f0b521d4e75-s.0jzbimsg8vl84.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../media/53b9e256198e5412-s.0-wfv7uh4i7h9.woff2) format("woff2");
  unicode-range:
    U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301,
    U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../media/7178b3e590c64307-s.0nx0ww8fni_q3.woff2) format("woff2");
  unicode-range:
    U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2) format("woff2");
  unicode-range:
    U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist Fallback;
  src: local(Arial);
  ascent-override: 95.94%;
  descent-override: 28.16%;
  line-gap-override: 0%;
  size-adjust: 104.76%;
}
.geist_a71539c9-module__T19VSG__className {
  font-family:
    Geist,
    Geist Fallback;
  font-style: normal;
}
.geist_a71539c9-module__T19VSG__variable {
  --font-geist-sans: "Geist", "Geist Fallback";
}
@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../media/5ce348bf30bf5439-s.0zgw-jeven.3w.woff2) format("woff2");
  unicode-range:
    U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../media/4fa387ec64143e14-s.0wkzw~je483f-.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../media/6306c77e7c8268e4-s.0rhz0arwfsn~5.woff2) format("woff2");
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../media/7d817b4c03b0c5f1-s.0l76wvqk9d84w.woff2) format("woff2");
  unicode-range:
    U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301,
    U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../media/bbc41e54d2fcbd21-s.0k4k9394f2q-k.woff2) format("woff2");
  unicode-range:
    U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../media/797e433ab948586e-s.p.08e28id.o-okb.woff2) format("woff2");
  unicode-range:
    U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist Mono Fallback;
  src: local(Arial);
  ascent-override: 74.67%;
  descent-override: 21.92%;
  line-gap-override: 0%;
  size-adjust: 134.59%;
}
.geist_mono_8d43a2aa-module__8Li5zG__className {
  font-family:
    Geist Mono,
    Geist Mono Fallback;
  font-style: normal;
}
.geist_mono_8d43a2aa-module__8Li5zG__variable {
  --font-geist-mono: "Geist Mono", "Geist Mono Fallback";
}
@layer theme {
  :root,
  :host {
    --font-sans:
      ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono:
      ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *,
  :after,
  :before,
  ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }
  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }
  html,
  :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(
      --default-font-family,
      ui-sans-serif,
      system-ui,
      sans-serif,
      "Apple Color Emoji",
      "Segoe UI Emoji",
      "Segoe UI Symbol",
      "Noto Color Emoji"
    );
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b,
  strong {
    font-weight: bolder;
  }
  code,
  kbd,
  samp,
  pre {
    font-family: var(
      --default-mono-font-family,
      ui-monospace,
      SFMono-Regular,
      Menlo,
      Monaco,
      Consolas,
      "Liberation Mono",
      "Courier New",
      monospace
    );
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(
      --default-mono-font-variation-settings,
      normal
    );
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub,
  sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol,
  ul,
  menu {
    list-style: none;
  }
  img,
  svg,
  video,
  canvas,
  audio,
  iframe,
  embed,
  object {
    vertical-align: middle;
    display: block;
  }
  img,
  video {
    max-width: 100%;
    height: auto;
  }
  button,
  input,
  select,
  optgroup,
  textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }
  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not ((-webkit-appearance: -apple-pay-button))) or
    (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }
    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button,
  input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }
  ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button {
    height: auto;
  }
  ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer components;
@layer utilities {
  .visible {
    visibility: visible;
  }
  .relative {
    position: relative;
  }
  .\!start {
    inset-inline-start: var(--spacing) !important;
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .\!end {
    inset-inline-end: var(--spacing) !important;
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .table {
    display: table;
  }
  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}
:root {
  --ink: #172033;
  --muted: #6b7486;
  --line: #e6e9ef;
  --canvas: #f4f6f9;
  --blue: #2962ff;
  --green: #11845b;
  --red: #d44b50;
}
* {
  box-sizing: border-box;
}
body {
  background: var(--canvas);
  color: var(--ink);
  margin: 0;
  font-family:
    Arial,
    Microsoft YaHei,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.load-error {
  background: #f4f6f9;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  display: grid;
}
.load-error > div {
  text-align: center;
  background: #fff;
  border: 1px solid #e3e7ed;
  border-radius: 14px;
  width: min(460px, 100%);
  padding: 28px;
  box-shadow: 0 8px 30px #1e2c4614;
}
.load-error strong,
.load-error span {
  display: block;
}
.load-error strong {
  font-size: 17px;
}
.load-error span {
  color: #6b7486;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
}
.app-shell {
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}
.sidebar {
  color: #fff;
  background: #101c35;
  flex-direction: column;
  height: 100vh;
  padding: 24px 16px;
  display: flex;
  position: sticky;
  top: 0;
}
.brand-mark {
  border-bottom: 1px solid #24324d;
  align-items: center;
  gap: 12px;
  padding: 0 8px 26px;
  display: flex;
}
.brand-icon {
  background: linear-gradient(135deg, #4f7cff, #2dc4a3);
  border-radius: 11px;
  place-items: center;
  width: 38px;
  height: 38px;
  font-weight: 800;
  display: grid;
}
.brand-mark strong,
.brand-mark small {
  display: block;
}
.brand-mark strong {
  font-size: 17px;
}
.brand-mark small {
  color: #9fabc0;
  margin-top: 3px;
  font-size: 12px;
}
nav {
  gap: 7px;
  padding-top: 22px;
  display: grid;
}
.nav-item {
  text-align: left;
  color: #aeb9cc;
  background: 0 0;
  border: 0;
  border-radius: 9px;
  padding: 12px 14px;
}
.nav-item span {
  width: 28px;
  display: inline-block;
}
.nav-item.active {
  color: #fff;
  background: #23488f;
  font-weight: 700;
}
.master-card {
  background: #162541;
  border: 1px solid #2b3b59;
  border-radius: 12px;
  margin-top: auto;
  padding: 15px;
}
.master-card small,
.master-card strong,
.master-card span {
  display: block;
}
.master-card small {
  color: #8391a8;
  font-size: 11px;
}
.master-card strong {
  margin-top: 8px;
  font-size: 13px;
}
.master-card span {
  color: #aeb9cc;
  margin-top: 5px;
  font-size: 12px;
}
.workspace {
  min-width: 0;
  padding: 28px 30px 42px;
}
.topbar {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
  display: flex;
}
.topbar h1 {
  letter-spacing: -0.5px;
  margin: 0;
  font-size: 25px;
}
.demo-badge {
  color: #8a6500;
  vertical-align: middle;
  letter-spacing: 0;
  background: #fff3cd;
  border-radius: 7px;
  margin-left: 8px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 700;
  display: inline-block;
}
.topbar p {
  color: var(--muted);
  margin: 7px 0 0;
  font-size: 13px;
}
.sync-state {
  color: #536076;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 9px 12px;
  font-size: 12px;
}
.sync-state i {
  background: #1eb980;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  display: inline-block;
}
.summary-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  display: grid;
}
.summary-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  justify-content: space-between;
  min-height: 118px;
  padding: 19px 20px;
  display: flex;
  position: relative;
  box-shadow: 0 2px 10px #1e2c4609;
}
.summary-card.interactive {
  cursor: pointer;
  outline: none;
}
.summary-card.interactive:hover,
.summary-card.interactive:focus,
.summary-card.popup-open {
  border-color: #a9c0f6;
  box-shadow: 0 5px 20px #23488f1f;
}
.summary-card span,
.summary-card strong,
.summary-card small {
  display: block;
}
.summary-card span {
  color: var(--muted);
  font-size: 12px;
}
.summary-card strong {
  margin-top: 9px;
  font-size: 25px;
}
.summary-card small {
  color: #9199a8;
  margin-top: 7px;
  font-size: 11px;
}
.summary-card > i {
  background: #dce6ff;
  border-radius: 8px;
  width: 9px;
  height: 45px;
}
.summary-card.green > i {
  background: #ccefe3;
}
.summary-card.red > i {
  background: #f5d7d8;
}
.summary-card.amber > i {
  background: #f6e4b8;
}
.summary-breakdown {
  z-index: 80;
  cursor: default;
  background: #fff;
  border: 1px solid #d8dfeb;
  border-radius: 12px;
  width: min(390px, 100vw - 34px);
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  overflow: hidden;
  box-shadow: 0 16px 42px #1720332e;
}
.breakdown-title,
.breakdown-total,
.breakdown-row {
  grid-template-columns: minmax(120px, 1fr) 95px 55px;
  align-items: center;
  gap: 10px;
  display: grid;
}
.breakdown-title {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  padding: 13px 14px;
  display: flex;
}
.breakdown-title strong {
  margin: 0;
  font-size: 12px;
}
.breakdown-title span {
  color: #8993a5;
  font-size: 9px;
}
.breakdown-rows {
  max-height: 310px;
  overflow-y: auto;
}
.breakdown-row {
  border-bottom: 1px solid #edf0f4;
  min-height: 41px;
  padding: 8px 14px;
}
.breakdown-row strong {
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
  font-size: 11px;
}
.breakdown-row b,
.breakdown-total b {
  text-align: right;
  font-size: 11px;
}
.breakdown-row span,
.breakdown-total span {
  text-align: right;
  color: #7d8797;
  font-size: 10px;
}
.breakdown-total {
  background: #f7f9fc;
  padding: 12px 14px;
}
.breakdown-total strong {
  margin: 0;
  font-size: 11px;
}
.breakdown-empty {
  color: #8993a5;
  text-align: center;
  padding: 25px 14px;
  font-size: 11px;
}
.ad-management-list {
  gap: 16px;
  display: grid;
}
.ad-management-note {
  color: #476080;
  background: #f4f8ff;
  border: 1px solid #d9e5ff;
  border-radius: 11px;
  padding: 12px 15px;
  font-size: 12px;
  line-height: 1.65;
}
.ad-management-group {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px #1e2c4609;
}
.ad-management-group > header {
  border-bottom: 1px solid var(--line);
  background: #f5f8ff;
  justify-content: space-between;
  align-items: center;
  padding: 14px 17px;
  display: flex;
}
.ad-management-group > header > div {
  align-items: center;
  gap: 9px;
  display: flex;
}
.ad-management-group > header strong {
  font-size: 14px;
}
.ad-management-group > header small {
  color: #315fb8;
  background: #e4edff;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 10px;
}
.ad-management-group > header > span {
  color: #7d8797;
  font-size: 11px;
}
.managed-account-grid {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 10px;
  padding: 13px;
  display: grid;
}
.managed-account-card {
  background: #fbfcfe;
  border: 1px solid #e2e6ed;
  border-radius: 10px;
  min-width: 0;
  padding: 12px;
}
.managed-account-card.editing {
  background: #f7faff;
  border-color: #9eb9f4;
  grid-column: span 2;
}
.managed-account-title {
  justify-content: space-between;
  align-items: flex-start;
  gap: 9px;
  display: flex;
}
.managed-account-title strong,
.managed-account-title small {
  display: block;
}
.managed-account-title strong {
  font-size: 13px;
}
.managed-account-title small {
  color: #7d8797;
  margin-top: 4px;
  font-size: 10px;
}
.managed-account-title > span {
  color: #6744bd;
  background: #eee9ff;
  border-radius: 999px;
  flex: none;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 700;
}
.managed-brand-list {
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  min-height: 42px;
  margin: 11px 0;
  display: flex;
}
.managed-brand-list b {
  color: #0f8058;
  background: #e8f7f1;
  border-radius: 7px;
  padding: 5px 7px;
  font-size: 10px;
}
.managed-brand-list b.idle {
  color: #9a6700;
  background: #fff1c2;
}
.managed-brand-list em {
  color: #9aa2b0;
  font-size: 10px;
  font-style: normal;
}
.managed-edit-button {
  color: #536076;
  background: #fff;
  border: 1px solid #dce1e9;
  border-radius: 7px;
  width: 100%;
  padding: 7px;
  font-size: 10px;
  font-weight: 700;
}
.managed-edit-button:hover {
  color: #245ddb;
  border-color: #aac0ef;
}
.managed-editor {
  gap: 8px;
  margin-top: 10px;
  display: grid;
}
.managed-editor label {
  color: #6b7486;
  font-size: 10px;
}
.managed-editor textarea {
  resize: vertical;
  width: 100%;
  min-height: 105px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd7e5;
  border-radius: 8px;
  outline: none;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.55;
}
.managed-editor textarea:focus {
  border-color: #7196f4;
  box-shadow: 0 0 0 3px #e8efff;
}
.managed-editor > div {
  flex-wrap: wrap;
  gap: 7px;
  display: flex;
}
.managed-editor button {
  color: #536076;
  background: #fff;
  border: 1px solid #cfd7e5;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 700;
}
.managed-editor button.save {
  color: #fff;
  background: #245ddb;
  border-color: #245ddb;
}
.managed-editor button:disabled {
  opacity: 0.65;
}
.filterbar {
  grid-template-columns: minmax(320px, 1fr) 190px 190px;
  gap: 10px;
  margin: 18px 0 14px;
  display: grid;
}
.searchbox {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  align-items: center;
  padding: 0 13px;
  display: flex;
}
.searchbox span {
  color: #8690a1;
  font-size: 20px;
}
.searchbox input {
  width: 100%;
  height: 42px;
  color: var(--ink);
  border: 0;
  outline: none;
  padding-left: 10px;
}
.filterbar select {
  border: 1px solid var(--line);
  color: #4e596d;
  background: #fff;
  border-radius: 10px;
  outline: none;
  height: 42px;
  padding: 0 12px;
}
.content-grid {
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  display: grid;
}
.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px #1e2c4609;
}
.panel-heading {
  border-bottom: 1px solid var(--line);
  padding: 17px 18px;
}
.management-panel > .panel-heading {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  display: flex;
}
.panel-heading h2,
.panel-heading span {
  margin: 0;
  display: inline;
}
.panel-heading h2 {
  font-size: 15px;
}
.panel-heading span {
  color: #8a93a3;
  margin-left: 8px;
  font-size: 11px;
}
.mcc-group {
  border-bottom: 1px solid #e8ecf2;
}
.mcc-row {
  width: 100%;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 0;
  grid-template-columns: 32px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 10px;
  padding: 15px;
  display: grid;
}
.mcc-row:hover,
.mcc-row.expanded {
  background: #f5f8ff;
}
.mcc-folder {
  color: #3566c5;
  background: #e9f0ff;
  border-radius: 8px;
  place-items: center;
  width: 29px;
  height: 29px;
  font-size: 11px;
  font-weight: 800;
  display: grid;
}
.mcc-copy strong,
.mcc-copy small {
  display: block;
}
.mcc-copy strong {
  font-size: 13px;
}
.mcc-copy small {
  color: #8993a5;
  margin-top: 4px;
  font-size: 10px;
}
.mcc-summary {
  white-space: nowrap;
  justify-items: end;
  gap: 3px;
  font-size: 10px;
  line-height: 1.1;
  display: grid;
}
.mcc-account-count {
  color: #536076;
}
.mcc-summary .run {
  color: var(--green);
}
.mcc-summary .stop {
  color: var(--red);
}
.mcc-row > b {
  color: #8993a5;
  font-size: 20px;
  transition: transform 0.18s;
  transform: rotate(0);
}
.mcc-row.expanded > b {
  transform: rotate(90deg);
}
.management-panel {
  min-height: 420px;
}
.management-list,
.sync-list {
  display: grid;
}
.management-row {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 36px minmax(180px, 1.5fr) repeat(3, minmax(90px, 1fr));
  align-items: center;
  gap: 18px;
  padding: 17px 20px;
  display: grid;
}
.management-row > div:not(.management-name) {
  gap: 4px;
  display: grid;
}
.management-name strong,
.management-name small,
.sync-row strong,
.sync-row small {
  display: block;
}
.management-name small,
.sync-row small {
  color: #8993a5;
  margin-top: 4px;
  font-size: 10px;
}
.management-row div > span,
.sync-row div > span {
  color: #8993a5;
  font-size: 10px;
}
.management-row div > strong {
  font-size: 15px;
}
.green-stat strong {
  color: var(--green);
}
.red-stat strong {
  color: var(--red);
}
.amber-stat strong {
  color: #bb7b00;
}
.sync-row {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 36px minmax(180px, 1.4fr) minmax(110px, 0.7fr) minmax(
      190px,
      1fr
    ) auto;
  align-items: center;
  gap: 18px;
  padding: 17px 20px;
  display: grid;
}
.sync-row > div {
  gap: 4px;
  display: grid;
}
.sync-ok {
  width: 28px;
  height: 28px;
  color: var(--green);
  background: #e5f7ef;
  border-radius: 50%;
  place-items: center;
  font-weight: 800;
  display: grid;
}
.sync-success {
  color: var(--green);
  white-space: nowrap;
  background: #e5f7ef;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
}
.download-script-button {
  color: #245ddb;
  white-space: nowrap;
  background: #f5f8ff;
  border: 1px solid #cfdaf1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.download-script-button:hover {
  background: #eaf1ff;
}
.script-update-notice {
  color: #805e12;
  background: #fff8e5;
  border-bottom: 1px solid #f0dfae;
  padding: 11px 18px;
  font-size: 11px;
  line-height: 1.6;
}
.mcc-accounts {
  background: #fbfcfe;
  box-shadow: inset 0 1px #edf0f4;
}
.account-row {
  text-align: left;
  width: 100%;
  color: var(--ink);
  background: #fbfcfe;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  grid-template-columns: 22px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 9px;
  padding: 12px 15px 12px 25px;
  display: grid;
}
.account-row:hover {
  background: #f8faff;
}
.account-row.selected {
  box-shadow: inset 3px 0 var(--blue);
  background: #eef4ff;
}
.account-tree-line {
  border-bottom: 1px solid #c9d2e2;
  border-left: 1px solid #c9d2e2;
  border-radius: 0 0 0 5px;
  width: 14px;
  height: 18px;
  transform: translateY(-5px);
}
.account-main strong,
.account-main small {
  display: block;
}
.account-main strong {
  font-size: 12px;
}
.account-main small {
  color: #8a93a3;
  margin-top: 4px;
  font-size: 10px;
}
.mini-status {
  white-space: nowrap;
  gap: 4px;
  font-size: 10px;
  display: grid;
}
.mini-status .run {
  color: var(--green);
}
.mini-status .stop {
  color: var(--red);
}
.account-row > b {
  color: #8993a5;
  font-size: 20px;
}
.empty-list {
  text-align: center;
  color: #7f8999;
  padding: 32px 20px;
}
.empty-list strong,
.empty-list span {
  display: block;
}
.empty-list strong {
  color: #4f5a6c;
  font-size: 13px;
}
.empty-list span {
  margin-top: 7px;
  font-size: 11px;
}
.detail-heading {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  display: flex;
}
.detail-heading small {
  color: #7d8797;
  font-size: 11px;
}
.detail-heading h2 {
  margin: 7px 0 0;
  font-size: 18px;
}
.detail-heading h2 span {
  color: #7d8797;
  margin-left: 7px;
  font-size: 12px;
  font-weight: 400;
}
.brand-count {
  color: #315fb8;
  background: #eef4ff;
  border-radius: 15px;
  padding: 6px 10px;
  font-size: 11px;
}
.metric-strip {
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  grid-template-columns: repeat(7, 1fr);
  padding: 16px 18px;
  display: grid;
}
.metric-strip div {
  border-right: 1px solid #e5e8ee;
  padding: 0 12px;
}
.metric-strip div:last-child {
  border-right: 0;
}
.metric-strip span,
.metric-strip strong {
  display: block;
}
.metric-strip span {
  color: #7a8495;
  font-size: 10px;
}
.metric-strip strong {
  margin-top: 7px;
  font-size: 14px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  white-space: nowrap;
  width: 100%;
  font-size: 11px;
}
th {
  color: #788294;
  text-align: right;
  background: #f5f7fa;
  padding: 11px 12px;
  font-weight: 600;
}
th:first-child,
th:nth-child(2),
td:first-child,
td:nth-child(2) {
  text-align: left;
}
td {
  text-align: right;
  border-bottom: 1px solid #edf0f4;
  padding: 13px 12px;
}
td strong {
  font-size: 12px;
}
.status-pill {
  color: #5f6876;
  background: #eef1f5;
  border-radius: 12px;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  display: inline-flex;
}
.status-pill i {
  background: currentColor;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}
.status-pill.running {
  color: #0f8058;
  background: #e8f7f1;
}
.status-pill.paused {
  color: #cb464c;
  background: #fff0f0;
}
.status-pill.removed {
  color: #6f7784;
  background: #eff1f4;
}
.status-pill.idle {
  color: #9b6b08;
  background: #fff6db;
}
.note-box {
  background: #fafbfc;
  padding: 18px;
}
.note-box > div {
  align-items: baseline;
  gap: 9px;
  display: flex;
}
.note-box strong {
  font-size: 13px;
}
.note-box small {
  color: #8d96a5;
  font-size: 10px;
}
.note-box textarea {
  resize: vertical;
  width: 100%;
  min-height: 68px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dfe3e9;
  border-radius: 9px;
  outline: none;
  margin-top: 11px;
  padding: 10px 12px;
  font-size: 12px;
}
.note-box textarea:focus {
  border-color: #7196f4;
  box-shadow: 0 0 0 3px #e8efff;
}
.note-box button {
  float: right;
  color: #fff;
  background: #245ddb;
  border: 0;
  border-radius: 8px;
  margin-top: 9px;
  padding: 8px 15px;
  font-size: 11px;
  font-weight: 700;
}
.note-box:after {
  content: "";
  clear: both;
  display: block;
}
.no-match-panel {
  text-align: center;
  place-items: center;
  min-height: 320px;
  display: grid;
}
.no-match-panel div {
  gap: 8px;
  display: grid;
}
.no-match-panel strong {
  font-size: 15px;
}
.no-match-panel span {
  color: #8993a5;
  font-size: 12px;
}
.filter-results-panel {
  min-width: 0;
}
.filter-header-actions {
  align-items: center;
  gap: 9px;
  display: flex;
}
.summary-toggle {
  color: #245ddb;
  white-space: nowrap;
  background: #f5f8ff;
  border: 1px solid #cfdaf1;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 700;
}
.summary-toggle:hover {
  background: #eaf1ff;
}
.filter-summary-strip {
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}
.filtered-accounts {
  background: #f7f9fc;
  max-height: 690px;
  padding: 12px;
  overflow: auto;
}
.filtered-full-account {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px #1e2c460a;
}
.filtered-full-account:last-child {
  margin-bottom: 0;
}
.filtered-full-account .note-box {
  border-top: 1px solid var(--line);
}
.account-title-line {
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  display: flex;
}
.edit-note-button {
  color: #245ddb;
  background: #f5f8ff;
  border: 1px solid #cfdaf1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}
.edit-note-button:hover {
  background: #eaf1ff;
}
.filtered-account-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  margin-bottom: 12px;
  overflow: hidden;
}
.filtered-account-card:last-child {
  margin-bottom: 0;
}
.filtered-account-head {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  display: flex;
}
.filtered-account-head small,
.filtered-account-head strong {
  display: block;
}
.filtered-account-head small {
  color: #8993a5;
  margin-bottom: 5px;
  font-size: 10px;
}
.filtered-account-head strong {
  font-size: 13px;
}
.filtered-account-head strong span {
  color: #778298;
  margin-left: 7px;
  font-size: 11px;
  font-weight: 500;
}
.filtered-account-head button {
  color: #245ddb;
  white-space: nowrap;
  background: #edf3ff;
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 700;
}
.filtered-brand-line {
  border-bottom: 1px solid var(--line);
  gap: 10px;
  padding: 11px 15px;
  font-size: 10px;
  display: flex;
}
.filtered-brand-line span {
  color: #8993a5;
  flex: none;
}
.filtered-brand-line strong {
  color: #344056;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.filtered-metrics {
  grid-template-columns: repeat(6, 1fr);
  padding: 11px 15px;
  display: grid;
}
.filtered-metrics > div {
  border-right: 1px solid var(--line);
  padding: 0 10px;
}
.filtered-metrics > div:first-child {
  padding-left: 0;
}
.filtered-metrics > div:last-child {
  border-right: 0;
}
.filtered-metrics span,
.filtered-metrics strong {
  display: block;
}
.filtered-metrics span {
  color: #8993a5;
  font-size: 9px;
}
.filtered-metrics strong {
  margin-top: 5px;
  font-size: 11px;
}
.no-match-inline {
  text-align: center;
  place-content: center;
  gap: 8px;
  min-height: 300px;
  display: grid;
}
.no-match-inline span {
  color: #8993a5;
  font-size: 12px;
}
.balance-list {
  display: grid;
}
.balance-row {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 36px minmax(180px, 1.35fr) minmax(190px, 1.25fr) repeat(4, minmax(105px, 1fr));
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  display: grid;
}
.balance-row:last-child {
  border-bottom: 0;
}
.balance-row > div {
  gap: 5px;
  display: grid;
}
.balance-row span,
.balance-row small {
  color: #8993a5;
  font-size: 10px;
}
.balance-row strong {
  font-size: 12px;
}
.balance-account strong {
  font-size: 14px;
}
.balance-running-brands {
  align-content: center;
}
.balance-brand-chips {
  flex-wrap: wrap;
  gap: 5px;
  display: flex;
}
.balance-brand-chips b {
  color: #165f49;
  background: #e8f7f1;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 700;
}
.balance-no-brand {
  color: #929aaa;
  font-size: 11px !important;
  font-weight: 600;
}
.balance-alert {
  background: #fff0f0;
  border-radius: 50%;
  place-items: center;
  width: 30px;
  height: 30px;
  font-weight: 800;
  display: grid;
  color: #d5343d !important;
  font-size: 15px !important;
}
.balance-remaining strong {
  color: #d5343d;
  font-size: 16px;
}
.balance-empty {
  text-align: center;
  place-content: center;
  gap: 9px;
  min-height: 320px;
  display: grid;
}
.balance-empty.compact {
  border-bottom: 1px solid var(--line);
  min-height: 100px;
}
.balance-empty strong {
  font-size: 15px;
}
.balance-empty span {
  color: #8993a5;
  font-size: 12px;
}
.balance-section-heading {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  display: flex;
}
.balance-section-heading > div {
  gap: 4px;
  display: grid;
}
.balance-section-heading strong {
  font-size: 13px;
}
.balance-section-heading span {
  color: #8993a5;
  font-size: 10px;
}
.balance-section-heading b {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10px;
}
.balance-section-heading.danger {
  background: #fff8f8;
}
.balance-section-heading.danger b {
  color: #c62f38;
  background: #ffe9e9;
}
.balance-section-heading.normal {
  background: #f8fbff;
  border-top: 8px solid #f4f6f9;
}
.balance-section-heading.normal b {
  color: #245ddb;
  background: #e7f0ff;
}
.balance-heading-actions {
  grid-auto-flow: column;
  align-items: center;
  gap: 9px !important;
  display: flex !important;
}
.balance-heading-actions button {
  color: #b52731;
  cursor: pointer;
  background: #fff;
  border: 1px solid #f0b9bd;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
}
.balance-heading-actions button:hover {
  background: #fff0f0;
}
.low-balance-id-box {
  background: snow;
  border-bottom: 1px solid #f0cdd0;
  grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.5fr) auto;
  align-items: end;
  gap: 14px;
  padding: 16px 20px;
  display: grid;
}
.low-balance-id-box > div {
  align-self: center;
  gap: 5px;
  display: grid;
}
.low-balance-id-box strong {
  font-size: 12px;
}
.low-balance-id-box span,
.low-balance-id-box p {
  color: #8993a5;
  margin: 0;
  font-size: 10px;
}
.low-balance-id-box textarea {
  box-sizing: border-box;
  resize: vertical;
  color: #263247;
  background: #fff;
  border: 1px solid #e2c8cb;
  border-radius: 8px;
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  font:
    12px/1.65 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.low-balance-id-box > button {
  color: #fff;
  cursor: pointer;
  background: #d5343d;
  border: 0;
  border-radius: 8px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 750;
}
.low-balance-id-box.brand-list-box {
  background: #fffdf8;
}
.low-balance-id-box.brand-list-box textarea {
  min-height: 130px;
}
.balance-row.normal .balance-alert {
  background: #e8f3ff;
  color: #2463c7 !important;
}
.balance-row.normal .balance-remaining strong {
  color: #163c75;
}
@media (max-width: 1100px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .account-panel {
    max-height: 360px;
    overflow: auto;
  }
}
@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    padding: 16px;
    position: static;
  }
  nav {
    grid-template-columns: repeat(5, 1fr);
  }
  .master-card {
    display: none;
  }
  .workspace {
    padding: 20px 14px;
  }
  .topbar {
    align-items: flex-start;
    gap: 12px;
  }
  .sync-state {
    display: none;
  }
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .filterbar {
    grid-template-columns: 1fr;
  }
  .metric-strip {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 18px;
  }
  .filtered-metrics {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 14px;
  }
  .management-row {
    grid-template-columns: 32px 1fr 1fr;
  }
  .management-row > div:nth-child(n + 4) {
    display: none;
  }
  .sync-row {
    grid-template-columns: 32px 1fr auto;
  }
  .sync-row > div:nth-child(3),
  .sync-row > div:nth-child(4) {
    display: none;
  }
  .balance-row {
    grid-template-columns: 32px minmax(170px, 1fr) minmax(170px, 1fr) auto;
  }
  .balance-row > div:nth-child(4),
  .balance-row > div:nth-child(5),
  .balance-row > div:nth-child(7) {
    display: none;
  }
  .low-balance-id-box {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .managed-account-card.editing {
    grid-column: auto;
  }
}
.auth-page {
  color: #0f172a;
  background: #f3f6fb;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  display: grid;
}
.auth-card {
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 20px;
  width: min(100%, 440px);
  padding: 34px;
  box-shadow: 0 20px 60px #0f172a1a;
}
.auth-logo {
  color: #fff;
  background: #2563eb;
  border-radius: 14px;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 800;
  display: grid;
}
.auth-card h1 {
  margin: 0 0 8px;
  font-size: 25px;
}
.auth-card > p {
  color: #64748b;
  margin: 0 0 22px;
  line-height: 1.7;
}
.auth-tabs {
  background: #f1f5f9;
  border-radius: 10px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 20px;
  padding: 4px;
  display: grid;
}
.auth-tabs button {
  color: #64748b;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 8px;
  padding: 10px;
}
.auth-tabs button.active {
  color: #1d4ed8;
  background: #fff;
  font-weight: 700;
  box-shadow: 0 1px 5px #0f172a1a;
}
.auth-card form {
  gap: 15px;
  display: grid;
}
.auth-card label {
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  display: grid;
}
.auth-card input {
  box-sizing: border-box;
  min-height: 44px;
  font: inherit;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  outline: none;
  padding: 0 12px;
}
.auth-card input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #2563eb1f;
}
.auth-submit,
.auth-download {
  color: #fff;
  cursor: pointer;
  background: #2563eb;
  border: 0;
  border-radius: 10px;
  place-items: center;
  min-height: 46px;
  font-weight: 750;
  text-decoration: none;
  display: grid;
}
.auth-submit:disabled {
  opacity: 0.65;
}
.auth-error {
  color: #dc2626;
  background: #fef2f2;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}
.onboarding-card ol {
  color: #334155;
  margin: 0 0 22px;
  padding-left: 22px;
  line-height: 1.9;
}
.auth-logout {
  color: #64748b;
  cursor: pointer;
  background: 0 0;
  border: 0;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
}
.master-card strong {
  overflow-wrap: anywhere;
}
.master-card button {
  color: #93c5fd;
  cursor: pointer;
  text-align: left;
  background: 0 0;
  border: 0;
  margin-top: 10px;
  padding: 0;
}
.monthly-heading {
  position: relative;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 16px;
  overflow: visible;
}
.monthly-heading > div {
  display: grid;
  gap: 4px;
}
.monthly-heading small {
  color: #64748b;
}
.monthly-heading strong {
  font-size: 20px;
}
.monthly-heading .monthly-update-note {
  color: #2563eb;
  font-size: 12px;
}
.monthly-heading .monthly-heading-actions {
  display: flex;
  grid-auto-flow: column;
  align-items: center;
  justify-content: end;
  gap: 12px;
}
.monthly-period-tabs {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f1f5f9;
}
.monthly-period-tabs button {
  min-width: 72px;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  color: #475569;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.monthly-period-tabs button.active {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 2px 8px #2563eb33;
}
.monthly-period-tabs button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}
.monthly-heading select {
  min-width: 150px;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
  font: inherit;
}
.monthly-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.monthly-metric {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 112px;
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px #0f172a08;
}
.monthly-metric:after {
  content: "";
  position: absolute;
  top: 18px;
  right: 16px;
  width: 7px;
  height: 36px;
  border-radius: 999px;
  background: #dbeafe;
}
.monthly-metric.purple:after { background: #ddd6fe; }
.monthly-metric.green:after { background: #bbf7d0; }
.monthly-metric.orange:after { background: #fde68a; }
.monthly-metric.red:after { background: #fecaca; }
.monthly-metric span { color: #64748b; font-size: 13px; }
.monthly-metric strong { color: #0f172a; font-size: 24px; }
.monthly-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.monthly-ranking { padding: 20px; }
.monthly-ranking h2,
.monthly-table-panel h2 {
  margin: 0 0 15px;
  font-size: 17px;
}
.monthly-ranking > div { display: grid; }
.monthly-ranking > div > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border-top: 1px solid #eef2f7;
}
.monthly-ranking b {
  color: #2563eb;
  font-size: 12px;
}
.monthly-ranking span { overflow-wrap: anywhere; }
.monthly-table-panel {
  padding: 20px;
  margin-bottom: 16px;
}
.monthly-table-wrap { overflow-x: auto; }
.monthly-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.monthly-table th,
.monthly-table td {
  text-align: left;
  padding: 12px 14px;
  border-top: 1px solid #e8edf4;
  white-space: nowrap;
}
.monthly-table th {
  color: #64748b;
  background: #f8fafc;
  font-size: 12px;
}
.monthly-table td:first-child {
  color: #0f172a;
  font-weight: 700;
  white-space: normal;
}
.monthly-empty {
  display: grid;
  place-items: start;
  gap: 10px;
  padding: 32px;
}
.monthly-empty strong { font-size: 20px; }
.monthly-empty p { color: #64748b; margin: 0; line-height: 1.7; }
.monthly-empty a {
  color: #fff;
  background: #2563eb;
  border-radius: 9px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
}
@media (max-width: 1180px) {
  .monthly-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .monthly-summary-grid { grid-template-columns: 1fr 1fr; }
  .monthly-top-grid { grid-template-columns: 1fr; }
  .monthly-heading { align-items: stretch; flex-direction: column; }
  .monthly-heading .monthly-heading-actions {
    display: grid;
    grid-auto-flow: row;
    justify-content: stretch;
  }
  .monthly-period-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .monthly-heading select { width: 100%; }
}

.date-range-picker {
  position: relative;
  min-width: 250px;
}
.date-range-trigger {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  cursor: pointer;
}
.date-range-trigger:hover {
  border-color: #2563eb;
}
.date-range-trigger span {
  color: #64748b;
}
.date-range-popover {
  position: absolute;
  z-index: 300;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}
.calendar-header {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 8px;
}
.calendar-header strong {
  text-align: center;
  font-size: 17px;
}
.calendar-header button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: #f1f5f9;
  color: #334155;
  font-size: 25px;
  cursor: pointer;
}
.calendar-header button:hover:not(:disabled) {
  background: #dbeafe;
  color: #1d4ed8;
}
.calendar-header button:disabled {
  cursor: not-allowed;
  color: #cbd5e1;
}
.calendar-hint {
  margin: 10px 0 6px;
  color: #64748b;
  text-align: center;
  font-size: 12px;
}
.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-weekdays span {
  padding: 8px 0 5px;
  color: #64748b;
  text-align: center;
  font-size: 12px;
}
.calendar-days button,
.calendar-blank {
  height: 36px;
}
.calendar-days button {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #334155;
  cursor: pointer;
}
.calendar-days button:hover:not(:disabled) {
  background: #dbeafe;
  color: #1d4ed8;
}
.calendar-days button.in-range {
  border-radius: 7px;
  background: #dbeafe;
  color: #1d4ed8;
}
.calendar-days button.selected {
  background: #2563eb;
  color: #fff;
  font-weight: 700;
}
.calendar-days button:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}
@media (max-width: 720px) {
  .date-range-picker { min-width: 0; width: 100%; }
  .date-range-popover { left: 0; right: auto; width: min(340px, calc(100vw - 48px)); }
}
