:root {
  font-family: Manrope, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #242d32;
  background: #f6f8f8;
  font-synthesis: none;
  letter-spacing: 0;
  --bg: #f6f8f8;
  --panel: #fff;
  --subtle: #f6f8f8;
  --text: #242d32;
  --muted: #889196;
  --border: #e5eaea;
  --accent: #147c72;
  --accent-dark: #0b655c;
  --accent-soft: #e9f4f0;
  --error: #b84b49;
  --shadow: 0 8px 30px #233f4110;
  --rail: 80px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: 0;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}
[hidden] {
  display: none !important;
}
svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.danger {
  color: var(--error) !important;
}
.rail {
  width: var(--rail);
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 22px 0 18px;
  z-index: 30;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 8px #147c7218;
}
.brand-mark svg {
  width: 23px;
  height: 23px;
}
.rail nav {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 44px;
}
.rail-item {
  width: 60px;
  height: 63px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #7a8589;
  font-size: 11px;
  position: relative;
  border-radius: 6px;
}
.rail-item svg {
  width: 21px;
  height: 21px;
}
.rail-item:hover {
  background: var(--subtle);
  color: var(--text);
}
.rail-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.rail-item.active:before {
  content: "";
  position: absolute;
  left: -10px;
  height: 26px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.rail-bottom {
  margin-top: auto;
  display: grid;
  gap: 6px;
}
.rail-bottom .rail-item {
  height: 54px;
}
.rail-avatar {
  width: 34px;
  height: 34px;
  background: #e8eceb;
  border: 1px solid var(--border);
  border-radius: 50%;
  margin: 14px auto 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.app-shell {
  margin-left: var(--rail);
}
.topbar {
  min-height: 82px;
  padding: 0 42px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-name {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.brand-name > span:nth-of-type(2) {
  font-size: 12px;
  color: #768187;
  font-weight: 500;
}
.brand-divider {
  height: 16px;
  width: 1px;
  background: var(--border);
}
.version-tag {
  font-size: 9px;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 3px 5px;
  color: var(--muted);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 23px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #b7c1c2;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot.online {
  background: #329f76;
  box-shadow: 0 0 0 3px #329f7610;
}
.status-dot.failed {
  background: #c7845a;
}
.wallet-button {
  height: 35px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}
.wallet-button > svg:first-child {
  color: #b69352;
  width: 17px;
}
.wallet-button b {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  min-width: 16px;
}
.wallet-plus {
  width: 18px !important;
  height: 18px;
  background: var(--subtle);
  border-radius: 3px;
  color: var(--accent);
}
.account-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 9px 13px;
  font-size: 12px;
  background: var(--panel);
}
.account-button:hover {
  border-color: var(--accent);
}
main {
  max-width: 1476px;
  padding: 44px 56px 0;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
  min-height: 75px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}
.eyebrow > span {
  width: 16px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.5;
  font-weight: 750;
  margin-top: 5px;
}
.heading-dot {
  color: var(--accent);
  margin-left: 3px;
}
.heading-right {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: var(--muted);
  align-self: flex-end;
  margin-bottom: 7px;
}
.icon-button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.icon-button svg {
  width: 16px;
  height: 16px;
}
.composer {
  border: 1px solid #dce5e2;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  position: relative;
}
.composer:focus-within {
  border-color: #8db9ab;
}
.composer-top {
  padding: 18px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.segmented {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--subtle);
}
.segmented button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--muted);
}
.segmented svg {
  width: 14px;
  height: 14px;
}
.segmented button.active {
  color: var(--accent);
  background: var(--panel);
  box-shadow: 0 1px 4px #122a2510;
  font-weight: 700;
}
.composer-note {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.composer-note svg {
  width: 12px;
  height: 12px;
}
.composer-body {
  display: flex;
  min-height: 240px;
  padding: 22px;
  gap: 22px;
}
.prompt-area {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.prompt-area textarea {
  width: 100%;
  min-height: 174px;
  resize: vertical;
  line-height: 1.9;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 14px;
  color: var(--text);
}
textarea::placeholder,
input::placeholder {
  color: #a0a7aa;
}
.prompt-area textarea:focus {
  outline: none;
}
.prompt-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  padding-top: 15px;
  margin-top: auto;
}
.mention-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  padding: 0;
}
.mention-trigger > span {
  color: var(--accent);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
}
.reference-panel {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding-right: 22px;
  max-height: 330px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.media-counters {
  display: flex;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
}
.media-counters > span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.media-counters svg {
  width: 11px;
  height: 11px;
}
.upload-drop {
  width: 100%;
  border: 1px dashed #b5ccc3;
  border-radius: 5px;
  min-height: 112px;
  background: #f9fbfa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--accent);
  transition: background 0.15s;
}
.upload-drop:hover,
.composer.dragover .upload-drop {
  background: var(--accent-soft);
}
.upload-drop > svg {
  width: 23px;
  height: 23px;
  margin-bottom: 3px;
}
.upload-drop b {
  font-size: 11px;
  font-weight: 600;
}
.upload-drop > span {
  color: var(--muted);
  font-size: 9px;
}
.upload-options {
  display: flex;
  justify-content: space-between;
  padding: 9px 0 6px;
  gap: 6px;
}
.upload-options button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
  padding: 3px 0;
}
.upload-options button:hover {
  color: var(--accent);
}
.upload-options svg {
  width: 12px;
  height: 12px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.media-item {
  position: relative;
  aspect-ratio: 1;
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 0;
  overflow: hidden;
}
.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-item .media-glyph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.media-item .media-glyph svg {
  width: 19px;
}
.media-item .media-token {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fffe;
  font-size: 8px;
  text-align: center;
  line-height: 19px;
  color: var(--accent);
}
.media-remove {
  position: absolute;
  right: 2px;
  top: 2px;
  background: #ffffffdf;
  color: #4d5a5b;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
}
.media-remove svg {
  width: 11px;
  height: 11px;
}
.media-preview-button {
  padding: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 17px 22px;
  border-top: 1px solid var(--border);
  background: #fbfcfb;
  border-radius: 0 0 8px 8px;
}
.generation-settings {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  flex-wrap: wrap;
}
.setting-select {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0 9px;
  background: var(--panel);
  min-width: 0;
  max-width: 100%;
}
.setting-select > svg:first-child {
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.setting-select > svg:last-child {
  width: 11px;
  height: 11px;
  color: var(--muted);
  pointer-events: none;
}
.setting-select select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font-size: 11px;
  min-width: 0;
  max-width: 100%;
  padding: 0 1px;
  cursor: pointer;
}
.model-setting {
  max-width: 250px;
}
.model-setting select {
  max-width: 200px;
}
.model-setting > svg:first-child {
  color: var(--accent);
}
.toolbar-divider {
  width: 1px;
  height: 19px;
  background: var(--border);
  margin: 0 5px;
}
.generate-action {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-left: auto;
}
.estimate {
  font-size: 10px;
  text-align: right;
  color: var(--muted);
  line-height: 1.7;
}
.estimate b {
  font-size: 17px;
  color: var(--accent);
  margin: 0 3px;
  font-weight: 800;
}
.estimate small {
  display: block;
  font-size: 9px;
}
.primary-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 5px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 3px 6px #147c7212;
  white-space: nowrap;
}
.primary-button:hover {
  background: var(--accent-dark);
}
.primary-button svg {
  width: 16px;
  height: 16px;
}
.primary-button > svg:last-child:not(:first-child) {
  width: 13px;
}
.primary-button.compact {
  min-height: 35px;
  font-size: 11px;
  padding: 0 13px;
}
.workspace-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  color: #909b9f;
  margin: 11px 2px 35px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--accent);
  padding: 5px 0;
}
.text-button svg {
  width: 13px;
}
.outline-button {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--panel);
  font-size: 11px;
  white-space: nowrap;
}
.outline-button:hover {
  border-color: #b9cdc6;
  background: var(--subtle);
}
.outline-button svg {
  width: 13px;
  height: 13px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-heading h2 {
  font-size: 16px;
  font-weight: 700;
}
.count-label {
  font-size: 10px;
  padding: 3px 7px;
  min-width: 23px;
  text-align: center;
  background: #e9eeeb;
  color: #6d7d75;
  border-radius: 4px;
}
.recent-section {
  margin-bottom: 33px;
}
.recent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 147px;
  color: var(--muted);
  font-size: 12px;
  gap: 9px;
  width: 100%;
  border: 1px dashed #dce3e0;
  border-radius: 6px;
  grid-column: 1/-1;
  background: #ffffff5c;
}
.empty-state > svg {
  width: 27px;
  height: 27px;
  color: #a7bab1;
  margin-bottom: 3px;
}
.empty-state p {
  font-size: 10px;
  color: #9ca5a4;
}
.empty-state .outline-button {
  margin-top: 5px;
  font-size: 10px;
  min-height: 30px;
}
.result-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.result-cover {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9eeec;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.result-cover img,
.result-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.result-cover > svg {
  color: #99ada4;
  width: 29px;
  height: 29px;
}
.cover-play {
  position: absolute;
  background: #172d2580;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.cover-play svg {
  width: 15px;
  margin-left: 2px;
}
.cover-tag {
  position: absolute;
  bottom: 9px;
  right: 9px;
  color: white;
  background: #12251daf;
  border-radius: 3px;
  font-size: 9px;
  padding: 3px 5px;
}
.result-info {
  padding: 12px;
}
.result-info h3 {
  font-size: 11px;
  line-height: 1.7;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 0 0 9px;
}
.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  gap: 6px;
}
.task-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  white-space: nowrap;
}
.task-status:before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}
.task-status.success {
  color: #2b906b;
}
.task-status.failed {
  color: #b35b54;
}
.task-status.active {
  color: #b18c40;
}
.task-status.pending {
  color: #85948c;
}
.draft-section {
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.draft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.draft-card {
  text-align: left;
  padding: 0;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  aspect-ratio: 2.55;
  background: #233c33;
}
.draft-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s;
  filter: brightness(0.78);
}
.draft-card:hover img {
  transform: scale(1.04);
}
.draft-overlay {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -70px 70px -35px #0b1a16c9;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  padding: 15px 17px;
  color: #fff;
}
.draft-overlay small {
  font-size: 8px;
  opacity: 0.8;
  margin-bottom: 5px;
}
.draft-overlay b {
  font-size: 14px;
  font-weight: 600;
}
.draft-overlay svg {
  position: absolute;
  right: 15px;
  bottom: 18px;
  width: 16px;
}
.page-footer {
  margin-top: 45px;
  padding: 18px 0 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #a1aaa7;
  font-size: 8px;
}
.footer-dot {
  padding: 0 8px;
  color: #c6ccca;
}
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 14px;
  min-height: 54px;
}
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.filter-tabs button {
  height: 53px;
  font-size: 12px;
  padding: 0;
  position: relative;
  color: var(--muted);
}
.filter-tabs button.active {
  font-weight: 700;
  color: var(--accent);
}
.filter-tabs button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.search-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.search-field {
  height: 35px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 190px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--panel);
  padding: 0 11px;
}
.search-field svg {
  color: var(--muted);
  width: 14px;
  height: 14px;
}
.search-field input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  font-size: 11px;
  padding: 0;
  outline: none;
}
.search-toolbar > .search-field {
  flex: 1;
  max-width: 360px;
}
.search-toolbar > select,
.date-field,
.pagination select {
  height: 35px;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0 10px;
  background: var(--panel);
  font-size: 11px;
  min-width: 0;
}
.search-toolbar > select {
  max-width: 240px;
}
.date-field {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}
.date-field input {
  width: 120px;
  min-width: 0;
  padding: 0;
  border: 0;
  font-size: 10px;
  background: transparent;
  color: var(--text);
}
.date-field > span {
  font-size: 9px;
}
.task-table {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
}
.task-table-head,
.task-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 105px 95px 135px 92px;
  gap: 20px;
  align-items: center;
  padding: 13px 19px;
}
.task-table-head {
  background: var(--subtle);
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.task-row {
  border-bottom: 1px solid var(--border);
  min-height: 99px;
}
.task-description {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.task-thumb {
  width: 91px;
  aspect-ratio: 16/10;
  background: var(--subtle);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
  color: #96aca1;
}
.task-thumb img,
.task-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.task-copy {
  min-width: 0;
}
.task-copy > button {
  text-align: left;
  padding: 0;
  font-size: 11px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.task-copy small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
  display: block;
  margin-top: 6px;
}
.task-charge {
  font-size: 12px;
  font-weight: 600;
}
.task-charge small,
.task-time small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.task-time {
  font-size: 10px;
  color: #667778;
}
.task-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.task-row .icon-button {
  border: 1px solid var(--border);
  width: 29px;
  height: 29px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 19px;
  font-size: 10px;
  color: var(--muted);
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pagination .icon-button {
  border: 1px solid var(--border);
}
.pagination select {
  height: 30px;
  font-size: 10px;
  max-width: 110px;
}
.pagination #pageNumber {
  min-width: 26px;
  text-align: center;
  color: var(--accent);
  font-weight: 700;
}
.task-table .empty-state {
  border: 0;
  min-height: 230px;
}
.local-storage-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}
.local-storage-label svg {
  width: 13px;
}
.asset-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 22px 0;
}
.asset-toolbar .search-field {
  width: 260px;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 17px;
}
.asset-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
  min-width: 0;
  position: relative;
}
.asset-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.asset-cover {
  aspect-ratio: 1.45;
  position: relative;
  overflow: hidden;
  background: var(--subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  color: #8aa99b;
}
.asset-cover > img,
.asset-cover > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.asset-cover > svg {
  width: 30px;
  height: 30px;
}
.asset-kind {
  position: absolute;
  left: 8px;
  top: 8px;
  border-radius: 3px;
  background: #22392ecc;
  color: white;
  font-size: 8px;
  padding: 3px 6px;
}
.asset-details {
  padding: 11px;
}
.asset-details > b {
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.asset-details > div {
  font-size: 8px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  gap: 5px;
}
.asset-actions {
  position: absolute;
  right: 6px;
  top: 6px;
  display: flex;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.15s;
}
.asset-card:hover .asset-actions,
.asset-card:focus-within .asset-actions {
  opacity: 1;
}
.asset-actions .icon-button {
  width: 25px;
  height: 25px;
  background: #fffffff2;
  border: 1px solid var(--border);
}
.asset-actions svg {
  width: 12px;
  height: 12px;
}
.asset-selected-mark {
  position: absolute;
  right: 8px;
  top: 8px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
}
.asset-selected-mark svg {
  width: 12px;
}
.asset-grid > .empty-state {
  min-height: 260px;
}
.dialog {
  padding: 25px;
  max-width: calc(100vw - 30px);
  width: 440px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 30px 100px #162c2933;
  max-height: 90dvh;
  overflow-y: auto;
}
.dialog::backdrop {
  background: #15272366;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  font-size: 19px;
  line-height: 1.5;
}
.dialog-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 4px;
}
.dialog-heading > .icon-button {
  align-self: flex-start;
}
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin: 18px 0 9px;
}
.dialog input:not([type="checkbox"]),
.dialog textarea,
.dialog > form > select {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--subtle);
  min-height: 42px;
  padding: 10px 12px;
  font-size: 12px;
  width: 100%;
  min-width: 0;
}
.dialog textarea {
  resize: vertical;
  line-height: 1.8;
}
.dialog input:focus,
.dialog textarea:focus {
  border-color: var(--accent);
}
.credential-input {
  position: relative;
}
.credential-input input {
  padding-right: 42px !important;
}
.credential-input .icon-button {
  position: absolute;
  right: 5px;
  top: 5px;
}
.checkbox-label {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  margin-top: 13px;
}
.checkbox-label input {
  accent-color: var(--accent);
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 25px;
  flex-wrap: wrap;
}
.dialog-actions > .danger {
  margin-right: auto;
}
.form-error {
  color: var(--error);
  font-size: 11px;
  line-height: 1.8;
  white-space: pre-wrap;
  margin-top: 13px;
}
.recharge-balance {
  padding: 20px;
  background: var(--accent-soft);
  border-radius: 5px;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.recharge-balance > span {
  font-size: 11px;
}
.recharge-balance strong {
  font-size: 30px;
  font-weight: 700;
}
.recharge-balance small {
  font-size: 10px;
  color: #72988b;
}
.account-summary {
  margin-top: 18px;
  padding: 15px;
  background: var(--subtle);
  font-size: 11px;
  line-height: 2;
  border-radius: 5px;
}
.copy-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 5px;
}
.copy-line code {
  font-size: 11px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.api-dialog {
  width: 600px;
}
.api-dialog pre {
  font-size: 11px;
  line-height: 1.8;
  padding: 16px;
  border-radius: 5px;
  overflow: auto;
  background: #1b2c28;
  color: #d9e8e0;
  margin: 20px 0 0;
  max-height: 340px;
}
.library-dialog {
  width: 850px;
}
.library-dialog .asset-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 140px;
  max-height: 55dvh;
  overflow: auto;
}
.task-dialog {
  width: 780px;
}
.task-player {
  background: #111a17;
  border-radius: 5px;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 180px;
  position: relative;
}
.task-player > video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 52dvh;
  object-fit: contain;
}
.task-player .player-placeholder {
  padding: 42px;
  text-align: center;
  color: #b2c8bc;
  font-size: 12px;
  line-height: 2;
}
.player-placeholder > svg {
  display: block;
  margin: 0 auto 14px;
  width: 28px;
  height: 28px;
}
.detail-meta {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 17px 0;
}
.detail-meta > span {
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 10px;
  color: var(--muted);
}
.detail-prompt {
  font-size: 12px;
  line-height: 1.9;
  max-height: 170px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 14px;
  background: var(--subtle);
  border-radius: 5px;
}
.detail-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 15px;
  overflow-wrap: anywhere;
}
.detail-error,
.error-detail {
  font-family: inherit;
  color: var(--error);
  background: #bb635309;
  padding: 14px;
  border: 1px solid #bb635325;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 13px 0;
}
.error-detail {
  max-height: 50dvh;
  overflow: auto;
}
.media-dialog {
  width: 760px;
}
.media-dialog img,
.media-dialog video {
  max-width: 100%;
  max-height: 65dvh;
  object-fit: contain;
  display: block;
  margin: auto;
}
.media-dialog audio {
  width: 100%;
  margin: 22px 0;
}
.mention-menu {
  position: absolute;
  left: 0;
  bottom: 34px;
  width: min(340px, 100%);
  max-height: 230px;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 30px #14382d18;
  z-index: 20;
  padding: 5px;
}
.mention-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px;
  text-align: left;
  border-radius: 4px;
  min-height: 48px;
}
.mention-option[aria-selected="true"] {
  background: var(--accent-soft);
}
.mention-option .mention-icon {
  width: 33px;
  height: 33px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--subtle);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.mention-icon > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mention-option b {
  font-size: 10px;
  font-weight: 600;
}
.mention-option small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 230px;
  margin-top: 4px;
}
.mention-empty {
  font-size: 11px;
  padding: 15px;
  color: var(--muted);
}
.editor-alert {
  padding: 10px 22px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--error);
  border-top: 1px solid #b95d4c22;
  background: #b95d4c05;
  white-space: pre-wrap;
}
.pending-notice {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 11px 22px;
  background: #f7efdc;
  color: #9c772e;
  font-size: 10px;
  flex-wrap: wrap;
}
.pending-notice svg {
  width: 14px;
  height: 14px;
}
.pending-notice > button {
  margin-left: auto;
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 40px);
  transform: translateX(-50%);
  max-width: calc(100vw - 35px);
  padding: 12px 19px;
  background: #253e35;
  color: #fff;
  border: 1px solid #456558;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.7;
  z-index: 100;
  box-shadow: 0 5px 20px #0002;
  white-space: pre-wrap;
}
.is-loading > svg {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
body.dark {
  --bg: #151c19;
  --panel: #1b2420;
  --subtle: #222e27;
  --text: #e0e8e2;
  --muted: #8c9f92;
  --border: #303e35;
  --accent: #78c9a6;
  --accent-dark: #64b594;
  --accent-soft: #283d30;
  --shadow: 0 8px 30px #0002;
  background: var(--bg);
  color: var(--text);
}
body.dark .primary-button,
body.dark .brand-mark {
  color: #153529;
}
body.dark .composer-toolbar,
body.dark .upload-drop {
  background: #202b24;
}
body.dark .media-token {
  background: #1b2420e6;
}
body.dark .result-cover {
  background: #25372c;
}
body.dark .draft-card {
  background: #17241c;
}
body.dark .empty-state {
  background: #1b242030;
}
body.dark .count-label {
  background: #2b3a30;
  color: #9eb7a5;
}
main {
  padding-top: 34px;
}
.page-heading {
  min-height: 65px;
  margin-bottom: 22px;
}
.composer-body {
  min-height: 195px;
}
.prompt-area textarea {
  min-height: 137px;
}
.composer-toolbar {
  padding-top: 15px;
  padding-bottom: 15px;
}
.setting-select select {
  font-size: 12px;
}
.segmented button {
  font-size: 12px;
}
.composer-note {
  font-size: 11px;
}
.prompt-bottom,
.mention-trigger {
  font-size: 11px;
}
.eyebrow {
  font-size: 10px;
}
.heading-right {
  font-size: 11px;
}
.workspace-meta {
  font-size: 10px;
  margin-bottom: 29px;
}
.estimate {
  font-size: 11px;
}
.estimate small {
  font-size: 10px;
}
.primary-button {
  font-size: 13px;
}
.empty-state {
  font-size: 13px;
  min-height: 130px;
}
.empty-state p {
  font-size: 11px;
}
.draft-overlay b {
  font-size: 16px;
}
.draft-overlay small {
  font-size: 10px;
}
.text-button {
  font-size: 12px;
}
.result-info h3 {
  font-size: 12px;
}
.result-meta {
  font-size: 10px;
}
.connection {
  font-size: 12px;
}
.account-button {
  font-size: 13px;
}
.filter-tabs button {
  font-size: 13px;
}
.task-copy > button {
  font-size: 12px;
}
.task-copy small {
  font-size: 11px;
}
.task-table-head {
  font-size: 11px;
}
.task-time {
  font-size: 11px;
}
.asset-details > b {
  font-size: 12px;
}
.asset-details > div {
  font-size: 10px;
}
.upload-drop b {
  font-size: 12px;
}
.upload-drop > span {
  font-size: 10px;
}
.upload-options button {
  font-size: 11px;
}
.brand-name {
  font-size: 19px;
}
@media (min-width: 1600px) {
  main {
    padding-top: 38px;
  }
  .composer-body {
    min-height: 200px;
  }
  .prompt-area textarea {
    min-height: 142px;
  }
  .recent-grid {
    gap: 19px;
  }
  .draft-card {
    aspect-ratio: 2.6;
  }
}
@media (max-width: 1280px) {
  main {
    padding: 32px 32px 0;
  }
  .topbar {
    padding: 0 30px;
  }
  .topbar-actions {
    gap: 16px;
  }
  .composer-toolbar {
    gap: 17px;
  }
  .setting-select {
    padding: 0 7px;
  }
  .generate-action {
    gap: 12px;
  }
  .estimate {
    font-size: 9px;
  }
  .estimate b {
    font-size: 16px;
  }
  .model-setting {
    max-width: 210px;
  }
  .model-setting select {
    max-width: 160px;
  }
  .task-table-head,
  .task-row {
    grid-template-columns: minmax(200px, 1fr) 80px 70px 104px 70px;
    gap: 12px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .task-thumb {
    width: 76px;
  }
  .asset-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .brand-name {
    gap: 10px;
  }
  .draft-card {
    aspect-ratio: 2.3;
  }
}
@media (max-width: 1024px) {
  .connection {
    display: none;
  }
  .composer-toolbar {
    align-items: flex-start;
  }
  .generate-action {
    width: 100%;
    justify-content: flex-end;
  }
  .toolbar-divider {
    display: none;
  }
  .generation-settings {
    gap: 8px;
    width: 100%;
  }
  .model-setting {
    max-width: none;
    flex: 1;
  }
  .model-setting select {
    max-width: none;
    width: 100%;
  }
  .reference-panel {
    width: 190px;
    padding-right: 18px;
  }
  .recent-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .task-table-head,
  .task-row {
    grid-template-columns: minmax(210px, 1fr) 80px 65px 70px;
  }
  .task-table-head > span:nth-child(4),
  .task-time {
    display: none;
  }
  .draft-overlay {
    padding: 12px;
  }
  .draft-overlay b {
    font-size: 12px;
  }
  .draft-overlay svg {
    right: 10px;
    bottom: 13px;
  }
  .search-toolbar > .search-field {
    max-width: none;
  }
  .date-field {
    flex: 1;
    justify-content: space-between;
  }
  .asset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  :root {
    --rail: 62px;
  }
  .rail {
    padding: 18px 0 14px;
  }
  .brand-mark {
    width: 33px;
    height: 33px;
  }
  .brand-mark svg {
    width: 19px;
    height: 19px;
  }
  .rail nav {
    margin-top: 30px;
    gap: 5px;
  }
  .rail-item {
    width: 48px;
    height: 59px;
    font-size: 9px;
    gap: 6px;
  }
  .rail-item.active:before {
    left: -7px;
  }
  .rail-item svg {
    width: 19px;
    height: 19px;
  }
  .rail-bottom .rail-item {
    height: 49px;
  }
  .topbar {
    padding: 0 18px;
    min-height: 69px;
    gap: 10px;
  }
  .brand-name {
    font-size: 15px;
    gap: 8px;
  }
  .brand-name > span:nth-of-type(2),
  .brand-divider,
  .version-tag {
    display: none;
  }
  .topbar-actions {
    gap: 11px;
  }
  .wallet-button {
    gap: 5px;
  }
  .wallet-button > span {
    display: none;
  }
  .wallet-button b {
    font-size: 12px;
  }
  .wallet-button > svg:first-child {
    width: 14px;
  }
  .account-button {
    padding: 7px 9px;
    font-size: 10px;
    gap: 5px;
  }
  .account-button svg {
    width: 14px;
  }
  .wallet-plus {
    display: none;
  }
  main {
    padding: 25px 19px 0;
  }
  .page-heading {
    margin-bottom: 19px;
    min-height: 60px;
  }
  .eyebrow {
    font-size: 8px;
  }
  h1 {
    font-size: 25px;
  }
  .heading-right {
    font-size: 8px;
    gap: 2px;
  }
  .composer-top {
    padding: 13px 13px 0;
  }
  .segmented button {
    font-size: 10px;
    padding: 0 9px;
    gap: 5px;
  }
  .segmented svg {
    width: 12px;
  }
  .composer-note {
    font-size: 8px;
  }
  .composer-note > svg {
    display: none;
  }
  .composer-body {
    padding: 17px 14px;
    gap: 15px;
    min-height: 215px;
    flex-direction: column;
  }
  .prompt-area textarea {
    font-size: 13px;
    min-height: 165px;
  }
  .reference-panel {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 0 14px;
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    align-items: start;
  }
  .media-counters {
    grid-column: 1/-1;
    margin-bottom: 0;
  }
  .upload-drop {
    min-height: 83px;
  }
  .upload-drop > svg {
    width: 18px;
    height: 18px;
    margin: 0;
  }
  .upload-drop b {
    font-size: 10px;
  }
  .upload-options {
    flex-direction: column;
    align-items: flex-start;
    padding: 9px;
    gap: 9px;
  }
  .media-grid {
    grid-column: 1/-1;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 3px;
    gap: 5px;
  }
  .media-item .media-token {
    font-size: 7px;
    line-height: 16px;
  }
  .composer-toolbar {
    padding: 13px 14px;
    gap: 15px;
  }
  .generation-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .model-setting {
    grid-column: 1/-1;
    width: 100%;
  }
  .setting-select {
    width: 100%;
    height: 33px;
  }
  .setting-select select {
    width: 100%;
    font-size: 10px;
  }
  .ratio-setting {
    grid-column: 1/-1;
  }
  .generate-action {
    gap: 10px;
    align-items: center;
    justify-content: space-between;
  }
  .estimate {
    text-align: left;
    font-size: 9px;
  }
  .estimate small {
    font-size: 8px;
    max-width: 150px;
  }
  .generate-action .primary-button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 11px;
    gap: 7px;
  }
  .primary-button > svg:last-child:not(:first-child) {
    display: none;
  }
  .workspace-meta {
    margin-bottom: 28px;
    font-size: 8px;
    line-height: 1.7;
  }
  .workspace-meta > span {
    max-width: 55%;
  }
  .workspace-meta > span:last-child {
    text-align: right;
  }
  .section-heading {
    margin-bottom: 13px;
    gap: 7px;
  }
  .section-heading h2 {
    font-size: 14px;
  }
  .section-heading > div {
    gap: 8px;
  }
  .section-heading .text-button {
    font-size: 10px;
  }
  .recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .recent-section {
    margin-bottom: 25px;
  }
  .draft-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .draft-card {
    aspect-ratio: 3;
  }
  .draft-overlay {
    padding: 16px;
  }
  .draft-overlay b {
    font-size: 14px;
  }
  .draft-overlay svg {
    right: 16px;
    bottom: 18px;
  }
  .draft-section .section-heading .small {
    font-size: 9px;
  }
  .draft-section .section-heading > span {
    display: none;
  }
  .draft-section {
    padding-top: 18px;
  }
  .page-footer {
    margin-top: 32px;
    font-size: 7px;
    gap: 10px;
    line-height: 1.8;
  }
  .filter-tabs {
    gap: 18px;
  }
  .filter-tabs button {
    font-size: 10px;
    height: 48px;
  }
  .list-toolbar {
    min-height: 49px;
  }
  .list-toolbar > .outline-button {
    font-size: 10px;
    min-height: 29px;
    padding: 0 9px;
  }
  .search-toolbar {
    gap: 8px;
    margin: 15px 0;
  }
  .search-toolbar > .search-field {
    min-width: 0;
    flex-basis: 100%;
    max-width: none;
  }
  .search-toolbar > select {
    max-width: none;
    flex: 1;
  }
  .date-field {
    flex-basis: 100%;
    order: 3;
  }
  .date-field input {
    width: 40%;
    height: 31px;
  }
  .task-table-head {
    display: none;
  }
  .task-row {
    grid-template-columns: 1fr 70px;
    gap: 9px 10px;
    padding: 14px;
    min-height: 0;
  }
  .task-description {
    grid-column: 1/-1;
    gap: 10px;
  }
  .task-thumb {
    width: 77px;
  }
  .task-copy > button {
    font-size: 10px;
  }
  .task-copy small {
    font-size: 8px;
  }
  .task-charge {
    font-size: 10px;
    text-align: right;
    grid-column: 2;
    grid-row: 2;
  }
  .task-charge small {
    display: none;
  }
  .task-actions {
    grid-column: 2;
    grid-row: 3;
  }
  .task-status {
    font-size: 9px;
  }
  .task-time {
    display: block;
    grid-column: 1;
    grid-row: 3;
    font-size: 9px;
  }
  .task-time small {
    display: none;
  }
  .pagination {
    padding: 12px 10px;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 8px;
  }
  .pagination > div {
    gap: 6px;
    margin-left: auto;
  }
  .pagination .icon-button {
    width: 26px;
    height: 26px;
  }
  .pagination select {
    width: 87px;
    height: 28px;
    font-size: 9px;
  }
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .asset-toolbar .search-field {
    width: 100%;
    min-width: 0;
  }
  .asset-toolbar > span {
    white-space: nowrap;
    font-size: 9px;
  }
  .asset-toolbar {
    gap: 9px;
    margin: 17px 0;
  }
  .asset-actions {
    opacity: 1;
  }
  .asset-actions .icon-button {
    width: 22px;
    height: 22px;
  }
  .asset-details {
    padding: 9px;
  }
  .asset-details > b {
    font-size: 9px;
  }
  .asset-details > div {
    font-size: 7px;
  }
  .asset-kind {
    font-size: 7px;
  }
  .local-storage-label {
    font-size: 8px;
  }
  .local-storage-label svg {
    display: none;
  }
  .local-storage-label > span {
    max-width: 62px;
    text-align: right;
  }
  .dialog {
    padding: 20px;
    width: calc(100vw - 28px);
  }
  .dialog-heading h2 {
    font-size: 18px;
  }
  .dialog-heading {
    margin-bottom: 19px;
  }
  .library-dialog .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .api-dialog pre {
    font-size: 10px;
    padding: 12px;
  }
  .api-dialog .dialog-actions {
    justify-content: space-between;
  }
  .api-dialog .dialog-actions > a {
    font-size: 10px;
    padding: 0 10px;
  }
  .copy-line code {
    font-size: 10px;
  }
  .detail-prompt {
    font-size: 11px;
  }
  .task-player > video {
    max-height: 45dvh;
  }
  .toast {
    left: 50%;
    bottom: 20px;
    font-size: 11px;
  }
  .editor-alert,
  .pending-notice {
    padding-left: 14px;
    padding-right: 14px;
  }
  .pending-notice {
    font-size: 9px;
  }
  .pending-notice > button {
    font-size: 9px;
  }
  .mention-menu {
    width: 100%;
  }
  .reference-panel:has(.media-item) .upload-drop {
    min-height: 70px;
  }
  .empty-state {
    min-height: 150px;
  }
  .asset-grid > .empty-state {
    min-height: 220px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
