:root {
  color-scheme: light;
  --ink: #202129;
  --muted: #777983;
  --subtle: #a5a6ad;
  --line: #e7e7e9;
  --panel: rgba(255,255,255,.9);
  --canvas: #f7f7f5;
  --lime: #c8f35d;
  --lime-dark: #a8d63b;
  --purple: #705cf6;
  --purple-soft: #f0edff;
  --red: #ef5365;
  --green: #168b62;
  --shadow: 0 18px 55px rgba(43,42,55,.08), 0 2px 8px rgba(43,42,55,.03);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); overflow-x: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: .28; }
.ambient-a { width: 580px; height: 580px; top: -330px; right: -170px; background: #d8cbff; }
.ambient-b { width: 520px; height: 520px; bottom: -340px; left: -240px; background: #e4f8a8; }

.topbar { width: min(1240px, calc(100% - 52px)); height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-symbol { position: relative; width: 39px; height: 39px; display: block; border-radius: 12px; background: var(--ink); box-shadow: 0 8px 20px rgba(32,33,41,.16); overflow: hidden; }
.brand-symbol i { position: absolute; width: 7px; bottom: 9px; border-radius: 4px 4px 2px 2px; background: var(--lime); }
.brand-symbol i:nth-child(1) { left: 8px; height: 11px; }
.brand-symbol i:nth-child(2) { left: 16px; height: 17px; }
.brand-symbol i:nth-child(3) { left: 24px; height: 23px; }
.brand-copy { display: grid; line-height: 1; gap: 4px; }
.brand-copy strong { font-size: 17px; letter-spacing: .05em; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.topbar-meta { display: flex; align-items: center; gap: 22px; }
.local-badge { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.62); font-size: 10px; }
.local-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,139,98,.09); }
.home-link { color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 650; }
.home-link:hover { color: var(--ink); }

main { width: min(1160px, calc(100% - 52px)); min-height: calc(100vh - 154px); margin: 0 auto; padding: 45px 0 74px; }
.page-loading { min-height: 60vh; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); font-size: 12px; }
.page-loading span { width: 25px; height: 25px; border: 2px solid #dedde2; border-top-color: var(--purple); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--purple); font-size: 9px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 60px; align-items: end; padding: 50px 0 58px; }
.home-hero h1 { max-width: 650px; margin: 15px 0 18px; font-size: clamp(46px, 6.2vw, 74px); line-height: 1.04; letter-spacing: -.065em; }
.home-hero h1 em { color: var(--purple); font-style: normal; }
.home-hero p { max-width: 590px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.platform-cloud { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.platform-chip { min-height: 57px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.7); color: #5f6069; font-size: 12px; font-weight: 650; }
.platform-chip:last-child { grid-column: 1 / -1; }
.platform-logo { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #fff; font-size: 10px; font-weight: 850; letter-spacing: -.05em; }
.p-xiaohongshu { background: #ff2442; }
.p-douyin { background: #19191e; }
.p-weibo { background: #ff8200; }
.p-bilibili { background: #00aeec; }
.p-wechat_channels { background: #07c160; }

.create-panel { padding: 30px; border: 1px solid #dfdee3; border-radius: 22px; background: var(--ink); color: #fff; box-shadow: 0 18px 46px rgba(32,33,41,.15); }
.create-panel-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 21px; }
.create-panel h2 { margin: 6px 0 0; font-size: 21px; letter-spacing: -.03em; }
.create-panel small { color: #aaaab2; font-size: 10px; }
.create-number { color: var(--lime); font: 800 34px/1 Georgia, serif; font-style: italic; }
.name-form { display: flex; gap: 10px; }
.name-input { min-width: 0; flex: 1; height: 48px; padding: 0 15px; outline: 0; border: 1px solid #464750; border-radius: 11px; color: #fff; background: #2a2b33; font-size: 13px; transition: .2s; }
.name-input::placeholder { color: #777882; }
.name-input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(200,243,93,.1); }
.create-button { height: 48px; padding: 0 19px; border: 0; border-radius: 11px; background: var(--lime); color: #282a20; cursor: pointer; font-size: 12px; font-weight: 800; white-space: nowrap; transition: .18s; }
.create-button:hover { background: #d5ff70; transform: translateY(-1px); }
.create-button:disabled { opacity: .5; cursor: wait; }

.projects-section { margin-top: 26px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.section-head h2 { margin: 6px 0 0; font-size: 25px; letter-spacing: -.04em; }
.section-count { color: var(--muted); font-size: 11px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.project-card { position: relative; min-height: 210px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 8px 28px rgba(43,42,55,.045); cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; overflow: hidden; }
.project-card:hover { transform: translateY(-3px); border-color: #cac7db; box-shadow: var(--shadow); }
.project-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -40px; top: -40px; border-radius: 50%; background: var(--purple-soft); }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-index { color: var(--subtle); font: italic 700 12px Georgia, serif; }
.project-arrow { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #777681; background: #f2f1f4; font-size: 15px; }
.project-card h3 { margin: 25px 0 8px; max-width: 85%; font-size: 19px; letter-spacing: -.035em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card > p { margin: 0; color: var(--muted); font-size: 10px; }
.project-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.project-platforms { display: flex; }
.mini-platform { width: 25px; height: 25px; margin-left: -4px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 8px; color: #fff; font-size: 7px; font-weight: 850; }
.mini-platform:first-child { margin-left: 0; }
.project-publish-progress { width: 145px; text-align: right; }
.project-publish-progress > div:first-child { display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; }
.project-publish-progress strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.project-publish-progress small, .project-publish-progress > span { color: var(--subtle); font-size: 8px; }
.project-publish-progress > span { display: block; margin-top: 2px; }
.project-progress-track { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #e9e7ed; }
.project-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), #9b8dff); }
.empty-projects { padding: 62px 25px; border: 1px dashed #d6d4db; border-radius: 18px; text-align: center; color: var(--muted); background: rgba(255,255,255,.38); }
.empty-projects strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; }
.empty-projects p { margin: 0; font-size: 11px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 29px; color: var(--muted); font-size: 10px; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb i { width: 3px; height: 3px; border-radius: 50%; background: #bbb9c0; }
.project-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.project-title-row { display: flex; align-items: center; gap: 10px; }
.project-header h1 { margin: 8px 0 8px; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.055em; line-height: 1.1; }
.edit-name { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); cursor: pointer; }
.project-subtitle { margin: 0; color: var(--muted); font-size: 11px; }
.header-actions { display: flex; gap: 9px; padding-top: 15px; }
.button { height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 11px; font-weight: 700; transition: .17s; }
.button:hover:not(:disabled) { transform: translateY(-1px); border-color: #cbc9d1; box-shadow: 0 7px 18px rgba(43,42,55,.08); }
.button:disabled { opacity: .48; cursor: wait; }
.button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.button-primary:hover:not(:disabled) { background: #30313b; }
.button-purple { border-color: var(--purple); background: var(--purple); color: #fff; }
.delete-project-button { border-color: #f0d5d9; color: #b44352; background: #fffafa; }
.delete-project-button:hover:not(:disabled) { border-color: #e3aab2; color: #9f2f3f; background: #fff3f5; }

.delete-project-dialog label { display: grid; gap: 7px; color: var(--muted); font-size: 9px; }
.delete-project-dialog input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; }
.delete-project-dialog input:focus { border-color: #cf6270; box-shadow: 0 0 0 3px rgba(207,98,112,.1); }
.delete-project-warning { padding: 14px; display: grid; gap: 5px; border: 1px solid #f0d5d9; border-radius: 11px; color: #a23847; background: #fff6f7; }
.delete-project-warning strong { font-size: 12px; }
.delete-project-warning span { font-size: 9px; line-height: 1.6; }
.delete-project-error { margin: -7px 0 0; color: #b03949; font-size: 9px; }
.delete-project-confirm { min-height: 44px; border: 0; border-radius: 10px; color: #fff; background: #b83d4d; cursor: pointer; font-weight: 750; }
.delete-project-confirm:hover:not(:disabled) { background: #9e2f3e; }
.delete-project-confirm:disabled { opacity: .4; cursor: not-allowed; }

.estimate-panel { margin-bottom: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.estimate-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 15px; }
.estimate-head h2 { margin: 5px 0 0; font-size: 16px; }
.estimate-head p { margin: 0; color: var(--muted); font-size: 9px; }
.estimate-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 120px; gap: 9px; align-items: end; }
.estimate-form label { display: grid; gap: 6px; color: var(--muted); font-size: 9px; }
.estimate-form input { width: 100%; height: 42px; padding: 0 12px; outline: 0; border: 1px solid var(--line); border-radius: 9px; background: #faf9fa; color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; transition: .15s; }
.estimate-form input:focus { border-color: var(--purple); background: #fff; box-shadow: 0 0 0 3px rgba(112,92,246,.08); }
.estimate-save { height: 42px; border: 0; border-radius: 9px; background: var(--purple); color: #fff; cursor: pointer; font-size: 10px; font-weight: 750; }
.estimate-save:hover:not(:disabled) { background: #5e4ce5; }
.estimate-save:disabled { opacity: .5; cursor: wait; }

.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.metric-card { min-width: 0; padding: 19px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.metric-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.metric-card > strong { display: block; margin: 12px 0 6px; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.metric-card > small { color: var(--subtle); font-size: 9px; }
.metric-main { border-color: #dcd6ff; background: linear-gradient(135deg, #f5f2ff, #fff); }
.metric-main > strong { color: var(--purple); }
.metric-compare { display: flex; justify-content: space-between; gap: 10px; color: #777680; font-size: 9px; font-variant-numeric: tabular-nums; }
.completion-row { min-height: 20px; margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.completion-row small { color: var(--subtle); font-size: 8px; }
.completion-rate { flex: 0 0 auto; color: var(--purple); font-size: 10px; font-variant-numeric: tabular-nums; }
.completion-rate.done { color: var(--green); }
.completion-track { height: 5px; margin-top: 7px; border-radius: 999px; overflow: hidden; background: #eceaf0; }
.completion-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), #9b8dff); transition: width .25s ease; }
.metric-main .completion-track i { background: linear-gradient(90deg, var(--purple), var(--lime)); }
.trend { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 999px; font-size: 8px; font-weight: 750; }
.trend-up { color: var(--green); background: #ebf8f2; }
.trend-down { color: #d34556; background: #fff0f2; }
.trend-flat { color: #84838b; background: #f0eff2; }
.trend-na { color: #aaa8ae; background: #f3f2f4; }

.collector { margin-bottom: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 7px 30px rgba(43,42,55,.04); }
.collector-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 14px; }
.collector h2 { margin: 4px 0 0; font-size: 16px; }
.url-count { color: var(--muted); font-size: 10px; }
.url-count strong { color: var(--ink); font-size: 16px; }
.collector-body { display: grid; grid-template-columns: 1fr 132px; gap: 10px; }
.url-input { width: 100%; min-height: 92px; padding: 13px 15px; resize: vertical; outline: 0; border: 1px solid var(--line); border-radius: 11px; background: #faf9fa; color: var(--ink); font-size: 11px; line-height: 1.65; transition: .2s; }
.url-input:focus { border-color: #a99efa; background: #fff; box-shadow: 0 0 0 3px rgba(112,92,246,.08); }
.url-input::placeholder { color: #aaa8ae; }
.collect-button { border: 0; border-radius: 11px; background: var(--lime); color: #2c3023; cursor: pointer; font-size: 12px; font-weight: 800; }
.collect-button:hover:not(:disabled) { background: #d4ff6b; }
.collect-button:disabled { opacity: .45; cursor: wait; }
.file-import-row { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.file-import-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.file-import-button { height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #5e5d66; cursor: pointer; font-size: 9px; font-weight: 700; transition: .15s; }
.file-import-button:hover { border-color: #bdb8d0; color: var(--purple); background: #fbfaff; }
.file-import-button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.file-import-input:focus + .file-import-button { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(112,92,246,.08); }
.file-import-input:disabled + .file-import-button { opacity: .45; cursor: wait; }
.file-import-row > span { color: var(--subtle); font-size: 8px; }
.detected-platforms { min-height: 20px; margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 9px; }
.detected-tag { padding: 4px 7px; border-radius: 6px; background: #f1f0f3; color: #66666e; }
.collector-progress { margin-top: 12px; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.progress-track { height: 4px; margin-top: 7px; border-radius: 999px; background: #ecebef; overflow: hidden; }
.progress-track i { display: block; width: 35%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), #9c8eff); animation: progress-slide 1.1s ease-in-out infinite alternate; }
@keyframes progress-slide { to { transform: translateX(180%); } }

.data-panel { border: 1px solid var(--line); border-radius: 17px; background: var(--panel); overflow: hidden; box-shadow: 0 9px 34px rgba(43,42,55,.045); }
.data-head { padding: 19px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.data-title { display: flex; align-items: baseline; gap: 10px; }
.data-title h2 { margin: 0; font-size: 16px; }
.data-title span { color: var(--muted); font-size: 9px; }
.filter-row { display: flex; gap: 5px; }
.filter-button { padding: 6px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; }
.filter-button.active { color: var(--purple); background: var(--purple-soft); font-weight: 750; }
.table-scroll { overflow: auto; }
table { width: 100%; min-width: 1480px; border-collapse: collapse; table-layout: fixed; }
th { padding: 11px 12px; background: #faf9fa; border-bottom: 1px solid var(--line); color: #8d8d95; text-align: left; font-size: 9px; white-space: nowrap; }
th:nth-child(1) { width: 85px; } th:nth-child(2) { width: 215px; } th:nth-child(3) { width: 125px; }
th:nth-child(4), th:nth-child(5), th:nth-child(6), th:nth-child(7) { width: 78px; } th:nth-child(8) { width: 112px; }
th:nth-child(9) { width: 110px; } th:nth-child(10), th:nth-child(11) { width: 90px; } th:nth-child(12) { width: 47px; }
td { padding: 13px 12px; border-bottom: 1px solid #efedf0; vertical-align: top; font-size: 10px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fdfcfd; }
.platform-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 7px; color: #fff; font-size: 8px; font-weight: 700; white-space: nowrap; }
.content-cell { display: grid; gap: 4px; }
.content-cell strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content-cell a { color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.content-cell a:hover { color: var(--purple); text-decoration: underline; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.manual-number { width: 100%; height: 31px; padding: 0 8px; border: 1px solid #dedce2; border-radius: 7px; outline: 0; background: #fff; color: var(--ink); text-align: right; font: inherit; font-variant-numeric: tabular-nums; transition: .15s; }
.manual-number:hover { border-color: #c8c4d2; }
.manual-number:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(112,92,246,.08); }
.manual-number:disabled { opacity: .55; cursor: wait; }
.metric-money { font-weight: 700; color: #4d4c55; }
.cell-trend { margin-top: 4px; display: flex; justify-content: flex-end; }
.remove-item { width: 25px; height: 25px; border: 0; border-radius: 7px; color: #aaa8ae; background: transparent; cursor: pointer; }
.remove-item:hover { color: var(--red); background: #fff0f2; }
.failed-row td { background: #fffafb; }
.error-text { color: #b64b5a; line-height: 1.45; }
.empty-data { padding: 62px 20px; text-align: center; color: var(--muted); }
.empty-data-icon { width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 17px; background: #f1efff; color: var(--purple); font-size: 21px; }
.empty-data strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 13px; }
.empty-data p { margin: 0; font-size: 10px; }

.user-chip { display: grid; gap: 2px; text-align: right; line-height: 1.1; }
.user-chip b { font-size: 11px; }
.user-chip small { color: var(--muted); font-size: 9px; }
.admin-link { color: var(--purple); }
.logout-button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); cursor: pointer; font-size: 10px; }
.logout-button:hover { border-color: #c8c4d2; color: var(--ink); }

.login-shell { min-height: calc(100vh - 240px); display: grid; grid-template-columns: 1.05fr .75fr; gap: 80px; align-items: center; }
.login-intro h1 { margin: 15px 0 20px; font-size: clamp(48px, 6vw, 76px); line-height: 1.02; letter-spacing: -.065em; }
.login-intro h1 em { color: var(--purple); font-style: normal; }
.login-intro p { max-width: 590px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.login-platforms { margin-top: 28px; display: flex; gap: 8px; }
.login-card { padding: 34px; display: grid; gap: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.login-card small, .admin-create > div > small { color: var(--purple); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.login-card h2 { margin: 7px 0 5px; font-size: 25px; }
.login-card > div p, .login-help { margin: 0; color: var(--muted); font-size: 10px; }
.login-card label, .admin-create label { display: grid; gap: 7px; }
.login-card label span, .admin-create label span { color: #686972; font-size: 10px; font-weight: 700; }
.login-card input, .admin-create input, .admin-create select { width: 100%; height: 45px; padding: 0 13px; outline: 0; border: 1px solid #dedde2; border-radius: 10px; background: #fff; color: var(--ink); font-size: 12px; }
.login-card input:focus, .admin-create input:focus, .admin-create select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(112,92,246,.08); }
.login-card > button, .admin-create form > button { height: 47px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; cursor: pointer; font-size: 11px; font-weight: 800; }
.login-card > button:hover, .admin-create form > button:hover { background: #33343d; }
.login-card > button:disabled, .admin-create form > button:disabled { opacity: .55; cursor: wait; }
.login-help { text-align: center; }

.ownership-badge, .readonly-title { padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 800; }
.ownership-badge.mine { background: #edf8ce; color: #58730d; }
.ownership-badge.readonly, .readonly-title { background: #f0edff; color: var(--purple); }
.readonly-banner { margin-bottom: 12px; padding: 13px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid #ddd7ff; border-radius: 12px; background: #f6f4ff; color: #6256a3; }
.readonly-banner strong { font-size: 11px; }
.readonly-banner span { font-size: 10px; }
.readonly-value { color: #585962; font-variant-numeric: tabular-nums; }
.estimate-form input:disabled { color: #5f6068; background: #f3f3f2; cursor: not-allowed; }

.admin-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.admin-header h1 { margin: 10px 0 8px; font-size: 43px; letter-spacing: -.055em; }
.admin-header p, .admin-create p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-count { min-width: 90px; color: var(--purple); font-size: 38px; font-weight: 800; line-height: 1; text-align: right; }
.admin-count small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.credential-panel { margin-bottom: 16px; padding: 18px 20px; display: grid; grid-template-columns: 1fr minmax(260px, 1fr) auto; align-items: center; gap: 18px; border: 1px solid #b9de55; border-radius: 14px; background: #f5fddd; }
.credential-panel > div { display: grid; gap: 4px; }
.credential-panel small { color: #6e812e; font-size: 9px; }
.credential-panel strong { font-size: 13px; }
.credential-panel code { padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,.8); color: #3f4822; font-size: 11px; line-height: 1.7; word-break: break-all; }
.credential-panel button { padding: 9px 13px; border: 0; border-radius: 8px; background: #52651f; color: #fff; cursor: pointer; font-size: 10px; font-weight: 750; }
.admin-create { margin-bottom: 26px; padding: 24px; display: grid; grid-template-columns: 220px 1fr; gap: 28px; border-radius: 18px; background: var(--ink); color: #fff; }
.admin-create h2 { margin: 7px 0 8px; font-size: 20px; }
.admin-create > div p { color: #aaaab2; line-height: 1.6; }
.admin-create form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.admin-create label span { color: #c7c7cc; }
.admin-create form > button { align-self: end; background: var(--lime); color: #292b20; }
.admin-users { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.user-table-wrap { overflow-x: auto; }
.user-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.user-table th { padding: 10px 9px; border-bottom: 1px solid var(--line); color: var(--subtle); font-size: 8px; text-align: left; white-space: nowrap; }
.user-table td { padding: 13px 9px; border-bottom: 1px solid #efeff0; color: #5f6068; }
.user-table td:first-child { display: grid; gap: 3px; }
.user-table td:first-child strong { color: var(--ink); font-size: 11px; }
.user-table td:first-child small { color: var(--muted); }
.role-badge, .status-badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #f0edff; color: var(--purple); font-size: 8px; font-weight: 800; }
.role-select { min-width: 170px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 10px; }
.role-select:disabled { cursor: not-allowed; background: #f4f3f0; color: var(--muted); opacity: .8; }
.status-badge.active { background: #e8f7ef; color: var(--green); }
.status-badge.inactive { background: #f1f1f1; color: #999; }
.user-actions { display: flex; gap: 6px; }
.user-actions button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #696a73; cursor: pointer; font-size: 8px; white-space: nowrap; }
.user-actions button:disabled { opacity: .35; cursor: not-allowed; }

.toast-region { position: fixed; z-index: 20; right: 22px; bottom: 22px; display: grid; gap: 8px; pointer-events: none; }
.toast { max-width: 350px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #56565e; box-shadow: 0 13px 38px rgba(43,42,55,.16); font-size: 11px; animation: toast-in .22s ease both; }
.toast.error { border-color: #ffd0d6; background: #fff8f9; color: #a43c4b; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } }
footer { height: 70px; display: flex; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 9px; }
footer i { width: 3px; height: 3px; border-radius: 50%; background: #c5c3c8; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; gap: 35px; }
  .login-intro { padding-top: 30px; }
  .admin-create { grid-template-columns: 1fr; }
  .credential-panel { grid-template-columns: 1fr; }
  .home-hero { grid-template-columns: 1fr; gap: 30px; }
  .platform-cloud { grid-template-columns: repeat(5, 1fr); }
  .platform-chip { justify-content: center; }
  .platform-chip:last-child { grid-column: auto; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .estimate-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .project-header { flex-direction: column; }
  .header-actions { padding-top: 0; }
}

@media (max-width: 650px) {
  .topbar, main { width: min(100% - 28px, 1160px); }
  .topbar { height: 70px; }
  main { padding-top: 28px; }
  .local-badge, .user-chip small { display: none; }
  .topbar-meta { gap: 9px; }
  .home-link { font-size: 9px; }
  .login-shell { min-height: auto; }
  .login-intro h1 { font-size: clamp(42px, 13vw, 60px); }
  .login-card { padding: 24px; }
  .admin-header { align-items: flex-start; }
  .admin-header h1 { font-size: 34px; }
  .admin-create form { grid-template-columns: 1fr; }
  .readonly-banner { align-items: flex-start; flex-direction: column; }
  .home-hero { padding: 35px 0 42px; }
  .home-hero h1 { font-size: clamp(42px, 13vw, 60px); }
  .platform-cloud { grid-template-columns: repeat(2, 1fr); }
  .platform-chip:last-child { grid-column: 1 / -1; }
  .projects-grid { grid-template-columns: 1fr; }
  .create-panel { padding: 22px; }
  .name-form { flex-direction: column; }
  .create-button { width: 100%; }
  .project-header h1 { font-size: 38px; }
  .project-header, .section-head { align-items: stretch; }
  .header-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .metrics-grid { gap: 8px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .estimate-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .estimate-form { grid-template-columns: 1fr; }
  .metric-card { padding: 15px; }
  .metric-card > strong { font-size: 22px; }
  .collector-body { grid-template-columns: 1fr; }
  .collect-button { min-height: 43px; }
  .file-import-row { align-items: flex-start; flex-direction: column; }
  .data-head { align-items: flex-start; flex-direction: column; }
  .filter-row { width: 100%; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Spark Lab portfolio shell */
body.portfolio-mode {
  --lab-bg: #060a0b;
  --lab-panel: #0a0f10;
  --lab-line: rgba(215, 225, 216, .15);
  --lab-muted: #929b96;
  --lab-white: #efefea;
  --lab-lime: #ccff22;
  min-height: 100vh;
  color: var(--lab-white);
  background:
    radial-gradient(circle at 62% 24%, rgba(190, 255, 28, .055), transparent 25%),
    linear-gradient(rgba(190, 204, 194, .038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 204, 194, .038) 1px, transparent 1px),
    var(--lab-bg);
  background-size: auto, 58px 58px, 58px 58px, auto;
}
.portfolio-mode .ambient { display: none; }
.topbar.lab-topbar {
  position: sticky;
  z-index: 15;
  top: 0;
  width: 100%;
  height: 74px;
  padding: 0 clamp(20px, 3vw, 48px);
  border-bottom: 1px solid rgba(190, 204, 194, .12);
  background: rgba(5, 9, 10, .88);
  color: #f4f4ef;
  backdrop-filter: blur(18px);
}
.lab-brand { min-width: 210px; gap: 14px; color: #f4f4ef; }
.spark-mark { color: #caff21; font-size: 32px; line-height: 1; text-shadow: 0 0 20px rgba(202,255,33,.45); }
.lab-brand .brand-copy { gap: 3px; }
.lab-brand .brand-copy strong { color: #f4f4ef; font-size: 14px; letter-spacing: .28em; }
.lab-brand .brand-copy small { color: #7d8882; font-size: 7px; letter-spacing: .17em; }
.lab-nav { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 4vw, 68px); }
.lab-nav a { position: relative; color: #c5cbc7; text-decoration: none; font-size: 10px; font-weight: 650; letter-spacing: .15em; }
.lab-nav a::after { position: absolute; right: 0; bottom: -10px; left: 0; height: 1px; background: #caff21; content: ""; transform: scaleX(0); transition: transform .2s ease; }
.lab-nav a:hover { color: #fff; }
.lab-nav a:hover::after { transform: scaleX(1); }
.lab-login-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 18px; border: 1px solid #caff21; border-radius: 2px; color: #d7ff4a; text-decoration: none; font-size: 9px; font-weight: 800; letter-spacing: .15em; transition: .2s ease; }
.lab-login-button:hover { background: #caff21; color: #101500; }
.portfolio-mode .user-chip { color: #f4f4ef; }
.portfolio-mode .user-chip small { color: #a9ff24; }
.portfolio-mode .home-link { color: #caff21; }
.portfolio-mode .logout-button { border-color: rgba(255,255,255,.2); background: transparent; color: #cfd5d1; }
.portfolio-mode main { width: 100%; max-width: none; min-height: calc(100vh - 144px); padding: 0; }

.lab-hero {
  position: relative;
  width: min(100%, 1600px);
  min-height: 610px;
  margin: 0 auto;
  padding: 58px clamp(28px, 4.5vw, 76px) 42px;
  display: grid;
  grid-template-columns: minmax(580px, 1.45fr) minmax(350px, .78fr) minmax(270px, .46fr);
  align-items: center;
  overflow: hidden;
}
.lab-hero::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: rgba(210,220,212,.15); content: ""; }
.hero-index { position: absolute; top: 110px; bottom: 50px; left: 13px; display: flex; flex-direction: column; justify-content: space-around; color: #68716c; font: 7px ui-monospace, monospace; }
.hero-copy { position: relative; z-index: 2; }
.lab-kicker { color: #a6b0aa; font: 9px ui-monospace, monospace; letter-spacing: .16em; }
.hero-copy h1 { margin: 23px 0 16px; color: #efefea; font-family: Arial Black, Arial, sans-serif; font-size: clamp(112px, 13.5vw, 218px); font-weight: 950; letter-spacing: -.085em; line-height: .74; }
.hero-copy h1 span { color: #caff21; }
.hero-copy h2 { margin: 0 0 15px; color: #f3f3ee; font-size: clamp(20px, 2vw, 31px); font-weight: 500; letter-spacing: -.025em; }
.hero-copy h2 i { display: inline-block; width: 6px; height: 6px; margin-left: 5px; border-radius: 50%; background: #caff21; box-shadow: 0 0 14px #caff21; }
.hero-copy p { margin: 0; color: #9ba49f; font-size: 13px; line-height: 1.85; letter-spacing: .05em; }
.hero-visual { position: relative; align-self: stretch; min-width: 0; }
.spark-orb { position: absolute; top: 50%; left: 50%; width: min(34vw, 450px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.orb-core { position: absolute; z-index: 3; top: 50%; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: #f3ffc8; box-shadow: 0 0 7px #efffc2, 0 0 24px #d1ff24, 0 0 65px 20px rgba(201,255,30,.34); transform: translate(-50%, -50%); }
.orb-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(203,255,33,.3); border-radius: 50%; transform: translate(-50%, -50%) rotate(18deg); }
.ring-a { width: 74%; height: 29%; }
.ring-b { width: 54%; height: 84%; transform: translate(-50%, -50%) rotate(55deg); }
.ring-c { width: 91%; height: 52%; transform: translate(-50%, -50%) rotate(-33deg); }
.spark-orb::before, .spark-orb::after { position: absolute; inset: 12%; border: 1px solid rgba(203,255,33,.11); border-radius: 50%; content: ""; animation: orb-spin 18s linear infinite; }
.spark-orb::after { inset: 24%; animation-direction: reverse; animation-duration: 11s; }
.spark-orb > i { --angle: calc(var(--i) * 20deg); position: absolute; top: 50%; left: 50%; width: calc(2px + (var(--i) % 3) * 1px); height: calc(2px + (var(--i) % 3) * 1px); border-radius: 50%; background: #d2ff2d; box-shadow: 0 0 8px #caff21; transform: rotate(var(--angle)) translateX(calc(70px + (var(--i) % 6) * 23px)); }
@keyframes orb-spin { to { transform: rotate(360deg); } }
.lab-status { position: relative; z-index: 2; padding: 20px; border: 1px solid rgba(215,225,216,.16); background: rgba(6,11,12,.77); box-shadow: inset 0 0 35px rgba(0,0,0,.32); }
.lab-status::before, .lab-status::after { position: absolute; width: 9px; height: 9px; border-color: #caff21; content: ""; }
.lab-status::before { top: 7px; left: 7px; border-top: 1px solid; border-left: 1px solid; }
.lab-status::after { right: 7px; bottom: 7px; border-right: 1px solid; border-bottom: 1px solid; }
.status-title { display: flex; justify-content: space-between; padding-bottom: 14px; color: #d8ddd9; font: 9px ui-monospace, monospace; letter-spacing: .18em; }
.status-online { padding: 14px 0; border-top: 1px solid rgba(215,225,216,.14); border-bottom: 1px dotted rgba(215,225,216,.16); color: #d4ff39; font: 15px ui-monospace, monospace; letter-spacing: .12em; }
.status-online b { display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: #caff21; box-shadow: 0 0 12px #caff21; }
.lab-status dl { margin: 0; }
.lab-status dl > div { padding: 14px 0; border-bottom: 1px dotted rgba(215,225,216,.16); }
.lab-status dt { color: #89938d; font: 7px ui-monospace, monospace; letter-spacing: .13em; }
.lab-status dd { margin: 5px 0 0; color: #caff21; font: 31px ui-monospace, monospace; }
.lab-status dd.status-text { font-size: 15px; letter-spacing: .08em; }
.lab-status > small { display: block; padding-top: 18px; color: #378cff; font: 6px ui-monospace, monospace; letter-spacing: .17em; }
.lab-status > small i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #378cff; }

.spark-section { width: min(100%, 1600px); margin: 0 auto; padding: 58px clamp(28px, 4.5vw, 76px); }
.lab-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.lab-section-head > div { display: flex; align-items: center; gap: 15px; }
.section-square { width: 9px; height: 9px; background: #caff21; }
.lab-section-head small { color: #aab3ae; font: 10px ui-monospace, monospace; letter-spacing: .25em; }
.lab-section-head h2 { margin: 0; color: #f0f0eb; font-size: 27px; }
.lab-section-head p { margin: 0; color: #7e8882; font-size: 11px; }
.category-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.category-tabs button { padding: 9px 14px; border: 1px solid rgba(215,225,216,.14); background: transparent; color: #7f8983; cursor: pointer; font-size: 9px; letter-spacing: .08em; }
.category-tabs button.active { border-color: #caff21; color: #d9ff55; }
.category-tabs button:disabled { cursor: not-allowed; opacity: .4; }
.category-tabs button span { margin-left: 8px; opacity: .55; }
.lab-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.lab-work-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(215,225,216,.22); border-radius: 3px; background: #080d0e; color: #f1f1ec; cursor: pointer; transition: border-color .2s, transform .2s; }
.lab-work-card:hover { border-color: rgba(202,255,33,.7); transform: translateY(-3px); }
.work-preview { position: relative; min-height: 228px; padding: 17px; overflow: hidden; background: linear-gradient(135deg, #ecece6 0 53%, #111718 53%); }
.work-number { position: relative; z-index: 2; padding: 6px 9px; background: #0b0f10; color: #f4f4ef; font: 8px ui-monospace, monospace; letter-spacing: .12em; }
.work-preview-meta { position: absolute; z-index: 4; top: 15px; right: 15px; display: flex; gap: 6px; }
.work-preview-meta span { padding: 6px 9px; border: 1px solid rgba(202,255,33,.55); background: rgba(6,10,11,.84); color: #d4ff3a; font: 7px ui-monospace, monospace; letter-spacing: .12em; backdrop-filter: blur(6px); }
.work-launch { position: absolute; z-index: 4; right: 15px; bottom: 14px; padding: 7px 9px; border: 1px solid rgba(202,255,33,.45); background: rgba(6,10,11,.85); color: #d4ff3a; font-size: 7px; letter-spacing: .1em; }
.dashboard-preview { position: absolute; inset: 38px 9% 24px; display: grid; grid-template-columns: 54px 1fr; border: 1px solid rgba(15,18,18,.25); background: rgba(246,246,239,.94); box-shadow: 0 30px 70px rgba(0,0,0,.18); transform: rotate(-2deg); }
.preview-sidebar { padding: 14px 10px; background: #111718; }
.preview-sidebar i { display: block; height: 3px; margin: 0 0 14px; background: #caff21; opacity: .35; }
.preview-sidebar i:first-child { height: 18px; opacity: 1; }
.preview-main { position: relative; padding: 19px; }
.preview-main b { display: block; width: 42%; height: 16px; background: #151a1b; }
.preview-main span { display: inline-block; width: 24%; height: 38px; margin: 21px 6px 0 0; border: 1px solid #d9d9d3; background: #fff; }
.preview-main em { display: block; width: 78%; height: 38px; margin-top: 13px; background: repeating-linear-gradient(90deg, #d9d9d4 0 1px, transparent 1px 13px); }
.preview-orbit { position: absolute; right: 4%; top: 20%; width: 96px; height: 96px; border: 1px solid rgba(202,255,33,.55); border-radius: 50%; box-shadow: 0 0 40px rgba(202,255,33,.15); }
.game-preview { position: absolute; inset: 0; padding: 50px 9% 26px; background: radial-gradient(circle at 72% 43%, rgba(98,239,255,.2), transparent 27%), linear-gradient(135deg, #050b18 0 58%, #102446 58%); color: #f4f7ff; }
.game-preview::before { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(98,239,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(98,239,255,.22) 1px, transparent 1px); background-size: 22px 22px; content: ""; }
.game-preview > span,.game-preview > strong,.game-preview > div,.game-preview > small { position: relative; z-index: 1; }
.game-preview > span { display: block; color: #62efff; font: 7px ui-monospace, monospace; letter-spacing: .12em; }
.game-preview > strong { display: block; margin-top: 10px; color: #fff; font-size: clamp(29px, 3vw, 43px); letter-spacing: -.08em; line-height: .8; text-shadow: 3px 3px 0 #173b6d; }
.game-preview > div { display: flex; gap: 6px; margin-top: 18px; }
.game-preview > div i { width: 20px; height: 6px; border: 1px solid rgba(98,239,255,.5); background: #0c1930; }
.game-preview > div i:nth-child(-n+4) { background: #d9ff4d; border-color: #d9ff4d; }
.game-preview > small { display: block; margin-top: 10px; color: #ff54ba; font: 7px ui-monospace, monospace; letter-spacing: .12em; }
.survey-preview { position: absolute; inset: 0; padding: 50px 9% 26px; overflow: hidden; background: linear-gradient(135deg, #f7f5ef 0 61%, #11263e 61%); color: #11263e; }
.survey-preview::before { position: absolute; right: -42px; bottom: -58px; width: 210px; height: 210px; border: 1px solid rgba(200,147,49,.65); border-radius: 50%; box-shadow: 0 0 0 28px rgba(20,122,126,.09), 0 0 0 58px rgba(200,147,49,.07); content: ""; }
.survey-preview > span,.survey-preview > strong,.survey-preview > div,.survey-preview > small { position: relative; z-index: 1; }
.survey-preview > span { display: block; color: #147a7e; font: 7px ui-monospace, monospace; letter-spacing: .13em; }
.survey-preview > strong { display: block; margin-top: 10px; font-family: Georgia, "Songti SC", serif; font-size: clamp(27px, 2.7vw, 39px); letter-spacing: -.08em; line-height: .9; }
.survey-preview > div { display: grid; width: 72%; gap: 5px; margin-top: 17px; }
.survey-preview > div i { height: 6px; background: #d8e4e0; }
.survey-preview > div i:nth-child(1) { width: 92%; background: #147a7e; }
.survey-preview > div i:nth-child(2) { width: 73%; background: #c89331; }
.survey-preview > div i:nth-child(3) { width: 84%; }
.survey-preview > div i:nth-child(4) { width: 61%; }
.survey-preview > small { display: block; margin-top: 11px; color: #637181; font: 7px ui-monospace, monospace; letter-spacing: .1em; }
.brief-preview { position: absolute; inset: 0; padding: 50px 9% 26px; overflow: hidden; background: linear-gradient(135deg, #705cf6 0 64%, #caff21 64%); color: #fff; }
.brief-preview::before { position: absolute; right: -38px; bottom: -55px; width: 170px; height: 170px; border: 1px solid rgba(14,18,18,.28); border-radius: 50%; box-shadow: 0 0 0 25px rgba(14,18,18,.06), 0 0 0 50px rgba(14,18,18,.04); content: ""; }
.brief-preview > span,.brief-preview > strong,.brief-preview > small { position: relative; z-index: 2; }
.brief-preview > span { display: block; color: #e5e0ff; font: 7px ui-monospace, monospace; letter-spacing: .13em; }
.brief-preview > strong { display: block; margin-top: 10px; font-size: clamp(28px, 2.8vw, 41px); letter-spacing: -.075em; line-height: .82; }
.brief-preview > div { position: absolute; z-index: 1; top: 61px; right: 8%; width: 38%; height: 118px; padding: 24px 14px; display: grid; align-content: start; gap: 8px; background: #f7f7f1; box-shadow: 0 22px 45px rgba(23,13,76,.28); transform: rotate(4deg); }
.brief-preview > div::before { width: 42%; height: 10px; margin-bottom: 6px; background: #171b1b; content: ""; }
.brief-preview > div i { height: 5px; background: #d9d9d4; }
.brief-preview > div i:nth-child(1) { width: 92%; background: #705cf6; }
.brief-preview > div i:nth-child(2) { width: 75%; }
.brief-preview > div i:nth-child(3) { width: 84%; }
.brief-preview > div i:nth-child(4) { width: 58%; background: #c2d642; }
.brief-preview > small { display: block; margin-top: 13px; color: #d9ff55; font: 7px ui-monospace, monospace; letter-spacing: .1em; }
.ad-demo-preview { position: absolute; inset: 0; padding: 49px 9% 25px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #1c1b18 0 65%, #ff5a36 65%); }
.ad-demo-preview::before { position: absolute; right: -42px; bottom: -45px; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.06), 0 0 0 48px rgba(255,255,255,.035); content: ""; }
.ad-demo-preview > span,.ad-demo-preview > strong,.ad-demo-preview > small { position: relative; z-index: 2; }
.ad-demo-preview > span { display: block; color: #ff9f87; font: 7px ui-monospace, monospace; letter-spacing: .13em; }
.ad-demo-preview > strong { display: block; margin-top: 10px; font-family: Georgia, "Songti SC", serif; font-size: clamp(27px, 2.7vw, 40px); letter-spacing: -.08em; line-height: .84; }
.ad-demo-preview > div { position: absolute; z-index: 1; top: 52px; right: 8%; width: 39%; height: 124px; padding: 13px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; border: 1px solid rgba(255,255,255,.28); background: #f1ede6; box-shadow: 0 22px 45px rgba(0,0,0,.26); transform: rotate(3deg); }
.ad-demo-preview > div i { position: relative; overflow: hidden; background: linear-gradient(145deg, #ff8a66, #492c27); }
.ad-demo-preview > div i:nth-child(2) { background: linear-gradient(145deg, #5b7691, #26313b); }
.ad-demo-preview > div i:nth-child(3) { background: linear-gradient(145deg, #d9a948, #64501d); }
.ad-demo-preview > div i:nth-child(4) { background: linear-gradient(145deg, #6c8276, #23372e); }
.ad-demo-preview > div i::after { position: absolute; right: 7px; bottom: 6px; left: 7px; height: 3px; background: rgba(255,255,255,.72); content: ""; }
.ad-demo-preview > small { display: block; margin-top: 14px; color: #ff9d83; font: 7px ui-monospace, monospace; letter-spacing: .1em; }
.work-meta { flex: 1; padding: 19px; display: flex; flex-direction: column; gap: 13px; border-top: 1px solid rgba(215,225,216,.16); }
.work-name-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.work-name-row > span,.work-copy-block > span { color: #b6dc30; font: 7px ui-monospace, monospace; letter-spacing: .13em; white-space: nowrap; }
.work-name-row h3 { margin: 0; color: #e6ebe7; font-size: 20px; letter-spacing: .04em; line-height: 1.15; }
.work-copy-block { position: relative; padding-left: 76px; }
.work-copy-block > span { position: absolute; top: 3px; left: 0; }
.work-copy-block p { margin: 0; color: #e6ebe7; font-size: 10px; line-height: 1.72; }
.work-pain p { color: #e6ebe7; }
.work-solution { padding-top: 12px; border-top: 1px dotted rgba(215,225,216,.15); }
.work-solution > span { top: 15px; }
.work-solution p { color: #e6ebe7; }
.coming-soon { min-height: 100%; cursor: default; }
.coming-soon:hover { border-color: rgba(215,225,216,.22); transform: none; }
.coming-soon > div { min-height: 300px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 60% 40%, rgba(202,255,33,.12), transparent 32%), #0a1011; }
.coming-soon span { color: #77817b; font: 8px ui-monospace, monospace; letter-spacing: .14em; }
.coming-soon strong { font-size: 29px; line-height: 1.2; }
.coming-soon i { color: #caff21; font-size: 40px; font-style: normal; }
.coming-soon > p { margin: 0; padding: 20px 25px; border-top: 1px solid rgba(215,225,216,.14); color: #758078; font-size: 9px; letter-spacing: .14em; }
.next-work-transition { margin: 26px 0 4px; padding: 17px 0; display: grid; grid-template-columns: auto minmax(30px, 1fr) auto auto; align-items: center; gap: 14px; border-top: 1px solid rgba(215,225,216,.13); border-bottom: 1px solid rgba(215,225,216,.13); }
.next-work-transition > span,.next-work-transition > small { color: #6f7973; font: 7px ui-monospace, monospace; letter-spacing: .14em; }
.next-work-transition > i { height: 1px; background: linear-gradient(90deg, rgba(202,255,33,.5), rgba(202,255,33,.05)); }
.next-work-transition > strong { color: #b9c2bc; font-size: 12px; font-weight: 500; letter-spacing: .08em; }

.about-section { min-height: 330px; display: grid; grid-template-columns: 90px .7fr 1fr; gap: 55px; align-items: center; border-top: 1px solid rgba(215,225,216,.14); }
.about-number { color: #caff21; font: 10px ui-monospace, monospace; }
.about-title h2, .contact-section h2 { margin: 12px 0 0; font-size: clamp(48px, 7vw, 95px); letter-spacing: -.06em; }
.about-copy strong { color: #e9e9e4; font-size: clamp(22px, 3vw, 42px); line-height: 1.2; }
.about-copy p { max-width: 590px; color: #89938d; font-size: 13px; line-height: 1.9; }
.contact-section { min-height: 360px; display: flex; align-items: center; justify-content: space-between; gap: 60px; border-top: 1px solid rgba(215,225,216,.14); }
.contact-section p { color: #8a948e; }
.qr-placeholder { width: 220px; aspect-ratio: 1; padding: 20px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; border: 1px solid rgba(202,255,33,.45); background: #091011; }
.qr-grid { width: 110px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.qr-grid i { aspect-ratio: 1; background: rgba(202,255,33,.08); }
.qr-grid i.on { background: #caff21; box-shadow: 0 0 7px rgba(202,255,33,.4); }
.qr-placeholder span { color: #97a199; font: 8px ui-monospace, monospace; line-height: 1.7; letter-spacing: .08em; }
.portfolio-mode footer { border-color: rgba(215,225,216,.12); color: #657069; background: #05090a; }

/* Portfolio login and access states */
.portfolio-mode .login-shell { width: min(1100px, 100%); min-height: calc(100vh - 180px); margin: 0 auto; padding: 70px 28px; color: #f1f1eb; }
.portfolio-mode .login-intro h1 { color: #f1f1eb; font-family: Arial Black, Arial, sans-serif; }
.portfolio-mode .login-intro h1 em { color: #caff21; }
.portfolio-mode .login-intro p { color: #8b958f; }
.back-to-lab { display: inline-flex; margin-top: 25px; color: #caff21; text-decoration: none; font-size: 10px; }
.portfolio-mode .login-card { border-color: rgba(215,225,216,.18); background: #0b1011; box-shadow: 0 30px 80px rgba(0,0,0,.36); }
.portfolio-mode .login-card h2 { color: #f2f2ed; }
.portfolio-mode .login-card p, .portfolio-mode .login-card label span { color: #88938c; }
.portfolio-mode .login-card input { border-color: rgba(215,225,216,.15); background: #05090a; color: #f1f1eb; }
.portfolio-mode .login-card button { background: #caff21; color: #111700; }
.access-denied { width: min(720px, calc(100% - 40px)); min-height: 68vh; margin: 0 auto; display: grid; place-items: start; align-content: center; gap: 18px; }
.access-denied strong { font-size: clamp(48px, 8vw, 92px); letter-spacing: -.06em; }
.access-denied p { max-width: 560px; margin: 0; color: #8d9791; line-height: 1.8; }
.access-denied div { display: flex; gap: 10px; }
.access-denied a { padding: 11px 15px; border: 1px solid #caff21; color: #caff21; text-decoration: none; font-size: 10px; }

/* Existing data workspace stays bright inside Spark Lab */
body.dashboard-mode { color: var(--ink); background: var(--canvas); }
.dashboard-mode .ambient { display: block; }
.dashboard-mode .topbar { color: #f4f4ef; }
.dashboard-mode .lab-nav a { color: #c5cbc7; }
.dashboard-mode .user-chip { color: #fff; }
.dashboard-mode .user-chip small { color: #caff21; }
.dashboard-mode .home-link { color: #caff21; }
.dashboard-mode .logout-button { border-color: rgba(255,255,255,.24); background: transparent; color: #fff; }
.dashboard-mode main { width: min(1160px, calc(100% - 52px)); min-height: calc(100vh - 154px); margin: 0 auto; padding: 45px 0 74px; }

/* Reusable work-permission admin UI */
.grant-control { grid-column: 1 / -1; align-content: start; display: grid; gap: 7px; }
.grant-control > span { color: #c7c7cc; font-size: 9px; }
.grant-list { display: grid; gap: 9px; }
.grant-item { padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 1px solid #4a4c54; border-radius: 11px; }
.grant-check { min-height: 41px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; border: 1px solid #555860; border-radius: 10px; color: #fff !important; }
.grant-check input { width: 15px; height: 15px; }
.grant-check > span { display: grid; gap: 2px; }
.grant-check small { color: #8f929b; font-size: 8px; }
.admin-create label > small { margin-top: 4px; color: #777b84; font-size: 8px; }
.access-summary { min-width: 105px; display: grid; gap: 4px; }
.access-summary small { color: #8b8d95; font-size: 8px; }
.access-badge { width: max-content; padding: 5px 8px; border-radius: 99px; font-size: 8px; font-weight: 800; }
.access-badge.active { background: #edf8d2; color: #577900; }
.access-badge.none { background: #f1f1f2; color: #8b8c93; }
.access-badge.expired { background: #fff0f0; color: #b44b55; }
.access-dialog { width: min(520px, calc(100% - 30px)); padding: 0; border: 1px solid #dfe0e3; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 30px 100px rgba(20,20,27,.28); }
.access-dialog::backdrop { background: rgba(13,14,18,.58); backdrop-filter: blur(5px); }
.access-dialog form { padding: 26px; display: grid; gap: 18px; }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; }
.dialog-head small { color: var(--purple); font-size: 8px; letter-spacing: .16em; }
.dialog-head h2 { margin: 5px 0; font-size: 26px; }
.dialog-head p { margin: 0; color: var(--muted); font-size: 10px; }
.dialog-head > button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.dialog-grant { padding: 15px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; }
.dialog-grant > span { display: grid; gap: 3px; }
.dialog-grant small { color: var(--muted); font-size: 9px; }
.dialog-grant input { width: 18px; height: 18px; accent-color: var(--purple); }
.dialog-work-list { display: grid; gap: 12px; }
.dialog-work-item { padding: 12px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 13px; }
.dialog-work-item .dialog-grant { padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.access-dialog label:not(.dialog-grant) { display: grid; gap: 7px; color: var(--muted); font-size: 9px; }
.access-dialog input[type="datetime-local"] { min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; }
.dialog-save { min-height: 43px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; cursor: pointer; }

@media (max-width: 1100px) {
  .lab-nav { gap: 25px; }
  .lab-hero { min-height: 700px; grid-template-columns: 1fr 360px; }
  .hero-copy h1 { font-size: clamp(105px, 18vw, 180px); }
  .lab-status { grid-column: 2; grid-row: 1; }
  .hero-visual { position: absolute; right: 260px; width: 420px; height: 420px; opacity: .65; }
}

@media (max-width: 760px) {
  .topbar.lab-topbar { height: 66px; padding: 0 15px; }
  .lab-brand { min-width: 0; }
  .lab-brand .brand-copy small, .lab-nav { display: none; }
  .spark-mark { font-size: 25px; }
  .lab-brand .brand-copy strong { font-size: 11px; }
  .portfolio-mode .user-chip { display: none; }
  .lab-login-button { min-height: 34px; padding: 0 12px; }
  .lab-hero { min-height: auto; padding: 70px 20px 45px; display: block; }
  .hero-copy h1 { margin-top: 18px; font-size: clamp(72px, 24vw, 96px); line-height: .8; }
  .hero-copy h2 { font-size: 21px; }
  .hero-visual { position: relative; right: auto; width: 100%; height: 330px; opacity: .75; }
  .spark-orb { width: 330px; }
  .lab-status { margin-top: 5px; }
  .spark-section { padding: 44px 20px; }
  .lab-section-head { align-items: flex-start; flex-direction: column; }
  .lab-section-head > div { flex-wrap: wrap; }
  .lab-section-head h2 { width: 100%; margin: 0; }
  .category-tabs { overflow-x: auto; }
  .lab-work-grid { grid-template-columns: 1fr; }
  .work-preview { min-height: 215px; }
  .dashboard-preview { inset: 45px 5% 25px; }
  .work-meta { padding: 18px 16px; gap: 13px; }
  .work-name-row { grid-template-columns: 60px minmax(0, 1fr); }
  .work-name-row h3 { font-size: 20px; }
  .work-copy-block { padding-left: 72px; }
  .work-copy-block p { font-size: 11px; line-height: 1.75; }
  .next-work-transition { grid-template-columns: auto minmax(20px, 1fr); gap: 9px 12px; }
  .next-work-transition > strong,.next-work-transition > small { grid-column: 1 / -1; }
  .about-section { grid-template-columns: 35px 1fr; gap: 20px; }
  .about-copy { grid-column: 2; }
  .contact-section { align-items: flex-start; flex-direction: column; }
  .qr-placeholder { width: 100%; max-width: 300px; }
  .dashboard-mode main { width: min(100% - 28px, 1160px); }
  .grant-item { grid-template-columns: 1fr; }
}

/* Spark Lab responsive and account experience v4.3 */
html, body { max-width: 100%; overflow-x: hidden; }
img { display: block; max-width: 100%; }
.lab-nav a { font-size: 12px; }
.account-button { padding: 7px 10px; border: 1px solid rgba(202,255,33,.38); border-radius: 8px; background: transparent; color: #caff21; cursor: pointer; font-size: 9px; white-space: nowrap; }
.account-button:hover { border-color: #caff21; background: rgba(202,255,33,.08); }
.password-dialog label { display: grid; gap: 7px; color: var(--muted); font-size: 9px; }
.password-dialog input { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; }
.password-dialog input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(112,92,246,.08); }
.password-tip { margin: -4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.65; }

.profile-section { min-height: 480px; display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(300px, 410px); gap: clamp(28px, 5vw, 72px); align-items: center; border-top: 1px solid rgba(215,225,216,.14); }
.profile-number { align-self: start; padding-top: 16px; color: #caff21; font: 10px ui-monospace, monospace; }
.profile-copy { min-width: 0; }
.profile-copy h2 { margin: 0 0 28px; font-size: clamp(48px, 6vw, 88px); letter-spacing: -.06em; line-height: .95; }
.profile-copy strong { display: block; color: #e9e9e4; font-size: clamp(21px, 2.5vw, 37px); line-height: 1.18; }
.profile-copy p { max-width: 620px; margin: 24px 0 0; color: #8a948e; font-size: 13px; line-height: 1.9; }
.profile-visual { width: 100%; margin: 0; }
.visual-frame { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid rgba(202,255,33,.4); background: #071011; box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.visual-frame::before,.visual-frame::after { position: absolute; z-index: 2; width: 28px; height: 28px; border-color: #caff21; content: ""; pointer-events: none; }
.visual-frame::before { top: 10px; left: 10px; border-top: 1px solid; border-left: 1px solid; }
.visual-frame::after { right: 10px; bottom: 10px; border-right: 1px solid; border-bottom: 1px solid; }
.digital-human-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(.9) contrast(1.04); }
.digital-human-visual .visual-frame::after { box-shadow: 0 0 55px 10px rgba(202,255,33,.12); }
.profile-visual figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; color: #caff21; font: 7px ui-monospace, monospace; letter-spacing: .12em; }
.profile-visual figcaption small { color: #68736c; font: inherit; text-align: right; }
.qr-frame { padding: clamp(14px, 2vw, 22px); background: #caff21; }
.qr-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2); mix-blend-mode: multiply; }

.user-list { display: grid; }
.user-list-head,.user-row { display: grid; grid-template-columns: minmax(130px, 1.1fr) minmax(125px, .9fr) minmax(180px, 1.45fr) 92px minmax(180px, 1.15fr); align-items: center; gap: 10px; }
.user-list-head { padding: 0 10px 8px; color: var(--subtle); font-size: 8px; }
.user-row { min-height: 64px; padding: 9px 10px; border-top: 1px solid #efeff0; }
.user-row:first-of-type { border-top-color: var(--line); }
.user-identity { min-width: 0; display: grid; gap: 2px; }
.user-identity strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.user-identity small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.user-row .role-select { width: 100%; min-width: 0; padding: 6px 7px; font-size: 9px; }
.user-row .access-summary { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.user-row .access-badge { padding: 3px 6px; font-size: 7px; }
.user-row .access-summary small { font-size: 7px; }
.user-state { display: grid; gap: 5px; justify-items: start; }
.user-state b { color: #74757e; font-size: 8px; font-weight: 650; }
.user-row .status-badge { padding: 4px 6px; font-size: 7px; }
.user-row .user-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.user-row .user-actions button { min-width: 0; padding: 6px 4px; font-size: 7px; text-overflow: ellipsis; overflow: hidden; }

@media (max-width: 1000px) {
  .lab-hero { min-height: auto; padding-top: 70px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
  .hero-copy h1 { font-size: clamp(90px, 17vw, 150px); }
  .hero-visual { position: absolute; right: 220px; width: 330px; height: 330px; opacity: .55; }
  .lab-status { grid-column: 2; }
  .lab-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-section { grid-template-columns: 45px minmax(0, 1fr) minmax(250px, 330px); gap: 28px; }
  .user-list-head,.user-row { grid-template-columns: minmax(120px, 1fr) 125px minmax(150px, 1.2fr) 78px minmax(165px, 1fr); gap: 7px; }
}

@media (max-width: 760px) {
  .topbar.lab-topbar { height: auto; min-height: 108px; padding: 9px 14px 7px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 48px auto; align-items: center; column-gap: 9px; }
  .lab-brand { min-width: 0; grid-column: 1; grid-row: 1; }
  .lab-brand .brand-copy small { display: block; }
  .lab-brand .brand-copy strong { max-width: 150px; overflow: hidden; font-size: 12px; letter-spacing: .16em; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-meta { grid-column: 2; grid-row: 1; gap: 5px; }
  .portfolio-mode .user-chip,.dashboard-mode .user-chip { display: none; }
  .home-link { font-size: 8px; white-space: nowrap; }
  .account-button,.logout-button { min-height: 32px; padding: 0 8px; font-size: 8px; }
  .lab-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; display: flex; justify-content: flex-start; gap: 25px; overflow-x: auto; padding: 7px 2px 5px; scrollbar-width: none; }
  .lab-nav::-webkit-scrollbar { display: none; }
  .lab-nav a { flex: 0 0 auto; font-size: 11px; }
  .lab-nav a::after { bottom: -5px; }
  .lab-login-button { min-height: 32px; padding: 0 11px; font-size: 8px; }
  .lab-hero { padding-top: 48px; display: block; }
  .hero-visual { position: relative; right: auto; width: 100%; height: 280px; }
  .spark-orb { width: min(330px, 92vw); }
  .lab-work-grid { grid-template-columns: 1fr; }
  .profile-section { min-height: auto; grid-template-columns: 32px minmax(0, 1fr); gap: 18px; padding-top: 50px; padding-bottom: 50px; }
  .profile-number { grid-column: 1; grid-row: 1; }
  .profile-copy { grid-column: 2; grid-row: 1; }
  .profile-copy h2 { margin-bottom: 22px; font-size: clamp(44px, 15vw, 67px); }
  .profile-copy strong { font-size: 22px; }
  .profile-copy p { font-size: 12px; }
  .profile-visual { grid-column: 1 / -1; grid-row: 2; width: min(100%, 390px); margin: 10px auto 0; }
  .about-section .digital-human-visual { grid-column: 2; width: min(58vw, 220px); margin: -4px 0 0 auto; }
  .about-section .digital-human-visual figcaption { padding-top: 8px; }
  .admin-users { padding: 16px 12px; }
  .user-list-head { display: none; }
  .user-row { min-height: 0; grid-template-columns: minmax(0, 1fr) 130px; gap: 9px 12px; padding: 13px 4px; }
  .user-identity { grid-column: 1; }
  .user-row .role-select { grid-column: 2; }
  .user-row .access-summary { grid-column: 1 / -1; }
  .user-state { grid-column: 1; display: flex; align-items: center; gap: 7px; }
  .user-row .user-actions { grid-column: 1 / -1; }
  .access-dialog form { padding: 20px; }
}

@media (max-width: 430px) {
  .topbar.lab-topbar { padding-right: 10px; padding-left: 10px; }
  .spark-mark { display: none; }
  .lab-brand .brand-copy strong { max-width: 120px; font-size: 10px; }
  .home-link.admin-link { display: inline-flex; font-size: 0; }
  .home-link.admin-link::after { content: "后台"; font-size: 8px; }
  .account-button,.logout-button { padding: 0 7px; }
  .hero-copy h1 { font-size: clamp(64px, 24vw, 92px); }
  .profile-section { grid-template-columns: 25px minmax(0, 1fr); padding-right: 16px; padding-left: 16px; }
  .user-row { grid-template-columns: minmax(0, 1fr) 116px; }
}

/* 社媒数据台中文品牌与产品预览 */
.lab-brand .brand-copy strong {
  letter-spacing: .12em;
}

.generator-title {
  position: relative;
  width: max-content;
  margin-top: 30px !important;
  font-size: clamp(78px, 9.1vw, 146px) !important;
  letter-spacing: -.1em !important;
  line-height: .82 !important;
}

.generator-title span {
  color: #efefea !important;
}

.generator-title b {
  position: absolute;
  right: -50px;
  bottom: 8px;
  color: #caff21;
  font-size: .3em;
  font-weight: 400;
  text-shadow: 0 0 24px rgba(202,255,33,.5);
  transform: rotate(12deg);
}

.orb-label {
  position: absolute;
  z-index: 5;
  right: 7%;
  bottom: 11%;
  padding: 6px 9px;
  border: 1px solid rgba(202,255,33,.34);
  color: #b8d948;
  background: rgba(5,9,10,.76);
  font: 8px ui-monospace, monospace;
  letter-spacing: .12em;
}

.about-section {
  min-height: 620px;
}

.about-section .profile-copy strong {
  color: #caff21;
  font-size: clamp(28px, 3vw, 44px);
}

.profile-copy .about-manifesto {
  max-width: 690px;
  font-size: 14px;
  line-height: 1.9;
}

.work-showcase {
  width: min(1440px, 100%);
  min-height: calc(100vh - 145px);
  margin: 0 auto;
  padding: clamp(45px, 6vw, 90px) clamp(24px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, .72fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 28px clamp(45px, 8vw, 120px);
  background:
    radial-gradient(circle at 77% 45%, rgba(202,255,33,.08), transparent 29%),
    linear-gradient(rgba(190,204,194,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190,204,194,.035) 1px, transparent 1px);
  background-size: auto, 58px 58px, 58px 58px;
}

.showcase-breadcrumb {
  grid-column: 1 / -1;
  align-self: start;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #68736c;
  font-size: 9px;
}

.showcase-breadcrumb a {
  color: #94a098;
  text-decoration: none;
}

.showcase-breadcrumb a:hover {
  color: #caff21;
}

.showcase-breadcrumb i {
  width: 18px;
  height: 1px;
  background: #3a443e;
}

.showcase-copy {
  align-self: center;
}

.showcase-copy h1 {
  margin: 18px 0 22px;
  color: #f2f2ed;
  font-size: clamp(58px, 7vw, 105px);
  letter-spacing: -.07em;
  line-height: .95;
}

.showcase-lead {
  max-width: 650px;
  margin: 0;
  color: #a7b0aa;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.9;
}

.showcase-copy ul {
  margin: 30px 0 34px;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.showcase-copy li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #dfe3df;
  font-size: 12px;
}

.showcase-copy li i {
  color: #caff21;
  font-style: normal;
  font-size: 10px;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.showcase-actions button,
.showcase-actions a {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #caff21;
  color: #caff21;
  background: transparent;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.showcase-actions button {
  background: #caff21;
  color: #101600;
}

.showcase-actions button:disabled {
  border-color: #465047;
  color: #737d75;
  background: #151b17;
  cursor: not-allowed;
}

.showcase-note {
  margin-top: 14px;
  display: block;
  color: #77827b;
  font-size: 9px;
  line-height: 1.7;
}

.showcase-note.denied {
  color: #d2aa68;
}

.showcase-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(202,255,33,.37);
  background: #091011;
  box-shadow: 0 35px 90px rgba(0,0,0,.34);
}

.showcase-visual::before,
.showcase-visual::after {
  position: absolute;
  z-index: 8;
  width: 28px;
  height: 28px;
  border-color: #caff21;
  content: "";
  pointer-events: none;
}

.showcase-visual::before {
  top: 13px;
  left: 13px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.showcase-visual::after {
  right: 13px;
  bottom: 13px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.showcase-index {
  position: absolute;
  z-index: 7;
  top: 24px;
  right: 24px;
  color: #caff21;
  font: 10px ui-monospace, monospace;
}

.showcase-visual > small {
  position: absolute;
  z-index: 7;
  right: 24px;
  bottom: 24px;
  color: #7d8981;
  font: 8px ui-monospace, monospace;
  letter-spacing: .1em;
}

.showcase-dashboard {
  position: absolute;
  inset: 15%;
  display: grid;
  grid-template-columns: 22% 1fr;
  border: 1px solid rgba(220,230,221,.28);
  transform: rotate(-4deg);
}

.showcase-dashboard > div {
  padding: 18px 12px;
  display: grid;
  align-content: start;
  gap: 15px;
  border-right: 1px solid rgba(220,230,221,.18);
}

.showcase-dashboard > div i {
  width: 65%;
  height: 4px;
  background: #caff21;
  opacity: .75;
}

.showcase-dashboard section {
  padding: 19px;
  display: grid;
  align-content: start;
  gap: 13px;
}

.showcase-dashboard section b {
  width: 43%;
  height: 12px;
  background: #e9eee8;
}

.showcase-dashboard section span {
  height: 38px;
  border: 1px solid rgba(202,255,33,.25);
  background: rgba(202,255,33,.04);
}

.showcase-dashboard section em {
  width: 70%;
  height: 55px;
  border-radius: 50%;
  border: 1px solid rgba(202,255,33,.38);
}

.showcase-dashboard > strong {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: #f1f2ed;
  font-size: clamp(25px, 4vw, 50px);
  line-height: .9;
}

.showcase-game,
.showcase-survey,
.showcase-brief,
.showcase-ad-demo {
  position: absolute;
  inset: 0;
  padding: 18% 11%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-game {
  background: linear-gradient(135deg, rgba(10,23,46,.15), #0c1e3f 54%, #050a15 54%);
}

.showcase-game > span,
.showcase-survey > span,
.showcase-brief > span,
.showcase-ad-demo > span,
.showcase-game small,
.showcase-survey small,
.showcase-brief small,
.showcase-ad-demo small {
  color: #8aa7b2;
  font: 8px ui-monospace, monospace;
  letter-spacing: .13em;
}

.showcase-game strong,
.showcase-survey strong,
.showcase-brief strong,
.showcase-ad-demo strong {
  margin: 17px 0;
  color: #f4f4ef;
  font-size: clamp(45px, 6vw, 82px);
  line-height: .76;
  letter-spacing: -.08em;
}

.showcase-game > div {
  display: flex;
  gap: 5px;
  margin: 5px 0 18px;
}

.showcase-game > div i {
  width: 11%;
  height: 7px;
  border: 1px solid #43728d;
}

.showcase-game > div i:nth-child(-n+4) {
  border-color: #caff21;
  background: #caff21;
}

.showcase-survey {
  color: #10243e;
  background: linear-gradient(135deg, #f3f1e8 0 63%, #17314e 63%);
}

.showcase-survey > span {
  color: #177579;
}

.showcase-survey strong {
  color: #142b45;
  font-family: serif;
}

.showcase-survey i {
  width: 62%;
  height: 7px;
  margin-top: 8px;
  display: block;
  background: #18848a;
}

.showcase-survey i:nth-of-type(2) {
  width: 48%;
  background: #c1932d;
}

.showcase-survey i:nth-of-type(3) {
  width: 34%;
  margin-bottom: 20px;
  background: #cbd9d2;
}

.showcase-brief {
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #705cf6 0 66%, #caff21 66%);
}

.showcase-brief::before {
  position: absolute;
  right: -12%;
  bottom: -24%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(11,15,15,.28);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(11,15,15,.06), 0 0 0 80px rgba(11,15,15,.035);
  content: "";
}

.showcase-brief > span,
.showcase-brief > strong,
.showcase-brief > small {
  position: relative;
  z-index: 2;
}

.showcase-brief > span {
  color: #e3ddff;
}

.showcase-brief > div {
  position: absolute;
  z-index: 1;
  top: 24%;
  right: 9%;
  width: 34%;
  height: 47%;
  padding: 12% 6% 7%;
  display: grid;
  align-content: start;
  gap: 9px;
  background: #f5f5ef;
  box-shadow: 0 30px 70px rgba(24,13,76,.3);
  transform: rotate(4deg);
}

.showcase-brief > div::before {
  position: absolute;
  top: 11%;
  left: 16%;
  width: 44%;
  height: 12px;
  background: #151919;
  content: "";
}

.showcase-brief > div i {
  height: 7px;
  background: #d4d6d0;
}

.showcase-brief > div i:nth-child(1) { width: 94%; background: #705cf6; }
.showcase-brief > div i:nth-child(2) { width: 72%; }
.showcase-brief > div i:nth-child(3) { width: 84%; }
.showcase-brief > div i:nth-child(4) { width: 55%; background: #bfd736; }

.showcase-brief > small {
  color: #d9ff55;
}

.showcase-ad-demo {
  overflow: hidden;
  background: linear-gradient(135deg, #1c1b18 0 66%, #ff5a36 66%);
}

.showcase-ad-demo::before {
  position: absolute;
  right: -12%;
  bottom: -24%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255,255,255,.055), 0 0 0 80px rgba(255,255,255,.03);
  content: "";
}

.showcase-ad-demo > span,
.showcase-ad-demo > strong,
.showcase-ad-demo > small {
  position: relative;
  z-index: 2;
}

.showcase-ad-demo > span,
.showcase-ad-demo > small {
  color: #ff9f87;
}

.showcase-ad-demo > strong {
  font-family: Georgia, "Songti SC", serif;
}

.showcase-ad-demo > div {
  position: absolute;
  z-index: 1;
  top: 24%;
  right: 9%;
  width: 35%;
  height: 47%;
  padding: 7%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  border: 1px solid rgba(255,255,255,.24);
  background: #f2eee7;
  box-shadow: 0 30px 70px rgba(0,0,0,.34);
  transform: rotate(3deg);
}

.showcase-ad-demo > div i {
  background: linear-gradient(145deg, #ff8b67, #4c2b25);
}

.showcase-ad-demo > div i:nth-child(2) { background: linear-gradient(145deg, #607b97, #273540); }
.showcase-ad-demo > div i:nth-child(3) { background: linear-gradient(145deg, #d4a747, #67511d); }
.showcase-ad-demo > div i:nth-child(4) { background: linear-gradient(145deg, #71897c, #263b31); }

@media (max-width: 760px) {
  .generator-title {
    font-size: clamp(66px, 20vw, 80px) !important;
  }

  .generator-title b {
    right: -25px;
  }

  .about-section {
    min-height: auto;
  }

  .profile-copy .about-manifesto {
    font-size: 12px;
    line-height: 1.85;
  }

  .work-showcase {
    min-height: auto;
    padding: 34px 20px 60px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 34px;
  }

  .showcase-breadcrumb {
    grid-column: 1;
  }

  .showcase-copy h1 {
    font-size: clamp(52px, 17vw, 72px);
  }

  .showcase-lead {
    font-size: 14px;
  }

  .showcase-visual {
    grid-row: 2;
  }

  .showcase-copy {
    grid-row: 3;
  }
}

/* 首页动态视觉系统 v6.1 */
:root {
  --cursor-x: -260px;
  --cursor-y: -260px;
}

.motion-cursor,
.site-progress {
  display: none;
}

.portfolio-mode .motion-cursor {
  position: fixed;
  z-index: 0;
  top: 0;
  left: 0;
  width: 440px;
  height: 440px;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202,255,33,.09) 0, rgba(83,179,255,.035) 33%, transparent 69%);
  filter: blur(8px);
  opacity: .88;
  pointer-events: none;
  transform: translate3d(calc(var(--cursor-x) - 50%), calc(var(--cursor-y) - 50%), 0);
  will-change: transform;
}

.portfolio-mode .site-progress {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  display: block;
  pointer-events: none;
}

.portfolio-mode .site-progress i {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #78bfff, #caff21 45%, #f5ffcf);
  box-shadow: 0 0 14px rgba(202,255,33,.65);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.portfolio-mode main,
.portfolio-mode footer {
  position: relative;
  z-index: 1;
}

.portfolio-mode .motion-reveal {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(0, 30px, 0);
  transition:
    opacity .72s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms),
    transform .82s cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0ms),
    filter .72s ease var(--reveal-delay, 0ms);
}

.portfolio-mode .motion-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.portfolio-mode .spark-mark {
  animation: brand-spark 2.8s ease-in-out infinite;
}

@keyframes brand-spark {
  0%, 100% { opacity: .78; transform: rotate(0deg) scale(.94); text-shadow: 0 0 15px rgba(202,255,33,.35); }
  42% { opacity: 1; transform: rotate(15deg) scale(1.12); text-shadow: 0 0 28px rgba(202,255,33,.75); }
  58% { opacity: .9; transform: rotate(9deg) scale(1); }
}

.portfolio-mode .lab-nav a.active {
  color: #fff;
}

.portfolio-mode .lab-nav a.active::after {
  transform: scaleX(1);
  box-shadow: 0 0 10px rgba(202,255,33,.6);
}

.portfolio-mode .lab-hero {
  --orb-shift-x: 0px;
  --orb-shift-y: 0px;
}

.portfolio-mode .lab-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 38%, rgba(202,255,33,.025) 49%, transparent 60%),
    radial-gradient(circle at 66% 48%, rgba(202,255,33,.08), transparent 23%);
  background-size: 220% 100%, auto;
  content: "";
  pointer-events: none;
  animation: hero-signal 8s ease-in-out infinite;
}

@keyframes hero-signal {
  0%, 18% { background-position: 150% 0, 0 0; opacity: .4; }
  55%, 100% { background-position: -90% 0, 0 0; opacity: 1; }
}

.portfolio-motion-ready .generator-title.is-visible span {
  display: inline-block;
  animation: title-rise .9s cubic-bezier(.16,1,.3,1) both;
}

.portfolio-motion-ready .generator-title.is-visible span:nth-child(1) {
  animation-delay: .12s;
}

.portfolio-motion-ready .generator-title.is-visible span:nth-child(3) {
  animation-delay: .2s;
}

@keyframes title-rise {
  from { clip-path: inset(100% 0 0); transform: translateY(45%); }
  to { clip-path: inset(0 0 0); transform: translateY(0); }
}

.portfolio-mode .generator-title b {
  animation: title-spark 2.5s ease-in-out infinite;
}

@keyframes title-spark {
  0%, 100% { opacity: .55; transform: rotate(7deg) scale(.82); }
  36% { opacity: 1; transform: rotate(17deg) scale(1.18); }
  52% { opacity: .82; transform: rotate(11deg) scale(.97); }
}

.portfolio-mode .spark-orb {
  transform: translate(
    calc(-50% + var(--orb-shift-x)),
    calc(-50% + var(--orb-shift-y))
  );
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.portfolio-mode .orb-core {
  animation: orb-heartbeat 2.9s ease-in-out infinite;
}

@keyframes orb-heartbeat {
  0%, 100% { transform: translate(-50%, -50%) scale(.82); box-shadow: 0 0 7px #efffc2, 0 0 24px #d1ff24, 0 0 55px 15px rgba(201,255,30,.25); }
  44% { transform: translate(-50%, -50%) scale(1.22); box-shadow: 0 0 10px #fff, 0 0 34px #d1ff24, 0 0 80px 26px rgba(201,255,30,.42); }
}

.portfolio-mode .ring-a {
  animation: ring-a-drift 10s ease-in-out infinite;
}

.portfolio-mode .ring-b {
  animation: ring-b-drift 13s ease-in-out infinite reverse;
}

.portfolio-mode .ring-c {
  animation: ring-c-drift 16s ease-in-out infinite;
}

@keyframes ring-a-drift {
  0%, 100% { transform: translate(-50%, -50%) rotate(18deg) scaleX(1); opacity: .55; }
  50% { transform: translate(-50%, -50%) rotate(48deg) scaleX(.83); opacity: 1; }
}

@keyframes ring-b-drift {
  0%, 100% { transform: translate(-50%, -50%) rotate(55deg) scaleY(1); opacity: .65; }
  50% { transform: translate(-50%, -50%) rotate(21deg) scaleY(.86); opacity: 1; }
}

@keyframes ring-c-drift {
  0%, 100% { transform: translate(-50%, -50%) rotate(-33deg) scale(.96); opacity: .45; }
  50% { transform: translate(-50%, -50%) rotate(-5deg) scale(1.04); opacity: .9; }
}

.portfolio-mode .spark-orb > i {
  width: var(--size);
  height: var(--size);
  opacity: .35;
  transform: rotate(var(--angle)) translateX(var(--radius)) scale(.7);
  animation: orbit-particle 3.4s ease-in-out var(--delay) infinite;
}

@keyframes orbit-particle {
  0%, 100% { opacity: .2; transform: rotate(var(--angle)) translateX(var(--radius)) scale(.55); }
  48% { opacity: 1; transform: rotate(calc(var(--angle) + 9deg)) translateX(calc(var(--radius) + 10px)) scale(1.35); }
}

.portfolio-mode .orb-label {
  animation: orb-label-float 4.2s ease-in-out infinite;
}

@keyframes orb-label-float {
  0%, 100% { transform: translate3d(0, 0, 0); border-color: rgba(202,255,33,.28); }
  50% { transform: translate3d(5px, -7px, 0); border-color: rgba(202,255,33,.62); }
}

.portfolio-mode .lab-status {
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.portfolio-mode .lab-status:hover {
  border-color: rgba(202,255,33,.38);
  box-shadow: inset 0 0 35px rgba(0,0,0,.32), 0 0 40px rgba(202,255,33,.05);
}

.portfolio-mode .lab-status dl {
  position: relative;
}

.portfolio-mode .lab-status dl::before {
  position: absolute;
  z-index: 2;
  right: -20px;
  left: -20px;
  height: 34px;
  background: linear-gradient(180deg, transparent, rgba(202,255,33,.045), transparent);
  content: "";
  pointer-events: none;
  animation: status-scan 5.2s linear infinite;
}

@keyframes status-scan {
  from { top: -45px; }
  to { top: calc(100% + 30px); }
}

.portfolio-mode .status-online b {
  animation: online-pulse 1.9s ease-out infinite;
}

@keyframes online-pulse {
  0% { box-shadow: 0 0 0 0 rgba(202,255,33,.65), 0 0 12px #caff21; }
  70% { box-shadow: 0 0 0 9px rgba(202,255,33,0), 0 0 18px #caff21; }
  100% { box-shadow: 0 0 0 0 rgba(202,255,33,0), 0 0 12px #caff21; }
}

.portfolio-mode .lab-status dd {
  text-shadow: 0 0 22px rgba(202,255,33,.18);
}

.portfolio-mode .lab-section-head h2,
.portfolio-mode .profile-copy h2 {
  position: relative;
  width: max-content;
}

.portfolio-mode .lab-section-head h2::after,
.portfolio-mode .profile-copy h2::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, #caff21, rgba(202,255,33,0));
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .75s cubic-bezier(.16,1,.3,1) .2s;
}

.portfolio-mode .lab-section-head.is-visible h2::after,
.portfolio-mode .profile-copy.is-visible h2::after {
  transform: scaleX(1);
}

.portfolio-mode .category-tabs button {
  position: relative;
  overflow: hidden;
  transition: color .22s ease, border-color .22s ease, background .22s ease, transform .22s ease;
}

.portfolio-mode .category-tabs button:not(:disabled):hover {
  border-color: rgba(202,255,33,.62);
  color: #dcff65;
  background: rgba(202,255,33,.04);
  transform: translateY(-2px);
}

.portfolio-mode .lab-work-card {
  --card-x: 50%;
  --card-y: 50%;
  --card-rx: 0deg;
  --card-ry: 0deg;
  position: relative;
  transform: perspective(900px) rotateX(var(--card-rx)) rotateY(var(--card-ry)) translateY(0);
  transform-style: preserve-3d;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
  will-change: transform;
}

.portfolio-mode .lab-work-card::before {
  position: absolute;
  z-index: 6;
  inset: 0;
  background: radial-gradient(circle 210px at var(--card-x) var(--card-y), rgba(202,255,33,.13), transparent 68%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.portfolio-mode .lab-work-card:hover {
  border-color: rgba(202,255,33,.72);
  box-shadow: 0 22px 65px rgba(0,0,0,.32), 0 0 30px rgba(202,255,33,.045);
  transform: perspective(900px) rotateX(var(--card-rx)) rotateY(var(--card-ry)) translateY(-5px);
}

.portfolio-mode .lab-work-card:hover::before {
  opacity: 1;
}

.portfolio-mode .work-preview::after {
  position: absolute;
  z-index: 3;
  top: -80%;
  left: -32%;
  width: 28%;
  height: 250%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  content: "";
  pointer-events: none;
  transform: rotate(18deg) translateX(-260%);
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}

.portfolio-mode .lab-work-card:hover .work-preview::after {
  transform: rotate(18deg) translateX(620%);
}

.portfolio-mode .dashboard-preview {
  animation: preview-float 6s ease-in-out infinite;
}

.portfolio-mode .preview-orbit {
  animation: preview-orbit 9s linear infinite;
}

@keyframes preview-float {
  0%, 100% { transform: rotate(-2deg) translate3d(0, 0, 0); }
  50% { transform: rotate(-.5deg) translate3d(0, -7px, 0); }
}

@keyframes preview-orbit {
  to { transform: rotate(360deg) scale(.92); }
}

.portfolio-mode .game-preview > div i {
  animation: game-meter 2.4s ease-in-out infinite;
  animation-delay: calc(var(--meter-index, 0) * .12s);
}

.portfolio-mode .game-preview > div i:nth-child(2) { --meter-index: 1; }
.portfolio-mode .game-preview > div i:nth-child(3) { --meter-index: 2; }
.portfolio-mode .game-preview > div i:nth-child(4) { --meter-index: 3; }
.portfolio-mode .game-preview > div i:nth-child(5) { --meter-index: 4; }
.portfolio-mode .game-preview > div i:nth-child(6) { --meter-index: 5; }

@keyframes game-meter {
  0%, 100% { opacity: .45; transform: scaleX(.8); }
  45% { opacity: 1; transform: scaleX(1); }
}

.portfolio-mode .survey-preview::before {
  animation: survey-radar 14s linear infinite;
}

.portfolio-mode .survey-preview > div i {
  transform-origin: left center;
  animation: survey-bar 3.2s ease-in-out infinite;
}

.portfolio-mode .survey-preview > div i:nth-child(2) { animation-delay: -.6s; }
.portfolio-mode .survey-preview > div i:nth-child(3) { animation-delay: -1.2s; }
.portfolio-mode .survey-preview > div i:nth-child(4) { animation-delay: -1.8s; }

@keyframes survey-radar {
  to { transform: rotate(360deg); }
}

@keyframes survey-bar {
  0%, 100% { transform: scaleX(.78); opacity: .58; }
  50% { transform: scaleX(1); opacity: 1; }
}

.portfolio-mode .brief-preview > div {
  animation: brief-paper 5.4s ease-in-out infinite;
}

.portfolio-mode .ad-demo-preview > div {
  animation: ad-demo-board 5.1s ease-in-out infinite;
}

.portfolio-mode .ad-demo-preview > div i {
  animation: ad-demo-tile 3.2s ease-in-out infinite;
}

.portfolio-mode .ad-demo-preview > div i:nth-child(2) { animation-delay: -.5s; }
.portfolio-mode .ad-demo-preview > div i:nth-child(3) { animation-delay: -1s; }
.portfolio-mode .ad-demo-preview > div i:nth-child(4) { animation-delay: -1.5s; }

@keyframes brief-paper {
  0%, 100% { transform: rotate(4deg) translate3d(0, 0, 0); }
  50% { transform: rotate(1.5deg) translate3d(-5px, -7px, 0); }
}

@keyframes ad-demo-board {
  0%, 100% { transform: rotate(3deg) translate3d(0, 0, 0); }
  50% { transform: rotate(.7deg) translate3d(-5px, -7px, 0); }
}

@keyframes ad-demo-tile {
  0%, 100% { filter: saturate(.82) brightness(.88); }
  50% { filter: saturate(1.08) brightness(1.08); }
}

.portfolio-mode .work-launch {
  transition: color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.portfolio-mode .lab-work-card:hover .work-launch {
  color: #111700;
  background: #caff21;
  box-shadow: 0 0 20px rgba(202,255,33,.22);
  transform: translate(-2px, -2px);
}

.portfolio-mode .next-work-transition > i {
  background: linear-gradient(90deg, transparent, rgba(202,255,33,.85), transparent);
  background-size: 220% 100%;
  animation: transition-signal 3.6s linear infinite;
}

.portfolio-mode .next-work-transition > i:last-child {
  animation-direction: reverse;
}

@keyframes transition-signal {
  to { background-position: -220% 0; }
}

.portfolio-mode .next-work-transition > strong {
  animation: next-work-pulse 3.6s ease-in-out infinite;
}

@keyframes next-work-pulse {
  0%, 100% { color: #89938d; letter-spacing: .08em; }
  50% { color: #d7ff4b; letter-spacing: .105em; }
}

.portfolio-mode .visual-frame {
  transition: border-color .35s ease, box-shadow .35s ease, transform .45s cubic-bezier(.16,1,.3,1);
}

.portfolio-mode .profile-visual:hover .visual-frame {
  border-color: rgba(202,255,33,.8);
  box-shadow: 0 34px 90px rgba(0,0,0,.36), 0 0 42px rgba(202,255,33,.08);
  transform: translateY(-5px);
}

.portfolio-mode .digital-human-visual img {
  animation: digital-human-breathe 8s ease-in-out infinite;
}

@keyframes digital-human-breathe {
  0%, 100% { transform: scale(1.015); filter: saturate(.88) contrast(1.04) brightness(.94); }
  50% { transform: scale(1.055); filter: saturate(1) contrast(1.07) brightness(1.03); }
}

.portfolio-mode .qr-scan {
  position: absolute;
  z-index: 3;
  right: 8%;
  left: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0b1510 18%, #0b1510 82%, transparent);
  box-shadow: 0 0 13px rgba(7,20,12,.72);
  opacity: .58;
  pointer-events: none;
  animation: qr-scan 3.8s ease-in-out infinite;
}

@keyframes qr-scan {
  0%, 100% { top: 10%; opacity: .18; }
  50% { top: 90%; opacity: .75; }
}

@media (max-width: 760px) {
  .portfolio-mode .motion-cursor {
    display: none;
  }

  .portfolio-mode .motion-reveal {
    filter: blur(3px);
    transform: translate3d(0, 18px, 0);
  }

  .portfolio-mode .motion-reveal.is-visible {
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }

  .portfolio-mode .lab-hero::before {
    opacity: .62;
  }

  .portfolio-mode .spark-orb {
    transition-duration: .3s;
  }

  .portfolio-mode .lab-work-card,
  .portfolio-mode .lab-work-card:hover {
    transform: translateY(0);
  }

  .portfolio-mode .lab-work-card:hover {
    box-shadow: 0 14px 42px rgba(0,0,0,.25);
  }

  .portfolio-mode .digital-human-visual img {
    animation-duration: 11s;
  }
}

/* AI使用调查项目中心 v5.0 */
.survey-project-hub {
  width: min(1440px, 100%);
  min-height: calc(100vh - 145px);
  margin: 0 auto;
  padding: clamp(42px, 5.5vw, 78px) clamp(24px, 6vw, 88px) 90px;
  background:
    radial-gradient(circle at 82% 13%, rgba(202,255,33,.08), transparent 28%),
    linear-gradient(rgba(190,204,194,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190,204,194,.035) 1px, transparent 1px);
  background-size: auto, 58px 58px, 58px 58px;
}

.survey-hub-head {
  max-width: 900px;
  padding: clamp(62px, 7vw, 104px) 0 clamp(34px, 5vw, 70px);
}

.survey-hub-head h1 {
  margin: 16px 0 24px;
  color: #f3f4ef;
  font-size: clamp(62px, 8.2vw, 126px);
  letter-spacing: -.075em;
  line-height: .86;
}

.survey-hub-head h1 em {
  color: #caff21;
  font-style: normal;
}

.survey-hub-head > p {
  max-width: 720px;
  margin: 0;
  color: #a0aaa3;
  font-size: clamp(13px, 1.25vw, 17px);
  line-height: 1.85;
}

.survey-hub-admin-link {
  min-height: 40px;
  margin-top: 22px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(202,255,33,.55);
  color: #caff21;
  background: rgba(202,255,33,.04);
  text-decoration: none;
  font-size: 9px;
  font-weight: 800;
}

.survey-hub-admin-link:hover {
  color: #111700;
  background: #caff21;
}

.survey-entry-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.survey-entry-choices > button,
.survey-entry-choices > a {
  position: relative;
  min-height: 210px;
  padding: 27px 30px;
  display: grid;
  align-content: end;
  gap: 8px;
  overflow: hidden;
  border: 1px solid #313a34;
  color: #eef1ed;
  background: rgba(7,12,10,.78);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}

.survey-entry-choices > button:hover,
.survey-entry-choices > a:hover {
  border-color: #caff21;
  background: rgba(202,255,33,.045);
  transform: translateY(-3px);
}

.survey-entry-choices > * > span {
  position: absolute;
  top: 21px;
  left: 25px;
  color: #707a73;
  font: 9px ui-monospace, monospace;
}

.survey-entry-choices > * > i {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #caff21;
  font-style: normal;
  font-size: 35px;
  font-weight: 300;
}

.survey-entry-choices strong {
  font-size: clamp(25px, 2.5vw, 38px);
  letter-spacing: -.04em;
}

.survey-entry-choices small {
  color: #87928b;
  font-size: 10px;
  line-height: 1.6;
}

.survey-existing {
  padding-top: clamp(65px, 8vw, 115px);
}

.survey-existing > div:first-child {
  margin-bottom: 24px;
}

.survey-existing h2 {
  margin: 9px 0 0;
  color: #eef1ed;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -.055em;
}

.survey-project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.survey-project-card {
  position: relative;
  min-height: 220px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border: 1px solid #303934;
  color: #e9ece8;
  background: rgba(11,16,13,.9);
  text-align: left;
  cursor: pointer;
  transition: transform .2s, border-color .2s;
}

.survey-project-card:hover {
  border-color: rgba(202,255,33,.75);
  transform: translateY(-3px);
}

.survey-project-type {
  color: #caff21;
  font: 8px ui-monospace, monospace;
  letter-spacing: .12em;
}

.survey-project-card > strong {
  max-width: calc(100% - 28px);
  margin-top: 21px;
  font-size: 20px;
  letter-spacing: -.035em;
  line-height: 1.3;
}

.survey-project-card > p {
  margin: 8px 0 0;
  color: #87928b;
  font-size: 9px;
}

.survey-project-card > div {
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  border-top: 1px solid #28302b;
  color: #aab2ad;
  font-size: 8px;
}

.survey-project-card time {
  margin-left: auto;
  color: #707a73;
}

.survey-project-card > small {
  width: 100%;
  margin-top: 8px;
  overflow: hidden;
  color: #6e7a72;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.survey-project-card > i {
  position: absolute;
  top: 18px;
  right: 20px;
  color: #caff21;
  font-style: normal;
  font-size: 17px;
}

.survey-project-empty {
  grid-column: 1 / -1;
  min-height: 220px;
  padding: 36px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  border: 1px dashed #38423c;
  text-align: center;
}

.survey-project-empty strong {
  color: #eef1ed;
  font-size: 20px;
}

.survey-project-empty p {
  margin: 0;
  color: #87928b;
  font-size: 10px;
}

.survey-project-empty button {
  min-height: 38px;
  margin-top: 7px;
  padding: 0 16px;
  border: 1px solid #caff21;
  color: #101600;
  background: #caff21;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.survey-list-loading {
  grid-column: 1 / -1;
  min-height: 220px;
  color: #87928b;
}

.survey-create-dialog {
  width: min(620px, calc(100% - 30px));
}

.survey-create-dialog input,
.survey-create-dialog textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  resize: vertical;
}

.survey-create-dialog input:focus,
.survey-create-dialog textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(112,92,246,.08);
}

.survey-create-tip {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.survey-create-error {
  margin: -7px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #a83745;
  background: #fff0f2;
  font-size: 9px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .survey-project-hub {
    padding: 32px 18px 64px;
  }

  .survey-hub-head {
    padding: 53px 0 34px;
  }

  .survey-hub-head h1 {
    font-size: clamp(55px, 17vw, 76px);
  }

  .survey-entry-choices,
  .survey-project-list {
    grid-template-columns: 1fr;
  }

  .survey-entry-choices > button,
  .survey-entry-choices > a {
    min-height: 150px;
    padding: 22px;
  }

  .survey-project-card {
    min-height: 190px;
  }
}

/* 项目共享 v4.9 */
.share-project-dialog {
  width: min(650px, calc(100% - 30px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  overflow: auto;
  border: 1px solid #dfe0e3;
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 100px rgba(20,20,27,.28);
}

.share-project-dialog::backdrop {
  background: rgba(13,14,18,.58);
  backdrop-filter: blur(5px);
}

.share-project-dialog form {
  padding: 26px;
  display: grid;
  gap: 20px;
}

.share-project-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 90px;
  align-items: end;
  gap: 10px;
}

.share-project-fields label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.share-project-fields input,
.share-project-fields select {
  width: 100%;
  height: 43px;
  padding: 0 11px;
  outline: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
}

.share-project-fields input:focus,
.share-project-fields select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(112,92,246,.08);
}

.share-project-fields > button {
  height: 43px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
}

.share-project-fields > button:disabled {
  opacity: .5;
  cursor: wait;
}

.share-project-tip {
  margin: -10px 0 0;
  color: var(--subtle);
  font-size: 8px;
}

.shared-user-section {
  padding-top: 17px;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.shared-user-section > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shared-user-section > div:first-child strong {
  font-size: 11px;
}

.shared-user-section > div:first-child span {
  color: var(--muted);
  font-size: 9px;
}

.shared-user-list {
  display: grid;
}

.shared-user-list article {
  min-height: 55px;
  padding: 9px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 72px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #efeff1;
}

.shared-user-list article > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.shared-user-list article > div strong,
.shared-user-list article > div small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shared-user-list article > div strong {
  font-size: 10px;
}

.shared-user-list article > div small {
  color: var(--muted);
  font-size: 8px;
}

.share-permission-badge {
  padding: 5px 7px;
  border-radius: 99px;
  text-align: center;
  font-size: 8px;
  font-weight: 750;
}

.share-permission-badge.edit {
  color: #58730d;
  background: #edf8ce;
}

.share-permission-badge.view {
  color: var(--purple);
  background: var(--purple-soft);
}

.shared-user-list article > button {
  padding: 6px 7px;
  border: 1px solid #f0d6da;
  border-radius: 7px;
  color: #b04a58;
  background: #fff8f9;
  cursor: pointer;
  font-size: 8px;
}

.shared-user-list article > button:disabled {
  opacity: .45;
  cursor: wait;
}

.empty-shared-users {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
  font-size: 9px;
}

@media (max-width: 650px) {
  .project-actions {
    grid-template-columns: 1fr 1fr;
  }

  .project-actions .share-project-button {
    grid-column: 1 / -1;
  }

  .project-actions .delete-project-button {
    grid-column: 1 / -1;
  }

  .share-project-dialog form {
    padding: 20px 16px;
  }

  .share-project-fields {
    grid-template-columns: 1fr;
  }

  .shared-user-list article {
    grid-template-columns: minmax(0, 1fr) 66px;
  }

  .shared-user-list article > button {
    grid-column: 1 / -1;
  }
}

/* 产品说明与联系区 */
.about-section.profile-section {
  grid-template-columns: 70px minmax(0, 1fr);
}

.about-section .profile-copy {
  grid-column: 2;
  display: flow-root;
}

.about-section .digital-human-visual {
  float: right;
  width: min(34vw, 410px);
  margin: 0 0 24px clamp(28px, 5vw, 70px);
}

@media (max-width: 1000px) {
  .about-section.profile-section {
    grid-template-columns: 45px minmax(0, 1fr);
  }

  .about-section .digital-human-visual {
    width: min(32vw, 300px);
    margin-left: 28px;
  }
}

@media (max-width: 760px) {
  .about-section.profile-section {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .about-section .profile-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .about-section .digital-human-visual {
    float: right;
    width: 112px;
    margin: 0 0 12px 15px;
  }

  .about-section .digital-human-visual figcaption {
    display: none;
  }
}

@media (max-width: 390px) {
  .about-section .digital-human-visual {
    width: 96px;
    margin-left: 12px;
  }
}

@media (max-width: 390px) {
  .generator-title {
    font-size: 18vw !important;
  }

  .showcase-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .showcase-actions button,
  .showcase-actions a {
    width: 100%;
  }
}

/* 手机首屏与统一板块标题 v4.8 */
.lab-section-head h2,
.profile-copy h2 {
  margin: 0;
  color: #f0f0eb;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: .95;
}

.next-work-transition {
  grid-template-columns: minmax(30px, 1fr) auto minmax(30px, 1fr);
  gap: 16px;
  padding: 15px 0;
}

.next-work-transition > i {
  background: linear-gradient(90deg, rgba(202,255,33,.04), rgba(202,255,33,.5));
}

.next-work-transition > i:last-child {
  background: linear-gradient(90deg, rgba(202,255,33,.5), rgba(202,255,33,.04));
}

.next-work-transition > strong {
  color: #b9c2bc;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .lab-hero {
    min-height: auto;
    padding: 28px 16px 26px;
  }

  .hero-index {
    display: none;
  }

  .lab-kicker {
    font-size: 7px;
    letter-spacing: .11em;
  }

  .generator-title,
  .hero-copy h1 {
    margin: 14px 0 10px !important;
    font-size: clamp(50px, 14.5vw, 62px) !important;
    line-height: .8 !important;
  }

  .generator-title b {
    right: -18px;
    bottom: 4px;
  }

  .hero-copy h2 {
    margin-bottom: 9px;
    font-size: 16px;
  }

  .hero-copy p {
    font-size: 10px;
    line-height: 1.65;
    letter-spacing: .02em;
  }

  .hero-visual {
    height: 145px;
    margin-top: -4px;
    opacity: .72;
  }

  .spark-orb {
    width: 220px;
    transform: translate(-50%, -50%) scale(.7);
  }

  .orb-label {
    font-size: 7px;
  }

  .lab-status {
    margin-top: 0;
    padding: 11px 12px;
  }

  .status-title {
    padding-bottom: 8px;
    font-size: 7px;
  }

  .status-online {
    padding: 8px 0;
    font-size: 10px;
  }

  .status-online b {
    width: 7px;
    height: 7px;
    margin-right: 6px;
  }

  .lab-status dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lab-status dl > div {
    min-width: 0;
    padding: 9px 8px 5px;
    border-right: 1px dotted rgba(215,225,216,.16);
    border-bottom: 0;
  }

  .lab-status dl > div:first-child {
    padding-left: 0;
  }

  .lab-status dl > div:last-child {
    padding-right: 0;
    border-right: 0;
  }

  .lab-status dt {
    font-size: 6px;
    letter-spacing: .08em;
  }

  .lab-status dd {
    margin-top: 4px;
    font-size: 18px;
  }

  .lab-status dd.status-text {
    font-size: 9px;
    line-height: 1.35;
    letter-spacing: .04em;
  }

  .lab-status > small {
    display: none;
  }

  .lab-section-head h2,
  .profile-copy h2 {
    margin: 0 0 18px;
    font-size: 36px;
  }

  .lab-section-head {
    margin-bottom: 20px;
    gap: 8px;
  }

  .lab-section-head h2 {
    margin-bottom: 0;
  }

  .next-work-transition {
    grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
    gap: 10px;
    margin-top: 20px;
    padding: 13px 0;
  }

  .next-work-transition > strong {
    grid-column: auto;
    font-size: 9px;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .generator-title {
    font-size: 14.5vw !important;
  }
}

/* 作品级用户类型权限与体验登录 v4.5 */
.login-wechat-entry {
  padding: 14px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(202,255,33,.28);
  color: #caff21;
  background: rgba(202,255,33,.035);
  text-decoration: none;
}

.login-wechat-entry span {
  color: #858f89;
  font-size: 9px;
}

.login-wechat-entry strong {
  font-size: 11px;
}

.experience-login-dialog label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.experience-login-dialog input {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
}

.experience-login-dialog input:focus {
  border-color: var(--purple);
}

.experience-login-error {
  margin: -4px 0 0;
  color: #c24d5a;
  font-size: 9px;
}

.work-audience-panel {
  margin-bottom: 22px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(28,27,35,.045);
}

.audience-intro {
  margin: -3px 0 16px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.audience-work-list {
  display: grid;
}

.audience-work-row {
  min-height: 66px;
  padding: 10px 0;
  display: grid;
  grid-template-columns: minmax(145px, 1fr) minmax(290px, 1.5fr) 62px;
  align-items: center;
  gap: 15px;
  border-top: 1px solid #ececef;
}

.audience-work-row > div:first-child {
  display: grid;
  gap: 3px;
}

.audience-work-row > div:first-child strong {
  font-size: 11px;
}

.audience-work-row > div:first-child small,
.audience-note {
  color: var(--muted);
  font-size: 8px;
}

.audience-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.audience-checks label {
  position: relative;
  cursor: pointer;
}

.audience-checks input {
  position: absolute;
  opacity: 0;
}

.audience-checks span {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #696b73;
  background: #f8f8f9;
  font-size: 9px;
}

.audience-checks input:checked + span {
  border-color: #9ac438;
  color: #4c6e00;
  background: #edf8d2;
}

.audience-checks label.unavailable {
  cursor: not-allowed;
  opacity: .42;
}

.audience-work-row > button {
  min-height: 33px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font-size: 9px;
}

.audience-note {
  grid-column: 2 / -1;
  margin-top: -9px;
}

@media (max-width: 760px) {
  .work-audience-panel {
    padding: 18px 14px;
  }

  .audience-work-row {
    padding: 14px 0;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 10px;
  }

  .audience-checks {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .audience-work-row > button {
    grid-column: 2;
    grid-row: 1;
  }

  .audience-note {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0;
  }
}
/* 社媒数据台：数据终端式作品导航 */
.dashboard-mode .topbar.lab-topbar {
  border-bottom-color: rgba(66, 222, 255, .28);
  background:
    linear-gradient(90deg, rgba(21, 104, 129, .22), transparent 42%),
    rgba(4, 18, 25, .97);
  box-shadow: 0 10px 34px rgba(0, 16, 24, .18);
}

.dashboard-mode .topbar.lab-topbar::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, #42deff, transparent);
  opacity: .4;
}

.dashboard-mode .spark-mark {
  color: #42deff;
  text-shadow: 0 0 20px rgba(66, 222, 255, .48);
}

.dashboard-mode .lab-brand .brand-copy small {
  color: #71b9c9;
}

.dashboard-mode .lab-nav a:hover,
.dashboard-mode .lab-nav a:focus-visible {
  color: #42deff;
}

.dashboard-mode .lab-login-button {
  border-color: rgba(66, 222, 255, .55);
  color: #42deff;
}

.dashboard-mode .user-chip small,
.dashboard-mode .home-link {
  color: #42deff;
}

@media (max-width: 760px) {
  .dashboard-mode .user-chip {
    display: grid;
  }

  .dashboard-mode .user-chip b {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-mode .user-chip small {
    display: none;
  }
}
