:root {
  --paper: #fbfaf7;
  --panel: #f1eee8;
  --panel-strong: #e8e1d7;
  --ink: #231f1a;
  --muted: #766f67;
  --line: #ded7ce;
  --accent: #c85f35;
  --accent-dark: #9f4325;
  --green: #24805a;
  --danger: #b3261e;
  --shadow: 0 18px 60px rgba(36, 28, 20, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0%, 80%, 100% {
    transform: scale(0.72);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #f7f3ed, #ebe5dc);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
}

.brand h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  letter-spacing: 0;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
}

.icon-button:hover {
  background: rgba(35, 31, 26, 0.08);
}

.nav {
  padding: 10px 12px;
}

.nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.nav button:hover,
.nav button.active {
  background: rgba(35, 31, 26, 0.08);
}

.nav svg,
.brand svg,
.composer-tools svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.recent-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 20px 6px;
  color: var(--muted);
  font-size: 12px;
}

.history {
  flex: 1;
  overflow: auto;
  padding: 0 10px 12px;
}

.history button {
  width: 100%;
  overflow: hidden;
  display: block;
  padding: 9px 10px;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history button:hover,
.history button.active,
.history-row.active {
  background: rgba(35, 31, 26, 0.08);
}

.history-row,
.site-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 6px;
  align-items: center;
  border-radius: 9px;
}

.history-row > button:first-child,
.site-row > button:first-child {
  min-width: 0;
}

.mini-danger {
  width: 28px !important;
  height: 28px;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--muted) !important;
  font-weight: 900;
}

.mini-danger:hover {
  background: rgba(179, 38, 30, 0.1) !important;
  color: var(--danger) !important;
}

.account-strip {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #201d19;
  color: white;
  font-weight: 800;
}

.account-name {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-plan {
  color: var(--muted);
  font-size: 12px;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 54px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdfa;
  color: var(--muted);
  font-size: 14px;
}

.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.welcome {
  max-width: 760px;
  width: min(760px, calc(100vw - 40px));
  margin: auto auto 20px;
  text-align: center;
}

.spark {
  display: inline-block;
  color: var(--accent);
  font-size: 42px;
  transform: translateY(6px);
}

.welcome h2 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 500;
  letter-spacing: 0;
}

.messages {
  flex: 1;
  overflow: auto;
  padding: 18px min(8vw, 96px);
}

.message {
  max-width: 860px;
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
}

.message .bubble {
  padding: 2px 0;
  line-height: 1.62;
  white-space: pre-wrap;
}

.message.user .bubble {
  display: inline-block;
  justify-self: start;
  max-width: 720px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffdfa;
}

.role-dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-strong);
  color: var(--accent-dark);
  font-weight: 900;
}

.composer-zone {
  padding: 14px 18px 26px;
}

.composer {
  max-width: 676px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fffdfa;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.status-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px 0;
  color: var(--muted);
  font-size: 13px;
}

.status-line strong {
  color: var(--ink);
}

.composer textarea {
  width: 100%;
  min-height: 96px;
  max-height: 260px;
  resize: vertical;
  padding: 16px 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 12px;
}

.composer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.send {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}

.send:disabled {
  cursor: wait;
  opacity: 0.5;
}

.chips {
  max-width: 676px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin: 14px auto 0;
}

.chips button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdfa;
  box-shadow: 0 4px 12px rgba(36, 28, 20, 0.06);
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  background: radial-gradient(circle at 20% 10%, rgba(200, 95, 53, 0.18), transparent 30%), var(--paper);
}

.auth-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: min(8vw, 96px);
}

.auth-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 500;
}

.auth-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.auth-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 26px;
  border-left: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.76);
  backdrop-filter: blur(20px);
}

.auth-card,
.modal {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdfa;
  box-shadow: var(--shadow);
}

.auth-card {
  padding: 24px;
}

.auth-card h2,
.modal h2 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.auth-card p,
.modal p {
  margin: 0 0 18px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 6px;
  margin: 13px 0;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.primary {
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary:hover:not(:disabled),
.secondary:hover:not(:disabled),
.send:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(36, 28, 20, 0.14);
}

.primary:disabled,
.secondary:disabled {
  cursor: wait;
  opacity: 0.65;
}

.link-button {
  padding: 0;
  background: transparent;
  color: var(--accent-dark);
  text-decoration: underline;
}

.error {
  margin-top: 12px;
  color: var(--danger);
  font-size: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(35, 31, 26, 0.28);
  z-index: 20;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  max-width: 500px;
  padding: 24px;
}

.ghost {
  background: transparent;
  color: var(--muted);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.builder {
  flex: 1;
  overflow: auto;
  padding: 28px min(5vw, 64px);
  animation: fadeUp 360ms ease both;
}

.builder-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto 18px;
}

.builder-head h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
}

.eyebrow-mini {
  margin: 0 0 8px !important;
  color: var(--accent) !important;
  font-size: 12px !important;
  font-weight: 900;
  text-transform: uppercase;
}

