:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --line: #d9e2ec;
  --text: #152235;
  --muted: #64748b;
  --accent: #0f766e;
  --accent-2: #0b5f59;
  --danger: #b42318;
  --warning: #b45309;
  --shadow: 0 12px 32px rgba(20, 42, 62, .08);
  font-family: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; display: block; }
.global-header { min-height: 76px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); display: flex; align-items: center; gap: 28px; padding: 11px clamp(16px,4vw,54px); position: sticky; top: 0; z-index: 3; }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 10px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #d5f5ed; color: #0f766e; font-weight: 800; }
.brand-logo { width: 46px; height: 46px; display: block; flex: 0 0 auto; }
.brand strong { font-size: 18px; font-weight: 650; letter-spacing: 0; }
.brand small { display: block; color: #9db5c3; font-size: 12px; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav button { border: 0; background: transparent; color: var(--muted); padding: 10px 12px; border-radius: 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 520; }
.nav button:hover, .nav button.active { background: #e8f5f1; color: var(--accent-2); }
.nav-icon { width: 20px; text-align: center; color: var(--accent); font-size: 16px; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.credit-pill { border: 1px solid #b9dcd4; background: #effaf7; color: #0f625a; border-radius: 999px; padding: 9px 13px; font-weight: 750; font-size: 13px; }
.icon-btn { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); }
.main { min-width: 0; }
.page-context { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.page-context h1 { margin: 0; font-size: 18px; }
.page-context p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.tool-shortcuts { display: flex; align-items: center; gap: 4px; }
.tool-shortcuts .nav button { font-size: 11px; padding: 7px 8px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #dbeafe; color: #1d4ed8; font-weight: 700; font-size: 15px; }
.content { max-width: 1480px; margin: 0 auto; padding: 28px; }
.page-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.page-head h2 { margin: 0; font-size: 26px; letter-spacing: 0; font-weight: 650; }
.page-head p { margin: 7px 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 7px; padding: 9px 13px; font-weight: 650; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn:hover { border-color: #9db3c6; background: #f8fbfd; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.danger { color: var(--danger); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.grid { display: grid; gap: 16px; }
.grid.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two { grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); }
.grid.tools { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }
.card.pad { padding: 18px; }
.stat { padding: 17px; }
.stat span { color: var(--muted); font-size: 12px; }
.stat strong { display: block; font-size: 27px; margin: 8px 0 2px; }
.stat small { color: var(--muted); }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-title h3 { margin: 0; font-size: 15px; }
.section-title span { color: var(--muted); font-size: 12px; }
.segmented { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #f4f7fb; }
.segmented button { border: 0; background: transparent; color: var(--muted); padding: 6px 9px; border-radius: 6px; font-size: 11px; }
.segmented button.selected, .segmented button:hover { background: #fff; color: var(--accent-2); box-shadow: 0 1px 3px rgba(20,42,62,.1); }
.cases-section { margin-top: 18px; }
.case-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.case-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; padding: 0; background: #fff; color: var(--text); text-align: left; transition: transform .15s, box-shadow .15s, border-color .15s; }
.case-card:hover { transform: translateY(-2px); border-color: #9bc7bf; box-shadow: 0 9px 22px rgba(20,42,62,.11); }
.case-thumb { aspect-ratio: 1.3 / 1; display: flex; align-items: flex-end; justify-content: space-between; padding: 10px; color: #fff; position: relative; overflow: hidden; }
.case-thumb::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.2); right: -20px; top: -24px; }
.case-thumb span { font-size: 34px; line-height: 1; position: relative; z-index: 1; }
.case-thumb small { font-size: 9px; letter-spacing: 1px; opacity: .85; position: relative; z-index: 1; }
.case-thumb.mint { background: linear-gradient(135deg,#0f766e,#86d8c6); }
.case-thumb.wood { background: linear-gradient(135deg,#7c4a21,#e6a66f); }
.case-thumb.blue { background: linear-gradient(135deg,#163a70,#56a4d8); }
.case-thumb.gold { background: linear-gradient(135deg,#9a5b16,#f2c66f); }
.case-thumb.coral { background: linear-gradient(135deg,#a94742,#ed9b82); }
.case-thumb.yellow { background: linear-gradient(135deg,#b7791f,#f3df6d); }
.case-copy { padding: 10px; }
.case-copy strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.case-copy p { min-height: 32px; color: var(--muted); font-size: 10px; line-height: 1.45; margin: 5px 0 8px; }
.case-copy span { color: var(--accent-2); font-size: 10px; font-weight: 750; }
.tool-card { padding: 17px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.tool-card .tool-symbol { font-size: 24px; }
.tool-card strong { display: block; margin-top: 14px; }
.tool-card p { color: var(--muted); font-size: 12px; margin: 5px 0 0; line-height: 1.5; }
.list { display: grid; gap: 8px; }
.list-row { display: flex; gap: 13px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: #fff; }
.list-row:hover { border-color: #a9bdcb; }
.list-main { min-width: 0; display: flex; align-items: center; gap: 11px; }
.thumb { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 7px; background: linear-gradient(145deg,#d8f4ec,#cfe0fa); display: grid; place-items: center; font-size: 19px; color: #174e5e; }
.list-main strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.list-main small { color: var(--muted); display: block; margin-top: 3px; font-size: 11px; }
.row-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions .btn { padding: 6px 8px; font-size: 11px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 15px; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--text); padding: 10px 11px; outline: none; }
.input:focus, .select:focus, .textarea:focus { border-color: #3a9b8d; box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
.textarea { min-height: 116px; resize: vertical; line-height: 1.55; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: #41566a; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.55; }
.notice { padding: 12px 14px; border-radius: 8px; background: #fff8e8; border: 1px solid #f3d8a4; color: #7c4a03; font-size: 12px; line-height: 1.5; }
.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 700; background: #edf2f7; color: #526577; }
.status.success { background: #dcfce7; color: #166534; }
.status.running { background: #dbeafe; color: #1d4ed8; }
.status.failed { background: #fee2e2; color: #b91c1c; }
.canvas-layout { display: grid; grid-template-columns: 260px minmax(0,1fr) 280px; min-height: 560px; }
.canvas-panel { padding: 16px; border-right: 1px solid var(--line); }
.canvas-panel:last-child { border-left: 1px solid var(--line); border-right: 0; }
.canvas-stage { position: relative; overflow: auto; min-height: 560px; background-color: #f8fbfd; background-image: radial-gradient(#c9d7e2 1px, transparent 1px); background-size: 22px 22px; }
.node { position: absolute; width: 160px; border: 1px solid #8fb7b3; background: #fff; border-radius: 8px; box-shadow: 0 8px 20px rgba(35,78,91,.12); padding: 12px; }
.node strong { display: block; font-size: 12px; }
.node small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.node-port { height: 6px; width: 6px; border-radius: 50%; background: var(--accent); margin-top: 10px; }
.empty { padding: 35px 18px; text-align: center; color: var(--muted); border: 1px dashed #b9c9d5; border-radius: 8px; background: #fbfdff; }
.chat { min-height: 540px; display: grid; grid-template-rows: auto 1fr auto; }
.messages { padding: 18px; overflow: auto; display: grid; align-content: start; gap: 12px; background: #f8fbfd; }
.bubble { max-width: 78%; padding: 11px 13px; border-radius: 10px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.bubble.user { margin-left: auto; background: #d8f4ec; border: 1px solid #a9dfd2; }
.bubble.assistant, .bubble.system { background: #fff; border: 1px solid var(--line); }
.chat-compose { padding: 14px; border-top: 1px solid var(--line); background: #fff; }
.tool-hero { display: flex; align-items: flex-start; gap: 14px; }
.tool-hero .hero-icon { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: #d8f4ec; font-size: 25px; }
.settings-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.setting-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 10px; font-size: 12px; color: #41566a; }
.result-preview { min-height: 230px; display: grid; place-items: center; border: 1px dashed #a8bbc8; border-radius: 8px; background: linear-gradient(145deg,#f7fbff,#eaf5f1); color: #537085; }
.result-preview .preview-art { width: min(270px,70%); aspect-ratio: 16 / 10; border-radius: 8px; background: linear-gradient(135deg,#0f766e,#8bd6c6 45%,#dbeafe); box-shadow: 0 12px 26px rgba(15,118,110,.22); display: grid; place-items: center; color: #fff; font-size: 38px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%,#d7f3eb,transparent 36%), radial-gradient(circle at 90% 90%,#dbeafe,transparent 32%), var(--bg); }
.login-card { width: min(500px,100%); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 34px; box-shadow: 0 24px 70px rgba(20,42,62,.12); }
.login-card h1 { margin: 20px 0 8px; font-size: 30px; }
.login-card p { color: var(--muted); line-height: 1.6; }
.login-points { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin: 22px 0; }
.login-point { padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfd; font-size: 12px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 8; background: #122d3d; color: #fff; padding: 12px 15px; border-radius: 8px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; font-size: 13px; }
.toast.show { opacity: 1; transform: translateY(0); }
.modal-backdrop { position: fixed; inset: 0; z-index: 7; background: rgba(9,25,36,.48); display: grid; place-items: center; padding: 20px; }
.modal { width: min(440px,100%); padding: 20px; box-shadow: 0 24px 70px rgba(9,25,36,.25); }
.modal p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.muted { color: var(--muted); }
.reference-home { max-width: 1180px; margin: 0 auto; }
.home-hero { padding: 54px 10px 30px; text-align: center; }
.home-hero-copy h2 { margin: 7px 0 9px; font-size: 38px; font-weight: 680; letter-spacing: 0; }
.home-hero-copy p { max-width: 650px; margin: 0 auto 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.home-hero-copy p strong { color: var(--accent-2); }
.quick-agent { width: min(720px, 100%); margin: 0 auto; text-align: left; }
.quick-compose { border: 1px solid #c8d7df; border-radius: 10px; background: #fff; box-shadow: 0 16px 36px rgba(20,42,62,.1); padding: 13px 15px 11px; }
.reference-upload { border: 0; border-radius: 6px; background: #eff5f7; color: #315568; padding: 7px 10px; font-size: 11px; }
.reference-upload:hover { background: #e3eef1; }
.quick-textarea { display: block; width: 100%; min-height: 82px; margin-top: 8px; border: 0; outline: 0; resize: vertical; color: var(--text); line-height: 1.6; }
.quick-textarea::placeholder { color: #9aaab5; }
.quick-compose-footer { display: flex; align-items: center; gap: 7px; border-top: 1px solid #edf1f5; padding-top: 10px; }
.quick-mode, .quick-reference { width: auto; min-width: 130px; padding: 7px 9px; font-size: 11px; }
.quick-reference { min-width: 170px; }
.quick-send { margin-left: auto; padding: 8px 14px; }
.home-section { padding: 20px 0 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 13px; }
.section-heading h3 { margin: 0; font-size: 18px; font-weight: 650; }
.section-heading span { color: var(--muted); font-size: 12px; }
.home-tool-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.home-tool-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 110px; padding: 12px 8px; border: 0; border-right: 1px solid #edf1f5; background: #fff; color: #315568; }
.home-tool-link:last-child { border-right: 0; }
.home-tool-link:hover { background: #eff8f5; color: var(--accent-2); }
.home-tool-link span { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #dce8eb; border-radius: 14px; background: #f8fbfc; color: var(--accent); font-size: 22px; }
.home-tool-link strong { font-size: 15px; font-weight: 600; }
.scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scene-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 15px 16px; background: #fff; text-align: left; color: var(--text); }
.scene-card:hover { border-color: #92c5ba; box-shadow: 0 8px 18px rgba(20,42,62,.08); transform: translateY(-1px); }
.scene-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--accent); font-size: 19px; }
.scene-card:nth-child(2) .scene-icon { background: #b7791f; }
.scene-card:nth-child(3) .scene-icon { background: #1d4ed8; }
.scene-card:nth-child(4) .scene-icon { background: #a94742; }
.scene-card:nth-child(5) .scene-icon { background: #7c3f68; }
.scene-card:nth-child(6) .scene-icon { background: #334155; }
.scene-card strong, .scene-card small { display: block; }
.scene-card strong { font-size: 15px; font-weight: 600; }
.scene-card small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.scene-card b { color: #9aacb6; font-size: 16px; }
.discovery-section { padding-top: 29px; }
.discovery-tabs { flex: 0 0 auto; }
.discovery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.discovery-card { min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; text-align: left; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.discovery-card:hover { border-color: #91c4ba; box-shadow: 0 10px 24px rgba(20,42,62,.1); transform: translateY(-2px); }
.discovery-thumb { position: relative; aspect-ratio: 1.18 / 1; display: flex; align-items: flex-end; padding: 11px; color: #fff; overflow: hidden; }
.discovery-thumb::before { content: ''; position: absolute; width: 130px; height: 130px; right: -32px; top: -42px; border-radius: 50%; background: rgba(255,255,255,.2); }
.discovery-thumb::after { content: ''; position: absolute; left: 15%; right: 20%; bottom: 20%; height: 26%; border-radius: 45% 45% 10% 10%; background: rgba(255,255,255,.16); transform: rotate(-7deg); }
.discovery-thumb span { position: relative; z-index: 1; font-size: 38px; line-height: 1; }
.discovery-thumb small, .discovery-thumb i { position: absolute; z-index: 1; top: 10px; font-size: 9px; letter-spacing: 1px; font-style: normal; opacity: .9; }
.discovery-thumb small { left: 11px; }
.discovery-thumb i { right: 11px; font-size: 15px; }
.discovery-thumb.mint { background: linear-gradient(135deg,#0f766e,#84d7c3); }
.discovery-thumb.wood { background: linear-gradient(135deg,#7c4a21,#e4a46e); }
.discovery-thumb.blue { background: linear-gradient(135deg,#183b70,#5ea9dc); }
.discovery-thumb.gold { background: linear-gradient(135deg,#9a5b16,#f2c66f); }
.discovery-thumb.coral { background: linear-gradient(135deg,#a94742,#ec9d83); }
.discovery-thumb.yellow { background: linear-gradient(135deg,#b7791f,#f2df6b); }
.discovery-thumb.slate { background: linear-gradient(135deg,#334155,#94a3b8); }
.discovery-thumb.plum { background: linear-gradient(135deg,#67385e,#c084aa); }
.discovery-thumb.night { background: linear-gradient(135deg,#172554,#6366a8); }
.discovery-thumb.green { background: linear-gradient(135deg,#166534,#79b98b); }
.discovery-thumb.rose { background: linear-gradient(135deg,#9f3f65,#e69bb6); }
.discovery-thumb.red { background: linear-gradient(135deg,#991b1b,#e27f72); }
.discovery-copy { padding: 11px; }
.discovery-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.discovery-copy p { min-height: 31px; margin: 5px 0 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.discovery-copy span { color: var(--accent-2); font-size: 11px; font-weight: 750; }
.home-status { display: flex; align-items: center; gap: 22px; margin: 26px 0 6px; padding: 15px 0 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.home-status strong { margin-left: 5px; color: var(--text); font-size: 14px; }
.home-status .btn { margin-left: auto; }
.admin-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.admin-settings-form { display: grid; gap: 12px; }
.check-line { display: flex; align-items: center; gap: 8px; color: #41566a; font-size: 12px; }
.check-line input { width: 15px; height: 15px; accent-color: var(--accent); }
.user-admin-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.user-admin-actions .status { font-size: 10px; }
.admin-modal { width: min(480px,100%); }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.admin-heading h2 { margin: 5px 0 0; font-size: 26px; }
.admin-heading p { margin: 7px 0 0; color: var(--muted); }
.eyebrow { color: #b45309; font-size: 10px; letter-spacing: 1.7px; font-weight: 800; }
.admin-heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.admin-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-kpi { background: #122d3d; color: #fff; border-radius: 9px; padding: 16px; min-height: 112px; box-shadow: 0 10px 26px rgba(18,45,61,.15); }
.admin-kpi:nth-child(2) { background: #0f766e; }
.admin-kpi:nth-child(3) { background: #1d4ed8; }
.admin-kpi:nth-child(4) { background: #9a5b16; }
.admin-kpi:nth-child(5) { background: #7c3f68; }
.admin-kpi span { display: block; font-size: 11px; opacity: .78; }
.admin-kpi strong { display: block; margin: 11px 0 4px; font-size: 26px; }
.admin-kpi small { display: block; font-size: 11px; opacity: .76; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-toolbar { display: grid; gap: 12px; margin-bottom: 16px; }
.admin-filter-form { display: grid; grid-template-columns: minmax(220px, 1fr) 190px auto; gap: 8px; }
.admin-breakdown { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 11px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr); gap: 16px; margin-bottom: 16px; }
.admin-grid-wide { grid-template-columns: minmax(0, 1.6fr) minmax(340px, .8fr); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 650px; }
.admin-table th { padding: 9px 10px; color: var(--muted); text-align: left; font-size: 10px; font-weight: 800; letter-spacing: .25px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 11px 10px; border-bottom: 1px solid #edf1f5; font-size: 12px; vertical-align: middle; white-space: nowrap; }
.admin-table tbody tr:hover { background: #f8fbfd; }
.admin-table td strong { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.admin-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.admin-table .row-actions { justify-content: flex-start; flex-wrap: nowrap; }
.admin-table .row-actions .btn { white-space: nowrap; }
.event-stream { display: grid; gap: 2px; max-height: 384px; overflow: auto; }
.event-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px solid #edf1f5; }
.event-sequence { color: var(--accent-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.event-item strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.event-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
.amount-positive { color: #15803d; font-weight: 800; }
.amount-negative { color: #b42318; font-weight: 800; }
@media (max-width: 1100px) { .shell { grid-template-columns: 78px minmax(0,1fr); } .sidebar { padding: 18px 9px; } .brand { justify-content: center; padding: 0; } .brand > div:last-child, .nav button span:not(.nav-icon), .sidebar-foot .credit-mini, .sidebar-foot button span:not(.nav-icon) { display: none; } .nav button, .sidebar-foot button { justify-content: center; } .grid.stats { grid-template-columns: repeat(2,minmax(0,1fr)); } .canvas-layout { grid-template-columns: 210px minmax(0,1fr); } .canvas-panel:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 1100px) { .global-header { gap: 12px; padding: 10px 18px; } .brand { flex: 0 0 auto; } .brand > div:last-child { display: none; } .nav { margin-left: 0; } .grid.stats { grid-template-columns: repeat(2,minmax(0,1fr)); } .canvas-layout { grid-template-columns: 210px minmax(0,1fr); } .canvas-panel:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 760px) { .global-header { min-height: 68px; padding: 8px 12px; gap: 8px; overflow-x: auto; } .brand { padding: 0 2px; gap: 8px; } .brand-logo { width: 40px; height: 40px; } .nav { overflow-x: auto; } .nav button { flex: 0 0 auto; padding: 8px; } .nav button span:not(.nav-icon) { display: none; } .header-actions { margin-left: auto; } .credit-pill { white-space: nowrap; padding: 7px 9px; } .icon-btn { flex: 0 0 auto; } .page-context { display: grid; } .tool-shortcuts { overflow-x: auto; } .content { padding: 18px 14px; } .page-head { display: grid; } .grid.two, .grid.tools { grid-template-columns: 1fr; } .grid.stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .form-grid { grid-template-columns: 1fr; } .form-grid .full { grid-column: auto; } .canvas-layout { display: block; } .canvas-panel { border: 0; border-bottom: 1px solid var(--line); } .canvas-stage { min-height: 430px; } .row-actions { justify-content: flex-start; } .list-row { align-items: flex-start; flex-direction: column; } .list-main { width: 100%; } .case-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .cases-section .section-title { align-items: flex-start; flex-direction: column; } }
@media (max-width: 1100px) { .admin-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .admin-grid, .admin-grid-wide { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .admin-settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .admin-heading { display: grid; align-items: start; } .admin-heading-actions { justify-content: flex-start; } .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-kpi { min-height: 104px; padding: 13px; } .admin-kpi strong { font-size: 22px; } .admin-filter-form { grid-template-columns: 1fr; } .home-hero { padding-top: 34px; } .home-hero-copy h2 { font-size: 32px; } .quick-compose-footer { flex-wrap: wrap; } .quick-mode, .quick-reference { min-width: 0; flex: 1 1 140px; } .quick-send { margin-left: 0; } .home-tool-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .home-tool-link:nth-child(3) { border-right: 0; } .home-tool-link:nth-child(-n+3) { border-bottom: 1px solid #edf1f5; } .scene-grid, .discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-status { flex-wrap: wrap; gap: 11px 18px; } .home-status .btn { margin-left: 0; width: 100%; } }
@media (max-width: 760px) { .global-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; min-height: 112px; overflow: visible; align-items: center; } .brand { grid-column: 1; grid-row: 1; justify-content: flex-start; } .brand > div:last-child { display: block; } .brand strong { font-size: 15px; } .brand small { display: none; } .header-actions { grid-column: 2; grid-row: 1; margin-left: 0; } .nav { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: space-between; margin: 0; overflow-x: auto; border-top: 1px solid #edf1f5; padding-top: 6px; } .nav button { min-width: 40px; justify-content: center; padding: 8px 9px; } .nav button span:not(.nav-icon) { display: none; } .home-tool-link { min-height: 112px; } .home-tool-link span { width: 46px; height: 46px; } .scene-card { grid-template-columns: 38px minmax(0, 1fr) 14px; padding: 13px 11px; gap: 8px; } .scene-icon { width: 36px; height: 36px; } .scene-card strong { font-size: 13px; } .scene-card small { font-size: 10px; } }
