:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #f1f3f9;
  --ink: #1b2234;
  --muted: #7b8498;
  --line: #e7eaf1;
  --primary: #6558f5;
  --primary-deep: #493fd1;
  --cyan: #42bce7;
  --green: #2bb679;
  --orange: #f08a4b;
  --shadow: 0 12px 36px rgba(37, 44, 72, 0.07);
  --radius-lg: 18px;
  --radius-md: 12px;
  --font: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "DM Sans", "Noto Sans SC", sans-serif;
}

.monitor-source-note { display: flex; align-items: center; gap: 9px; margin: -5px 0 16px; padding: 10px 13px; border: 1px solid #dfe7ef; border-radius: 7px; color: #657286; background: #f7fafc; font-size: 12px; line-height: 1.6; }
.monitor-source-note svg { flex: 0 0 auto; width: 15px; color: #4386aa; }
.monitor-empty { display: grid; min-height: 340px; place-items: center; align-content: center; padding: 32px; text-align: center; }
.monitor-empty h2 { margin: 14px 0 7px; color: #394358; font-size: 18px; }
.monitor-empty p { max-width: 560px; margin: 0 0 19px; color: #8992a3; font-size: 13px; line-height: 1.8; }
.negative-trend { color: #d86370 !important; font: 600 12px var(--font-display); }
.monitor-model-name { display: block; margin: -5px 0 10px; overflow: hidden; color: #9aa3b2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.monitor-answer-list { max-height: 500px; overflow-y: auto; padding: 0 20px 16px; }
.monitor-answer { border-top: 1px solid #eff1f5; }
.monitor-answer summary { display: grid; grid-template-columns: 24px minmax(0, 1fr) 16px; align-items: start; gap: 9px; padding: 12px 0; cursor: pointer; list-style: none; }
.monitor-answer summary::-webkit-details-marker { display: none; }
.monitor-answer summary > span:nth-child(2) { min-width: 0; }
.monitor-answer summary strong, .monitor-answer summary small { display: block; }
.monitor-answer summary strong { overflow: hidden; color: #596378; font-size: 12px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.monitor-answer summary small { margin-top: 3px; color: #9da5b4; font-size: 11px; }
.monitor-answer summary > svg { width: 14px; color: #a4acba; transition: transform .2s; }
.monitor-answer[open] summary > svg { transform: rotate(180deg); }
.monitor-answer-body { margin: 0 0 13px 33px; padding: 12px 13px; border-left: 2px solid #dedcfb; color: #646e81; background: #f8f9fc; }
.monitor-answer-body p { margin: 0; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.monitor-answer-body small { display: block; margin-top: 9px; color: #949dad; font-size: 11px; }
.monitor-answer-body .monitor-error { color: #c95161; }
.monitor-inline-empty { padding: 35px 10px; color: #9da5b4; font-size: 12px; text-align: center; }
.monitor-run-card { margin-top: 16px; overflow: hidden; }
.monitor-run-card .data-table { min-width: 760px; }
.monitor-run-card .table-wrap { max-height: 390px; }
.export-format-list { display: grid; gap: 10px; }
.export-format-list button { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 1px solid #e2e6ed; border-radius: 7px; color: #606a7e; background: #fff; text-align: left; }
.export-format-list button:hover { border-color: #8d84ee; background: #f9f8ff; }
.export-format-list button > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 7px; color: #6258de; background: #efeeff; }
.export-format-list svg { width: 16px; }
.export-format-list button > svg { color: #a1a9b8; }
.export-format-list strong, .export-format-list small { display: block; }
.export-format-list strong { font-size: 13px; }
.export-format-list small { margin-top: 4px; color: #9aa2b1; font-size: 11px; line-height: 1.5; }

.dh-clone-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.dh-clone-stats article { display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dh-clone-stats article > span { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 8px; color: #5d58ce; background: #efeeff; }
.dh-clone-stats article:nth-child(2) > span { color: #238466; background: #e8f7f0; }
.dh-clone-stats article:nth-child(3) > span { color: #b16927; background: #fff1e2; }
.dh-clone-stats article:nth-child(4) > span { color: #2d7298; background: #e9f5fa; }
.dh-clone-stats svg { width: 17px; }
.dh-clone-stats small, .dh-clone-stats strong { display: block; }
.dh-clone-stats small { color: #9099aa; font-size: 11px; }
.dh-clone-stats strong { margin-top: 5px; color: #354055; font: 700 21px var(--font-display); letter-spacing: 0; }
.dh-clone-library { min-width: 0; }
.dh-clone-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dh-clone-toolbar .top-search { width: min(360px, 45vw); }
.dh-clone-toolbar select { height: 38px; min-width: 118px; padding: 0 30px 0 11px; border: 1px solid #e1e5ed; border-radius: 7px; color: #5e687c; background: #fff; font-size: 12px; }
.dh-clone-toolbar > span { margin-left: auto; color: #969faf; font-size: 12px; }
.dh-clone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dh-clone-card { min-width: 0; overflow: hidden; border: 1px solid #e3e7ee; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgba(40, 47, 70, .05); }
.dh-clone-video { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #171b22; }
.dh-clone-video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.dh-clone-video .tag { position: absolute; top: 9px; left: 9px; pointer-events: none; }
.dh-clone-card-body { padding: 14px; }
.dh-clone-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.dh-clone-title > div { min-width: 0; }
.dh-clone-title strong, .dh-clone-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-clone-title strong { color: #3b4559; font-size: 14px; }
.dh-clone-title small { margin-top: 4px; color: #8e97a8; font-size: 11px; }
.dh-clone-title .icon-button { width: 29px; height: 29px; flex: 0 0 auto; }
.dh-clone-card-body > p { height: 38px; margin: 11px 0; overflow: hidden; color: #778195; font-size: 12px; line-height: 1.8; }
.dh-clone-tags { display: flex; min-height: 23px; flex-wrap: wrap; gap: 5px; }
.dh-clone-tags span { padding: 4px 6px; border-radius: 4px; color: #5e6590; background: #f0f1f8; font-size: 10px; }
.dh-clone-meta { display: flex; gap: 14px; margin: 12px 0; padding-top: 10px; border-top: 1px solid #eef0f4; color: #8d96a7; font-size: 11px; }
.dh-clone-meta span { display: inline-flex; align-items: center; gap: 4px; }
.dh-clone-meta svg { width: 12px; }
.dh-clone-actions { display: flex; align-items: center; gap: 7px; }
.dh-clone-actions .outline-button, .dh-clone-actions .primary-button { min-height: 34px; padding-inline: 10px; }
.dh-clone-actions .danger-icon { margin-left: auto; width: 34px; height: 34px; color: #d45c68; background: #fff1f2; }
.dh-clone-empty { grid-column: 1 / -1; min-height: 330px; border: 1px dashed #dfe3eb; border-radius: 8px; background: #fff; }
.dh-clone-edit-modal { width: min(94vw, 900px); max-height: 92vh; }
.dh-clone-edit-modal .modal-body { max-height: calc(92vh - 142px); overflow-y: auto; }
.dh-clone-edit-layout { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr); gap: 22px; }
.dh-clone-edit-preview { min-width: 0; }
.dh-clone-edit-preview video, #dh-clone-edit-placeholder { width: 100%; aspect-ratio: 9 / 12; border-radius: 7px; background: #171b22; }
.dh-clone-edit-preview video { display: block; object-fit: cover; }
#dh-clone-edit-placeholder { display: grid; place-items: center; align-content: center; gap: 8px; padding: 18px; color: #9aa3b2; text-align: center; }
#dh-clone-edit-placeholder svg { width: 36px; }
#dh-clone-edit-placeholder strong { max-width: 100%; overflow: hidden; color: #616c80; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
#dh-clone-edit-placeholder span { font-size: 11px; }
.dh-clone-file-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; margin-top: 9px; border: 1px solid #dfe3ea; border-radius: 7px; color: #5d6680; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.dh-clone-file-button:hover { border-color: #8a82e7; color: #6258d7; }
.dh-clone-file-button svg { width: 14px; }
.dh-clone-file-button input { display: none; }
.dh-clone-edit-preview > small { display: block; margin-top: 7px; color: #969faf; font-size: 10px; text-align: center; }
.dh-clone-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 14px; }
.dh-clone-form .full { grid-column: 1 / -1; }
.dh-clone-form label b { color: #df5f6d; }
.dh-clone-preview-modal { width: min(94vw, 820px); max-height: 92vh; }
.dh-clone-preview-modal .modal-body { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(220px, .7fr); gap: 20px; max-height: calc(92vh - 142px); overflow-y: auto; background: #f5f7fa; }
.dh-clone-preview-modal video { width: 100%; max-height: 62vh; aspect-ratio: 9 / 12; border-radius: 7px; background: #11161d; object-fit: contain; }
.dh-clone-preview-info { align-self: center; }
.dh-clone-preview-info p { margin: 0 0 14px; color: #596478; font-size: 13px; line-height: 1.9; white-space: pre-wrap; }
.dh-clone-preview-info div { display: flex; flex-wrap: wrap; gap: 6px; }
.dh-clone-preview-info div span { padding: 5px 7px; border-radius: 4px; color: #5e6590; background: #e9ebf4; font-size: 10px; }
.dh-clone-preview-info > small { display: block; margin-top: 17px; color: #929bac; font-size: 11px; line-height: 1.7; }
@media (max-width: 1050px) { .dh-clone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .dh-clone-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }.dh-clone-toolbar { align-items: stretch; flex-direction: column; }.dh-clone-toolbar .top-search { width: 100%; }.dh-clone-toolbar > span { margin-left: 0; }.dh-clone-grid { grid-template-columns: 1fr; }.dh-clone-edit-layout, .dh-clone-preview-modal .modal-body { grid-template-columns: 1fr; }.dh-clone-edit-preview video, #dh-clone-edit-placeholder { aspect-ratio: 16 / 10; }.dh-clone-form { grid-template-columns: 1fr; }.dh-clone-form .full { grid-column: auto; }.dh-clone-preview-modal video { max-height: 55vh; aspect-ratio: 16 / 10; }.dh-clone-edit-modal, .dh-clone-preview-modal { width: 100%; max-height: 96vh; } }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; }
body { overflow-x: hidden; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, .92fr) minmax(480px, 1.08fr); background: #fff; }
.login-visual { position: relative; overflow: hidden; padding: 48px 8vw 54px 7vw; color: #fff; background: radial-gradient(circle at 15% 4%, rgba(134, 120, 255, .5), transparent 34%), linear-gradient(145deg, #2b2a65 4%, #4341a1 48%, #7e65e9 100%); }
.visual-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.login-visual::after { content: ""; position: absolute; width: 540px; height: 540px; right: -160px; bottom: -180px; border-radius: 50%; background: rgba(31, 24, 114, .26); filter: blur(2px); }
.visual-copy { position: relative; z-index: 2; max-width: 560px; margin-top: clamp(70px, 15vh, 190px); }
.brand-lockup { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; font-size: 22px; }
.brand-lockup-light { color: #fff; }
.brand-lockup-dark { color: var(--ink); }
.brand-mark { width: 29px; height: 29px; display: inline-flex; align-items: flex-end; gap: 3px; padding: 5px 6px; border-radius: 9px; background: linear-gradient(145deg, #73e8dc, #7969ff); box-shadow: 0 6px 16px rgba(52, 44, 149, .24); }
.brand-mark i { display: block; width: 4px; border-radius: 4px; background: #fff; }
.brand-mark i:nth-child(1) { height: 9px; opacity: .72; }.brand-mark i:nth-child(2) { height: 15px; }.brand-mark i:nth-child(3) { height: 11px; opacity: .85; }
.eyebrow { margin: 0 0 18px; color: var(--primary); font: 700 13px var(--font-display); letter-spacing: .18em; }
.login-visual .eyebrow { margin-top: 108px; color: #bfcaff; }
.visual-copy h1 { margin: 0; font-size: clamp(34px, 4.1vw, 62px); line-height: 1.12; letter-spacing: -.075em; font-weight: 800; }
.visual-copy h1 em { color: #c7c2ff; font-style: normal; }
.visual-description { max-width: 440px; margin: 28px 0 34px; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.8; }
.visual-proof { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.78); font-size: 14px; }.proof-dot { width: 8px; height: 8px; border-radius: 50%; background: #7ce7bc; box-shadow: 0 0 0 5px rgba(124,231,188,.14); }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; pointer-events: none; }.orbit-one { width: 520px; height: 520px; right: -150px; top: 18%; }.orbit-two { width: 370px; height: 370px; right: -70px; top: 27%; border-color: rgba(255,255,255,.25); }.orbit-two::after, .orbit-one::after { content: ""; position: absolute; width: 8px; height: 8px; background: #7ce7bc; border-radius: 50%; box-shadow: 0 0 0 5px rgba(124,231,188,.12); }.orbit-one::after { right: 77px; top: 72px; }.orbit-two::after { left: 32px; top: 100px; background: #f8b894; }
.visual-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px; min-width: 180px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 13px; color: #fff; background: rgba(255,255,255,.11); backdrop-filter: blur(16px); box-shadow: 0 14px 30px rgba(32, 27, 119, .18); }.visual-card strong, .visual-card small { display: block; }.visual-card strong { font-size: 14px; }.visual-card small { margin-top: 4px; color: rgba(255,255,255,.63); font-size: 12px; }.visual-card b { margin-left: auto; color: #92e7c2; font: 700 21px var(--font-display); }.visual-card-top { top: 24%; right: 12%; }.visual-card-bottom { right: 20%; bottom: 17%; }.mini-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(201, 195, 255, .26); color: #dad8ff; }.mini-icon.green { background: rgba(120,227,188,.18); color: #90edc1; }.mini-icon svg { width: 16px; }.mini-bars { display: flex; align-items: end; gap: 3px; margin-left: 8px; height: 25px; }.mini-bars i { width: 4px; border-radius: 4px; background: #89e9bf; }.mini-bars i:nth-child(1) { height: 9px; opacity: .5; }.mini-bars i:nth-child(2) { height: 16px; opacity: .7; }.mini-bars i:nth-child(3) { height: 12px; opacity: .8; }.mini-bars i:nth-child(4) { height: 23px; }
.login-panel { display: grid; place-items: center; background: #fff; }.login-panel-inner { width: min(100%, 430px); padding: 38px 32px; }.login-header { display: flex; justify-content: space-between; align-items: center; }.version-pill { padding: 5px 9px; border: 1px solid #e4e7f0; border-radius: 8px; color: #9aa2b5; font: 600 12px var(--font-display); letter-spacing: .06em; }.login-heading { margin-top: 84px; }.login-heading .eyebrow { margin-bottom: 11px; }.login-heading h2 { margin: 0; color: #242b40; font-size: 35px; letter-spacing: -.06em; }.login-heading p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); }.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 34px 0 28px; padding: 4px; border-radius: 10px; background: #f4f5f9; }.login-tab { padding: 10px; border-radius: 7px; color: var(--muted); background: transparent; font-weight: 600; transition: .2s; }.login-tab.active { color: var(--ink); background: #fff; box-shadow: 0 3px 12px rgba(40,45,70,.09); }.login-form label { display: block; margin: 17px 0 8px; color: #444d62; font-size: 14px; font-weight: 600; }.input-wrap { position: relative; display: flex; align-items: center; }.input-wrap > svg { position: absolute; left: 14px; width: 17px; color: #a5adbc; }.input-wrap input { width: 100%; height: 48px; padding: 0 42px; outline: 0; border: 1px solid #e3e7ef; border-radius: 9px; color: var(--ink); background: #fbfcfe; transition: border .2s, box-shadow .2s; }.input-wrap input:focus { border-color: #8e84f9; box-shadow: 0 0 0 3px rgba(101,88,245,.11); }.input-wrap input::placeholder { color: #b4bac7; }.input-action { position: absolute; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; color: #adb4c1; background: transparent; }.input-action svg { width: 16px; }.login-options { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 28px; color: var(--muted); font-size: 14px; }.login-options a { color: var(--primary); font-weight: 600; }.checkbox-label { display: inline-flex !important; align-items: center; gap: 7px; margin: 0 !important; color: var(--muted) !important; font-weight: 400 !important; }.checkbox-label input { accent-color: var(--primary); }.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 20px; border-radius: 9px; color: #fff; background: var(--primary); box-shadow: 0 8px 18px rgba(101,88,245,.21); font-weight: 700; transition: transform .18s, background .18s, box-shadow .18s; }.primary-button:hover { transform: translateY(-1px); background: var(--primary-deep); box-shadow: 0 11px 22px rgba(101,88,245,.28); }.primary-button svg { width: 16px; }.login-submit { width: 100%; min-height: 50px; }.login-hint { margin: 20px 0 0; color: #a0a8b8; font-size: 13px; text-align: center; }.login-hint strong { color: #777f93; }.login-footer { display: flex; justify-content: space-between; margin-top: 88px; color: #b0b6c3; font-size: 13px; }.login-footer span:last-child { display: flex; gap: 14px; }

.app-shell { min-height: 100vh; display: flex; background: var(--bg); }.sidebar { position: sticky; top: 0; z-index: 20; display: flex; flex: 0 0 252px; flex-direction: column; width: 252px; min-height: 100vh; padding: 25px 15px 16px; border-right: 1px solid var(--line); background: #fff; transition: transform .25s ease; }.sidebar-scrim { display: none; }.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 9px; }.icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #7e8798; background: transparent; transition: .2s; }.icon-button:hover { color: var(--primary); background: #f0efff; }.icon-button svg { width: 17px; }.sidebar-close { color: #9ba3b2; }.workspace-switcher { display: flex; align-items: center; gap: 9px; margin: 30px 4px 21px; padding: 11px 10px; border: 1px solid #eaecf2; border-radius: 11px; background: #fbfcff; }.workspace-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #fff; background: #313a60; font-size: 14px; font-weight: 700; }.workspace-switcher div:nth-child(2) { min-width: 0; flex: 1; }.workspace-switcher strong, .workspace-switcher span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.workspace-switcher strong { color: #3c4458; font-size: 14px; }.workspace-switcher span { margin-top: 3px; color: #9ca4b4; font-size: 12px; }.workspace-switcher > svg { width: 15px; color: #9ea6b7; }.main-nav { overflow-y: auto; flex: 1; }.nav-label { margin: 18px 11px 7px; color: #a2a9b7; font: 700 12px var(--font-display); letter-spacing: .12em; }.nav-label:first-child { margin-top: 0; }.nav-item { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px; margin: 2px 0; padding: 0 11px; border-radius: 9px; color: #6f788c; background: transparent; text-align: left; font-size: 14px; font-weight: 500; transition: .18s; }.nav-item > svg { width: 16px; color: #9099aa; }.nav-item:hover { color: var(--primary); background: #f5f4ff; }.nav-item:hover > svg { color: var(--primary); }.nav-item.active { color: var(--primary); background: #efeeff; font-weight: 700; }.nav-item.active > svg { color: var(--primary); }.nav-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--primary); }.nav-chevron { width: 14px !important; margin-left: auto; color: #a7aebb !important; }.nav-new, .nav-admin { margin-left: auto; padding: 3px 5px; border-radius: 4px; color: #e15e70; background: #fff0f3; font: 800 10px var(--font-display); letter-spacing: .04em; }.nav-admin { color: #8378e8; background: #f0efff; }.nav-count { margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 8px; color: #7c86a0; background: #f3f4f8; font: 600 12px var(--font-display); text-align: center; }.sidebar-bottom { margin-top: 18px; }.help-card { display: flex; align-items: center; gap: 8px; padding: 12px 9px; border-radius: 11px; background: #f2f4ff; }.help-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--primary); background: #e1dfff; }.help-icon svg { width: 14px; }.help-card div { flex: 1; min-width: 0; }.help-card strong, .help-card span { display: block; }.help-card strong { color: #4b5269; font-size: 13px; }.help-card span { margin-top: 3px; overflow: hidden; color: #9ba3b4; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.help-card > svg { width: 14px; color: #8e85f4; }.user-menu { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 13px; padding: 10px 7px; border-top: 1px solid var(--line); color: #798296; background: transparent; text-align: left; }.user-avatar, .top-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #f0b489, #c97980); font-weight: 700; }.user-meta { flex: 1; min-width: 0; }.user-meta strong, .user-meta small { display: block; }.user-meta strong { color: #3f4659; font-size: 13px; }.user-meta small { margin-top: 3px; color: #9ba3b2; font-size: 12px; }.user-menu > svg { width: 17px; }.main-area { min-width: 0; flex: 1; }.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 0 clamp(20px, 3.2vw, 48px); border-bottom: 1px solid var(--line); background: rgba(247,248,252,.9); backdrop-filter: blur(14px); }.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 13px; }.mobile-menu { display: none; }.breadcrumb { display: inline-flex; align-items: center; gap: 8px; color: #9da5b5; font-size: 14px; }.breadcrumb svg { width: 13px; }.breadcrumb strong { color: #4c556b; }.top-search { display: flex; align-items: center; gap: 7px; width: min(25vw, 250px); height: 35px; padding: 0 11px; border: 1px solid #e3e6ee; border-radius: 8px; background: #fff; }.top-search svg { width: 15px; color: #9aa3b3; }.top-search input { min-width: 0; width: 100%; padding: 0; outline: 0; border: 0; color: var(--ink); background: transparent; font-size: 13px; }.top-search input::placeholder { color: #b0b6c3; }.plan-pill { display: inline-flex; align-items: center; gap: 7px; height: 35px; padding: 0 11px; border: 1px solid #dde2ef; border-radius: 8px; color: #677187; background: #fff; font-size: 12px; }.plan-pill strong { color: var(--primary); font: 700 13px var(--font-display); }.plan-pill svg { width: 13px; color: #a2aaba; }.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(43,182,121,.11); }.notification-button { position: relative; }.notification-dot { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border: 1px solid var(--bg); border-radius: 50%; background: #ec6c79; }.top-avatar { width: 30px; height: 30px; border: 2px solid #fff; box-shadow: 0 0 0 1px #e2e4ec; font-size: 13px; }

.view-container { max-width: 1540px; margin: 0 auto; padding: 30px clamp(20px, 3.2vw, 48px) 58px; }.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }.page-header h1 { margin: 0; color: #252c40; font-size: clamp(25px, 2.3vw, 34px); letter-spacing: -.065em; }.page-header p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }.page-actions { display: flex; gap: 9px; }.ghost-button, .outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; color: #6f788b; background: #fff; font-size: 14px; font-weight: 600; }.ghost-button:hover, .outline-button:hover { color: var(--primary); border-color: #cbc6ff; background: #fbfaff; }.ghost-button svg, .outline-button svg { width: 15px; }.primary-button.compact { min-height: 40px; padding: 0 14px; font-size: 14px; }
.hero-banner { position: relative; min-height: 222px; display: flex; align-items: center; overflow: hidden; margin-bottom: 22px; padding: 30px 42px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(110deg, #403bb5, #6257e7 58%, #8d78ef); box-shadow: 0 14px 34px rgba(74, 65, 201, .22); }.hero-banner::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(rgba(255,255,255,.7) .8px, transparent .8px); background-size: 13px 13px; mask-image: linear-gradient(90deg, #000, transparent 68%); }.hero-content { position: relative; z-index: 2; max-width: 560px; }.hero-content .eyebrow { color: #c8c3ff; margin-bottom: 12px; }.hero-content h2 { margin: 0; font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -.065em; }.hero-content p { max-width: 510px; margin: 13px 0 23px; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; }.hero-content .primary-button { color: #5046bf; background: #fff; box-shadow: none; }.hero-content .primary-button:hover { background: #f3f1ff; }.hero-visual { position: absolute; z-index: 1; right: 5%; top: 50%; width: 255px; height: 190px; transform: translateY(-50%); }.hero-ring { position: absolute; inset: 13px 14px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; transform: rotate(-16deg) skew(-6deg); }.hero-ring::after { content: ""; position: absolute; inset: 17px 19px; border: 1px dashed rgba(255,255,255,.43); border-radius: 50%; }.hero-orb { position: absolute; width: 74px; height: 74px; left: 93px; top: 60px; display: grid; place-items: center; border: 8px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; background: #7167ea; box-shadow: 0 0 35px rgba(180,185,255,.65); }.hero-orb svg { width: 26px; }.hero-node { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: #fff; background: rgba(255,255,255,.22); }.hero-node svg { width: 13px; }.hero-node.one { right: 17px; top: 26px; }.hero-node.two { left: 22px; bottom: 23px; }.hero-node.three { right: 55px; bottom: 6px; }.hero-line { position: absolute; width: 100px; height: 1px; background: rgba(255,255,255,.35); transform-origin: left; }.hero-line.one { left: 160px; top: 73px; transform: rotate(-19deg); }.hero-line.two { left: 83px; top: 128px; transform: rotate(174deg); }.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 26px; }.stat-card { position: relative; min-height: 126px; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }.stat-card::after { content: ""; position: absolute; right: -23px; bottom: -38px; width: 96px; height: 96px; border-radius: 50%; background: var(--accent-soft, #f2f0ff); }.stat-card .stat-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 31px; height: 31px; margin-bottom: 13px; border-radius: 9px; color: var(--accent, var(--primary)); background: var(--accent-soft, #f1efff); }.stat-icon svg { width: 16px; }.stat-card label { display: block; position: relative; z-index: 1; color: #8991a2; font-size: 13px; }.stat-card strong { display: block; position: relative; z-index: 1; margin-top: 4px; color: #272f42; font: 700 28px var(--font-display); letter-spacing: -.05em; }.stat-card small { position: absolute; z-index: 1; top: 24px; right: 17px; color: #9da5b4; font-size: 12px; }.trend { color: var(--green); font: 600 12px var(--font-display); }.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 16px; }.surface-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }.surface-card-header { display: flex; align-items: center; justify-content: space-between; padding: 19px 20px 13px; }.surface-card-header h3 { margin: 0; color: #343b4d; font-size: 15px; letter-spacing: -.03em; }.surface-card-header p { margin: 4px 0 0; color: #9ca4b2; font-size: 12px; }.surface-card-header a { color: var(--primary); font-size: 13px; font-weight: 600; }.task-list { padding: 0 20px 12px; }.task-row { display: grid; grid-template-columns: minmax(0, 1.65fr) 85px 100px 20px; align-items: center; gap: 12px; min-height: 58px; border-top: 1px solid #f0f1f5; }.task-row > div:first-child { min-width: 0; }.task-row strong, .task-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.task-row strong { color: #424a5e; font-size: 14px; font-weight: 600; }.task-row small { margin-top: 4px; color: #a3aab8; font-size: 12px; }.tag { display: inline-flex; align-items: center; width: max-content; min-height: 23px; padding: 0 7px; border-radius: 5px; font-size: 12px; }.tag-progress { color: #6d60ed; background: #f0efff; }.tag-done { color: #2b9b6c; background: #eaf8f1; }.tag-draft { color: #81899c; background: #f3f4f7; }.task-row > svg { width: 15px; color: #bac1cd; }.monitor-card { padding-bottom: 17px; }.monitor-summary { display: flex; align-items: end; gap: 9px; padding: 0 20px 8px; }.monitor-summary strong { color: #252c41; font: 700 32px var(--font-display); letter-spacing: -.06em; }.monitor-summary span { margin-bottom: 5px; color: var(--green); font: 600 12px var(--font-display); }.chart { position: relative; height: 155px; margin: 0 20px; overflow: hidden; border-bottom: 1px solid #eaedf3; }.chart-grid { position: absolute; inset: 14px 0 0; display: flex; flex-direction: column; justify-content: space-between; }.chart-grid span { width: 100%; height: 1px; background: #f0f1f5; }.chart-bars { position: absolute; inset: 20px 6px 0; display: flex; align-items: end; justify-content: space-between; gap: 8px; }.chart-bar { position: relative; flex: 1; max-width: 23px; border-radius: 5px 5px 0 0; background: #e7e5ff; }.chart-bar.active { background: linear-gradient(to top, #685cf4, #a09aff); }.chart-bar::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; border: 2px solid #fff; border-radius: 50%; background: #7167f6; transform: translate(-50%, 50%); box-shadow: 0 0 0 2px #7167f6; }.chart-labels { display: flex; justify-content: space-between; padding: 8px 26px 0; color: #a4abba; font:  12px var(--font-display); }.channel-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 19px 20px 20px; }.channel-item { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 7px 5px; border-radius: 7px; background: #f8f9fc; }.channel-logo { display: grid; place-items: center; flex: 0 0 auto; width: 23px; height: 23px; border-radius: 7px; color: #fff; background: #5f5af1; font: 700 12px var(--font-display); }.channel-item:nth-child(2) .channel-logo { background: #32b99b; }.channel-item:nth-child(3) .channel-logo { background: #f5a448; }.channel-item:nth-child(4) .channel-logo { background: #2c83dd; }.channel-item div { min-width: 0; }.channel-item strong, .channel-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.channel-item strong { color: #5f687b; font-size: 12px; }.channel-item small { margin-top: 2px; color: #a5acba; font:  11px var(--font-display); }.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 14px; }.section-heading h2 { margin: 0; color: #363e51; font-size: 17px; letter-spacing: -.04em; }.section-heading a { color: var(--primary); font-size: 13px; font-weight: 600; }.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }.capability-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }.capability-image { height: 112px; position: relative; overflow: hidden; background-size: cover; background-position: center; }.capability-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(24,26,48,.28)); }.capability-image.one { background-image: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=760&q=80"); }.capability-image.two { background-image: url("https://images.unsplash.com/photo-1523726491678-bf852e717f6a?auto=format&fit=crop&w=760&q=80"); }.capability-image.three { background-image: url("https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=760&q=80"); }.capability-badge { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 4px 7px; border-radius: 5px; color: #fff; background: rgba(30,33,69,.54); font-size: 11px; backdrop-filter: blur(5px); }.capability-body { padding: 14px 15px 15px; }.capability-body h3 { margin: 0; color: #3e4659; font-size: 14px; }.capability-body p { height: 35px; margin: 7px 0 13px; overflow: hidden; color: #9aa2b1; font-size: 12px; line-height: 1.7; }.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; color: var(--primary); background: transparent; font-size: 13px; font-weight: 700; }.text-button svg { width: 13px; }

.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 17px 19px; border-bottom: 1px solid var(--line); }.filter-input, .filter-select { height: 36px; padding: 0 11px; outline: 0; border: 1px solid #e5e8ef; border-radius: 7px; color: #5e677b; background: #fbfcfe; font-size: 13px; }.filter-input { width: min(270px, 100%); }.filter-select { min-width: 112px; }.filter-spacer { flex: 1; }.table-wrap { overflow-x: auto; }.data-table { width: 100%; min-width: 760px; border-collapse: collapse; }.data-table th { padding: 14px 19px; color: #9aa2b2; background: #fbfcfe; text-align: left; font-size: 12px; font-weight: 600; }.data-table td { padding: 15px 19px; border-top: 1px solid #eff1f5; color: #5c6578; font-size: 13px; }.data-table td strong { color: #3d465b; font-weight: 600; }.data-table td small { display: block; margin-top: 3px; color: #a4abb8; font-size: 12px; }.table-check { width: 15px; height: 15px; accent-color: var(--primary); }.table-actions { display: flex; gap: 10px; }.table-action { padding: 0; color: var(--primary); background: transparent; font-size: 13px; font-weight: 600; }.table-action.danger { color: #df6777; }.status-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 5px; font-size: 12px; }.status-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.status-chip.green { color: #299d70; background: #eaf8f1; }.status-chip.purple { color: #6e62ea; background: #f0efff; }.status-chip.gray { color: #929aab; background: #f2f3f6; }.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 15px 19px; color: #a0a8b7; font-size: 12px; }.pagination { display: flex; gap: 5px; }.page-button { display: grid; place-items: center; min-width: 27px; height: 27px; border: 1px solid #e4e7ef; border-radius: 6px; color: #8992a4; background: #fff; font:  13px var(--font-display); }.page-button.active { border-color: var(--primary); color: #fff; background: var(--primary); }.split-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 16px; }.form-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }.form-card h3 { margin: 0; color: #30384c; font-size: 16px; }.form-card > p { margin: 7px 0 22px; color: #9ba3b2; font-size: 13px; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }.form-field.full { grid-column: 1 / -1; }.form-field label { display: block; margin-bottom: 8px; color: #5d667a; font-size: 13px; font-weight: 600; }.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 0 11px; outline: 0; border: 1px solid #e3e7ef; border-radius: 8px; color: #4b5569; background: #fbfcfe; font-size: 14px; }.form-field input, .form-field select { height: 42px; }.form-field textarea { min-height: 106px; padding-top: 11px; resize: vertical; }.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: #8f86f5; box-shadow: 0 0 0 3px rgba(101,88,245,.1); }.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; padding-top: 17px; border-top: 1px solid #eff1f5; }.tip-card { padding: 21px; border-radius: var(--radius-lg); color: #fff; background: #252c55; }.tip-card h3 { margin: 0; font-size: 15px; }.tip-card p { margin: 10px 0 22px; color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.8; }.tip-step { display: flex; gap: 9px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }.tip-step > b { display: grid; place-items: center; flex: 0 0 auto; width: 21px; height: 21px; border-radius: 50%; color: #7167f4; background: #e6e2ff; font: 700 12px var(--font-display); }.tip-step strong, .tip-step span { display: block; }.tip-step strong { font-size: 13px; }.tip-step span { margin-top: 3px; color: rgba(255,255,255,.55); font-size: 12px; }.admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 17px; }.admin-stat { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }.admin-stat label { color: #929aaa; font-size: 12px; }.admin-stat strong { display: block; margin-top: 9px; color: #283044; font: 700 26px var(--font-display); }.admin-stat small { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--green); font-size: 12px; }.admin-stat small svg { width: 12px; }.admin-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 16px; }.activity-list { padding: 0 20px 15px; }.activity-item { display: flex; gap: 10px; padding: 13px 0; border-top: 1px solid #eff1f5; }.activity-dot { width: 7px; height: 7px; margin: 4px 1px 0; border-radius: 50%; background: #72d1aa; box-shadow: 0 0 0 4px #e8f8f0; }.activity-item p { margin: 0; color: #616a7d; font-size: 13px; line-height: 1.5; }.activity-item small { display: block; margin-top: 4px; color: #a6adba; font-size: 11px; }.permission-list { padding: 0 20px 18px; }.permission-item { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-top: 1px solid #eff1f5; }.permission-item div { display: flex; align-items: center; gap: 9px; }.permission-item span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--primary); background: #f0efff; }.permission-item svg { width: 14px; }.permission-item strong { display: block; color: #5e677a; font-size: 13px; }.permission-item small { display: block; margin-top: 3px; color: #a5acba; font-size: 11px; }.toggle { position: relative; width: 31px; height: 17px; padding: 0; border-radius: 20px; background: #dfe3eb; transition: .2s; }.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: .2s; }.toggle.on { background: var(--primary); }.toggle.on::after { left: 17px; }.empty-state { display: grid; place-items: center; min-height: 300px; padding: 40px; text-align: center; }.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 15px; border-radius: 14px; color: var(--primary); background: #f0efff; }.empty-icon svg { width: 22px; }.empty-state h3 { margin: 0; color: #3e4659; font-size: 15px; }.empty-state p { max-width: 320px; margin: 8px 0 18px; color: #9ba3b2; font-size: 13px; line-height: 1.7; }

.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(22, 27, 51, .44); backdrop-filter: blur(5px); }.modal { width: min(100%, 520px); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 25px 70px rgba(20,22,58,.22); }.modal-header { display: flex; align-items: start; justify-content: space-between; padding: 21px 23px 17px; border-bottom: 1px solid var(--line); }.modal-header h3 { margin: 0; color: #2f374a; font-size: 17px; }.modal-header p { margin: 6px 0 0; color: #9aa2b1; font-size: 12px; }.modal-body { padding: 21px 23px; }.modal-close { width: 30px; height: 30px; }.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 15px 23px; border-top: 1px solid var(--line); background: #fbfcfe; }.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; flex-direction: column; align-items: end; gap: 8px; }.toast { display: flex; align-items: center; gap: 9px; min-width: 230px; padding: 12px 14px; border: 1px solid #dfe3ef; border-radius: 9px; color: #566075; background: #fff; box-shadow: 0 12px 30px rgba(31,36,70,.15); font-size: 14px; animation: toast-in .25s ease both; }.toast svg { width: 16px; color: var(--green); }.toast.error svg { color: #df6777; }@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.table-link { max-width: 280px; overflow: hidden; padding: 0; border: 0; color: #3d46c9; background: transparent; text-align: left; text-overflow: ellipsis; white-space: nowrap; font: 600 13px var(--font); }.table-link:hover { color: var(--primary); text-decoration: underline; }.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 0; color: var(--primary); background: transparent; font-size: 13px; font-weight: 700; }.back-link svg { width: 14px; }.task-detail-hero { display: flex; align-items: stretch; justify-content: space-between; gap: 22px; min-height: 180px; margin-bottom: 16px; padding: 28px 30px; overflow: hidden; border: 1px solid #dedcff; border-radius: var(--radius-lg); background: linear-gradient(120deg, #f3f1ff, #f8f9ff 62%, #eff8ff); }.task-detail-main { min-width: 0; }.task-detail-main h2 { margin: 14px 0 8px; color: #2d3550; font-size: 24px; letter-spacing: -.05em; }.task-detail-main p { max-width: 680px; margin: 0; color: #7b8499; font-size: 14px; line-height: 1.7; }.task-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 22px; color: #717b90; font-size: 12px; }.task-meta span { display: inline-flex; align-items: center; gap: 5px; }.task-meta svg { width: 14px; color: #8075ef; }.task-score { display: flex; flex: 0 0 160px; flex-direction: column; justify-content: center; align-items: flex-end; padding-left: 24px; border-left: 1px solid rgba(101,88,245,.14); }.task-score span { color: #8a92a5; font-size: 12px; }.task-score strong { margin-top: 7px; color: #4f47cf; font: 700 34px var(--font-display); letter-spacing: -.06em; }.task-score small { margin-top: 5px; color: #9aa2b3; font-size: 11px; text-align: right; }.task-progress { margin-bottom: 16px; padding: 21px 23px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }.detail-section-heading { display: flex; justify-content: space-between; gap: 12px; }.detail-section-heading h3 { margin: 0; color: #343c50; font-size: 15px; }.detail-section-heading p { margin: 5px 0 0; color: #9aa2b1; font-size: 12px; }.progress-label { color: var(--primary); font: 700 14px var(--font-display); }.progress-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 25px; }.progress-steps::before { content: ""; position: absolute; top: 14px; left: 14px; right: 14px; height: 1px; background: #e5e7ef; }.progress-step { position: relative; z-index: 1; display: flex; gap: 9px; min-width: 0; }.progress-step > span { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border: 1px solid #e2e5ee; border-radius: 50%; color: #a0a8b7; background: #fff; font: 700 13px var(--font-display); }.progress-step.complete > span { border-color: #b8ecd5; color: #279c6d; background: #eaf9f1; }.progress-step.active > span { border-color: #b5b0ff; color: #fff; background: var(--primary); box-shadow: 0 0 0 4px #efeeff; }.progress-step strong, .progress-step small { display: block; }.progress-step strong { margin-top: 3px; color: #5d6679; font-size: 13px; }.progress-step small { margin-top: 4px; color: #a2a9b7; font-size: 11px; line-height: 1.4; }.detail-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); gap: 16px; }.detail-count { color: var(--primary); font: 700 13px var(--font-display); }.question-list { padding: 0 20px 14px; }.question-item { display: flex; align-items: center; gap: 10px; min-height: 59px; border-top: 1px solid #eff1f5; }.question-item > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: #746bf0; background: #f1efff; font: 700 12px var(--font-display); }.question-item div { flex: 1; min-width: 0; }.question-item strong, .question-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.question-item strong { color: #596277; font-size: 13px; }.question-item small { margin-top: 4px; color: #a3aab8; font-size: 11px; }.question-item > svg { width: 14px; color: #b7bdc9; }.platform-list { padding: 0 20px 14px; }.platform-row { display: flex; align-items: center; gap: 9px; min-height: 54px; border-top: 1px solid #eff1f5; }.platform-logo { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border-radius: 8px; color: #fff; background: #5f5af1; font: 700 13px var(--font-display); }.platform-logo.yuanbao { background: #2eb79a; }.platform-logo.kimi { background: #2c83dd; }.platform-logo.tongyi { background: #ed9b43; }.platform-row div { flex: 1; min-width: 0; }.platform-row strong, .platform-row small { display: block; }.platform-row strong { color: #596277; font-size: 13px; }.platform-row small { margin-top: 3px; color: #a3aab8; font-size: 11px; }.platform-status { padding: 4px 7px; border-radius: 5px; font-size: 11px; }.platform-status.ready { color: #299d70; background: #eaf8f1; }.platform-status.waiting { color: #9ca4b4; background: #f2f3f6; }.recommendation-strip { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 15px 18px; border: 1px solid #e1defe; border-radius: var(--radius-md); background: #f5f3ff; }.recommendation-icon { display: grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; border-radius: 9px; color: #7166ed; background: #e3e0ff; }.recommendation-icon svg { width: 16px; }.recommendation-strip div { flex: 1; min-width: 0; }.recommendation-strip strong { color: #4c556a; font-size: 13px; }.recommendation-strip p { margin: 4px 0 0; color: #898fa2; font-size: 12px; line-height: 1.5; }.recommendation-strip .text-button { flex: 0 0 auto; }
.monitor-loading { display: grid; min-height: 330px; place-items: center; align-content: center; gap: 10px; color: #6b7488; }.monitor-loading small { color: #a2a9b7; font-size: 12px; }.loading-spinner { width: 28px; height: 28px; border: 3px solid #e9e8ff; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }@keyframes spin { to { transform: rotate(360deg); } }.monitor-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 16px; }.monitor-overview-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 108px; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }.monitor-overview-card::after { content: ""; position: absolute; right: -28px; bottom: -38px; width: 105px; height: 105px; border-radius: 50%; opacity: .6; background: var(--accent-soft); }.monitor-overview-icon { position: relative; z-index: 1; display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border-radius: 10px; color: var(--accent); background: var(--accent-soft); }.monitor-overview-icon svg { width: 17px; }.monitor-overview-card div { position: relative; z-index: 1; }.monitor-overview-card label, .monitor-overview-card small { display: block; color: #8d95a6; font-size: 12px; }.monitor-overview-card strong { display: block; margin: 5px 0 4px; color: #2c3448; font: 700 25px var(--font-display); letter-spacing: -.05em; }.monitor-overview-card small { white-space: nowrap; }.positive-trend { color: var(--green) !important; font: 600 12px var(--font-display); }.accent-purple { --accent: #6558f5; --accent-soft: #efeeff; }.accent-green { --accent: #2db983; --accent-soft: #e9faf3; }.accent-orange { --accent: #e89440; --accent-soft: #fff3e3; }.accent-cyan { --accent: #3ea8d7; --accent-soft: #eaf8fc; }.monitor-chart-card { margin-bottom: 16px; }.monitor-toolbar { align-items: center; }.range-switch { display: inline-flex; gap: 3px; padding: 3px; border-radius: 7px; background: #f2f3f8; }.range-switch button { min-width: 42px; height: 27px; border-radius: 5px; color: #8b93a3; background: transparent; font-size: 12px; }.range-switch button.active { color: var(--primary); background: #fff; box-shadow: 0 2px 7px rgba(36,41,77,.08); font-weight: 700; }.monitor-chart { display: flex; height: 250px; padding: 11px 22px 20px; }.monitor-chart-y { display: flex; flex: 0 0 32px; flex-direction: column; justify-content: space-between; padding: 2px 7px 25px 0; color: #a4abba; font:  11px var(--font-display); text-align: right; }.monitor-chart-main { position: relative; flex: 1; min-width: 0; }.monitor-grid-lines { position: absolute; inset: 2px 0 25px; display: flex; flex-direction: column; justify-content: space-between; }.monitor-grid-lines i { width: 100%; height: 1px; background: #eef0f5; }.monitor-bars { position: absolute; inset: 2px 0 0; display: flex; align-items: end; justify-content: space-around; gap: 10px; }.monitor-bar-wrap { position: relative; display: flex; flex: 1; height: 100%; flex-direction: column; align-items: center; justify-content: end; }.monitor-bar-value { margin-bottom: 4px; color: #8f96a6; font:  11px var(--font-display); }.monitor-bar { display: block; width: min(30px, 65%); min-height: 10px; border-radius: 5px 5px 2px 2px; background: #dcdafd; }.monitor-bar.highlight { background: linear-gradient(180deg, #a09aff, #675cf3); }.monitor-bar-wrap small { position: absolute; bottom: -18px; color: #a4abba; font:  11px var(--font-display); white-space: nowrap; }.monitor-content-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 16px; }.platform-metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 20px 20px; }.platform-metric-card { padding: 14px; border: 1px solid #edf0f5; border-radius: 10px; background: #fbfcfe; }.platform-metric-top { display: flex; align-items: center; justify-content: space-between; }.platform-metric-top .platform-logo.purple { background: #6159e9; }.platform-metric-top .platform-logo.green { background: #2eb79a; }.platform-metric-top .platform-logo.blue { background: #2c83dd; }.platform-metric-top .platform-logo.orange { background: #ed9b43; }.platform-metric-top .platform-logo.black { background: #3a3d4e; }.platform-metric-top .platform-logo.cyan { background: #36a9c7; }.platform-metric-card > strong { display: block; margin: 12px 0 10px; color: #5a6377; font-size: 13px; }.platform-metric-values { display: flex; align-items: end; gap: 10px; }.platform-metric-values div b { display: block; color: #2e374b; font: 700 17px var(--font-display); }.platform-metric-values div small { display: block; margin-top: 3px; color: #a2aab8; font-size: 11px; }.platform-metric-values > .positive-trend { margin-left: auto; margin-bottom: 2px; font-size: 11px; }.metric-progress { height: 4px; margin-top: 13px; overflow: hidden; border-radius: 4px; background: #e9ebf2; }.metric-progress i { display: block; height: 100%; border-radius: 4px; background: #7770ef; }.query-list { padding: 0 20px 16px; }.query-row { display: flex; align-items: flex-start; gap: 9px; padding: 12px 0; border-top: 1px solid #eff1f5; }.query-status { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; }.query-status.hit { color: #2b9e71; background: #e9f8f0; }.query-status.pending { color: #e89044; background: #fff3e5; }.query-status svg { width: 13px; }.query-row div { min-width: 0; }.query-row strong, .query-row small { display: block; }.query-row strong { overflow: hidden; color: #5c6579; font-size: 12px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }.query-row small { margin-top: 4px; color: #a3aab8; font-size: 11px; }
.knowledge-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 16px; }.knowledge-summary article { display: flex; align-items: center; gap: 12px; min-height: 100px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }.summary-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; }.summary-icon svg { width: 17px; }.summary-icon.purple { color: #695ef2; background: #efeeff; }.summary-icon.green { color: #2caa78; background: #e9faf3; }.summary-icon.orange { color: #e69340; background: #fff3e4; }.knowledge-summary label, .knowledge-summary small { display: block; color: #8d95a6; font-size: 12px; }.knowledge-summary strong { display: block; margin: 5px 0 3px; color: #2c3448; font: 700 25px var(--font-display); letter-spacing: -.05em; }.knowledge-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }.knowledge-search { display: flex; align-items: center; gap: 8px; width: min(290px, 100%); height: 36px; padding: 0 11px; border: 1px solid #e2e6ef; border-radius: 8px; background: #fbfcfe; }.knowledge-search svg { width: 15px; color: #9aa3b3; }.knowledge-search input { width: 100%; min-width: 0; padding: 0; outline: 0; border: 0; color: #4c5568; background: transparent; font-size: 13px; }.knowledge-search input::placeholder { color: #a9b0bd; }.knowledge-filters { display: flex; gap: 4px; }.knowledge-filter { min-height: 28px; padding: 0 10px; border-radius: 6px; color: #8b93a3; background: transparent; font-size: 12px; }.knowledge-filter.active { color: var(--primary); background: #f0efff; font-weight: 700; }.knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px; }.knowledge-card { min-width: 0; padding: 16px; border: 1px solid #eaedf3; border-radius: 11px; background: #fbfcfe; transition: border .2s, box-shadow .2s, transform .2s; }.knowledge-card:hover { border-color: #d4d0ff; box-shadow: 0 8px 20px rgba(52,47,130,.08); transform: translateY(-1px); }.knowledge-card-top { display: flex; align-items: center; justify-content: space-between; }.knowledge-type { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 5px; font-size: 11px; }.knowledge-type svg { width: 12px; }.knowledge-type.purple { color: #685cf0; background: #efeeff; }.knowledge-type.green { color: #2eaa78; background: #e9faf3; }.knowledge-type.orange { color: #e18a38; background: #fff3e4; }.knowledge-more { width: 27px; height: 27px; }.knowledge-card h3 { margin: 19px 0 7px; overflow: hidden; color: #4d566b; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }.knowledge-card > p { height: 38px; margin: 0; overflow: hidden; color: #8f97a7; font-size: 12px; line-height: 1.8; }.knowledge-card-footer { display: flex; align-items: end; justify-content: space-between; gap: 7px; margin-top: 18px; }.knowledge-tags { display: flex; flex-wrap: wrap; gap: 4px; }.knowledge-tags span { padding: 3px 5px; border-radius: 4px; color: #8a92a4; background: #f0f2f7; font-size: 11px; }.knowledge-card-footer > small { color: #a3aab7; font-size: 11px; white-space: nowrap; }.knowledge-loading { grid-column: 1 / -1; display: grid; min-height: 250px; place-items: center; align-content: center; gap: 10px; color: #8d95a6; font-size: 13px; }.knowledge-empty { grid-column: 1 / -1; display: grid; min-height: 260px; place-items: center; align-content: center; text-align: center; }.knowledge-empty .empty-icon { margin-bottom: 14px; }.knowledge-empty h3 { margin: 0; color: #4c556a; font-size: 15px; }.knowledge-empty p { max-width: 320px; margin: 8px 0 17px; color: #9aa2b1; font-size: 12px; line-height: 1.7; }
.knowledge-filter-panel { display: flex; align-items: center; gap: 9px; padding: 18px 20px 15px; }.knowledge-filter-panel > label { color: #697286; font-size: 13px; }.knowledge-filter-panel .filter-input { width: 200px; }.knowledge-action-bar { display: flex; align-items: center; gap: 9px; padding: 0 20px 16px; }.danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 8px; color: #fff; background: #f06972; font-size: 14px; font-weight: 700; }.danger-button:hover { background: #dc555f; }.danger-button svg { width: 15px; }.knowledge-result-count { color: #9da5b4; font-size: 12px; }.knowledge-data-table td { height: 58px; }.knowledge-title-link { max-width: 320px; }.knowledge-type-pill { display: inline-flex; min-width: 35px; justify-content: center; padding: 4px 8px; border-radius: 5px; color: #6a60e9; background: #efeeff; font-size: 12px; }.knowledge-type-pill.file { color: #2d9c70; background: #e9faf3; }.knowledge-detail-modal .modal-body { max-height: 400px; overflow-y: auto; }.knowledge-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }.knowledge-detail-tags span { padding: 4px 7px; border-radius: 5px; color: #6b61ea; background: #efeeff; font-size: 12px; }.knowledge-detail-content { min-height: 140px; padding: 17px; border: 1px solid #edf0f5; border-radius: 8px; color: #5c6579; background: #fbfcfe; font-size: 14px; line-height: 1.9; white-space: pre-wrap; }
.knowledge-profile-modal { width: min(94vw, 820px); max-height: 90vh; }.knowledge-profile-body { overflow-y: auto; padding: 20px 28px 28px; }.profile-basic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }.source-tabs { display: flex; gap: 22px; margin: 21px 0 10px; border-bottom: 1px solid #e9ebf1; }.source-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 39px; padding: 0 2px; border-bottom: 2px solid transparent; color: #7e8799; background: transparent; font-size: 13px; }.source-tabs button svg { width: 14px; }.source-tabs button.active { border-color: var(--primary); color: var(--primary); font-weight: 700; }.source-panel { display: none; }.source-panel.active { display: block; }.source-panel > textarea { width: 100%; min-height: 145px; padding: 13px; outline: 0; border: 1px solid #e2e6ee; border-radius: 8px; color: #4f586c; background: #fbfcfe; font:  13px/1.8 var(--font); resize: vertical; }.source-panel > textarea:focus { border-color: #8f86f5; box-shadow: 0 0 0 3px rgba(101,88,245,.1); }.source-hint { display: flex; justify-content: space-between; margin-top: 7px; color: #9ba3b2; font-size: 11px; }.source-hint #knowledge-min-hint { color: #e86875; }.source-hint b { color: #e86875; font-weight: 500; }.url-entry { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 13px; border: 1px solid #e2e6ee; border-radius: 8px; background: #fbfcfe; }.url-entry svg { width: 16px; color: #9ca4b4; }.url-entry input { width: 100%; border: 0; outline: 0; color: #4f586c; background: transparent; }.source-panel > p { margin: 8px 0 0; color: #9da5b4; font-size: 11px; }.file-drop { display: grid; min-height: 135px; place-items: center; align-content: center; gap: 7px; border: 1px dashed #cfd3e3; border-radius: 8px; color: #6d768b; background: #fafbfe; cursor: pointer; }.file-drop:hover { border-color: #8d84f5; background: #f8f7ff; }.file-drop > svg { width: 24px; color: var(--primary); }.file-drop strong { font-size: 13px; }.file-drop span { color: #a1a9b8; font-size: 11px; }.file-drop input { display: none; }.profile-divider { display: flex; align-items: baseline; gap: 9px; margin: 25px 0 12px; padding-bottom: 10px; border-bottom: 1px solid #eceef3; }.profile-divider span { color: #3f485c; font-size: 14px; font-weight: 700; }.profile-divider small { color: #9ea5b4; font-size: 11px; }.profile-field { display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: start; margin-top: 11px; }.profile-field label { padding-top: 10px; color: #5d667a; font-size: 13px; text-align: right; }.profile-field textarea { width: 100%; min-height: 66px; padding: 9px 11px; outline: 0; border: 1px solid #e2e6ee; border-radius: 7px; color: #4f586c; background: #fff; font:  13px/1.65 var(--font); resize: vertical; }.profile-field textarea:focus { border-color: #8f86f5; box-shadow: 0 0 0 3px rgba(101,88,245,.1); }.knowledge-detail-fields { display: grid; gap: 10px; }.knowledge-detail-fields > div { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid #eef0f4; }.knowledge-detail-fields strong { color: #5d667a; font-size: 12px; }.knowledge-detail-fields p { margin: 0; color: #687185; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }

@media (max-width: 1180px) { .sidebar { flex-basis: 224px; width: 224px; }.hero-banner { padding-left: 29px; }.hero-visual { right: -2%; transform: translateY(-50%) scale(.83); }.stat-grid { grid-template-columns: repeat(2, 1fr); }.capability-grid { grid-template-columns: repeat(2, 1fr); }.capability-card:last-child { display: none; }.top-search { width: 180px; } }
@media (max-width: 900px) { .login-screen { grid-template-columns: 1fr; }.login-visual { display: none; }.login-panel-inner { padding: 28px 28px 36px; }.login-heading { margin-top: 68px; }.sidebar { position: fixed; left: 0; top: 0; height: 100vh; transform: translateX(-102%); box-shadow: 10px 0 30px rgba(33,36,64,.14); }.sidebar.open { transform: translateX(0); }.sidebar-scrim { position: fixed; inset: 0; z-index: 19; display: block; visibility: hidden; border: 0; opacity: 0; background: rgba(30, 34, 53, .3); transition: opacity .2s, visibility .2s; pointer-events: none; }.app-shell.sidebar-open .sidebar-scrim { visibility: visible; opacity: 1; pointer-events: auto; }.mobile-menu { display: inline-grid; }.topbar { min-height: 66px; }.top-search { display: none; }.split-layout, .dashboard-grid, .admin-layout { grid-template-columns: 1fr; }.tip-card { order: -1; }.admin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .view-container { padding: 22px 15px 38px; }.topbar { padding: 0 15px; }.plan-pill { display: none; }.topbar-actions { gap: 5px; }.page-header { display: block; }.page-actions { margin-top: 15px; }.hero-banner { min-height: 265px; padding: 27px 23px; align-items: start; }.hero-content { max-width: 78%; }.hero-content h2 { font-size: 25px; }.hero-visual { right: -26%; bottom: -8px; top: auto; transform: scale(.72); transform-origin: bottom right; }.stat-grid { gap: 8px; }.stat-card { min-height: 114px; padding: 15px; }.stat-card strong { font-size: 25px; }.stat-card small { display: none; }.capability-grid { grid-template-columns: 1fr; }.capability-card:last-child { display: block; }.channel-list { grid-template-columns: repeat(2, 1fr); }.task-row { grid-template-columns: minmax(0, 1fr) 75px 20px; }.task-row .task-date { display: none; }.login-panel-inner { padding-inline: 22px; }.login-footer { margin-top: 65px; }.form-grid { grid-template-columns: 1fr; }.form-field.full { grid-column: auto; }.admin-grid { gap: 8px; }.admin-stat { padding: 14px; }.admin-stat strong { font-size: 22px; }.toast-region { right: 15px; bottom: 15px; left: 15px; }.toast { width: 100%; }.task-detail-hero { display: block; padding: 22px 20px; }.task-score { align-items: flex-start; padding: 18px 0 0; margin-top: 18px; border-top: 1px solid rgba(101,88,245,.14); border-left: 0; }.task-score small { text-align: left; }.progress-steps { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }.progress-steps::before { display: none; }.detail-grid { grid-template-columns: 1fr; }.recommendation-strip { align-items: start; flex-wrap: wrap; }.recommendation-strip .text-button { margin-left: 43px; } }
@media (max-width: 1180px) { .monitor-overview { grid-template-columns: repeat(2, 1fr); }.monitor-content-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .monitor-overview { gap: 8px; }.monitor-overview-card { min-height: 101px; padding: 13px; gap: 8px; }.monitor-overview-icon { width: 29px; height: 29px; }.monitor-overview-card strong { font-size: 21px; }.monitor-overview-card label, .monitor-overview-card small { font-size: 11px; }.monitor-toolbar { align-items: flex-start; gap: 11px; flex-direction: column; }.monitor-chart { height: 210px; padding-inline: 13px; }.monitor-bar { width: min(24px, 80%); }.monitor-bar-value { font-size: 10px; }.platform-metric-grid { grid-template-columns: repeat(2, 1fr); padding-inline: 13px; }.platform-metric-card { padding: 11px; }.platform-metric-values { gap: 5px; }.platform-metric-values div b { font-size: 15px; }.query-list { padding-inline: 13px; } }

.settings-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 16px; align-items: start; }
.settings-card { overflow: hidden; }
.settings-dh-card { grid-column: 1 / -1; }
.settings-card .surface-card-header { padding-bottom: 17px; }
.settings-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 0 20px 22px; }
.settings-form .form-field { margin: 0; }
.settings-form .form-field.full { grid-column: 1 / -1; }
.settings-form .form-field label { display: block; margin-bottom: 8px; color: #596277; font-size: 13px; font-weight: 700; }
.settings-form .form-field input, .settings-form .form-field textarea { width: 100%; outline: 0; border: 1px solid #e1e5ee; border-radius: 8px; color: var(--ink); background: #fbfcfe; font-size: 14px; transition: border .2s, box-shadow .2s; }
.settings-form .form-field input { height: 42px; padding: 0 12px; }
.settings-form .form-field textarea { min-height: 132px; padding: 11px 12px; resize: vertical; font:  13px/1.6 Consolas, "Courier New", monospace; }
.settings-form .form-field input:focus, .settings-form .form-field textarea:focus { border-color: #8e84f9; box-shadow: 0 0 0 3px rgba(101,88,245,.1); }
.settings-form .form-field small { display: block; margin-top: 6px; color: #9ba3b3; font-size: 12px; line-height: 1.5; }
.settings-check { display: inline-flex; grid-column: 1 / -1; align-items: center; gap: 7px; color: #7d8698; font-size: 13px; }
.settings-check input { accent-color: var(--primary); }
.settings-loading { display: grid; min-height: 300px; place-items: center; align-content: center; gap: 10px; color: #697387; }
.settings-loading small { color: #a0a8b7; font-size: 12px; }
.settings-channel-list { padding: 0 20px; }
.settings-channel-row { display: flex; align-items: center; gap: 10px; min-height: 61px; border-top: 1px solid #eff1f5; }
.settings-channel-icon { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; color: #6d65e7; background: #efeeff; }
.settings-channel-icon svg { width: 15px; }
.settings-channel-row > div { flex: 1; min-width: 0; }
.settings-channel-row strong, .settings-channel-row small { display: block; }
.settings-channel-row strong { color: #525b70; font-size: 13px; }
.settings-channel-row small { margin-top: 4px; overflow: hidden; color: #a0a8b6; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.settings-channel-footer { display: flex; align-items: flex-start; gap: 8px; margin: 14px 20px 20px; padding: 12px; border: 1px solid #e9e7ff; border-radius: 9px; color: #858ca1; background: #f8f7ff; font-size: 12px; line-height: 1.5; }
.settings-channel-footer > svg { flex: 0 0 auto; width: 14px; color: var(--primary); }
.settings-channel-footer span { flex: 1; }
.settings-channel-footer .text-button { flex: 0 0 auto; padding: 0; font-size: 12px; }
.settings-layout > .settings-card:first-child, .settings-channel-card { grid-column: 1 / -1; }
.settings-integration-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 20px; }
.settings-integration-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 72px; padding: 10px 12px; border-top: 1px solid #edf0f4; }
.settings-integration-row:nth-child(odd) { padding-left: 0; }
.settings-integration-row:nth-child(even) { border-left: 1px solid #edf0f4; }
.settings-integration-main { min-width: 0; }
.settings-integration-main strong, .settings-integration-main small, .settings-integration-meta small { display: block; }
.settings-integration-main strong { color: #4b5468; font-size: 13px; }
.settings-integration-main small { margin-top: 4px; overflow: hidden; color: #969ead; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.settings-integration-meta { min-width: 74px; text-align: right; }
.settings-integration-meta small { max-width: 130px; margin-top: 4px; overflow: hidden; color: #9ba3b2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.settings-integration-row .outline-button { min-height: 32px; padding-inline: 9px; font-size: 11px; }
.settings-channel-empty { grid-column: 1 / -1; padding: 30px; color: #9ba3b2; font-size: 12px; text-align: center; }
.channel-integration-modal { width: min(94vw, 760px); max-height: 92vh; }
.channel-integration-modal .modal-body { max-height: calc(92vh - 142px); overflow-y: auto; }
.channel-config-notice, .channel-test-result { display: flex; align-items: flex-start; gap: 8px; padding: 11px 12px; border: 1px solid #e7e5fb; border-radius: 8px; color: #79759d; background: #faf9ff; font-size: 11px; line-height: 1.6; }
.channel-config-notice { margin-bottom: 16px; }
.channel-config-notice svg, .channel-test-result svg { flex: 0 0 auto; width: 14px; margin-top: 1px; color: #7167e9; }
.channel-protocol-notice { display: flex; align-items: flex-start; gap: 9px; margin: -7px 0 16px; padding: 11px 12px; border: 1px solid #cfe8dc; border-radius: 8px; color: #4e6f61; background: #f1faf5; }
.channel-protocol-notice > svg { flex: 0 0 auto; width: 14px; margin-top: 2px; color: #2e9169; }
.channel-protocol-notice strong, .channel-protocol-notice span { display: block; }
.channel-protocol-notice strong { font-size: 12px; }
.channel-protocol-notice span { margin-top: 4px; font-size: 11px; line-height: 1.6; }
.channel-integration-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 13px; }
.channel-integration-form .full { grid-column: 1 / -1; }
.channel-integration-form .form-field > small { display: block; margin-top: 6px; color: #9ba3b2; font-size: 11px; line-height: 1.5; }
.channel-test-result { margin-top: 16px; border-color: #e4e7ee; color: #7b8496; background: #f8f9fb; }
.channel-test-result.ready { border-color: #cde8dc; color: #497562; background: #f0faf5; }
.channel-test-result.ready svg { color: #32986d; }
.channel-test-result strong, .channel-test-result small { display: block; }
.channel-test-result small { margin-top: 3px; color: #719383; }

@media (max-width: 900px) { .settings-layout { grid-template-columns: 1fr; }.settings-integration-list { grid-template-columns: 1fr; }.settings-integration-row { padding-inline: 0; }.settings-integration-row:nth-child(even) { border-left: 0; } }
@media (max-width: 620px) { .settings-form { grid-template-columns: 1fr; padding-inline: 14px; }.settings-form .form-field.full, .settings-check { grid-column: auto; }.settings-channel-list, .settings-integration-list { padding-inline: 14px; }.settings-channel-footer { margin-inline: 14px; flex-wrap: wrap; }.settings-channel-footer .text-button { margin-left: 22px; }.settings-integration-row { grid-template-columns: 32px minmax(0, 1fr) auto; }.settings-integration-meta { display: none; }.settings-integration-row .outline-button { grid-column: 2 / -1; justify-self: start; }.channel-integration-modal { width: 100%; max-height: 96vh; }.channel-integration-modal .modal-body { max-height: calc(96vh - 138px); }.channel-integration-form { grid-template-columns: 1fr; }.channel-integration-form .full { grid-column: auto; }.channel-integration-modal .modal-footer { flex-wrap: wrap; }.channel-integration-modal .modal-footer button { flex: 1; } }
@media (max-width: 900px) { .knowledge-grid { grid-template-columns: repeat(2, 1fr); }.knowledge-toolbar { align-items: flex-start; flex-direction: column; }.knowledge-search { width: 100%; } }
@media (max-width: 620px) { .knowledge-summary { grid-template-columns: 1fr; gap: 8px; }.knowledge-summary article { min-height: 83px; padding: 14px; }.knowledge-grid { grid-template-columns: 1fr; padding: 13px; }.knowledge-filters { width: 100%; overflow-x: auto; } }
@media (max-width: 620px) { .knowledge-filter-panel { flex-wrap: wrap; padding-inline: 14px; }.knowledge-filter-panel .filter-input { flex: 1; width: auto; min-width: 120px; }.knowledge-action-bar { padding-inline: 14px; }.knowledge-data-table { min-width: 720px; } }
@media (max-width: 620px) { .knowledge-profile-modal { width: 100%; max-height: 94vh; }.knowledge-profile-body { padding-inline: 17px; }.profile-basic-grid { grid-template-columns: 1fr; }.source-tabs { gap: 12px; overflow-x: auto; }.source-tabs button { white-space: nowrap; }.profile-field { grid-template-columns: 1fr; gap: 6px; }.profile-field label { padding-top: 0; text-align: left; }.profile-divider { align-items: flex-start; flex-direction: column; } }

/* Keep the knowledge form actions visible while the long profile form scrolls. */
.knowledge-profile-modal { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.knowledge-profile-modal .knowledge-profile-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.knowledge-profile-modal .modal-footer { flex: 0 0 auto; }
.source-hint #knowledge-min-hint { color: #9ba3b2; }
.is-loading svg { animation: knowledge-spin .8s linear infinite; }
@keyframes knowledge-spin { to { transform: rotate(360deg); } }

.article-studio-grid { display: grid; grid-template-columns: minmax(310px, .72fr) minmax(500px, 1.28fr); gap: 16px; align-items: start; }.article-brief, .article-editor { overflow: hidden; }.article-step { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; color: var(--primary); background: #efeeff; font: 700 12px var(--font-display); }.article-form { display: grid; gap: 14px; padding: 18px 20px 20px; }.article-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.article-generate { width: 100%; min-height: 43px; margin-top: 2px; }.article-mode-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: #9aa2b1; font-size: 11px; line-height: 1.55; }.article-mode-note svg { flex: 0 0 auto; width: 13px; }.article-editor-body { padding: 18px 20px 20px; }.article-title-input { width: 100%; height: 45px; padding: 0 4px 12px; outline: 0; border: 0; border-bottom: 1px solid var(--line); color: #30384c; background: transparent; font-size: 20px; font-weight: 700; }.article-title-input::placeholder { color: #b0b6c2; }.article-editor-body > textarea { width: 100%; min-height: 470px; padding: 18px 4px; outline: 0; border: 0; color: #50596c; background: #fff; font:  14px/1.9 var(--font); resize: vertical; }.article-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; border-top: 1px solid var(--line); }.article-editor-footer > span { color: #9aa2b1; font-size: 12px; }.article-editor-footer > div { display: flex; gap: 8px; }.article-history { margin-top: 16px; overflow: hidden; }.article-list article { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 64px; padding: 10px 20px; border-top: 1px solid #eff1f5; }.article-list-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 8px; color: var(--primary); background: #efeeff; }.article-list-icon svg { width: 15px; }.article-list-main { min-width: 0; }.article-list-main strong, .article-list-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.article-list-main strong { color: #4b5468; font-size: 13px; }.article-list-main span { margin-top: 5px; color: #9ba3b2; font-size: 11px; }.article-history-empty { display: grid; min-height: 105px; place-items: center; align-content: center; gap: 7px; border-top: 1px solid #eff1f5; color: #9da5b4; font-size: 12px; }.article-history-empty svg { width: 21px; color: #8177f2; }.spin-icon { width: 20px; animation: knowledge-spin .8s linear infinite; }

@media (max-width: 1050px) { .article-studio-grid { grid-template-columns: 1fr; }.article-editor-body > textarea { min-height: 390px; } }
@media (max-width: 620px) { .article-form-row { grid-template-columns: 1fr; }.article-list article { grid-template-columns: 34px minmax(0, 1fr) auto; }.article-list article > .status-chip { display: none; }.article-list .table-actions { grid-column: 2 / -1; }.article-editor-footer { align-items: flex-start; flex-direction: column; }.article-editor-footer > div { width: 100%; }.article-editor-footer button { flex: 1; } }

.rewrite-layout { display: grid; grid-template-columns: minmax(320px, .72fr) minmax(500px, 1.28fr); gap: 16px; align-items: start; }.rewrite-source, .rewrite-results { overflow: hidden; }.rewrite-form { display: grid; gap: 14px; padding: 18px 20px 20px; }.rewrite-form textarea { width: 100%; min-height: 210px; padding: 12px 13px; outline: 0; border: 1px solid #e4e7ef; border-radius: 8px; color: #4a5366; background: #fbfcfe; font:  13px/1.75 var(--font); resize: vertical; }.rewrite-form textarea:focus, .rewrite-draft textarea:focus, .rewrite-draft-title:focus { border-color: #8e84f9; box-shadow: 0 0 0 3px rgba(101,88,245,.1); }.rewrite-form .form-field > small { display: block; margin-top: 6px; color: #99a1b0; font-size: 11px; text-align: right; }.rewrite-upload-row { display: flex; align-items: center; gap: 10px; }.rewrite-upload-row > span { color: #9ba3b1; font-size: 11px; }.rewrite-file-button { position: relative; overflow: hidden; min-height: 36px; cursor: pointer; }.rewrite-file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }.channel-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.channel-checks label { margin: 0; cursor: pointer; }.channel-checks input { position: absolute; opacity: 0; pointer-events: none; }.channel-checks span { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 10px; border: 1px solid #e3e6ed; border-radius: 7px; color: #667084; background: #fbfcfe; font-size: 12px; font-weight: 600; transition: .18s; }.channel-checks input:checked + span { border-color: #8d84ec; color: #5148bd; background: #f0effd; box-shadow: inset 0 0 0 1px rgba(101,88,245,.08); }.rewrite-generate { width: 100%; min-height: 43px; }.rewrite-count { padding: 5px 8px; border-radius: 6px; color: #26856f; background: #e9f8f3; font-size: 11px; font-weight: 700; }.rewrite-draft-list { display: grid; gap: 12px; padding: 4px 18px 18px; }.rewrite-draft { overflow: hidden; padding: 15px; border: 1px solid #e6e8ef; border-radius: 8px; background: #fff; }.rewrite-draft-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }.rewrite-draft-head > div span, .rewrite-draft-head > div small { display: block; }.rewrite-draft-head > div span { color: #30394c; font-size: 13px; font-weight: 700; }.rewrite-draft-head > div small { margin-top: 4px; color: #9aa2b0; font-size: 11px; }.rewrite-draft-title { width: 100%; height: 39px; padding: 0 10px; outline: 0; border: 1px solid #e5e8ef; border-radius: 7px; color: #3e485c; background: #fbfcfe; font-size: 14px; font-weight: 700; }.rewrite-draft textarea { width: 100%; min-height: 270px; margin-top: 9px; padding: 11px; outline: 0; border: 1px solid #e5e8ef; border-radius: 7px; color: #566075; background: #fbfcfe; font:  13px/1.75 var(--font); resize: vertical; }.rewrite-draft-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }.rewrite-draft-footer > span { color: #9aa2b1; font-size: 11px; }.rewrite-empty { display: grid; min-height: 400px; place-items: center; align-content: center; padding: 30px; text-align: center; }.rewrite-empty h3 { margin: 13px 0 6px; color: #4a5365; font-size: 14px; }.rewrite-empty p { max-width: 270px; margin: 0; color: #9ba3b2; font-size: 12px; line-height: 1.7; }.rewrite-history { overflow: hidden; margin-top: 16px; }

@media (max-width: 1050px) { .rewrite-layout { grid-template-columns: 1fr; }.rewrite-empty { min-height: 220px; } }
@media (max-width: 620px) { .channel-checks { grid-template-columns: 1fr; }.rewrite-upload-row { align-items: flex-start; flex-direction: column; }.rewrite-file-button { width: 100%; }.rewrite-draft-list { padding-inline: 12px; }.rewrite-draft { padding: 12px; } }
.channel-checks input { width: 1px; height: 1px; }

.article-task-card { overflow: hidden; }.article-task-filters { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(210px, 1.2fr) 160px auto auto; align-items: end; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }.article-task-filters .form-field label { margin-bottom: 6px; }.article-task-filters .form-field input, .article-task-filters .form-field select { height: 38px; }.article-task-toolbar { display: flex; align-items: center; gap: 9px; padding: 13px 20px; border-bottom: 1px solid var(--line); background: #fbfcfe; }.article-task-table { min-width: 1320px; }.article-task-table th, .article-task-table td { padding-inline: 13px; white-space: nowrap; }.article-task-table td:nth-child(2), .article-task-table td:nth-child(3), .article-task-table td:nth-child(9) { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }.article-task-table th:last-child, .article-task-table td:last-child { position: sticky; right: 0; z-index: 2; background: #fff; box-shadow: -9px 0 14px -14px rgba(33, 36, 64, .52); }.article-task-table thead th:last-child { z-index: 3; background: #fbfcfe; }.article-task-table tbody tr:hover td:last-child { background: #fafaff; }.article-task-actions { min-width: 180px; }.table-action.secondary { color: #397ebc; }.status-chip.red { color: #d75c69; background: #fff0f2; }.compact-empty { min-height: 220px; }.compact-empty .empty-icon { width: 40px; height: 40px; border-radius: 10px; }.article-task-modal { width: min(94vw, 800px); max-height: 92vh; }.article-task-modal-body { overflow-y: auto; max-height: calc(92vh - 142px); padding: 22px 28px 28px; }.article-task-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }.article-task-form-grid .full { grid-column: 1 / -1; }.article-task-form-grid .form-field label b { color: #e45c68; }.article-task-form-grid .form-field > small { display: block; margin-top: 6px; color: #9ba3b2; font-size: 11px; }.range-field { display: flex; align-items: center; gap: 13px; min-height: 42px; }.range-field input { height: auto !important; padding: 0; accent-color: var(--primary); }.range-field strong { flex: 0 0 auto; color: #5f687b; font-size: 13px; }.segmented-radios { display: flex; gap: 18px; }.segmented-radios label { margin: 0; cursor: pointer; }.segmented-radios input { width: 15px; height: 15px; margin-right: 6px; accent-color: var(--primary); vertical-align: -3px; }.segmented-radios span { color: #596378; font-size: 13px; }.instruction-mode-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 10px; }.instruction-mode-list label { display: flex; align-items: flex-start; gap: 8px; min-height: 64px; margin: 0; padding: 11px; border: 1px solid #e3e6ee; border-radius: 8px; background: #fbfcfe; cursor: pointer; }.instruction-mode-list label:has(input:checked) { border-color: #8d84ee; background: #f3f1ff; }.instruction-mode-list input { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 2px; accent-color: var(--primary); }.instruction-mode-list strong, .instruction-mode-list small { display: block; }.instruction-mode-list strong { color: #505a6f; font-size: 12px; }.instruction-mode-list small { margin-top: 4px; color: #9aa2b1; font-size: 10px; line-height: 1.45; }.article-list-modal { width: min(92vw, 760px); max-height: 86vh; }.article-list-modal .modal-body { max-height: 66vh; overflow-y: auto; }.task-article-list { display: grid; gap: 8px; }.task-article-list article { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid #e8eaf0; border-radius: 8px; }.task-article-list article > div { min-width: 0; }.task-article-list strong, .task-article-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.task-article-list strong { color: #4b5468; font-size: 13px; }.task-article-list small { margin-top: 5px; color: #9aa2b1; font-size: 11px; }.article-editor-modal { width: min(94vw, 900px); max-height: 92vh; }.article-editor-modal .modal-body { overflow-y: auto; }.generated-article-body { margin-top: 15px; }.generated-article-body textarea { min-height: 480px; line-height: 1.8; }

@media (max-width: 1050px) { .article-task-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }.article-task-filters > button { min-height: 38px; }.instruction-mode-list { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .article-task-filters { grid-template-columns: 1fr; }.article-task-toolbar { flex-wrap: wrap; }.article-task-toolbar .filter-spacer { display: none; }.article-task-modal { width: 100%; max-height: 96vh; }.article-task-modal-body { max-height: calc(96vh - 138px); padding-inline: 17px; }.article-task-form-grid { grid-template-columns: 1fr; }.article-task-form-grid .full { grid-column: auto; }.segmented-radios { align-items: flex-start; flex-direction: column; gap: 10px; }.article-list-modal, .article-editor-modal { width: 100%; }.task-article-list article { grid-template-columns: 34px minmax(0, 1fr); }.task-article-list article .table-action { grid-column: 2; justify-self: start; }.generated-article-body textarea { min-height: 360px; } }

.status-chip.amber { color: #a86919; background: #fff5df; }
.muted-cell { color: #a4aaba; }
.task-channel-summary { min-width: 190px; max-width: 250px; }
.task-channel-summary strong, .task-channel-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-channel-summary strong { color: #5c6578; font-size: 12px; font-weight: 600; }
.task-channel-summary small { margin-top: 4px; color: #9aa2b2; font-size: 11px; }
.auto-channel-section { padding: 14px; border: 1px solid #e4e6ee; border-radius: 8px; background: #fbfcfe; }
.auto-channel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.auto-channel-heading label { margin: 0; color: #4f586c; font-size: 13px; font-weight: 700; }
.auto-channel-heading small { display: block; margin-top: 5px; color: #989faf; font-size: 11px; }
.switch-control { position: relative; flex: 0 0 auto; width: 38px; height: 22px; cursor: pointer; }
.switch-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-control span { position: absolute; inset: 0; border-radius: 11px; background: #cfd3dc; transition: .18s; }
.switch-control span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(36, 42, 58, .22); transition: .18s; }
.switch-control input:checked + span { background: var(--primary); }
.switch-control input:checked + span::after { transform: translateX(16px); }
.switch-control input:focus-visible + span { outline: 3px solid rgba(101, 88, 245, .18); outline-offset: 2px; }
.auto-channel-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e7e9ef; }
.auto-channel-panel[hidden] { display: none; }
.article-task-channel-checks { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
.channel-output-preview { display: flex; align-items: flex-start; gap: 9px; margin-top: 11px; padding: 10px 11px; border-radius: 7px; color: #5a54b8; background: #f1efff; }
.channel-output-preview > svg { flex: 0 0 auto; width: 16px; margin-top: 1px; }
.channel-output-preview strong, .channel-output-preview small { display: block; }
.channel-output-preview strong { font-size: 12px; }
.channel-output-preview small { margin-top: 4px; color: #8985b8; font-size: 11px; line-height: 1.5; }
.task-output-modal { width: min(94vw, 900px); }
.task-article-list { gap: 12px; }
.task-article-group { overflow: hidden; border: 1px solid #e6e8ef; border-radius: 8px; background: #fff; }
.task-article-master { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 14px; }
.task-article-master > div { min-width: 0; }
.task-article-master strong, .task-article-master small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-article-master strong { color: #3f485b; font-size: 13px; }
.task-article-master small { margin-top: 4px; color: #9aa2b1; font-size: 11px; }
.content-kind-label { display: inline-flex; margin-bottom: 5px; padding: 3px 6px; border-radius: 4px; color: #5750c4; background: #f0efff; font-size: 10px; font-weight: 700; }
.task-channel-versions { display: grid; gap: 1px; padding: 1px 12px 12px 58px; background: #fafbfe; }
.task-channel-versions article { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; min-height: 58px; padding: 9px 10px; border: 0; border-top: 1px solid #edf0f4; border-radius: 0; background: transparent; }
.channel-version-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: #fff; background: #7368ee; font-size: 11px; font-weight: 700; }
.channel-version-empty { margin: 0 14px 14px 58px; padding: 10px; color: #989faf; background: #f7f8fb; font-size: 11px; text-align: center; }

@media (max-width: 620px) {
  .article-task-channel-checks { grid-template-columns: 1fr 1fr; }
  .auto-channel-heading { align-items: flex-start; }
  .task-article-master { grid-template-columns: 34px minmax(0, 1fr); }
  .task-article-master .table-action { grid-column: 2; justify-self: start; }
  .task-channel-versions { padding-left: 14px; }
  .task-channel-versions article { grid-template-columns: 28px minmax(0, 1fr); }
  .task-channel-versions article .table-action { grid-column: 2; justify-self: start; }
  .channel-version-empty { margin-left: 14px; }
}

/* AI lead qualification and follow-up workspace */
.lead-boundary-band { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 14px; padding: 13px 16px; border: 1px solid #dce8e4; border-left: 3px solid #2c9275; border-radius: 8px; background: #fbfefd; }
.lead-boundary-band > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; color: #24775f; background: #e7f5ef; }
.lead-boundary-band svg { width: 17px; }
.lead-boundary-band strong, .lead-boundary-band small { display: block; }
.lead-boundary-band strong { color: #344a43; font-size: 13px; }
.lead-boundary-band small { margin-top: 4px; color: #788b85; font-size: 11px; line-height: 1.55; }
.lead-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.lead-summary article { display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 14px; border: 1px solid #e3e7ec; border-radius: 8px; background: #fff; }
.lead-summary article > span { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 7px; color: #367963; background: #ebf5f1; }
.lead-summary article > span.green { color: #25775d; background: #e5f4ed; }
.lead-summary article > span.amber { color: #a36b28; background: #fff2dc; }
.lead-summary article > span.purple { color: #6259b6; background: #efedfb; }
.lead-summary svg { width: 17px; }
.lead-summary small, .lead-summary strong { display: block; }
.lead-summary small { color: #8992a1; font-size: 10px; }
.lead-summary strong { margin-top: 3px; color: #374155; font-size: 21px; }
.lead-filters { display: grid; grid-template-columns: minmax(250px, 1fr) 150px 130px auto auto; align-items: end; gap: 10px; padding: 15px 18px; border-bottom: 1px solid #e7eaf0; }
.lead-data-table { min-width: 1220px; }
.lead-company-cell { display: flex; align-items: center; gap: 9px; min-width: 210px; }
.lead-company-cell > span { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 6px; color: #fff; background: #3e7567; font-size: 14px; font-weight: 800; }
.lead-company-cell strong, .lead-company-cell a, .lead-company-cell small { display: block; }
.lead-company-cell strong { color: #3f495b; font-size: 12px; }
.lead-company-cell a, .lead-company-cell small { max-width: 190px; margin-top: 3px; overflow: hidden; color: #7b8697; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.lead-company-cell a:hover { color: #2e8069; }
.lead-score-cell { display: flex; align-items: center; gap: 8px; min-width: 116px; }
.lead-grade { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; font-size: 15px; font-weight: 800; }
.lead-grade.grade-A { color: #176b50; background: #dff3ea; }
.lead-grade.grade-B { color: #336c9f; background: #e5eff8; }
.lead-grade.grade-C { color: #9a6727; background: #fff0d7; }
.lead-grade.grade-D { color: #8a5961; background: #f7e8eb; }
.lead-score-cell > div { min-width: 66px; }
.lead-score-cell strong { display: block; color: #455064; font-size: 11px; }
.lead-score-cell span { display: block; width: 66px; height: 4px; margin-top: 5px; overflow: hidden; border-radius: 3px; background: #e9edf1; }
.lead-score-cell i { display: block; height: 100%; border-radius: inherit; background: #3a9277; }
.lead-info-cell { min-width: 150px; max-width: 220px; }
.lead-info-cell strong, .lead-info-cell small { display: block; }
.lead-info-cell strong { color: #4d576a; font-size: 11px; }
.lead-info-cell small { margin-top: 4px; color: #8a94a4; font-size: 10px; line-height: 1.45; }
.lead-status-select { min-width: 94px; height: 30px; padding: 0 25px 0 8px; border: 1px solid #dfe4e9; border-radius: 6px; color: #536173; background: #fff; font-size: 11px; }
.lead-actions { min-width: 215px; }
.lead-create-modal { width: min(760px, calc(100vw - 32px)); }
.lead-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form-grid .full { grid-column: 1 / -1; }
.lead-model-strip { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #dce8e4; border-radius: 7px; background: #f8fcfa; }
.lead-model-strip > svg { width: 16px; color: #2a8068; }
.lead-model-strip strong, .lead-model-strip small { display: block; }
.lead-model-strip strong { color: #3d544d; font-size: 12px; }
.lead-model-strip small { margin-top: 3px; color: #81918b; font-size: 10px; line-height: 1.45; }
.lead-detail-modal { width: min(860px, calc(100vw - 32px)); }
.lead-detail-hero { display: grid; grid-template-columns: 54px repeat(3, minmax(0, 1fr)); align-items: center; gap: 12px; padding: 14px; border: 1px solid #e1e7e5; border-radius: 8px; background: #f9fcfb; }
.lead-detail-hero > .lead-grade { width: 48px; height: 48px; font-size: 21px; }
.lead-detail-hero > div { padding-left: 12px; border-left: 1px solid #e0e7e4; }
.lead-detail-hero strong, .lead-detail-hero span { display: block; }
.lead-detail-hero strong { color: #3e4a5a; font-size: 13px; }
.lead-detail-hero span { margin-top: 4px; color: #89948f; font-size: 10px; }
.lead-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.lead-detail-grid section { min-height: 110px; padding: 13px; border: 1px solid #e5e8ed; border-radius: 7px; background: #fff; }
.lead-detail-grid h4, .lead-outreach h4 { margin: 0 0 7px; color: #3f4b5d; font-size: 12px; }
.lead-detail-grid p, .lead-detail-grid li { color: #6e798b; font-size: 11px; line-height: 1.65; }
.lead-detail-grid p { margin: 0; }
.lead-detail-grid ul { margin: 0; padding: 0; list-style: none; }
.lead-detail-grid li { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; }
.lead-detail-grid li svg { flex: 0 0 auto; width: 12px; color: #2b896c; }
.lead-outreach { margin-top: 12px; padding: 13px; border: 1px solid #dce6e2; border-radius: 8px; background: #fbfefd; }
.lead-outreach > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lead-outreach textarea { width: 100%; margin-top: 8px; resize: vertical; border-color: #d9e3df; background: #fff; }
.lead-contact-edit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.lead-contact-edit .full { grid-column: 1 / -1; }
.lead-source-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; color: #287b65; font-size: 11px; font-weight: 700; }
.lead-source-link svg { width: 13px; }

@media (max-width: 900px) {
  .lead-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-contact-edit { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .lead-boundary-band { grid-template-columns: 34px minmax(0, 1fr); padding: 12px; }
  .lead-summary { grid-template-columns: 1fr 1fr; gap: 7px; }
  .lead-summary article { min-height: 68px; padding: 10px; }
  .lead-filters, .lead-form-grid, .lead-detail-grid, .lead-contact-edit { grid-template-columns: 1fr; }
  .lead-filters { padding-inline: 13px; }
  .lead-form-grid .full, .lead-contact-edit .full { grid-column: auto; }
  .lead-detail-hero { grid-template-columns: 46px 1fr; }
  .lead-detail-hero > div { padding: 7px 0 7px 10px; }
  .lead-detail-hero > div:nth-child(n+3) { grid-column: 2; }
  .lead-create-modal, .lead-detail-modal { width: 100%; max-height: 96vh; }
}

/* AI GEO H5 site builder */
.h5-page-header > div:first-child { max-width: 850px; }
.h5-page-header p { max-width: 760px; line-height: 1.75; }
.h5-growth-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr); gap: 24px; min-height: 205px; margin-bottom: 18px; padding: 28px 32px; overflow: hidden; border-radius: 16px; color: #fff; background: #142744; box-shadow: 0 14px 30px rgba(25, 44, 75, .16); }
.h5-growth-banner::after { content: ""; position: absolute; inset: 0 0 0 57%; opacity: .54; background: url("https://images.unsplash.com/photo-1565610222536-ef125c59da2e?auto=format&fit=crop&w=1200&q=80") center / cover no-repeat; }
.h5-growth-copy, .h5-growth-metrics { position: relative; z-index: 1; }
.h5-growth-copy { max-width: 680px; }
.h5-growth-copy h2 { margin: 10px 0 9px; font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -.05em; }
.h5-growth-copy p { max-width: 610px; margin: 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.75; }
.h5-live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid rgba(156, 217, 197, .35); border-radius: 5px; color: #a7e4d0; background: rgba(25, 89, 83, .38); font-size: 12px; }
.h5-live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #62dab3; box-shadow: 0 0 0 4px rgba(98,218,179,.16); }
.h5-growth-points { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; color: rgba(255,255,255,.78); font-size: 12px; }
.h5-growth-points span { display: inline-flex; align-items: center; gap: 6px; }
.h5-growth-points svg { width: 14px; color: #78d9be; }
.h5-growth-metrics { display: grid; grid-template-columns: repeat(2, 1fr); align-content: center; gap: 10px; padding: 18px; border-left: 1px solid rgba(255,255,255,.16); }
.h5-growth-metrics div { display: grid; gap: 4px; }
.h5-growth-metrics strong { font: 700 29px var(--font-display); letter-spacing: -.05em; }
.h5-growth-metrics span { color: rgba(255,255,255,.62); font-size: 12px; }
.h5-growth-metrics small { grid-column: 1 / -1; margin-top: 12px; color: #94c9d8; font-size: 12px; }
.h5-builder { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .8fr) minmax(245px, .62fr); gap: 14px; align-items: start; }
.h5-template-panel, .h5-config-panel, .h5-preview-panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.h5-preview-panel { position: sticky; top: 84px; }
.h5-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.h5-section-head .eyebrow { margin-bottom: 6px; color: #8c84e9; font-size: 11px; }
.h5-section-head h2 { margin: 0; color: #30394d; font-size: 17px; letter-spacing: -.04em; }
.h5-section-head p { margin: 5px 0 0; color: #9ba3b1; font-size: 12px; line-height: 1.5; }
.h5-count { flex: 0 0 auto; padding: 5px 7px; border-radius: 5px; color: #7f8799; background: #f3f4f8; font-size: 11px; }
.h5-template-filters { display: flex; gap: 4px; margin: 18px 0 12px; padding-bottom: 10px; border-bottom: 1px solid #eef0f5; }
.h5-template-filters button { min-height: 28px; padding: 0 9px; border-radius: 6px; color: #9098a8; background: transparent; font-size: 12px; }
.h5-template-filters button.active { color: #5d55df; background: #efeeff; font-weight: 700; }
.h5-template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.h5-template-card { position: relative; display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 11px; padding: 9px; border: 1px solid #e8ebf2; border-radius: 9px; color: inherit; background: #fff; text-align: left; transition: border .18s, box-shadow .18s, transform .18s; }
.h5-template-card:hover { border-color: #cbc7ff; box-shadow: 0 8px 18px rgba(47, 46, 100, .08); transform: translateY(-1px); }
.h5-template-card.selected { border-color: #756cf2; box-shadow: 0 0 0 2px rgba(117,108,242,.12); }
.h5-template-thumb { position: relative; display: grid; min-height: 106px; place-items: center; overflow: hidden; border-radius: 7px; color: #fff; background-color: #293953; background-image: var(--h5-template-image); background-position: center; background-size: cover; }
.h5-template-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(17, 29, 48, .46); }
.h5-template-thumb svg, .h5-template-thumb small { position: relative; z-index: 1; }
.h5-template-thumb svg { width: 24px; }
.h5-template-thumb small { position: absolute; left: 7px; bottom: 7px; padding: 3px 5px; border-radius: 4px; color: rgba(255,255,255,.82); background: rgba(14,23,39,.55); font-size: 10px; }
.h5-template-thumb.teal { background-color: #1b5e68; }.h5-template-thumb.orange { background-color: #8c552d; }.h5-template-thumb.purple { background-color: #40346d; }
.h5-template-card-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 3px 16px 3px 0; }
.h5-template-card-copy strong { color: #495267; font-size: 13px; }
.h5-template-card-copy small { display: -webkit-box; margin-top: 6px; overflow: hidden; color: #949cac; font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.h5-template-card-copy em { margin-top: auto; color: #7770dd; font-size: 10px; font-style: normal; white-space: nowrap; }
.h5-template-check { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #e1e4ed; border-radius: 50%; color: transparent; background: #fff; }
.h5-template-check svg { width: 11px; }.h5-template-card.selected .h5-template-check { border-color: #7168ee; color: #fff; background: #7168ee; }
.h5-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; margin-top: 17px; }
.h5-form-grid .form-field.full { grid-column: 1 / -1; }
.h5-form-grid .form-field label { margin-bottom: 6px; font-size: 12px; }
.h5-form-grid .form-field input, .h5-form-grid .form-field select { height: 37px; font-size: 13px; }
.h5-form-grid .form-field textarea { min-height: 86px; padding-top: 9px; font-size: 13px; line-height: 1.6; }
.h5-form-grid .form-field small { display: block; margin-top: 5px; color: #a1a8b5; font-size: 11px; }
.h5-submit { width: 100%; margin-top: 16px; }
.h5-config-note { display: flex; gap: 7px; margin-top: 12px; color: #99a1b0; font-size: 11px; line-height: 1.55; }
.h5-config-note svg { flex: 0 0 auto; width: 14px; color: #54ad8b; }
.h5-phone { width: min(100%, 238px); margin: 15px auto 0; padding: 8px 7px 12px; border: 1px solid #30384a; border-radius: 24px; background: #202637; box-shadow: 0 12px 28px rgba(28, 35, 55, .23); }
.h5-phone-top { display: flex; align-items: center; justify-content: space-between; height: 17px; padding: 0 8px; color: rgba(255,255,255,.75); font:  11px var(--font-display); }.h5-phone-top span { width: 35px; height: 4px; border-radius: 4px; background: #596176; }.h5-phone-top svg { width: 12px; }
.h5-phone-screen { position: relative; min-height: 420px; overflow: hidden; border-radius: 17px; background-color: #2d4054; background-position: center; background-size: cover; }
.h5-phone-overlay { display: flex; min-height: 420px; flex-direction: column; padding: 16px 13px 14px; background: rgba(14, 26, 42, .58); }
.h5-phone-nav { display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 12px; }.h5-phone-nav span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.14); }.h5-phone-nav svg { width: 13px; }
.h5-phone-copy { margin-top: auto; color: #fff; }.h5-phone-copy small { color: #b7dfd8; font-size: 10px; }.h5-phone-copy h3 { margin: 7px 0 7px; font-size: 23px; line-height: 1.22; letter-spacing: -.06em; }.h5-phone-copy p { margin: 0; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.6; }.h5-phone-copy button { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; padding: 8px 10px; border-radius: 5px; color: #203044; background: #b6e4d5; font-size: 11px; font-weight: 700; }.h5-phone-copy button svg { width: 11px; }
.h5-phone-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 13px; }.h5-phone-tags span { padding: 3px 5px; border: 1px solid rgba(255,255,255,.24); border-radius: 4px; color: rgba(255,255,255,.76); font-size: 10px; }.h5-phone-home { width: 56px; height: 3px; margin: 10px auto 0; border-radius: 4px; background: #5b6375; }
.h5-preview-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; color: #8d95a6; font-size: 11px; }.h5-preview-meta span { display: inline-flex; align-items: center; gap: 4px; }.h5-preview-meta svg { width: 12px; color: #746cec; }
.h5-principles { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; margin: 18px 0; padding: 24px 26px; border: 1px solid #e1e4ee; border-radius: 12px; background: #f7f8fc; }.h5-principles h2 { max-width: 330px; margin: 0; color: #30394d; font-size: 21px; line-height: 1.35; letter-spacing: -.05em; }.h5-principles .eyebrow { margin-bottom: 9px; font-size: 11px; }.h5-principle-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.h5-principle-list article { padding-left: 12px; border-left: 2px solid #d8d5ff; }.h5-principle-list article:nth-child(2) { border-color: #b9e3d5; }.h5-principle-list article:nth-child(3) { border-color: #f6d2a9; }.h5-principle-list span { color: #756cf0; font: 700 12px var(--font-display); }.h5-principle-list strong { display: block; margin-top: 8px; color: #50596d; font-size: 13px; }.h5-principle-list p { margin: 6px 0 0; color: #939baa; font-size: 11px; line-height: 1.7; }
.h5-projects { overflow: hidden; }.h5-project-table { min-width: 900px; }.h5-keyword-count { padding: 4px 6px; border-radius: 5px; color: #6d65e5; background: #f0efff; font-size: 11px; }

@media (max-width: 1180px) { .h5-builder { grid-template-columns: minmax(0, 1fr) minmax(310px, .7fr); }.h5-template-panel { grid-row: span 2; }.h5-preview-panel { position: static; }.h5-principles { grid-template-columns: 1fr; }.h5-principles h2 { max-width: 520px; } }
@media (max-width: 900px) { .h5-growth-banner { grid-template-columns: 1fr; }.h5-growth-banner::after { inset: 45% 0 0; opacity: .28; }.h5-growth-metrics { grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.16); border-left: 0; }.h5-growth-metrics small { grid-column: auto; margin-top: 0; }.h5-builder { grid-template-columns: 1fr; }.h5-template-panel { grid-row: auto; }.h5-preview-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; align-items: start; }.h5-preview-panel .h5-section-head { grid-column: 1 / -1; }.h5-phone { grid-column: 1 / -1; }.h5-preview-meta { grid-column: 1 / -1; } }
@media (max-width: 620px) { .h5-growth-banner { padding: 22px 19px; }.h5-growth-copy h2 { font-size: 27px; }.h5-growth-points { gap: 9px; flex-direction: column; }.h5-growth-metrics { gap: 7px; padding: 14px 0 0; }.h5-growth-metrics strong { font-size: 23px; }.h5-template-panel, .h5-config-panel, .h5-preview-panel { padding: 15px; }.h5-template-grid { grid-template-columns: 1fr; }.h5-principles { padding: 20px 17px; }.h5-principle-list { grid-template-columns: 1fr; }.h5-principle-list article { padding: 10px 0 0; border-top: 2px solid #d8d5ff; border-left: 0; }.h5-preview-panel { display: block; }.h5-phone { width: min(100%, 270px); }.h5-preview-meta { margin-bottom: 3px; } }

.skill-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; padding: 20px 22px; border: 1px solid #dce9e4; border-radius: 12px; background: #f3faf7; }
.skill-hero > div:first-child { display: flex; align-items: center; gap: 12px; min-width: 0; }
.skill-hero-icon { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; color: #238466; background: #d9f1e8; }
.skill-hero-icon svg { width: 19px; }
.skill-hero strong { display: block; color: #315b4f; font-size: 14px; }
.skill-hero p { max-width: 650px; margin: 5px 0 0; color: #718b82; font-size: 12px; line-height: 1.7; }
.skill-hero-stats { display: flex; flex: 0 0 auto; gap: 18px; color: #81978f; font-size: 12px; }
.skill-hero-stats span { display: grid; gap: 3px; text-align: center; }
.skill-hero-stats b { color: #2b775f; font: 700 19px var(--font-display); }
.skill-toolbar { display: flex; align-items: end; gap: 12px; margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.skill-toolbar .form-field { width: min(350px, 100%); }
.skill-toolbar .form-field label { margin-bottom: 6px; }
.skill-toolbar .form-field input { height: 36px; }
.skill-security-note { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 9px; color: #778398; font-size: 12px; }
.skill-security-note svg { width: 14px; color: #5e9b83; }
.skill-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 16px; align-items: start; }
.skill-installed-card, .skill-catalog-card { overflow: hidden; }
.skill-installed-list { padding: 0 20px 10px; }
.skill-installed-item { display: flex; align-items: flex-start; gap: 11px; padding: 15px 0; border-top: 1px solid #eef0f4; }
.skill-item-icon, .skill-catalog-icon { display: grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; border-radius: 8px; color: #685fe0; background: #efeeff; }
.skill-item-icon svg, .skill-catalog-icon svg { width: 15px; }
.skill-item-copy { min-width: 0; flex: 1; }
.skill-item-copy strong { display: block; color: #414b60; font-size: 14px; }
.skill-item-copy small { display: block; margin-top: 4px; overflow: hidden; color: #9ba4b3; font:  11px var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
.skill-item-copy p { margin: 7px 0 8px; color: #768195; font-size: 12px; line-height: 1.6; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-tags span { padding: 3px 6px; border-radius: 4px; color: #77829a; background: #f3f4f8; font-size: 11px; }
.skill-tags .skill-review-tag { color: #9b7548; background: #fff4e5; }
.skill-item-actions { display: flex; align-items: flex-end; flex: 0 0 auto; flex-direction: column; gap: 7px; }
.skill-item-actions .table-action { font-size: 12px; }
.skill-catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 20px 20px; }
.skill-catalog-item { padding: 14px; border: 1px solid #e7eaf1; border-radius: 9px; background: #fff; }
.skill-catalog-top { display: flex; align-items: center; justify-content: space-between; }
.skill-catalog-icon { color: #28816a; background: #e7f6f0; }
.skill-category { padding: 4px 6px; border-radius: 4px; color: #8d78bb; background: #f4efff; font-size: 10px; }
.skill-catalog-item h4 { margin: 11px 0 6px; color: #4a5368; font-size: 14px; }
.skill-catalog-item p { min-height: 48px; margin: 0 0 11px; color: #828b9b; font-size: 12px; line-height: 1.65; }
.skill-catalog-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-top: 10px; border-top: 1px solid #eef0f4; }
.skill-catalog-footer small { color: #a1a8b6; font-size: 11px; }
.skill-installed-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: #2d9a73; background: #e7f7ef; }
.skill-installed-mark svg { width: 13px; }
.skill-install-modal { width: min(94vw, 570px); }
.skill-install-warning { display: flex; gap: 9px; margin-top: 18px; padding: 13px; border: 1px solid #f0dfbd; border-radius: 8px; color: #8d6a38; background: #fff9ef; }
.skill-install-warning > svg { flex: 0 0 auto; width: 16px; margin-top: 1px; }
.skill-install-warning strong { display: block; font-size: 13px; }
.skill-install-warning p { margin: 5px 0 0; color: #997b4f; font-size: 12px; line-height: 1.65; }
.skill-use-action { color: #238466; }
.skill-run-history { margin-top: 16px; overflow: hidden; }
.skill-run-list { padding: 0 20px 12px; }
.skill-run-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 16px; align-items: center; gap: 11px; width: 100%; padding: 13px 0; border-top: 1px solid #eef0f4; color: inherit; background: transparent; text-align: left; }
.skill-run-row:hover .skill-run-row-copy strong { color: #5d55df; }
.skill-run-row > svg { width: 14px; color: #a1a8b6; }
.skill-run-row-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #5f58d7; background: #efeeff; }
.skill-run-row-icon svg { width: 15px; }
.skill-run-row-copy, .skill-run-row-meta { min-width: 0; }
.skill-run-row-copy strong, .skill-run-row-copy small, .skill-run-row-meta b, .skill-run-row-meta small { display: block; }
.skill-run-row-copy strong { color: #465064; font-size: 13px; }
.skill-run-row-copy small { margin-top: 4px; overflow: hidden; color: #9199a9; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.skill-run-row-meta { min-width: 125px; text-align: right; }
.skill-run-row-meta b { color: #647084; font-size: 11px; font-weight: 600; }
.skill-run-row-meta small { margin-top: 4px; color: #a4abb8; font-size: 10px; }
.skill-run-empty { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 84px; border-top: 1px solid #eef0f4; color: #9aa2b1; font-size: 12px; }
.skill-run-empty svg { width: 15px; }
.skill-run-modal { width: min(94vw, 880px); max-height: 92vh; }
.skill-run-modal .modal-body { max-height: calc(92vh - 142px); overflow-y: auto; }
.skill-run-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 13px; }
.skill-run-form-grid .full { grid-column: 1 / -1; }
.skill-run-form-grid .form-field label b { color: #df6270; }
.skill-run-form-grid .form-field textarea { min-height: 118px; line-height: 1.7; }
.skill-run-form-grid .form-field small { display: flex; justify-content: space-between; margin-top: 6px; color: #9ba3b2; font-size: 11px; }
.skill-run-mode-note { display: flex; gap: 10px; margin-top: 15px; padding: 13px 14px; border: 1px solid #d9ebe5; border-radius: 8px; color: #347c68; background: #f1faf7; }
.skill-run-mode-note.local { border-color: #e5e7ed; color: #687387; background: #f7f8fa; }
.skill-run-mode-note > svg { flex: 0 0 auto; width: 16px; margin-top: 1px; }
.skill-run-mode-note strong, .skill-run-mode-note span { display: block; }
.skill-run-mode-note strong { font-size: 12px; }
.skill-run-mode-note span { margin-top: 4px; color: #839087; font-size: 11px; line-height: 1.6; }
.skill-run-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.skill-run-result-head h4 { margin: 10px 0 0; color: #3c4559; font-size: 16px; }
.skill-run-result-head p { margin: 5px 0 0; color: #98a0ae; font-size: 11px; }
.skill-run-result-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.skill-run-task-summary { margin-top: 17px; padding: 12px 14px; border: 1px solid #e7e9ef; border-radius: 8px; background: #fafbfc; }
.skill-run-task-summary strong { color: #687286; font-size: 11px; }
.skill-run-task-summary p { margin: 6px 0 0; color: #505a6e; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.skill-run-output { max-width: 100%; min-height: 280px; margin: 13px 0 0; padding: 17px; overflow: auto; border: 1px solid #e3e6ed; border-radius: 8px; color: #3e485b; background: #f7f8fa; font:  12px/1.75 Consolas, "Courier New", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.skill-run-result-foot { display: flex; align-items: center; gap: 7px; margin-top: 11px; color: #8e97a7; font-size: 11px; }
.skill-run-result-foot svg { flex: 0 0 auto; width: 13px; color: #479276; }
@media (max-width: 900px) { .skill-layout { grid-template-columns: 1fr; }.skill-hero { align-items: flex-start; flex-direction: column; }.skill-hero-stats { width: 100%; justify-content: space-between; } }
@media (max-width: 620px) { .skill-toolbar { align-items: stretch; flex-direction: column; }.skill-toolbar .form-field { width: 100%; }.skill-security-note { margin-bottom: 0; }.skill-catalog-grid { grid-template-columns: 1fr; padding-inline: 15px; }.skill-installed-list { padding-inline: 15px; }.skill-installed-item { flex-wrap: wrap; }.skill-item-actions { margin-left: 42px; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }.skill-run-list { padding-inline: 15px; }.skill-run-row { grid-template-columns: 32px minmax(0, 1fr) 14px; }.skill-run-row-meta { grid-column: 2; min-width: 0; text-align: left; }.skill-run-row > svg { grid-column: 3; grid-row: 1 / span 2; }.skill-run-modal { width: 100%; max-height: 96vh; }.skill-run-modal .modal-body { max-height: calc(96vh - 138px); }.skill-run-form-grid { grid-template-columns: 1fr; }.skill-run-form-grid .full { grid-column: auto; }.skill-run-result-head { flex-direction: column; }.skill-run-result-actions { justify-content: flex-start; }.skill-run-output { min-height: 220px; } }
.h5-url-cell { display: flex; align-items: center; gap: 7px; min-width: 180px; }.h5-url-link { display: inline-flex; align-items: center; gap: 4px; max-width: 210px; overflow: hidden; color: #635be5; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.h5-url-link svg { flex: 0 0 auto; width: 11px; }.h5-copy-url { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; border: 1px solid #e4e6ef; border-radius: 6px; color: #818a9b; background: #fff; }.h5-copy-url:hover { color: #635be5; border-color: #c9c5ff; background: #f7f6ff; }.h5-copy-url svg { width: 12px; }.h5-readiness { display: flex; gap: 4px; flex-wrap: wrap; }.h5-readiness-chip { display: inline-flex; align-items: center; padding: 4px 6px; border-radius: 5px; font: 600 11px var(--font-display); }.h5-readiness-chip.ready { color: #258f67; background: #e8f7ef; }.h5-readiness-chip.pending { color: #b0793f; background: #fff4e6; }.h5-domain-status { display: inline-flex; max-width: 150px; overflow: hidden; padding: 5px 7px; border-radius: 5px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.h5-domain-status.none { color: #8d96a6; background: #f1f3f7; }.h5-domain-status.pending { color: #a56c35; background: #fff1df; }.h5-domain-status.bound { color: #258f67; background: #e8f7ef; }.h5-row-actions { flex-wrap: wrap; gap: 7px; }.h5-row-actions .table-action:disabled { color: #a5adba; cursor: default; }.h5-domain-modal { width: min(94vw, 580px); }.h5-domain-current { display: grid; gap: 6px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid #e5e8f0; border-radius: 8px; background: #f8f9fc; }.h5-domain-current span { display: inline-flex; align-items: center; gap: 6px; color: #727c90; font-size: 12px; }.h5-domain-current span svg { width: 13px; color: #6c63e9; }.h5-domain-current a { overflow: hidden; color: #5f58d7; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.h5-dns-guide { margin-top: 18px; padding: 14px; border: 1px solid #dbeee8; border-radius: 8px; background: #f2faf7; }.h5-dns-guide > div { display: flex; align-items: center; gap: 7px; color: #2c856a; font-size: 13px; }.h5-dns-guide > div svg { width: 15px; }.h5-dns-guide p { margin: 9px 0; color: #718477; font-size: 12px; }.h5-dns-guide dl { display: grid; grid-template-columns: 74px 1fr; gap: 7px 10px; margin: 0; font-size: 12px; }.h5-dns-guide dt { color: #87988e; }.h5-dns-guide dd { margin: 0; color: #3c6d5c; font-family: var(--font-display); font-weight: 600; }.h5-dns-guide small { display: block; margin-top: 11px; color: #8a9d93; font-size: 11px; line-height: 1.6; }
.h5-content-modal { width: min(94vw, 820px); }.h5-content-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }.h5-content-summary > span { padding: 8px 10px; border-radius: 7px; color: #7a8396; background: #f3f4f8; font-size: 12px; }.h5-content-summary strong { margin-right: 3px; color: #343d52; font: 700 19px var(--font-display); }.h5-content-summary button { margin-left: auto; }.h5-content-tabs { display: flex; gap: 18px; border-bottom: 1px solid #e8ebf2; }.h5-content-tabs button { min-height: 38px; padding: 0 2px; border-bottom: 2px solid transparent; color: #8c94a4; background: transparent; font-size: 13px; }.h5-content-tabs button.active { border-color: #6d64ed; color: #5d55dc; font-weight: 700; }.h5-content-item { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 28px; gap: 13px; align-items: center; padding: 14px 0; border-bottom: 1px solid #eef0f4; }.h5-content-item > div { min-width: 0; }.h5-content-item strong, .h5-content-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.h5-content-item strong { margin-top: 6px; color: #4b556a; font-size: 13px; }.h5-content-item small { margin-top: 4px; color: #9da5b4; font-size: 11px; }.h5-content-item p { margin: 0; color: #7d8799; font-size: 12px; line-height: 1.65; }.h5-content-item .icon-button { width: 28px; height: 28px; }.h5-content-type { display: inline-flex; padding: 3px 5px; border-radius: 4px; color: #6259e2; background: #efeeff; font-size: 10px; }.h5-content-type.article { color: #2a9271; background: #e8f7f0; }

.publish-connection-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 14px 16px; border: 1px solid #e4e7ef; border-radius: 8px; background: #fbfcfe; }
.publish-connection-band > div:first-child { display: flex; align-items: center; gap: 11px; min-width: 0; }
.publish-connection-icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; color: #7d73e9; background: #eeecff; }
.publish-connection-icon svg { width: 17px; }
.publish-connection-band strong, .publish-connection-band small { display: block; }
.publish-connection-band strong { color: #454e62; font-size: 13px; }
.publish-connection-band small { margin-top: 4px; color: #929aaa; font-size: 11px; line-height: 1.5; }
.publish-channel-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.publish-channel-status span { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 0 8px; border: 1px solid #e4e7ee; border-radius: 5px; color: #727b8d; background: #fff; font-size: 11px; white-space: nowrap; }
.publish-channel-status i { width: 6px; height: 6px; border-radius: 50%; background: #c6cad3; }
.publish-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.publish-summary article { display: flex; align-items: center; gap: 11px; min-height: 74px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.publish-summary article > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #655af0; background: #f0efff; }
.publish-summary article:nth-child(2) > span { color: #bd7b27; background: #fff4df; }
.publish-summary article:nth-child(3) > span { color: #397ebc; background: #edf6fd; }
.publish-summary article:nth-child(4) > span { color: #27886d; background: #eaf8f2; }
.publish-summary svg { width: 16px; }
.publish-summary small, .publish-summary strong { display: block; }
.publish-summary small { color: #8d95a5; font-size: 11px; }
.publish-summary strong { margin-top: 2px; color: #343c4f; font-size: 22px; }
.publish-table-card { overflow: hidden; }
.publish-filters { display: grid; grid-template-columns: minmax(200px, 1fr) 170px 150px auto auto; align-items: end; gap: 11px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.publish-filters .form-field label { margin-bottom: 6px; }
.publish-filters input, .publish-filters select { height: 38px; }
.publication-table { min-width: 1220px; }
.publication-table th, .publication-table td { white-space: nowrap; }
.publication-table td:first-child { max-width: 320px; }
.publication-table td:first-child strong, .publication-table td:first-child small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.publication-table th:last-child, .publication-table td:last-child { position: sticky; right: 0; z-index: 2; min-width: 235px; background: #fff; box-shadow: -9px 0 14px -14px rgba(33, 36, 64, .52); }
.publication-table thead th:last-child { z-index: 3; background: #fbfcfe; }
.publication-table tbody tr:hover td:last-child { background: #fafaff; }
.publication-actions { min-width: 220px; }
.publish-channel-chip { display: inline-flex; min-height: 24px; align-items: center; padding: 0 7px; border-radius: 5px; color: #5b52c6; background: #f0efff; font-size: 11px; font-weight: 700; }
.publish-empty { min-height: 330px; }
.publication-modal { width: min(94vw, 720px); max-height: 92vh; }
.publication-modal .modal-body { max-height: calc(92vh - 142px); overflow-y: auto; }
.publication-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 13px; }
.publication-form-grid .full { grid-column: 1 / -1; }
.publication-form-grid label b { color: #e45c68; }
.publication-form-grid .form-field > small { display: block; margin-top: 5px; color: #9aa2b1; font-size: 11px; }
.publication-form-grid textarea { width: 100%; padding: 10px 11px; outline: 0; border: 1px solid #e3e6ed; border-radius: 7px; color: #4f586b; background: #fbfcfe; font:  13px/1.65 var(--font); resize: vertical; }
.publication-form-grid textarea:focus { border-color: #8e84f9; box-shadow: 0 0 0 3px rgba(101, 88, 245, .1); }
.publication-content-preview { display: flex; gap: 10px; padding: 12px; border: 1px solid #e8e9f0; border-radius: 8px; background: #fafbfe; }
.publication-content-preview > span { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 7px; color: #675cf1; background: #eeecff; }
.publication-content-preview svg { width: 15px; }
.publication-content-preview > div { min-width: 0; }
.publication-content-preview strong { display: block; overflow: hidden; color: #4a5367; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.publication-content-preview p { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: #929aaa; font-size: 11px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.publication-content-preview > div { flex: 1; }
.publication-source-media { display: block; width: min(100%, 320px); max-height: 180px; margin-top: 10px; border: 1px solid #e5e7ee; border-radius: 6px; background: #111; object-fit: contain; }
.publication-preview-modal { width: min(94vw, 820px); max-height: 92vh; }
.publication-preview-modal .modal-body { max-height: calc(92vh - 142px); overflow-y: auto; }
.publication-preview-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; }
.publication-preview-meta span { padding: 5px 7px; border-radius: 5px; color: #777f91; background: #f3f4f8; font-size: 11px; }
.publication-preview-copy { padding: 16px; border: 1px solid #e8eaf0; border-radius: 8px; color: #515a6e; background: #fbfcfe; font-size: 13px; line-height: 1.85; }
.publication-preview-media { display: block; width: 100%; max-height: 56vh; margin-bottom: 12px; border-radius: 8px; background: #111; object-fit: contain; }
.publication-preview-notes { margin-top: 12px; padding: 11px 12px; border-left: 3px solid #7a70ee; background: #f5f4ff; }
.publication-preview-notes strong { color: #5951b8; font-size: 12px; }
.publication-preview-notes p { margin: 5px 0 0; color: #7773a0; font-size: 11px; }

@media (max-width: 900px) {
  .publish-connection-band { align-items: flex-start; flex-direction: column; }
  .publish-channel-status { justify-content: flex-start; }
  .publish-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .publish-summary { grid-template-columns: 1fr 1fr; gap: 8px; }
  .publish-summary article { min-height: 66px; padding: 11px; }
  .publish-filters { grid-template-columns: 1fr; padding-inline: 14px; }
  .publication-modal, .publication-preview-modal { width: 100%; max-height: 96vh; }
  .publication-modal .modal-body, .publication-preview-modal .modal-body { max-height: calc(96vh - 138px); }
  .publication-form-grid { grid-template-columns: 1fr; }
  .publication-form-grid .full { grid-column: auto; }
}

/* Admin member and plan management */
.admin-management-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(320px, .58fr); gap: 16px; align-items: start; }
.admin-member-table { min-width: 920px; }
.member-cell { display: flex; align-items: center; gap: 9px; min-width: 175px; }
.member-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; color: #5f56d9; background: #efeeff; font-size: 14px; font-weight: 700; }
.member-cell strong, .member-cell small { display: block; }
.member-cell small { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-chip { display: inline-flex; padding: 5px 8px; border-radius: 5px; color: #655bd3; background: #f0efff; font-size: 12px; white-space: nowrap; }
.member-permissions { max-width: 220px; }
.member-permissions span, .member-permissions small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-permissions span { color: #60697c; font-size: 12px; }
.member-permissions small { margin-top: 4px; color: #a0a7b5; font-size: 11px; }
.table-action.primary-action { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.table-action.primary-action svg { width: 13px; }
.workspace-plan-card { min-width: 0; }
.workspace-plan-form { display: grid; gap: 15px; padding: 0 20px 18px; }
.workspace-plan-form .primary-button { justify-self: start; margin-top: 1px; }
.workspace-plan-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 20px 19px; padding: 11px 12px; border: 1px solid #e6e4fb; border-radius: 8px; color: #7b75ac; background: #faf9ff; font-size: 12px; line-height: 1.6; }
.workspace-plan-note svg { flex: 0 0 auto; width: 14px; margin-top: 1px; color: #7b70e9; }
.admin-activity-card { margin-top: 16px; }
.permission-guide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 20px 20px; }
.permission-guide > div { display: flex; align-items: flex-start; gap: 8px; padding: 12px; border: 1px solid #edf0f5; border-radius: 8px; background: #fbfcfe; }
.permission-guide > div > svg { flex: 0 0 auto; width: 15px; margin-top: 1px; color: #7067e9; }
.permission-guide strong, .permission-guide small { display: block; }
.permission-guide strong { color: #596276; font-size: 12px; }
.permission-guide small { margin-top: 4px; color: #a0a7b5; font-size: 11px; line-height: 1.45; }
.member-edit-modal { width: min(94vw, 700px); max-height: 92vh; }
.member-edit-modal .modal-body { max-height: calc(92vh - 145px); overflow-y: auto; }
.member-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 13px; }
.member-edit-grid .full { grid-column: 1 / -1; }
.member-edit-grid .form-field small { display: block; margin-top: 5px; color: #9ba3b2; font-size: 11px; line-height: 1.5; }
.member-permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.permission-check { display: flex; align-items: flex-start; gap: 8px; min-height: 60px; padding: 10px; border: 1px solid #e5e8ef; border-radius: 8px; background: #fbfcfe; cursor: pointer; }
.permission-check:has(input:checked) { border-color: #9a92f2; background: #f7f6ff; }
.permission-check input { flex: 0 0 auto; width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--primary); }
.permission-check-icon { display: grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; border-radius: 7px; color: #766de7; background: #efeeff; }
.permission-check-icon svg { width: 13px; }
.permission-check strong, .permission-check small { display: block; }
.permission-check strong { color: #576074; font-size: 12px; }
.permission-check small { margin-top: 3px; color: #9ba3b2; font-size: 10px; line-height: 1.45; }
.article-task-source-field { padding: 13px; border: 1px solid #e5e7f2; border-radius: 8px; background: #fafaff; }
.article-task-source-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.article-task-source-heading label { margin-bottom: 3px; }
.article-task-source-heading small, .article-task-source-field > small { display: block; color: #9aa2b1; font-size: 11px; line-height: 1.5; }
.article-task-source-heading > svg { width: 16px; color: #7167e9; }
.article-task-source-row { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.article-task-source-row input { flex: 1; min-width: 0; height: 38px !important; }
.article-task-source-row .outline-button { flex: 0 0 auto; min-height: 38px; padding-inline: 11px; font-size: 12px; }
.article-task-source-row .outline-button svg { width: 14px; }
.plan-pill.is-expired { color: #c55c68; background: #fff0f2; }
.plan-pill.is-expired .status-dot { background: #d96873; }

@media (max-width: 1050px) {
  .admin-management-layout { grid-template-columns: 1fr; }
  .permission-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .permission-guide, .member-permission-grid, .member-edit-grid { grid-template-columns: 1fr; }
  .member-edit-grid .full { grid-column: auto; }
  .member-edit-modal { width: 100%; max-height: 96vh; }
  .member-edit-modal .modal-body { max-height: calc(96vh - 138px); }
}

/* Keep modal clicks from creating a heavy blurred frame around the page. */
.modal-backdrop { background: rgba(22, 27, 51, .32); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Article category management */
.category-table-card { overflow: hidden; }
.category-filter-bar { display: flex; align-items: flex-end; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.category-filter-bar .form-field { width: min(320px, 100%); }
.category-filter-bar .form-field input { height: 40px; }
.category-toolbar { display: flex; align-items: center; gap: 9px; padding: 13px 20px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.article-category-table { min-width: 820px; }
.article-category-table th:first-child, .article-category-table td:first-child { width: 46px; }
.article-category-table th:nth-child(2), .article-category-table td:nth-child(2) { width: 80px; }
.article-category-table th:last-child, .article-category-table td:last-child { width: 180px; }
.category-name-cell { display: flex; align-items: center; gap: 9px; }
.category-name-cell > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #6b61e8; background: #efeeff; }
.category-name-cell svg { width: 14px; }
.article-category-table .table-action { display: inline-flex; align-items: center; gap: 4px; }
.article-category-table .table-action svg { width: 12px; }
.category-modal { width: min(94vw, 480px); }

@media (max-width: 620px) {
  .category-filter-bar { align-items: stretch; flex-direction: column; padding-inline: 14px; }
  .category-filter-bar .form-field { width: 100%; }
  .category-toolbar { flex-wrap: wrap; padding-inline: 14px; }
  .category-toolbar .filter-spacer { display: none; }
}

/* Navigation states */
.nav-item.nav-disabled { color: #9aa2b1; cursor: not-allowed; }
.nav-item.nav-disabled:hover { color: #8d95a3; background: #f7f8fa; }
.nav-item.nav-disabled > svg { color: #aeb5c0; }
.nav-coming { margin-left: auto; flex: 0 0 auto; color: #a5acb7; font-size: 10px; font-weight: 600; }

/* AI digital human */
.nav-label-feature { display: flex; align-items: center; gap: 7px; }
.nav-label-feature .nav-new { margin-left: 0; letter-spacing: 0; }
.nav-subitem { padding-left: 18px; }
.dh-workflow-overview { display: grid; gap: 17px; margin-bottom: 16px; padding: 21px; border: 1px solid #e0e3ef; border-radius: 8px; background: linear-gradient(135deg, #f8f8ff 0%, #fff 64%); }
.dh-workflow-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dh-workflow-heading h2 { margin: 3px 0 5px; color: #323a51; font-size: 20px; }
.dh-workflow-heading p:not(.eyebrow) { margin: 0; color: #838b9d; font-size: 12px; line-height: 1.6; }
.dh-workflow-heading > span { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 7px 9px; border: 1px solid #dedcff; border-radius: 6px; color: #665be2; background: #f2f0ff; font-size: 11px; font-weight: 700; }
.dh-workflow-heading > span svg { width: 14px; }
.dh-workflow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.dh-workflow-steps button { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px; border: 1px solid #e4e6ef; border-radius: 7px; color: #687186; background: #fff; text-align: left; transition: .18s; }
.dh-workflow-steps button:hover { border-color: #c9c4ff; color: #5148bd; background: #faf9ff; transform: translateY(-1px); }
.dh-workflow-steps b { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; color: #665be5; background: #efeeff; font: 800 11px var(--font-display); }
.dh-workflow-steps span { flex: 1; min-width: 0; }
.dh-workflow-steps strong, .dh-workflow-steps small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-workflow-steps strong { color: #4b5469; font-size: 12px; }
.dh-workflow-steps small { margin-top: 3px; color: #9ba3b2; font-size: 10px; }
.dh-workflow-steps button > svg { width: 15px; color: #a5adbd; }
.dh-workflow-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dh-workflow-tools > button { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 11px 10px; border: 1px solid #eaebf1; border-radius: 7px; color: #707a90; background: #fff; text-align: left; }
.dh-workflow-tools > button:hover { border-color: #d7d3ff; background: #fbfaff; }
.dh-workflow-tools > button > span:nth-child(2) { flex: 1; min-width: 0; }
.dh-workflow-tools strong, .dh-workflow-tools small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-workflow-tools strong { color: #515a70; font-size: 11px; }
.dh-workflow-tools small { margin-top: 3px; color: #9da5b4; font-size: 10px; }
.dh-workflow-tools > button > svg { flex: 0 0 auto; width: 14px; color: #a7aebe; }
.dh-tool-icon { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border-radius: 8px; }
.dh-tool-icon svg { width: 15px; }
.dh-tool-icon.orange { color: #c67c22; background: #fff2df; }
.dh-tool-icon.blue { color: #4e74c5; background: #edf3ff; }
.dh-tool-icon.green { color: #2e9973; background: #eaf8f2; }
.dh-tool-icon.violet { color: #7e67c9; background: #f1edff; }
.dh-content-plan-modal { width: min(94vw, 900px); }
.dh-plan-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.dh-plan-form .full { grid-column: 1 / -1; }
.dh-plan-result { display: grid; gap: 12px; margin-top: 15px; }
.dh-plan-result[hidden] { display: none; }
.dh-plan-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dh-plan-result-head strong, .dh-plan-result-head span { display: block; }
.dh-plan-result-head strong { color: #3e475b; font-size: 14px; }
.dh-plan-result-head span { margin-top: 3px; color: #9199a9; font-size: 11px; }
.dh-plan-day-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; max-height: 470px; overflow: auto; padding-right: 3px; }
.dh-plan-day { display: grid; align-content: start; gap: 6px; padding: 11px; border: 1px solid #e7e9f0; border-radius: 7px; background: #fbfcff; }
.dh-plan-day > span { color: #756be6; font: 800 10px var(--font-display); letter-spacing: .08em; }
.dh-plan-day strong { overflow: hidden; color: #4b5468; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dh-plan-day small { color: #949cad; font-size: 10px; line-height: 1.45; }
.dh-plan-day p { min-height: 32px; margin: 0; color: #788196; font-size: 11px; line-height: 1.5; }
.dh-plan-day .outline-button { justify-self: start; min-height: 28px; padding-inline: 8px; font-size: 11px; }
@media (max-width: 980px) { .dh-workflow-steps, .dh-workflow-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dh-plan-day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .dh-workflow-overview { padding: 14px; } .dh-workflow-heading { flex-direction: column; } .dh-workflow-steps, .dh-workflow-tools, .dh-plan-form, .dh-plan-day-grid { grid-template-columns: 1fr; } .dh-plan-form .full { grid-column: auto; } }
.dh-reference-workbench { display: grid; gap: 15px; margin-bottom: 16px; padding: 20px; border: 1px solid #dfe2ef; border-radius: 8px; background: linear-gradient(135deg, #fbfbff 0%, #fff 58%); }
.dh-reference-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dh-reference-header h2 { margin: 3px 0 5px; color: #323a51; font-size: 18px; }
.dh-reference-header p:not(.eyebrow) { max-width: 710px; margin: 0; color: #81899a; font-size: 12px; line-height: 1.6; }
.dh-reference-badge { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 7px 9px; border: 1px solid #dedcff; border-radius: 6px; color: #665be2; background: #f2f0ff; font-size: 11px; font-weight: 700; }
.dh-reference-badge svg { width: 14px; }
.dh-reference-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .88fr); gap: 14px; }
.dh-reference-input, .dh-reference-result { display: grid; align-content: start; gap: 11px; padding: 14px; border: 1px solid #e6e8f0; border-radius: 8px; background: #fff; }
.dh-reference-platforms { display: flex; flex-wrap: wrap; gap: 7px; }
.dh-reference-platforms label { position: relative; cursor: pointer; }
.dh-reference-platforms input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dh-reference-platforms span { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 9px; border: 1px solid #e2e5ee; border-radius: 6px; color: #747d91; background: #fafbfe; font-size: 12px; font-weight: 700; transition: .18s; }
.dh-reference-platforms span svg { width: 14px; }
.dh-reference-platforms label:has(input:checked) span { border-color: #d5d1ff; color: #5148bd; background: #f2f0ff; box-shadow: 0 1px 5px rgba(72, 63, 178, .1); }
.dh-reference-platforms input:focus-visible + span { outline: 2px solid rgba(101, 88, 245, .28); outline-offset: 1px; }
.dh-reference-url-row { display: flex; align-items: flex-end; gap: 9px; }
.dh-reference-url-row .form-field { flex: 1; min-width: 0; }
.dh-reference-url-row .primary-button { flex: 0 0 auto; min-height: 38px; }
.dh-reference-input textarea { min-height: 86px; }
.dh-reference-input small { color: #969eae; font-size: 11px; line-height: 1.5; }
.dh-reference-status { display: flex; align-items: flex-start; gap: 6px; padding: 9px 10px; border-radius: 6px; color: #8a7650; background: #fff9ed; font-size: 11px; line-height: 1.5; }
.dh-reference-status svg { flex: 0 0 auto; width: 14px; margin-top: 1px; color: #b3852c; }
.dh-reference-status.ready { color: #39785c; background: #edf9f3; }
.dh-reference-status.ready svg { color: #2a9566; }
.dh-reference-status.error { color: #a84f5a; background: #fff1f3; }
.dh-reference-status.error svg { color: #d05d6b; }
.dh-reference-result[hidden] { display: none; }
.dh-reference-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dh-reference-result-label { display: block; margin-bottom: 4px; color: #9aa2b2; font-size: 11px; }
.dh-reference-result-head strong { display: block; overflow: hidden; max-width: 320px; color: #394258; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.dh-reference-result textarea { min-height: 195px; line-height: 1.65; background: #fbfcff; }
.dh-reference-rewrite-options { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(150px, .65fr); gap: 9px; }
.dh-reference-rewrite-options select { background: #fff; }
.dh-reference-rewrite-options .form-field { min-width: 0; }
.dh-reference-result-meta { overflow: hidden; color: #9aa2b2; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.dh-reference-result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.dh-extraction-success-modal { width: min(92vw, 430px); padding: 38px 32px 25px; border: 1px solid #343b4f; border-radius: 16px; color: #f6f7fb; background: #171d2b; box-shadow: 0 22px 70px rgba(12, 16, 28, .38); text-align: center; }
.dh-extraction-success-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; color: #fff; background: #f39a27; box-shadow: 0 8px 20px rgba(243, 154, 39, .25); }
.dh-extraction-success-icon svg { width: 30px; height: 30px; stroke-width: 3; }
.dh-extraction-success-modal h3 { margin: 0; color: #fff; font-size: 22px; }
.dh-extraction-count { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0; color: #eef1f7; font-size: 14px; font-weight: 700; }
.dh-extraction-count svg { width: 15px; color: #aab4c8; }
.dh-extraction-note { margin: 20px auto 24px; max-width: 300px; color: #aeb6c7; font-size: 13px; line-height: 1.7; }
.dh-extraction-actions { display: flex; justify-content: center; gap: 10px; }
.dh-extraction-actions .primary-button, .dh-extraction-actions .outline-button { min-width: 142px; }
.dh-extraction-success-modal .outline-button { color: #d9deea; border-color: #596276; background: transparent; }
.dh-extraction-success-modal .outline-button:hover { color: #fff; border-color: #7b87a1; background: #232b3c; }
.dh-extraction-close { margin-top: 19px; color: #8f99ad; }
@media (max-width: 980px) { .dh-reference-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .dh-reference-workbench { padding: 14px; } .dh-reference-header { flex-direction: column; } .dh-reference-url-row { align-items: stretch; flex-direction: column; } .dh-reference-url-row .primary-button { width: 100%; } .dh-reference-rewrite-options { grid-template-columns: 1fr; } .dh-reference-result-actions > button { flex: 1; } .dh-extraction-success-modal { padding-inline: 22px; } .dh-extraction-actions { flex-direction: column; } .dh-extraction-actions .primary-button, .dh-extraction-actions .outline-button { width: 100%; } }
.tag-failed { color: #cf5665; background: #fff0f2; }
.dh-section-heading > span { color: #979faf; font-size: 12px; }
.dh-upload-panel { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dh-avatar-drop { display: flex; min-height: 265px; }
.dh-drop-target { display: grid; width: 100%; place-items: center; align-content: center; gap: 8px; border: 1px dashed #c7cde0; border-radius: 8px; color: #576176; background: #fafbfe; cursor: pointer; transition: .18s; }
.dh-drop-target:hover { border-color: #8d84ed; background: #f8f7ff; }
.dh-drop-target > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; color: #665bea; background: #eceaff; }
.dh-drop-target svg { width: 24px; }
.dh-drop-target strong { font-size: 14px; }
.dh-drop-target small { color: #9ba3b3; font-size: 11px; }
.dh-avatar-info { padding: 17px; border: 1px solid #e7e9f0; border-radius: 8px; background: #fbfcfe; }
.dh-avatar-info h3 { margin: 0 0 17px; color: #3d4659; font-size: 14px; }
.dh-avatar-info ul { display: grid; gap: 7px; margin: 15px 0 19px; padding-left: 17px; color: #8d95a6; font-size: 11px; line-height: 1.5; }
.dh-avatar-info .primary-button { width: 100%; }
.dh-avatar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.dh-avatar-grid > .knowledge-loading, .dh-avatar-grid > .dh-empty { grid-column: 1 / -1; }
.dh-avatar-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dh-avatar-media { position: relative; aspect-ratio: 4 / 5; background: #eef0f5; }
.dh-avatar-media video { width: 100%; height: 100%; object-fit: cover; background: #252a33; }
.dh-avatar-media > .tag { position: absolute; top: 9px; right: 9px; }
.dh-avatar-card-body { display: grid; gap: 11px; padding: 13px; }
.dh-avatar-card-body strong, .dh-avatar-card-body small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-avatar-card-body strong { color: #414a5d; font-size: 13px; }
.dh-avatar-card-body small { margin-top: 4px; color: #9da5b4; font-size: 11px; }
.dh-avatar-card-body .table-action, .dh-assets-layout .table-action, .dh-script-table .table-action, .dh-task-record-table .table-action { display: inline-flex; align-items: center; gap: 4px; }
.dh-avatar-card-body .table-action svg, .dh-assets-layout .table-action svg, .dh-script-table .table-action svg, .dh-task-record-table .table-action svg { width: 12px; }
.dh-empty { min-height: 300px; border: 1px dashed #d7dbe5; border-radius: 8px; background: #fff; }
.dh-library-card { overflow: hidden; }
.dh-voice-table { min-width: 1050px; }
.dh-voice-cell { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.dh-voice-cell > span { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; color: #655be4; background: #efeeff; }
.dh-voice-cell svg { width: 16px; }
.dh-voice-cell div { min-width: 0; }
.dh-voice-cell strong, .dh-voice-cell small { display: block; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-voice-table audio { width: 220px; height: 32px; }
.dh-system-voice { display: inline-flex; align-items: center; gap: 5px; color: #7e8798; font-size: 12px; }
.dh-system-voice svg { width: 13px; color: #32a476; }
.dh-medium-modal { width: min(94vw, 640px); }
.dh-modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 13px; }
.dh-modal-grid .full { grid-column: 1 / -1; }
.dh-modal-grid .form-field > small { display: block; margin-top: 6px; color: #9ba3b2; font-size: 11px; text-align: right; }
.dh-script-table { min-width: 1320px; }
.dh-script-table th:nth-child(2), .dh-script-table td:nth-child(2) { min-width: 320px; }
.dh-script-cell strong, .dh-script-cell small { display: block; }
.dh-script-cell small { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-script-modal { width: min(94vw, 760px); max-height: 92vh; }
.dh-script-modal .modal-body { max-height: calc(92vh - 142px); overflow-y: auto; }
.dh-provider-notice { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; padding: 13px 15px; border: 1px solid #eadfbf; border-radius: 8px; color: #786842; background: #fffaf0; }
.dh-provider-notice > svg { flex: 0 0 auto; width: 19px; color: #bd8b24; }
.dh-provider-notice > div { flex: 1; min-width: 0; }
.dh-provider-notice strong { color: #65593d; font-size: 13px; }
.dh-provider-notice p { margin: 4px 0 0; color: #968664; font-size: 11px; line-height: 1.5; }
.dh-studio { display: grid; grid-template-columns: minmax(320px, .72fr) minmax(480px, 1.28fr); gap: 16px; align-items: start; }
.dh-production-form, .dh-production-settings { display: grid; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dh-production-form label b { color: #df5a68; }
.dh-production-form .form-field > small, .dh-setting-row small { display: block; margin-top: 6px; color: #9aa2b2; font-size: 11px; }
.dh-production-form textarea { min-height: 185px; line-height: 1.7; }
.dh-production-form > .primary-button { width: 100%; }
.dh-copy-workbench { display: grid; gap: 12px; }
.dh-copy-mode { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px; border: 1px solid #e4e7ee; border-radius: 8px; background: #f7f8fb; }
.dh-copy-mode label { position: relative; margin: 0; cursor: pointer; }
.dh-copy-mode input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dh-copy-mode span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; color: #737c8e; background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap; transition: border-color .18s, color .18s, background .18s, box-shadow .18s; }
.dh-copy-mode span svg { width: 14px; }
.dh-copy-mode label:has(input:checked) span { border-color: #d9d5ff; color: #5148bd; background: #fff; box-shadow: 0 2px 7px rgba(59, 54, 115, .08); }
.dh-copy-mode input:focus-visible + span { outline: 2px solid rgba(101, 88, 245, .28); outline-offset: 1px; }
.dh-copy-options { display: grid; gap: 12px; padding: 13px; border: 1px solid #e5e7ef; border-radius: 8px; background: #fbfcfe; }
.dh-copy-options[hidden] { display: none; }
.dh-copy-options textarea { min-height: 92px; background: #fff; }
.dh-copy-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.dh-copy-option-grid .form-field:last-child { grid-column: 1 / -1; }
.dh-copy-option-grid input, .dh-copy-option-grid select { background: #fff; }
.dh-copy-actions { display: flex; align-items: center; gap: 8px; padding-top: 2px; }
.dh-copy-actions > button { flex: 0 0 auto; min-height: 36px; }
.dh-copy-provider { display: flex; align-items: flex-start; flex: 1; gap: 6px; min-width: 0; color: #8b7651; font-size: 10px; line-height: 1.55; }
.dh-copy-provider svg { flex: 0 0 auto; width: 13px; margin-top: 1px; color: #b2832d; }
.dh-copy-provider.ready { color: #4f7566; }
.dh-copy-provider.ready svg { color: #2d916c; }
.dh-setting-head h3 { margin: 0; color: #3d465a; font-size: 14px; }
.dh-setting-head p { margin: 5px 0 0; color: #9aa2b2; font-size: 11px; }
.dh-preview-stage { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 8.7; overflow: hidden; border-radius: 8px; color: #9ca4b3; background: #343a3d; }
.dh-preview-stage > div { display: grid; place-items: center; gap: 7px; text-align: center; }
.dh-preview-stage > div svg { width: 34px; color: #cbcfd4; }
.dh-preview-stage > div strong { color: #eef0f2; font-size: 14px; }
.dh-preview-stage > div span { font-size: 11px; }
.dh-preview-stage video { width: 100%; height: 100%; object-fit: contain; background: #282d30; }
.dh-preview-name { position: absolute; left: 10px; bottom: 10px; padding: 5px 8px; border-radius: 5px; color: #fff; background: rgba(25, 29, 33, .72); font-size: 11px; }
.dh-setting-group > label { display: block; margin-bottom: 8px; color: #5d667a; font-size: 13px; font-weight: 600; }
.dh-segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dh-segmented label { cursor: pointer; }
.dh-segmented input { position: absolute; opacity: 0; }
.dh-segmented span { display: grid; place-items: center; min-height: 38px; border: 1px solid #e1e5ed; border-radius: 7px; color: #687185; background: #fbfcfe; font-size: 12px; font-weight: 600; }
.dh-segmented input:checked + span { border-color: #8c83ef; color: #5147bf; background: #f1efff; }
.dh-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; }
.dh-setting-row strong { display: block; color: #555f73; font-size: 13px; }
.dh-task-record-table { min-width: 1050px; }
.dh-task-message { max-width: 240px; white-space: normal; line-height: 1.45; }
.dh-assets-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dh-category-sidebar { padding: 16px 12px; border-right: 1px solid var(--line); background: #fbfcfe; }
.dh-category-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 11px; }
.dh-category-heading strong { color: #3e475b; font-size: 14px; }
.dh-category-heading span { color: #9da5b4; font-size: 11px; }
.dh-category-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-radius: 7px; }
.dh-category-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 38px; padding: 0 9px; border-radius: 7px; color: #687185; background: transparent; text-align: left; font-size: 12px; }
.dh-category-item span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.dh-category-item svg { width: 14px; }
.dh-category-item b { color: #9ba3b2; font-size: 11px; }
.dh-category-item.active, .dh-category-row.active, .dh-category-row:hover { color: #5c52ce; background: #eeecff; }
.dh-category-row > div { display: none; padding-right: 4px; }
.dh-category-row:hover > div { display: flex; }
.dh-category-row .icon-button { width: 25px; height: 25px; border-radius: 5px; }
.dh-category-row .icon-button svg { width: 12px; }
.dh-assets-content { min-width: 0; padding: 17px; }
.dh-assets-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dh-assets-toolbar strong, .dh-assets-toolbar span { display: block; }
.dh-assets-toolbar strong { color: #40495d; font-size: 14px; }
.dh-assets-toolbar span { margin-top: 4px; color: #9da5b4; font-size: 11px; }
.dh-asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.dh-asset-grid > .dh-empty { grid-column: 1 / -1; }
.dh-asset-card { overflow: hidden; border: 1px solid #e5e8ef; border-radius: 8px; }
.dh-asset-preview { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #252b30; }
.dh-asset-preview video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.dh-asset-preview > span { position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: rgba(35, 40, 48, .72); transform: translate(-50%, -50%); }
.dh-asset-preview svg { width: 15px; }
.dh-asset-body { display: grid; gap: 10px; padding: 12px; }
.dh-asset-body strong, .dh-asset-body small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-asset-body strong { color: #414a5d; font-size: 13px; }
.dh-asset-body small { margin-top: 4px; color: #9ca4b3; font-size: 11px; }
.dh-preview-modal { width: min(94vw, 900px); }
.dh-preview-modal .modal-body { padding: 0; background: #171b1e; }
.dh-preview-modal video { display: block; width: 100%; max-height: 70vh; background: #171b1e; }

@media (max-width: 1100px) {
  .dh-avatar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dh-studio { grid-template-columns: minmax(300px, .8fr) minmax(400px, 1.2fr); }
  .dh-asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .dh-upload-panel, .dh-studio { grid-template-columns: 1fr; }
  .dh-avatar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dh-assets-layout { grid-template-columns: 1fr; }
  .dh-category-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .dh-preview-stage { aspect-ratio: 16 / 9; }
}

@media (max-width: 620px) {
  .dh-upload-panel { padding: 13px; }
  .dh-avatar-drop { min-height: 210px; }
  .dh-avatar-grid, .dh-asset-grid { grid-template-columns: 1fr; }
  .dh-modal-grid { grid-template-columns: 1fr; }
  .dh-modal-grid .full { grid-column: auto; }
  .dh-provider-notice { align-items: flex-start; flex-wrap: wrap; }
  .dh-provider-notice .outline-button { margin-left: 31px; }
  .dh-production-form, .dh-production-settings { padding: 14px; }
  .dh-copy-mode { grid-template-columns: 1fr; }
  .dh-copy-mode span { justify-content: flex-start; padding-inline: 12px; }
  .dh-copy-option-grid { grid-template-columns: 1fr; }
  .dh-copy-option-grid .form-field:last-child { grid-column: auto; }
  .dh-copy-actions { align-items: stretch; flex-wrap: wrap; }
  .dh-copy-provider { flex: 1 0 100%; }
  .dh-copy-actions > button { flex: 1; }
  .dh-segmented { grid-template-columns: 1fr; }
  .dh-assets-content { padding: 13px; }
  .dh-script-modal, .dh-medium-modal, .dh-preview-modal { width: 100%; }
}

/* AI image creation and short video */
.creative-provider-notice { margin-bottom: 16px; }
.creative-studio { display: grid; grid-template-columns: minmax(340px, .82fr) minmax(430px, 1.18fr); gap: 16px; align-items: start; }
.creative-form, .creative-preview { display: grid; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.creative-form-title { display: flex; align-items: center; gap: 11px; padding-bottom: 15px; border-bottom: 1px solid #edf0f4; }
.creative-form-title > span { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; color: #655ae8; background: #efeeff; }
.creative-form-title svg { width: 17px; }
.creative-form-title h3, .creative-preview-head h3 { margin: 0; color: #3e475b; font-size: 14px; }
.creative-form-title p, .creative-preview-head p { margin: 4px 0 0; color: #9aa2b2; font-size: 11px; line-height: 1.5; }
.creative-form label b { color: #df5a68; }
.creative-form .form-field > small { display: block; margin-top: 6px; color: #9ca4b3; font-size: 11px; line-height: 1.5; }
.creative-form .form-field textarea { min-height: 160px; line-height: 1.7; }
.creative-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.creative-submit { width: 100%; }
.creative-preview { position: sticky; top: 91px; }
.creative-preview-head { display: flex; align-items: center; justify-content: space-between; }
.image-ratio-preview { position: relative; display: grid; place-items: center; width: min(100%, 380px); max-height: 390px; margin: 0 auto; overflow: hidden; border: 1px solid #dfe4ed; border-radius: 8px; color: #d9dde4; background: #30373b; transition: width .2s, aspect-ratio .2s; }
.image-ratio-preview.ratio-1-1 { aspect-ratio: 1 / 1; }
.image-ratio-preview.ratio-4-5 { width: min(78%, 310px); aspect-ratio: 4 / 5; }
.image-ratio-preview.ratio-16-9 { aspect-ratio: 16 / 9; }
.image-ratio-preview.ratio-9-16 { width: min(55%, 220px); aspect-ratio: 9 / 16; }
.image-ratio-preview::before { content: ""; position: absolute; inset: 8%; border: 1px dashed rgba(255, 255, 255, .18); }
.image-ratio-preview > div { position: relative; z-index: 1; display: grid; place-items: center; gap: 8px; padding: 20px; text-align: center; }
.image-ratio-preview svg { width: 32px; color: #a8afb8; }
.image-ratio-preview strong { max-width: 240px; overflow-wrap: anywhere; color: #fff; font-size: 14px; }
.image-ratio-preview span { color: #aeb5bd; font-size: 11px; }
.image-ratio-options { grid-template-columns: repeat(4, 1fr); }
.creative-tip-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.creative-tip-list > div { display: flex; align-items: flex-start; gap: 7px; padding: 10px; border: 1px solid #e9ebf1; border-radius: 7px; background: #fbfcfe; }
.creative-tip-list > div > svg { flex: 0 0 auto; width: 14px; color: #7067e9; }
.creative-tip-list strong, .creative-tip-list small { display: block; }
.creative-tip-list strong { color: #5a6376; font-size: 11px; }
.creative-tip-list small { margin-top: 3px; color: #9fa6b4; font-size: 10px; line-height: 1.4; }
.creative-task-table { min-width: 1080px; }
.creative-task-table .table-action { display: inline-flex; align-items: center; gap: 4px; }
.creative-task-table .table-action svg { width: 12px; }
.creative-library-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.creative-category-sidebar { padding: 16px 12px; border-right: 1px solid var(--line); background: #fbfcfe; }
.creative-library-content { min-width: 0; padding: 17px; }
.creative-toolbar-actions { display: flex; gap: 8px; }
.image-asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.image-asset-grid > .dh-empty { grid-column: 1 / -1; }
.image-asset-card { overflow: hidden; border: 1px solid #e4e7ee; border-radius: 8px; background: #fff; }
.image-asset-preview { display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #eef0f4; }
.image-asset-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.image-asset-preview:hover img { transform: scale(1.025); }
.image-asset-body { display: grid; gap: 10px; padding: 12px; }
.image-asset-body strong, .image-asset-body small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-asset-body strong { color: #414a5d; font-size: 13px; }
.image-asset-body small { margin-top: 4px; color: #9ca4b3; font-size: 11px; }
.image-asset-body .table-action { display: inline-flex; align-items: center; gap: 4px; }
.image-asset-body .table-action svg { width: 12px; }
.image-preview-modal { width: min(94vw, 900px); max-height: 92vh; }
.image-preview-modal .modal-body { max-height: calc(92vh - 145px); overflow-y: auto; text-align: center; background: #f4f5f8; }
.image-preview-modal .modal-body img { max-width: 100%; max-height: 68vh; border-radius: 6px; object-fit: contain; }
.image-preview-modal .modal-body p { margin: 12px auto 0; max-width: 720px; color: #727b8d; font-size: 12px; line-height: 1.7; text-align: left; }
.short-material-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.short-material-grid > .dh-empty { grid-column: 1 / -1; }
.short-material-card { overflow: hidden; border: 1px solid #e4e7ee; border-radius: 8px; background: #fff; }
.short-material-preview { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #292e32; }
.short-material-preview img, .short-material-preview video { width: 100%; height: 100%; object-fit: cover; }
.short-material-preview > span { position: absolute; top: 8px; left: 8px; padding: 4px 6px; border-radius: 5px; color: #fff; background: rgba(29, 34, 40, .68); font-size: 10px; }
.short-material-card .image-asset-body { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.short-material-card .image-asset-body .table-action { align-self: center; }
.sv-script-table { min-width: 1500px; }
.sv-script-table th:nth-child(2), .sv-script-table td:nth-child(2) { min-width: 300px; }
.sv-script-modal .modal-body > .form-field { margin-bottom: 16px; }
.sv-script-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sv-script-mode label { position: relative; display: block; margin: 0; }
.sv-script-mode input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sv-script-mode span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 12px; border: 1px solid #e1e4ec; border-radius: 7px; color: #687286; background: #fbfcfe; font-size: 12px; cursor: pointer; }
.sv-script-mode span svg { width: 14px; }
.sv-script-mode input:checked + span { border-color: #8076e8; color: #5c52c8; background: #f1efff; box-shadow: inset 0 0 0 1px rgba(103, 92, 241, .08); }
.sv-script-ai-panel[hidden], #sv-script-manual-panel[hidden], .script-manual-panel[hidden] { display: none; }
.sv-model-notice { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid #e4e5ec; border-radius: 7px; color: #737c8d; background: #f7f8fb; font-size: 11px; line-height: 1.55; }
.sv-model-notice svg { flex: 0 0 auto; width: 14px; color: #8a82de; }
.sv-model-notice.ready { border-color: #cfe7dc; color: #4f7564; background: #f0faf5; }
.sv-model-notice.ready svg { color: #37a373; }
@media (max-width: 620px) {
  .sv-script-mode { grid-template-columns: 1fr; }
}
.video-studio { grid-template-columns: minmax(420px, 1fr) minmax(360px, .72fr); }
.sv-material-selector { display: grid; gap: 11px; }
.sv-material-selector > div { padding: 12px; border: 1px solid #e5e8ef; border-radius: 8px; background: #fbfcfe; }
.sv-selector-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.sv-selector-head strong { color: #515b6e; font-size: 12px; }
.sv-selector-head span { color: #9da5b4; font-size: 10px; }
.sv-selector-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.sv-selector-list > p { grid-column: 1 / -1; margin: 3px 0; color: #9da5b4; font-size: 11px; }
.sv-empty-material { display: inline-flex; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 1px dashed #cdd2df; border-radius: 7px; color: #6c62dc; background: #fff; font-size: 11px; font-weight: 600; }
.sv-empty-material:hover { border-color: #8c83ef; background: #f5f3ff; }
.sv-empty-material svg { width: 13px; }
.sv-selector-list label { min-width: 0; cursor: pointer; }
.sv-selector-list input { position: absolute; opacity: 0; }
.sv-selector-list label > span { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 2px 6px; min-height: 48px; padding: 7px; border: 1px solid #e1e4ec; border-radius: 7px; color: #687185; background: #fff; }
.sv-selector-list label > span > svg { grid-row: 1 / 3; width: 15px; color: #746bea; }
.sv-selector-list b, .sv-selector-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-selector-list b { font-size: 11px; }
.sv-selector-list small { color: #9da4b2; font-size: 10px; }
.sv-selector-list input:checked + span { border-color: #8b82ef; color: #5148bd; background: #f1efff; box-shadow: inset 0 0 0 1px rgba(101, 88, 245, .08); }
.short-storyboard { display: grid; grid-template-columns: 1fr 18px 1fr 18px 1fr; align-items: center; gap: 6px; padding: 12px; border: 1px solid #e5e8ef; border-radius: 8px; background: #fafbfe; }
.short-storyboard > button { display: grid; place-items: center; min-width: 0; padding: 9px 4px; border: 1px solid transparent; border-radius: 7px; background: #fff; }
.short-storyboard > button:hover { border-color: #aaa3f2; background: #f7f6ff; }
.short-storyboard > button span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #5e55d1; background: #efeeff; font-size: 10px; font-weight: 700; }
.short-storyboard > button strong { margin-top: 6px; color: #535c70; font-size: 11px; }
.short-storyboard > button small { margin-top: 3px; max-width: 100%; overflow: hidden; color: #a0a7b5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.short-storyboard > svg { width: 14px; color: #b0b6c2; }
.sv-script-preview { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid #e5e8ef; border-radius: 8px; background: #fafbfe; }
.sv-script-preview > svg { flex: 0 0 auto; width: 16px; color: #6c62e7; }
.sv-script-preview div { min-width: 0; }
.sv-script-preview strong, .sv-script-preview p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-script-preview strong { display: block; color: #525b6f; font-size: 12px; }
.sv-script-preview p { margin: 5px 0 0; color: #9aa2b1; font-size: 11px; }

@media (max-width: 1180px) {
  .image-asset-grid, .short-material-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .creative-tip-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .creative-studio, .video-studio { grid-template-columns: 1fr; }
  .creative-preview { position: static; }
  .creative-library-layout { grid-template-columns: 1fr; }
  .creative-category-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .image-asset-grid, .short-material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .creative-form, .creative-preview { padding: 14px; }
  .creative-form-grid { grid-template-columns: 1fr; }
  .image-ratio-options { grid-template-columns: repeat(2, 1fr); }
  .image-asset-grid, .short-material-grid { grid-template-columns: 1fr; }
  .creative-library-content { padding: 13px; }
  .sv-selector-list { grid-template-columns: 1fr 1fr; }
  .short-storyboard { grid-template-columns: 1fr; }
  .short-storyboard > svg { display: none; }
  .image-preview-modal { width: 100%; }
}

/* Distribution workspace */
.nav-hot { margin-left: auto; padding: 2px 5px; border-radius: 4px; color: #b64f63; background: #fff0f3; font-size: 9px; font-weight: 800; }
.distribution-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.distribution-summary article { display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.distribution-summary article > span { display: grid; place-items: center; flex: 0 0 auto; width: 33px; height: 33px; border-radius: 8px; color: #655af0; background: #f0efff; }
.distribution-summary article:nth-child(2) > span { color: #b57328; background: #fff5e4; }
.distribution-summary article:nth-child(3) > span { color: #257b68; background: #eaf8f3; }
.distribution-summary article:nth-child(4) > span { color: #c55467; background: #fff0f3; }
.distribution-summary svg { width: 16px; }
.distribution-summary small, .distribution-summary strong { display: block; }
.distribution-summary small { color: #8c94a5; font-size: 11px; }
.distribution-summary strong { margin-top: 2px; color: #343c4f; font-size: 22px; }
.distribution-card { overflow: hidden; margin-bottom: 16px; }
.distribution-task-section { margin-top: 16px; }
.distribution-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 65px; padding: 13px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.distribution-section-head h2 { margin: 0; color: #3f485c; font-size: 14px; }
.distribution-section-head p { margin: 4px 0 0; color: #969ead; font-size: 11px; }
.distribution-filters, .media-resource-filters { display: grid; grid-template-columns: minmax(190px, 1fr) 170px 150px auto auto; align-items: end; gap: 11px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.distribution-filters .form-field label, .media-resource-filters .form-field label { margin-bottom: 6px; }
.distribution-filters input, .distribution-filters select, .media-resource-filters input, .media-resource-filters select { height: 38px; }
.map-filters { grid-template-columns: minmax(230px, 1fr) 170px auto auto; }
.distribution-table { min-width: 1120px; }
.map-listing-table { min-width: 1450px; }
.distribution-task-table { min-width: 1250px; }
.distribution-table th, .distribution-table td, .distribution-task-table th, .distribution-task-table td { white-space: nowrap; }
.distribution-table td strong, .distribution-table td small, .distribution-task-table td strong, .distribution-task-table td small { display: block; }
.distribution-table td small, .distribution-task-table td small { margin-top: 4px; color: #9aa2b1; font-size: 10px; }
.distribution-target-link { display: block; max-width: 310px; margin-top: 4px; overflow: hidden; color: #5f55ce; font-size: 11px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.distribution-target-link:hover { text-decoration: underline; }
.distribution-table th:last-child, .distribution-table td:last-child, .distribution-task-table th:last-child, .distribution-task-table td:last-child { position: sticky; right: 0; z-index: 2; min-width: 190px; background: #fff; box-shadow: -9px 0 14px -14px rgba(33, 36, 64, .52); }
.distribution-table thead th:last-child, .distribution-task-table thead th:last-child { z-index: 3; background: #fbfcfe; }
.distribution-table tbody tr:hover td:last-child, .distribution-task-table tbody tr:hover td:last-child { background: #fafaff; }
.distribution-channel-chip, .distribution-platforms span { display: inline-flex; align-items: center; min-height: 24px; padding: 0 7px; border-radius: 5px; color: #554bc0; background: #f0efff; font-size: 11px; font-weight: 700; }
.distribution-platforms { display: flex; flex-wrap: wrap; gap: 5px; max-width: 230px; }
.distribution-platforms span:nth-child(2) { color: #26775f; background: #ebf8f3; }
.distribution-platforms span:nth-child(3) { color: #a96a22; background: #fff4e2; }
.distribution-actions { min-width: 170px; }
.distribution-notes-cell, .distribution-address-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.map-platform-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 13px 16px; border: 1px solid #dfe5ea; border-radius: 8px; background: #f8fbfa; }
.map-platform-band > div { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.map-platform-band span, .map-platform-band small { color: #8993a1; font-size: 11px; }
.map-platform-band b { display: inline-flex; align-items: center; gap: 5px; color: #466054; font-size: 12px; }
.map-platform-band b svg { width: 13px; color: #2b8b6c; }
.distribution-modal { width: min(94vw, 760px); max-height: 92vh; }
.distribution-task-modal { width: min(94vw, 820px); }
.official-publish-modal { width: min(94vw, 940px); }
.distribution-modal .modal-body { max-height: calc(92vh - 142px); overflow-y: auto; }
.distribution-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 13px; }
.distribution-form-grid .full { grid-column: 1 / -1; }
.distribution-form-grid label b { color: #df5c6b; }
.distribution-form-grid .form-field > small { display: block; margin-top: 6px; color: #9ba3b2; font-size: 11px; }
.distribution-form-grid textarea { width: 100%; padding: 10px 11px; outline: 0; border: 1px solid #e3e6ed; border-radius: 7px; color: #4f586b; background: #fbfcfe; font:  13px/1.65 var(--font); resize: vertical; }
.distribution-form-grid textarea:focus { border-color: #8e84f9; box-shadow: 0 0 0 3px rgba(101, 88, 245, .1); }
.official-destination-preview { display: flex; align-items: flex-start; gap: 10px; min-height: 58px; padding: 11px 12px; border: 1px solid #e2e6ed; border-radius: 8px; color: #788193; background: #f8f9fb; }
.official-destination-preview.ready { border-color: #cfe5db; color: #496e5e; background: #f1faf5; }
.official-destination-preview > svg { flex: 0 0 auto; width: 16px; margin-top: 2px; color: #7c75dc; }
.official-destination-preview.ready > svg { color: #2e9169; }
.official-destination-preview strong, .official-destination-preview span { display: block; overflow-wrap: anywhere; }
.official-destination-preview strong { font-size: 12px; }
.official-destination-preview span { margin-top: 4px; font-size: 11px; line-height: 1.5; }
.official-article-toolbar { display: grid; grid-template-columns: 160px minmax(220px, 1fr) auto auto; align-items: center; gap: 8px; margin-bottom: 9px; }
.official-article-toolbar > span { color: #7f8797; font-size: 11px; white-space: nowrap; }
.official-article-picker { max-height: 310px; overflow: auto; border: 1px solid #e3e6ed; border-radius: 8px; background: #fff; }
.official-article-picker table { width: 100%; border-collapse: collapse; }
.official-article-picker th, .official-article-picker td { padding: 9px 10px; border-bottom: 1px solid #edf0f4; color: #626b7e; font-size: 11px; text-align: left; vertical-align: middle; }
.official-article-picker th { position: sticky; top: 0; z-index: 1; color: #7e8798; background: #f8f9fb; font-weight: 700; }
.official-article-picker th:first-child, .official-article-picker td:first-child { width: 38px; text-align: center; }
.official-article-picker input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--primary); }
.official-article-picker td strong, .official-article-picker td small { display: block; }
.official-article-picker td strong { max-width: 520px; overflow: hidden; color: #414a5d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.official-article-picker td small { margin-top: 3px; color: #9aa2b1; font-size: 10px; }
.official-article-empty { padding: 28px; color: #9aa2b1; text-align: center; }
.map-coordinate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.distribution-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.distribution-check-grid label { position: relative; margin: 0; cursor: pointer; }
.distribution-check-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.distribution-check-grid span { display: grid; place-items: center; min-height: 40px; padding: 7px; border: 1px solid #e0e4eb; border-radius: 7px; color: #697285; background: #fbfcfe; font-size: 12px; font-weight: 600; }
.distribution-check-grid input:checked + span { border-color: #7f76e6; color: #5148bd; background: #f1efff; box-shadow: inset 0 0 0 1px rgba(101, 88, 245, .08); }
.distribution-tabs { display: flex; gap: 4px; margin-bottom: 14px; padding: 4px; border-bottom: 1px solid #e4e7ee; }
.distribution-tabs button { min-height: 34px; padding: 0 13px; border-bottom: 2px solid transparent; color: #7a8394; background: transparent; font-size: 12px; font-weight: 700; }
.distribution-tabs button.active { border-color: #675cf1; color: #5148bd; }
.media-resource-filters { grid-template-columns: minmax(220px, 1fr) 160px 140px auto auto; }
.media-resource-list { display: grid; }
.media-resource-list > article { display: grid; grid-template-columns: minmax(260px, 1.35fr) minmax(160px, .7fr) 100px 100px auto; align-items: center; gap: 15px; min-height: 92px; padding: 13px 20px; border-bottom: 1px solid #edf0f4; }
.media-resource-list > article:last-child { border-bottom: 0; }
.media-resource-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.media-resource-main > div { min-width: 0; }
.media-resource-logo { display: grid; place-items: center; flex: 0 0 auto; width: 39px; height: 39px; border-radius: 8px; color: #fff; background: #5f59bf; font-size: 16px; font-weight: 800; }
.media-resource-main strong, .media-resource-main small { display: block; }
.media-resource-main strong { color: #444d61; font-size: 13px; }
.media-resource-main small { margin-top: 4px; color: #9099a8; font-size: 11px; }
.media-resource-main p { margin: 5px 0 0; overflow: hidden; color: #9ba3b1; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.media-resource-weight { display: flex; flex-wrap: wrap; gap: 6px; }
.media-resource-weight span { padding: 5px 7px; border-radius: 5px; color: #7b8495; background: #f3f5f8; font-size: 10px; }
.media-resource-weight b { color: #4b5569; }
.media-resource-rate strong, .media-resource-rate small, .media-resource-price strong, .media-resource-price small { display: block; }
.media-resource-rate strong { color: #287b66; font-size: 15px; }
.media-resource-price strong { color: #c05c48; font-size: 15px; }
.media-resource-rate small, .media-resource-price small { margin-top: 3px; color: #9da5b3; font-size: 10px; }
.distribution-pipeline { display: grid; grid-template-columns: 1fr 20px 1fr 20px 1fr 20px 1fr; align-items: center; gap: 8px; margin-bottom: 14px; padding: 12px 15px; border: 1px solid #e3e6ed; border-radius: 8px; background: #fbfcfe; }
.distribution-pipeline > span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; color: #596378; }
.distribution-pipeline > span svg { width: 15px; color: #655be4; }
.distribution-pipeline > span b { font-size: 12px; }
.distribution-pipeline > svg { width: 14px; color: #b2b8c4; }
.distribution-integration-band { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 14px; padding: 13px 15px; border: 1px solid #e2e6ed; border-left: 3px solid #9aa3b2; border-radius: 8px; background: #fff; }
.distribution-integration-band.has-configured { border-left-color: #2d9a72; background: #fbfefd; }
.distribution-integration-band.loading { color: #8b94a5; background: #fbfcfe; }
.distribution-integration-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #6f7889; background: #f0f2f5; }
.distribution-integration-band.has-configured .distribution-integration-icon { color: #287b61; background: #eaf7f1; }
.distribution-integration-icon svg { width: 16px; }
.distribution-integration-copy { min-width: 0; }
.distribution-integration-copy > strong, .distribution-integration-copy > small { display: block; }
.distribution-integration-copy > strong { color: #3d4658; font-size: 13px; }
.distribution-integration-copy > small { margin-top: 4px; color: #8f98a8; font-size: 11px; line-height: 1.6; }
.distribution-integration-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.distribution-integration-chips span { display: inline-flex; align-items: center; gap: 4px; min-height: 23px; padding: 0 7px; border-radius: 5px; color: #7d8697; background: #f2f4f7; font-size: 10px; white-space: nowrap; }
.distribution-integration-chips span.configured { color: #287b61; background: #eaf7f1; }
.distribution-integration-chips svg { width: 11px; }
.distribution-integration-band > button, .status-chip { white-space: nowrap; }
.distribution-result-cell { min-width: 132px; max-width: 230px; }
.distribution-result-link, .distribution-result-error, .distribution-result-auto, .distribution-result-manual { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; font-size: 11px; line-height: 1.45; }
.distribution-result-link { color: #287b61; font-weight: 700; }
.distribution-result-error { overflow: hidden; color: #c15364; text-overflow: ellipsis; white-space: nowrap; }
.distribution-result-auto { color: #5d55bf; }
.distribution-result-manual { color: #8a93a3; }
.distribution-result-link svg, .distribution-result-error svg, .distribution-result-auto svg, .distribution-result-manual svg { flex: 0 0 auto; width: 12px; }

@media (max-width: 1050px) {
  .distribution-filters, .media-resource-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .distribution-filters > button, .media-resource-filters > button { min-height: 38px; }
  .media-resource-list > article { grid-template-columns: minmax(240px, 1fr) 150px 90px auto; }
  .media-resource-price { display: none; }
}

@media (max-width: 760px) {
  .distribution-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .distribution-pipeline { grid-template-columns: 1fr; }
  .distribution-pipeline > svg { display: none; }
  .media-resource-list > article { grid-template-columns: minmax(0, 1fr) auto; gap: 11px; }
  .media-resource-weight, .media-resource-rate { grid-column: 1; }
  .media-resource-list > article > button { grid-column: 2; grid-row: 1 / span 3; }
  .distribution-integration-band { grid-template-columns: 34px minmax(0, 1fr); align-items: start; padding: 12px; }
  .distribution-integration-band > button { grid-column: 2; justify-self: start; min-height: 34px; }
}

@media (max-width: 620px) {
  .distribution-summary article { min-height: 68px; padding: 11px; }
  .distribution-section-head { align-items: flex-start; flex-direction: column; padding-inline: 14px; }
  .distribution-section-head > button { width: 100%; }
  .distribution-filters, .media-resource-filters { grid-template-columns: 1fr; padding-inline: 14px; }
  .map-platform-band { align-items: flex-start; flex-direction: column; }
  .distribution-modal, .distribution-task-modal { width: 100%; max-height: 96vh; }
  .distribution-modal .modal-body { max-height: calc(96vh - 138px); }
  .distribution-form-grid { grid-template-columns: 1fr; }
  .distribution-form-grid .full { grid-column: auto; }
  .official-article-toolbar { grid-template-columns: 1fr; }
  .official-article-toolbar > button { width: 100%; }
  .distribution-check-grid { grid-template-columns: 1fr; }
  .map-coordinate-fields { grid-template-columns: 1fr; }
  .media-resource-list > article { padding-inline: 14px; }
  .media-resource-list > article > button { align-self: center; }
  .channel-integration-modal .modal-footer button { min-width: 0; padding-inline: 7px; gap: 5px; white-space: nowrap; font-size: 12px; }
}
/* AI sales agent workspace */
.lead-mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.lead-mode-switch button { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; align-items: center; gap: 2px 9px; padding: 12px 14px; border: 1px solid #dfe5e8; border-radius: 8px; color: #5d6978; background: #fff; text-align: left; cursor: pointer; }
.lead-mode-switch button > svg { grid-row: 1 / span 2; width: 18px; color: #718092; }
.lead-mode-switch button span { font-size: 13px; font-weight: 800; }
.lead-mode-switch button small { color: #8c97a5; font-size: 10px; }
.lead-mode-switch button.active { border-color: #2c9275; color: #226b58; background: #f3fbf7; box-shadow: 0 0 0 2px rgba(44,146,117,.1); }
.lead-mode-switch button.active > svg { color: #2c9275; }
.lead-agent-workbench { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr); gap: 14px; margin-bottom: 14px; }
.lead-agent-form, .lead-agent-side { min-width: 0; padding: 18px; border: 1px solid #e1e7e9; border-radius: 9px; background: #fff; }
.lead-workbench-heading, .lead-side-heading, .lead-campaigns-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lead-workbench-heading h2 { margin: 5px 0 4px; color: #344253; font-size: 17px; }
.lead-workbench-heading p { margin: 0; color: #8a95a2; font-size: 11px; line-height: 1.55; }
.lead-live-state { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 5px; color: #2b8068; background: #eaf7f1; font-size: 10px; white-space: nowrap; }
.lead-live-state svg { width: 12px; }
.lead-agent-form .lead-form-grid { margin-top: 14px; }
.lead-agent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lead-agent-actions button:disabled { opacity: .5; cursor: not-allowed; }
.lead-plan-result { margin-top: 14px; padding: 13px; border: 1px solid #e1e8e5; border-radius: 7px; background: #fbfefd; }
.lead-plan-empty, .lead-sequence-empty { display: flex; align-items: center; gap: 8px; color: #89958f; font-size: 11px; line-height: 1.5; }
.lead-plan-empty svg, .lead-sequence-empty svg { flex: 0 0 auto; width: 16px; color: #3e9878; }
.lead-plan-summary { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; }
.lead-plan-summary strong { flex: 1 1 240px; color: #405149; font-size: 12px; line-height: 1.55; }
.lead-plan-summary .status-chip { display: inline-flex; align-items: center; gap: 4px; }
.lead-plan-summary .status-chip svg { width: 11px; }
.lead-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.lead-plan-grid section { min-height: 63px; padding: 9px; border: 1px solid #e9edef; border-radius: 6px; background: #fff; }
.lead-plan-grid label { display: block; margin-bottom: 5px; color: #8b96a1; font-size: 10px; }
.lead-plan-grid section div { display: flex; flex-wrap: wrap; gap: 4px; }
.lead-plan-grid section span { padding: 3px 5px; border-radius: 4px; color: #4d6470; background: #f0f5f4; font-size: 10px; line-height: 1.35; }
.lead-plan-grid section span.muted-cell { background: transparent; color: #9aa2aa; }
.lead-plan-source { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; color: #7e8c89; font-size: 10px; line-height: 1.5; }
.lead-plan-source svg { flex: 0 0 auto; width: 13px; color: #6a9c8b; }
.lead-side-heading h3 { margin: 3px 0 0; color: #3c4858; font-size: 14px; }
.lead-analytics { margin-top: 12px; }
.lead-analytics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.lead-analytics-grid div { padding: 8px 6px; border-radius: 6px; background: #f7f9fa; text-align: center; }
.lead-analytics-grid strong, .lead-analytics-grid span { display: block; }
.lead-analytics-grid strong { color: #3d5660; font-size: 17px; }
.lead-analytics-grid span { margin-top: 3px; color: #8b969e; font-size: 9px; }
.lead-analytics-bars { display: grid; gap: 8px; margin-top: 12px; }
.lead-analytics-bars span { display: grid; grid-template-columns: 70px 1fr 25px; align-items: center; gap: 6px; }
.lead-analytics-bars b { color: #68747f; font-size: 10px; font-weight: 700; }
.lead-analytics-bars i { display: block; height: 5px; border-radius: 4px; background: #6ea58f; }
.lead-analytics-bars em { color: #6b7885; font-size: 10px; font-style: normal; text-align: right; }
.lead-data-source-list { display: grid; gap: 7px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #edf0f1; }
.lead-data-source-list strong { color: #52606a; font-size: 11px; }
.lead-data-source-list span { display: flex; align-items: flex-start; gap: 6px; color: #8a969d; font-size: 10px; line-height: 1.4; }
.lead-data-source-list svg { flex: 0 0 auto; width: 12px; color: #899aa1; }
.lead-campaigns-heading { align-items: center; margin-top: 15px; padding-top: 13px; border-top: 1px solid #edf0f1; }
.lead-campaigns-heading strong { color: #52606a; font-size: 11px; }
.lead-campaign-list { display: grid; gap: 5px; margin-top: 7px; }
.lead-campaign-item { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 4px; width: 100%; padding: 3px; border: 1px solid #edf0f1; border-radius: 6px; color: inherit; background: #fff; }
.lead-campaign-item:hover { border-color: #c6ddd4; background: #fbfefd; }
.lead-campaign-open { display: grid; grid-template-columns: 25px minmax(0, 1fr) 14px; align-items: center; gap: 7px; min-width: 0; width: 100%; padding: 5px; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.lead-campaign-item > .lead-campaign-open > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 5px; color: #31836c; background: #e8f4ef; }
.lead-campaign-item > span svg { width: 13px; }
.lead-campaign-item strong, .lead-campaign-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-campaign-item strong { color: #56616d; font-size: 10px; }
.lead-campaign-item small { margin-top: 3px; color: #9aa3aa; font-size: 9px; }
.lead-campaign-open > svg { width: 12px; color: #a2acb2; }
.lead-campaign-delete { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 5px; color: #aab2b7; background: transparent; cursor: pointer; }
.lead-campaign-delete:hover, .lead-campaign-delete:focus-visible { color: #c44747; background: #fff1f1; }
.lead-campaign-delete svg { width: 14px; height: 14px; }
.lead-campaign-empty { padding: 10px 0; color: #9aa3aa; font-size: 10px; }
.lead-outreach-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lead-sequence-list { display: grid; gap: 7px; margin-top: 9px; }
.lead-sequence-list article { display: grid; grid-template-columns: 43px minmax(0, 1fr) 26px; gap: 9px; align-items: start; padding: 9px; border: 1px solid #e8eeeb; border-radius: 6px; background: #fff; }
.lead-sequence-list article > span { color: #31816a; font-size: 10px; font-weight: 800; }
.lead-sequence-list article strong, .lead-sequence-list article small, .lead-sequence-list article p { display: block; }
.lead-sequence-list article strong { color: #4d5c68; font-size: 11px; }
.lead-sequence-list article small { margin-top: 3px; color: #87958f; font-size: 9px; }
.lead-sequence-list article p { margin: 6px 0 0; color: #6f7d84; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.lead-sequence-list .icon-button { width: 24px; height: 24px; }
.lead-sequence-list .icon-button svg { width: 12px; }

@media (max-width: 900px) {
  .lead-agent-workbench { grid-template-columns: 1fr; }
  .lead-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .lead-mode-switch { grid-template-columns: 1fr; }
  .lead-plan-grid { grid-template-columns: 1fr; }
  .lead-analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.account-settings-modal { width: min(100%, 560px); }
.account-summary { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid #e8eaf2; border-radius: 10px; background: #fafbfe; }
.account-summary-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #f0b489, #c97980); font-weight: 700; }
.account-summary strong, .account-summary small { display: block; }
.account-summary strong { color: #3f4659; font-size: 14px; }
.account-summary small { margin-top: 4px; color: #8f97a8; font-size: 12px; }
.account-divider { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 14px; padding-bottom: 9px; border-bottom: 1px solid #eceef3; }
.account-divider span { color: #3f485c; font-size: 14px; font-weight: 700; }
.account-divider small, .account-password-hint { color: #9aa2b1; font-size: 11px; }
.account-password-hint { margin: 12px 0 0; line-height: 1.6; }
