:root {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: #17242b;
  background: #f4f7f7;
  font-synthesis: none;
  --ink: #17242b;
  --quiet: #596a70;
  --line: #dbe4e5;
  --accent: #006e63;
  --accent-soft: #e1f3ed;
  --danger: #9f372b;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
button, input, select { font: inherit; }
button, .button {
  padding: 8px 13px;
  border: 1px solid #c7d5d7;
  background: #fff;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button:hover, .button:hover { background: #f0f6f5; }
button:disabled { cursor: default; opacity: .55; }
.primary { color: white; background: var(--accent); border-color: var(--accent); }
.primary:hover { background: #005b51; }
.danger { color: var(--danger); }
:focus-visible { outline: 3px solid #29a890; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -.055em; line-height: 1; font-weight: 750; }
h2 { font-size: 1.14rem; letter-spacing: -.025em; }
h3 { font-size: 1rem; }
small, .muted { color: var(--quiet); }
p { line-height: 1.55; }
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: #10272b;
  color: #d4e2e0;
  padding: 25px 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { color: #fff; display: flex; align-items: center; gap: 10px; margin: 0 9px; font-size: 1.14rem; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: #a7edcf;
  color: #153b34;
  font-weight: 800;
}
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { text-decoration: none; padding: 11px 12px; border-radius: 8px; display: flex; align-items: center; gap: 9px; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { color: #fff; background: #254448; }
.nav-icon { width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; color: #a7edcf; }
.icon-users { border-radius: 50%; }
.icon-settings { transform: rotate(45deg); }
.sidebar-bottom { margin-top: auto; display: grid; padding: 8px; gap: 14px; font-size: .84rem; }
.sidebar-bottom a { text-decoration: none; }
.sidebar-bottom a:hover { text-decoration: underline; }
.workspace { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 65px;
  padding: 10px clamp(15px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: .9rem;
  font-weight: 650;
}
.account { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
#content { width: 100%; max-width: 1560px; margin-inline: auto; padding: 36px clamp(15px, 3vw, 42px) 44px; }
.heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 15px; margin-bottom: 28px; }
.heading p { margin-top: 8px; color: var(--quiet); }
#content > section + section { margin-top: 27px; }
#content > section > h2 { margin-bottom: 12px; }
.service-grid, .provider-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 214px), 1fr)); }
.provider-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); }
.service-card, .provider-card, .panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
  background: #fff;
  min-width: 0;
}
.service-card { text-decoration: none; }
.service-card:hover { border-color: #74ac9f; }
.service-card h3 { margin: 12px 0 3px; }
.service-card h3 span { color: var(--accent); }
.service-card p { color: var(--quiet); font-size: .85rem; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.service-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 750;
}
.badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border-radius: 20px;
  padding: 4px 8px;
  color: #45565d;
  background: #edf1f2;
  font-size: .73rem;
  font-weight: 650;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.good { background: var(--accent-soft); color: #12624f; }
.badge.bad { background: #faece8; color: var(--danger); }
.category, .balance small, .check-time { color: var(--quiet); font-size: .78rem; }
.category { display: block; margin-bottom: 4px; }
.provider-card h3 a { text-decoration: none; }
.provider-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.balance { display: grid; gap: 3px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.balance strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.check-time { margin-top: 5px; }
.provider-error { color: var(--danger); font-size: .8rem; margin-top: 8px; overflow-wrap: anywhere; }
.footer { margin-top: auto; padding: 14px clamp(15px, 3vw, 42px); border-top: 1px solid var(--line); color: var(--quiet); font-size: .8rem; display: flex; gap: 8px; }
.signin { min-height: 100dvh; display: grid; place-items: center; padding: 18px; }
.signin-panel { width: min(100%, 420px); background: white; border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 6vw, 35px); }
.signin-panel h1 { margin: 18px 0 9px; }
.signin-panel p { color: var(--quiet); }
.signin-panel .button { margin-top: 18px; }
.notice { padding: 10px 13px; background: var(--accent-soft); color: #125544; border-radius: 7px; margin: 12px 0; font-size: .9rem; }
.notice.error { background: #faece8; color: var(--danger); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { color: var(--quiet); font-size: .8rem; }
tr:last-child td { border-bottom: 0; }
td:last-child .actions { justify-content: flex-end; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
form > .actions, .panel > .actions { margin-top: 15px; }
.editor { margin-top: 16px; }
.fields, .permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.fields label { display: grid; gap: 5px; font-size: .85rem; font-weight: 650; min-width: 0; }
.fields input, .fields select { min-width: 0; width: 100%; border: 1px solid #c7d5d7; border-radius: 7px; padding: 9px; background: #fff; color: var(--ink); }
.check { display: flex; gap: 8px; align-items: center; min-height: 26px; font-size: .9rem; }
.check input { accent-color: var(--accent); width: 15px; height: 15px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; }
legend { font-weight: 650; }
.settings-layout { display: grid; grid-template-columns: minmax(155px, 210px) minmax(0, 1fr); gap: 14px; align-items: start; }
.integration-menu { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 12px 8px; }
.integration-menu section + section { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.integration-menu h2 { color: var(--quiet); font-size: .8rem; margin: 0 8px 6px; }
.integration-menu a { display: block; padding: 7px 8px; border-radius: 7px; text-decoration: none; font-size: .9rem; }
.integration-menu a:hover, .integration-menu a[aria-current] { background: var(--accent-soft); color: #165847; }
.panel-heading { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.panel-heading p { color: var(--quiet); margin-top: 4px; }
.metrics { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 0; border-block: 1px solid var(--line); }
.metrics dt { font-size: .8rem; color: var(--quiet); }
.metrics dd { margin: 4px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.subsection { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.account-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.account-row p { font-size: .82rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 800px) {
  .layout { display: block; }
  .sidebar { height: auto; position: static; gap: 10px; padding: 10px; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .sidebar nav a { padding: 8px; }
  #content { padding-top: 25px; }
}
@media (max-width: 560px) {
  .settings-layout, .fields, .permission-grid { grid-template-columns: 1fr; }
  .integration-menu { display: flex; flex-wrap: wrap; gap: 8px 12px; }
  .integration-menu section + section { margin: 0; border: 0; padding: 0; }
}

.icon-changes {
  border-width: 1.5px 0;
  border-radius: 0;
  height: 8px;
}
.release-trigger {
  width: 100%;
  justify-content: space-between;
  gap: 8px;
  background: #193337;
  color: #fff;
  border-color: #426064;
  text-align: left;
}
.release-trigger:hover { background: #254448; }
.release-version {
  color: #a7edcf;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
}
.release-popover {
  position: fixed;
  inset: auto auto 16px 232px;
  margin: 0;
  padding: 0;
  width: min(440px, calc(100% - 248px));
  max-height: min(520px, calc(100dvh - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: white;
  box-shadow: 0 8px 30px #10272b36;
  font-size: .88rem;
}
.release-popover:popover-open { display: flex; flex-direction: column; }
.release-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.release-popover-header button { padding: 2px 9px; font-size: 1.15rem; }
.release-history {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-inline: 16px;
}
.release-history:focus-visible { outline-offset: -3px; }
.all-changes { padding: 12px 16px; color: var(--accent); border-top: 1px solid var(--line); }
.all-changes:hover { text-decoration: underline; }
.release-entry { padding-block: 12px; }
.release-entry + .release-entry { border-top: 1px solid var(--line); }
.release-entry-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.release-entry-heading time { color: var(--quiet); flex-shrink: 0; }
.release-entry ul { margin: 6px 0 0; padding-left: 20px; line-height: 1.5; }
.release-entry li + li { margin-top: 4px; }
.changes-filter { margin-bottom: 18px; }
.changes-filter label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 9px; font-weight: 650; }
.changes-filter select { padding: 8px; color: var(--ink); background: #fff; border: 1px solid #c7d5d7; border-radius: 7px; }
.changes-list { display: grid; max-width: 850px; gap: 18px; }
.changes-day h2 { margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.changes-entries { padding-block: 0; }
@media (max-width: 800px) {
  .sidebar-bottom { display: block; padding: 0 8px 3px; }
  .sidebar-status { display: none; }
  .release-trigger { width: auto; }
  .release-popover { inset: auto 12px 12px; width: auto; max-width: 440px; }
}
