:root {
  color-scheme: light;
  --blue: #0869d8;
  --blue-dark: #0755b0;
  --ink: #172b46;
  --muted: #64748b;
  --line: #e0e9f2;
  --surface: #ffffff;
  --canvas: #f3f7fb;
  --green: #1e9c64;
  --green-soft: #eaf8f1;
  --red: #dc4c5b;
  --red-soft: #fff0f1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  white-space: nowrap;
}

button:disabled {
  cursor: wait;
  opacity: .65;
}

input,
select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid #d6e2ee;
  border-radius: 9px;
  outline: none;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 105, 216, .10);
}

select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 12px 12px;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

textarea {
  width: 100%;
  padding: 12px 13px;
  resize: vertical;
  color: var(--ink);
  border: 1px solid #d6e2ee;
  border-radius: 9px;
  outline: none;
  background: #fff;
  line-height: 1.6;
}

textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 105, 216, .10);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  padding: 0;
  place-items: stretch;
}

.auth-card,
.control-card {
  width: min(1180px, 100%);
  border: 1px solid rgba(215, 223, 235, .92);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(24, 39, 75, .09);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 36px;
  border-color: #58bcf040;
  border-radius: 26px;
  background: linear-gradient(145deg, #10253ce8, #09182df5);
  box-shadow: 0 28px 80px #05081466, inset 0 1px 0 #a6eaff0d;
  backdrop-filter: blur(14px);
  overflow: hidden;
  animation: auth-card-enter .82s .12s cubic-bezier(.2, .85, .2, 1) both;
}

.auth-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #72d9fbaa, transparent);
  content: "";
  animation: auth-top-line 4s ease-in-out infinite;
}

