:root {
  --ink: #111114;
  --plum: #6b1e5e;
  --plum-dark: #4d1544;
  --plum-soft: #f6edf4;
  --line: #e4e4e7;
  --green: #0f8a5f;
  --red: #d92d20;
  --amber: #b45f06;

  --primary: var(--plum);
  --secondary: var(--ink);
  --accent: #f3d9ee;
  --primary-fg: #fff;
  --body-fg: var(--ink);
  --body-bg: #fff;
  --body-quiet-color: #55555e;
  --body-loud-color: var(--ink);
  --header-bg: var(--ink);
  --header-color: #fff;
  --header-branding-color: #fff;
  --header-link-color: #fff;
  --breadcrumbs-bg: var(--plum);
  --breadcrumbs-fg: #f3e4ef;
  --breadcrumbs-link-fg: #fff;
  --link-fg: var(--plum);
  --link-hover-color: var(--ink);
  --link-selected-fg: var(--plum);
  --hairline-color: var(--line);
  --border-color: #d4d4d8;
  --darkened-bg: #f7f7f8;
  --selected-bg: var(--plum-soft);
  --selected-row: var(--plum-soft);
  --button-bg: var(--plum);
  --button-hover-bg: var(--plum-dark);
  --default-button-bg: var(--ink);
  --default-button-hover-bg: #000;
  --object-tools-bg: var(--ink);
  --object-tools-hover-bg: var(--plum);
  --module-bg: #fff;
  --font-family-primary: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body, input, select, textarea, button { font-family: var(--font-family-primary); }
body { font-size: 14px; }
#header { padding: 14px 24px; }
#site-name a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.gs-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--plum); color: #fff; font-size: 13px; font-weight: 800; }
.module caption, .inline-group h2, .module h2 { background: var(--ink); color: #fff; font-weight: 600; }
.module { border-radius: 10px; }
#nav-sidebar .module caption { text-align: left; }
thead th { color: var(--ink); font-weight: 700; }
#result_list td, #result_list th { vertical-align: middle; padding: 10px 8px; }
.button, input[type="submit"], input[type="button"], .submit-row input, .object-tools a { border-radius: 8px; }
input, select, textarea { border-radius: 8px !important; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #ececef; color: var(--ink); white-space: nowrap; }
.badge-active, .badge-paid, .badge-sent, .badge-on_track { background: #dcf3e9; color: #0a6847; }
.badge-completed { background: var(--plum-soft); color: var(--plum); }
.badge-behind, .badge-partial, .badge-paused, .badge-queued, .badge-sending, .badge-due { background: #fdf0d5; color: #8a4b00; }
.badge-overdue, .badge-missed, .badge-blacklisted, .badge-failed, .badge-reversed { background: #fde3e1; color: #a81b10; }
.thumb { display: inline-block; width: 40px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.thumb-empty { background: #f1f1f3; }

/* Dashboard */
.dashboard #content.gs-wide, .dashboard #content { width: auto; max-width: none; margin-right: 20px; }
.dashboard #content-related { float: none; width: auto; margin: 0; }
.dashboard #content-main { float: none; width: auto; margin: 0; }
.gs-dash { margin-bottom: 8px; }
.gs-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.gs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-chip { border: 1px solid #d4d4d8; background: #fff; color: var(--ink); border-radius: 99px !important; padding: 8px 15px; font-weight: 600; cursor: pointer; }
.gs-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.gs-dates { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gs-error { color: var(--red); font-weight: 600; }
.gs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.gs-card { border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gs-card.tone-plum { border-top-color: var(--plum); }
.gs-card.tone-green { border-top-color: var(--green); }
.gs-card.tone-red { border-top-color: var(--red); }
.gs-card.tone-amber { border-top-color: var(--amber); }
.gs-card-title { font-size: 12px; font-weight: 600; color: var(--body-quiet-color); }
.gs-card strong { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.gs-card small { color: var(--body-quiet-color); }
.gs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.gs-grid.gs-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gs-span2 { grid-column: span 2; }
.gs-panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.gs-panel h2 { margin: 0 0 12px; font-size: 15px; font-weight: 700; background: none; color: var(--ink); }
.gs-chart { position: relative; height: 280px; }
.gs-scroll { overflow-x: auto; }
.gs-table { width: 100%; }
.gs-table th, .gs-table td { white-space: nowrap; }
.gs-red { color: var(--red); font-weight: 700; }
.gs-struck td { text-decoration: line-through; color: var(--body-quiet-color); }
.gs-manage { margin: 22px 0 10px; font-weight: 800; }

@media (max-width: 1100px) {
  .gs-grid, .gs-grid.gs-two { grid-template-columns: minmax(0, 1fr); }
  .gs-span2 { grid-column: auto; }
}
@media (max-width: 767px) {
  .dashboard #content { margin-right: 0; padding: 12px; }
  .gs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gs-card strong { font-size: 17px; }
  .gs-chart { height: 240px; }
  #changelist .results { overflow-x: auto; }
}
@media (max-width: 380px) {
  .gs-cards { grid-template-columns: minmax(0, 1fr); }
}
