:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #303030;
  background: #f1f1f1;
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 14px;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:hover {
  filter: brightness(0.96);
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #005bd3;
  outline-offset: 3px;
}
button.primary {
  color: white;
  background: #303030;
  box-shadow:
    inset 0 1px 0 #ffffff35,
    0 1px 2px #0003;
  border: 1px solid #202020;
}
button.secondary {
  background: white;
  box-shadow: 0 1px 2px #0002;
  border: 1px solid #ccc;
}
.app-header {
  height: 68px;
  padding: 0 32px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}
.brand {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1rem;
}
.brand strong {
  font-weight: 600;
}
.brand-icon {
  display: grid;
  place-items: center;
  background: #d5f5e3;
  color: #145b38;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-weight: 700;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: #e3e3e3;
  color: #4a4a4a;
  padding: 4px 8px;
  font-size: 0.8125rem;
  white-space: nowrap;
  font-weight: 500;
}
.app-header .badge {
  background: #363636;
  color: #ececec;
}
.badge.active {
  background: #aff0ca;
  color: #0c5132;
}
.badge.scheduled {
  background: #d9e9ff;
  color: #004299;
}
.badge.expired {
  background: #eee;
  color: #666;
}
.badge.draft {
  background: #fff0bf;
  color: #6c4c00;
}
main {
  max-width: 1168px;
  margin: 0 auto;
  padding: 28px 28px 40px;
}
h1 {
  font-size: 1.5rem;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
  font-weight: 650;
}
h2 {
  font-size: 1rem;
  margin: 0;
  font-weight: 650;
}
h3 {
  font-size: 1rem;
  margin: 22px 0 6px;
  overflow-wrap: anywhere;
}
p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 8px 0 26px;
}
.page-heading p {
  color: #616161;
}
.card {
  background: white;
  border-radius: 12px;
  box-shadow:
    0 1px 0 #0002,
    0 0 0 1px #0000000d;
  overflow: hidden;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px;
}
.card-heading.flush {
  padding: 0;
}
.padded {
  padding: 22px;
}
.muted {
  color: #616161;
  font-size: 0.875rem;
  font-weight: 400;
}
.notice {
  padding: 14px 18px;
  border-radius: 10px;
  background: #eaf4ff;
  border: 1px solid #c4dafa;
  margin-bottom: 22px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.notice.error {
  background: #fff0ee;
  border-color: #f4beb5;
  color: #8e1f0b;
}
.notice.success {
  background: #e7f8ee;
  border-color: #b5dfc5;
  color: #165b37;
}
.empty {
  text-align: center;
  max-width: 470px;
  margin: 0 auto;
  padding: 50px 24px 62px;
}
.empty h2 {
  font-size: 1.125rem;
  margin: 20px 0 10px;
}
.empty p {
  color: #616161;
  margin-bottom: 24px;
}
.empty-icon {
  display: grid;
  place-items: center;
  margin: auto;
  width: 62px;
  height: 62px;
  background: #e6f1eb;
  border: 1px solid #d0e3d8;
  color: #32714f;
  border-radius: 16px;
  font-size: 1.75rem;
  font-weight: 600;
  transform: rotate(-8deg);
}
.footer-note {
  font-size: 0.8125rem;
  color: #616161;
  margin: 20px 0;
  text-align: center;
  line-height: 1.6;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}
th {
  background: #f7f7f7;
  color: #616161;
  font-size: 0.8125rem;
  font-weight: 550;
  padding: 12px 20px;
  border-top: 1px solid #eee;
}
td {
  padding: 18px 20px;
  border-top: 1px solid #ebebeb;
  vertical-align: middle;
}
td .name {
  font-size: 0.8125rem;
  color: #616161;
  display: block;
  margin-top: 5px;
}
.code-button {
  padding: 0;
  min-height: 24px;
  background: none;
  color: #005bd3;
  text-align: left;
  overflow-wrap: anywhere;
}
.back {
  color: #616161;
  background: none;
  padding: 0;
  margin-bottom: 16px;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}
.editor-main,
aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
label {
  display: block;
  font-size: 0.875rem;
  margin: 18px 0 7px;
}
input:not([type="checkbox"]) {
  width: 100%;
  min-height: 38px;
  border: 1px solid #8a8a8a;
  border-radius: 7px;
  padding: 8px 11px;
  background: white;
  color: #303030;
  font-size: 0.875rem;
}
input::placeholder {
  color: #858585;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #303030;
  flex-shrink: 0;
}
.help {
  color: #616161;
  font-size: 0.8125rem;
  margin-top: 8px;
  line-height: 1.5;
}
.section-description {
  color: #616161;
  margin: 14px 0 18px;
}
.tier-labels,
.tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr 32px;
  gap: 12px;
}
.tier-labels {
  font-size: 0.8125rem;
  margin-bottom: 8px;
}
.tier-row {
  margin-bottom: 12px;
}
.remove-tier {
  padding: 0;
  color: #616161;
  background: #f1f1f1;
  min-width: 32px;
  font-size: 1.2rem;
}
.affix {
  position: relative;
}
.affix > span {
  position: absolute;
  top: 10px;
  left: 11px;
  color: #616161;
  font-size: 0.875rem;
  pointer-events: none;
}
.affix input:not([type="checkbox"]) {
  padding-left: 28px;
}
.affix.suffix > span {
  left: auto;
  right: 12px;
}
.affix.suffix input:not([type="checkbox"]) {
  padding-left: 11px;
  padding-right: 28px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
.summary-tiers {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  font-size: 0.875rem;
}
.summary-tiers li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.summary-tiers strong {
  font-weight: 650;
  white-space: nowrap;
}
hr {
  height: 1px;
  background: #e8e8e8;
  border: 0;
  margin: 20px 0;
}
.facts {
  font-size: 0.8125rem;
  color: #616161;
  padding-left: 18px;
  line-height: 1.6;
  margin: 0;
}
.facts li + li {
  margin-top: 7px;
}
.preview-result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: #f5f5f5;
  font-size: 0.875rem;
  line-height: 1.6;
}
.preview-result strong {
  display: block;
  font-size: 1.3rem;
  letter-spacing: -0.4px;
}
.save-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #d5d5d5;
  margin-top: 26px;
  padding: 20px 0;
  gap: 16px;
}
.save-bar > div {
  display: flex;
  gap: 10px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-grid aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .editor-grid aside .footer-note {
    grid-column: 1/-1;
    margin: 0;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .app-header {
    padding: 0 20px;
  }
  main {
    padding: 24px 18px;
  }
  .page-heading {
    align-items: flex-start;
  }
}
@media (max-width: 560px) {
  .page-heading {
    flex-direction: column;
    gap: 14px;
  }
  .page-heading .primary {
    width: 100%;
  }
  .editor-grid aside {
    display: flex;
    align-items: stretch;
  }
  .padded {
    padding: 18px;
  }
  .tier-labels,
  .tier-row {
    gap: 8px;
    grid-template-columns: 1fr 1fr 30px;
  }
  .save-bar .muted {
    font-size: 0.8125rem;
  }
  .app-header {
    height: 60px;
  }
  .empty {
    padding: 36px 20px;
  }
  .save-bar {
    position: sticky;
    bottom: 0;
    background: #f1f1f1;
    z-index: 2;
    margin-bottom: -20px;
  }
}

.notice.warning {
  background: #fff5d6;
  border-color: #ddc786;
  color: #5a430c;
}
.notice.warning h2 {
  margin-bottom: 8px;
}
.notice.warning ul {
  margin-bottom: 0;
}
