:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #263238;
  background: #fafcfd;
  font-synthesis: none;
  --green: #258c49;
  --action: #41535e;
  --border: #e1e7ea;
  --muted: #65747d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  color: #263238;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.site-header {
  background: white;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1192px;
  margin: auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  gap: 20px;
}
.brand {
  text-decoration: none;
  color: #263238;
  font-weight: 650;
  font-size: 23px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.6px;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
}
nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}
nav a {
  color: #50606b;
  text-decoration: none;
}
nav a:hover {
  text-decoration: underline;
}
.account-menu {
  position: relative;
}
.account-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.account-menu[open] summary {
  background: #edf2f4;
}
.account-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: 260px;
  max-width: calc(100vw - 40px);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 24px #26323814;
}
#signed-in-email {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 550;
}
.account-panel select {
  margin-top: 7px;
}
.account-panel #logout {
  display: block;
  width: 100%;
  margin-top: 12px;
  text-align: left;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -1.3px;
  margin-bottom: 12px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
  font-weight: 650;
  margin-bottom: 12px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.eyebrow {
  display: block;
  color: #667d8c;
  font-size: 11px;
  letter-spacing: 1.7px;
  font-weight: 650;
  margin-bottom: 15px;
}
.lead {
  font-size: 17px;
  color: #66747d;
  line-height: 1.65;
}
.primary,
.secondary,
.icon-button {
  border-radius: 6px;
  padding: 11px 16px;
  line-height: 1.3;
  border: 1px solid transparent;
  font-weight: 550;
  font-size: 14px;
  white-space: nowrap;
}
.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 2px 3px #17382010;
}
.primary:hover {
  background: #19793a;
}
.secondary {
  background: white;
  color: var(--action);
  border-color: #ccd7dd;
}
.secondary:hover {
  background: #f1f6f8;
  border-color: #9cabb3;
}
.compact {
  padding: 7px 10px;
  font-size: 12px;
}
.secondary.danger {
  color: #b42318;
  border-color: #e8b9b5;
  background: #fff;
}
.secondary.danger:hover {
  background: #fff1f0;
  border-color: #b42318;
}
.text-button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  color: var(--action);
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 550;
}
.text-button:hover {
  color: #263238;
  background: #edf2f4;
}
.text-button:active {
  background: #e1e8ec;
}
.full {
  width: 100%;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  flex-shrink: 0;
  background: #f4f7f8;
  color: #65747d;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin: 18px 0 7px;
}
input,
select {
  border: 1px solid #ccd7dd;
  border-radius: 5px;
  background: white;
  padding: 10px 12px;
  color: #263238;
  max-width: 100%;
  width: 100%;
  font-size: 14px;
}
input::placeholder {
  color: #8c999f;
}
input[type='color'] {
  padding: 4px;
  height: 41px;
}
input[type='checkbox'] {
  width: auto;
  accent-color: var(--green);
}
.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  padding: 30px;
  box-shadow: 0 6px 28px #28475c06;
}
.signin {
  width: min(460px, calc(100% - 40px));
  margin: 64px auto 40px;
  text-align: center;
}
.signin h1 {
  font-size: 43px;
}
.login-card {
  margin: 28px 0 24px;
  text-align: left;
}
.login-card .primary {
  margin-top: 18px;
}
.login-card h2 {
  font-size: 20px;
}
.message {
  font-size: 13px;
  line-height: 1.55;
  color: #9c492e;
  margin: 12px 0;
}
.message:empty {
  display: none;
}
.message.success {
  color: #237343;
}
.dashboard {
  max-width: 1192px;
  margin: auto;
  padding: 44px 28px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 30px 0 15px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 400;
}
.section-heading select {
  width: auto;
  font-size: 12px;
  padding: 7px 11px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.metric {
  position: relative;
  padding: 22px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.metric > span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -1px;
  margin: 10px 0 7px;
}
.metric small {
  font-size: 11px;
  color: #7b888f;
}
.tooltip {
  position: absolute;
  z-index: 2;
  padding: 10px 12px;
  border-radius: 6px;
  background: #263238;
  color: white;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: 0 4px 16px #26323826;
}
.info-tooltip {
  display: inline-block;
}
.info-tooltip button {
  padding: 0 3px;
  border: 0;
  background: none;
  color: inherit;
  cursor: help;
}
.info-tooltip .tooltip {
  top: 44px;
  right: 12px;
  width: min(290px, calc(100vw - 64px));
}
.chart-card {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 24px 10px;
  background: white;
}
.chart {
  position: relative;
  height: 164px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.chart-tooltip {
  top: 0;
  pointer-events: none;
  white-space: nowrap;
}
.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-empty {
  text-align: center;
  color: #84919a;
  font-size: 13px;
}
.chart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eef2f4;
  margin-top: 12px;
  padding-top: 8px;
  font-size: 11px;
  color: #84919a;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.toolbar label {
  margin: 0;
}
.code-filters {
  margin: 0 0 18px;
  font-size: 13px;
}
.code-filters summary {
  color: var(--muted);
  cursor: pointer;
}
.code-filters .two-columns {
  max-width: 520px;
}
.code-filters input {
  margin-top: 7px;
}
.code-filters .text-button {
  color: var(--muted);
  font-size: 12px;
}
.search {
  flex: 1;
}
.search input {
  padding-left: 14px;
}
.archive-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  white-space: nowrap;
}
.code-list {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.code-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 19px 21px;
  border-bottom: 1px solid #edf1f3;
}
.code-row:last-child {
  border-bottom: 0;
}
.code-thumb {
  width: 56px;
  height: 56px;
  border: 1px solid #eef2f3;
  border-radius: 4px;
  padding: 5px;
  object-fit: contain;
  background: white;
}
.code-meta {
  flex: 1;
  min-width: 0;
}
.code-name {
  display: inline;
  color: #263238;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  margin-right: 10px;
  border: 0;
  padding: 0;
  background: none;
}
.code-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.destination {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #7c8991;
  font-size: 12px;
  margin: 6px 0;
}
.code-sub {
  font-size: 10px;
  color: #8b969d;
}
.pill {
  display: inline-block;
  font-size: 10px;
  border-radius: 20px;
  padding: 3px 8px;
  background: #eaf6ee;
  color: #34854d;
  font-weight: 550;
}
.pill.paused {
  background: #fff4df;
  color: #9b6c21;
}
.pill.archived {
  background: #eef0f4;
  color: #687685;
}
.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.empty {
  padding: 48px 24px;
  text-align: center;
}
.empty-icon {
  margin: 0 auto 19px;
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  background: #edf5f9;
  border: 1px solid #d8e6ee;
  border-radius: 12px;
  font-size: 32px;
  color: #6c8d9f;
}
.empty p {
  color: var(--muted);
  font-size: 14px;
}
.empty .primary {
  margin-top: 4px;
}
.load-more {
  display: block;
  margin: 20px auto;
}
.footnote {
  font-size: 11px;
  color: #87939a;
  margin-top: 25px;
  line-height: 1.7;
}
dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(900px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  box-shadow: -12px 0 48px #1233;
  color: #263238;
  background: white;
  overflow: hidden;
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
dialog::backdrop {
  background: #172f3e40;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 20px;
  flex-shrink: 0;
}
.dialog-header h2 {
  font-size: 23px;
  margin: 0;
  overflow-wrap: anywhere;
}
.tabs {
  display: flex;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 0;
  font-size: 13px;
  background: none;
  color: var(--muted);
}
.tabs button[aria-selected='true'] {
  color: var(--green);
  border-bottom-color: var(--green);
}
.drawer-body {
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.drawer-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-footer .message {
  margin: 0;
  flex: 1;
}
.drawer-footer .primary {
  min-width: 160px;
  margin-left: auto;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 5px 24px 24px;
}
.editor-grid label:first-child {
  margin-top: 16px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.field-note {
  font-size: 11px;
  color: #839098;
  margin: 7px 0 12px;
}
.appearance {
  border-top: 1px solid #edf0f2;
  padding: 16px 0 4px;
  margin-top: 17px;
}
.appearance summary {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #566973;
}
.appearance label {
  font-size: 12px;
}
.advanced-appearance {
  margin-top: 20px;
}
.preview-panel {
  padding: 26px 22px;
  background: #f4f8fa;
  border: 1px solid #e8eef1;
  border-radius: 8px;
  margin-top: 16px;
  align-self: start;
}
.preview-wrap {
  background: white;
  min-height: 252px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 16px;
  border: 1px solid #e7ecef;
}
.preview-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-width: 256px;
}
.preview-panel > #preview-note {
  text-align: center;
  font-size: 11px;
  margin: 13px 0 25px;
}
.preview-panel label {
  font-size: 11px;
}
.downloads {
  gap: 9px;
  margin: 14px 0;
}
.lifecycle {
  border-top: 1px solid #dfe8ec;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 15px;
  margin-top: 25px;
}
.lifecycle button {
  font-size: 12px;
  padding: 8px 10px;
}
#code-activity {
  padding: 0 30px 30px;
}
#code-activity .chart {
  margin: 28px 0 10px;
}
#code-activity .section-heading {
  margin-top: 20px;
}
.breakdowns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.breakdown {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 18px;
}
.breakdown h3 {
  margin: 0 0 15px;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  padding: 7px 0;
  border-top: 1px solid #f0f3f4;
}
.breakdown-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #243b32;
  color: white;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 13px;
  box-shadow: 0 4px 20px #0002;
  z-index: 20;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.docs {
  max-width: 850px;
  margin: 45px auto;
  padding: 0 25px;
}
.docs h2 {
  margin-top: 36px;
}
.docs pre {
  overflow: auto;
  background: #edf3f7;
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.7;
}
.docs code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.docs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.docs th,
.docs td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 720px) {
  .header-inner {
    padding: 16px 20px;
    min-height: 68px;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 27px;
    height: 27px;
  }
  nav {
    gap: 15px;
    font-size: 12px;
  }
  nav a:nth-child(2) {
    display: none;
  }
  .account-label {
    display: none;
  }
  .dashboard {
    padding: 28px 18px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading .primary {
    font-size: 12px;
    padding: 10px;
  }
  h1 {
    font-size: 30px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.1px;
  }
  .metrics {
    gap: 8px;
  }
  .metric {
    padding: 15px 12px;
  }
  .metric > span {
    font-size: 10px;
  }
  .metric strong {
    font-size: 25px;
  }
  .metric small {
    font-size: 9px;
  }
  .chart-card {
    padding: 18px 14px 8px;
  }
  .chart {
    height: 130px;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 9px;
  }
  .search {
    flex-basis: 100%;
  }
  .toolbar select {
    font-size: 12px;
  }
  .code-row {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 12px;
  }
  .code-thumb {
    width: 45px;
    height: 45px;
  }
  .code-name {
    font-size: 13px;
  }
  .row-actions {
    grid-column: 2;
    gap: 8px;
  }
  .row-actions button {
    font-size: 11px;
  }
  .code-sub {
    display: none;
  }
  .destination {
    max-width: none;
  }
  .pill {
    font-size: 9px;
  }
  .signin {
    margin-top: 40px;
  }
  .signin h1 {
    font-size: 36px;
  }
  .lead {
    font-size: 15px;
  }
  dialog {
    width: 100vw;
    border: 0;
  }
  .dialog-header {
    padding: 20px;
  }
  .tabs {
    padding: 0 20px;
    gap: 18px;
  }
  .editor-grid {
    display: flex;
    flex-direction: column;
    padding: 0 20px 20px;
    gap: 15px;
  }
  .preview-panel {
    order: -1;
    padding: 15px;
    width: 100%;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px 18px;
  }
  .preview-wrap {
    min-height: 120px;
    padding: 8px;
  }
  .preview-panel > #preview-note {
    margin: 0;
    align-self: center;
  }
  .preview-panel > #saved-actions {
    grid-column: 1/-1;
  }
  .preview-panel .lifecycle {
    margin-top: 10px;
  }
  .preview-panel .downloads {
    max-width: 300px;
  }
  .preview-panel .field-note {
    margin-bottom: 0;
  }
  #code-activity {
    padding: 0 20px 20px;
  }
  .breakdowns {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .docs table {
    font-size: 11px;
  }
  .docs td,
  .docs th {
    padding: 9px 5px;
  }
}
