:root {
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: #20211f;
  background: #fafaf8;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
#feedback:empty {
  display: none;
}
#feedback {
  position: fixed;
  z-index: 100;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #252721;
  color: #fff;
  border: 1px solid #fff4;
  border-radius: 9px;
  box-shadow: 0 3px 16px #0002;
  padding: 11px 16px;
  max-width: min(90vw, 600px);
  font-size: 14px;
  white-space: pre-line;
}
#feedback.warning {
  background: #673426;
}
body .ui-error {
  white-space: pre-line;
  color: #783d31;
  background: #fbefe8;
  border: 1px solid #e6c7bb;
  padding: 11px 13px;
  border-radius: 8px;
  margin: 3px 0;
  font:
    14px/1.5 Inter,
    Arial,
    sans-serif;
  overflow-wrap: anywhere;
}
.body-column {
  min-width: 0;
}
.ui-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
}
.site-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.site-row:last-child {
  border-bottom: 0;
}
.site-row:hover {
  background: #f7f8f4;
}
.site-row small,
.site-row strong {
  display: block;
}
.site-row small,
.site-row > span:last-child,
.field small,
.setting-field small,
.subtle,
.work-dialog small {
  font:
    13px/1.45 Inter,
    Arial,
    sans-serif;
  color: #62665d;
}
.site-row > span:last-child {
  margin-left: auto;
}
.site-row > span {
  overflow-wrap: anywhere;
}
.plain {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.model-options,
.usage-breakdown {
  border-top: 1px solid #e1e3dc;
  padding-top: 12px;
}
.model-options summary,
.usage-breakdown summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
}
.model-options .field,
.usage-breakdown section {
  margin-top: 12px;
}
.model-options select {
  background: #fff;
  border: 1px solid #c9cdc2;
  border-radius: 6px;
  padding: 8px;
  max-width: 100%;
}
.usage-breakdown section {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid #e4e5df;
  padding-bottom: 8px;
}
.plain .colors {
  margin: 12px 0;
}
.color-entry {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.color-entry input {
  width: 38px;
  height: 31px;
  background: none;
  border: 0;
}
.color-entry button {
  border: 0;
  background: transparent;
  font-size: 18px;
}
.sample-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
}
body .portal.auth .top-right {
  display: flex;
}
.session-email {
  max-width: 30vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
body .check-row input[type='checkbox'] {
  width: 17px;
  min-width: 17px;
  height: 17px;
  padding: 0;
  margin: 1px 0;
  accent-color: #30382b;
}
.check-row a,
.subtle a,
#pub-link a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
body input.admin-search {
  width: 175px;
  max-width: 100%;
  padding: 6px 8px;
}
.work-dialog {
  margin: auto;
  padding: 0;
  border: 1px solid #d9dcd3;
  border-radius: 15px;
  background: #fff;
  color: #252820;
  box-shadow: 0 20px 70px #14151136;
  max-width: calc(100% - 24px);
  width: 465px;
  max-height: min(86dvh, 850px);
  font:
    14px/1.5 Inter,
    'Segoe UI',
    Arial,
    sans-serif;
}
.work-dialog.wide {
  width: 635px;
}
.work-dialog::backdrop {
  background: #1e211b68;
}
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e4e5df;
}
.dialog-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.dialog-head .icon-button {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}
.dialog-head button,
.dialog-tabs button,
.text-control {
  border: 0;
  background: none;
  color: inherit;
}
.dialog-head svg {
  width: 18px;
  height: 18px;
}
.dialog-body {
  padding: 18px 20px 22px;
}
.dialog-body p {
  margin: 0 0 12px;
}
.dialog-tabs {
  display: flex;
  gap: 4px;
  background: #f0f1ec;
  border: 1px solid #dddeda;
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 18px;
}
.dialog-tabs button {
  flex: 1;
  border-radius: 5px;
  padding: 7px 8px;
  font-size: 13px;
}
.dialog-tabs button[aria-pressed='true'] {
  background: #fff;
  box-shadow: 0 1px 3px #0002;
}
.setting-stack,
.setting-field,
.field-list,
.field-row label {
  display: grid;
  gap: 7px;
}
.setting-stack {
  gap: 15px;
}
.setting-field,
.field-row label {
  font-weight: 550;
  font-size: 13px;
}
.setting-field input,
.setting-field textarea,
.setting-field select,
.field-row input:not([type='checkbox']),
.field-row select {
  width: 100%;
  background: #fff;
  color: #22251e;
  border: 1px solid #c9cdc2;
  padding: 8px;
  border-radius: 6px;
  min-width: 0;
  font-size: 14px;
  font-weight: 400;
}
.setting-field textarea {
  resize: vertical;
}
.setting-field small {
  font-weight: 400;
}
.dialog-primary,
.dialog-secondary {
  border: 1px solid #c8ccc1;
  border-radius: 7px;
  background: #fff;
  color: #24271f;
  min-height: 37px;
  padding: 7px 13px;
  font-weight: 550;
  font-size: 13px;
}
.dialog-primary {
  background: #272a23;
  color: #fff;
  border-color: #272a23;
}
.dialog-primary:hover:not(:disabled) {
  background: #3c4137;
}
.dialog-secondary:hover:not(:disabled) {
  background: #f5f6f1;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #e1e3dc;
  padding-top: 15px;
  margin-top: 10px;
}
.text-control {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 4px;
}
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #dddeda;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0;
  min-width: 0;
}
.field-row legend {
  font-size: 12px;
  color: #696c63;
  padding: 0 4px;
}
.field-controls {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.field-controls label.check-row {
  display: flex;
  margin-right: auto;
}
.field-list {
  gap: 12px;
}
.domain-card {
  font-size: 13px;
  border: 1px solid #d9dcd2;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.domain-card p {
  margin: 6px 0;
}
.dns-table {
  overflow-x: auto;
}
.dns-table table {
  width: 100%;
  border-collapse: collapse;
}
.dns-table td,
.dns-table th {
  text-align: left;
  vertical-align: top;
  padding: 4px 6px;
  font-size: 12px;
  border-bottom: 1px solid #e0e2dc;
}
.dns-table code {
  overflow-wrap: anywhere;
}
#pub-link {
  margin: 12px 0;
}
#sl-editor .sl-top .sl-account button {
  display: block;
  padding: 8px 10px;
  white-space: nowrap;
  border-radius: 6px;
  text-align: left;
  width: 100%;
}
#sl-editor .sl-top .sl-account button:hover {
  background: #f1f2ed;
}
#sl-editor .sl-project {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(30vw, 300px);
}
#sl-editor .sl-page select {
  max-width: min(27vw, 240px);
  background: transparent;
  border: 0;
  color: #51564b;
  text-overflow: ellipsis;
  font-size: 12px;
}
#sl-editor .work-canvas {
  flex: 1;
  min-height: 0;
  padding: 0 clamp(16px, 6%, 98px) 16px;
  display: flex;
  justify-content: center;
}
#sl-editor .frame-box {
  position: relative;
  width: 100%;
  max-width: 1350px;
  min-width: 0;
  background: #fff;
  box-shadow:
    0 0 0 1px #24252319,
    0 5px 22px #2425230b;
}
#sl-editor .frame-box.mobile {
  max-width: 390px;
}
#sl-editor #site-preview {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}
#sl-editor .selection-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
@media(max-width:620px) {
  #sl-editor .sl-bar .sl-page {
    position:absolute;
    right:8px;
    top:14px;
    max-width:calc(50% - 48px);
    visibility:visible;
  }
  #sl-editor .sl-bar .sl-page svg { display:none; }
  #sl-editor .sl-bar .sl-page select { max-width:100%; }
  #sl-editor .sl-bar>.sl-toggle { grid-column:2; }
}
#sl-editor .element-mark,
#sl-editor .area-mark {
  position: absolute;
  pointer-events: none;
  border: 1.5px solid #3765d7;
}
#sl-editor .area-mark {
  border-style: dashed;
  background: #3765d719;
}
#sl-editor .element-mark span {
  position: absolute;
  left: -1px;
  bottom: 100%;
  padding: 1px 6px;
  color: white;
  background: #3765d7;
  border-radius: 3px 3px 0 0;
  font:
    11px/1.45 Inter,
    Arial,
    sans-serif;
}
#sl-editor .element-mark span.inside {
  bottom: auto;
  top: 0;
}
#sl-editor .selection-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}
#sl-editor .selection-controls select {
  border: 0;
  background: transparent;
  font-size: 12px;
  margin-left: auto;
  color: #555d52;
}
#sl-editor .sl-chat-response {
  max-height: 80px;
  overflow: auto;
  overflow-wrap: anywhere;
}
#sl-editor .sl-chat-response.edit-error {
  background: #f9eae4;
  color: #743a2b;
}
#sl-editor.is-pending .sl-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  background: #476ac3;
  width: 35%;
  animation: working 1.25s alternate infinite;
  z-index: 2;
}
@keyframes working {
  to {
    transform: translateX(185%);
  }
}
@media (prefers-reduced-motion: reduce) {
  #sl-editor.is-pending .sl-bar::after {
    animation: none;
    width: 100%;
  }
}
@media (max-width: 820px) {
  #sl-editor .work-canvas {
    padding: 0 12px 12px 52px;
  }
}
@media (max-width: 620px) {
  #sl-editor .work-canvas {
    padding: 0 6px 8px;
  }
  #sl-editor .sl-top {
    gap: 4px;
  }
  #sl-editor .sl-actions .sl-icon-button {
    width: 29px;
  }
  #sl-editor .sl-project {
    max-width: 90px;
  }
  .session-email {
    display: none;
  }
  .work-dialog {
    max-height: 91dvh;
  }
  .dialog-body,
  .dialog-head {
    padding: 13px;
  }
  .site-row {
    padding: 13px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .field-controls {
    grid-column: 1;
  }
  .top-actions {
    gap: 0.6rem;
  }
}
