@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;450;500;550;600;650;700;750;800&display=swap");
:root {
  --ink: #172d28;
  --muted: #78847e;
  --line: #e5eae6;
  --green: #105c49;
  --mint: #e7f3eb;
  --bg: #f5f7f4;
  --red: #b74e48;
  --amber: #a27426;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  font-size: 13px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: var(--green);
}
.shell {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 28px 18px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.5px;
  padding: 0 12px 26px;
}
.logo {
  display: grid;
  place-items: center;
  background: var(--green);
  border-radius: 11px;
  color: white;
  width: 35px;
  height: 35px;
  font-size: 26px;
  letter-spacing: 0;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 10px;
  margin: 0 4px 27px;
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 33px;
  height: 33px;
  background: #edf0e5;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  color: #687340;
}
.workspace strong {
  display: block;
  font-size: 12px;
}
.tiny {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.nav-title {
  padding: 0 15px;
  margin: 0 0 10px;
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 800;
  color: #9ca59f;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 7px;
  color: #6b7870;
  font-weight: 600;
}
.nav button.active {
  background: #eaf3ed;
  color: var(--green);
}
.nav button:hover {
  background: #f3f6f2;
}
.nav-count {
  margin-left: auto;
  background: #f2e8d9;
  color: #8e692b;
  font-size: 10px;
  border-radius: 5px;
  padding: 2px 6px;
}
.icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.side-bottom {
  margin-top: auto;
  padding: 28px 8px 0;
}
.demo-note {
  background: #f6f7f2;
  padding: 13px;
  border-radius: 8px;
  line-height: 1.7;
  font-size: 10px;
  color: #7d877e;
}
.demo-note strong {
  display: block;
  color: #576b5c;
  font-size: 11px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 4px 0;
}
.profile .avatar {
  background: #efe9e1;
  color: #8d7258;
  border-radius: 50%;
}
.content {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 14px;
}
.breadcrumb {
  color: #9aa39c;
  font-size: 11px;
}
.breadcrumb b {
  color: #4c5e53;
  font-weight: 550;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.role-switch {
  background: #f2f4f0;
  padding: 4px;
  border-radius: 7px;
  display: flex;
  gap: 3px;
}
.role-switch button {
  font-size: 11px;
  padding: 7px 12px;
  color: #819085;
  border-radius: 5px;
}
.role-switch button.active {
  background: #fff;
  box-shadow: 0 1px 4px #1a3f2210;
  color: #315743;
  font-weight: 700;
}
.demo-pill {
  font-size: 9px;
  letter-spacing: 1px;
  color: #8b957f;
  border: 1px solid #dfe5d6;
  border-radius: 4px;
  padding: 4px 7px;
}
.main {
  max-width: 1550px;
  margin: auto;
  padding: 30px 36px 45px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 800;
  color: #779082;
  margin-bottom: 8px;
}
.page-heading h1 {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 750;
  margin: 0 0 7px;
}
.subtitle {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.btn {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 14px;
  background: #fff;
  font-weight: 650;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.btn:hover {
  background: #f3f6f1;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
  box-shadow: 0 2px 3px #123b1710;
}
.btn.primary:hover {
  background: #094937;
}
.btn.danger {
  color: var(--red);
  border-color: #ebd1cc;
}
.btn.small {
  padding: 7px 10px;
  font-size: 10px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.heading-actions {
  display: flex;
  gap: 8px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 20px;
  min-height: 136px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #718074;
}
.stat-top .icon {
  color: #95a295;
  width: 16px;
}
.stat-value {
  font-size: 29px;
  letter-spacing: -1.1px;
  font-weight: 750;
  margin: 13px 0 9px;
  line-height: 1;
}
.stat-value small {
  font-size: 13px;
  color: #97a197;
  letter-spacing: 0;
  font-weight: 500;
}
.stat-bottom {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #88948a;
  font-size: 10px;
}
.positive {
  color: #3c8b60;
}
.progress {
  height: 4px;
  background: #edf1e9;
  border-radius: 3px;
  overflow: hidden;
  margin: 13px 0 8px;
}
.progress span {
  display: block;
  background: #6a9274;
  height: 100%;
  border-radius: 3px;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(270px, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
}
.panel-title {
  font-weight: 750;
  font-size: 13px;
  margin: 0;
}
.panel-sub {
  font-size: 10px;
  color: #8a958b;
  margin-top: 5px;
}
.segmented {
  display: flex;
  background: #f5f7f3;
  padding: 3px;
  border-radius: 6px;
  gap: 3px;
}
.segmented button {
  font-size: 10px;
  padding: 5px 9px;
  border-radius: 4px;
  color: #8b968b;
}
.segmented button.active {
  background: white;
  color: #3a624a;
  box-shadow: 0 1px 3px #122a1110;
}
.chart-wrap {
  padding: 0 17px 0 12px;
  position: relative;
}
.chart-wrap svg {
  width: 100%;
  height: 192px;
  display: block;
  overflow: visible;
}
.chart-legend {
  display: flex;
  gap: 18px;
  font-size: 10px;
  color: #859082;
  padding: 7px 25px 20px;
}
.dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #659776;
  margin-right: 6px;
}
.dot.tg {
  background: #b4c8a0;
}
.dot.max {
  background: #dbd8ac;
}
.channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid #f1f3ef;
}
.channel-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e9f5ee;
  color: #27845c;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.channel-icon.telegram {
  background: #eaf3f8;
  color: #528ba7;
}
.channel-icon.max {
  background: #eeecf9;
  color: #8072b0;
}
.channel-main {
  flex: 1;
}
.channel-main strong {
  font-size: 11px;
}
.channel-main small {
  display: block;
  color: #93a092;
  font-size: 10px;
  margin-top: 4px;
}
.channel-right {
  text-align: right;
}
.channel-right small {
  display: block;
  color: #8b978c;
  font-size: 9px;
  margin-top: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 650;
  background: #f1f4ef;
  color: #788774;
  white-space: nowrap;
}
.badge.good {
  background: #ebf5ee;
  color: #3d885a;
}
.badge.warn {
  background: #faf2e5;
  color: #ac8238;
}
.badge.bad {
  background: #faeeec;
  color: #b2685d;
}
.badge.blue {
  background: #edf3f9;
  color: #6487a7;
}
.badge.neutral {
  background: #f1f2f0;
  color: #879082;
}
.badge:before {
  content: "";
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: currentColor;
}
.channel-foot {
  border-top: 1px solid var(--line);
  padding: 13px 22px;
  background: #fafcf8;
  font-size: 10px;
  color: #8b9587;
  display: flex;
  gap: 8px;
  align-items: center;
}
.text-link {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.text-link .icon {
  width: 13px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}
th {
  background: #fafbf8;
  color: #8b968d;
  font-size: 9px;
  font-weight: 650;
  padding: 12px 21px;
  border-top: 1px solid #f0f3ed;
  border-bottom: 1px solid #edf0e9;
}
td {
  font-size: 11px;
  padding: 15px 21px;
  border-bottom: 1px solid #f0f3ec;
  color: #5c6e61;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr.clickable {
  cursor: pointer;
}
tbody tr.clickable:hover {
  background: #fafcf8;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.2px;
}
.table-channel {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.table-channel i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #659776;
}
.table-channel.telegram i {
  background: #78a3b8;
}
.table-channel.max i {
  background: #9b8dbb;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  color: #8f998d;
  font-size: 10px;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 17px;
  margin-bottom: 22px;
  border: 1px solid #e1e8d7;
  background: #f0f4e8;
  border-radius: 8px;
  color: #6c7e51;
  font-size: 11px;
  line-height: 1.6;
}
.notice.warn {
  background: #fff7eb;
  border-color: #efdfbd;
  color: #9a7436;
}
.notice .icon {
  flex-shrink: 0;
}
.filters {
  display: flex;
  gap: 10px;
  padding: 0 22px 18px;
  flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1;
  min-width: 190px;
}
.search .icon {
  position: absolute;
  left: 12px;
  top: 11px;
  color: #93a18f;
  width: 15px;
}
input,
select,
textarea {
  border: 1px solid #dfe6da;
  border-radius: 6px;
  padding: 10px 11px;
  color: #48604b;
  background: #fff;
  max-width: 100%;
  font-size: 11px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #bfd5ba;
}
.search input {
  width: 100%;
  padding-left: 36px;
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  line-height: 1.8;
}
.empty {
  padding: 48px 20px;
  text-align: center;
  color: #82927e;
  font-size: 12px;
}
.row-actions {
  display: flex;
  gap: 7px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.template-card {
  padding: 22px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.template-card h3 {
  font-size: 14px;
  margin: 0 0 7px;
}
.message-preview {
  background: #f6f8f2;
  border: 1px solid #e9eee2;
  border-radius: 8px;
  padding: 15px;
  font-size: 11px;
  line-height: 1.9;
  margin: 18px 0;
  white-space: pre-wrap;
  color: #65775b;
  word-break: break-word;
}
.template-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #8c9785;
}
.plan {
  padding: 27px;
  position: relative;
}
.plan.featured {
  border-color: #799d78;
  box-shadow: 0 0 0 1px #799d78;
}
.plan h2 {
  font-size: 17px;
  margin: 0 0 10px;
}
.price {
  font-size: 29px;
  font-weight: 750;
  margin: 22px 0;
}
.price small {
  font-size: 11px;
  color: #82907d;
  font-weight: 500;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  line-height: 2.8;
  font-size: 11px;
  color: #708166;
}
.plan li:before {
  content: "✓";
  margin-right: 9px;
  color: #699266;
}
.plan .btn {
  width: 100%;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pad {
  padding: 22px;
}
.label {
  display: block;
  font-size: 11px;
  color: #70836a;
  font-weight: 650;
  margin-bottom: 8px;
}
.field {
  margin-bottom: 18px;
}
.field input,
.field select {
  width: 100%;
}
.help {
  font-size: 10px;
  color: #8f9c89;
  line-height: 1.7;
  margin-top: 7px;
}
.code-block {
  background: #173c31;
  color: #c7deca;
  padding: 18px;
  border-radius: 7px;
  font:
    10px/1.9 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow: auto;
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child {
  border: 0;
}
.list-row strong {
  font-size: 12px;
}
.list-row small {
  display: block;
  color: #879580;
  font-size: 10px;
  margin-top: 5px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #122a2255;
  backdrop-filter: blur(3px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal {
  background: white;
  border: 1px solid #e6ebdf;
  box-shadow: 0 22px 80px #132c2730;
  border-radius: 13px;
  width: 560px;
  max-height: 92vh;
  overflow: auto;
}
.modal.wide {
  width: 740px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 17px;
  margin: 0;
  letter-spacing: -0.4px;
}
.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  color: #819078;
  font-size: 23px;
}
.modal-close:hover {
  background: #f1f5ed;
}
.modal-body {
  padding: 24px 25px;
}
.modal-footer {
  padding: 18px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.check-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.check {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e1e8da;
  padding: 10px;
  border-radius: 6px;
  font-size: 11px;
}
.check input {
  accent-color: var(--green);
}
.form-error {
  color: var(--red);
  font-size: 11px;
  margin-top: 10px;
  line-height: 1.7;
}
.timeline {
  margin: 22px 0;
}
.timeline-row {
  display: flex;
  gap: 14px;
  padding-bottom: 21px;
  position: relative;
}
.timeline-row:before {
  content: "";
  position: absolute;
  left: 7px;
  top: 17px;
  bottom: 0;
  width: 1px;
  background: #dbe6d7;
}
.timeline-row:last-child:before {
  display: none;
}
.timeline-dot {
  background: #e6f0df;
  border: 4px solid #f3f7ee;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  z-index: 1;
  flex-shrink: 0;
}
.timeline-row strong {
  font-size: 11px;
}
.timeline-row p {
  font-size: 10px;
  line-height: 1.8;
  color: #8a9881;
  margin: 5px 0 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.detail-grid small {
  font-size: 10px;
  color: #8e9987;
  display: block;
  margin-bottom: 5px;
}
.detail-grid strong {
  font-size: 12px;
}
.audit-row {
  padding: 17px 23px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
}
.audit-row .icon {
  color: #89a079;
}
.audit-row strong {
  display: block;
  font-size: 11px;
}
.audit-row p {
  font-size: 10px;
  color: #98a18f;
  margin: 5px 0 0;
}
#toast {
  position: fixed;
  bottom: 27px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #163f32;
  color: #e5eee0;
  border-radius: 8px;
  padding: 13px 20px;
  box-shadow: 0 5px 24px #12332130;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  font-size: 12px;
  max-width: 90vw;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.footer-note {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  color: #9ba594;
}
.pool-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.pool-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pool-card strong {
  display: block;
  font-size: 13px;
}
.pool-card small {
  display: block;
  font-size: 10px;
  color: #85937e;
  margin-top: 5px;
}
.pool-card .pool-total {
  margin-left: auto;
  font-size: 24px;
  font-weight: 750;
}
.drawer-hint {
  padding: 14px 20px;
  background: #f7f9f3;
  font-size: 10px;
  color: #8a957f;
  line-height: 1.8;
}
.mobile-brand {
  display: none;
}
.period {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid #e4e9df;
  border-radius: 6px;
  font-size: 10px;
  background: #fff;
  color: #75836d;
}
.period .icon {
  width: 13px;
}
.danger-text {
  color: var(--red);
}
@media (min-width: 1500px) {
  .main {
    padding-top: 40px;
  }
  .chart-wrap svg {
    height: 230px;
  }
  .stat {
    padding: 24px;
  }
  .channel {
    padding: 20px 22px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 200px 1fr;
  }
  .sidebar {
    width: 200px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .main {
    padding: 25px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat-value {
    font-size: 25px;
  }
  .grid-main {
    grid-template-columns: 1.4fr 1fr;
  }
  .cards {
    gap: 12px;
  }
  .template-card {
    padding: 17px;
  }
  .demo-pill {
    display: none;
  }
  th,
  td {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 70px;
    padding: 23px 10px;
  }
  .shell {
    grid-template-columns: 70px 1fr;
  }
  .brand {
    padding: 0 7px 26px;
  }
  .brand > span:last-child,
  .workspace,
  .nav-title,
  .nav button span,
  .side-bottom {
    display: none;
  }
  .nav button {
    justify-content: center;
    padding: 13px;
  }
  .logo {
    width: 35px;
    min-width: 35px;
  }
  .main {
    padding: 22px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .pool-summary {
    gap: 10px;
  }
  .pool-card {
    padding: 14px;
    gap: 8px;
  }
  .pool-card .pool-total {
    font-size: 19px;
  }
  .pool-card .channel-icon {
    display: none;
  }
}
@media (max-width: 560px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 57px;
    flex-direction: row;
    align-items: center;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    padding: 0 10px 0 0;
  }
  .logo {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 22px;
  }
  .nav {
    display: flex;
    overflow: auto;
    width: 100%;
    gap: 2px;
  }
  .nav button {
    padding: 9px;
  }
  .nav button .icon {
    width: 17px;
  }
  .topbar {
    height: 62px;
    padding: 0 15px;
  }
  .breadcrumb {
    display: none;
  }
  .top-actions {
    justify-content: space-between;
    width: 100%;
  }
  .demo-pill {
    display: block;
  }
  .main {
    padding: 22px 15px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .heading-actions {
    width: 100%;
  }
  .stats {
    gap: 10px;
    margin-bottom: 15px;
  }
  .stat {
    padding: 15px 13px;
    min-height: 125px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-value {
    font-size: 24px;
  }
  .stat-bottom {
    font-size: 9px;
  }
  .grid-main {
    gap: 15px;
  }
  .panel-head {
    padding: 17px;
  }
  .cards,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .pool-summary {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .pool-card .channel-icon {
    display: grid;
  }
  .pool-card {
    padding: 12px 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .overlay {
    padding: 12px;
  }
  .modal {
    max-height: 95vh;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-head {
    padding: 19px;
  }
  .footer-note {
    font-size: 8px;
  }
  .filters {
    padding: 0 16px 16px;
  }
  .filters select {
    flex: 1;
  }
  .period {
    font-size: 9px;
  }
  .panel-title {
    font-size: 12px;
  }
  .detail-grid {
    gap: 15px;
  }
}
/* Graphite-only theme. No light mode or preference override. */
:root {
  color-scheme: dark;
  --ink: #e4e8e6;
  --muted: #919b99;
  --line: #343a3b;
  --green: #91c8b1;
  --mint: #263a32;
  --bg: #191c1f;
  --red: #ee9c91;
  --amber: #e1bc7b;
}
body {
  background: var(--bg);
  color: var(--ink);
}
.sidebar,
.topbar,
.panel,
.stat,
.modal {
  background: #222629;
  border-color: var(--line);
}
.logo {
  background: #9bceb6;
  color: #183227;
}
.brand > span:last-child > span {
  color: #9ac7b0 !important;
}
.workspace {
  background: #292e30;
  border-color: #3b4242;
}
.avatar {
  background: #354137;
  color: #c3d4b5;
}
.profile .avatar {
  background: #423c35;
  color: #d5bd9f;
}
.nav button {
  color: #a6b0ad;
}
.nav button.active {
  background: #33433b;
  color: #c8e4d2;
}
.nav button:hover {
  background: #303637;
}
.nav-title {
  color: #808c86;
}
.demo-note {
  background: #2a3030;
  color: #a2ada5;
}
.demo-note strong {
  color: #c3d0c3;
}
.breadcrumb {
  color: #8f9a94;
}
.breadcrumb b {
  color: #c6d1ca;
}
.role-switch,
.segmented {
  background: #171b1d;
}
.role-switch button,
.segmented button {
  color: #9da9a2;
}
.role-switch button.active,
.segmented button.active {
  background: #3b4541;
  color: #dce9df;
  box-shadow: none;
}
.demo-pill {
  border-color: #4a5750;
  color: #a7bcae;
}
.btn {
  background: #2d3435;
  border-color: #48524e;
  color: #d9e2da;
}
.btn:hover {
  background: #3b4640;
}
.btn.primary {
  background: #a5ceb5;
  border-color: #a5ceb5;
  color: #172b20;
  box-shadow: none;
}
.btn.primary:hover {
  background: #bcddc8;
}
.btn.danger {
  color: #efaaa1;
  border-color: #6c4541;
}
.stat-top {
  color: #a2ada6;
}
.stat-top .icon {
  color: #9bad9f;
}
.stat-value small {
  color: #8f9e94;
}
.stat-bottom,
.subtitle {
  color: #a2ada5;
}
.positive {
  color: #a4d9b1;
}
.progress {
  background: #38413a;
}
.progress span {
  background: #9db99e;
}
.panel-sub,
.tiny,
.help {
  color: #9aa89e;
}
.channel {
  border-color: #343b37;
}
.channel-icon {
  background: #304638;
  color: #abd5b5;
}
.channel-icon.telegram {
  background: #2e404a;
  color: #a2cbdf;
}
.channel-icon.max {
  background: #3b354c;
  color: #c3b5e5;
}
.channel-main small,
.channel-right small {
  color: #9caa9f;
}
.channel-foot,
.drawer-hint {
  background: #282e2b;
  border-color: #3a433c;
  color: #a4b4a4;
}
.badge {
  background: #353e36;
  color: #c1cdbb;
}
.badge.good {
  background: #304b3a;
  color: #b1d8b6;
}
.badge.warn {
  background: #4c412e;
  color: #e1c58b;
}
.badge.bad {
  background: #4e3533;
  color: #edb0a6;
}
.badge.blue {
  background: #30434e;
  color: #b0cfe1;
}
.badge.neutral {
  background: #363e3a;
  color: #bac5bb;
}
.notice {
  background: #2b3830;
  border-color: #445849;
  color: #bdd1bc;
}
.notice.warn {
  background: #3a3328;
  border-color: #64523b;
  color: #decb9f;
}
.text-link,
a {
  color: #b0d3b9;
}
th {
  background: #292e2e;
  color: #a3b1a4;
  border-color: #3a423b;
}
td {
  color: #c2cec2;
  border-color: #363e38;
}
tbody tr.clickable:hover {
  background: #2d3630;
}
.table-footer {
  color: #9eac9c;
  border-color: #3d453e;
}
.table-channel i {
  background: #9bbb9f;
}
.table-channel.telegram i {
  background: #8bb7cc;
}
.table-channel.max i {
  background: #b4a2cd;
}
.table-wrap {
  scrollbar-color: #576558 #242a25;
}
.message-preview {
  background: #1b2220;
  border-color: #3b4b3e;
  color: #c1d1bd;
}
.code-block {
  background: #171e1a;
  border: 1px solid #384b3c;
  color: #bad5bf;
}
.label {
  color: #b5c5b3;
}
input,
select,
textarea {
  background: #1c2220;
  border-color: #465549;
  color: #d3dfce;
}
input:focus,
select:focus,
textarea:focus {
  outline-color: #a3bfa0;
}
input::placeholder,
textarea::placeholder {
  color: #7d8e7f;
}
.search .icon {
  color: #a1b09f;
}
.check {
  border-color: #475749;
}
.check input {
  accent-color: #a7c6a5;
}
.form-error {
  color: #efaaa0;
}
.plan.featured {
  border-color: #9fc09e;
  box-shadow: 0 0 0 1px #9fc09e;
}
.plan ul {
  color: #b5c5b1;
}
.plan li:before {
  color: #b5d4ad;
}
.price small,
.template-foot {
  color: #a5b49e;
}
.detail-grid small {
  color: #a1b098;
}
.timeline-dot {
  background: #adc5a3;
  border-color: #34412f;
}
.timeline-row:before {
  background: #45543e;
}
.timeline-row p {
  color: #a8b69d;
}
.modal-close {
  color: #aebba4;
}
.modal-close:hover {
  background: #35402f;
}
.overlay {
  background: #070b0bbb;
}
.period {
  background: #2b332d;
  border-color: #45513f;
  color: #bbc8af;
}
.footer-note {
  color: #87977f;
}
.audit-row .icon {
  color: #b0c1a2;
}
.audit-row p {
  color: #a5b597;
}
.empty {
  color: #a5b697;
}
.plan .price {
  color: #e6eddf;
}
.nav-count {
  background: #4d402b;
  color: #e7cb90;
}
.channel-main strong {
  color: #e0e9db;
}
.pool-card small {
  color: #a2b397;
}
.domain-name {
  font-family: ui-monospace, monospace;
  color: #b2d3bc;
  font-size: 11px;
  overflow-wrap: anywhere;
  margin-top: 10px;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #364136;
  font-size: 10px;
  color: #a9b9a1;
}
.project-meta strong {
  color: #d2dfc8;
}
.verify-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 5px 23px 23px;
}
.verify-methods > div > .icon {
  display: block;
  margin: 10px 0;
  color: #b5caaa;
}
.verify-methods strong {
  font-size: 12px;
}
.verify-methods p {
  font-size: 11px;
  line-height: 1.8;
  color: #9faf97;
}
.top-actions #project-scope {
  max-width: 235px;
  font-size: 10px;
  background: #292f2c;
  padding: 8px;
}
.project-meta .badge {
  font-size: 8px;
}
.stat-value {
  white-space: nowrap;
}
.code-block {
  overflow-wrap: anywhere;
}
.table-wrap td .tiny {
  white-space: normal;
}
#toast {
  background: #c2d9b8;
  color: #1b2c17;
}
.chart-wrap svg g[stroke] {
  stroke: #394334;
}
.chart-wrap svg g[fill] {
  fill: #9eaf92;
}
.chart-legend {
  color: #abbda0;
}
.modal-body .message-preview span {
  color: #a4b29a !important;
}
.profile .tiny {
  color: #a0b091;
}
@media (max-width: 1100px) {
  .top-actions #project-scope {
    max-width: 190px;
  }
  .topbar {
    gap: 8px;
  }
  .breadcrumb {
    font-size: 10px;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: auto;
    min-height: 95px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .top-actions {
    flex-wrap: wrap;
    gap: 9px;
  }
  .top-actions #project-scope {
    max-width: none;
    flex: 1;
    min-width: 180px;
  }
  .role-switch {
    margin-left: auto;
  }
  .verify-methods {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .main .stat-value {
    font-size: 25px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .top-actions .demo-pill {
    display: none;
  }
  .topbar .role-switch {
    flex: 1;
    justify-content: center;
  }
}
/* User-focused project overview and contextual setup. */
.project-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -4px 0 25px;
  color: #a4b0aa;
  font-size: 12px;
}
.summary-divider {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: #65726a;
}
.project-summary .text-link {
  margin-left: auto;
  font-size: 11px;
}
.project-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 335px;
}
.project-avatar {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #34413b;
  color: #c3decd;
  font-size: 20px;
  font-weight: 700;
  border-radius: 13px;
  flex-shrink: 0;
}
.project-card h2 {
  margin: 3px 0 9px;
  font-size: 18px;
  letter-spacing: -0.35px;
}
.project-site {
  color: #9caf9f;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.project-card-body {
  margin-top: 24px;
  flex: 1;
}
.project-volume {
  display: flex;
  gap: 12px;
  align-items: center;
}
.project-volume strong {
  font-size: 27px;
  letter-spacing: -0.7px;
  color: #e3e9e4;
}
.project-volume span {
  font-size: 11px;
  color: #a0aea3;
  max-width: 105px;
  line-height: 1.7;
}
.project-guidance {
  color: #94a499;
  font-size: 11px;
  line-height: 1.8;
  margin: 16px 0 22px;
}
.project-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid #38413d;
}
.project-card-actions .btn {
  flex: 1;
  font-size: 10px;
  padding: 10px 9px;
}
.project-card-actions .icon {
  width: 14px;
}
.setup-prompt {
  display: flex;
  gap: 11px;
  padding: 15px;
  background: #36372d;
  border: 1px solid #4b4a36;
  border-radius: 8px;
  margin: 0 0 20px;
}
.setup-prompt > .icon {
  flex-shrink: 0;
  color: #d7c797;
}
.setup-prompt strong {
  font-size: 12px;
  color: #dfd5b5;
}
.setup-prompt p {
  color: #b6b49f;
  font-size: 11px;
  line-height: 1.8;
  margin: 7px 0 0;
}
.verification-intro {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.verification-intro strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.verification-intro p {
  font-size: 12px;
  line-height: 1.8;
  color: #a7b4aa;
  margin: 7px 0 0;
  max-width: 480px;
}
.method-choices {
  display: grid;
  gap: 11px;
}
.method-choice {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid #45524a;
  border-radius: 9px;
  padding: 18px;
  text-align: left;
  background: #292f2c;
  width: 100%;
}
.method-choice:hover {
  background: #34413a;
  border-color: #82a28c;
}
.method-choice > .icon {
  color: #b3cdbb;
  flex-shrink: 0;
}
.method-choice > .icon:last-child {
  margin-left: auto;
  width: 15px;
}
.method-choice strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #e1e9e3;
}
.method-choice small {
  display: block;
  color: #a2b0a6;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 6px;
}
.setup-steps {
  padding-left: 23px;
  font-size: 12px;
  line-height: 1.9;
  color: #c0cfc3;
}
.setup-steps li {
  padding-left: 5px;
  margin-bottom: 12px;
}
.setup-steps li::marker {
  color: #abc9b4;
  font-weight: 700;
}
.demo-test {
  margin-top: 22px;
  border-top: 1px solid #39453e;
  padding-top: 14px;
  font-size: 10px;
  color: #889a8e;
}
.demo-test summary {
  cursor: pointer;
}
.demo-test p {
  line-height: 1.8;
}
.verification-success {
  text-align: center;
  padding: 15px 20px;
}
.verification-success > span {
  display: grid;
  place-items: center;
  background: #344d3d;
  color: #b9dec2;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  margin: 0 auto 22px;
}
.verification-success > span .icon {
  width: 30px;
  height: 30px;
}
.verification-success h3 {
  font-size: 21px;
}
.verification-success > p {
  color: #acc8b5;
}
.main .subtitle {
  font-size: 13px;
}
.main .btn {
  font-size: 12px;
}
.nav button {
  font-size: 13px;
}
.main .panel-title {
  font-size: 14px;
}
.project-cards .btn {
  font-size: 11px;
}
@media (max-width: 1150px) {
  .project-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .project-cards {
    grid-template-columns: 1fr;
  }
  .project-summary {
    flex-wrap: wrap;
    gap: 9px;
  }
  .project-summary .text-link {
    width: 100%;
    margin: 3px 0 0;
  }
  .project-card {
    min-height: 310px;
  }
  .method-choice {
    padding: 14px;
  }
  .method-choice strong {
    font-size: 12px;
  }
  .method-choice small {
    font-size: 11px;
  }
}
/* The sidebar owns navigation; the content starts directly with its page title. */
.content > .main {
  padding-top: 38px;
}
.nav-notifications {
  position: relative;
}
.notification-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #c6b684;
  margin-left: auto;
}
.demo-role-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 3px 0;
  font-size: 10px;
  color: #a9b6ac;
  text-align: left;
}
.demo-role-link .icon {
  width: 15px;
  flex-shrink: 0;
}
.project-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #a9b8ae;
}
.project-filter select {
  max-width: 310px;
}
.filters {
  align-items: center;
}
.current-subscription {
  margin-bottom: 22px;
}
.usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px 24px 24px;
  gap: 38px;
}
.usage-meter + .usage-meter {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}
.usage-meter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.usage-meter-heading h3 {
  font-size: 13px;
  margin: 0;
}
.usage-meter-heading > span {
  font-size: 10px;
  color: #a6b4aa;
}
.usage-total {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 22px 0 17px;
}
.usage-total strong {
  font-size: 36px;
  letter-spacing: -1px;
}
.usage-total > span {
  font-size: 15px;
  color: #93a398;
}
.usage-track {
  display: flex;
  height: 10px;
  background: #37413b;
  border-radius: 5px;
  overflow: hidden;
}
.usage-fill {
  background: #a8c9b2;
}
.usage-reserved {
  background: #d8bd85;
  min-width: 2px;
}
.usage-reserved[style="width:0%"] {
  min-width: 0;
}
.usage-breakdown {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #a0b0a5;
  margin-top: 17px;
}
.usage-breakdown b {
  color: #d1dfd5;
  font-weight: 600;
  margin-left: 4px;
}
.legend-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 5px;
}
.legend-dot.used {
  background: #a8c9b2;
}
.legend-dot.reserved {
  background: #d8bd85;
}
.legend-dot.remaining {
  background: #61756a;
}
.usage-note {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 15px 24px;
  background: #28322c;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #adc1b1;
}
.usage-note .icon {
  flex-shrink: 0;
}
.project-spending {
  margin-bottom: 30px;
}
.spending-row {
  display: flex;
  gap: 25px;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid #343e37;
}
.spending-name {
  width: 240px;
}
.spending-name strong {
  font-size: 12px;
}
.spending-name span {
  display: block;
  font-size: 10px;
  color: #8fa696;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.spending-bar {
  height: 5px;
  background: #354239;
  flex: 1;
  border-radius: 3px;
  overflow: hidden;
}
.spending-bar span {
  display: block;
  height: 100%;
  background: #789b85;
  border-radius: 3px;
}
.spending-row > strong {
  min-width: 95px;
  text-align: right;
  font-size: 13px;
}
.spending-row small {
  font-size: 10px;
  color: #97ad9e;
  font-weight: 400;
}
.spending-row .text-link {
  white-space: nowrap;
}
.section-heading {
  margin: 25px 0 20px;
}
.section-heading h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}
.section-heading p {
  font-size: 12px;
  color: #94a79b;
  line-height: 1.8;
  margin: 0;
}
.plan-consumption {
  margin: 20px 0;
}
.plan-consumption > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #a5b7aa;
}
.plan-consumption strong {
  color: #d4e0d7;
  font-size: 11px;
}
.plan-consumption .progress {
  height: 6px;
  margin-top: 10px;
}
.plan .btn {
  margin-top: 15px;
}
.nav {
  flex-shrink: 0;
}
.sidebar {
  overflow-y: auto;
}
@media (max-width: 1000px) {
  .usage-grid {
    gap: 20px;
  }
  .usage-meter + .usage-meter {
    padding-left: 20px;
  }
  .usage-meter-heading {
    flex-wrap: wrap;
  }
  .spending-name {
    width: 180px;
  }
  .spending-row {
    gap: 15px;
  }
  .project-filter {
    width: 100%;
  }
  .project-filter select {
    flex: 1;
    max-width: none;
  }
}
@media (max-width: 850px) {
  .nav-notifications .notification-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 5px;
    height: 5px;
  }
  .side-bottom {
    display: block;
    padding: 15px 0 0;
  }
  .side-bottom .demo-note,
  .side-bottom .profile,
  .demo-role-link span {
    display: none;
  }
  .demo-role-link {
    justify-content: center;
    padding: 10px;
  }
  .usage-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .usage-meter + .usage-meter {
    padding-left: 0;
    border-left: 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 560px) {
  .content > .main {
    padding-top: 24px;
  }
  .sidebar {
    overflow: visible;
  }
  .side-bottom {
    margin: 0;
    padding: 0;
  }
  .demo-role-link {
    padding: 7px;
  }
  .nav {
    flex-shrink: 1;
  }
  .spending-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .spending-name {
    flex: 1;
    width: auto;
    min-width: 140px;
  }
  .spending-bar {
    display: none;
  }
  .spending-row .text-link {
    width: 100%;
    justify-content: flex-end;
  }
  .usage-grid {
    padding: 5px 18px 22px;
  }
  .usage-note {
    padding: 13px 18px;
  }
  .usage-total strong {
    font-size: 32px;
  }
  .usage-breakdown {
    gap: 11px;
  }
  .project-filter {
    align-items: flex-start;
    flex-direction: column;
  }
  .project-filter select {
    width: 100%;
    min-width: 0;
  }
  .filters .search {
    min-width: 160px;
  }
  .main .heading-actions {
    flex-wrap: wrap;
  }
}
