/* Calm workspace: one persistent navigation, one conversation input, grouped rows. */
.sr-only,
.composer-accessible-hint {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.workspace-signed-in .app-topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  height: 72px;
  padding-inline: 24px;
  gap: 24px;
}
.workspace-signed-in.workspace-active > header.app-topbar {
  height: 72px;
  padding-inline: 24px;
  flex-shrink: 0;
}
.workspace-signed-in .app-topbar > .brand {
  justify-self: start;
}
.workspace-signed-in .topbar-right {
  justify-self: end;
}
.workspace-signed-in .topbar-links {
  display: none;
}
.workspace-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-width: 0;
}
.workspace-nav button {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 44px;
  padding: 8px 18px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.workspace-nav button:hover {
  color: var(--text);
  filter: none;
}
.workspace-nav button.active {
  color: var(--text);
}
.workspace-nav button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
}
.workspace-signed-in
  main:not(.conversation-page):not(.content-edit-page):not(.studio-wide):not(
    .is-generating
  ) {
  width: min(100% - 48px, 1360px);
  margin: 28px auto;
}
.workspace-signed-in .campaign-panel {
  border-radius: 18px;
  padding: 24px;
  background: transparent;
}
.workspace-signed-in .campaign-heading .eyebrow {
  display: none;
}
.workspace-signed-in .campaign-heading h2 {
  font-size: 25px;
}
.workspace-signed-in .campaign-heading p {
  font-size: 12px;
}
.workspace-signed-in .campaign-selection {
  border-radius: 11px;
  box-shadow: none;
}
.workspace-signed-in.workspace-active,
.workspace-signed-in.workspace-active:has(main.studio-wide) {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.workspace-signed-in main.conversation-page,
.workspace-signed-in main.content-edit-page,
.workspace-signed-in main.studio-wide {
  width: 100%;
  max-width: 1640px;
  flex: 1;
  min-height: 0;
  margin: 0 auto;
  padding: 20px 28px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.workspace-signed-in .hero,
.workspace-signed-in .steps {
  display: none;
}
/* One input implementation, shared by creation, revision and saved drafts. */
.ai-composer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  width: 100%;
  padding: 8px 10px;
  background: #1b2118;
  border: 1px solid #3b4534;
  border-radius: 32px;
  box-shadow: 0 5px 20px #0002;
  isolation: isolate;
}
.ai-composer:focus-within {
  border-color: #63734f;
}
.ai-composer-row {
  flex: 1;
  min-width: 0;
  order: 2;
}
.ai-composer textarea {
  display: block;
  width: 100%;
  min-height: 0;
  max-height: 240px;
  padding: 7px 5px;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  resize: none;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 26px;
  color: var(--text);
  caret-color: var(--text);
}
.ai-composer textarea:focus {
  border: 0;
  box-shadow: none;
  background: transparent;
}
.ai-composer textarea::placeholder {
  color: #90998b;
  opacity: 1;
}
.ai-composer-tools {
  display: contents;
}
.ai-composer .composer-options {
  position: relative;
  order: 1;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.composer-options > summary {
  display: grid;
  place-items: center;
  list-style: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
  color: var(--text);
}
.composer-options > summary::-webkit-details-marker {
  display: none;
}
.composer-options > summary:after {
  content: none;
}
.composer-options > summary:hover {
  background: #2b3325;
}
.composer-options svg {
  width: 21px;
  height: 21px;
}
.composer-options-menu {
  position: absolute;
  bottom: calc(100% + 15px);
  inset-inline-start: 0;
  width: 195px;
  padding: 6px;
  border: 1px solid #3a4432;
  border-radius: 13px;
  background: #20271b;
  box-shadow: 0 10px 35px #0006;
  z-index: 12;
}
.composer-options-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  text-align: start;
  padding: 12px;
  border-radius: 8px;
}
.composer-options-menu button:hover {
  background: #2b3624;
}
.ai-composer-context {
  order: 3;
  min-width: 0;
  flex-shrink: 0;
}
.ai-composer-context:empty {
  display: none;
}
.composer-scope {
  display: block;
}
.composer-scope select {
  max-width: 132px;
  width: auto;
  padding: 6px 20px 6px 6px;
  border: 0;
  border-radius: 8px;
  background-color: transparent;
  color: #aab7a0;
  font-size: 11px;
  font-weight: 500;
  box-shadow: none;
  cursor: pointer;
}
[dir="rtl"] .composer-scope select {
  padding: 6px 6px 6px 20px;
}
.composer-scope select:focus {
  box-shadow: 0 0 0 1px #526344;
}
.ai-composer-send {
  order: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.ai-composer .composer-send {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
  color: #15200c;
  box-shadow: none;
  font-weight: 400;
}
.composer-send > svg {
  width: 22px;
  height: 22px;
}
.ai-composer .composer-send:disabled {
  opacity: 1;
  background: #30382a;
  color: #6f7a66;
  cursor: default;
}
.ai-composer .composer-send.is-busy {
  background: var(--lime);
  color: #15200c;
}
.composer-expand {
  width: 29px;
  height: 29px;
  padding: 5px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a4b09a;
}
.composer-expand svg {
  width: 17px;
  height: 17px;
}
.composer-expand:hover {
  background: #2b3325;
  color: var(--text);
}
.ai-composer.is-multiline {
  display: block;
  padding: 12px;
  border-radius: 26px;
}
.ai-composer.is-multiline .ai-composer-row {
  width: 100%;
  padding-inline-end: 25px;
}
.ai-composer.is-multiline textarea {
  padding: 6px;
  min-height: 54px;
}
.ai-composer.is-multiline .ai-composer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}
.ai-composer.is-multiline .ai-composer-context {
  order: 2;
  margin-inline-start: auto;
}
.ai-composer.is-multiline .ai-composer-send {
  order: 3;
}
.ai-composer.is-multiline .composer-expand {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
}
.ai-composer.is-multiline:has(.ai-composer-context:empty) .ai-composer-send {
  margin-inline-start: auto;
}
.ai-composer.is-expanded {
  position: fixed;
  top: 15dvh;
  inset-inline: 24px;
  width: calc(100% - 48px);
  max-width: 1040px;
  margin-inline: auto;
  z-index: 70;
  box-shadow:
    0 0 0 100vmax #0009,
    0 24px 80px #0009;
}
.ai-composer.is-expanded textarea {
  min-height: 50dvh;
  max-height: 60dvh;
}
.ai-composer.is-processing textarea {
  opacity: 0.7;
}
.ai-composer .button-icon-slot {
  width: 20px;
  height: 20px;
}
/* Existing campaign editing starts as an uncluttered conversation. */
.quiet-editor.content-editor {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0;
  position: relative;
}
.quiet-editor .edit-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 0 18px;
  flex-shrink: 0;
}
.quiet-editor .edit-heading h1 {
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.3px;
  margin: 0;
}
.quiet-editor .edit-heading p {
  font-size: 12px;
  margin-top: 5px;
  color: var(--muted);
  max-width: 650px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.editor-toolbar > .quiet {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 9px 12px;
  border-color: transparent;
  border-radius: 10px;
}
.editor-toolbar .is-selected {
  background: #242d1e;
  border-color: #3a4930;
  color: #dbefc2;
}
.editor-toolbar .campaign-icon {
  width: 16px;
  height: 16px;
}
.editor-more {
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
  border-radius: 0;
}
.editor-more summary {
  display: grid;
  place-items: center;
  list-style: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--muted);
}
.editor-more summary::-webkit-details-marker {
  display: none;
}
.editor-more summary:after {
  content: none;
}
.editor-more summary:hover {
  color: var(--text);
  background: #252d20;
}
.editor-more > div {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 200px;
  padding: 6px;
  border: 1px solid #36422e;
  background: #1d2518;
  border-radius: 13px;
  z-index: 15;
  box-shadow: 0 10px 30px #0005;
}
.editor-more button {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  padding: 12px;
}
.editor-more button:hover {
  background: #2b3624;
}
.edit-session {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 32px;
}
.quiet-editor .edit-chat {
  width: min(100%, 820px);
  max-width: 820px;
  margin-inline: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.quiet-editor .edit-chat-messages {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: auto;
  padding: 28px 8px 24px;
  scrollbar-width: thin;
}
.editor-welcome {
  margin-block: auto;
  text-align: center;
  display: grid;
  gap: 10px;
  padding: 24px 8px;
}
.editor-welcome h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.6px;
}
.editor-welcome p {
  font-size: 13px;
  line-height: 1.8;
  color: #9da995;
}
.quiet-editor .edit-compose {
  position: relative;
  flex-shrink: 0;
  padding: 0 0 22px;
  border: 0;
  display: block;
}
.quiet-editor .chat-message .chat-bubble {
  font-size: 14px;
  line-height: 1.9;
  max-width: 90%;
  padding: 10px 15px;
}
.quiet-editor .from-user .chat-bubble {
  background: #222b1d;
  border: 1px solid #35432b;
  border-radius: 18px;
}
.quiet-editor .from-ai .chat-bubble {
  background: transparent;
  border: 0;
  padding: 0;
  max-width: 100%;
}
.message-review-link {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 13px;
  padding: 6px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #c9e7a6;
  font-size: 12px;
  font-weight: 500;
}
.message-review-link svg {
  width: 14px;
  height: 14px;
}
.quiet-thinking {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #aebba4;
  font-size: 12px;
  min-height: 26px;
}
.quiet-thinking > i {
  width: 5px;
  height: 5px;
  background: var(--lime);
  border-radius: 50%;
  animation: quiet-pulse 1.5s ease-in-out infinite;
}
@keyframes quiet-pulse {
  50% {
    opacity: 0.3;
  }
}
.quiet-editor.has-inspector .edit-session {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(470px, 1.05fr);
  gap: 38px;
}
.quiet-editor.has-inspector .edit-chat {
  width: 100%;
  max-width: none;
}
.edit-inspector {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding-inline-start: 28px;
  border-inline-start: 1px solid #2d3627;
  background: transparent;
}
.inspector-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 15px;
  flex-shrink: 0;
}
.inspector-heading h2 {
  font-size: 16px;
  font-weight: 600;
}
.icon-control {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
}
.icon-control:hover {
  color: var(--text);
  background: #263020;
}
.inspector-selectors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 90px;
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 15px;
}
.inspector-selectors label,
.entity-selector {
  min-width: 0;
  display: grid;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.inspector-selectors select,
.entity-selector select {
  min-width: 0;
  width: 100%;
  padding: 10px;
  background: #151c12;
  border-color: #343f2c;
  border-radius: 9px;
  font-size: 12px;
  color: #dfe8d7;
  overflow: hidden;
  text-overflow: ellipsis;
}
.content-sections {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid #303a29;
  padding: 0;
  margin: 0 0 18px;
  flex-shrink: 0;
}
.content-sections button {
  position: relative;
  padding: 10px 5px 13px;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  min-width: 62px;
}
.content-sections button.active {
  color: var(--text);
}
.content-sections button.active:after {
  content: "";
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  position: absolute;
  bottom: -1px;
  inset-inline: 5px;
}
.quiet-editor .edit-review {
  display: block;
  min-height: 0;
  flex: 1;
  padding: 0 1px 22px;
  overflow: auto;
  scrollbar-width: thin;
}
.section-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 12px;
}
.section-caption .over {
  color: var(--danger);
}
.editor-group {
  display: grid;
  gap: 0;
  border: 1px solid #323b2b;
  border-radius: 17px;
  background: #141a11;
  overflow: hidden;
  min-width: 0;
}
.editor-group:focus-within {
  border-color: #536342;
}
.editor-group > .group-row {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 18px 20px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.editor-group > .group-row + .group-row {
  border-top: 1px solid #303a28;
}
.editor-group .edit-field {
  font-size: 12px;
}
.editor-group .edit-field > span,
.editor-group .field > label,
.editor-group .field > span {
  font-size: 12px;
  font-weight: 500;
  color: #c5d0bc;
}
.editor-group textarea {
  min-height: 100px;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  font-size: 13px;
  line-height: 1.95;
  resize: vertical;
}
.editor-group textarea:focus {
  border: 0;
  box-shadow: none;
  background: transparent;
}
.editor-group input {
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #37422e;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}
.editor-group input:focus {
  border-bottom-color: #9eba78;
  box-shadow: none;
}
.editor-group select {
  padding: 10px;
  border-radius: 8px;
  background: #11180e;
  border-color: #37422e;
  font-size: 12px;
}
.editor-group #edit-headlines {
  min-height: 245px;
}
.editor-group #edit-descriptions {
  min-height: 145px;
}
.editor-group #edit-keywords {
  min-height: 210px;
}
.field-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 12px;
}
.original-content {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 15px 2px;
  margin: 12px 0 0;
  font-size: 12px;
}
.original-content summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}
.original-content h3 {
  font-size: 12px;
  color: #b3c5a2;
  margin: 18px 0 8px;
}
.original-content p {
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 12px;
}
.read-only-row > span {
  font-size: 12px;
  color: var(--muted);
}
.read-only-row bdi {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.quiet-editor .edit-publish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-shrink: 0;
  border-top: 1px solid #30392a;
  background: var(--bg);
  padding: 13px 0 16px;
  font-size: 12px;
}
.quiet-editor .edit-publish button {
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 10px;
}
.quiet-editor .edit-publish #edit-validation {
  color: #adbea0;
  font-size: 11px;
}
.quiet-editor #error {
  font-size: 12px;
  margin: 10px 6px 0;
  line-height: 1.7;
}
.quiet-editor #error:empty {
  display: none;
}
/* Creation conversations use the same composer, with a quiet grouped sidebar. */
.conversation-page .chat-shell {
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 34px;
  min-height: 0;
  flex: 1;
  padding-bottom: 0;
}
.conversation-page .chat-sidebar {
  border: 1px solid #2f3928;
  border-radius: 16px;
  background: #141a11;
  padding: 10px;
  height: fit-content;
  max-height: 100%;
  overflow: auto;
  gap: 0;
}
.conversation-page .chat-sidebar #chat-new {
  border: 0;
  border-radius: 10px;
  background: transparent;
  justify-content: flex-start;
  padding: 12px;
  min-height: 42px;
  font-size: 12px;
}
.conversation-page .chat-sidebar #chat-new:hover {
  background: #242f1d;
}
.conversation-page .chat-sidebar-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 15px 8px;
  gap: 9px;
}
.conversation-page .chat-sidebar-card + .chat-sidebar-card {
  border-top: 1px solid #2e3826;
}
.conversation-page .chat-account-card {
  border-top: 1px solid #2e3826;
  padding-block: 17px;
}
.conversation-page .chat-account-card .eyebrow {
  display: none;
}
.conversation-page .chat-account-card strong {
  font-size: 12px;
  font-weight: 500;
}
.conversation-page .chat-account-card .pill {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  color: #90a47b;
}
.sidebar-section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 3px 7px;
}
.conversation-page .chat-thread-list {
  display: grid;
  gap: 3px;
}
.conversation-page .chat-thread {
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  padding: 10px 9px;
  gap: 4px;
}
.conversation-page .chat-thread.active {
  background: #232e1b;
  color: #d9eac7;
  box-shadow: none;
}
.conversation-page .chat-thread-title {
  font-size: 12px;
  font-weight: 400;
}
.conversation-page .chat-thread small {
  font-size: 10px;
  color: #7d8c70;
}
.conversation-page .chat-workspace {
  min-height: 0;
  gap: 0;
  overflow: visible;
}
.conversation-page .chat-flow {
  padding: 16px max(4px, calc((100% - 820px) / 2)) 28px;
  gap: 24px;
}
.conversation-page .chat-welcome {
  gap: 11px;
  margin-block: auto;
  padding: 25px 4px;
}
.conversation-page .chat-welcome h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.conversation-page .chat-welcome p {
  font-size: 13px;
}
.conversation-page .ai-mark {
  width: 56px;
  height: 56px;
  border: 0;
  background: none;
  margin-bottom: 9px;
}
.conversation-page .ai-mark i {
  display: none;
}
.conversation-page .chat-workspace > .ai-composer {
  max-width: 820px;
  margin: 0 auto 22px;
}
.conversation-page .chat-assist {
  padding: 20px;
  border: 1px solid #35412d;
  background: #151d11;
  border-radius: 17px;
  gap: 14px;
}
.conversation-page .chat-assist > .row > .eyebrow {
  display: none;
}
.conversation-page .chat-assist h3 {
  font-size: 17px;
  font-weight: 500;
}
.conversation-page .summary-item {
  border: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid #303a28;
}
.conversation-page .chat-summary {
  border: 1px solid #303a28;
  border-radius: 13px;
  overflow: hidden;
  gap: 0;
}
/* Draft editor: content in one grouped review area, conversation beside it. */
.draft-workspace {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.draft-workspace .studio-intro {
  padding: 2px 0 19px;
  flex-shrink: 0;
}
.draft-workspace .studio-intro h1 {
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.3px;
}
.draft-workspace .studio-intro p {
  font-size: 12px;
  margin-top: 5px;
}
.draft-workspace .group-switch {
  margin: 0;
  padding: 0 0 14px;
  flex-shrink: 0;
}
.draft-session.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 38px;
  min-height: 0;
  flex: 1;
  align-items: stretch;
}
.draft-content {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.draft-selectors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 16px;
  flex-shrink: 0;
}
.entity-selector > div {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.entity-selector select {
  flex: 1;
  width: 0;
}
.draft-fields {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 2px 24px;
  scrollbar-width: thin;
}
.draft-fields .asset-section {
  padding: 16px 18px;
}
.asset-section h3 {
  font-size: 13px;
  font-weight: 500;
}
.asset-section .asset-list {
  display: grid;
  gap: 0;
}
.asset-section .asset-field {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #2c3526;
  padding: 9px 0;
}
.asset-section .asset-field:last-child {
  border-bottom: 0;
}
.asset-section .asset-field label {
  font-size: 10px;
  color: #87977a;
  white-space: nowrap;
}
.asset-section .asset-field input,
.asset-section .asset-field textarea {
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  min-height: 0;
  line-height: 1.85;
}
.asset-section .asset-field textarea {
  min-height: 72px;
  resize: vertical;
}
.asset-section .asset-meta {
  display: block;
  text-align: end;
}
.asset-section .asset-meta small:first-child {
  display: none;
}
.asset-section .asset-meta small:last-child {
  font-size: 10px;
  color: #788a6b;
  direction: ltr;
  display: block;
}
.asset-section .asset-meta small.over:last-child {
  color: var(--danger);
}
.draft-fields .section-caption #kwcount {
  font-size: 11px;
}
.draft-fields .keyword-tabs {
  display: flex;
  gap: 4px;
}
.draft-fields .keyword-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 6px 11px;
  border-radius: 8px;
  flex: none;
}
.draft-fields .keyword-tabs button.active {
  background: #27321e;
  color: #d4e8bc;
}
.keyword-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.keyword-tools .quiet {
  font-size: 11px;
  padding: 6px 8px;
  border: 0;
}
.keyword-tools .row {
  gap: 4px;
}
.draft-fields #keywords,
.draft-fields #negatives {
  min-height: 300px;
}
.draft-fields .site-edit {
  padding: 18px 0;
  border-top: 1px solid #303a29;
}
.draft-fields .site-edit:first-of-type {
  border-top: 0;
}
.draft-fields .inline-details {
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
}
.site-links-section summary {
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
}
.draft-assistant {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-inline-start: 28px;
  border-inline-start: 1px solid #2e3827;
}
.draft-assistant-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
  padding: 0 0 17px;
}
.draft-assistant-heading h2 {
  font-size: 14px;
  font-weight: 500;
}
.draft-assistant-heading .quiet {
  font-size: 11px;
  border: 0;
  padding: 6px;
}
.draft-ai-chat {
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 20px;
  overflow: auto;
  padding: 12px 5px 24px;
  scrollbar-width: thin;
}
.assistant-placeholder {
  margin-block: auto;
  text-align: center;
  font-size: 13px;
  color: #8f9f82;
  padding: 20px;
}
.draft-ai-chat .chat-bubble {
  font-size: 13px;
  line-height: 1.9;
  padding: 10px 13px;
}
.draft-ai-chat .from-ai .chat-bubble {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 100%;
}
.draft-ai-chat .from-user .chat-bubble {
  background: #222b1c;
  border-color: #34432a;
}
.draft-ai-proposal {
  border: 1px solid #3d4f2c;
  border-radius: 13px;
  background: #1a2413;
  padding: 15px;
  display: grid;
  gap: 13px;
}
.draft-ai-proposal details {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  max-height: 340px;
  overflow: auto;
}
.draft-ai-proposal summary {
  font-size: 12px;
  color: #cfdfbd;
  cursor: pointer;
}
.draft-ai-proposal pre {
  font: inherit;
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
}
.draft-ai-proposal button {
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 9px;
}
.draft-ai-compose {
  flex-shrink: 0;
  padding: 0 0 19px;
}
.draft-workspace .studio-actions {
  flex-shrink: 0;
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #303a29;
  background: var(--bg);
  padding: 13px 0 16px;
  box-shadow: none;
}
.draft-workspace .studio-actions .actionbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}
.draft-workspace .studio-actions button {
  font-size: 12px;
  padding: 10px 15px;
  border-radius: 10px;
}
.draft-workspace .studio-actions .quiet {
  border: 0;
}
.draft-workspace .studio-actions #validstatus {
  font-size: 11px;
}
.draft-workspace > #error:empty {
  display: none;
}
.draft-workspace > #error {
  font-size: 12px;
  flex-shrink: 0;
  margin: 0 0 10px;
}
.workspace-signed-in .generation-orbit .orbit-ring {
  display: none;
}
.workspace-signed-in .generation-orbit {
  width: 80px;
  height: 80px;
  margin-bottom: 5px;
}
.workspace-signed-in .orbit-core {
  border: 0;
  box-shadow: none;
  background: transparent;
}
.workspace-signed-in .generation-screen .eyebrow {
  display: none;
}
.workspace-signed-in .generation-screen h1 {
  font-size: 30px;
}
@media (max-width: 1100px) {
  .quiet-editor.has-inspector .edit-session {
    display: block;
  }
  .quiet-editor.has-inspector .edit-chat {
    display: none;
  }
  .edit-inspector {
    position: absolute;
    inset: 0;
    background: var(--bg);
    border: 0;
    padding: 0;
    z-index: 5;
  }
  .draft-session.studio-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
  }
  .draft-assistant {
    padding-inline-start: 20px;
  }
  .composer-scope select {
    max-width: 105px;
    font-size: 10px;
  }
  .conversation-page .chat-shell {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 24px;
  }
}
@media (max-width: 760px) {
  .workspace-signed-in .app-topbar,
  .workspace-signed-in.workspace-active > header.app-topbar {
    height: 112px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 62px 50px;
    padding: 0 14px;
    gap: 0 12px;
    position: sticky;
    top: 0;
  }
  .workspace-signed-in .app-topbar > .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .workspace-signed-in .topbar-right {
    grid-column: 2;
    grid-row: 1;
  }
  .workspace-nav {
    grid-column: 1/-1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: center;
    width: 100%;
    gap: 12px;
    border-top: 1px solid #273020;
  }
  .workspace-nav button {
    font-size: 12px;
    padding: 8px 12px;
    min-width: 82px;
    justify-content: center;
    flex: 1;
  }
  .workspace-nav button.active:after {
    inset-inline: 20px;
  }
  .workspace-signed-in
    main:not(.conversation-page):not(.content-edit-page):not(.studio-wide):not(
      .is-generating
    ) {
    width: calc(100% - 28px);
    margin: 18px auto;
  }
  .workspace-signed-in .campaign-panel {
    padding: 17px 14px;
    border-radius: 15px;
  }
  .workspace-signed-in main.conversation-page,
  .workspace-signed-in main.content-edit-page,
  .workspace-signed-in main.studio-wide {
    width: 100%;
    padding: 15px 14px 0;
    margin: 0;
    max-width: none;
    overflow: hidden;
  }
  .workspace-signed-in.workspace-active {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .quiet-editor .edit-heading {
    gap: 12px;
    padding: 1px 0 14px;
  }
  .quiet-editor .edit-heading h1 {
    font-size: 19px;
  }
  .quiet-editor .edit-heading p {
    font-size: 11px;
    max-width: 205px;
  }
  .editor-toolbar {
    gap: 3px;
  }
  .editor-toolbar > .quiet {
    padding: 8px;
    font-size: 11px;
  }
  .editor-toolbar .campaign-icon {
    width: 14px;
    height: 14px;
  }
  .quiet-editor .edit-chat-messages {
    padding: 14px 2px 20px;
    gap: 21px;
  }
  .editor-welcome {
    padding: 20px 3px;
  }
  .editor-welcome h2 {
    font-size: 24px;
  }
  .editor-welcome p {
    font-size: 12px;
  }
  .quiet-editor .edit-compose {
    padding-bottom: 14px;
  }
  .ai-composer {
    min-height: 58px;
    padding: 7px 8px;
    gap: 5px;
    border-radius: 29px;
  }
  .ai-composer textarea {
    font-size: 16px;
    line-height: 25px;
    padding: 6px 4px;
  }
  .ai-composer-context .composer-scope select {
    max-width: 97px;
    font-size: 10px;
    padding-inline: 3px 17px;
  }
  .ai-composer .composer-send {
    width: 34px;
    height: 34px;
  }
  .ai-composer.is-multiline {
    border-radius: 24px;
    padding: 10px;
  }
  .ai-composer.is-expanded {
    top: 12dvh;
    inset-inline: 12px;
    width: calc(100% - 24px);
  }
  .inspector-selectors {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 78px;
    gap: 7px;
  }
  .inspector-selectors label {
    font-size: 10px;
  }
  .inspector-selectors select {
    padding: 9px 6px;
    font-size: 11px;
  }
  .inspector-heading {
    padding: 2px 0 13px;
  }
  .content-sections {
    gap: 16px;
    margin-bottom: 15px;
  }
  .editor-group {
    border-radius: 14px;
  }
  .editor-group > .group-row {
    padding: 15px 16px;
    gap: 11px;
  }
  .quiet-editor .edit-review {
    padding-bottom: 16px;
    overflow: auto;
  }
  .quiet-editor .edit-publish {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0 13px;
  }
  .quiet-editor .edit-publish > .row {
    width: auto;
    margin-inline-start: auto;
  }
  .quiet-editor .edit-publish button {
    padding: 9px 12px;
    font-size: 11px;
    flex: none;
  }
  .conversation-page .chat-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 14px;
  }
  .conversation-page .chat-sidebar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    width: 100%;
    height: auto;
    max-height: 58px;
    gap: 8px;
    padding: 5px 7px;
    overflow: visible;
    border-radius: 12px;
  }
  .conversation-page .chat-sidebar #chat-new {
    width: auto;
    flex: none;
    padding: 8px;
    font-size: 11px;
    gap: 5px;
  }
  .conversation-page .chat-sidebar #chat-new svg {
    width: 14px;
    height: 14px;
  }
  .conversation-page .chat-account-card {
    padding: 5px 7px;
    border: 0;
    display: grid;
    gap: 3px;
    margin-inline-start: auto;
    order: 0;
  }
  .conversation-page .chat-account-card strong {
    font-size: 10px;
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .conversation-page .chat-account-card .pill {
    font-size: 10px;
  }
  .conversation-page .chat-sidebar-card:has(.chat-thread-list) {
    display: none;
  }
  .conversation-page .chat-workspace {
    flex: 1;
    min-height: 0;
    height: auto;
    overflow: hidden;
  }
  .conversation-page .chat-flow {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 8px 0 20px;
  }
  .conversation-page .chat-workspace > .ai-composer {
    position: relative;
    bottom: auto;
    width: 100%;
    margin: 0 0 14px;
  }
  .conversation-page .chat-welcome h1 {
    font-size: 26px;
  }
  .conversation-page .chat-welcome p {
    font-size: 12px;
  }
  .conversation-page .chat-assist {
    padding: 16px;
  }
  .draft-workspace .studio-intro {
    padding: 0 0 14px;
  }
  .draft-workspace .studio-intro h1 {
    font-size: 19px;
  }
  .draft-workspace .studio-intro p {
    font-size: 11px;
  }
  .draft-session.studio-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: auto;
    min-height: 0;
    align-items: stretch;
    scrollbar-width: thin;
  }
  .draft-content {
    flex: none;
    min-height: 380px;
  }
  .draft-fields {
    overflow: visible;
    min-height: 0;
    flex: none;
    padding-bottom: 0;
  }
  .draft-assistant {
    flex: none;
    border-inline-start: 0;
    border-top: 1px solid #303a29;
    padding: 18px 0 0;
    min-height: 250px;
  }
  .draft-ai-chat {
    max-height: 320px;
    min-height: 100px;
    flex: none;
    padding: 8px 3px 18px;
    overflow: auto;
  }
  .draft-ai-compose {
    padding-bottom: 15px;
  }
  .draft-assistant-heading {
    padding-bottom: 9px;
  }
  .draft-selectors {
    gap: 10px;
    padding-bottom: 12px;
  }
  .entity-selector label {
    font-size: 10px;
  }
  .entity-selector select {
    font-size: 11px;
    padding: 9px 6px;
  }
  .entity-selector > div {
    gap: 1px;
  }
  .entity-selector .icon-control {
    width: 25px;
    min-width: 25px;
    font-size: 18px;
  }
  .asset-section .asset-field {
    grid-template-columns: 49px minmax(0, 1fr) 34px;
    gap: 6px;
    padding: 8px 0;
  }
  .asset-section .asset-field label {
    font-size: 9px;
  }
  .asset-section .asset-field input,
  .asset-section .asset-field textarea {
    font-size: 13px;
  }
  .draft-workspace .studio-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 0 12px;
  }
  .draft-workspace .studio-actions .actionbar {
    gap: 6px;
    justify-content: flex-end;
  }
  .draft-workspace .studio-actions button {
    font-size: 11px;
    padding: 9px 11px;
    flex: none;
  }
  .draft-workspace .studio-actions #validstatus:empty {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .quiet-thinking > i {
    animation: none;
  }
}
.ai-composer textarea {
  unicode-bidi: normal;
}
.ai-composer textarea:placeholder-shown {
  direction: inherit;
  text-align: start;
}
.asset-section .add-asset {
  width: fit-content;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #9ab480;
  font-size: 11px;
  font-weight: 400;
}
.draft-chat-toggle,
.history-toggle {
  display: none;
}
@media (max-width: 760px) {
  .draft-chat-toggle {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 8px 11px;
    border-color: #33402b;
    border-radius: 9px;
  }
  .draft-session.studio-grid {
    overflow: hidden;
  }
  .draft-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  .draft-fields {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding-bottom: 15px;
  }
  .draft-session .draft-assistant {
    display: none;
  }
  .draft-session.is-chat-view .draft-content {
    display: none;
  }
  .draft-session.is-chat-view .draft-assistant {
    display: flex;
    flex: 1;
    min-height: 0;
    border: 0;
    padding: 0;
  }
  .draft-session.is-chat-view .draft-ai-chat {
    min-height: 0;
    max-height: none;
    flex: 1;
    overflow: auto;
  }
  .conversation-page .chat-sidebar-card.chat-history-card {
    position: relative;
    display: block;
    order: 1;
    flex: none;
    width: auto;
    padding: 0;
    border: 0;
    overflow: visible;
  }
  .conversation-page .chat-history-card:not(:has(.chat-thread)) {
    display: none;
  }
  .chat-history-card > .sidebar-section-label {
    display: none;
  }
  .history-toggle {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 7px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
  }
  .history-toggle svg {
    width: 18px;
    height: 18px;
  }
  .conversation-page .chat-history-card .chat-thread-list {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-end: 0;
    width: 250px;
    max-width: calc(100vw - 40px);
    max-height: 300px;
    overflow: auto;
    padding: 8px;
    border: 1px solid #39462f;
    border-radius: 13px;
    background: #1b2415;
    z-index: 15;
    box-shadow: 0 12px 35px #0006;
  }
  .conversation-page .chat-history-card.is-open .chat-thread-list {
    display: grid;
  }
  .conversation-page .chat-history-card .chat-thread {
    min-width: 0;
    max-width: none;
  }
}