.compact {
  width: auto;
  min-width: 124px;
  padding: 0 18px;
}

.builder-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
}

.publish-help {
  max-width: 1180px;
  margin: 0 auto 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.publish-help strong,
.publish-help span,
.site-url {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdfa;
  color: var(--muted);
  font-size: 13px;
}

.publish-help strong {
  color: var(--ink);
}

.secondary {
  width: 100%;
  height: 42px;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffdfa;
  color: var(--ink);
  font-weight: 800;
}

.site-url {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  text-decoration: none;
  color: var(--accent-dark);
  overflow-wrap: anywhere;
}

.alt-url {
  color: var(--muted);
}

.muted-url {
  color: var(--muted);
}

.builder-panel,
.editor-panel,
.preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdfa;
  box-shadow: 0 10px 26px rgba(36, 28, 20, 0.07);
  animation: fadeUp 420ms ease both;
}

.builder-panel {
  padding: 16px;
}

.field small {
  color: var(--muted);
}

.mini-textarea {
  min-height: 110px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
}

.published-list {
  margin-top: 18px;
}

.published-list h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.published-list button {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}

.published-list button:hover,
.site-row:hover {
  background: rgba(35, 31, 26, 0.08);
}

.published-list small {
  color: var(--muted);
}

.editor-panel {
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr auto 1fr auto 120px;
  gap: 8px;
  padding: 14px;
}

.editor-panel label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.editor-panel textarea {
  width: 100%;
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf7;
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  resize: vertical;
}

.preview {
  display: block;
  width: min(1180px, 100%);
  height: 520px;
  margin: 16px auto 0;
  background: #fff;
}

.notice {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 80;
  max-width: min(680px, calc(100vw - 28px));
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: transparent;
  transform: translate(-50%, -10px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease, padding 180ms ease;
}

.notice.info,
.notice.success,
.notice.error {
  min-height: 42px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: #fffdfa;
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 1;
  transform: translate(-50%, 0);
}

.notice.success {
  border-color: rgba(36, 128, 90, 0.35);
  color: var(--green);
}

.notice.error {
  border-color: rgba(179, 38, 30, 0.35);
  color: var(--danger);
}

.creation-loader {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(200, 95, 53, 0.11), rgba(255, 253, 250, 0.94));
  text-align: center;
}

.creation-loader span {
  width: 11px;
  height: 11px;
  display: inline-block;
  margin: 0 3px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 1s ease-in-out infinite;
}

.creation-loader span:nth-child(2) {
  animation-delay: 120ms;
}

.creation-loader span:nth-child(3) {
  animation-delay: 240ms;
}

.creation-loader p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 310px);
    transform: translateX(-105%);
    transition: transform 160ms ease;
    z-index: 15;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .mobile-only {
    display: grid !important;
  }

  .welcome {
    margin-top: 18vh;
  }

  .auth-screen {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    padding: 32px 24px 10px;
  }

  .auth-panel {
    min-height: auto;
    border-left: 0;
  }

  .builder-head,
  .builder-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .builder-head {
    gap: 10px;
  }
}

@media (min-width: 821px) {
  .mobile-only {
    display: none !important;
  }
}

.update-card {
  max-width: 676px;
  margin: 12px auto 0;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(200, 95, 53, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(200, 95, 53, 0.1), rgba(255, 253, 250, 0.92));
  color: var(--muted);
  font-size: 13px;
  animation: fadeUp 460ms ease both;
}

.update-card strong {
  color: var(--ink);
}

.bot-builder .builder-grid {
  grid-template-columns: 360px minmax(0, 1fr);
}

.bot-files {
  grid-template-rows: auto minmax(150px, auto) auto minmax(260px, 1fr);
}

.bot-files textarea {
  min-height: 300px;
}

.always-on {
  display: block;
}

