:root {
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: #24352f;
  background: #f6f8f7;
  font-synthesis: none;
  --green: #166b56;
  --muted: #76827c;
  --border: #e4eae6;
  --surface: #fff;
  --dark: #193f33;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 600;
  line-height: 1.25;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 14px;
}
p {
  color: var(--muted);
}
small {
  font-size: 12px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #4f9e87;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #93b9ac;
  outline-offset: 1px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dbe3dd;
  border-radius: 7px;
  padding: 10px 12px;
  background: white;
  color: #24352f;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #9ca69f;
}
input[type='checkbox'] {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}
.initial {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--green);
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 238px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 31px 19px 18px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 25px;
  letter-spacing: -1.2px;
  font-weight: 650;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-size: 30px;
  font-weight: 650;
  line-height: 1;
  padding-bottom: 6px;
  margin-right: 7px;
  font-family: Arial, sans-serif;
  letter-spacing: -2px;
}
.brand-light {
  font-weight: 400;
  color: var(--green);
}
.workspace-label {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  margin-top: 36px;
  font-size: 13px;
  font-weight: 550;
}
.workspace-label small {
  display: block;
  font-weight: 400;
  margin-top: 1px;
}
.workspace-avatar {
  background: #f0f3f1;
  border: 1px solid #e2e7e3;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #919b95;
  margin: 31px 12px 10px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav-item {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 11px 12px;
  border-radius: 7px;
  color: #77847c;
  width: 100%;
  font-size: 14px;
}
.nav-item:hover {
  background: #f5f8f6;
}
.nav-item.active {
  background: #eaf4ee;
  color: var(--green);
  font-weight: 600;
}
.nav-count {
  margin-left: auto;
  background: #dceadf;
  font-size: 11px;
  border-radius: 4px;
  min-width: 20px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
}
.small-note {
  margin: 40px 7px 26px;
  padding: 17px 0 4px;
}
.small-note svg {
  width: 18px;
  margin-bottom: 9px;
  color: var(--green);
}
.small-note strong {
  font-size: 12px;
  font-weight: 550;
}
.small-note p {
  font-size: 11px;
  margin-top: 5px;
  white-space: nowrap;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  background: #efeee8;
  color: #717362;
  font-size: 10px;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  flex-shrink: 0;
}
.profile small {
  display: block;
  font-size: 10px;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile .icon-button {
  margin-left: auto;
}
.icon-button {
  border: 0;
  background: transparent;
  padding: 5px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 26px;
  line-height: 1;
}
.icon-button:hover {
  background: #edf2ef;
}
.icon-button svg {
  width: 17px;
  height: 17px;
}
.main {
  margin-left: 238px;
  width: calc(100% - 238px);
}
.topbar {
  height: 76px;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  font-size: 12px;
  color: var(--muted);
}
.topbar strong {
  font-weight: 500;
  color: #43534b;
}
.slash {
  padding: 0 13px;
  color: #c4cdc7;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
  gap: 5px;
}
.badge.amber {
  color: #8a692d;
  background: #fcf3df;
}
.badge.green {
  color: #28765b;
  background: #e9f5ed;
}
.badge.gray {
  color: #66746c;
  background: #edf1ee;
}
.badge.red {
  color: #b3554c;
  background: #fbedeb;
}
.badge.blue {
  color: #4a70a8;
  background: #edf3fc;
}
.content {
  padding: 27px 40px 0;
  max-width: 1500px;
  margin: auto;
}
.mode-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e9de;
  background: #f1f5e9;
  padding: 11px 14px;
  border-radius: 7px;
  color: #747c56;
  font-size: 12px;
  margin-bottom: 32px;
}
.mode-notice svg {
  width: 16px;
  height: 16px;
}
.mode-notice strong {
  font-weight: 600;
}
.mode-notice button {
  border: 0;
  background: none;
  white-space: nowrap;
  font-size: 11px;
  margin-left: auto;
  color: #667842;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 650;
  color: #8b998f;
  display: block;
  margin-bottom: 9px;
}
.page-heading p {
  margin-top: 9px;
  font-size: 13px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 7px;
  padding: 10px 15px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.button svg {
  width: 16px;
  height: 16px;
}
.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 2px 3px #143f3412;
}
.primary:hover {
  background: #125841;
}
.secondary {
  background: #fff;
  border-color: var(--border);
}
.secondary:hover {
  background: #f2f6f3;
}
.wide {
  width: 100%;
}
.section-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 12px;
}
.muted {
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 23px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 20px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #728077;
  font-size: 12px;
}
.stat-top svg {
  width: 17px;
  height: 17px;
  color: #a0afa5;
}
.stat-value {
  font-size: 33px;
  font-weight: 550;
  letter-spacing: -1px;
  margin: 10px 0 4px;
  line-height: 1.25;
}
.stat-foot {
  color: #98a399;
  font-size: 11px;
}
.stat:first-child {
  border-top: 3px solid var(--green);
  padding-top: 18px;
}
.stat:first-child .stat-value {
  color: var(--green);
}
.panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 24px 15px;
  gap: 12px;
}
.panel-heading p {
  font-size: 11px;
  margin-top: 5px;
}
.panel-heading > span {
  color: #a1aca5;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 20px;
  margin-bottom: 23px;
}
.legend {
  font-size: 10px;
  color: #8c9890;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.legend i {
  background: var(--green);
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.chart {
  padding: 10px 23px 19px;
  height: 220px;
}
.chart svg {
  height: 100%;
  width: 100%;
}
.chart-grid {
  stroke: #eef1ee;
  stroke-dasharray: 3 4;
}
.chart text {
  font-family: inherit;
  font-size: 11px;
  fill: #95a099;
}
.chart-bar {
  fill: #8db7a0;
}
.chart-bar:last-of-type {
  fill: var(--green);
}
.chart-zero {
  fill: #e2eee6;
}
.chart-empty {
  font-size: 13px !important;
  fill: #87998b !important;
}
.channels-panel .panel-heading {
  padding-bottom: 18px;
}
.channel {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 17px 24px;
  border-top: 1px solid #f0f3f0;
}
.channel-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #eff5f0;
  border-radius: 9px;
  color: #618d77;
}
.channel-name {
  font-weight: 550;
  font-size: 12px;
}
.channel-name small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  margin-top: 2px;
}
.channel .badge {
  margin-left: auto;
  font-size: 10px;
}
.channel-foot {
  padding: 15px 24px;
  color: #9ba49e;
  font-size: 10px;
  background: #fcfdfb;
  border-top: 1px solid #f0f3f0;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 550;
  color: #98a299;
  background: #fafcfb;
  border-block: 1px solid #f0f3f0;
  padding: 11px 24px;
  white-space: nowrap;
}
td {
  padding: 17px 24px;
  border-bottom: 1px solid #f0f3f0;
  font-size: 12px;
}
tr:last-child td {
  border-bottom: 0;
}
td .subline {
  display: block;
  color: #96a198;
  font-size: 10px;
  margin-top: 4px;
}
.message-button {
  display: block;
  border: 0;
  padding: 0;
  background: none;
  font-weight: 550;
  text-align: left;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-button:hover {
  color: var(--green);
}
.channel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.channel-badges .badge {
  font-size: 10px;
}
.empty {
  padding: 46px 20px 49px;
  text-align: center;
}
.empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f0f5f1;
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  color: #80a48f;
}
.empty h3 {
  font-size: 14px;
  font-weight: 550;
}
.empty p {
  font-size: 12px;
  max-width: 390px;
  margin: 7px auto 18px;
  line-height: 1.7;
}
.bottom-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #99a29b;
  font-size: 11px;
  padding: 21px 0;
}
.bottom-note svg {
  width: 14px;
  height: 14px;
}
footer {
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  color: #a0aba3;
  padding: 19px 0 22px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
footer span {
  color: #b0b8b2;
}
.filters {
  display: flex;
  align-items: end;
  gap: 15px;
  margin-bottom: 22px;
}
.filters label {
  font-size: 11px;
  min-width: 180px;
}
.filters select {
  font-size: 12px;
}
.filters .button {
  margin-left: auto;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  font-size: 12px;
  color: var(--muted);
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.project-grid > .empty {
  grid-column: 1/-1;
  border: 1px dashed #d6e1d9;
  border-radius: 10px;
  background: #fff;
  padding: 70px 20px;
}
.project-card {
  padding: 23px;
}
.project-card-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.project-card h2 {
  font-size: 18px;
}
.project-card p {
  font-size: 12px;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.project-card p strong {
  font-weight: 500;
  color: #566c60;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
}
.project-actions {
  display: flex;
  gap: 8px;
  margin-top: 17px;
}
.integration-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
}
.integration-panel {
  padding: 27px;
  min-width: 0;
}
.step-number {
  color: var(--green);
  font:
    12px Consolas,
    monospace;
  display: block;
  margin-bottom: 20px;
}
.integration-panel h2 {
  font-size: 20px;
  margin-bottom: 10px;
}
.integration-panel p {
  font-size: 12px;
  line-height: 1.8;
}
.code-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  margin-top: 24px;
  overflow: hidden;
}
.code-tabs button {
  border: 0;
  background: #fafcfb;
  font-size: 10px;
  padding: 10px 12px;
}
.code-tabs button.active {
  color: var(--green);
  background: #eaf2ec;
}
.code-tabs .copy-button {
  margin-left: auto;
}
pre {
  font:
    12px/1.8 Consolas,
    'Courier New',
    monospace;
  background: #172f28;
  color: #dbe9df;
  border-radius: 7px;
  padding: 20px;
  overflow: auto;
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.integration-panel pre {
  margin-top: 0;
  border-radius: 0 0 7px 7px;
  min-height: 252px;
}
code {
  font-family: Consolas, 'Courier New', monospace;
}
.tip {
  display: flex;
  gap: 9px;
  background: #f3f7f3;
  padding: 13px;
  border-radius: 6px;
  margin-top: 18px;
}
.tip svg {
  width: 15px;
  height: 15px;
  color: #79a188;
  flex-shrink: 0;
  margin-top: 3px;
}
.tip p {
  font-size: 11px;
  color: #7b8c80;
}
.provider-instructions {
  margin-top: 24px;
}
.provider-instructions h3 {
  margin: 18px 0 8px;
  font-size: 12px;
}
.provider-instructions code {
  font-size: 11px;
  color: #708577;
  line-height: 1.9;
}
.integration-panel > .muted {
  font-size: 11px;
  margin-top: 18px;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  width: 580px;
  max-width: calc(100% - 30px);
  max-height: 90vh;
  color: #24352f;
  box-shadow: 0 24px 100px #15342730;
}
dialog::backdrop {
  background: #16352b60;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 15px;
}
.dialog-heading h2 {
  font-size: 24px;
}
.dialog-heading .eyebrow {
  margin-bottom: 5px;
}
dialog label {
  margin-top: 17px;
  font-size: 12px;
}
dialog label small,
dialog form > small {
  font-size: 11px;
  font-weight: 400;
}
dialog form > small {
  display: block;
  margin-top: 8px;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.check-label {
  flex-direction: row;
  align-items: center;
  margin-top: 30px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 25px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.error {
  color: #b65545;
  font-size: 12px;
  margin-top: 12px;
  min-height: 0;
}
.error:empty {
  display: none;
}
#key-dialog p {
  font-size: 13px;
  line-height: 1.8;
  margin: 18px 0;
}
#key-dialog .muted {
  font-size: 11px;
}
.detail-meta {
  font-size: 11px;
  color: #89998e;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.detail-fields {
  margin: 0;
}
.detail-fields dt {
  font-size: 11px;
  color: #8a978e;
  margin-top: 16px;
}
.detail-fields dd {
  font-size: 14px;
  margin: 5px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.delivery-detail {
  border-top: 1px solid var(--border);
  margin-top: 23px;
  padding-top: 18px;
}
.delivery-detail p {
  font-size: 12px;
  margin: 8px 0;
}
.delivery-detail small {
  display: block;
  overflow-wrap: anywhere;
}
.delivery-detail .button {
  margin-top: 10px;
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  max-width: calc(100% - 50px);
  background: #1b4234;
  color: white;
  border: 1px solid #39634e;
  box-shadow: 0 8px 20px #163f3426;
  padding: 13px 19px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 100;
}
/* The browser's popover defaults (centred, framed) give way to the toast's own place. */
.toast[popover] {
  inset: auto 25px 25px auto;
  margin: 0;
  width: auto;
  height: auto;
  overflow: visible;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.login-story {
  background: #153f32;
  color: white;
  padding: 50px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-story .brand-light {
  color: #b3ceb6;
}
.login-story .brand-mark {
  background: #9cc5a6;
  color: #143d30;
}
.login-story .eyebrow {
  color: #9fbeab;
  margin-bottom: 23px;
}
.login-story h1 {
  font-size: clamp(38px, 4.5vw, 68px);
  font-weight: 450;
  letter-spacing: -2px;
  line-height: 1.18;
}
.login-story p {
  font-size: 17px;
  color: #a1bdae;
  margin-top: 28px;
  line-height: 1.8;
}
.login-foot {
  font-size: 11px;
  color: #729581;
}
.login-main {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-card {
  width: 100%;
  max-width: 355px;
}
.login-card h2 {
  font-size: 30px;
  margin: 9px 0;
}
.login-card > p {
  font-size: 13px;
  margin-bottom: 30px;
}
.login-card label {
  margin-top: 19px;
  font-size: 12px;
}
.login-card .button {
  margin-top: 25px;
  justify-content: space-between;
  padding: 12px 16px;
}
.login-card .setup-hint {
  font-size: 11px;
  margin-top: 20px;
  line-height: 1.8;
  color: #9aa49b;
}
.login-card .error {
  margin: 12px 0 0;
}
.confirmation {
  margin: 15vh auto;
  max-width: 600px;
  padding: 40px;
  text-align: center;
}
.confirmation .brand-mark {
  margin: 0 auto 24px;
}
.confirmation p {
  margin: 20px 0 40px;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 40px;
  }
  .stats {
    gap: 22px;
  }
  .stat {
    padding: 26px;
  }
  .stat:first-child {
    padding-top: 24px;
  }
  .chart {
    height: 260px;
  }
  .panel-heading {
    padding-top: 27px;
  }
  .channel {
    padding-block: 24px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding-inline: 14px;
  }
  .main {
    margin-left: 210px;
    width: calc(100% - 210px);
  }
  .content {
    padding-inline: 24px;
  }
  .topbar {
    padding-inline: 24px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat:first-child {
    padding-top: 14px;
  }
  .stat-top {
    font-size: 11px;
  }
  .overview-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 15px;
  }
  .panel-heading {
    padding: 19px 18px 13px;
  }
  .channel {
    padding: 17px 18px;
  }
  .channel .badge {
    font-size: 9px;
  }
  .legend {
    display: none;
  }
  .mode-notice button {
    display: none;
  }
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  td,
  th {
    padding-inline: 18px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    gap: 15px;
  }
  .workspace {
    display: block;
  }
  .sidebar .brand {
    font-size: 23px;
  }
  .workspace-label,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    gap: 4px;
    overflow: auto;
  }
  .nav-item {
    white-space: nowrap;
    gap: 6px;
    padding: 9px 11px;
    width: auto;
    font-size: 12px;
  }
  .nav-item svg {
    width: 16px;
    height: 16px;
  }
  .nav-count {
    display: none;
  }
  .main {
    margin: 0;
    width: 100%;
  }
  .topbar {
    height: 57px;
    padding-inline: 20px;
  }
  .content {
    padding: 22px 20px 0;
  }
  .mode-notice {
    font-size: 11px;
    margin-bottom: 25px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-top {
    font-size: 12px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .channels-panel {
    display: none;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    flex-wrap: wrap;
    gap: 10px;
  }
  .filters label {
    min-width: 0;
    flex: 1;
  }
  .filters .button {
    margin-left: 0;
  }
  .bottom-note {
    font-size: 10px;
    text-align: center;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 0;
    padding: 27px 30px;
  }
  .login-story > div,
  .login-foot {
    display: none;
  }
  .login-main {
    padding: 60px 25px;
  }
  .login-card {
    max-width: 400px;
  }
  .login-story .brand {
    font-size: 25px;
  }
  .form-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .check-label {
    margin-top: 20px;
  }
  .chart {
    height: 215px;
  }
  .panel-heading p {
    font-size: 11px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .section-caption {
    font-size: 11px;
  }
  .integration-panel {
    padding: 23px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .view {
    animation: appear 0.2s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.5;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
#mobile-logout {
  display: none;
}
.channel-badges svg {
  width: 13px;
  height: 13px;
}
.stat-top,
.stat-foot,
.panel-heading p,
.badge,
.section-caption,
.mode-notice,
.text-button,
.button,
.nav-item,
.filters label,
.filters select,
td {
  font-size: 12px;
}
.stat-top {
  gap: 8px;
}
.stat-top > span {
  min-width: 0;
}
.stat-foot {
  line-height: 1.7;
}
@media (max-width: 800px) {
  #mobile-logout {
    display: grid;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }
  .nav-item {
    width: 100%;
  }
  .topbar {
    gap: 10px;
    font-size: 11px;
  }
  .slash {
    padding: 0 7px;
  }
  .stat {
    padding: 16px;
  }
  .stat-top {
    align-items: start;
  }
  .mode-notice {
    font-size: 12px;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading .button {
    margin-top: 19px;
  }
  .topbar-actions {
    gap: 7px;
  }
}
@font-face {
  font-family: 'ANES Space Grotesk';
  src: url('/brand/space-grotesk-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'ANES Space Grotesk';
  src: url('/brand/space-grotesk-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    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;
}
:root {
  --green: #065f46;
  --dark: #0c0f15;
  --border: #e5e7eb;
  --muted: #647067;
  background: #f3f4f6;
  color: #0c0f15;
}
.brand {
  gap: 0;
  font-family: 'ANES Space Grotesk', system-ui, sans-serif;
  color: #0c0f15;
  letter-spacing: normal;
}
.brand-wordmark {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1.4px;
  font-synthesis: weight;
  line-height: 1;
}
.brand-logo-stacked {
  display: block;
  width: 164px;
  height: auto;
}
.brand-logo-horizontal {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}
.brand-a {
  color: #065f46;
}
.brand-company {
  font-size: 12px;
  font-weight: 400;
  color: #8a939d;
  margin-left: 6px;
  letter-spacing: -0.3px;
  align-self: end;
  padding-bottom: 1px;
}
.brand-product {
  font-size: 14px;
  font-weight: 500;
  color: #065f46;
  margin-left: 11px;
  padding-left: 11px;
  border-left: 1px solid #d1d5db;
  letter-spacing: 0;
}
.login-story {
  background: #0c0f15;
}
.login-story .brand {
  color: #fff;
}
.login-story .brand-a {
  color: #34d399;
}
.login-story .brand-product {
  color: #a7f3d0;
  border-color: #374151;
}
.login-story .eyebrow {
  color: #6ee7b7;
}
.confirmation-brand {
  justify-content: center;
  margin-bottom: 30px;
}
.operations-summary {
  font-size: 12px;
  line-height: 1.8;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  border-radius: 7px;
  padding: 12px 15px;
  margin-bottom: 20px;
  color: #065f46;
}
.operations-summary.needs-attention {
  background: #fffbeb;
  border-color: #fde68a;
  color: #854d0e;
}
.project-actions {
  flex-wrap: wrap;
}
.project-actions .button {
  font-size: 11px;
}
#server-key-section {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 23px;
}
#key-dialog h3 {
  margin-top: 20px;
}
.login-story .brand-wordmark {
  font-size: 32px;
}
/* Form operations and project automation settings */
.filters {
  flex-wrap: wrap;
}
.filters label {
  min-width: 135px;
}
.inbox-actions,
.inbox-actions > div,
.feature-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.inbox-actions {
  justify-content: space-between;
  margin: 16px 0;
}
.inbox-actions select {
  width: auto;
}
.inbox-actions .check-label {
  margin: 0;
}
.advanced {
  border-top: 1px solid #e5e7eb;
  padding: 18px 0;
}
.advanced summary,
.feature-panel summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 14px;
}
.field-rule {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin: 16px 0;
  padding: 14px;
  min-width: 0;
}
.field-rule legend {
  font-size: 12px;
  color: #6b7280;
}
.feature-panel {
  padding: 24px;
  margin-bottom: 20px;
}
.feature-panel form {
  max-width: 560px;
}
.feature-panel h2 {
  margin-top: 0;
}
.mfa-qr {
  display: block;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 12px 0;
}
.onboarding {
  margin-bottom: 20px;
}
.onboarding-steps {
  list-style: none;
  margin: 0;
  padding: 0 24px 16px;
}
.onboarding-steps li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.onboarding-steps li > div {
  flex: 1;
}
.onboarding-steps p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.step-mark {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  border: 1px solid var(--border);
}
.onboarding-steps li.done .step-mark {
  background: #e9f5ed;
  color: #28765b;
  border-color: #cfe8d8;
}
@media (max-width: 700px) {
  .onboarding-steps li {
    flex-wrap: wrap;
  }
}
.settings-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
#settings-sections .feature-panel {
  max-width: 720px;
}
#settings-sections label,
#settings-sections small {
  display: block;
}
#settings-sections small {
  margin: 4px 0 12px;
}
.settings-notes {
  padding-left: 18px;
}
.settings-notes li {
  margin-bottom: 8px;
}
.settings-save {
  position: sticky;
  bottom: 0;
  z-index: 2;
  max-width: 720px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.settings-save label {
  flex: 1 1 240px;
}
.feature-buttons {
  margin: 14px 0;
}
.attempt-history {
  padding-left: 20px;
}
.attempt-history li {
  margin: 14px 0;
  overflow-wrap: anywhere;
}
.delivery-detail details {
  margin-top: 18px;
}
.delivery-detail a {
  color: #065f46;
  text-decoration: underline;
}
.project-actions {
  flex-wrap: wrap;
}
#secret-value,
#mfa-secret pre,
#mfa-recovery pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 16px;
  background: #f3f5f4;
  border-radius: 8px;
}
#audit-body td {
  max-width: 460px;
  overflow-wrap: anywhere;
  white-space: normal;
}
#report-body table {
  width: 100%;
}
#project-dialog {
  max-height: 90dvh;
  overflow-y: auto;
}
input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: #065f46;
}
@media (max-width: 640px) {
  .filters label {
    flex: 1 1 140px;
    min-width: 0;
  }
  .inbox-actions > div {
    width: 100%;
  }
  .feature-panel {
    padding: 18px;
  }
  .feature-buttons .button {
    flex: 1 1 auto;
  }
}
#view-submissions .filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}
@media (max-width: 640px) {
  #view-submissions .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.access-entry {
  padding: 24px 0;
  border-bottom: 1px solid #dce4da;
  overflow-wrap: anywhere;
}
.access-message {
  white-space: pre-wrap;
}

/* Recipient verification and account settings */
.recipient-status {
  margin-top: 12px;
  font-size: 13px;
}
.recipient-status ul {
  list-style: none;
  margin: 6px 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.recipient-status small {
  color: var(--muted, #667085);
}
.danger-zone {
  border-color: #f3c5c5;
}

/* Plan usage meters */
.usage-row {
  display: grid;
  gap: 4px;
  margin: 10px 0;
}
.usage-row > div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.usage-row progress {
  width: 100%;
  height: 8px;
}

/* Checkout */
.wide-dialog {
  width: min(860px, 94vw);
}
.legal-text {
  white-space: pre-wrap;
  max-height: 320px;
  overflow: auto;
  font-size: 12px;
  background: var(--surface-2, #f7f7f5);
  padding: 12px;
  border-radius: 8px;
}
.pay-frame {
  width: 100%;
  height: 620px;
  border: 0;
}
.purchase-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

/* ---------- Panel refresh: readable navigation, tinted tables, compact layouts ---------- */
.sidebar {
  width: 248px;
  overflow-y: auto;
}
.sidebar nav {
  gap: 18px;
}
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item[data-order='1'] {
  order: 1;
}
.nav-item[data-order='2'] {
  order: 2;
}
.nav-item[data-order='3'] {
  order: 3;
}
.nav-item[data-order='4'] {
  order: 4;
}
.nav-item[data-order='5'] {
  order: 5;
}
.nav-item[data-order='9'] {
  order: 9;
}
.nav-group[hidden] {
  display: none;
}
.nav-group .nav-label {
  font-size: 11px;
  letter-spacing: 1.1px;
  color: #6b7a73;
  margin: 0 12px 6px;
  order: -1;
}
.sidebar .nav-item {
  font-size: 14px;
  color: #33413b;
  padding: 9px 12px;
  gap: 11px;
  border-radius: 8px;
  position: relative;
}
.sidebar .nav-item svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: #7a8a82;
}
.sidebar .nav-item:hover {
  background: #eff5f1;
  color: #16231e;
}
.sidebar .nav-item.active {
  background: #e3f1ea;
  color: var(--green);
  font-weight: 600;
}
.sidebar .nav-item.active svg {
  color: var(--green);
}
.sidebar .nav-item.active::before {
  content: '';
  position: absolute;
  left: -19px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--green);
}
.nav-count {
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 1px 7px;
}
.main {
  margin-left: 248px;
  width: calc(100% - 248px);
}
th {
  background: #eaf3ee;
  color: #2f5646;
  font-size: 11px;
  font-weight: 650;
  border-block: 1px solid #d9e8df;
}
td {
  font-size: 13px;
}
tbody tr:hover td {
  background: #f8fbf9;
}
.panel {
  border-radius: 12px;
}
.panel-heading h2,
.feature-panel h2 {
  font-size: 16px;
}
.badge {
  font-size: 11.5px;
}
.stat {
  border-top: 3px solid #cfe5d8;
}
.stat:first-child {
  border-top-color: var(--green);
}
/* Two-column card layouts for settings-like screens */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  align-items: start;
}
.card-grid > .feature-panel {
  margin-bottom: 0;
}
/* In-page tabs (account screen) */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.tabs button {
  border: 0;
  background: none;
  padding: 10px 14px;
  font-size: 14px;
  color: #56655e;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tabs button:hover {
  color: #16231e;
}
.tabs button[aria-selected='true'] {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 600;
}
@media (max-width: 800px) {
  .main {
    margin-left: 0;
    width: 100%;
  }
  .sidebar {
    width: 100%;
  }
  .sidebar nav {
    gap: 4px;
  }
  .nav-group {
    display: contents;
  }
  .nav-group .nav-label {
    grid-column: 1 / -1;
    margin: 10px 4px 2px;
  }
  .sidebar .nav-item.active::before {
    display: none;
  }
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Account screen */
.plan-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 28px;
  margin-bottom: 18px;
  background: linear-gradient(120deg, #eef7f2, #ffffff 70%);
}
.plan-hero h2 {
  font-size: 26px;
  margin: 4px 0;
}
.plan-hero p {
  margin: 0;
  color: var(--muted);
}
.plan-hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.usage-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.usage-card > span {
  font-size: 12.5px;
  color: var(--muted);
}
.usage-card strong {
  font-size: 24px;
  color: #16231e;
  line-height: 1.2;
}
.usage-card small {
  color: var(--muted);
}
.usage-card progress {
  width: 100%;
  height: 6px;
  margin-top: 10px;
  accent-color: var(--green);
}
.usage-card.near progress {
  accent-color: #c28a1b;
}
.usage-card.full progress {
  accent-color: #b3554c;
}
.notice.warning {
  background: #fcf3df;
  color: #6f5421;
  border-radius: 10px;
  padding: 12px 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  max-width: none;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.feature-panel .form-grid {
  max-width: none;
}
.purchase-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 10px;
}
.purchase-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.purchase-option div {
  display: flex;
  flex-direction: column;
}
.purchase-option span {
  color: var(--muted);
  font-size: 13px;
}
details.danger-zone summary {
  color: #b3554c;
  font-weight: 600;
  margin: 0;
}
details.danger-zone[open] summary {
  margin-bottom: 12px;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* "Formu bağla": three steps, code and FAQ */
.step-cards {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.step-cards li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.step-cards .step-number {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 650;
}
.step-cards h3 {
  margin: 2px 0 4px;
  font-size: 15px;
}
.step-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.faq-panel details {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.faq-panel details:last-of-type {
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.faq-panel summary {
  cursor: pointer;
  font-weight: 600;
  color: #22322b;
}
.faq-panel details p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 900px) {
  .step-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Platform settings: two columns of cards on wide screens */
#settings-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
#settings-sections .feature-panel {
  max-width: none;
  margin: 0;
}
.settings-save {
  max-width: none;
}
@media (max-width: 640px) {
  #settings-sections {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Phone field: country picker and number side by side */
.phone-field {
  display: flex;
  border: 1px solid #dbe3dd;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}
.phone-field:focus-within {
  outline: 2px solid #93b9ac;
  outline-offset: 1px;
}
.phone-field.invalid {
  border-color: #c2412d;
}
.phone-field select,
.phone-field input {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.phone-field select {
  flex: none;
  width: auto;
  max-width: 11rem;
  padding-right: 6px;
  border-right: 1px solid #dbe3dd;
  background: #f4f7f5;
  color: #22322b;
  font-variant-numeric: tabular-nums;
}
.phone-field select:disabled {
  opacity: 1;
  cursor: default;
  appearance: none;
  padding-right: 12px;
}
.phone-field input {
  flex: 1;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.phone-field input:focus,
.phone-field select:focus {
  outline: none;
}
.phone-hint,
.field-hint {
  display: block;
  margin-top: -3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.phone-hint.error,
.field-hint.error {
  color: #c2412d;
}

/* Integrations in the project form */
.integration-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px 12px;
  margin: 0 0 10px;
  background: #fbfcfb;
}
.integration-card legend {
  padding: 0 6px;
  font-weight: 600;
}
.integration-card .integration-body {
  display: none;
  gap: 10px;
  flex-direction: column;
  margin-top: 6px;
}
.integration-card.on {
  border-color: #b9d6c8;
  background: #fff;
}
.integration-card.on .integration-body {
  display: flex;
}
.integration-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.integration-row label {
  flex: 1;
  min-width: 200px;
}
#secret-value {
  max-height: 50vh;
  overflow: auto;
  white-space: pre-wrap;
}
.integration-connect {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.integration-connect .connect-status {
  font-size: 13px;
  color: var(--muted);
}
.integration-connect .connect-status a {
  color: var(--green);
}
.integration-manual {
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}
.integration-manual > summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
}
.integration-manual[open] {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Provider connect buttons, styled after each brand's own button */
.connect-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px 0 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition:
    box-shadow 0.15s,
    background-color 0.15s;
}
.connect-button img {
  width: 20px;
  height: 20px;
  flex: none;
}
.connect-button:hover:not(:disabled) {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.connect-button:focus-visible {
  outline: 2px solid #93b9ac;
  outline-offset: 2px;
}
.connect-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Slack's Add to Slack: white, light border, bold label. */
.connect-slack {
  background: #fff;
  color: #000;
  border-color: #ddd;
  font-weight: 600;
  font-size: 15px;
  padding-inline: 14px 18px;
  gap: 12px;
}
/* Google sign-in button rules: white, #747775 border, #1F1F1F text, 12px before the G. */
.connect-google {
  background: #fff;
  color: #1f1f1f;
  border-color: #747775;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  padding: 0 12px;
}
.connect-google:hover:not(:disabled) {
  background: #f8faff;
}
.connect-discord {
  background: #5865f2;
  color: #fff;
  font-weight: 600;
}
.connect-discord:hover:not(:disabled) {
  background: #4752c4;
}
.connect-notion {
  background: #fff;
  color: #191919;
  border-color: #d3d1cb;
  font-weight: 600;
}
/* Integration cards: logo, name, description and a switch */
/* Floated, the legend sits inside the card instead of on its border. */
.integration-card legend {
  float: left;
  width: 100%;
  padding: 0;
}
.integration-card .integration-body {
  clear: both;
}
.integration-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 4px 0;
}
.integration-head .integration-logo {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  flex: none;
}
.integration-title {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.25;
}
.integration-title strong {
  font-size: 15px;
}
.integration-title small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.integration-card:not(.on) .integration-head .integration-logo {
  filter: grayscale(1);
  opacity: 0.6;
}
input.switch {
  appearance: none;
  flex: none;
  width: 40px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfd8d3;
  position: relative;
  cursor: pointer;
  transition: background-color 0.15s;
}
input.switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
input.switch:checked {
  background: var(--green);
}
input.switch:checked::before {
  transform: translateX(18px);
}
input.switch:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
input.switch:focus-visible {
  outline: 2px solid #93b9ac;
  outline-offset: 2px;
}
/* Logos next to channel names */
.integration-logo {
  vertical-align: -3px;
}
.channel-badges .integration-logo {
  width: 14px;
  height: 14px;
}
.delivery-detail h3 .integration-logo,
.channel-cell .integration-logo {
  margin-right: 6px;
}
.integration-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.integration-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
}
/* Projects list */
.project-table tbody tr {
  cursor: pointer;
}
.project-table .link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--ink, #22322b);
  cursor: pointer;
  text-align: left;
}
.project-table .link-button:hover {
  color: var(--green);
  text-decoration: underline;
}
.project-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.project-table .row-arrow {
  color: var(--muted);
  font-size: 20px;
  width: 24px;
}
.channel-icons {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.channel-icon-mini {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--green);
}
.channel-icon-mini svg,
.channel-icon-mini img {
  width: 15px;
  height: 15px;
}
.channel-icon-mini.pending {
  border-color: #e6c36a;
  background: #fff8e6;
}
/* Project page */
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.detail-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.channel-panel {
  margin-bottom: 20px;
}
.channel-panel-head h2 {
  margin-bottom: 2px;
}
.channel-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.channel-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.channel-tile:hover:not(:disabled) {
  border-color: var(--green);
  box-shadow: 0 2px 8px rgba(6, 95, 70, 0.1);
  transform: translateY(-1px);
}
.channel-tile:disabled {
  cursor: default;
}
.tile-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #f2f5f3;
  color: var(--green);
}
.tile-logo svg,
.tile-logo img {
  width: 22px;
  height: 22px;
}
.tile-name {
  font-weight: 600;
  font-size: 14px;
}
.tile-status {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.tile-check {
  color: var(--green);
  font-weight: 700;
  margin-right: 4px;
}
.channel-tile.is-on {
  border-color: #9fcab5;
  background: #f4faf6;
}
.channel-tile.is-on .tile-status {
  color: var(--green);
}
.channel-tile.is-pending {
  border-color: #e6c36a;
  background: #fffaf0;
}
.channel-tile.is-pending .tile-status {
  color: #9a6b00;
}
.channel-tile.is-off .tile-logo img {
  filter: grayscale(1);
  opacity: 0.55;
}
.channel-tile.is-locked {
  opacity: 0.55;
}
.channel-tile.is-locked .tile-status::before {
  content: '🔒 ';
}
.detail-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 8px 0 16px;
  font-size: 14px;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-stats {
  display: flex;
  gap: 28px;
  margin: 8px 0 16px;
}
.detail-stats div {
  display: flex;
  flex-direction: column;
}
.detail-stats strong {
  font-size: 26px;
  line-height: 1.1;
}
.detail-stats span {
  font-size: 12px;
  color: var(--muted);
}
.project-detail .danger-zone {
  margin-top: 20px;
}
@media (max-width: 640px) {
  .project-table th:nth-child(5),
  .project-table td:nth-child(5) {
    display: none;
  }
  .channel-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.is-hidden {
  display: none !important;
}
/* Project page, second pass */
.status-toggle {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.detail-actions .button svg {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  font: inherit;
  color: inherit;
}
.kpi span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.kpi strong {
  font-size: 26px;
  line-height: 1.15;
}
.kpi small {
  font-size: 12px;
  color: var(--muted);
}
.kpi-action {
  cursor: pointer;
}
.kpi-action:hover {
  border-color: var(--green);
}
.kpi.alert {
  border-top-color: #c2412d;
}
.kpi.alert strong {
  color: #c2412d;
}
.project-steps {
  margin-bottom: 20px;
}
.project-steps ol {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.project-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.project-steps li .text-button {
  margin-left: auto;
}
.step-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.project-steps li.done {
  color: var(--muted);
}
.project-steps li.done .step-mark {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.channel-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.count-pill {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef5f0;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
.strip-label {
  margin: 18px 0 0;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.channel-strip {
  margin-top: 8px;
}
.channel-tile {
  position: relative;
}
.tile-hint {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  opacity: 0;
  transition: opacity 0.15s;
}
.channel-tile:hover .tile-hint,
.channel-tile:focus-visible .tile-hint {
  opacity: 1;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
}
.detail-side {
  display: grid;
  gap: 20px;
}
.detail-side .feature-panel,
.recent-panel {
  margin: 0;
  max-width: none;
}
.recent-panel .panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.recent-panel .panel-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.loading-block {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
.origin-chip {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f2f5f3;
  font-size: 13px;
}
.full-width {
  width: 100%;
  justify-content: center;
}
.side-label {
  margin: 18px 0 6px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.key-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.key-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.key-list strong {
  display: block;
  font-size: 14px;
}
.key-list small {
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 1100px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-steps li {
    flex-wrap: wrap;
  }
}
.recent-mini {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recent-mini li + li {
  border-top: 1px solid var(--border);
}
.recent-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 84px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 6px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.recent-item:hover {
  background: #f4f8f5;
}
.recent-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.recent-main strong,
.recent-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-main small {
  color: var(--muted);
  font-size: 12px;
}
.recent-channels {
  display: flex;
  gap: 4px;
}
.delivery-dot {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
}
.delivery-dot svg,
.delivery-dot img {
  width: 13px;
  height: 13px;
}
.delivery-dot.ok {
  border-color: #9fcab5;
  background: #eef7f1;
  color: var(--green);
}
.delivery-dot.bad {
  border-color: #e7a79c;
  background: #fdf0ee;
  color: #c2412d;
}
.delivery-dot.held {
  border-color: #e6c36a;
  background: #fff8e6;
  color: #9a6b00;
}
.recent-time {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.recent-empty {
  color: var(--muted);
  padding: 12px 4px;
}
@media (max-width: 640px) {
  .recent-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .recent-time {
    display: none;
  }
}
/* .panel gives a frame, not padding: the project page's own cards need their inner space. */
.channel-panel,
.project-steps,
.recent-panel {
  padding: 22px 24px;
}
.recent-panel .panel-heading {
  padding: 0 0 12px;
}
.recent-panel .recent-item {
  padding-inline: 8px;
  margin-inline: -8px;
  width: calc(100% + 16px);
}
@media (max-width: 640px) {
  .channel-panel,
  .project-steps,
  .recent-panel {
    padding: 18px 16px;
  }
}
/* Project settings: a wider dialog and integration cards with room to breathe */
#project-dialog {
  width: 700px;
}
.integration-card {
  padding: 14px 18px 16px;
  margin-bottom: 12px;
  border-radius: 12px;
}
.integration-card.on .integration-body {
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.integration-body > label:first-child,
.integration-manual > label:first-of-type,
.integration-manual > p:first-of-type {
  margin-top: 4px;
}
.integration-connect {
  min-height: 44px;
}
.integration-manual[open] {
  padding-top: 10px;
}
.integration-manual > summary {
  padding: 2px 0;
}
/* Dialogs: one shape everywhere. The dialog scrolls; its header and footer stay put. */
dialog {
  width: 600px;
  max-width: calc(100% - 32px);
  max-height: min(88vh, 900px);
  padding: 0 28px 24px;
  border: 0;
  border-radius: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow:
    0 0 0 1px rgba(12, 40, 30, 0.06),
    0 30px 80px rgba(12, 40, 30, 0.28);
}
dialog.wide-dialog {
  width: 760px;
}
dialog[open] {
  animation: dialog-in 0.18s ease-out;
}
dialog[open]::backdrop {
  animation: backdrop-in 0.18s ease-out;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}
@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}
.dialog-heading {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 -28px 18px;
  padding: 26px 28px 16px;
  /* The brand strip on top of every dialog. */
  background:
    linear-gradient(90deg, #065f46, #1c8a67 60%, #dbef8b) top / 100% 4px no-repeat,
    #fff;
  transition: box-shadow 0.15s;
}
dialog.is-scrolled .dialog-heading {
  box-shadow:
    0 1px 0 var(--border),
    0 10px 18px -14px rgba(12, 40, 30, 0.35);
}
.dialog-heading h2 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.2;
}
.dialog-heading .eyebrow {
  display: block;
  color: var(--green);
  font-size: 11px;
  letter-spacing: 1.2px;
}
.dialog-heading .close-dialog {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 20px;
  line-height: 1;
  color: #4f5f58;
  cursor: pointer;
}
.dialog-heading .close-dialog:hover {
  background: #eef4ef;
  color: #22322b;
}
.dialog-footer {
  position: sticky;
  /* The dialog's bottom padding: the bar sits on the very edge. */
  bottom: -24px;
  z-index: 3;
  margin: 24px -28px -24px;
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
}
@media (max-width: 640px) {
  /* A sheet from the bottom of the screen. */
  dialog,
  dialog.wide-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    margin: auto 0 0;
    padding: 0 18px 18px;
    border-radius: 18px 18px 0 0;
  }
  dialog[open] {
    animation-name: sheet-in;
  }
  @keyframes sheet-in {
    from {
      transform: translateY(24px);
      opacity: 0;
    }
  }
  .dialog-heading {
    margin: 0 -18px 14px;
    padding: 22px 18px 14px;
  }
  .dialog-heading::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 36px;
    height: 4px;
    margin-left: -18px;
    border-radius: 2px;
    background: #d5ddd8;
  }
  .dialog-footer {
    bottom: -18px;
    margin: 20px -18px -18px;
    padding: 12px 18px;
  }
  .dialog-footer .button {
    flex: 1;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog[open],
  dialog[open]::backdrop {
    animation: none;
  }
}
/* Sender addresses */
.sender-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  max-width: none;
}
.sender-intro p {
  margin: 4px 0 0;
  max-width: 640px;
}
.sender-intro .button {
  flex: none;
}
.sender-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.sender-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.sender-choice:hover:not(:disabled) {
  border-color: var(--green);
  box-shadow: 0 4px 14px rgba(6, 95, 70, 0.1);
}
.sender-choice:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.sender-choice strong {
  font-size: 16px;
}
.sender-choice span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.sender-choice .choice-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lime, #dbef8b);
  color: #22322b;
  font-size: 11px;
  font-weight: 600;
}
.sender-list {
  display: grid;
  gap: 12px;
}
.sender-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}
.sender-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef5f0;
  color: var(--green);
}
.sender-icon svg {
  width: 20px;
  height: 20px;
}
.sender-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sender-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sender-main small {
  color: var(--muted);
}
.sender-error {
  margin: 6px 0 0;
  color: #b65545;
  font-size: 12px;
}
.sender-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dns-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  font-size: 13px;
  color: var(--muted);
}
.dns-checked {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.button[aria-busy='true'] {
  cursor: progress;
  opacity: 0.75;
}
.dns-progress {
  flex: none;
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: #e6ece8;
  overflow: hidden;
}
.dns-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width 0.3s;
}
.dns-bar[data-found='1'][data-total='5'] {
  width: 20%;
}
.dns-bar[data-found='2'][data-total='5'] {
  width: 40%;
}
.dns-bar[data-found='3'][data-total='5'] {
  width: 60%;
}
.dns-bar[data-found='4'][data-total='5'] {
  width: 80%;
}
.dns-bar[data-found='5'][data-total='5'] {
  width: 100%;
}
.dns-table td {
  vertical-align: top;
}
.dns-table small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.dns-type {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: #eef5f0;
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
}
.copy-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.copy-cell code {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.copy-cell svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.copy-cell:hover {
  border-color: var(--border);
  background: #f6f9f7;
}
.dns-check {
  text-align: center;
  font-weight: 700;
}
.dns-check .ok {
  color: var(--green);
}
.dns-check .wait {
  color: var(--muted);
}
.dns-table tr.found {
  background: #f4faf6;
}
.dns-help {
  margin-top: 12px;
  font-size: 13px;
}
.dns-help summary {
  cursor: pointer;
  color: var(--green);
}
.dns-help ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.sender-done {
  text-align: center;
  padding: 8px 0 4px;
}
.done-mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}
.sender-done h3 {
  margin: 12px 0 6px;
}
.sender-done p {
  color: var(--muted);
}
#sender-smtp-form .notice {
  margin: 4px 0 0;
  font-size: 13px;
}
#reply-sender-preview {
  color: var(--green);
}
@media (max-width: 760px) {
  .sender-intro {
    flex-direction: column;
  }
  .sender-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .sender-card .badge,
  .sender-actions {
    grid-column: 2;
  }
}
