@charset "UTF-8";
:root {
  color-scheme: light;
  --color-bg: #f5f6f2;
  --color-surface: #ffffff;
  --color-ink: #252d28;
  --color-muted: #626b63;
  --color-subtle: #798078;
  --color-line: #e3e7df;
  --color-accent: #2e6547;
  --color-accent-hover: #24513a;
  --color-accent-soft: #edf4ed;
  --color-warning: #946227;
  --color-warning-bg: #faf2e6;
  --color-error: #a34e43;
  --color-error-bg: #faf0eb;
  --radius-card: 16px;
  --radius-control: 8px;
  --font-ui: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --shadow-dock: 0 8px 48px #253b2a14, 0 2px 8px #253b2a08;
  --duration: 180ms;
  --ease: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; }
html { font-size: 14px; }
body { margin: 0; color: var(--color-ink); background: var(--color-bg); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button { color: inherit; border: 0; background: none; }
button:disabled { cursor: wait; opacity: .65; }
button, a, textarea, select { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--color-accent); }
::selection { color: #163723; background: #d4e5d4; }
textarea { caret-color: var(--color-accent); }
button, a { text-underline-offset: 4px; }
[hidden] { display: none !important; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.app-shell { height: 100dvh; display: grid; grid-template-rows: 78px minmax(0,1fr) auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; width: min(1120px, calc(100% - 80px)); margin: 0 auto; border-bottom: 1px solid var(--color-line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--color-ink); text-decoration: none; font-size: 21px; font-weight: 650; letter-spacing: -.6px; }
.brand-version { margin-left: 4px; font-weight: 400; color: var(--color-muted); }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; color: var(--color-accent); }
.brand-mark svg { width: 29px; height: 29px; stroke: currentColor; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.preview-label { display: flex; align-items: center; gap: 7px; color: var(--color-muted); font-size: 12px; }
.preview-label > span { width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent); }
.avatar { height: 34px; width: 34px; border-radius: 50%; background: #e7ebe2; font-size: 12px; font-weight: 600; color: #4a5949; }
.avatar:hover { background: #dae4d5; }
.workspace { width: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 38px max(40px, calc((100% - 1040px) / 2)) 24px; scrollbar-width: thin; scrollbar-color: #c8d0c2 transparent; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
h1 { font-size: 27px; line-height: 1.3; font-weight: 650; letter-spacing: -.5px; margin: 0 0 9px; }
.heading-dot { color: var(--color-accent); margin-left: 3px; }
.workspace-heading p { margin: 0; font-size: 13px; color: var(--color-muted); }
.model-note { color: var(--color-muted); display: flex; align-items: center; gap: 8px; font-size: 12px; padding-top: 14px; }
.model-note .icon { color: var(--color-accent); width: 16px; height: 16px; }
.note-separator { padding: 0 8px; color: #9ca398; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--color-line); }
.filters { display: flex; gap: 28px; }
.filter { padding: 0 2px 14px; color: var(--color-muted); position: relative; display: flex; gap: 8px; align-items: center; font-size: 13px; min-height: 44px; }
.filter span { font-size: 11px; color: var(--color-muted); background: #e9ece5; padding: 1px 5px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.filter.active { color: var(--color-accent); font-weight: 600; }
.filter.active::after { position: absolute; content: ""; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--color-accent); }
.filter.active span { background: #e1ebdf; color: var(--color-accent); }
.filter:hover { color: var(--color-accent); }
.sort-button { display: flex; align-items: center; gap: 7px; color: var(--color-muted); font-size: 12px; padding: 8px 0 16px 10px; min-height: 44px; }
.sort-button .icon { width: 16px; height: 16px; }
.date-line { display: flex; justify-content: space-between; margin: 23px 0 13px; font-size: 11px; color: var(--color-muted); }
.date-line > span:first-child { font-weight: 500; }
.date-line > span:last-child { font-size: 11px; }
.task-list { display: grid; gap: 14px; }
.task-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-card); padding: 22px; display: grid; grid-template-columns: minmax(0,1fr) 272px; gap: 30px; min-height: 196px; }
.task-copy { min-width: 0; display: flex; flex-direction: column; }
.task-topline { display: flex; align-items: center; gap: 10px; min-height: 22px; margin-bottom: 11px; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--color-accent); background: var(--color-accent-soft); padding: 4px 7px; border-radius: 4px; font-weight: 500; white-space: nowrap; }
.status .icon { width: 11px; height: 11px; stroke-width: 2.2; }
.status.running { background: var(--color-warning-bg); color: var(--color-warning); }
.status.failed { background: var(--color-error-bg); color: var(--color-error); }
.task-time { color: var(--color-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.task-prompt { font-size: 14px; line-height: 1.85; letter-spacing: .1px; margin: 0; max-width: 66ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-prompt.expanded { display: block; }
.task-parameters { display: flex; align-items: center; gap: 8px; margin-top: 13px; color: var(--color-muted); font-size: 11px; }
.task-parameters i { width: 2px; height: 2px; background: #a8afa4; border-radius: 50%; }
.task-bottom { display: flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 14px; }
.task-action { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; font-size: 11px; color: var(--color-muted); min-height: 27px; }
.task-action .icon { width: 13px; height: 13px; }
.task-action:hover { color: var(--color-accent); }
.task-visual { align-self: center; width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; position: relative; background: #e7eee6; display: grid; place-items: center; padding: 0; }
button.task-visual { cursor: zoom-in; }
.task-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease); }
button.task-visual:hover img { transform: scale(1.025); }
.preview-symbol { position: absolute; display: grid; place-items: center; border-radius: 50%; width: 37px; height: 37px; background: #ffffffed; color: var(--color-ink); }
.preview-symbol .icon { width: 15px; height: 15px; }
.visual-duration { position: absolute; right: 10px; bottom: 9px; color: #fff; background: #15231bbd; border-radius: 4px; padding: 2px 5px; font-size: 11px; font-variant-numeric: tabular-nums; }
.status-visual { background: #eff1eb; display: flex; flex-direction: column; gap: 11px; justify-content: center; color: var(--color-muted); }
.status-visual > p { margin: 0; font-size: 11px; }
.processing-mark { display: flex; align-items: center; gap: 4px; height: 26px; color: #7d9b78; }
.processing-mark span { display: block; width: 4px; border-radius: 2px; background: currentColor; height: 11px;  }
.processing-mark span:nth-child(2),.processing-mark span:nth-child(4) { height: 20px; animation-delay: .2s; }
.processing-mark span:nth-child(3) { height: 28px; animation-delay: .4s; }

.failed-visual { color: var(--color-error); background: #f7f1ee; }
.failed-visual > .icon { width: 25px; height: 25px; stroke-width: 1.25; }
.failure-note { font-size: 11px; margin: 9px 0 0; color: var(--color-error); line-height: 1.6; }
.list-end { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 29px 0 10px; }
.list-end p { font-size: 11px; color: var(--color-muted); margin: 0; }
.list-end > span { height: 1px; width: 28px; background: var(--color-line); }
.empty-state { text-align: center; padding: 50px 20px; }
.empty-state > .icon { width: 35px; height: 35px; color: #8a9c84; }
.empty-state h2 { font-size: 17px; font-weight: 500; margin: 18px 0 9px; }
.empty-state p { color: var(--color-muted); margin: 0 0 12px; }
.text-button { display: inline-flex; align-items: center; gap: 8px; color: var(--color-accent); font-size: 12px; min-height: 35px; padding: 5px 0; }
.text-button .icon { width: 14px; height: 14px; }
.composer-dock { padding: 12px 40px 13px; width: 100%; background: var(--color-bg); z-index: 2; }
.composer { width: min(1040px, 100%); margin: 0 auto; border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-dock); padding: 18px 22px 14px; position: relative; }
.composer.dragover { outline: 2px dashed var(--color-accent); outline-offset: -6px; }
.composer-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.composer-topline label { font-size: 12px; font-weight: 600; }
.composer-topline > span { font-size: 11px; color: var(--color-muted); }
#prompt { width: 100%; border: 0; outline: none; resize: none; min-height: 59px; max-height: 140px; padding: 0; line-height: 1.8; font-size: 14px; background: transparent; color: var(--color-ink); }
#prompt:focus-visible { outline: 0; }
.composer:focus-within { box-shadow: 0 8px 48px #253b2a14, 0 0 0 1px #a8bba1; }
#prompt::placeholder { color: #626b63; }
.composer-middle { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; }
.attachment-actions { display: flex; gap: 10px; }
.attachment-button { display: inline-flex; gap: 6px; align-items: center; color: var(--color-muted); font-size: 11px; padding: 6px 9px; min-height: 32px; border-radius: 6px; background: #f5f6f2; }
.attachment-button .icon { width: 14px; height: 14px; }
.attachment-button:hover { color: var(--color-accent); background: var(--color-accent-soft); }
.attachment-button span { color: var(--color-accent); font-size: 11px; }
.char-count { color: var(--color-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.parameters { display: flex; align-items: center; gap: 12px; }
.resolution { color: var(--color-accent); background: #edf3e9; font-size: 11px; font-weight: 650; padding: 5px 7px; border-radius: 4px; }
.parameter-divider { background: var(--color-line); width: 1px; height: 15px; }
.select-wrap { display: flex; align-items: center; gap: 5px; position: relative; color: #586454; min-height: 32px; border-radius: 5px; }
.select-wrap > .icon { width: 14px; height: 14px; pointer-events: none; }
.select-wrap select { appearance: none; border: 0; background: transparent; color: inherit; font-size: 11px; padding: 8px 15px 8px 0; cursor: pointer; border-radius: 3px; min-width: 49px; }
.select-wrap .chevron { position: absolute; right: 0; width: 13px; height: 13px; }
.ratio-select select { min-width: 53px; }
.generate-button { display: inline-flex; align-items: center; justify-content: center; gap: 23px; min-height: 40px; padding: 10px 17px; border-radius: var(--radius-control); background: var(--color-accent); color: white; font-size: 12px; font-weight: 500; transition: background var(--duration) var(--ease); white-space: nowrap; }
.generate-button:hover { background: var(--color-accent-hover); }
.generate-button:active { transform: translateY(1px); }
.generate-button .icon { width: 16px; height: 16px; }
.dock-note { margin: 11px auto 0; color: var(--color-muted); font-size: 11px; text-align: center; line-height: 1.6; }
.dock-note > span { padding: 0 5px; }
.dock-note button { color: var(--color-muted); text-decoration: underline; margin-left: 10px; padding: 0; font-size: 11px; }
.reference-tray { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px; max-height: 112px; scrollbar-width: thin; scrollbar-color: #c8d0c2 transparent; }
.reference-item { position: relative; width: 64px; height: 65px; flex: 0 0 auto; border-radius: 7px; background: #edf1e9; overflow: hidden; }
.reference-item img { width: 100%; height: 100%; object-fit: cover; }
.reference-item > span { position: absolute; bottom: 3px; left: 3px; padding: 2px 4px; border-radius: 3px; background: #15231bbd; color: white; font-size: 11px; }
.reference-remove { position: absolute; top: 2px; right: 2px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--color-ink); padding: 0; }
.reference-remove .icon { width: 12px; height: 12px; }
.audio-reference { width: 156px; display: flex; align-items: center; padding: 12px; gap: 8px; }
.audio-reference .audio-play { flex: 0 0 auto; width: 27px; height: 27px; border-radius: 50%; background: white; display: grid; place-items: center; padding: 0; color: var(--color-accent); }
.audio-reference .audio-play .icon { width: 12px; height: 12px; }
.audio-reference .audio-info { min-width: 0; font-size: 11px; color: var(--color-muted); }
.audio-info strong { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 94px; margin: 0 0 4px; }
.audio-info small { font-size: 11px; }
.form-feedback { font-size: 11px; line-height: 1.6; padding: 10px 0 0; margin: 0; color: var(--color-error); }
dialog { padding: 0; border: 0; border-radius: 16px; color: var(--color-ink); background: white; box-shadow: 0 20px 90px #1028183d; max-height: calc(100dvh - 48px); overflow-y: auto; }
dialog::backdrop { background: #17271fd9; }
.preview-dialog { width: min(900px, calc(100% - 48px)); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; }
.dialog-kicker { font-size: 11px; color: var(--color-muted); }
.dialog-header h2 { font-size: 17px; font-weight: 550; margin: 5px 0 0; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; color: var(--color-muted); }
.icon-button:hover { color: var(--color-ink); background: #f0f3ed; }
.preview-media { aspect-ratio: 16/9; position: relative; background: #14241d; }
.preview-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.media-caption { position: absolute; bottom: 14px; right: 15px; background: #10251bc9; color: white; font-size: 11px; padding: 5px 8px; border-radius: 4px; }
.dialog-content { padding: 21px 24px 18px; }
.dialog-content > p { margin: 0; color: #475346; font-size: 13px; line-height: 1.9; }
.dialog-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 17px; }
.dialog-footer > span { color: var(--color-muted); font-size: 11px; }
.about-dialog { max-width: 420px; width: calc(100% - 40px); padding: 32px; }
.about-dialog > .icon-button { position: absolute; right: 12px; top: 12px; }
.about-dialog h2 { font-size: 21px; font-weight: 550; margin: 17px 0 20px; }
.about-dialog p { color: var(--color-muted); font-size: 13px; line-height: 1.9; }
.about-dialog > .generate-button { margin-top: 14px; }
.toast { position: fixed; top: 90px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); display: flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 8px; background: #263f2e; color: white; font-size: 12px; box-shadow: 0 6px 24px #1a30252b; z-index: 10; }
.toast .icon { width: 15px; height: 15px; }
@media(min-width:1600px) { .workspace { padding-top: 45px; } .composer-dock { padding-bottom: 20px; } }
@media(max-width:800px) { .topbar { width: calc(100% - 40px); } .workspace { padding: 26px 20px 15px; } .task-card { grid-template-columns: minmax(0,1fr) 220px; gap: 20px; padding: 18px; } .composer-dock { padding-left:20px; padding-right:20px; } .model-note { display: none; } }
@media(max-width:560px) {
  html { font-size: 14px; }
  .app-shell { grid-template-rows: 62px minmax(0,1fr) auto; }
  .topbar { width: calc(100% - 36px); }
  .brand { font-size: 19px; gap: 7px; }
  .brand-mark { width: 27px; height: 27px; }
  .brand-mark svg { width: 25px; height: 25px; }
  .topbar-right { gap: 12px; }
  .preview-label { font-size: 11px; }
  .avatar { width: 29px; height: 29px; font-size: 11px; }
  .workspace { padding: 18px 16px 12px; }
  .workspace-heading { margin-bottom: 13px; }
  h1 { font-size: 24px; margin-bottom: 0; }
  .workspace-heading p { display: none; }
  .filters { gap: 20px; }
  .filter { font-size: 12px; gap: 6px; padding-bottom: 12px; }
  .filter span { font-size: 11px; }
  .sort-button { font-size: 11px; gap: 4px; padding-bottom: 12px; }
  .sort-button .icon { width: 14px; height: 14px; }
  .date-line { margin-top: 14px; }
  .date-line > span:last-child { font-size: 11px; }
  .task-list { gap: 12px; }
  .task-card { grid-template-columns: 1fr; gap: 14px; padding: 16px; border-radius: 13px; }
  .task-topline { margin-bottom: 10px; }
  .task-prompt { font-size: 13px; line-height: 1.85; -webkit-line-clamp: 2; }
  .task-parameters { margin-top: 11px; }
  .task-bottom { padding-top: 7px; gap: 21px; }
  .task-action { font-size: 11px; min-height: 32px; }
  .task-visual { border-radius: 8px; }
  .list-end { padding: 24px 0 10px; }
  .composer-dock { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .composer { padding: 15px 15px 12px; border-radius: 14px; }
  .composer-topline { margin-bottom: 11px; }
  .composer-topline > span { font-size: 11px; }
  .composer-topline label { font-size: 11px; }
  #prompt { min-height: 64px; font-size: 14px; max-height: 112px; }
  .composer-middle { padding-bottom: 10px; }
  .attachment-actions { gap: 8px; }
  .attachment-button { font-size: 11px; padding: 7px 8px; min-height: 40px; }
  .char-count { font-size: 11px; }
  .parameters { gap: 9px; }
  .parameter-divider { display: none; }
  .resolution { font-size: 11px; padding: 5px 6px; }
  .select-wrap { gap: 3px; min-height: 40px; }
  .select-wrap > .icon:first-child { display: none; }
  .select-wrap select { font-size: 11px; min-width: 43px; padding-right: 13px; min-height: 40px; }
  .ratio-select select { min-width: 46px; }
  .generate-button { font-size: 11px; gap: 11px; padding: 11px 12px; min-height: 44px; }
  .generate-button .icon { width: 14px; height: 14px; }
  .dock-note { font-size: 11px; margin-top: 8px; }
  .dock-note > span { padding: 0 2px; }
  .dock-note button { display: none; }
  .reference-tray { max-height: 95px; }
  .reference-item { width: 58px; height: 58px; }
  .reference-remove { width: 23px; height: 23px; }
  .audio-reference { width: 145px; }
  .preview-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 36px); border-radius: 12px; }
  .dialog-header { padding: 16px; }
  .dialog-content { padding: 16px; }
  .dialog-content > p { font-size: 12px; }
  .dialog-footer > span { font-size: 11px; }
  .toast { top: 73px; width: max-content; font-size: 11px; }
}
@media(max-height:650px) and (max-width:560px) { .composer-topline { display: none; } #prompt { min-height: 42px; max-height: 64px; } .composer-dock { padding-top: 7px; } .dock-note { display: none; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
