:root {
  font-family:
    Inter,
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #252c28;
  background: #f5f5f0;
  font-synthesis: none;
  --green: #245b44;
  --muted: #737a72;
  --line: #e5e7df;
  --sidebar: 222px;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button,
a,
input,
textarea,
select,
summary {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #8cae82;
}
input:focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: #658570;
  box-shadow: 0 0 0 3px #e6eee6;
}
input,
textarea,
select {
  color: #252c28;
}
input::placeholder,
textarea::placeholder {
  color: #9a9e96;
}
textarea {
  resize: vertical;
  min-height: 85px;
  line-height: 1.85;
}
.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;
}
.skip-link {
  position: fixed;
  top: -200px;
  left: 16px;
  padding: 10px 20px;
  background: #fff;
  z-index: 100;
}
.skip-link:focus {
  top: 16px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: #202a25;
  color: #e0e7de;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 33px;
  font-weight: 650;
  letter-spacing: -1.8px;
  padding: 0 8px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: #d8e8b9;
  color: #26382c;
  width: 34px;
  height: 34px;
  font-size: 26px;
  border-radius: 9px;
  letter-spacing: -2px;
  line-height: 1;
}
.brand-dot {
  color: #b6d28c;
}
.workspace-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a6b3a7;
  margin: 44px 12px 15px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #bac5bb;
  border-radius: 7px;
  padding: 11px 13px;
  margin: 4px 0;
  font-size: 13px;
  transition:
    background 0.18s,
    color 0.18s;
}
.nav-link:hover {
  background: #303c33;
  color: white;
}
.nav-link.active {
  background: #394839;
  color: #e3efce;
  font-weight: 600;
}
.nav-icon {
  font-size: 20px;
  line-height: 1;
  width: 18px;
  text-align: center;
  font-weight: 400;
}
.nav-arrow {
  margin-left: auto;
  color: #b6d28c;
}
.sidebar-note {
  margin: auto 12px 50px;
  padding-top: 80px;
}
.note-symbol {
  font-size: 36px;
  color: #bad58e;
  line-height: 1;
}
.sidebar-note p {
  font-size: 15px;
  line-height: 2;
  letter-spacing: 1px;
  color: #dee5d8;
}
.sidebar-note > span:last-child {
  font-size: 10px;
  color: #a5b0a6;
  letter-spacing: 1px;
}
.sidebar-footer {
  border-top: 1px solid #39443b;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 8px;
  font-size: 11px;
}
.avatar {
  width: 30px;
  height: 30px;
  border: 1px solid #59664f;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #cedbb9;
}
.sidebar-footer small {
  display: block;
  font-size: 10px;
  color: #9ba99c;
  letter-spacing: 0.3px;
}
.app-shell {
  margin-left: var(--sidebar);
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafaf6;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: #7d847b;
}
.breadcrumb strong {
  color: #30392e;
  font-weight: 500;
}
.breadcrumb > span {
  color: #c0c6b9;
}
.connection-state {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #6d766b;
}
.state-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a5aaa0;
}
.connection-state.connected .state-dot {
  background: #4b7c4c;
  box-shadow: 0 0 0 3px #e7eddf;
}
main {
  max-width: 1430px;
  margin: 0 auto;
  padding: 42px 44px 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 2.4px;
  color: #63805d;
  font-weight: 650;
}
h1 {
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 650;
  letter-spacing: -0.7px;
  line-height: 1.5;
  margin: 0 0 9px;
}
.page-description {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.text-link {
  font-size: 12px;
  color: #3e6549;
  text-decoration: none;
  white-space: nowrap;
}
.text-link span {
  margin-left: 14px;
}
.connection-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: #fcfcf9;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.connection-intro {
  display: flex;
  align-items: center;
  gap: 13px;
}
.connection-icon {
  background: #eaf0e0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  font-size: 27px;
  color: #587147;
}
.connection-intro h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
}
.connection-intro p {
  margin: 3px 0 0;
  font-size: 10px;
  color: var(--muted);
}
.connection-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.connection-controls input {
  width: 180px;
  font-size: 11px;
  margin: 0;
  background: #fff;
  height: 39px;
}
.button {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 15px;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 39px;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
  line-height: 1.6;
}
.button:active:not(:disabled) {
  transform: translateY(1px);
}
.button-dark {
  background: #28362d;
  color: #fff;
}
.button-dark:hover {
  background: #3d5143;
}
.button-outline {
  background: #fff;
  border-color: #d9ded3;
  color: #4c594b;
}
.button-outline:hover {
  background: #f4f7ef;
  border-color: #b3c0a7;
}
.button-primary {
  background: var(--green);
  color: white;
}
.button-primary:hover {
  background: #174832;
}
.button-soft {
  background: #e9efdf;
  color: #385631;
}
.button-soft:hover {
  background: #dce8ce;
}
.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 20px;
}
.selection-fields {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.selection-fields label {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
}
.selection-fields select {
  border: 0;
  background-color: transparent;
  padding: 0 24px 0 0;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 550;
  min-width: 140px;
  max-width: 260px;
  height: 30px;
}
.selection-divider {
  height: 33px;
  border-left: 1px solid #dadfd3;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 24px;
  align-items: start;
}
.editor-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-heading {
  padding: 22px 25px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #eef0e9;
}
.step-number {
  font-family: Georgia, serif;
  font-size: 18px;
  color: #6a815d;
  width: 35px;
  height: 35px;
  border: 1px solid #dfe6d6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f7f9f2;
  flex-shrink: 0;
}
.panel-heading h2 {
  font-size: 15px;
  letter-spacing: 0.1px;
  margin: 0;
  font-weight: 600;
}
.panel-heading p {
  color: var(--muted);
  font-size: 10px;
  margin: 3px 0 0;
}
.section-tag {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #929b89;
  margin-left: auto;
}
.panel-body {
  padding: 23px 25px;
}
.panel-body > label {
  margin-bottom: 19px;
}
.panel-body > label:last-child {
  margin-bottom: 0;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: #485145;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #dfe3d9;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 7px;
  background: #fff;
  font-size: 12px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input,
select {
  height: 41px;
}
select {
  padding-right: 28px;
  cursor: pointer;
}
.label-note {
  color: #8c9486;
  font-weight: 400;
  font-size: 10px;
  margin-left: 10px;
}
.field-hint {
  display: block;
  font-size: 10px;
  line-height: 1.9;
  color: #7d8577;
  margin: 7px 0 0;
  font-weight: 400;
}
.assistant-details {
  margin: 0 0 21px;
  background: #f7f9f3;
  border: 1px solid #e5eadc;
  border-radius: 7px;
}
.assistant-details summary,
.advanced-panel summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  font-size: 11px;
  font-weight: 550;
  color: #4b6445;
  list-style: none;
}
.assistant-details summary::-webkit-details-marker,
.advanced-panel summary::-webkit-details-marker {
  display: none;
}
.assistant-details summary > span:first-child > span {
  font-size: 17px;
  vertical-align: middle;
  margin-right: 6px;
}
.details-chevron {
  font-size: 17px;
  font-weight: 400;
  transition: transform 0.2s;
}
details[open] > summary .details-chevron {
  transform: rotate(45deg);
}
.assistant-body {
  padding: 0 15px 17px;
  border-top: 1px solid #e5eadc;
}
.assistant-body > label {
  margin-top: 16px;
}
.assistant-body > .button {
  margin-top: 14px;
}
.assistant-body pre {
  background: #fff;
  border: 1px solid #e3e7dc;
  border-radius: 5px;
  font:
    11px/1.8 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 12px;
  max-height: 260px;
  overflow: auto;
}
.assistant-body pre:empty {
  display: none;
}
.field-grid {
  display: grid;
  gap: 16px;
}
.offer-links {
  grid-template-columns: 1fr 1.7fr;
}
.rules-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.delivery-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #edf0e6;
  margin-top: 22px;
  padding-top: 19px;
}
.delivery-status h3 {
  font-size: 11px;
  margin: 0;
  font-weight: 550;
}
.delivery-status p {
  font-size: 10px;
  color: var(--muted);
  margin: 3px 0 0;
}
.delivery-status select {
  width: 110px;
  margin: 0;
}
.advanced-panel {
  background: #f9faf6;
}
.advanced-panel summary {
  padding: 17px 22px;
  color: #6c7565;
  font-size: 10px;
}
.advanced-panel .panel-body {
  border-top: 1px solid var(--line);
}
.advanced-panel .field-hint {
  margin: 0 0 15px;
}
#config {
  font:
    11px/1.8 ui-monospace,
    SFMono-Regular,
    monospace;
  background: #fff;
}
.preview-column {
  min-width: 0;
}
.preview-sticky {
  position: sticky;
  top: 25px;
}
.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 13px;
}
.preview-heading h2 {
  font-size: 11px;
  font-weight: 550;
  margin: 0;
}
.preview-label {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #89927f;
}
.preview-stage {
  background: #e9ecdf;
  border: 1px solid #dce2d2;
  border-radius: 10px;
  padding: 15px 16px 19px;
  overflow: hidden;
}
.preview-browser {
  display: flex;
  align-items: center;
  gap: 4px;
}
.preview-browser > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b8c3aa;
}
.preview-browser > div {
  height: 12px;
  background: #f6f7f1;
  flex: 1;
  margin-left: 8px;
  border-radius: 3px;
}
.page-skeleton {
  padding: 25px 3px 0;
}
.skeleton-line {
  height: 5px;
  background: #d4dbca;
  border-radius: 3px;
  margin-bottom: 8px;
  width: 90%;
}
.skeleton-line.short {
  width: 38%;
  height: 7px;
  margin-bottom: 12px;
}
.skeleton-line.medium {
  width: 65%;
}
.skeleton-block {
  height: 62px;
  margin-top: 19px;
  background: linear-gradient(120deg, #d6dfc8, #e2e7d9);
  border-radius: 5px;
}
.offer-preview {
  position: relative;
  margin: -17px 0 0 9px;
  background: #fff;
  border: 1px solid #e0e5d7;
  border-radius: 8px;
  padding: 22px 20px;
  box-shadow: 0 10px 20px #4050350b;
  overflow-wrap: anywhere;
}
.offer-eyebrow {
  font-size: 8px;
  letter-spacing: 2px;
  color: #718961;
}
.offer-preview h3 {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 550;
  letter-spacing: 0.1px;
  margin: 9px 0 10px;
  white-space: pre-line;
}
.offer-preview p {
  color: #78816e;
  font-size: 10px;
  line-height: 2;
  margin: 0 0 18px;
  white-space: pre-line;
}
.preview-cta {
  background: #2e553c;
  color: #f7faef;
  border-radius: 5px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
}
.preview-caption {
  text-align: center;
  font-size: 9px;
  line-height: 1.9;
  color: #858c7d;
  margin: 11px 0 0;
}
.review-note {
  display: flex;
  gap: 12px;
  margin-top: 29px;
  padding-top: 23px;
  border-top: 1px solid #dfe3d7;
}
.review-note > span {
  font-size: 23px;
  color: #718367;
  line-height: 1.4;
}
.review-note h3 {
  font-size: 11px;
  font-weight: 550;
  margin: 0 0 5px;
}
.review-note p {
  font-size: 10px;
  color: #7d8577;
  margin: 0;
  line-height: 2;
}
.campaign-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px 14px;
  margin-top: 23px;
  font-size: 9px;
  color: #808977;
}
.campaign-meta strong {
  font-weight: 500;
  color: #59664f;
  overflow-wrap: anywhere;
  text-align: right;
}
.save-bar {
  border: 1px solid #dbe1d1;
  background: #fcfdf9;
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
}
.save-message {
  display: flex;
  gap: 11px;
  min-width: 0;
}
.save-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #a4b58b;
  flex-shrink: 0;
  margin-top: 7px;
}
.save-message strong {
  font-size: 10px;
  font-weight: 550;
}
.save-message p {
  font-size: 9px;
  color: #7d8774;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.save-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.save-bar.has-error {
  border-color: #d9a99d;
}
.has-error .save-dot {
  background: #ad5841;
}
.has-error #status {
  color: #a24a36;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: 9px;
  color: #8c9584;
  letter-spacing: 0.3px;
}
@media (min-width: 1550px) {
  main {
    padding-top: 50px;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 30px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 190px;
  }
  .sidebar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .topbar {
    padding: 0 28px;
  }
  main {
    padding: 32px 28px 0;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 18px;
  }
  .connection-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .connection-controls {
    width: 100%;
  }
  .connection-controls input {
    flex: 1;
  }
  .save-bar {
    flex-wrap: wrap;
  }
  .save-actions {
    margin-left: auto;
  }
  .panel-heading,
  .panel-body {
    padding: 20px;
  }
  .rules-grid {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar: 160px;
  }
  .sidebar {
    padding: 26px 10px 0;
  }
  .workspace-label {
    font-size: 8px;
    letter-spacing: 1px;
    margin-left: 10px;
  }
  .brand {
    font-size: 29px;
  }
  .sidebar-note {
    margin-left: 10px;
  }
  .sidebar-note p {
    font-size: 12px;
  }
  .sidebar-footer {
    font-size: 9px;
    gap: 7px;
  }
  .nav-link {
    font-size: 11px;
    padding: 10px;
    gap: 9px;
  }
  .nav-arrow {
    display: none;
  }
  .topbar {
    padding: 0 24px;
    height: 62px;
  }
  main {
    padding: 30px 24px 0;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .text-link {
    display: none;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .preview-column {
    order: 2;
  }
  .preview-sticky {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }
  .preview-heading {
    grid-column: 1/-1;
  }
  .preview-stage {
    grid-column: 1;
    grid-row: 2/5;
  }
  .preview-caption {
    text-align: left;
    margin-top: 0;
  }
  .review-note {
    margin-top: 14px;
    padding-top: 14px;
  }
  .campaign-meta {
    margin-top: 14px;
    align-content: start;
  }
  .selection-fields {
    gap: 15px;
  }
  .selection-fields select {
    min-width: 90px;
    max-width: 190px;
  }
  .section-tag {
    font-size: 8px;
  }
  .save-actions {
    width: 100%;
  }
  .save-actions .button-primary {
    flex: 1;
  }
  .save-bar {
    padding: 18px;
  }
  .page-footer {
    font-size: 8px;
  }
}
@media (max-width: 600px) {
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
  }
  .brand {
    padding: 0;
    font-size: 29px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 22px;
  }
  .workspace-label,
  .sidebar-note,
  .sidebar-footer {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 8px;
  }
  .nav-link {
    margin: 0;
    padding: 7px 10px;
    font-size: 10px;
  }
  .nav-link:not(.active) {
    display: none;
  }
  .nav-icon {
    font-size: 17px;
  }
  .app-shell {
    margin: 0;
  }
  .topbar {
    padding: 0 20px;
    height: 49px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 10px;
  }
  .connection-state {
    font-size: 9px;
  }
  main {
    padding: 28px 16px 0;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  h1 {
    font-size: 22px;
    letter-spacing: -0.6px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .page-description {
    font-size: 10px;
    max-width: 280px;
    line-height: 1.9;
  }
  .connection-panel {
    padding: 17px 15px;
  }
  .connection-intro {
    gap: 10px;
  }
  .connection-intro p {
    font-size: 9px;
  }
  .connection-controls {
    gap: 6px;
  }
  .connection-controls input {
    width: 100px;
    min-width: 0;
  }
  .connection-controls .button {
    font-size: 10px;
    padding: 9px 10px;
    gap: 6px;
  }
  .selection-bar {
    margin: 22px 0 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .selection-fields {
    flex: 1;
    gap: 12px;
  }
  .selection-fields label {
    flex: 1;
    min-width: 0;
  }
  .selection-fields select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 11px;
  }
  .selection-bar > .button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .selection-divider {
    height: 29px;
  }
  .panel-heading,
  .panel-body {
    padding: 19px 17px;
  }
  .panel-heading {
    gap: 10px;
  }
  .panel-heading h2 {
    font-size: 14px;
  }
  .panel-heading p {
    font-size: 9px;
  }
  .step-number {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .section-tag {
    font-size: 7px;
    letter-spacing: 0.9px;
  }
  .editor-main {
    gap: 16px;
  }
  .offer-links {
    grid-template-columns: 1fr;
  }
  .rules-grid {
    grid-template-columns: 1fr 1fr;
    gap: 17px 12px;
  }
  .rules-grid label:last-child {
    grid-column: 1/-1;
  }
  .rules-grid label:last-child input {
    max-width: calc(50% - 6px);
  }
  .delivery-status p {
    font-size: 9px;
  }
  .advanced-panel summary {
    padding: 16px;
    font-size: 9px;
  }
  .preview-sticky {
    display: block;
  }
  .preview-column {
    margin: 5px 15px;
  }
  .preview-stage {
    max-width: 350px;
    margin: auto;
  }
  .preview-caption {
    text-align: center;
    margin-top: 10px;
  }
  .review-note,
  .campaign-meta {
    display: none;
  }
  .save-bar {
    padding: 16px;
    gap: 14px;
    margin-top: 22px;
  }
  .save-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .save-actions .button {
    white-space: normal;
    font-size: 10px;
  }
  .save-message strong {
    font-size: 10px;
  }
  .page-footer {
    font-size: 8px;
    padding: 20px 0;
  }
  .page-footer > span:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.arrow-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-link > .arrow-icon {
  margin-left: auto;
  color: #b6d28c;
}
[hidden] {
  display: none !important;
}
.settings-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 22px;
  padding-bottom: 10px;
}
.settings-tabs button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 16px;
  color: #71806c;
  font-size: 12px;
}
.settings-tabs [aria-selected="true"] {
  background: #e6eddd;
  color: #264b30;
  border-color: #d7e0cc;
  font-weight: 600;
}
#siteSettingsPanel,
#campaignSettingsPanel {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.help-callout {
  background: #f1f5eb;
  border-left: 3px solid #8ca47b;
  padding: 13px 16px;
  font-size: 11px;
  line-height: 1.9;
  color: #5a6b50;
  margin: 0 0 20px;
}
.help-callout label {
  margin-bottom: 14px;
}
.form-subtitle {
  font-size: 12px;
  color: #42573a;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.design-colors {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}
.design-colors input {
  padding: 3px;
  height: 40px;
}
.panel-body > .field-grid {
  margin-bottom: 20px;
}
.panel-body .field-grid:not(.rules-grid):not(.design-colors):not(.offer-links) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#siteTag,
#customCode,
#customVariables {
  font:
    12px/1.8 ui-monospace,
    monospace;
}
#importJson {
  margin: 0 22px 18px;
}
.live-offer-preview {
  border: 1px solid #dce2d2;
  border-radius: 10px;
  background: repeating-linear-gradient(
    135deg,
    #edf0e6,
    #edf0e6 12px,
    #e8edde 12px,
    #e8edde 24px
  );
  margin: 14px 0;
  min-width: 0;
  overflow: hidden;
}
.preview-sticky > label {
  margin-bottom: 10px;
}
.preview-column .button {
  width: 100%;
  margin-top: 14px;
}
#customFields {
  margin-top: 16px;
}
.field-grid label {
  min-width: 0;
}
.save-actions .button {
  font-size: 12px;
}
@media (max-width: 900px) {
  .preview-sticky {
    display: block;
  }
  .live-offer-preview {
    max-width: 500px;
    margin: 16px auto;
  }
  .preview-sticky > label {
    display: inline-block;
    width: 48%;
  }
}
@media (max-width: 600px) {
  .settings-tabs button {
    padding: 9px 10px;
    font-size: 10px;
  }
  .design-colors {
    grid-template-columns: 1fr 1fr;
  }
  .panel-body
    .field-grid:not(.rules-grid):not(.design-colors):not(.offer-links) {
    grid-template-columns: 1fr;
  }
  .help-callout {
    font-size: 10px;
  }
  .preview-column {
    margin: 5px 0;
  }
}
.live-offer-preview[data-device="mobile"] {
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}
.live-offer-preview[data-device="desktop"] {
  width: 100%;
}
#openPreview {
  white-space: normal;
}

.brand-name {
  font-size: 24px;
  letter-spacing: -1px;
}
.brand {
  gap: 9px;
}
@media (max-width: 900px) {
  .brand-name {
    font-size: 20px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 22px;
  }
}
