:root {
  color-scheme: light;
  --bg: #fafafa;
  --panel: #ffffff;
  --input: #ffffff;
  --line: #e6e6e6;
  --text: #1f1f22;
  --muted: #616161;
  --mint: #8adcb4;
  --graphite: #303034;
  --pink: #e4789a;
  font-family:
    -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans",
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #3f7d5b;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
button:hover:not(:disabled) {
  background: #f1f1f1;
  border-color: #c4c4c4;
}
button.primary {
  color: #ffffff;
  background: var(--graphite);
  border-color: var(--graphite);
}
button.primary:hover:not(:disabled) {
  background: #45454a;
  border-color: #45454a;
}
button.pink {
  color: #9f3655;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--panel);
}
.mode-strip {
  margin: 0;
  padding: 6px 16px;
  background: #f0f0f1;
  color: #55555b;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}
.app-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 18px 10px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  min-height: 34px;
}
.brand-lockup:hover:not(:disabled) {
  background: transparent;
}
.brand-avatar {
  width: 30px;
  height: 30px;
}
.wordmark {
  width: 88px;
  height: auto;
  transform: translateY(-3px);
}
.profile-shortcut {
  margin-left: auto;
  display: grid;
  place-items: center;
  padding: 0;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 50%;
  background: #e7e7e9;
  color: #444449;
  font-size: 12px;
  font-weight: 500;
}
.profile-shortcut .icon {
  width: 22px;
  height: 22px;
}
#sign-out {
  padding: 7px 10px;
  min-height: 34px;
  font-size: 12px;
}
main {
  width: 100%;
  max-width: 576px;
  margin: 0 auto;
  padding: 0 16px calc(96px + env(safe-area-inset-bottom));
}
body[data-page="preview"] main {
  max-width: 920px;
}
.bottom-nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  background: var(--panel);
  border-top: 1px solid #ececec;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-items {
  display: flex;
  max-width: 576px;
  margin: auto;
  padding: 8px;
}
.bottom-nav button {
  flex: 1;
  min-width: 0;
  min-height: 51px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 10px;
  background: none;
  padding: 4px 2px;
  color: #7a7a7a;
  font-size: 11px;
  font-weight: 500;
}
.bottom-nav button.active {
  color: var(--text);
  font-weight: 600;
}
.bottom-nav .icon,
.bottom-nav img {
  width: 24px;
  height: 24px;
}
.bottom-nav img {
  opacity: 0.55;
}
.bottom-nav button.active img {
  opacity: 1;
}
.bottom-nav button.active .icon {
  stroke-width: 2.2;
}
h1 {
  margin: 8px 0 6px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 8px;
  font-weight: 650;
}
p {
  margin: 0 0 14px;
}
main > #screen > h1 {
  margin-bottom: 18px;
}
.page-intro {
  margin-bottom: 18px;
}
.page-intro p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 14px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  min-width: 0;
}
.panel + .panel,
.selection {
  margin-top: 12px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.columns > .panel + .panel {
  margin-top: 0;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #424242;
  margin-bottom: 15px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 10px 11px;
  background: var(--input);
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  color: var(--text);
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.4;
}
input::placeholder,
textarea::placeholder {
  color: #777777;
  opacity: 1;
}
textarea {
  min-height: 112px;
  resize: vertical;
}
input[type="file"] {
  font-size: 12px;
  padding: 8px;
}
input::file-selector-button {
  color: var(--text);
  background: #f1f1f1;
  border: 0;
  border-radius: 6px;
  padding: 6px 8px;
  margin-right: 8px;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0;
  accent-color: var(--graphite);
  flex-shrink: 0;
}
.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.two input,
.two select {
  font-size: 14px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  min-width: 0;
}
fieldset:last-of-type {
  margin-bottom: 0;
}
fieldset legend {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 16px;
  padding: 0;
}
.brand-form {
  display: grid;
  gap: 12px;
}
.brand-form fieldset {
  margin: 0;
}
.brand-form fieldset legend {
  float: left;
  width: 100%;
}
.brand-form fieldset legend + * {
  clear: both;
}
.brand-form label:last-child {
  margin-bottom: 0;
}
.brand-save {
  width: 100%;
  margin: 4px 0;
}
.brand-summary {
  margin-top: 16px;
}
.brand-summary dl,
.conversation-proposal dl {
  margin: 16px 0;
}
dt {
  font-size: 12px;
  color: var(--muted);
}
dd {
  margin: 3px 0 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.actions label {
  margin: 0;
}
.tag {
  color: #365c49;
  font-size: 12px;
  font-weight: 600;
}
small,
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.warning {
  color: #9f3655;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}
.checkbox input {
  margin-top: 2px;
}
.heading-row,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.heading-row {
  margin-bottom: 14px;
}
.heading-row h1,
.heading-row h2 {
  margin: 0;
}
.heading-row h1 {
  font-size: 26px;
}
.toolbar {
  justify-content: flex-start;
}
.toolbar label {
  margin: 0;
}
.toolbar input {
  margin-top: 4px;
}
.toolbar button[aria-pressed="true"] {
  background: #e9e9eb;
  border-color: #c6c6cb;
}
#notice:not(:empty) {
  margin: 4px 0 16px;
  padding: 11px 13px;
  border: 1px solid #c4dece;
  border-radius: 12px;
  font-size: 13px;
  background: #f0f8f3;
}
#notice.error {
  border-color: #e4b7c4;
  background: #fcf2f5;
}
[aria-busy="true"] {
  opacity: 0.75;
}
summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
details[open] > summary {
  margin-bottom: 14px;
}
.logs {
  max-height: 250px;
  overflow: auto;
  padding-left: 18px;
  font-size: 12px;
  color: var(--muted);
}
.logs li {
  margin-bottom: 10px;
}
.spaced {
  margin-top: 26px;
}
.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;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.profile-shortcut img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