.auth-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  align-items: center;
  justify-items: center;
  gap: clamp(46px, 7vw, 96px);
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px max(24px, calc((100vw - 1180px) / 2));
  overflow: hidden;
  color: #edf8ff;
  color-scheme: dark;
  background:
    radial-gradient(ellipse at 78% 18%, #0d75c626, transparent 48%),
    radial-gradient(ellipse at 20% 86%, #0bb6cb20, transparent 50%),
    radial-gradient(ellipse at 50% 50%, #1f5a9b33, transparent 55%),
    #071628;
}

.auth-grid,
.auth-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-grid {
  background-image:
    linear-gradient(#72cafa0b 1px, transparent 1px),
    linear-gradient(90deg, #72cafa0b 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 35% 48%, #000, transparent 75%);
}

.auth-ambient::before {
  position: absolute;
  top: -42%;
  left: -32vw;
  width: 20vw;
  height: 180%;
  background: linear-gradient(90deg, transparent, #77ddf80b, transparent);
  content: "";
  animation: auth-light-pass 11s ease-in-out infinite;
}

.auth-ambient i {
  position: absolute;
  bottom: -16px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #76dafa;
  box-shadow: 0 0 9px 2px #24bbef38;
  opacity: 0;
  animation: auth-particle-rise 14s linear infinite;
}

.auth-ambient i:nth-child(1) { left: 7%; animation-delay: -2s; }
.auth-ambient i:nth-child(2) { left: 19%; animation-delay: -8s; animation-duration: 18s; }
.auth-ambient i:nth-child(3) { left: 32%; animation-delay: -5s; animation-duration: 13s; }
.auth-ambient i:nth-child(4) { left: 44%; animation-delay: -11s; animation-duration: 17s; }
.auth-ambient i:nth-child(5) { left: 57%; animation-delay: -3s; animation-duration: 15s; }
.auth-ambient i:nth-child(6) { left: 69%; animation-delay: -9s; animation-duration: 19s; }
.auth-ambient i:nth-child(7) { left: 82%; animation-delay: -13s; animation-duration: 16s; }
.auth-ambient i:nth-child(8) { left: 94%; animation-delay: -1s; }

.auth-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: min(480px, 100%);
  aspect-ratio: 1;
  pointer-events: none;
}

.auth-visual::before {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: #0eacf226;
  filter: blur(62px);
  content: "";
  animation: auth-glow-pulse 4s ease-in-out infinite;
}

.auth-orbit {
  position: absolute;
  border-radius: 50%;
}

.orbit-outer {
  inset: 4%;
  border: 1px solid #65c8f53d;
  border-top-color: #6fe8ff99;
  border-bottom-color: #2d9fff5c;
  animation: auth-orbit-clockwise 18s linear infinite;
}

.orbit-outer::before,
.orbit-outer::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a0efff;
  box-shadow: 0 0 18px 5px #22bbef6b;
  content: "";
}

.orbit-outer::before { top: 13%; right: 16%; }
.orbit-outer::after { bottom: 13%; left: 16%; }

.orbit-inner {
  inset: 14%;
  border: 1px dashed #69c6fa4d;
  animation: auth-orbit-counter 24s linear infinite;
}

.auth-emblem {
  position: relative;
  width: 62%;
  padding: 5px;
  overflow: hidden;
  border: 1px solid #72d9fb6b;
  border-radius: 34px;
  background: #102b48;
  box-shadow: 0 28px 70px #05081466, 0 0 48px #0eacf21f;
  animation: auth-emblem-float 5s ease-in-out infinite;
}

.auth-emblem img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 29px;
}

.auth-emblem::after {
  position: absolute;
  inset: -55% -80%;
  background: linear-gradient(105deg, transparent 42%, #e8fbff3b 50%, transparent 58%);
  content: "";
  animation: auth-emblem-shine 6s ease-in-out infinite;
}

@keyframes auth-particle-rise {
  0% { opacity: 0; transform: translate3d(0, 14px, 0) scale(.7); }
  15% { opacity: .7; }
  75% { opacity: .35; }
  100% { opacity: 0; transform: translate3d(42px, -112vh, 0) scale(1.35); }
}

@keyframes auth-light-pass { 0%, 16% { transform: translateX(0) rotate(21deg); } 64%, 100% { transform: translateX(170vw) rotate(21deg); } }
@keyframes auth-card-enter { from { opacity: 0; transform: translateX(40px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes auth-glow-pulse { 0%, 100% { opacity: .7; transform: scale(.93); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes auth-orbit-clockwise { to { transform: rotate(360deg); } }
@keyframes auth-orbit-counter { to { transform: rotate(-360deg); } }
@keyframes auth-emblem-float { 0%, 100% { transform: translateY(7px) rotate(-.7deg); } 50% { transform: translateY(-7px) rotate(.7deg); } }
@keyframes auth-emblem-shine { 0%, 54% { transform: translateX(-62%); } 82%, 100% { transform: translateX(62%); } }
@keyframes auth-top-line { 0%, 100% { opacity: .25; transform: scaleX(.2); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes auth-button-shine { 0%, 45% { transform: translateX(0) rotate(18deg); } 82%, 100% { transform: translateX(480%) rotate(18deg); } }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-lockup strong {
  display: block;
  color: #edf8ff;
  font-size: 16px;
  letter-spacing: .04em;
}

.brand-avatar {
  position: relative;
  display: block;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid #9bdeff66;
  border-radius: 13px;
  background: #174976;
}

.brand-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-card .brand-avatar {
  flex-basis: 56px;
  width: 56px;
  height: 56px;
  border-radius: 15px;
}

h1 {
  margin: 0;
  color: inherit;
  font-size: 27px;
  line-height: 1.3;
}

.auth-card h1 {
  margin-top: 32px;
  font-size: 28px;
}

.form-stack {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.form-stack label {
  display: block;
  margin-bottom: 8px;
  color: #b0c8df;
  font-size: 14px;
  font-weight: 600;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 13px;
  color: #83abc9;
  border: 1px solid #599bcd3d;
  border-radius: 11px;
  background: #ffffff04;
  transition: border-color .15s, box-shadow .15s;
}

.input-shell:focus-within {
  border-color: #55ccf4;
  box-shadow: 0 0 0 3px #55ccf414;
}

.input-shell input {
  min-width: 0;
  height: 50px;
  padding-left: 0;
  color: #edf8ff;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.input-shell input::placeholder {
  color: #8199b3;
}

.input-shell svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle {
  display: grid;
  flex: 0 0 44px;
  height: 44px;
  padding: 0;
  color: #93b7d4;
  border: 0;
  border-radius: 8px;
  background: transparent;
  place-items: center;
}

.eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }

#login-button {
  position: relative;
  min-height: 50px;
  margin-top: 6px;
  color: #062642;
  border: 1px solid #72d9fb;
  border-radius: 11px;
  background: linear-gradient(110deg, #6ce2f8, #6aafff);
  box-shadow: 0 8px 28px #148edf29;
  overflow: hidden;
}

#login-button::after {
  position: absolute;
  top: -50%;
  left: -80%;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, #ffffff52, transparent);
  pointer-events: none;
  content: "";
  animation: auth-button-shine 3.8s ease-in-out infinite;
}

#login-button:hover {
  background: linear-gradient(110deg, #9aefff, #8ec2ff);
}

.primary-button,
.secondary-button,
.ghost-button,
.success-button,
.warning-button,
.danger-button,
.text-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 9px;
  font-weight: 650;
}

.primary-button {
  color: #fff;
  border: 1px solid var(--blue);
  background: linear-gradient(110deg, #076cdb, #008bbb);
}

.primary-button:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.secondary-button {
  color: var(--blue);
  border: 1px solid #acd5f1;
  background: #eff8ff;
}

.success-button {
  color: var(--green);
  border: 1px solid #bde3d2;
  background: #f4fcf8;
}

.warning-button {
  color: #b56a12;
  border: 1px solid #f1d2a8;
  background: #fff9ef;
}

.danger-button {
  color: var(--red);
  border: 1px solid #f1bcc3;
  background: #fff7f8;
}

.ghost-button,
.text-button {
  color: #59647a;
  border: 1px solid #dce2ec;
  background: #fff;
}

.text-button {
  min-height: auto;
  padding: 6px 10px;
  border: 0;
  background: transparent;
}

.control-card {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--canvas);
}

.account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 16px 32px;
  border-bottom: 1px solid #5facd840;
  background: radial-gradient(ellipse at 10% 100%, #096d9838, transparent 55%), #0b1b31;
}

.account-area {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #c6d8ea;
  font-size: 14px;
  white-space: nowrap;
}

.account-area .text-button {
  padding: 9px 13px;
  color: #edf8ff;
  border: 1px solid #83b5dc40;
  background: #ffffff08;
}

.account-area .text-button:hover {
  background: #ffffff14;
}

#account-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-heading {
  padding: 32px 32px 24px;
}

.workspace-heading h1 {
  font-size: 28px;
}

.workspace-panel {
  min-width: 0;
  margin: 0 32px 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 28px #123b6708;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form {
  width: 100%;
  flex-wrap: wrap;
}

#search-code {
  min-width: 0;
}

#search-status {
  flex: 0 0 120px;
  width: 120px;
}

.bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px 20px;
}

.selection-count {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.table-wrap {
  position: relative;
  min-height: 280px;
  margin: 0;
  overflow-x: auto;
  border: 0;
  border-top: 1px solid var(--line);
}

.pagination,
.pagination-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination {
  justify-content: space-between;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.pagination select {
  width: auto;
}

.pagination button:disabled {
  cursor: default;
}

#page-number {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  color: #61788f;
  background: #f5f9fd;
  font-weight: 650;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #f8fbfe;
}

tbody tr.is-selected td {
  background: #eaf5ff;
}

td:nth-child(4),
td:nth-child(5) {
  color: var(--muted);
  white-space: nowrap;
}

td:nth-child(5) {
  font-variant-numeric: tabular-nums;
}

.selection-column {
  width: 52px;
  padding-right: 8px;
  padding-left: 18px;
  text-align: center;
}

.channel-code {
  color: #1b3e64;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.status-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-on {
  color: var(--green);
  background: var(--green-soft);
}

.status-off {
  color: var(--red);
  background: var(--red-soft);
}

.action-column {
  width: 140px;
  text-align: center;
}

.switch-button {
  min-width: 88px;
  min-height: 36px;
  border-radius: 8px;
  font-weight: 650;
  white-space: nowrap;
}

.switch-disable {
  color: var(--red);
  border: 1px solid #f1bcc3;
  background: #fff7f8;
}

.switch-enable {
  color: var(--green);
  border: 1px solid #bde3d2;
  background: #f4fcf8;
}

.empty-state {
  display: grid;
  min-height: 220px;
  color: #8a93a5;
  font-size: 14px;
  place-items: center;
}

.toast {
  position: fixed;
  z-index: 10;
  top: 22px;
  left: 50%;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  transform: translateX(-50%);
  color: #fff;
  border-radius: 9px;
  background: #26334d;
  box-shadow: 0 10px 30px rgba(19, 30, 53, .24);
  font-size: 14px;
}

.toast.error {
  background: #c83c4d;
}

.batch-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(19, 30, 53, .28);
}

.batch-dialog::backdrop {
  background: rgba(23, 32, 51, .45);
}

.batch-add-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-top: 3px solid var(--blue);
}

.batch-add-form h2 {
  margin: 0;
  font-size: 22px;
}

.batch-add-form p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .auth-scene {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px;
  }

  .auth-visual {
    display: none;
  }
}

@media (max-width: 800px) {
  .page-shell {
    align-items: start;
  }

  .auth-card {
    padding: 32px 26px;
  }

  .account-bar {
    flex-wrap: wrap;
    gap: 18px;
    padding: 20px;
  }

  .workspace-heading {
    padding: 26px 20px 20px;
  }

  .workspace-panel {
    margin: 0 16px 24px;
  }

  .toolbar {
    flex-direction: column;
  }

  .toolbar {
    padding-right: 20px;
    padding-left: 20px;
  }

  .account-area {
    width: 100%;
    justify-content: space-between;
  }

  .search-form {
    width: 100%;
  }

  .bulk-toolbar {
    align-items: flex-start;
    padding-right: 20px;
    padding-left: 20px;
    flex-direction: column;
  }

  .bulk-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .pagination {
    padding: 16px;
  }

}

@media (max-width: 520px) {
  h1 {
    font-size: 23px;
  }

  .search-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .search-form input,
  #search-status {
    grid-column: 1 / -1;
  }

  #search-status {
    width: 100%;
  }

  .pagination-controls {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr auto 1fr;
  }

  .pagination-controls select {
    grid-column: 1 / -1;
    width: 100%;
  }

  .bulk-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (pointer: coarse) {
  button {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-scene *,
  .auth-scene *::before,
  .auth-scene *::after {
    animation: none !important;
  }

  input,
  .input-shell {
    transition: none;
  }
}

/* Channel groups */
.workspace-heading, .group-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.search-form { flex-wrap: wrap; }
#search-code { min-width: 160px; }
#search-group { max-width: 230px; }
.groups-dialog { width: min(620px, calc(100vw - 32px)); }
.group-form { display: grid; gap: 12px; }
.group-list { display: grid; gap: 12px; }
.group-list-row { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.group-list-row span { flex: 1; overflow-wrap: anywhere; }
.row-group-button { margin-left: 8px; padding: 8px 12px; }
.action-column { white-space: nowrap; }
@media (max-width: 760px) {
  #search-group { max-width: none; }
  .group-list-row { flex-wrap: wrap; }
  .group-list-row span { flex-basis: 100%; }
}

.dialog-notice { padding: 0 28px 20px; color: var(--green); font-size: 14px; }
.dialog-notice.error { color: var(--red); }
.heading-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stat-period { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
th { white-space: nowrap; }
.count-cell { font-variant-numeric: tabular-nums; }
td.count-total { color: var(--blue); font-weight: 700; }
.accounts-dialog { width: min(740px, calc(100vw - 32px)); max-height: 90vh; }
.accounts-dialog fieldset { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.permission-options { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.permission-options label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.permission-options input { flex: none; width: 16px; height: 16px; min-height: 0; padding: 0; }
#account-list small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.6; }
.toolbar { flex-wrap: wrap; }
.search-form { width: 100%; flex: 1; }
.search-form input { flex: 1 1 180px; width: 180px; }
.search-form select { width: auto; }
@media (max-width: 760px) {
  .search-form { flex: none; width: 100%; }
}
@media (max-width: 520px) {
  .search-form input, #search-group { width: 100%; max-width: none; grid-column: 1 / -1; }
}

table td:not(.remark-cell) { white-space: nowrap; }
.remark-cell { min-width: 260px; max-width: 360px; white-space: pre-wrap; overflow-wrap: anywhere; }
.remark-editor { display: flex; align-items: center; gap: 6px; }
.remark-editor input { width: 190px; min-width: 120px; height: 34px; padding: 6px 9px; }
.remark-editor button { min-height: 34px; padding: 6px 10px; flex-shrink: 0; }
.remark-dirty input { border-color: var(--blue); }

.date-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; grid-column: 1 / -1; }
.date-filter input { flex: 0 1 150px; width: 150px; min-width: 0; }
.stat-summary { padding: 0 24px 24px; }
.stat-summary p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.summary-values { display: flex; flex-wrap: wrap; gap: 12px; }
.summary-values > span { flex: 1; min-width: 180px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.summary-values strong { margin-left: 14px; color: #0869d8; font-size: 22px; }

@media (max-width: 520px) {
  .date-filter { display: grid; grid-template-columns: 1fr auto 1fr; }
  .date-filter label { grid-column: 1 / -1; }
  .date-filter input { width: 100%; grid-column: auto; }
}
