.seedance-inline-editor { min-width: 0; margin: 7px 0 10px; }
.seedance-prompt-surface {
  position: relative;
  border-radius: 8px;
  background: var(--surface, #fff);
}
.seedance-prompt-text, .seedance-prompt-mirror {
  box-sizing: border-box;
  margin: 0;
  padding: 11px 12px;
  color: var(--ink, #262624);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  tab-size: 4;
  text-align: left;
}
.seedance-prompt-text {
  display: block;
  width: 100%;
  height: min(290px, 42dvh);
  min-height: 192px;
  resize: none;
  border: 1px solid var(--line, #dfded9);
  border-radius: 8px;
  background: transparent;
}
.seedance-prompt-text:focus { outline: 2px solid #34745d; outline-offset: 1px; }
.seedance-prompt-mirror {
  position: absolute;
  display: none;
  pointer-events: none;
  overflow: hidden;
  border: 0;
}
.seedance-inline-editor.is-mounted .seedance-prompt-mirror { display: block; }
.seedance-inline-editor.is-mounted .seedance-prompt-text { color: transparent; caret-color: var(--ink, #262624); }
.seedance-inline-editor.is-mounted .seedance-prompt-text::selection { color: transparent; background: #b9dbf0; }
.seedance-prompt-surface.has-mention-hover .seedance-prompt-text { cursor: pointer; }
.seedance-prompt-chip {
  color: #205b49;
  background: #e7f3ec;
  border-radius: 3px;
}
.seedance-prompt-chip.is-hover { color: #103f35; background: #c8e8da; }
.seedance-prompt-chip.is-missing { color: #9a3937; background: #f9e9e7; }
.seedance-prompt-chip.is-selected { color: #16435a; background: #a5d3f0; }
.inline-prompt-notes {
  margin: 7px 0 0;
  padding: 4px 10px;
  border-inline-start: 2px solid var(--line, #dfded9);
  color: var(--muted, #666);
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.seedance-prompt-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.seedance-prompt-tools .button { min-height: 32px; line-height: 1.25; }
.seedance-prompt-tools .seedance-prompt-add { min-width: 34px; }
.seedance-prompt-tools .button:disabled { opacity: .55; }
.seedance-prompt-status { flex: 1 1 60px; min-width: 0; color: var(--muted, #666); font-size: 12px; overflow-wrap: anywhere; }
.seedance-prompt-status[data-tone="error"] { color: #9a3937; }
.seedance-prompt-status[data-tone="success"] { color: #23614c; }
.seedance-prompt-tools [hidden] { display: none; }
.seedance-prompt-popover {
  position: fixed;
  z-index: 1200;
  box-sizing: border-box;
  border: 1px solid var(--line, #e3e4e0);
  border-radius: 8px;
  color: var(--ink, #242723);
  background: var(--surface, #fff);
  box-shadow: 0 12px 32px rgb(24 36 31 / 18%), 0 2px 7px rgb(24 36 31 / 10%);
  font-size: 14px;
  letter-spacing: 0;
}
.seedance-prompt-picker { width: min(330px, calc(100vw - 16px)); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; max-height: min(400px, calc(100dvh - 16px)); overflow: hidden; }
.seedance-asset-search {
  box-sizing: border-box;
  min-width: 0;
  margin: 8px;
  padding: 6px 9px;
  height: 34px;
  border: 1px solid var(--line, #dedfda);
  border-radius: 5px;
  font: inherit;
  color: inherit;
  background: var(--surface, #fff);
}
.seedance-asset-search:focus, .seedance-prompt-popover button:focus-visible { outline: 2px solid #34745d; outline-offset: -2px; }
.seedance-asset-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line, #dedfda); padding: 0 8px; }
.seedance-asset-tabs button, .seedance-asset-option, .seedance-asset-upload {
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.seedance-asset-tabs button { min-height: 33px; text-align: center; border-bottom: 2px solid transparent; color: var(--muted, #666); }
.seedance-asset-tabs button[aria-pressed="true"] { color: #215b48; border-color: #34745d; font-weight: 650; }
.seedance-asset-list { min-height: 52px; max-height: 228px; overflow: auto; padding: 4px; overscroll-behavior: contain; }
.seedance-asset-option { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 42px; width: 100%; padding: 4px 8px; border-radius: 5px; }
.seedance-asset-option:hover, .seedance-asset-option[aria-selected="true"], .seedance-asset-upload:hover { background: #e8f3ee; }
.seedance-asset-name, .seedance-asset-title, .seedance-asset-meta { min-width: 0; overflow-wrap: anywhere; }
.seedance-asset-meta, .seedance-asset-empty { color: var(--muted, #666); font-size: 12px; }
.seedance-asset-empty { margin: 12px 8px; }
.seedance-asset-thumb, .seedance-asset-glyph {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 5px;
  object-fit: cover;
  background: #edf0ee;
  color: #28604c;
}
.seedance-asset-thumb[hidden] { display: block; visibility: hidden; }
.seedance-asset-glyph svg, .seedance-asset-upload svg { width: 17px; height: 17px; }
.seedance-asset-upload { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 12px; border-top: 1px solid var(--line, #dedfda); }
.seedance-prompt-preview { display: grid; gap: 7px; padding: 8px; width: min(200px, calc(100vw - 16px)); }
.seedance-asset-title { line-height: 1.25; }
.seedance-asset-large { display: block; width: 100%; max-height: min(170px, 36dvh); min-height: 40px; border-radius: 5px; object-fit: contain; background: #edf0ee; }
.seedance-prompt-preview audio { display: block; width: 100%; height: 34px; }
.maker-order-card .maker-project-name-line { align-items: start; }
.maker-order-card .maker-order-inline-label { line-height: 1.45; }
.maker-project-name-stack {
  display: grid;
  justify-items: start;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.maker-project-name-stack .maker-project-name-edit { display: block; max-width: 100%; }
.maker-order-card .maker-project-collaboration {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--maker-mode-accent, #4f5c57);
  font: inherit;
  line-height: 1.4;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.maker-project-collaboration:hover { text-decoration-thickness: 2px; }
.maker-project-collaboration:disabled { opacity: .6; cursor: wait; }
.maker-order-card .maker-order-card-actions { justify-items: start; }
.maker-order-card .maker-project-open {
  --open-accent: var(--maker-mode-accent, #4f5c57);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--open-accent) 29%, white);
  border-radius: 7px;
  background: color-mix(in srgb, var(--open-accent) 7%, white);
  color: color-mix(in srgb, var(--open-accent) 76%, #191918);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
  text-decoration: none;
}
.maker-order-card .maker-project-open:hover {
  background: color-mix(in srgb, var(--open-accent) 13%, white);
  border-color: color-mix(in srgb, var(--open-accent) 48%, white);
}
.maker-project-open span { overflow-wrap: anywhere; }
.maker-project-open svg { width: 15px; height: 15px; flex: 0 0 auto; }
.maker-project-open:focus-visible, .maker-project-collaboration:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
@media (max-width: 540px) {
  .seedance-prompt-text, .seedance-prompt-mirror { padding: 9px; }
  .seedance-prompt-status { flex-basis: 0; }
  .seedance-prompt-status:not(:empty) { order: 4; flex-basis: 100%; }
}