.bot-list {
  max-height: 230px;
  overflow: auto;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.command-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(55, 45, 34, 0.11);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

.command-grid input {
  width: 16px;
  height: 16px;
}

@media (max-width: 820px) {
  .bot-builder .builder-grid {
    grid-template-columns: 1fr;
  }
}

/* Byte AI premium skin */
:root {
  --paper: #f8f5ef;
  --panel: #eee7dc;
  --panel-strong: #e2d6c7;
  --ink: #191714;
  --muted: #746b60;
  --line: rgba(55, 45, 34, 0.13);
  --accent: #d86f3d;
  --accent-dark: #a74222;
  --gold: #d5a74c;
  --blue: #3b82f6;
  --shadow: 0 24px 80px rgba(44, 34, 22, 0.13);
  --soft-shadow: 0 12px 34px rgba(44, 34, 22, 0.09);
}

body {
  background:
    radial-gradient(circle at 16% 10%, rgba(216, 111, 61, 0.18), transparent 28%),
    radial-gradient(circle at 84% 4%, rgba(59, 130, 246, 0.12), transparent 24%),
    linear-gradient(135deg, #fbf8f2 0%, #f3ece2 48%, #faf8f3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(25, 23, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 23, 20, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.shell {
  grid-template-columns: 304px minmax(0, 1fr);
}

.sidebar {
  margin: 10px 0 10px 10px;
  height: calc(100vh - 20px);
  border: 1px solid rgba(55, 45, 34, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.88), rgba(235, 226, 214, 0.86)),
    radial-gradient(circle at 20% 0%, rgba(216, 111, 61, 0.16), transparent 38%);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.brand {
  padding: 18px 18px 12px;
}

.brand h1 {
  font-size: 30px;
  background: linear-gradient(135deg, #191714, #9f4325);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icon-button,
.nav button,
.history button,
.published-list button {
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav {
  padding: 12px;
}

.nav button {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
}

.nav button:hover {
  transform: translateX(2px);
  background: rgba(255, 253, 249, 0.7);
}

.nav button.active {
  border-color: rgba(216, 111, 61, 0.22);
  background: linear-gradient(135deg, rgba(216, 111, 61, 0.16), rgba(255, 253, 249, 0.72));
  color: var(--accent-dark);
  box-shadow: 0 10px 24px rgba(216, 111, 61, 0.12);
}

.recent-title {
  margin-top: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-strip {
  margin: 0 10px 10px;
  border: 1px solid rgba(55, 45, 34, 0.1);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.72);
}

.avatar {
  background: linear-gradient(135deg, #191714, #d86f3d);
  box-shadow: 0 10px 24px rgba(216, 111, 61, 0.18);
}

.main {
  position: relative;
}

.topbar {
  height: 64px;
}

.pill {
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.78);
  box-shadow: 0 8px 24px rgba(44, 34, 22, 0.06);
  backdrop-filter: blur(14px);
}

.builder {
  padding-top: 18px;
}

.builder-head {
  min-height: 188px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(55, 45, 34, 0.11);
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 0%, rgba(216, 111, 61, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(244, 236, 225, 0.8));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.builder-head h2 {
  max-width: 760px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
}

.builder-head p:not(.eyebrow-mini) {
  max-width: 720px;
  color: #675d52;
  font-size: 16px;
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-stats span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(55, 45, 34, 0.11);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.72);
  color: var(--muted);
  font-size: 13px;
}

.hero-stats strong {
  color: var(--ink);
}

.builder-grid {
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.builder-panel,
.editor-panel,
.preview,
.composer,
.auth-card,
.modal {
  border-color: rgba(55, 45, 34, 0.11);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.builder-panel {
  padding: 18px;
}

.field label,
.editor-panel label {
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.field input,
.field select,
.mini-textarea,
.editor-panel textarea {
  border-color: rgba(55, 45, 34, 0.13);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field input:focus,
.field select:focus,
.mini-textarea:focus,
.editor-panel textarea:focus {
  outline: none;
  border-color: rgba(216, 111, 61, 0.55);
  box-shadow: 0 0 0 4px rgba(216, 111, 61, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.primary {
  border-radius: 14px;
  background: linear-gradient(135deg, #191714, #3a2b23);
  box-shadow: 0 14px 30px rgba(25, 23, 20, 0.16);
}

.primary:hover:not(:disabled) {
  box-shadow: 0 16px 36px rgba(25, 23, 20, 0.2);
}

.secondary {
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.9), rgba(245, 237, 226, 0.82));
}

.site-url,
.publish-help strong,
.publish-help span {
  border-color: rgba(55, 45, 34, 0.1);
  background: rgba(255, 253, 249, 0.76);
  box-shadow: 0 8px 18px rgba(44, 34, 22, 0.05);
}

.published-list h3 {
  margin-top: 18px;
}

.site-row,
.history-row {
  margin-bottom: 4px;
  padding: 2px;
}

.site-row:hover,
.history-row:hover {
  background: rgba(216, 111, 61, 0.07);
}

.editor-panel {
  min-height: 620px;
}

.editor-panel textarea {
  font-size: 13.5px;
  line-height: 1.55;
}

.preview {
  height: 560px;
  border-radius: 24px;
  overflow: hidden;
}

.notice.info,
.notice.success,
.notice.error {
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(18px);
}

.creation-loader {
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(216, 111, 61, 0.2), transparent 38%),
    rgba(255, 253, 249, 0.78);
}

.auth-screen {
  background:
    radial-gradient(circle at 16% 10%, rgba(216, 111, 61, 0.24), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(59, 130, 246, 0.12), transparent 26%),
    linear-gradient(135deg, #fbf8f2, #efe4d6);
}

.auth-card {
  border-radius: 24px;
}

.bot-builder .builder-head {
  background:
    radial-gradient(circle at 8% 0%, rgba(59, 130, 246, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(238, 244, 255, 0.78));
}

@media (max-width: 820px) {
  .sidebar {
    margin: 0;
    height: 100vh;
    border-radius: 0 22px 22px 0;
  }

  .builder {
    padding: 14px;
  }

  .builder-head {
    padding: 20px;
  }

  .builder-grid {
    grid-template-columns: 1fr;
  }
}
