:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --ink: #17191d;
  --muted: #6f737c;
  --line: #e7e8ec;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --coral: #ff715b;
  --yellow: #f4bd45;
  --green: #1f9d6a;
  --shadow: 0 18px 50px rgba(25, 32, 48, 0.08);
}

* { box-sizing: border-box; }
.hidden { display:none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: 0;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.18); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 20; width: 228px;
  display: flex; flex-direction: column; padding: 26px 18px 20px;
  background: #fff; border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 28px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: white; font-size: 16px; }
.nav-list { display: grid; gap: 6px; }
.nav-item { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #63666d; cursor: pointer; text-align: left; font-weight: 500; }
.nav-item svg { width: 20px; height: 20px; stroke-width: 1.8; }
.nav-item:hover { background: var(--surface-soft); color: var(--ink); }
.nav-item.active { background: #eef3ff; color: var(--blue); font-weight: 600; }
.sidebar-spacer { flex: 1; }
.upgrade-box { margin: 16px 0 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.upgrade-icon { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 7px; color: #7a4d00; background: #fff0c8; }
.upgrade-icon svg { width: 17px; }
.upgrade-box strong { font-size: 14px; }
.upgrade-box p { margin: 5px 0 10px; color: var(--muted); font-size: 11px; }
.quota { height: 5px; overflow: hidden; border-radius: 99px; background: #e8e9ec; }
.quota span { display: block; width: 62%; height: 100%; background: var(--yellow); }
.text-button { display: flex; align-items: center; gap: 4px; margin-top: 11px; padding: 0; border: 0; background: none; font-size: 12px; font-weight: 600; cursor: pointer; }
.text-button svg { width: 13px; }
.profile-item { min-height: 52px; padding: 6px 8px; }
.profile-item > svg { margin-left: auto; width: 17px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: #dfe9dd; color: #315039; font-weight: 700; }
.profile-copy { display: grid; gap: 2px; }
.profile-copy strong { color: var(--ink); font-size: 12px; }
.profile-copy small { color: var(--muted); font-size: 10px; }

.main-content { grid-column: 2; min-width: 0; padding: 0 36px 64px; }
.topbar { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eyebrow { margin: 0 0 5px; color: #8b8f98; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.topbar h1 { margin: 0; font-size: 24px; letter-spacing: 0; }
.top-actions { position:relative; display: flex; align-items: center; gap: 8px; flex:0 0 auto; }
.search-box { width: min(290px, 27vw); height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.search-box svg { width: 17px; color: #9699a0; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 12px; }
kbd { padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; background: #f5f6f8; color: #888b92; font-family: inherit; font-size: 10px; }
.api-status { display: flex; align-items: center; gap: 6px; padding: 0 9px; height: 30px; border: 1px solid var(--line); border-radius: 6px; color: #80838b; font-size: 9px; white-space: nowrap; }
.api-status i { width: 6px; height: 6px; border-radius: 50%; background: #b7bbc3; }
.api-status.ready { color: #18724c; border-color: #ccebdd; background: #f1fbf6; }
.api-status.ready i { background: var(--green); box-shadow: 0 0 0 3px rgba(31,157,106,.12); }
.api-status.error { color: #a04538; border-color: #f0d3cd; background: #fff8f6; }
.api-status.error i { background: var(--coral); }
.api-status span { max-width:150px; overflow:hidden; text-overflow:ellipsis; }
.icon-button { position: relative; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: white; cursor: pointer; }
.icon-button:hover { background: #f8f9fb; }
.icon-button svg { width: 18px; }
.notification-dot { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border: 2px solid white; border-radius: 50%; background: var(--coral); }
.account-button { min-height: 40px; display:flex; align-items:center; gap:7px; padding:0 9px 0 5px; border:1px solid var(--line); border-radius:7px; background:white; color:#555a63; font-size:10px; font-weight:600; cursor:pointer; }
.account-button:hover { background:#f8f9fb; }.avatar.mini { width:29px; height:29px; font-size:11px; }
.notification-panel { position:absolute; top:48px; right:48px; z-index:60; width:310px; padding:8px; border:1px solid var(--line); border-radius:8px; background:white; box-shadow:0 18px 50px rgba(20,25,35,.16); }
.panel-popover-heading { display:flex; align-items:center; justify-content:space-between; padding:7px 7px 9px; }.panel-popover-heading strong { font-size:12px; }.panel-popover-heading button { width:26px; height:26px; display:grid; place-items:center; border:0; border-radius:5px; background:#f3f4f6; color:var(--muted); cursor:pointer; }.panel-popover-heading svg { width:13px; }
.notification-item { width:100%; display:grid; grid-template-columns:34px minmax(0,1fr) 15px; gap:9px; align-items:center; padding:10px 8px; border:0; border-top:1px solid #f0f1f3; background:transparent; color:inherit; text-align:left; cursor:pointer; }.notification-item:hover { background:#f8f9fb; }.notification-item > svg { width:17px; color:#6d7480; }.notification-item.unread > svg { color:var(--blue); }.notification-thumb { width:34px; height:34px; border-radius:5px; object-fit:cover; }.notification-item div { display:grid; gap:3px; }.notification-item strong { font-size:10px; }.notification-summary { display:block; min-width:0; overflow:hidden; color:#30343b; font-size:9px; line-height:1.45; opacity:.8; white-space:nowrap; text-overflow:ellipsis; }.notification-summary .notification-color-segment { font-size:inherit!important; }.notification-color-segment { color:inherit; }.notification-item .notification-open-icon { width:13px; align-self:center; color:#a0a5ad; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 276px; gap: 24px; align-items: start; }
.workspace-column { min-width: 0; }
.composer { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); }
.composer-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mode-switch { display: flex; gap: 4px; padding: 3px; border-radius: 7px; background: #f1f2f5; }
.mode { min-height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 11px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.mode svg { width: 14px; }
.mode.active { background: white; color: var(--ink); box-shadow: 0 1px 5px rgba(0,0,0,.08); font-weight: 600; }
.history-button, .link-button { display: flex; align-items: center; gap: 6px; padding: 5px; border: 0; background: none; color: var(--muted); font-size: 11px; cursor: pointer; }
.history-button svg, .link-button svg { width: 15px; }
.composer h2 { margin: 24px 0 13px; font-size: 22px; }
.prompt-box { padding: 16px; border: 1px solid #dfe1e6; border-radius: 8px; transition: border .2s, box-shadow .2s; }
.prompt-box:focus-within { border-color: #a8bff5; box-shadow: 0 0 0 3px rgba(37,99,235,.07); }
.prompt-box textarea { width: 100%; min-height: 70px; resize: vertical; border: 0; outline: 0; color: var(--ink); line-height: 1.7; }
.prompt-box textarea::placeholder { color: #a1a4ab; }
.prompt-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.prompt-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.tool-button { min-height: 31px; display: flex; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfc; color: #5f626a; font-size: 10px; cursor: pointer; }
.tool-button svg { width: 14px; }
.tool-button:hover { border-color: #c9cbd2; background: white; }
.tool-button.active { border-color: #9bb5f2; color: #2257c5; background: #eef4ff; }
.tool-select { min-height:31px; display:flex; align-items:center; gap:5px; padding:0 8px; border:1px solid var(--line); border-radius:6px; background:#fafbfc; color:#5f626a; font-size:10px; }
.tool-select svg { width:14px; }
.tool-select select { max-width:76px; border:0; outline:0; color:inherit; background:transparent; font-size:10px; cursor:pointer; }
.generate-button { min-height: 38px; display: flex; align-items: center; gap: 14px; padding: 0 7px 0 16px; border: 0; border-radius: 7px; background: var(--ink); color: white; font-size: 11px; font-weight: 600; cursor: pointer; }
.generate-button:hover { background: #2a2d33; }
.generate-button svg { width: 26px; height: 26px; padding: 6px; border-radius: 6px; background: rgba(255,255,255,.12); }
.attachment-row { display: flex; flex-wrap: wrap; gap: 7px; }
.attachment-row:empty { display: none; }
.photo-rights { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; color: #667085; font-size: 12px; line-height: 1.5; }
.photo-rights input { flex: none; margin-top: 3px; }
.photo-rights.hidden { display: none; }
.attachment { display: flex; align-items: center; gap: 7px; max-width: 240px; padding: 6px 8px; border-radius: 6px; background: #f1f5ff; color: #36568f; font-size: 10px; }
.attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment button { display: grid; place-items: center; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.attachment button svg { width: 12px; }
.suggestions { display: flex; align-items: center; gap: 7px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.suggestions::-webkit-scrollbar { display: none; }
.suggestions span { flex: 0 0 auto; color: #93969d; font-size: 10px; }
.suggestions button { flex: 0 0 auto; padding: 5px 9px; border: 0; border-radius: 5px; background: #f3f4f6; color: #656870; font-size: 10px; cursor: pointer; }
.suggestions button:hover { background: #e8ecf5; color: #355385; }

.section-block { margin-top: 32px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 18px; }
.workflow-category-tabs { display: flex; gap: 6px; margin: -2px 0 14px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #f7f8fa; }
.workflow-category-button { flex: 1; min-height: 30px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 600; cursor: pointer; }
.workflow-category-button:hover { color: var(--blue); }
.workflow-category-button.active { background: white; color: var(--blue); box-shadow: 0 3px 10px rgba(20,25,35,.08); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.workflow-card.category-hidden { display: none !important; }
.workflow-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; transition: transform .2s, box-shadow .2s, border .2s; }
.workflow-card:hover { transform: translateY(-3px); border-color: #d6d8de; box-shadow: 0 12px 30px rgba(20,25,35,.09); }
.card-media, .media-pair { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; overflow: hidden; background: #eceef1; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.workflow-card:hover .card-media img { transform: none; }
.media-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.media-pair img { display: block; width: 100%; height: 100%; object-fit: contain; }
.media-pair img:first-child { border-right: 2px solid white; }
.play-badge { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(17,20,25,.55); color: white; backdrop-filter: blur(5px); }
.play-badge svg { width: 14px; fill: currentColor; }
.tag, .duration { position: absolute; top: 9px; right: 9px; padding: 4px 7px; border-radius: 5px; color: white; background: rgba(16,18,22,.68); font-size: 9px; backdrop-filter: blur(5px); }
.tag { color: #6b3e00; background: #ffe7ad; font-weight: 700; }
.card-body { min-height: 75px; display: grid; grid-template-columns: 32px minmax(0, 1fr) 16px; align-items: center; gap: 9px; padding: 11px; }
.type-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; }
.type-icon svg { width: 16px; }
.type-icon.video { color: #2456bc; background: #e8efff; }
.type-icon.image { color: #876112; background: #fff1cb; }
.type-icon.voice { color: #9d4939; background: #ffebe6; }
.card-body h3 { margin: 0 0 3px; font-size: 12px; }
.card-body p { margin: 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.card-arrow { width: 14px; color: #9a9da4; }
.own-voice-button { width:calc(100% - 22px); min-height:34px; display:flex; align-items:center; justify-content:center; gap:6px; margin:0 11px 11px; border:1px solid #dccaa5; border-radius:6px; background:#fffaf0; color:#76591c; font:inherit; font-size:9px; font-weight:600; cursor:pointer; }.own-voice-button svg { width:14px; }.own-voice-button span { color:#a1813d; font-size:8px; font-weight:500; }.workflow-grid.expanded { grid-template-columns:repeat(3,minmax(0,1fr)); }

.filter-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 6px; background: #ebedf0; }
.filter-tabs button { min-width: 38px; height: 26px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.filter-tabs button.active { background: white; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.work-item { min-width: 0; cursor: pointer; }
.work-item.hidden { display: none; }
.work-preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 7px; background: #e7e8eb; }
.work-preview img, .work-preview video { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.work-item:hover img { transform: scale(1.04); }
.work-preview span { position: absolute; right: 7px; bottom: 7px; display: flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 4px; background: rgba(0,0,0,.62); color: white; font-size: 8px; }
.work-preview span svg { width: 10px; fill: currentColor; }
.work-item h3 { margin: 8px 0 2px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.work-item p { margin: 0; color: var(--muted); font-size: 8px; }

.task-panel { position: sticky; top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.task-header { display: flex; align-items: center; justify-content: space-between; }
.task-header h2 { margin: 0; font-size: 16px; }
.icon-button.small { width: 32px; height: 32px; }
.icon-button.small svg { width: 15px; }
.task-list { display: grid; gap: 9px; margin-top: 16px; }
.task-card { position: relative; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 60px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; }
.task-card.processing { padding-bottom: 14px; }
.task-thumb { width: 38px; height: 38px; overflow: hidden; border-radius: 6px; background: #eceef1; }
.task-thumb img { width: 100%; height: 100%; object-fit: cover; }
.task-info { min-width: 0; display: grid; gap: 4px; }
.task-info strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.task-info span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; }
.pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.percent { color: var(--blue); font-size: 9px; }
.progress { position: absolute; right: 9px; bottom: 7px; left: 56px; height: 3px; overflow: hidden; border-radius: 10px; background: #eaecf0; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .4s; }
.task-icon.done { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #e5f6ef; }
.task-icon.done svg { width: 16px; }
.icon-button.tiny { width: 28px; height: 28px; border: 0; background: #f4f5f7; }
.icon-button.tiny svg { width: 13px; }
.task-delete { position: absolute; top: 7px; right: 7px; }
.task-card.done .task-info { padding-right: 30px; }
.task-card.processing .percent { margin-right: 30px; }
.all-tasks { width: 100%; display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 11px; padding: 8px; border: 0; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.all-tasks svg { width: 12px; }
.divider { height: 1px; margin: 13px 0; background: var(--line); }
.summary-title { display: flex; align-items: center; justify-content: space-between; }
.summary-title h3 { margin: 0; font-size: 12px; }
.summary-title button { border: 0; background: none; color: var(--blue); font-size: 9px; cursor: pointer; }
.asset-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.asset-stack { display: flex; }
.asset-stack img, .asset-stack span { width: 30px; height: 30px; margin-left: -7px; border: 2px solid white; border-radius: 50%; object-fit: cover; }
.asset-stack img:first-child { margin-left: 0; }
.asset-stack span { display: grid; place-items: center; background: #edf0f4; color: #62666f; font-size: 8px; font-weight: 700; }
.asset-row p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.6; }
.asset-row strong { color: var(--ink); font-weight: 600; }
.tip-card { position: relative; display: grid; grid-template-columns: 24px minmax(0,1fr) 14px; gap: 8px; margin-top: 17px; padding: 12px; border-radius: 7px; color: #5f4b21; background: #fff8e8; }
.tip-card > svg { width: 17px; color: #b88117; }
.tip-card strong { font-size: 9px; }
.tip-card p { margin: 3px 0 0; font-size: 8px; line-height: 1.55; }
.tip-card button { align-self: start; display: grid; place-items: center; padding: 0; border: 0; background: none; color: #967a42; cursor: pointer; }
.tip-card button svg { width: 12px; }

.mobile-nav { display: none; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-radius: 7px; background: #17191d; color: white; box-shadow: 0 12px 30px rgba(0,0,0,.2); font-size: 11px; transform: translateY(80px); opacity: 0; pointer-events: none; transition: .3s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 16px; color: #6ee7ae; }
.modal-backdrop { position:fixed; inset:0; z-index:80; display:grid; place-items:center; padding:18px; background:rgba(18,22,30,.34); backdrop-filter:blur(5px); }
.modal-backdrop.hidden { display:none; }
.auth-modal { position:relative; width:min(390px,100%); max-height:calc(100vh - 36px); overflow:auto; padding:25px; border:1px solid var(--line); border-radius:10px; background:white; box-shadow:0 22px 70px rgba(15,20,30,.22); }
.wechat-web-fields { display:grid; gap:10px; justify-items:center; }
.wechat-qr-box { display:grid; justify-items:center; gap:8px; width:230px; min-height:250px; padding:10px; border:1px solid var(--line); border-radius:8px; background:#f8fafc; }
.wechat-qr-box img { width:210px; height:210px; object-fit:contain; background:white; }
.wechat-qr-box span { color:var(--muted); font-size:9px; text-align:center; }
.wechat-open-link { color:var(--blue); font-size:10px; }
.wechat-agreement { display:flex !important; flex-direction:row !important; align-items:flex-start; gap:7px; color:#596373; font-size:9px !important; line-height:1.5; }
.wechat-agreement input { width:auto !important; margin-top:2px; }
.secondary-auth { width:100%; height:34px; border:1px solid var(--line); border-radius:6px; background:#f7f8fa; color:#4f5968; font-size:10px; cursor:pointer; }
.password-input-wrap { position:relative; display:flex; align-items:center; }
.password-input-wrap input { padding-right:38px !important; }
.password-toggle { position:absolute; right:5px; width:30px; height:30px; border:0; border-radius:5px; background:transparent; color:#77808d; cursor:pointer; font-size:13px; }
.password-toggle.active { color:var(--blue); }
.auth-link-button { margin-top:7px; padding:0; border:0; background:transparent; color:var(--blue); font-size:10px; cursor:pointer; }
.auth-modal .hidden { display:none; }
.modal-close { position:absolute; top:13px; right:13px; display:grid; place-items:center; width:29px; height:29px; padding:0; border:0; border-radius:6px; background:#f2f3f5; color:#737780; cursor:pointer; }
.modal-close svg { width:15px; }
.auth-methods,.auth-tabs { display:flex; gap:4px; width:max-content; margin-bottom:11px; padding:3px; border-radius:6px; background:#f1f2f5; }
.auth-tabs { margin-bottom:23px; }
.auth-methods button,.auth-tabs button { min-width:58px; height:28px; padding:0 10px; border:0; border-radius:4px; background:transparent; color:#777b84; font-size:10px; cursor:pointer; }
.auth-methods button.active,.auth-tabs button.active { background:white; color:var(--ink); box-shadow:0 1px 4px rgba(0,0,0,.08); font-weight:600; }
.auth-modal h2 { margin:0 0 6px; font-size:20px; }
.auth-hint { margin:0 0 21px; color:var(--muted); font-size:10px; line-height:1.6; }
.auth-modal form { display:grid; gap:12px; }
.auth-modal label { display:grid; gap:6px; color:#666a72; font-size:10px; font-weight:600; }
.auth-modal input { width:100%; height:40px; padding:0 10px; border:1px solid #dfe1e6; border-radius:6px; outline:0; font-size:12px; }
.code-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px; }
.send-code-button { height:40px; padding:0 11px; border:1px solid #dfe1e6; border-radius:6px; background:#f8f9fb; color:#59616e; font-size:10px; cursor:pointer; white-space:nowrap; }
.send-code-button:disabled { opacity:.55; cursor:wait; }
.primary-auth { height:40px; margin-top:4px; border:0; border-radius:6px; background:var(--ink); color:white; font-size:11px; font-weight:600; cursor:pointer; }
.auth-modal .form-message { min-height:17px; margin:11px 0 0; color:var(--coral); font-size:10px; }
.redeem-icon { display:grid; place-items:center; width:35px; height:35px; margin-bottom:14px; border-radius:8px; color:#9a6512; background:#fff2cd; }
.redeem-icon svg { width:18px; }
.member-summary { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:14px 0 16px; }
.member-summary div { display:grid; gap:4px; padding:9px 10px; border-radius:7px; background:#f6f7f9; }
.member-summary span { color:#92969e; font-size:9px; }
.member-summary strong { font-size:11px; }
.profile-identity { display:grid; grid-template-columns:1.2fr .8fr .8fr; gap:8px; margin:14px 0 8px; }.profile-identity div { display:grid; gap:4px; padding:9px 10px; border:1px solid var(--line); border-radius:7px; }.profile-identity span { color:#92969e; font-size:9px; }.profile-identity strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }.personal-center-modal { width:min(620px,100%); max-height:90vh; overflow:auto; }.profile-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }.profile-actions button { height:35px; display:flex; align-items:center; justify-content:center; gap:6px; border:1px solid var(--line); border-radius:6px; background:#fff; color:#555b65; font:inherit; font-size:10px; cursor:pointer; }.profile-actions svg { width:14px; }.profile-record-list { display:grid; gap:6px; max-height:150px; overflow:auto; }.profile-record-list > div { display:flex; justify-content:space-between; gap:12px; padding:8px 9px; border-radius:6px; background:#f6f7f9; font-size:9px; }.profile-record-list span,.profile-record-list p { color:var(--muted); }.profile-record-list p { margin:0; padding:9px; text-align:center; font-size:9px; }
.wallet-divider { display:flex; align-items:center; gap:8px; margin:18px 0 10px; color:#92969e; font-size:10px; }
.wallet-divider::before,.wallet-divider::after { content:""; flex:1; height:1px; background:var(--line); }
.membership-locked { opacity:.5; }.membership-locked::after { content:"会员生效后可购买算力"; color:#a14a3f; font-size:9px; }.membership-locked input,.membership-locked button { cursor:not-allowed; }
.history-modal { width:min(560px,100%); max-height:min(620px,calc(100vh - 36px)); }
.history-list { display:grid; gap:7px; max-height:360px; overflow:auto; }
.history-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 11px; border:1px solid var(--line); border-radius:7px; }
.history-row div { min-width:0; display:grid; gap:4px; }
.history-row strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.history-row span,.history-row em { color:var(--muted); font-size:9px; font-style:normal; }
.history-row a { color:var(--blue); font-size:10px; text-decoration:none; }
.history-empty { margin:0; padding:28px 0; color:var(--muted); text-align:center; font-size:10px; }
.history-answer { margin:2px 0 0; color:#62666f; font-size:10px; line-height:1.55; white-space:normal; }
.chat-messages { display:grid; gap:10px; max-height:420px; overflow:auto; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.chat-message { max-width:86%; padding:11px 13px; border-radius:8px; background:#f5f6f8; }
.chat-message.user { justify-self:end; color:white; background:#262a31; }
.chat-message.assistant { justify-self:start; }
.chat-message span { font-size:9px; opacity:.7; }
.chat-message p { margin:5px 0 0; font-size:11px; line-height:1.7; white-space:pre-wrap; }
.assets-page { padding:2px 0 50px; }
.assets-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; padding:22px 0; border-bottom:1px solid var(--line); }
.assets-heading h2 { margin:0 0 6px; font-size:24px; }.assets-heading p:last-child { margin:0; color:var(--muted); font-size:11px; }
.assets-heading .generate-button { width:auto; padding:0 15px; }.assets-heading .generate-button svg { width:15px; }
.asset-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:18px 0; }
.asset-search { width:min(320px,100%); height:38px; display:flex; align-items:center; gap:8px; padding:0 11px; border:1px solid var(--line); border-radius:7px; background:white; }
.asset-search svg { width:15px; color:#8c9098; }.asset-search input { width:100%; border:0; outline:0; background:transparent; font-size:11px; }
.asset-filters { display:flex; gap:4px; padding:3px; border-radius:7px; background:#e9ebef; }
.asset-filters button { height:30px; padding:0 11px; border:0; border-radius:5px; background:transparent; color:#6f737c; font-size:10px; cursor:pointer; }
.asset-filters button.active { color:var(--ink); background:white; box-shadow:0 1px 4px rgba(0,0,0,.08); }
.asset-upload-panel { display:grid; grid-template-columns:minmax(0,1fr) 150px auto 32px; align-items:end; gap:12px; margin-bottom:18px; padding:14px; border:1px solid #cdd9f7; border-radius:8px; background:#f5f8ff; }
.asset-upload-panel > div { display:grid; gap:4px; align-self:center; }.asset-upload-panel strong { font-size:11px; }.asset-upload-panel span { color:var(--muted); font-size:9px; }
.asset-upload-panel label { display:grid; gap:5px; color:#666a72; font-size:9px; font-weight:600; }.asset-upload-panel select { height:34px; padding:0 8px; border:1px solid var(--line); border-radius:6px; background:white; font-size:10px; }
.primary-asset-button { height:34px; padding:0 13px; border:0; border-radius:6px; background:var(--ink); color:white; font-size:10px; cursor:pointer; }.primary-asset-button:disabled { opacity:.45; cursor:not-allowed; }
.cancel-asset-button { width:32px; height:32px; display:grid; place-items:center; border:0; border-radius:6px; background:white; color:var(--muted); cursor:pointer; }.cancel-asset-button svg { width:14px; }
.asset-library-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.asset-library-card { overflow:hidden; border:1px solid var(--line); border-radius:8px; background:white; }
.asset-library-preview { position:relative; aspect-ratio:4/3; display:grid; place-items:center; overflow:hidden; background:#f0f2f5; }.asset-library-preview img { width:100%; height:100%; object-fit:cover; }.asset-library-preview > svg { width:32px; color:#7f8490; }
.asset-kind { position:absolute; top:8px; left:8px; padding:4px 7px; border-radius:5px; background:rgba(20,24,30,.78); color:white; font-size:8px; }
.asset-library-info { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; padding:11px; }.asset-library-info div { min-width:0; display:grid; gap:3px; }.asset-library-info strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }.asset-library-info span { color:var(--muted); font-size:8px; }
.asset-delete { width:28px; height:28px; display:grid; place-items:center; border:0; border-radius:5px; background:#f5f6f8; color:#8a8e96; cursor:pointer; }.asset-delete:hover { color:#b84c40; background:#fff0ed; }.asset-delete svg { width:13px; }
.asset-access-notice { display:flex; align-items:center; gap:10px; margin:18px 0 0; padding:11px 13px; border:1px solid #eadcc0; border-radius:7px; background:#fffaf0; color:#75591f; }.asset-access-notice.unlocked { border-color:#d8e4f8; background:#f5f8ff; color:#315a9b; }.asset-access-notice svg { width:18px; flex:0 0 auto; }.asset-access-notice div { display:grid; gap:3px; }.asset-access-notice strong { font-size:10px; }.asset-access-notice span { font-size:9px; line-height:1.45; }.asset-empty { grid-column:1/-1; min-height:260px; display:grid; place-items:center; align-content:center; gap:7px; border:1px dashed #d9dce2; border-radius:8px; background:rgba(255,255,255,.55); color:var(--muted); }.asset-empty svg { width:30px; }.asset-empty strong { color:#555a63; font-size:12px; }.asset-empty span { font-size:10px; }.asset-empty.locked { border-color:#eadcc0; background:#fffaf0; }.asset-empty.locked svg { color:#a1813d; }
.help-modal { width:min(780px,100%); }.tutorial-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.tutorial-card { display:grid; grid-template-columns:118px minmax(0,1fr); gap:12px; align-items:center; padding:11px; border:1px solid var(--line); border-radius:8px; }.tutorial-card b { font-size:11px; }.tutorial-card p { margin:5px 0 0; color:var(--muted); font-size:9px; line-height:1.55; }.tutorial-media { padding:0; }.tutorial-media img,.tutorial-media video { width:100%; height:100%; min-height:82px; object-fit:cover; background:#111; }
.tutorial-visual { position:relative; min-height:82px; display:flex; align-items:center; justify-content:center; gap:7px; overflow:hidden; border-radius:6px; background:#f2f4f7; color:#59616e; }.tutorial-visual svg { width:18px; }.tutorial-visual > span:not(.bubble) { display:grid; place-items:center; width:31px; height:31px; border-radius:6px; background:white; box-shadow:0 2px 7px rgba(20,25,35,.08); }.tutorial-visual strong { font-size:9px; }.tutorial-visual small { position:absolute; right:6px; bottom:5px; padding:3px 5px; border-radius:4px; background:white; font-size:7px; }.chat-visual { align-items:stretch; flex-direction:column; padding:10px; }.bubble { max-width:84%; padding:6px 8px; border-radius:6px; font-size:7px; }.bubble.left { align-self:flex-start; background:white; }.bubble.right { align-self:flex-end; color:white; background:#2d333b; }.video-visual span { color:white; background:#2d333b !important; }.image-visual span { width:42px !important; height:54px !important; background:#dce8e2 !important; }.image-visual span:nth-child(2) { background:#eee4d8 !important; }.asset-visual { display:grid; grid-template-columns:repeat(2,30px); }.wallet-visual strong { font-size:12px; }
.floating-support { position:fixed; top:50%; right:0; z-index:45; min-height:92px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; padding:10px 8px; border:1px solid #dce2ee; border-right:0; border-radius:8px 0 0 8px; background:white; color:#41516b; box-shadow:0 8px 24px rgba(20,25,35,.13); cursor:pointer; transform:translateY(-50%); }.floating-support:hover { color:var(--blue); background:#f7f9fe; }.floating-support svg { width:19px; }.floating-support span { writing-mode:vertical-rl; font-size:10px; letter-spacing:0; }
.support-modal { width:min(520px,100%); }.support-icon { width:38px; height:38px; display:grid; place-items:center; margin-bottom:13px; border-radius:8px; color:#285dbb; background:#eaf1ff; }.support-icon svg { width:19px; }.support-modal select,.support-modal textarea { width:100%; padding:9px 10px; border:1px solid #dfe1e6; border-radius:6px; outline:0; background:white; font:inherit; font-size:11px; }.support-modal select { height:40px; }.support-modal textarea { resize:vertical; line-height:1.55; }.support-contact-card { display:flex; align-items:center; justify-content:center; gap:18px; padding:14px; margin:12px 0 4px; border:1px solid #dce5f5; border-radius:8px; background:#f7f9fd; }.support-qr-button { width:220px; height:220px; flex:0 0 220px; display:grid; place-items:center; padding:8px; border:1px solid #d9dde5; border-radius:6px; background:#fff; cursor:zoom-in; }.support-qr-button img { display:block; width:100%; height:100%; object-fit:contain; image-rendering:auto; }.support-contact-card > div { display:grid; gap:7px; }.support-contact-card span,.support-contact-card small { color:var(--muted); font-size:9px; line-height:1.5; }.support-contact-card strong { font-size:12px; word-break:break-all; }.support-qr-download { width:max-content; color:var(--blue); font-size:10px; font-weight:600; text-decoration:none; }.qr-lightbox { z-index:90; }.qr-lightbox section { position:relative; width:min(520px,94vw); display:grid; justify-items:center; gap:10px; padding:38px 24px 24px; border-radius:8px; background:#fff; }.qr-lightbox img { width:min(400px,78vw); height:min(400px,78vw); object-fit:contain; background:#fff; }.qr-lightbox strong { font-size:14px; }.qr-lightbox span { color:var(--muted); font-size:10px; text-align:center; }
.notification-detail-modal { width:min(560px,100%); }.notification-detail-modal h2 { margin-bottom:6px; }.notification-detail-time { margin:0 0 18px; color:var(--muted); font-size:10px; }.notification-detail-image { width:100%; max-height:300px; margin-bottom:12px; border-radius:7px; object-fit:contain; background:#f4f5f7; }.notification-detail-content { min-height:100px; padding:14px; border-radius:7px; background:#f6f7f9; color:#4f5560; font-size:12px; line-height:1.8; white-space:pre-wrap; }
.payment-modal { width:min(430px,100%); text-align:center; }.payment-modal .eyebrow { text-align:left; }.payment-modal h2 { margin-bottom:14px; text-align:left; }.payment-amount { display:grid; justify-items:center; gap:4px; padding:13px; margin-bottom:12px; border-radius:7px; background:#f6f8fc; }.payment-amount > span { color:var(--muted); font-size:9px; }.payment-amount strong { color:#1d2530; font-size:19px; }.payment-amount strong b { font-size:30px; }.payment-amount small { color:#667084; font-size:9px; }.payment-qr-wrap { width:220px; height:220px; margin:0 auto 12px; padding:8px; border:1px solid var(--line); border-radius:7px; background:white; }.payment-qr-wrap img { width:100%; height:100%; object-fit:contain; }.payment-unconfigured { min-height:130px; display:grid; place-items:center; align-content:center; gap:6px; margin-bottom:12px; padding:18px; border:1px dashed #dfcda8; border-radius:7px; background:#fffaf0; color:#7a5c1d; }.payment-unconfigured svg { width:24px; }.payment-unconfigured strong { font-size:11px; }.payment-unconfigured span { font-size:9px; }.payment-order { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 8px; align-items:center; padding:10px 11px; border:1px solid var(--line); border-radius:7px; text-align:left; }.payment-order > span { grid-column:1/-1; color:var(--muted); font-size:8px; }.payment-order strong { min-width:0; overflow:hidden; color:#303641; font-family:ui-monospace,monospace; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }.payment-order button { height:28px; display:flex; align-items:center; gap:4px; padding:0 8px; border:1px solid var(--line); border-radius:5px; background:white; color:#4e5969; font-size:8px; cursor:pointer; }.payment-order button svg { width:12px; }.payment-payee { margin:10px 0 0; color:#4c5563; font-size:10px; }.payment-modal > .auth-hint { margin:8px 0 12px; line-height:1.6; }.payment-status { display:flex; align-items:center; gap:9px; padding:10px; border-radius:7px; background:#f5f8ff; color:#315b9c; text-align:left; }.payment-status > svg { width:18px; flex:0 0 auto; }.payment-status div { display:grid; gap:3px; }.payment-status strong { font-size:10px; }.payment-status span { color:#63718a; font-size:8px; line-height:1.5; }.payment-modal .primary-auth { width:100%; }
.payment-methods { display:flex; gap:5px; overflow-x:auto; margin:0 0 10px; padding:3px; border-radius:7px; background:#eef0f3; }.payment-methods button { flex:1 0 auto; height:30px; padding:0 10px; border:0; border-radius:5px; background:transparent; color:#686e78; font-size:9px; cursor:pointer; }.payment-methods button.active { color:#1f2630; background:white; box-shadow:0 1px 4px rgba(0,0,0,.08); }
.work-preview-modal { width:min(760px,100%); }.work-preview-stage { display:grid; place-items:center; min-height:360px; max-height:60vh; overflow:hidden; border-radius:8px; background:#111; }.work-preview-stage img,.work-preview-stage video { display:block; width:100%; max-height:60vh; object-fit:contain; }.work-preview-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:13px; }.work-preview-footer > div { min-width:0; display:grid; gap:4px; text-align:left; }.work-preview-footer strong { font-size:11px; }.work-preview-footer span { color:var(--muted); font-size:9px; }.work-download-button { width:max-content; display:flex; align-items:center; justify-content:center; gap:6px; margin:0; padding:0 14px; text-decoration:none; }.work-download-button svg { width:14px; }

.pricing-page { padding:4px 0 60px; }.pricing-back { display:inline-flex; align-items:center; gap:6px; margin:8px 0 22px; padding:7px 0; border:0; background:transparent; color:var(--muted); font-size:10px; cursor:pointer; }.pricing-back svg { width:14px; }
.pricing-heading { max-width:620px; margin-bottom:22px; }.pricing-heading h2 { margin:0 0 8px; font-size:28px; }.pricing-heading > p:last-child { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.pricing-rule-band { display:grid; grid-template-columns:repeat(3,1fr); margin-bottom:30px; border:1px solid var(--line); border-radius:8px; background:white; }.pricing-rule-band > div { display:flex; align-items:center; gap:11px; padding:15px; border-right:1px solid var(--line); }.pricing-rule-band > div:last-child { border:0; }.pricing-rule-band svg { width:20px; color:var(--blue); }.pricing-rule-band span { display:grid; gap:3px; }.pricing-rule-band strong { font-size:11px; }.pricing-rule-band small { color:var(--muted); font-size:8px; }
.pricing-section-heading { display:flex; align-items:end; justify-content:space-between; margin-bottom:13px; }.pricing-section-heading h3 { margin:0; font-size:17px; }.pricing-section-heading > span { color:var(--muted); font-size:9px; }.points-heading { margin-top:31px; }
.membership-pricing-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }.price-card { position:relative; padding:18px; border:1px solid var(--line); border-radius:8px; background:white; }.price-card.featured { border-color:#9eb8f4; box-shadow:0 10px 30px rgba(37,99,235,.09); }.recommended { position:absolute; top:0; right:12px; padding:4px 8px; border-radius:0 0 5px 5px; color:white; background:var(--blue); font-size:8px; }.price-period { color:#7a7e87; font-size:9px; }.price-card h3 { margin:7px 0 10px; font-size:15px; }.original-price { margin-bottom:3px; color:#989ca4; font-size:9px; }.original-price del { text-decoration-thickness:1px; }.price { display:flex; align-items:flex-start; gap:2px; }.price small { padding-top:6px; font-size:12px; }.price strong { font-size:32px; line-height:1; }.saving { display:inline-flex; width:max-content; margin-top:7px; padding:3px 6px; border-radius:4px; background:#fff1ed; color:#bb4c3e; font-size:8px; font-weight:600; }.price-card p { min-height:32px; margin:12px 0 15px; color:var(--muted); font-size:9px; line-height:1.6; }.price-card button { width:100%; height:34px; border:1px solid #dce0e7; border-radius:6px; background:#f8f9fb; color:#4f5560; font-size:10px; font-weight:600; cursor:pointer; }.price-card.featured button { border-color:var(--blue); color:white; background:var(--blue); }
.points-pricing-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }.points-pricing-grid button { min-height:88px; display:grid; gap:4px; justify-items:start; padding:14px; border:1px solid var(--line); border-radius:8px; background:white; cursor:pointer; text-align:left; }.points-pricing-grid button:hover { border-color:#aabcea; }.points-pricing-grid span { color:#555b66; font-size:10px; }.points-pricing-grid strong { font-size:20px; }.points-pricing-grid small { color:var(--muted); font-size:8px; }.pricing-note { display:flex; align-items:center; gap:7px; margin:15px 0 0; color:var(--muted); font-size:9px; }.pricing-note svg { width:14px; }
.member-costs { display:grid; gap:4px; margin:0 0 14px; padding:9px 10px; border-radius:6px; background:#f6f8fb; color:#616773; font-size:8px; list-style:none; }.member-costs li::before { content:"•"; margin-right:5px; color:var(--blue); }

@media (max-width: 1320px) { .search-box { display:none; }.api-status { display:none; } }

@media (max-width: 1180px) {
  .main-content { padding-inline: 24px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .work-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .asset-library-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .membership-pricing-grid,.points-pricing-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-content { padding: 0 18px 92px; }
  .content-grid { grid-template-columns: 1fr; }
  .task-panel { position: static; }
  .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; min-height: 68px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
  .mobile-nav button { min-height: 56px; display: grid; place-items: center; gap: 3px; padding: 5px; border: 0; background: none; color: #777b84; font-size: 9px; }
  .mobile-nav button svg { width: 19px; }
  .mobile-nav button.active { color: var(--blue); font-weight: 600; }
  .mobile-nav .mobile-create { justify-self: center; width: 44px; min-height: 44px; border-radius: 50%; background: var(--ink); color: white; box-shadow: 0 5px 18px rgba(0,0,0,.18); }
  .mobile-nav .mobile-create svg { width: 21px; }
  .asset-library-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .main-content { padding-inline: 13px; }
  .topbar { min-height: 84px; }
  .topbar h1 { font-size: 20px; }
  .search-box { display: none; }
  .api-status { display: none; }
  .account-button { max-width:122px; padding-right:7px; font-size:9px; }.account-button > span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .composer { padding: 15px; }
  .composer h2 { margin-top: 20px; font-size: 19px; }
  .history-button { font-size: 0; }
  .history-button svg { width: 18px; }
  .prompt-actions { align-items: end; }
  .tool-button { width: 31px; padding: 0; justify-content: center; font-size: 0; }
  .workflow-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 5px; }
  .workflow-card { display: block !important; flex: 0 0 82%; min-width: 0; scroll-snap-align: start; }
  .workflow-card.category-hidden { display: none !important; }
  .extra-workflow.hidden { display: none !important; }
  .work-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .work-item:last-child { display: block; }
  .section-block { margin-top: 26px; }
  .task-panel { padding: 15px; }
  .toast { right: 13px; bottom: 82px; left: 13px; justify-content: center; }
  .assets-heading { align-items:center; }.assets-heading h2 { font-size:21px; }.assets-heading p:last-child { display:none; }
  .asset-toolbar { align-items:stretch; flex-direction:column; }.asset-search { width:100%; }.asset-filters { overflow-x:auto; }
  .asset-upload-panel { grid-template-columns:1fr auto; }.asset-upload-panel label { grid-column:1/2; }.asset-upload-panel .primary-asset-button { grid-column:2/3; grid-row:2; }.cancel-asset-button { grid-column:2; grid-row:1; }
  .tutorial-grid { grid-template-columns:1fr; }.tutorial-card { grid-template-columns:92px minmax(0,1fr); }.tutorial-visual { min-height:72px; }
  .floating-support { min-height:46px; padding:8px; }.floating-support span { display:none; }
  .notification-panel { position:fixed; top:72px; right:13px; left:13px; width:auto; }
  .pricing-heading h2 { font-size:23px; }.pricing-rule-band { grid-template-columns:1fr; }.pricing-rule-band > div { border-right:0; border-bottom:1px solid var(--line); }.membership-pricing-grid,.points-pricing-grid { grid-template-columns:1fr 1fr; }.pricing-section-heading > span { display:none; }
  .support-contact-card { flex-direction:column; }.support-qr-button { width:min(240px,100%); height:auto; aspect-ratio:1; flex-basis:auto; }.support-contact-card > div { justify-items:center; text-align:center; }
  .work-preview-stage { min-height:220px; }.work-preview-footer { align-items:stretch; flex-direction:column; }.work-download-button { width:100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.logout-user { width:100%; margin-top:10px; padding:7px; border:0; background:transparent; color:#8b8f97; font-size:10px; cursor:pointer; }
.agent-center { margin-top:14px; padding-top:2px; border-top:1px solid var(--line); }
.agent-request-form { display:grid; grid-template-columns:1.3fr .8fr auto; align-items:end; gap:8px; margin:8px 0; }
.agent-request-form label { min-width:0; }
.agent-request-form select,.agent-request-form input,.agent-search-row input { width:100%; height:34px; padding:0 9px; border:1px solid var(--line); border-radius:6px; background:#fff; font:inherit; font-size:10px; }
.agent-request-form .primary-auth { height:34px; white-space:nowrap; }
.agent-search-row { display:grid; grid-template-columns:1fr auto; gap:8px; margin:10px 0; }
.agent-search-row button { height:34px; padding:0 12px; border:1px solid var(--line); border-radius:6px; background:#fff; color:#555b65; font:inherit; font-size:10px; cursor:pointer; }
.agent-card-list { max-height:190px; }
.agent-card-list > div { align-items:center; }
.agent-card-list strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:ui-monospace,monospace; color:#31548d; }
.agent-card-list span { text-align:right; }
.agent-copy-card { margin-left:5px; border:0; background:none; color:var(--blue); font:inherit; font-size:9px; cursor:pointer; }
.agent-request-history { display:grid; gap:5px; margin-top:8px; }
.agent-request-record { display:flex; justify-content:space-between; gap:8px; padding:7px 9px; border-radius:6px; background:#f6f7f9; color:#707783; font-size:9px; }
.agent-request-empty { margin:0; color:var(--muted); font-size:9px; }
@media (max-width:620px) { .agent-request-form { grid-template-columns:1fr 1fr; }.agent-request-form .primary-auth { grid-column:1/-1; width:100%; } }

/* Knowledge workflow controls live in the composer, not on the cover. */
.knowledge-controls{margin:0 0 20px;padding:20px;border:1px solid #e7eaf0;border-radius:16px;background:#f8fafc}
.knowledge-controls-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;font-size:14px}
.knowledge-controls-heading>span{font-size:12px;color:#8490a3}
.knowledge-fields{display:grid;grid-template-columns:1.4fr 1fr;gap:14px}
.knowledge-photo{display:flex;align-items:center;gap:12px;text-align:left;padding:14px 16px;border:1px dashed #cbd5e1;border-radius:12px;background:white;color:#263449;cursor:pointer;font:inherit}
.knowledge-photo>span{flex:1;font-size:14px}.knowledge-photo small{display:block;margin-top:5px;font-size:11px;color:#7c8799}.knowledge-photo svg{width:20px;height:20px;color:#59769e}
.knowledge-voice{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#657187}.knowledge-voice select{width:100%;padding:12px;border:1px solid #e0e5ec;border-radius:10px;background:#fff;color:#263449;font:inherit;font-size:14px}
.knowledge-note{margin:12px 0 0;font-size:11px;color:#7c8799}
.parent-dialogue-controls select{width:100%;padding:12px;border:1px solid #e0e5ec;border-radius:10px;background:#fff;color:#263449;font:inherit;font-size:14px}
.drama-auto-field{display:none!important}
@media(max-width:600px){.knowledge-fields{grid-template-columns:1fr}.knowledge-controls{padding:16px}}

#generationErrorDialog{width:min(440px,calc(100vw - 40px));box-sizing:border-box;padding:28px;border:0;border-radius:18px;color:#243044;box-shadow:0 20px 70px #0003}#generationErrorDialog::backdrop{background:#18233777}#generationErrorDialog h3{margin:0 0 14px}#generationErrorDialog p{line-height:1.8;overflow-wrap:anywhere;font-size:14px}#generationErrorDialog button{display:block;margin:20px 0 0 auto;background:#202938;color:white;border:0;border-radius:9px;padding:10px 24px;cursor:pointer}

.referral-center{margin-top:2px}.referral-link-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border:1px solid #dce5f5;border-radius:7px;background:#f6f9ff}.referral-link-row strong{overflow:hidden;color:#31548d;font-family:ui-monospace,monospace;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.referral-link-row button,.referral-apply-form button{height:30px;padding:0 10px;border:1px solid #cbd8f2;border-radius:5px;background:#fff;color:#315cae;font:inherit;font-size:9px;cursor:pointer;white-space:nowrap}.referral-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:8px}.referral-stats div{display:grid;gap:3px;padding:8px;border-radius:6px;background:#f6f7f9;text-align:center}.referral-stats strong{color:#31548d;font-size:14px}.referral-stats span{color:var(--muted);font-size:8px}.referral-apply-form{display:grid;grid-template-columns:1fr auto;align-items:end;gap:8px;margin-top:9px}.referral-apply-form label{display:grid;gap:5px;color:var(--muted);font-size:9px}.referral-apply-form input{width:100%;height:30px;box-sizing:border-box;padding:0 8px;border:1px solid var(--line);border-radius:5px;font:inherit;font-size:9px}.referral-apply-form button{height:30px;color:#fff;background:#315cae;border-color:#315cae}
