:root {
  --ink: #17211b;
  --muted: #6e756f;
  --line: #e4e8e4;
  --soft-line: #eef0ee;
  --paper: #ffffff;
  --canvas: #f5f6f4;
  --green: #1f7a50;
  --green-dark: #145437;
  --green-soft: #e7f3eb;
  --amber: #ce7d2a;
  --amber-soft: #fff1df;
  --blue: #4a6f9d;
  --blue-soft: #eaf0f7;
  --red: #b94e42;
  --red-soft: #faebe8;
  --violet: #7766a6;
  --shadow: 0 10px 35px rgba(32, 43, 36, .055);
  --radius: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.auth-locked { overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; }
.auth-locked .app-shell { display: none; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, 1.1fr) minmax(420px, .9fr); background: white; }
.login-visual { min-height: 100vh; position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 58px); color: white; background: linear-gradient(145deg, #102b1d 0%, #16472e 62%, #245f40 100%); isolation: isolate; }
.login-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }.login-brand .brand-symbol { width: 38px; height: 38px; }.login-brand strong { display: block; font-size: 19px; letter-spacing: .1em; }.login-brand small { display: block; margin-top: 2px; color: #8eb29c; font-size: 10px; letter-spacing: .13em; }
.login-message { position: relative; z-index: 2; margin: auto 0; max-width: 590px; }.login-kicker { display: inline-block; margin-bottom: 23px; color: #8fc5a1; font-size: 10px; font-weight: 700; letter-spacing: .25em; }.login-message h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(40px, 5vw, 67px); font-weight: 400; line-height: 1.15; letter-spacing: -.045em; }.login-message > p { max-width: 440px; margin: 24px 0 32px; color: #a8c2b1; font-size: 14px; line-height: 1.8; }.login-proof { width: fit-content; display: flex; align-items: center; gap: 14px; padding: 13px 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }.login-proof > span { font-family: Georgia, serif; font-size: 28px; color: #b8dfc2; }.login-proof p { margin: 0; color: #92aa9b; font-size: 10px; line-height: 1.5; }.login-proof strong { color: white; font-size: 11px; }
.visual-orbit { position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; z-index: 0; }.visual-orbit.one { width: 520px; height: 520px; right: -150px; bottom: -180px; }.visual-orbit.two { width: 330px; height: 330px; right: -60px; bottom: -90px; }.visual-glow { position: absolute; right: -30px; bottom: -50px; width: 300px; height: 300px; border-radius: 50%; background: rgba(112,190,135,.15); filter: blur(40px); }.login-copyright { position: relative; z-index: 2; margin: 0; color: #668772; font-size: 9px; letter-spacing: .08em; }
.login-panel { min-height: 100vh; display: grid; place-items: center; padding: 45px; background: #fbfcfb; }.login-form { width: min(100%, 380px); }.login-form-head > span { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }.login-form-head h2 { margin: 10px 0 7px; font-family: Georgia, "Songti SC", serif; font-size: 32px; font-weight: 500; }.login-form-head p { margin: 0 0 33px; color: var(--muted); font-size: 12px; }
.login-field { display: grid; gap: 8px; margin-bottom: 17px; }.login-field > span { font-size: 11px; font-weight: 600; }.login-field > div { height: 46px; display: flex; align-items: center; gap: 9px; border: 1px solid #dfe4e0; border-radius: 11px; padding: 0 12px; background: white; transition: .18s ease; }.login-field > div:focus-within { border-color: #6e9a80; box-shadow: 0 0 0 3px #eaf2ec; }.login-field i { color: #849088; font-style: normal; }.login-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; }.login-field button { border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 10px; }
.login-options { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 4px; color: #737b76; font-size: 10px; }.login-options label { display: flex; align-items: center; gap: 6px; }.login-options input { accent-color: var(--green-dark); }.login-options button { border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 10px; }.login-error { min-height: 24px; margin: 3px 0; color: var(--red); font-size: 10px; }
.login-button { width: 100%; height: 46px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 11px; color: white; background: var(--green-dark); box-shadow: 0 9px 22px rgba(20,84,55,.18); cursor: pointer; font-weight: 600; font-size: 12px; transition: .2s ease; }.login-button:hover { background: #103f2a; transform: translateY(-1px); }.login-button.loading { pointer-events: none; opacity: .72; }
.demo-account { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 18px; color: #87908a; font-size: 9px; }.demo-account span { padding: 3px 6px; border-radius: 5px; color: #4e6657; background: #edf3ef; }.demo-account strong { color: #47524b; font-weight: 600; }.demo-account i { font-style: normal; color: #bcc2be; }.security-copy { display: flex; gap: 6px; justify-content: center; margin: 26px 0 0; color: #9aa09c; font-size: 9px; line-height: 1.5; }.security-copy span { color: var(--green); }
body:not(.auth-locked) .login-screen { display: none; }
.auth-gate { position:fixed; inset:0; z-index:9999; display:grid; place-content:center; justify-items:center; gap:12px; color:#e8c868; background:radial-gradient(circle at 50% 42%,#30220f 0,#11100d 38%,#050505 78%); }
.auth-gate .brand-symbol { width:54px; height:54px; margin-bottom:6px; }
.auth-gate strong { font:700 24px/1 "Songti SC",serif; letter-spacing:.2em; }
.auth-gate p { margin:0; color:#a9956d; font-size:12px; letter-spacing:.08em; }
.auth-gate button { border:1px solid #e8c86866; border-radius:10px; padding:9px 16px; color:#f5d979; background:#e8c86814; font:600 13px/1 system-ui,"PingFang SC",sans-serif; cursor:pointer; }
body:not(.auth-locked) .auth-gate { display:none; }
.auth-locked .app-shell { visibility:hidden; }
.mobile-install-gate { display: none; }

.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; padding: 26px 18px 18px; background: #17281f; color: #eff7f1; display: flex; flex-direction: column; z-index: 20; }
.brand-mark { display: flex; gap: 12px; align-items: center; padding: 0 10px 28px; }
.brand-mark strong { display: block; font-size: 18px; letter-spacing: .08em; }
.brand-mark small { display: block; color: #89a395; font-size: 11px; margin-top: 2px; letter-spacing: .15em; }
.brand-symbol { width: 34px; height: 34px; border-radius: 10px; background: #e6f2e8; display: flex; justify-content: center; align-items: flex-end; gap: 3px; padding-bottom: 9px; }
.brand-symbol i { display: block; width: 4px; border-radius: 4px; background: var(--green-dark); transform: rotate(24deg); }
.brand-symbol i:nth-child(1) { height: 9px; }.brand-symbol i:nth-child(2) { height: 16px; }.brand-symbol i:nth-child(3) { height: 11px; }
.nav { display: grid; gap: 5px; }
.nav-item, .quick-filter { border: 0; background: transparent; color: #9fb1a7; min-height: 43px; border-radius: 10px; display: flex; align-items: center; gap: 11px; padding: 0 12px; cursor: pointer; text-align: left; transition: .2s ease; }
.nav-item { width: 100%; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.085); }
.nav-item.active { box-shadow: inset 2px 0 #85c899; }
.nav-icon { font-size: 19px; width: 20px; text-align: center; }
.nav-count { margin-left: auto; font-size: 11px; padding: 2px 7px; border-radius: 10px; background: rgba(255,255,255,.1); }
.alert-dot { margin-left: auto; width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; border-radius: 50%; background: #c56b42; color: white; }
.api-status-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #d18a45; box-shadow: 0 0 0 4px rgba(209,138,69,.1); }.api-status-dot.ready { background: #65bd83; box-shadow: 0 0 0 4px rgba(101,189,131,.12); }
.sidebar-section { border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding-top: 20px; }
.sidebar-label { margin: 0 12px 9px; color: #657d70; text-transform: uppercase; font-size: 10px; letter-spacing: .16em; }
.quick-filter { width: 100%; min-height: 36px; font-size: 13px; }
.quick-filter:hover { color: white; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; }.status-dot.green { background: #6fc48c; }.status-dot.orange { background: #e69b54; }.status-dot.gray { background: #78877f; }
.sidebar-footer { margin-top: auto; display: grid; gap: 12px; }
.help-card, .user-card { border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.045); border-radius: 12px; color: white; display: flex; align-items: center; gap: 10px; padding: 11px; text-align: left; }
.help-card { cursor: pointer; width: 100%; }.help-card > span:last-child { margin-left: auto; color: #809389; }
.help-card strong, .user-card strong { display: block; font-size: 12px; font-weight: 600; }.help-card small, .user-card small { display: block; color: #82958b; font-size: 10px; margin-top: 2px; }
.help-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: #355344; font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #1e4931; background: #a4d5b1; font-size: 11px; font-weight: 700; }
.avatar img { width:100%; height:100%; border-radius:inherit; object-fit:cover; }
.user-card-actions { margin-left:auto; display:flex; align-items:center; gap:5px; }
.user-card-actions > a,.user-card-actions > button { width:27px; height:27px; display:grid; place-items:center; padding:0; border:0; border-radius:8px; color:#7d9286; background:transparent; cursor:pointer; text-decoration:none; font-size:12px; }
.user-card-actions > a[hidden] { display:none; }
.user-card-actions > a:hover,.user-card-actions > button:hover { color:white; background:rgba(255,255,255,.09); }

.main { margin-left: 232px; min-height: 100vh; padding: 31px 34px 50px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.eyebrow { margin: 0 0 5px; color: var(--green); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 700; }
.title-block h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(27px, 3vw, 36px); font-weight: 500; letter-spacing: -.025em; }
.title-block > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.top-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.sync-state { color: var(--muted); font-size: 11px; margin-right: 7px; }.sync-state b { font-weight:400; }.sync-state span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #50ac73; margin-right: 6px; box-shadow: 0 0 0 4px #e4f2e8; }.sync-state.pending span { background:#d18a45; box-shadow:0 0 0 4px #f7eadb; }
.segmented { padding: 3px; display: flex; background: #e9ece9; border-radius: 10px; }
.segmented button, .view-tabs button { border: 0; background: transparent; color: var(--muted); padding: 7px 12px; border-radius: 8px; cursor: pointer; font-size: 12px; }
.segmented button.active, .view-tabs button.active { background: white; color: var(--ink); box-shadow: 0 2px 7px rgba(20,40,27,.08); }
.date-picker-control { min-height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: white; font-size: 10px; }
.date-picker-control span { white-space: nowrap; }
.date-picker-control input { width: 112px; height:34px; padding:0 6px; border: 0; border-radius:7px; outline: 0; color: var(--ink); background: transparent; font-size: 11px; cursor: pointer; transition:background .16s ease; }
.date-picker-control input:hover { background:rgba(214,179,95,.08); }
.date-picker-control i { color:#9aa49e; font-style:normal; }
.date-picker-control:focus-within { border-color: #85aa94; box-shadow: 0 0 0 3px #eaf2ec; }
.date-controls { display: grid; gap: 6px; }
.date-preset-bar { display: flex; align-items: center; gap: 3px; padding: 3px; border-radius: 9px; background: #e9ece9; }
.date-preset-bar button { flex: 1; min-width: 43px; padding: 5px 7px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 9px; white-space: nowrap; }
.date-preset-bar button.active { color: var(--green-dark); background: white; box-shadow: 0 2px 7px rgba(20,40,27,.08); font-weight: 700; }
.icon-button, .outline-button, .primary-button, .text-button, .close-button { border: 0; cursor: pointer; transition: .18s ease; }
.icon-button { width: 36px; height: 36px; border-radius: 10px; background: white; border: 1px solid var(--line); font-size: 18px; }
.icon-button:hover { transform: rotate(18deg); border-color: #b5c4ba; }
.primary-button { min-height: 37px; padding: 0 16px; border-radius: 10px; color: white; background: var(--green-dark); box-shadow: 0 5px 13px rgba(20,84,55,.16); font-size: 12px; font-weight: 600; }
.primary-button:hover { background: #103f2a; transform: translateY(-1px); }
.outline-button { min-height: 34px; padding: 0 13px; border-radius: 9px; color: #4d5a52; background: white; border: 1px solid var(--line); font-size: 12px; }
.outline-button:hover { border-color: #a9b9ae; color: var(--green-dark); }
.text-button { background: transparent; color: var(--green); padding: 6px; font-size: 12px; }
.mobile-brand { display: none; }
.table-view-toolbar { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; margin-bottom:12px; padding:9px 10px; border:1px solid #4b3b1d; border-radius:11px; background:linear-gradient(115deg,#14110b,#0e0e0c); box-shadow:0 9px 22px rgba(0,0,0,.12); }.panel-table-toolbar { margin:12px 20px 0; }.table-view-preset { display:flex; align-items:center; gap:8px; height:34px; padding:0 9px; border:1px solid #4a3a20; border-radius:9px; color:#9b8c70; font-size:9px; }.table-view-preset select,.rejection-tools select,.inline-owner-select { height:30px; padding:0 24px 0 9px; border:1px solid #554323; border-radius:8px; color:#f1d985; background:#17130c; outline:none; font-size:9px; }.table-view-preset select { border:0; padding-left:0; }.table-time-button { height:34px; display:flex; align-items:center; gap:8px; padding:0 11px; border:1px solid #4a3a20; border-radius:9px; color:#b2a385; background:#11100d; cursor:pointer; }.table-time-button strong { color:#f0d680; font-size:10px; }.table-time-button span,.table-time-button i { font-size:8px; font-style:normal; }.table-view-toolbar .outline-button { min-height:34px; color:#d9c27a; border-color:#554323; background:#17130c; }
.brand-motto { flex:1; min-width:220px; min-height:82px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; padding:0 16px 4px; text-align:center; pointer-events:none; }
.brand-motto-line { position:relative; display:block; width:max-content; max-width:100%; color:transparent; background:linear-gradient(180deg,#fff5b7 0%,#e7bd51 46%,#a56f19 100%); -webkit-background-clip:text; background-clip:text; font-family:"FZKai-Z03","STKaiti","Kaiti SC","KaiTi","楷体",serif; font-weight:700; font-style:italic; line-height:1; white-space:nowrap; text-shadow:0 0 24px rgba(232,189,78,.12); filter:drop-shadow(0 5px 10px rgba(181,127,29,.18)); transform:skewX(-3deg); transform-origin:center; }
.motto-line-primary { margin-right:1.8em; font-size:clamp(24px,2.05vw,36px); letter-spacing:.24em; }
.motto-line-secondary { margin-left:1.5em; font-size:clamp(27px,2.3vw,41px); letter-spacing:.14em; }
.motto-line-secondary::after { content:""; position:absolute; left:-8%; right:-10%; bottom:-8px; height:9px; border-bottom:1px solid rgba(210,159,53,.55); border-radius:0 0 62% 38%; transform:rotate(-1.5deg); }

.view { display: none; animation: viewIn .32s ease; }.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 15px; }
.metric-card, .panel { background: var(--paper); border: 1px solid var(--soft-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.metric-card { padding: 18px 19px 16px; position: relative; overflow: hidden; min-height: 148px; }
.accent-card { background: #173f2b; color: white; border-color: #173f2b; }
.metric-heading { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }.accent-card .metric-heading { color: #aac0b1; }
.metric-icon { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; color: #4d765e; background: #edf4ef; font-size: 12px; font-weight: 700; }
.metric-icon.amber { color: #a56e2a; background: var(--amber-soft); }.metric-icon.violet { color: var(--violet); background: #f0edf7; }.metric-icon.blue { color: var(--blue); background: var(--blue-soft); }
.metric-value { display: block; margin-top: 12px; font-family: "Segoe UI", Arial, "Microsoft YaHei", sans-serif; font-size: clamp(24px, 2.1vw, 31px); font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
.metric-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #959b97; font-size: 10px; }
.trend { padding: 3px 6px; border-radius: 5px; font-weight: 600; }.trend.up { color: #2c8558; background: #e7f3eb; }.accent-card .trend.up { color: #b8e0c3; background: rgba(255,255,255,.1); }.trend.down { color: #b4634f; background: #faece8; }
.card-sparkline { position: absolute; right: 0; bottom: 0; width: 98px; height: 42px; opacity: .72; }
.progress { position: absolute; left: 19px; right: 19px; bottom: 16px; height: 4px; background: #edf0ed; border-radius: 5px; overflow: hidden; }.progress i { height: 100%; background: var(--violet); display: block; border-radius: 5px; }.blue-progress i { background: var(--blue); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr); gap: 15px; margin-bottom: 15px; }
.panel { overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--soft-line); }
.panel-header.compact { padding-bottom: 14px; }
.panel-header h2 { margin: 0; font-size: 14px; letter-spacing: -.01em; }.panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.panel-tools, .material-toolbar, .filter-group { display: flex; align-items: center; gap: 9px; }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 10px; }.legend span { display: flex; align-items: center; gap: 5px; }.legend i { width: 9px; height: 9px; display: inline-block; border-radius: 3px; }.legend-spend { background: #4f8b68; }.legend-revenue { background: #e7b765; }
.chart-wrap { height: 252px; padding: 9px 13px 12px; }.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-empty { height:100%; display:grid; place-content:center; justify-items:center; gap:8px; padding:26px; text-align:center; color:var(--muted); border:1px dashed var(--soft-line); border-radius:12px; background:color-mix(in srgb,var(--surface) 82%,transparent); }.chart-empty strong { color:var(--ink); font-size:13px; }.chart-empty span { max-width:440px; font-size:10px; line-height:1.7; }
.chart-label { fill: #8b928e; font-size: 9px; }.chart-grid { stroke: #edf0ed; stroke-width: 1; stroke-dasharray: 3 4; }.chart-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }.chart-area { opacity: .1; }
.chart-point { stroke: white; stroke-width: 2; }.chart-tip-text { fill: white; font-size: 9px; font-weight: 700; }
.alert-list { padding: 4px 17px 13px; }
.mini-alert { display: flex; align-items: flex-start; gap: 11px; padding: 13px 2px; border-bottom: 1px solid var(--soft-line); }.mini-alert:last-child { border-bottom: 0; }
.alert-symbol { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); font-weight: 700; font-size: 12px; }
.alert-symbol.red { background: var(--red-soft); color: var(--red); }.alert-symbol.blue { background: var(--blue-soft); color: var(--blue); }
.mini-alert strong { display: block; font-size: 11px; line-height: 1.45; }.mini-alert p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.mini-alert time { display: block; color: #a3a8a5; margin-top: 5px; font-size: 9px; }
.project-panel { margin-top: 0; }
.search-box { display: flex; align-items: center; width: 190px; gap: 7px; padding: 0 10px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #97a09a; }.search-box.large { width: 270px; }
.search-box:focus-within { border-color: #85aa94; box-shadow: 0 0 0 3px #eaf2ec; }.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 11px; background: transparent; }.search-box input::placeholder { color: #a8adaa; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th { padding: 10px 17px; color: #89908c; background: #fafbfa; border-bottom: 1px solid var(--soft-line); text-align: left; font-size: 9px; font-weight: 600; letter-spacing: .04em; }
td { padding: 13px 17px; border-bottom: 1px solid var(--soft-line); font-size: 11px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }.clickable-row { cursor: pointer; }.clickable-row:hover td { background: #fbfcfb; }
.project-identity { display: flex; align-items: center; gap: 10px; }.project-logo { width: 33px; height: 33px; border-radius: 10px; display: grid; place-items: center; font-family: Georgia, serif; font-weight: 700; font-size: 14px; }.project-identity strong { display: block; font-size: 11px; }.project-identity small { display: block; color: #8b918d; font-size: 9px; margin-top: 3px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 20px; font-size: 9px; font-weight: 600; }.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }.status-pill.running { color: #28734d; background: var(--green-soft); }.status-pill.running::before { background: #3e9b67; }.status-pill.risk { color: #a56625; background: var(--amber-soft); }.status-pill.risk::before { background: #d78938; }.status-pill.paused { color: #737a76; background: #eef0ef; }.status-pill.paused::before { background: #929995; }
.roas-strong { color: var(--green); font-weight: 700; }.roas-low { color: var(--red); font-weight: 700; }
.budget-cell { min-width: 118px; }.budget-meta { display: flex; justify-content: space-between; gap:8px; color: #7f8681; font-size: 9px; margin-bottom: 5px; }.budget-bar { height: 4px; background: #ecefed; border-radius: 4px; overflow: hidden; }.budget-bar i { display: block; height: 100%; border-radius: 4px; background: #6a9d7d; }.budget-bar i.risk { background: #d58b42; }.secondary-budget-bar { margin-top:5px; }.project-budget-progress { display:grid; gap:10px; }.project-budget-progress + .project-card-footer { margin-top:16px; }
.row-action { border: 0; background: transparent; color: #8c948f; cursor: pointer; font-size: 17px; }

.view-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 16px; }
.view-tabs { display: flex; align-items: center; gap: 4px; padding: 4px; background: #e8ebe8; border-radius: 11px; }
.project-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.project-card { background: white; border: 1px solid var(--soft-line); border-radius: 15px; padding: 18px; box-shadow: var(--shadow); cursor: pointer; transition: .2s ease; }.project-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(34,49,39,.09); border-color: #dce4de; }
.project-card-top { display: flex; align-items: flex-start; justify-content: space-between; }.project-card .project-logo { width: 40px; height: 40px; }.project-card-actions { display:flex; align-items:center; gap:6px; }.edit-project-button { border:0; border-radius:999px; padding:6px 9px; font:inherit; font-size:9px; cursor:pointer; transition:.18s ease; color:#326b4a; background:#edf5ef; }.edit-project-button:hover { color:#24563a; background:#dfeee3; }.drawer-actions { display:grid; grid-template-columns:1fr auto; gap:10px; }.drawer-actions .primary-button { width:100%; }.drawer-readonly-note { align-self:center; color:var(--muted); font-size:10px; }.danger-button { border:1px solid #e9c7c2; background:#fff; color:#a9483e; border-radius:10px; padding:10px 15px; font:inherit; font-size:11px; font-weight:700; cursor:pointer; }.danger-button:hover { background:#fff4f2; border-color:#dfa79f; }
.project-card h3 { margin: 15px 0 4px; font-size: 15px; }.project-card .account-id { color: var(--muted); font-size: 10px; }
.project-card-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 8px; margin: 20px 0 17px; }.project-card-metrics > div { min-width: 0; }.project-card-metrics span { display: block; color: #8b918d; font-size: 9px; }.project-card-metrics strong { display: block; margin-top: 5px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.project-card-metrics .metric-pending { color: #929995; font-size: 11px; font-weight: 500; }
.project-card-footer { padding-top: 14px; border-top: 1px solid var(--soft-line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }.owner-chip { display: flex; align-items: center; gap: 6px; }.owner-chip i { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #edf2ee; color: #4c6757; font-style: normal; font-size: 8px; font-weight: 700; }
.empty-card { min-height: 240px; border: 1px dashed #ccd5cf; background: rgba(255,255,255,.55); border-radius: 15px; display: grid; place-items: center; text-align: center; padding: 25px; color: var(--muted); }.empty-card strong { display: block; color: var(--ink); margin-bottom: 6px; }

.material-toolbar { margin-bottom: 15px; justify-content: flex-end; }.filter-group { margin-right: auto; }.filter-group select { height: 35px; min-width: 150px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #48524c; outline: 0; padding: 0 32px 0 11px; font-size: 11px; }
.material-summary { display: grid; grid-template-columns: repeat(4, 1fr); background: white; border: 1px solid var(--soft-line); border-radius: 14px; padding: 15px 0; margin-bottom: 15px; box-shadow: var(--shadow); }.material-summary div { padding: 1px 20px; border-right: 1px solid var(--soft-line); }.material-summary div:last-child { border-right: 0; }.material-summary span { color: var(--muted); font-size: 10px; }.material-summary strong { display: block; margin-top: 7px; font-family: "Segoe UI", Arial, "Microsoft YaHei", sans-serif; font-size: 21px; font-weight: 600; letter-spacing:0; font-variant-numeric:tabular-nums lining-nums; font-feature-settings:"tnum" 1,"lnum" 1; }
.material-table-scroll { max-height: min(62vh, 680px); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.material-table { min-width: 1060px; transition: min-width .2s ease; }.material-table thead { position: sticky; top: 0; z-index: 4; background:#fafbfa; box-shadow:0 1px 0 var(--soft-line); }.material-table th { position: static; background:#fafbfa; }.material-total-row td { padding-top:8px; padding-bottom:9px; border-top:1px solid #e5eae6; border-bottom:1px solid #dce4de; color:#214c34; background:#f1f7f3; font-size:10px; font-weight:700; white-space:nowrap; }.material-total-label strong { display:block; color:#17482f; font-size:11px; }.material-total-label small { display:block; margin-top:2px; color:#789083; font-size:8px; font-weight:500; }.material-cell { display: flex; align-items: center; gap: 10px; min-width: 205px; }.material-thumb { flex: 0 0 44px; position: relative; width: 44px; height: 44px; border-radius: 9px; display: grid; place-items: center; color: rgba(255,255,255,.85); overflow: hidden; font-size: 16px; }.material-thumb::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.8); position: absolute; }.material-thumb.video::after { clip-path: polygon(25% 10%, 90% 50%, 25% 90%); border-radius: 0; background: white; }.material-cell strong { display: block; max-width: 148px; text-overflow: ellipsis; overflow: hidden; }.material-cell small { display: block; color: #959b97; margin-top: 4px; font-size: 9px; }
.column-config-button { display: inline-flex; align-items: center; gap: 6px; }.column-config-button > span { color: var(--green); font-size: 14px; }.column-config-button i { padding-left: 7px; border-left: 1px solid var(--line); color: #919893; font-size: 9px; font-style: normal; }
.id-cell { color: #657069; font: 500 10px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: -.02em; }
.material-note-id-button { min-width:118px; display:grid; justify-items:start; gap:3px; padding:6px 8px; border:1px solid var(--line); border-radius:8px; color:var(--blue-accent); background:var(--field); text-align:left; cursor:pointer; }
.material-note-id-button:hover { border-color:var(--blue-accent); background:var(--blue-soft); }
.material-note-id-button:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.material-note-id-button .id-cell { max-width:170px; overflow:hidden; color:inherit; text-overflow:ellipsis; white-space:nowrap; }
.material-note-id-button small { color:var(--muted); font-size:8px; }
.material-note-actions { display:grid; justify-items:start; gap:3px; }
.material-note-preview-button { padding:0; border:0; color:var(--muted); background:transparent; font-size:8px; cursor:pointer; }
.material-note-preview-button:hover { color:var(--blue-accent); text-decoration:underline; }
.review-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 20px; font-size: 9px; font-weight: 600; }.review-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }.review-pill.approved { color: #28734d; background: var(--green-soft); }.review-pill.approved::before { background: #3e9b67; }.review-pill.reviewing { color: #8e6428; background: var(--amber-soft); }.review-pill.reviewing::before { background: #d78938; }.review-pill.rejected { color: #a5473c; background: var(--red-soft); }.review-pill.rejected::before { background: var(--red); }
.review-pill.unknown { color:#68716b; background:#eef1ef; }.review-pill.unknown::before { background:#98a19b; }
.table-empty { text-align: center; color: #888; padding: 32px; }

.alert-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 15px; }.alert-summary-grid article { background: white; border: 1px solid var(--soft-line); border-radius: 15px; padding: 19px; box-shadow: var(--shadow); }.alert-summary-grid span { color: var(--muted); font-size: 11px; }.alert-summary-grid strong { display: block; margin: 7px 0; font-family: "Segoe UI", Arial, "Microsoft YaHei", sans-serif; font-size: 28px; font-weight:600; letter-spacing:0; font-variant-numeric:tabular-nums lining-nums; font-feature-settings:"tnum" 1,"lnum" 1; }.alert-summary-grid small { color: #939995; font-size: 9px; }.alert-summary-grid .reject-summary { color: white; border-color: #823f36; background: linear-gradient(135deg,#843d35,#a45547); }.alert-summary-grid .reject-summary span, .alert-summary-grid .reject-summary small { color: #f3cbc5; }
.full-alert-list { padding: 4px 20px 12px; }.full-alert { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--soft-line); }.full-alert:last-child { border-bottom: 0; }.full-alert.read { opacity: .46; }.full-alert h3 { margin: 0; font-size: 12px; }.full-alert p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }.alert-actions { display: flex; gap: 7px; }
.rejection-panel { margin-top: 15px; }.rejection-header { align-items: flex-end; }.section-kicker { display: inline-block; margin-bottom: 7px; color: var(--red); font-size: 8px; font-weight: 700; letter-spacing: .16em; }.rejection-tools { display: flex; align-items: center; justify-content:flex-end; flex-wrap:wrap; gap: 10px; }.rejection-tools > * { flex:0 0 auto; white-space:nowrap; }.mini-segmented { padding: 3px; display: flex; background: #f0f1f0; border-radius: 9px; }.mini-segmented button { border: 0; padding: 6px 10px; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }.mini-segmented button.active { color: #733a33; background: white; box-shadow: 0 2px 7px rgba(60,32,28,.08); }.review-window { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 9px; }.rejection-insight { display: flex; align-items: center; gap: 11px; margin: 14px 20px 3px; padding: 12px 14px; border-radius: 11px; color: #724038; background: #fcf3f1; border: 1px solid #f4ded9; }.insight-icon { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: white; background: #a95145; font-weight: 700; }.rejection-insight strong { display: block; font-size: 11px; }.rejection-insight p { margin: 3px 0 0; color: #96665e; font-size: 9px; line-height: 1.5; }.rejection-table { min-width: 1360px; }.rejection-material { display: flex; align-items: center; gap: 9px; min-width: 220px; }.rejection-material .material-thumb { width: 38px; height: 38px; flex-basis: 38px; }.rejection-material .material-thumb::after { width: 12px; height: 12px; }.rejection-material strong { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }.rejection-material small, .stacked-id { display: block; margin-top: 4px; color: #929994; font-size: 8px; }.rejection-note-cell { display:grid; gap:4px; min-width:145px; }.rejection-note-cell small,.rejection-note-cell > span { color:#8f836d; font-size:8px; }.rejection-note-cell strong { max-width:155px; overflow:hidden; text-overflow:ellipsis; }.rejection-note-cell a { width:max-content; color:#e2c36c; font-size:9px; text-decoration:none; }.rejection-note-cell a:hover { color:#f4dc94; text-decoration:underline; }.order-before { display: inline-flex; padding: 4px 7px; border-radius: 7px; font-size: 9px; font-weight: 700; }.order-before.has-order { color: #9e493d; background: var(--red-soft); }.order-before.no-order { color: #6f7772; background: #eff1f0; }.reason-cell { display: block; max-width: 180px; line-height: 1.45; white-space: normal; color: #5e6761; }.contact-button { min-height: 30px; padding: 0 11px; border: 1px solid #d9aaa3; border-radius: 8px; color: #9b493d; background: #fff8f6; cursor: pointer; font-size: 10px; }.contact-button:hover { color: white; border-color: #9b493d; background: #9b493d; }.contact-button.done { color: #397252; border-color: #d8e8dd; background: #edf5ef; cursor: default; }

.integration-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 16px; padding: 25px 27px; border-radius: 18px; color: white; background: linear-gradient(125deg,#153a27,#1e5c3b); box-shadow: 0 15px 40px rgba(21,58,39,.14); overflow: hidden; position: relative; }.integration-hero::after { content:""; position:absolute; width:280px; height:280px; right:-130px; top:-150px; border:1px solid rgba(255,255,255,.08); border-radius:50%; }.integration-hero-copy { position:relative; z-index:1; max-width:690px; }.integration-hero .section-kicker { color:#8fc6a1; }.integration-hero h2 { margin:0; font:500 27px Georgia,"Songti SC",serif; }.integration-hero-copy > p { max-width:660px; margin:9px 0 17px; color:#abc2b3; font-size:11px; line-height:1.7; }.integration-progress { display:flex; align-items:center; gap:10px; }.integration-progress > span { width:210px; height:5px; overflow:hidden; border-radius:5px; background:rgba(255,255,255,.13); }.integration-progress i { display:block; width:0; height:100%; border-radius:5px; background:#99d3aa; transition:width .3s ease; }.integration-progress strong { color:#c8ddce; font-size:9px; }.connection-card { min-width:260px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:11px; padding:14px 15px; border:1px solid rgba(255,255,255,.12); border-radius:13px; background:rgba(255,255,255,.07); backdrop-filter:blur(7px); position:relative; z-index:1; }.connection-pulse { width:9px; height:9px; border-radius:50%; background:#e6ad67; box-shadow:0 0 0 5px rgba(230,173,103,.12); }.connection-card small { display:block; color:#8eaa98; font-size:8px; }.connection-card strong { display:block; margin-top:3px; font-size:11px; }.connection-card p { margin:3px 0 0; color:#91a99a; font-size:8px; }.connection-badge { padding:4px 7px; border-radius:7px; color:#f1c894; background:rgba(215,137,55,.13); font-size:8px; }.connection-badge.ready { color:#bce1c6; background:rgba(101,189,131,.14); }
.integration-layout { display:grid; grid-template-columns:minmax(0,1fr) 292px; gap:16px; align-items:start; }.integration-steps { display:grid; gap:12px; }.setup-step { display:grid; grid-template-columns:66px minmax(0,1fr); padding:0 23px 0 0; border:1px solid var(--soft-line); border-radius:16px; background:white; box-shadow:var(--shadow); overflow:hidden; }.step-rail { display:flex; flex-direction:column; align-items:center; padding-top:20px; background:#fafbfa; border-right:1px solid var(--soft-line); }.step-rail span { width:31px; height:31px; display:grid; place-items:center; border-radius:10px; color:#66736b; background:#eef1ef; font:600 10px Georgia,serif; }.step-rail i { flex:1; width:1px; min-height:30px; margin-top:10px; background:#e4e8e5; }.setup-step.complete .step-rail span { color:white; background:var(--green); }.setup-step.ready .step-rail span { color:#875a24; background:var(--amber-soft); }.step-content { padding:20px 0 21px 22px; }.step-head { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }.step-head h3 { margin:0; font-size:14px; }.step-head p { margin:5px 0 0; color:var(--muted); font-size:9px; line-height:1.5; }.step-state { flex:0 0 auto; padding:5px 8px; border-radius:20px; color:#777f7a; background:#eff1f0; font-size:8px; font-weight:700; }.setup-step.complete .step-state { color:#2e744e; background:var(--green-soft); }.setup-step.ready .step-state { color:#926227; background:var(--amber-soft); }.official-note { display:flex; align-items:flex-start; gap:10px; margin-top:15px; padding:10px 12px; border-left:3px solid #d99b50; border-radius:0 9px 9px 0; background:#fff8ee; }.official-note span { flex:0 0 auto; padding:3px 5px; border-radius:5px; color:#9b6326; background:#f8e4c8; font-size:8px; font-weight:700; }.official-note p { margin:1px 0 0; color:#7e674a; font-size:9px; line-height:1.55; }.setup-checks { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-top:14px; }.setup-checks label,.authorization-confirm { display:flex; align-items:flex-start; gap:9px; padding:11px; border:1px solid var(--line); border-radius:10px; cursor:pointer; }.setup-checks input,.authorization-confirm input { margin-top:2px; accent-color:var(--green); }.setup-checks b,.authorization-confirm b { display:block; font-size:9px; }.setup-checks small,.authorization-confirm small { display:block; margin-top:3px; color:#939995; font-size:8px; line-height:1.4; }.step-actions { display:flex; align-items:center; gap:8px; margin-top:14px; }.link-button { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.api-config-form { display:grid; grid-template-columns:repeat(2,1fr); gap:11px; margin-top:16px; }.api-config-form label { display:grid; gap:6px; }.api-config-form label > span { font-size:9px; font-weight:600; }.api-config-form input,.api-config-form select { width:100%; height:38px; padding:0 10px; border:1px solid var(--line); border-radius:9px; color:#3f4943; background:white; outline:none; font-size:10px; }.api-config-form input:focus,.api-config-form select:focus { border-color:#79a089; box-shadow:0 0 0 3px #edf4ef; }.api-config-form .wide-field,.api-config-form .secret-safety,.api-config-form .step-actions { grid-column:1/-1; }.wide-field > small { color:#9aa09c; font-size:8px; }.copy-field { display:flex; }.copy-field input { border-radius:9px 0 0 9px; color:#69736c; background:#fafbfa; }.copy-field button { min-width:55px; border:1px solid var(--line); border-left:0; border-radius:0 9px 9px 0; color:var(--green); background:#f4f8f5; cursor:pointer; font-size:9px; }.secret-safety { display:flex; align-items:flex-start; gap:9px; padding:10px 11px; border-radius:10px; color:#4e6858; background:#edf4ef; }.secret-safety > span { width:21px; height:21px; display:grid; place-items:center; border-radius:7px; color:white; background:#4f8362; }.secret-safety p { margin:0; font-size:8px; line-height:1.55; }.permission-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:15px; }.permission-grid > div { display:flex; align-items:flex-start; gap:8px; padding:11px; border:1px solid var(--soft-line); border-radius:10px; background:#fafbfa; }.permission-grid > div > span { color:var(--green); font-weight:700; }.permission-grid p { margin:0; }.permission-grid strong { display:block; font-size:9px; }.permission-grid small { display:block; margin-top:3px; color:#909793; font-size:8px; line-height:1.4; }.auth-code-note { display:flex; align-items:center; gap:11px; margin-top:10px; padding:11px 12px; border-radius:10px; color:#875727; background:#fff6e9; }.auth-code-note > span { padding:6px 7px; border-radius:7px; color:white; background:#d38c40; font-size:9px; font-weight:700; }.auth-code-note p { margin:0; }.auth-code-note strong { display:block; font-size:9px; }.auth-code-note small { display:block; margin-top:3px; font-size:8px; line-height:1.4; }.authorization-confirm { margin-top:10px; }.token-lifetime { display:flex; align-items:center; gap:9px; margin-top:15px; padding:12px 14px; border-radius:11px; background:#f7f9f7; border:1px solid var(--soft-line); }.token-lifetime span { min-width:90px; }.token-lifetime b { display:block; color:var(--green-dark); font-size:11px; }.token-lifetime small { display:block; margin-top:3px; color:#8f9691; font-size:8px; }.token-lifetime i { color:#b0b6b2; font-style:normal; }.field-mapping { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }.field-mapping span { padding:6px 8px; border-radius:7px; color:#56615a; background:#f0f2f0; font-size:8px; }.sync-ready-box { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:14px; padding:12px; border:1px solid #e7eae7; border-radius:11px; }.sync-ready-box > div { display:flex; align-items:center; gap:10px; }.sync-ready-icon { width:28px; height:28px; display:grid; place-items:center; border-radius:9px; color:#7b847e; background:#ecefed; }.sync-ready-box p { margin:0; }.sync-ready-box strong { display:block; font-size:9px; }.sync-ready-box small { display:block; margin-top:3px; color:#919893; font-size:8px; }.sync-ready-box button:disabled { opacity:.48; cursor:not-allowed; transform:none; }
.secret-field { display:flex; }.secret-field input { border-radius:9px 0 0 9px; }.secret-field button { min-width:78px; border:1px solid var(--line); border-left:0; border-radius:0 9px 9px 0; color:var(--green); background:#f4f8f5; cursor:pointer; font-size:9px; }.secret-field button:disabled { opacity:.5; cursor:wait; }.server-authorization { cursor:default; }.server-authorization input { pointer-events:none; }.authorization-help { align-self:center; color:#8a928d; font-size:8px; line-height:1.5; }
.integration-side { display:grid; gap:12px; }.integration-summary-card,.integration-help-card,.api-safety-card { padding:18px; }.integration-side h3 { margin:8px 0 13px; font-size:13px; }.integration-summary-card ul { list-style:none; display:grid; gap:10px; margin:0; padding:0; }.integration-summary-card li { display:flex; align-items:center; gap:8px; color:#59635d; font-size:9px; }.integration-summary-card li span { flex:0 0 21px; width:21px; height:21px; display:grid; place-items:center; border-radius:7px; color:#4d755d; background:#edf4ef; font-size:8px; font-weight:700; }.integration-help-card .help-icon { color:white; }.integration-help-card p,.api-safety-card p { color:var(--muted); font-size:9px; line-height:1.65; }.integration-help-card button { width:100%; margin-top:8px; }.api-safety-card { color:white; border-color:#213b2d; background:#172d21; }.api-safety-card > span { color:#8fbaa0; font-size:8px; font-weight:700; letter-spacing:.14em; }.api-safety-card strong { display:block; margin:9px 0 7px; font-size:11px; line-height:1.55; }.api-safety-card p { margin:0; color:#83998b; }

.modal-backdrop, .drawer-backdrop { position: fixed; inset: 0; background: rgba(11,22,16,.42); backdrop-filter: blur(3px); z-index: 50; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }.modal-backdrop.open, .drawer-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.modal { width: min(560px, calc(100vw - 30px)); max-height: calc(100vh - 40px); overflow-y: auto; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -48%) scale(.98); background: white; border-radius: 19px; box-shadow: 0 28px 80px rgba(11,22,16,.25); transition: .25s ease; }.modal-backdrop.open .modal { transform: translate(-50%, -50%) scale(1); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 25px 18px; border-bottom: 1px solid var(--soft-line); }.step-label { color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }.modal-header h2 { margin: 7px 0 5px; font-family: Georgia, "Songti SC", serif; font-weight: 500; font-size: 23px; }.modal-header p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }.close-button { width: 31px; height: 31px; border-radius: 9px; background: #f3f5f3; color: #667068; font-size: 19px; }
.modal form { padding: 20px 25px 24px; }.modal label { display: grid; gap: 7px; margin-bottom: 14px; }.modal label > span { font-size: 11px; font-weight: 600; }.modal input { width: 100%; border: 1px solid var(--line); border-radius: 9px; height: 40px; padding: 0 11px; outline: 0; font-size: 12px; }.modal input:focus { border-color: #75a189; box-shadow: 0 0 0 3px #edf4ef; }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.binding-note { display: flex; gap: 10px; align-items: flex-start; background: var(--green-soft); color: #336347; border-radius: 10px; padding: 11px 12px; }.binding-note > span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: white; font-size: 10px; }.binding-note p { margin: 0; font-size: 10px; line-height: 1.5; }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.column-modal { width: min(700px, calc(100vw - 30px)); }.column-select-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--muted); font-size: 10px; }.column-select-bar strong { color: var(--green-dark); font-size: 13px; }.column-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }.modal .column-option { position: relative; display: grid; grid-template-columns:20px minmax(0,1fr); align-items: center; gap: 9px; min-height: 66px; margin: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: .16s ease; }.modal .column-option:has(.column-toggle:checked) { border-color: #9ab5a4; background: #f4f8f5; }.column-toggle { position:absolute; opacity:0; pointer-events:none; }.column-option > b { width:19px; height:19px; display:grid; place-items:center; border:1px solid #d9dfdb; border-radius:6px; color:transparent; background:white; font-size:10px; }.column-option .column-toggle:checked + b { color:white; border-color:var(--green); background:var(--green); }.column-option > span { display:grid; gap:4px; min-width:0; }.column-option i { color:#9aa09c; font-size:8px; font-style:normal; font-weight:500; }.modal .column-name-input { width:100%; height:30px; padding:0 8px; border:1px solid #dfe4e0; border-radius:7px; background:white; font-size:10px; }.column-option.fixed { cursor:default; }.column-note { display:flex; align-items:flex-start; gap:8px; margin-top:14px; padding:10px 11px; border-radius:9px; color:#4e6858; background:#edf4ef; }.column-note > span { flex:0 0 18px; width:18px; height:18px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--green); font-size:9px; }.column-note p { margin:0; font-size:9px; line-height:1.55; }.modal-spacer { flex:1; }.reset-columns { color:#7b847e; }.sortable-header { width:100%; display:flex; align-items:center; justify-content:space-between; gap:6px; padding:0; border:0; color:inherit; background:transparent; cursor:pointer; font:inherit; font-weight:600; text-align:left; }.sort-indicator { color:#a9b0ac; font-size:10px; }.sortable-header.active .sort-indicator { color:var(--green); }.compact-modal { width:min(510px,calc(100vw - 30px)); }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(440px, 92vw); background: white; z-index: 55; transform: translateX(102%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s linear .3s; box-shadow: -20px 0 60px rgba(15,30,20,.14); overflow-y: auto; }.drawer.open { transform: none; visibility: visible; transition-delay: 0s; }.drawer-head { padding: 24px; color: white; background: #173f2b; }.drawer-head-top { display: flex; align-items: center; justify-content: space-between; }.drawer-head .close-button { background: rgba(255,255,255,.1); color: white; }.drawer-head h2 { font-family: Georgia, "Songti SC", serif; font-weight: 500; margin: 22px 0 5px; font-size: 25px; }.drawer-head p { margin: 0; color: #a8c0b0; font-size: 11px; }.drawer-body { padding: 22px 24px 30px; }.drawer-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }.drawer-kpis div { padding: 13px; border: 1px solid var(--soft-line); border-radius: 11px; background: #fafbfa; }.drawer-kpis span { color: var(--muted); font-size: 9px; }.drawer-kpis strong { display: block; margin-top: 7px; font-size: 17px; }.drawer-section { margin-top: 25px; }.drawer-section h3 { margin: 0 0 12px; font-size: 12px; }.drawer-material { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--soft-line); }.drawer-material > div:nth-child(2) { min-width: 0; flex: 1; }.drawer-material strong { display: block; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.drawer-material small { color: var(--muted); font-size: 9px; }.drawer-material > strong { color: var(--green); }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 15px); z-index: 100; background: #173122; color: white; border-radius: 10px; padding: 11px 17px; font-size: 11px; box-shadow: 0 12px 35px rgba(15,40,24,.25); opacity: 0; pointer-events: none; transition: .24s ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

:where(button, a, input, select, [tabindex]):focus-visible { outline: 3px solid rgba(46,126,82,.28); outline-offset: 2px; }
.clickable-row:focus-visible td { background: #f1f7f3; }
.project-card:focus-visible { border-color: #78a58a; box-shadow: 0 0 0 3px rgba(46,126,82,.12), var(--shadow); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

.mobile-install-gate { min-height: 100dvh; position: relative; overflow: hidden; align-content: center; justify-items: center; padding: 38px 28px; text-align: center; color: white; background: radial-gradient(circle at 50% 23%,#275f42 0,#163f2a 31%,#102a1d 72%); }.install-brand { position: absolute; top: 26px; left: 27px; display: flex; align-items: center; gap: 9px; }.install-brand .brand-symbol { width: 31px; height: 31px; }.install-brand strong { letter-spacing: .12em; }.install-art { width: 138px; height: 138px; position: relative; display: grid; place-items: center; margin-bottom: 27px; border: 1px solid rgba(255,255,255,.15); border-radius: 35px; background: linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.04)); box-shadow: 0 25px 80px rgba(0,0,0,.24); transform: rotate(-4deg); }.install-art::before { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 27px; }.install-art span { font: 500 42px Georgia,serif; color: #b9ddc3; }.install-art i { position: absolute; bottom: 28px; width: 8px; border-radius: 6px; background: #80bd91; transform: rotate(22deg); }.install-art i:nth-of-type(1) { left: 41px; height: 22px; }.install-art i:nth-of-type(2) { left: 61px; height: 36px; }.install-art i:nth-of-type(3) { left: 81px; height: 28px; }.mobile-install-gate .login-kicker { margin-bottom: 15px; }.mobile-install-gate h1 { max-width: 370px; margin: 0; font: 400 34px/1.18 Georgia,"Songti SC",serif; letter-spacing: -.035em; }.mobile-install-gate > p { max-width: 390px; margin: 18px 0 26px; color: #a9c2b2; font-size: 13px; line-height: 1.75; }.install-app-button { width: min(100%,360px); height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 13px; color: #163c28; background: #c3e1ca; box-shadow: 0 11px 30px rgba(0,0,0,.18); cursor: pointer; font-size: 13px; font-weight: 700; }.install-app-button span { font-size: 18px; }.install-help-button { margin: 14px 0 0; padding: 6px; border: 0; color: #9ec0aa; background: transparent; cursor: pointer; font-size: 11px; }.install-instructions { width: min(100%,360px); display: grid; gap: 5px; margin-top: 14px; padding: 0; color: #b9d0c0; font-size: 10px; line-height: 1.6; }.install-instructions:not(:empty) { padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.06); }.install-instructions strong { color: white; }.mobile-install-gate > small { position: absolute; bottom: 23px; color: #688a75; font-size: 9px; }

@media (max-width: 1120px) {
  .summary-grid, .alert-summary-grid { grid-template-columns: repeat(2, 1fr); }.project-card-grid { grid-template-columns: repeat(2, 1fr); }.topbar { flex-direction: column; }.top-actions { justify-content: flex-start; }
  .integration-layout { grid-template-columns: 1fr; }.integration-side { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  body.mobile-install-required { overflow: hidden; }.mobile-install-required .mobile-install-gate { display: grid; }.mobile-install-required .login-screen, .mobile-install-required .app-shell, .mobile-install-required .modal-backdrop, .mobile-install-required .drawer, .mobile-install-required .drawer-backdrop, .mobile-install-required .toast { display: none !important; }
  .login-screen { grid-template-columns: 1fr; }.login-visual { display: none; }.login-panel { padding: 28px 22px; }
  .sidebar { transform: translateX(-102%); transition: .25s ease; box-shadow: 18px 0 55px rgba(0,0,0,.18); }.sidebar.open { transform: none; }.main { margin-left: 0; padding: 18px 16px 42px; }.mobile-brand { display: flex; align-items: center; gap: 9px; }.mobile-brand .icon-button:hover { transform: none; }.content-grid { grid-template-columns: 1fr; }.topbar { gap: 18px; }.sync-state { display: none; }.material-toolbar { flex-wrap: wrap; justify-content: flex-start; }.filter-group { width: 100%; overflow-x: auto; }.material-toolbar .search-box { flex: 1; }.alert-summary-grid { grid-template-columns: 1fr; }.rejection-header { align-items: stretch; flex-direction: column; }.rejection-tools { justify-content: space-between; }.column-options { grid-template-columns: repeat(2,1fr); }
  .integration-hero { align-items:stretch; flex-direction:column; }.connection-card { min-width:0; }.integration-side { grid-template-columns:1fr; }
}
@media (max-width: 600px) {
  .summary-grid, .project-card-grid, .material-summary { grid-template-columns: 1fr; }.metric-card { min-height: 135px; }.title-block h1 { font-size: 27px; }.top-actions { width: 100%; }.date-picker-control { flex: 1; justify-content: space-between; }.primary-button { flex: 1; }.project-panel .panel-header, .view-toolbar { align-items: stretch; flex-direction: column; }.panel-tools { width: 100%; }.panel-tools .search-box { flex: 1; }.view-tabs { overflow-x: auto; }.view-toolbar .search-box { width: 100%; }.material-summary div { border-right: 0; border-bottom: 1px solid var(--soft-line); padding: 12px 20px; }.material-summary div:last-child { border-bottom: 0; }.form-row { grid-template-columns: 1fr; gap: 0; }.full-alert { grid-template-columns: auto 1fr; }.alert-actions { grid-column: 2; }.chart-wrap { height: 220px; }.column-options { grid-template-columns: 1fr; }.column-modal form { padding: 17px; }.column-modal .modal-header { padding: 20px 18px 15px; }.rejection-insight { margin-inline: 13px; }
  .integration-hero { padding:20px; }.integration-progress > span { flex:1; width:auto; }.setup-step { grid-template-columns:50px minmax(0,1fr); padding-right:14px; }.step-content { padding-left:14px; }.setup-checks,.api-config-form,.permission-grid { grid-template-columns:1fr; }.token-lifetime { flex-wrap:wrap; }.sync-ready-box { align-items:stretch; flex-direction:column; }.sync-ready-box button { width:100%; }
}
@media (max-width: 600px) {
  .date-controls { width:100%; }
  .date-picker-control { justify-content:space-between; }
  .date-preset-bar { overflow-x:auto; }
}

/* Obsidian & champagne-gold visual system */
:root {
  --ink:#f3ead5; --muted:#9f947f; --line:#3b3120; --soft-line:#292216;
  --paper:#141310; --canvas:#090909; --green:#d6b35f; --green-dark:#b88b35;
  --green-soft:#2b2417; --amber:#e0b85f; --amber-soft:#2c2416;
  --blue:#d2ad5b; --blue-soft:#292217; --violet:#c8a45a;
  --red:#df766d; --red-soft:#321d1b; --shadow:0 16px 42px rgba(0,0,0,.28);
}
body { background:radial-gradient(circle at 78% -10%,rgba(193,145,56,.08),transparent 34%),var(--canvas); }
.main { background:transparent; }
.sidebar { background:linear-gradient(180deg,#080806 0%,#100d08 100%); border-right:1px solid #312718; box-shadow:18px 0 55px rgba(0,0,0,.16); }
.brand-symbol { background:linear-gradient(145deg,#ead28d,#aa7b2c); box-shadow:0 7px 22px rgba(196,148,61,.2); }
.brand-symbol i { background:#17120a; }
.brand-mark small,.sidebar-label,.help-card small,.user-card small { color:#8e7e60; }
.nav-item,.quick-filter { color:#a79a80; }
.nav-item:hover,.nav-item.active { color:#f8eac5; background:linear-gradient(90deg,rgba(211,171,87,.16),rgba(211,171,87,.045)); }
.nav-item.active { box-shadow:inset 2px 0 #ddb75f; }
.nav-count { color:#dbc178; background:rgba(214,179,95,.12); }
.sidebar-section { border-color:rgba(217,177,87,.14); }
.help-card,.user-card { border-color:#342a1b; background:rgba(214,179,95,.055); }
.help-icon,.avatar { color:#241a0a; background:linear-gradient(145deg,#e5c97c,#ae8030); }
.eyebrow,.section-kicker,.step-label { color:#d8b45b; }
.title-block h1,.panel-header h2,.metric-value,.material-summary strong { text-shadow:0 1px 18px rgba(216,180,91,.05); }
.metric-card,.panel,.project-card,.material-summary,.alert-summary-grid article,.setup-step,.modal,.drawer { background:linear-gradient(145deg,#171612,#11100e); border-color:#302819; box-shadow:var(--shadow); }
.metric-card:hover,.project-card:hover { border-color:#5a4520; box-shadow:0 18px 48px rgba(0,0,0,.38),0 0 0 1px rgba(211,171,87,.05); }
.accent-card { color:#f8e9bd; background:linear-gradient(135deg,#352711 0%,#17130c 70%); border-color:#6b5124; }
.metric-heading,.metric-foot { color:#9f947f; }.accent-card .metric-heading { color:#cbb982; }
.metric-icon,.metric-icon.amber,.metric-icon.violet,.metric-icon.blue { color:#e5c56e; background:#2a2317; border:1px solid #44351c; }
.legend-spend { background:#c79a45; }.legend-revenue { background:#f0d68f; }
.chart-label { fill:#887e6a; }.chart-grid { stroke:#2d271d; }.chart-point { stroke:#15120d; }
.date-picker-control,.icon-button,.outline-button,.search-box,.filter-group select,.api-config-form input,.api-config-form select,.modal input,.modal .column-name-input { color:var(--ink); background:#171510; border-color:#3a3020; }
.date-picker-control input,.search-box input,.modal input { color:var(--ink); }
input[type="date"]::-webkit-calendar-picker-indicator { filter:invert(.78) sepia(.55) saturate(.72); }
.date-picker-control:focus-within,.search-box:focus-within,.api-config-form input:focus,.api-config-form select:focus,.modal input:focus { border-color:#8f6f31; box-shadow:0 0 0 3px rgba(205,160,67,.12); }
.segmented,.view-tabs,.date-preset-bar,.mini-segmented { background:#181611; border:1px solid #2d261a; }
.segmented button.active,.view-tabs button.active,.date-preset-bar button.active,.mini-segmented button.active { color:#f1d88e; background:#2a2215; box-shadow:0 2px 12px rgba(0,0,0,.3); }
.primary-button,.login-button { color:#191207; background:linear-gradient(135deg,#e2c26c,#ad7e2d); box-shadow:0 8px 22px rgba(181,132,43,.2); }
.primary-button:hover,.login-button:hover { color:#100d08; background:linear-gradient(135deg,#f0d581,#bd8b35); }
.outline-button:hover,.icon-button:hover { color:#f0d68f; border-color:#775b29; }
.view-tabs,.date-preset-bar button,.date-picker-control,.outline-button,.icon-button { color:#aa9e87; }
th,.material-table thead,.material-table th { color:#9f9279; background:#16140f; }
td { border-color:#292216; }
tbody tr:hover td,.clickable-row:hover td { background:#1b1812; }
.material-total-row td { color:#e4c66e; background:#241e13; border-color:#4b3a1d; }
.material-total-label strong { color:#f1d88e; }.material-total-label small { color:#a79367; }
.plan-name-cell { min-width:190px; }.plan-name-cell strong { display:block; max-width:210px; overflow:hidden; text-overflow:ellipsis; }.plan-name-cell small { display:block; margin-top:4px; color:#8f836d; font:500 9px ui-monospace,Consolas,monospace; }
.id-cell,.project-identity small,.material-cell small,.stacked-id { color:#8f836d; }
.status-pill.running,.review-pill.approved { color:#e2c36c; background:#2b2417; }.status-pill.running::before,.review-pill.approved::before { background:#d7b35c; }
.status-pill.paused,.review-pill.unknown { color:#9a917f; background:#211f1a; }.status-pill.risk,.review-pill.reviewing { color:#e4b25a; background:#332514; }
.budget-bar,.progress { background:#2a251c; }.budget-bar i,.progress i,.blue-progress i { background:linear-gradient(90deg,#a8772c,#e0bd68); }
.project-card-footer { border-color:#302819; }.owner-chip i,.edit-project-button { color:#e2c36c; background:#292217; }
.edit-project-button:hover { color:#f2d98f; background:#372b18; }
.material-summary div { border-color:#302819; }
.material-thumb { filter:saturate(.72) contrast(1.05); box-shadow:inset 0 0 0 1px rgba(239,210,132,.18); }
.integration-hero { color:#f8eac5; background:radial-gradient(circle at 88% 10%,rgba(224,187,100,.17),transparent 32%),linear-gradient(130deg,#2b2111,#100e0a 72%); border:1px solid #5c4520; box-shadow:0 20px 48px rgba(0,0,0,.32); }
.integration-hero .section-kicker,.integration-progress strong { color:#d8bc73; }.integration-hero-copy > p,.connection-card p,.connection-card small { color:#a89771; }.integration-progress i { background:linear-gradient(90deg,#ae7e2e,#edce78); }
.step-rail,.permission-grid > div,.drawer-kpis div { background:#181611; border-color:#302819; }
.step-rail span,.step-state,.sync-ready-icon,.field-mapping span { color:#c3aa6e; background:#282116; }
.setup-step.complete .step-rail span { color:#1b1408; background:linear-gradient(135deg,#e2c36f,#ab7b2c); }
.official-note,.auth-code-note { color:#d5b66d; background:#2a2114; border-color:#8b672c; }
.secret-safety,.column-note,.binding-note { color:#c9b47d; background:#231e14; }
.permission-grid > div,.token-lifetime,.sync-ready-box,.column-option { background:#171510; border-color:#302819; }
.copy-field input { color:#a99c83; background:#12110e; }.copy-field button,.secret-field button { color:#dfbd66; background:#211b11; border-color:#3a3020; }
.api-safety-card { color:#f3dfaa; border-color:#5e4722; background:linear-gradient(145deg,#2d2212,#14110c); }
.modal-backdrop,.drawer-backdrop { background:rgba(0,0,0,.7); }
.close-button { color:#b9ab8d; background:#211e18; }.drawer-head { color:#f6e5b5; background:linear-gradient(135deg,#342711,#15110b); border-bottom:1px solid #5c4520; }
.column-option > b { background:#171510; border-color:#4a3b25; }.modal .column-option:has(.column-toggle:checked) { background:#241e13; border-color:#735727; }
.toast { color:#f5e5b5; background:#241c10; border:1px solid #6d5124; box-shadow:0 14px 38px rgba(0,0,0,.45); }
.login-screen { background:#090909; }.login-visual { background:radial-gradient(circle at 76% 70%,rgba(215,173,81,.17),transparent 32%),linear-gradient(145deg,#171109,#050505); }
.login-panel { background:#0d0c0a; }.login-field > div { background:#171510; border-color:#3b3120; }.login-message > p,.login-proof p { color:#a89876; }.login-kicker,.login-proof > span { color:#dfbd66; }
.mobile-install-gate { background:radial-gradient(circle at 50% 23%,#382812 0,#171108 36%,#050505 76%); }.install-art span { color:#e4c36b; }.install-art i { background:#c39842; }.install-app-button { color:#1b1307; background:linear-gradient(135deg,#ead17f,#ad7b2a); }
:where(button,a,input,select,[tabindex]):focus-visible { outline-color:rgba(219,178,85,.42); }
::-webkit-scrollbar { width:10px; height:10px; } ::-webkit-scrollbar-track { background:#0d0c0a; } ::-webkit-scrollbar-thumb { background:#4a3a21; border:2px solid #0d0c0a; border-radius:8px; }

/* Account guard migrated from the original 投放盯户 project */
.rejection-summary-grid { grid-template-columns:repeat(3,1fr); }
.watch-hero { display:flex; align-items:stretch; justify-content:space-between; gap:24px; margin-bottom:15px; padding:24px 26px; overflow:visible; border-color:#604920; background:radial-gradient(circle at 86% 10%,rgba(224,187,100,.14),transparent 30%),linear-gradient(135deg,#2a2011,#12100c 72%); }
.watch-hero-copy { min-width:0; }.watch-title-row { display:flex; align-items:center; gap:12px; }.watch-title-row h2 { margin:0; font:500 26px Georgia,"Songti SC",serif; }.watch-hero-copy > p { margin:9px 0 16px; color:#aa9a77; font-size:11px; line-height:1.65; }
.watch-mode-pill { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border:1px solid #614a22; border-radius:999px; color:#e3c470; background:#2a2215; font-size:9px; font-weight:700; }.watch-mode-pill::before { content:""; width:6px; height:6px; border-radius:50%; background:#d9b45d; box-shadow:0 0 0 4px rgba(217,180,93,.09); }.watch-mode-pill.danger { color:#f19a91; border-color:#67322d; background:#2d1917; }.watch-mode-pill.danger::before { background:#df766d; }
.watch-last-state { display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:#8f836d; font-size:9px; }.watch-last-state strong { color:#e6cf92; font-size:10px; }.watch-last-state i { width:1px; height:13px; background:#4a3b23; }
.watch-hero-actions { min-width:300px; display:flex; flex-direction:column; justify-content:center; gap:9px; }.watch-hero-actions button { width:100%; }.watch-hero-actions small { color:#95886c; text-align:center; font-size:8px; }
.watch-settings-panel,.watch-findings-panel,.watch-history-panel { margin-top:15px; }.watch-settings-header { align-items:flex-start; }.watch-toolbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }.watch-toolbar select { min-width:220px; height:35px; padding:0 30px 0 10px; border:1px solid #3a3020; border-radius:9px; color:var(--ink); background:#171510; font-size:10px; }
.watch-safety-bar { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; padding:14px 20px; border-bottom:1px solid var(--soft-line); background:#12110e; }.watch-safety-bar label { display:flex; align-items:flex-start; gap:9px; padding:11px 12px; border:1px solid #342a1c; border-radius:10px; background:#181611; cursor:pointer; }.watch-safety-bar input { margin-top:2px; accent-color:#c99c47; }.watch-safety-bar span { display:grid; gap:3px; }.watch-safety-bar b { color:#dbc47f; font-size:10px; }.watch-safety-bar small { color:#8d826c; font-size:8px; line-height:1.5; }
.watch-rule-list { display:grid; gap:11px; padding:16px 20px 20px; }.watch-rule-card { padding:15px; border:1px solid #352b1d; border-radius:12px; background:linear-gradient(145deg,#191711,#12110e); }.watch-rule-head { display:grid; grid-template-columns:auto minmax(180px,1fr) auto; align-items:center; gap:11px; }.switch-label { display:flex; align-items:center; gap:7px; color:#a99c82; font-size:9px; cursor:pointer; }.switch-label input { position:absolute; opacity:0; pointer-events:none; }.switch-label i { width:31px; height:17px; position:relative; border-radius:20px; background:#2d2921; box-shadow:inset 0 0 0 1px #453a28; }.switch-label i::after { content:""; position:absolute; width:11px; height:11px; left:3px; top:3px; border-radius:50%; background:#817663; transition:.18s ease; }.switch-label input:checked + i { background:#5b451e; }.switch-label input:checked + i::after { left:17px; background:#eccf7b; }
.watch-rule-name { height:34px; padding:0 10px; border:1px solid #3a3020; border-radius:8px; color:#efe1bd; background:#14130f; font-size:11px; font-weight:700; }.watch-rule-meta { display:grid; grid-template-columns:1fr 1fr 1.1fr; gap:9px; margin:13px 0 10px; }.watch-rule-meta label { display:grid; gap:5px; color:#8f836d; font-size:8px; }.watch-rule-meta select,.watch-rule-meta input,.watch-condition select,.watch-condition input { min-width:0; height:33px; padding:0 9px; border:1px solid #3a3020; border-radius:8px; color:#d9caac; background:#15140f; font-size:9px; }.watch-schedule-value { grid-template-columns:auto 1fr auto!important; align-items:center; }.watch-condition-list { display:grid; gap:7px; }.watch-condition { display:grid; grid-template-columns:minmax(145px,1fr) minmax(118px,.75fr) minmax(100px,.55fr) 24px auto; align-items:center; gap:7px; padding:8px; border:1px solid #2e271b; border-radius:9px; background:#11100d; }.watch-condition > span { color:#9c8d70; font-size:9px; }.watch-rule-card > .text-button { margin-top:9px; }
.watch-metric-state { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:5px 12px; margin:13px 20px 0; padding:11px 13px; border:1px solid var(--line); border-radius:10px; color:var(--muted); background:var(--blue-soft); font-size:9px; line-height:1.55; }
.watch-metric-state strong { color:var(--blue-accent); font-size:10px; }.watch-metric-state a { color:var(--gold-strong); }.watch-metric-state small { grid-column:1/-1; color:var(--warning); }
.watch-condition-help { grid-column:1/-1; display:grid; grid-template-columns:auto minmax(180px,1fr) auto; align-items:start; gap:4px 10px; padding:8px 9px; border-radius:7px; color:var(--muted); background:var(--surface); font-size:8px; line-height:1.5; }
.watch-condition-help b { color:var(--ink); }.watch-condition-help em { min-width:0; font-style:normal; }.watch-condition-help i { color:var(--muted); font-style:normal; text-align:right; }.watch-condition-help strong { grid-column:1/-1; font-size:8px; }.watch-condition-help strong.ready { color:var(--success); }.watch-condition-help strong.blocked { color:var(--danger); }.watch-condition-help strong.muted { color:var(--muted); }
.watch-condition-unit { min-width:24px; max-width:105px; line-height:1.25; }.watch-metric-values { display:grid; gap:4px; min-width:180px; }.watch-metric-values span { display:flex; justify-content:space-between; gap:10px; color:var(--gold-strong); font-size:9px; }.watch-metric-values b { color:var(--muted); font-weight:500; }
.watch-metric-search-control { position:relative; min-width:0; }.watch-metric-search-control > span { position:absolute; left:10px; top:50%; z-index:1; color:var(--muted); font-size:12px; transform:translateY(-50%); pointer-events:none; }.watch-condition .watch-metric-search { width:100%; padding-left:29px; padding-right:28px; }
.watch-findings-controls { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:12px 20px 0; padding:9px 10px; border:1px solid var(--line); border-radius:11px; background:var(--surface-muted); }.watch-findings-controls .panel-table-toolbar { flex:0 1 auto; margin:0; padding:0; border:0; background:transparent; box-shadow:none; }.watch-account-filter { min-width:min(420px,48%); display:flex; align-items:center; gap:9px; color:var(--muted); font-size:9px; }.watch-account-filter span { white-space:nowrap; }.watch-account-filter select { width:100%; height:34px; padding:0 30px 0 10px; border:1px solid var(--line); border-radius:9px; color:var(--ink); background:var(--field); outline:none; font-size:10px; }.watch-account-filter:focus-within { color:var(--gold-strong); }
.watch-table { min-width:1320px; }.watch-table td { vertical-align:top; white-space:normal; line-height:1.45; }.watch-table td:first-child { min-width:210px; }.watch-table .handled { opacity:.48; }.watch-creative-name strong,.watch-account-cell strong { display:block; }.watch-creative-id { display:inline-block; min-width:100px; color:#e4c879; }.watch-account-cell { min-width:175px; }.watch-rule-tags { display:flex; flex-wrap:wrap; gap:5px; }.watch-rule-tags i { padding:3px 6px; border-radius:6px; color:#eccb75; background:#2b2316; font-size:8px; font-style:normal; }.watch-result { display:inline-flex; padding:5px 7px; border-radius:7px; font-size:8px; font-weight:700; }.watch-result.observe { color:#d9bd70; background:#2b2417; }.watch-result.blocked { color:#e88b82; background:#321d1b; }.warning-text { color:#e5a050; font-weight:700; }.table-actions { display:flex; gap:6px; }.table-actions .outline-button { min-height:29px; padding:0 8px; font-size:8px; }.compact-table { min-width:900px; }.compact-table td { color:#a99d85; font-size:9px; }
.danger-text { color:#d8756c!important; }.watch-summary-grid article:first-child { border-color:#5b4320; background:linear-gradient(145deg,#261d10,#15120d); }.watch-summary-grid article:first-child strong { color:#efd17c; }
@media (max-width:1120px) { .watch-rule-meta { grid-template-columns:1fr 1fr; }.watch-schedule-value { grid-column:1/-1; }.rejection-summary-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:820px) { .watch-hero { flex-direction:column; }.watch-hero-actions { min-width:0; }.watch-settings-header { align-items:stretch; flex-direction:column; }.watch-toolbar select { flex:1; min-width:180px; }.watch-safety-bar { grid-template-columns:1fr; }.watch-condition { grid-template-columns:1fr 1fr; }.watch-condition > span { display:none; }.watch-condition-help { grid-template-columns:1fr; }.watch-condition-help i { text-align:left; }.watch-metric-state { grid-template-columns:1fr; }.watch-metric-state small { grid-column:auto; }.watch-findings-controls { align-items:stretch; flex-direction:column; }.watch-account-filter,.watch-findings-controls .panel-table-toolbar { width:100%; max-width:none; }.rejection-summary-grid { grid-template-columns:1fr; } }
@media (max-width:1100px) { .brand-motto { width:100%; min-height:74px; align-items:flex-start; padding:0 0 4px; }.motto-line-primary { margin-left:1.35em; }.motto-line-secondary { margin-left:2.7em; }.rejection-tools { flex-wrap:wrap; }.table-view-toolbar { justify-content:flex-start; }.owner-setting-row { grid-template-columns:1fr; } }

.modal .column-option { grid-template-columns:auto 20px minmax(0,1fr); cursor:default; transition:opacity .16s ease,transform .16s ease,border-color .16s ease,box-shadow .16s ease; }.column-option > label { display:block; margin:0; }.column-option label > b { width:19px; height:19px; display:grid; place-items:center; border:1px solid #d9dfdb; border-radius:6px; color:transparent; background:white; font-size:10px; cursor:pointer; }.column-option .column-toggle:checked + b { color:white; border-color:var(--green); background:var(--green); }.column-drag-handle { width:29px; height:44px; display:grid; place-items:center; border:1px dashed #705527; border-radius:8px; color:#dbb957; background:#211a10; cursor:grab; touch-action:none; user-select:none; }.column-drag-handle span { display:block; transform:rotate(90deg); font-size:18px; line-height:1; letter-spacing:-4px; }.column-drag-handle:hover,.column-option.drag-ready .column-drag-handle { color:#f2d584; border-color:#c6953b; background:#2b2112; cursor:grabbing; }.column-option.dragging { opacity:.42; transform:scale(.98); border-style:dashed; border-color:#d0a347!important; box-shadow:0 10px 28px rgba(0,0,0,.28); }.view-name-field { padding:10px 12px; border-radius:10px; background:#f7f5ee; }.compact-modal { width:min(760px,calc(100vw - 30px)); }.owner-create-row { display:flex; gap:8px; }.owner-create-row input { flex:1; }.owner-setting-list { display:grid; gap:8px; margin-top:14px; }.owner-setting-row { display:grid; grid-template-columns:minmax(100px,.7fr) minmax(150px,1fr) minmax(170px,1.1fr) auto; gap:8px; align-items:center; }.feishu-config-card { display:grid; gap:11px; padding:14px; border:1px solid #ead69d; border-radius:12px; background:#fffaf0; }.feishu-config-card strong,.feishu-config-card small { display:block; }.feishu-config-card small { margin-top:4px; color:#8b7c5c; font-size:9px; line-height:1.55; }.feishu-config-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }.feishu-help-link { flex:0 0 auto; color:var(--blue-accent); font-size:9px; font-weight:700; line-height:1.5; text-decoration:none; }.feishu-help-link:hover { text-decoration:underline; }.feishu-current-user { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:10px; align-items:center; padding:10px; border:1px solid var(--soft-line); border-radius:10px; background:var(--surface); }.feishu-current-user img { width:38px; height:38px; border-radius:50%; object-fit:cover; }.feishu-current-user small { overflow-wrap:anywhere; }.feishu-bot-warning { display:flex; align-items:flex-start; gap:9px; padding:10px 11px; border:1px solid color-mix(in srgb,var(--warning) 34%,transparent); border-radius:9px; color:var(--ink); background:color-mix(in srgb,var(--warning) 10%,var(--surface)); }.feishu-bot-warning > span { flex:0 0 20px; width:20px; height:20px; display:grid; place-items:center; border-radius:6px; color:#fff; background:var(--warning); font-size:10px; font-weight:800; }.feishu-bot-warning p { margin:0; font-size:9px; line-height:1.55; }.feishu-bot-warning strong { margin-bottom:2px; color:var(--warning); }.feishu-bot-steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:0; padding:0; list-style:none; counter-reset:none; }.feishu-bot-steps li { display:flex; align-items:flex-start; gap:7px; min-width:0; padding:8px 9px; border:1px solid var(--soft-line); border-radius:8px; background:var(--surface); }.feishu-bot-steps li > span { flex:0 0 18px; width:18px; height:18px; display:grid; place-items:center; border-radius:6px; color:var(--gold-strong); background:var(--gold-soft); font-size:8px; font-weight:800; }.feishu-bot-steps p { margin:1px 0 0; color:var(--muted); font-size:8px; line-height:1.5; }.feishu-webhook-channel { display:grid; gap:7px; padding:10px; border:1px solid var(--soft-line); border-radius:10px; background:var(--surface); }.feishu-webhook-channel.comment-channel { border-color:color-mix(in srgb,var(--blue-accent) 28%,var(--soft-line)); }.feishu-channel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }.feishu-channel-heading small { margin:0; text-align:right; }.feishu-webhook-row { margin-top:1px; }.feishu-security-note { display:flex!important; align-items:flex-start; gap:7px; margin-top:-3px!important; }.feishu-security-note > span { flex:0 0 auto; color:var(--success); font-weight:800; }.feishu-openid-note { margin:0!important; padding-top:9px; border-top:1px solid var(--soft-line); }.feishu-openid-note strong { display:inline; color:var(--ink); }.owner-modal-footer { align-items:center; }.openid-footer-help { flex:1 1 420px; margin:0; color:var(--muted); font-size:9px; line-height:1.55; }.openid-footer-help strong { color:var(--ink); }
@media (max-width:600px) { .brand-motto { min-width:0; min-height:64px; }.motto-line-primary { margin-left:.5em; margin-right:0; font-size:23px; }.motto-line-secondary { margin-left:1.45em; font-size:26px; } }
@media (max-width:600px) { .feishu-config-heading,.feishu-channel-heading { align-items:flex-start; flex-direction:column; }.feishu-channel-heading small { text-align:left; }.feishu-help-link { font-size:10px; }.feishu-bot-steps { grid-template-columns:1fr; }.feishu-webhook-row { align-items:stretch; flex-direction:column; }.feishu-webhook-row .outline-button { min-height:38px; }.feishu-bot-warning p,.feishu-config-card small { font-size:10px; } }
.watch-profile-control { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:7px 10px; }.watch-profile-control > span { grid-column:1/-1; }.watch-profile-control > select { grid-column:1/-1; width:100%; min-width:0; height:34px; padding:0 30px 0 10px; border:1px solid #57431f; border-radius:8px; color:#f2d879; background:#17130c; outline:none; font-size:9px; }.watch-profile-meta { display:flex; align-items:baseline; gap:5px; min-width:0; }.watch-profile-meta strong { display:inline; margin:0; font-size:21px; }.watch-profile-meta small { white-space:nowrap; }.watch-profile-meta i { margin-left:5px; color:#76b18b; font-size:8px; font-style:normal; white-space:nowrap; }.watch-profile-meta i.dirty { color:#edb450; }.watch-profile-control .primary-button { min-height:31px; padding:0 13px; font-size:9px; }.watch-profile-control .primary-button:disabled { opacity:.42; cursor:not-allowed; box-shadow:none; }.watch-profile-control .primary-button.has-changes { box-shadow:0 7px 18px rgba(211,166,68,.22); }
@media (max-width:600px) { .watch-title-row { align-items:flex-start; flex-direction:column; }.watch-title-row h2 { font-size:22px; }.watch-rule-head { grid-template-columns:auto 1fr; }.watch-rule-head .danger-text { grid-column:1/-1; justify-self:end; }.watch-rule-meta { grid-template-columns:1fr; }.watch-schedule-value { grid-column:auto; }.watch-toolbar { width:100%; }.watch-toolbar select,.watch-toolbar button { width:100%; }.watch-condition { grid-template-columns:1fr; }.watch-hero { padding:20px; } }

.project-toolbar-actions { display:flex; align-items:center; gap:10px; }
.project-toolbar-actions .primary-button { flex:0 0 auto; min-height:36px; }
.drawer { width:min(660px,94vw); }
.drawer-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:10px; }
.drawer-section-head h3 { margin:0 0 5px; }
.drawer-section-head p { margin:0; color:var(--muted); font-size:9px; line-height:1.55; }
.drawer-table-toolbar { justify-content:flex-start; margin-bottom:10px; padding:8px; }
.drawer-table-toolbar .table-time-button { margin-right:auto; }
.drawer-table-scroll { overflow-x:auto; border:1px solid #352b1c; border-radius:11px; background:#12110e; }
.drawer-metric-table { min-width:520px; }
.drawer-metric-table th { padding:10px 13px; background:#17140f; }
.drawer-metric-table td { padding:15px 13px; background:#12110e; }
.drawer-metric-table td strong { color:#f1d88e; font-size:16px; font-family:Georgia,"Songti SC",serif; font-weight:500; }
.table-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border-top:1px solid #302819; color:#93866e; font-size:9px; }
.table-pagination > div,.table-pagination label { display:flex; align-items:center; gap:8px; }
.table-pagination select { height:30px; padding:0 25px 0 9px; border:1px solid #4c3b20; border-radius:8px; color:#efd27d; background:#17130c; font-size:9px; }
.table-pagination .outline-button { min-height:30px; padding:0 11px; font-size:9px; }
.table-pagination .outline-button:disabled { opacity:.36; cursor:not-allowed; }

@media (max-width:600px) {
  .project-toolbar-actions { align-items:stretch; flex-direction:column; }
  .project-toolbar-actions .search-box,.project-toolbar-actions .primary-button { width:100%; }
  .drawer-table-toolbar { align-items:stretch; flex-direction:column; }
  .drawer-table-toolbar .table-time-button { width:100%; margin-right:0; justify-content:space-between; }
  .table-pagination { align-items:flex-start; flex-direction:column; }
  .table-pagination > div { width:100%; flex-wrap:wrap; }
}

.rejection-note-cell button { width:max-content; padding:0; border:0; color:#e2c36c; background:transparent; font-size:9px; text-decoration:none; cursor:pointer; }
.rejection-note-cell button:hover { color:#f4dc94; text-decoration:underline; }
.material-thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1; }
.material-thumb:has(img)::after { z-index:2; box-shadow:0 0 0 3px rgba(0,0,0,.28); }
.material-preview-modal { width:min(900px,calc(100vw - 30px)); }
.material-preview-modal > #materialPreviewContent { display:grid; grid-template-columns:minmax(280px,1.15fr) minmax(300px,.85fr); min-height:480px; }
.material-preview-visual { min-height:480px; display:grid; place-items:center; overflow:hidden; border-right:1px solid #352b1c; background:#090909; }
.material-preview-visual > img { width:100%; height:100%; max-height:72vh; object-fit:contain; }
.material-preview-placeholder { display:grid; justify-items:center; gap:9px; padding:35px; color:#9d9075; text-align:center; }
.material-preview-placeholder > span { width:72px; height:72px; display:grid; place-items:center; border:1px solid #57431f; border-radius:22px; color:#e4c36b; background:#211b11; font-size:26px; }
.material-preview-placeholder strong { color:#dbc47f; }
.material-preview-placeholder small { max-width:260px; line-height:1.6; }
.material-preview-details { padding:26px; overflow:auto; }
.material-preview-details h3 { margin:14px 0 10px; color:#f3dfaa; font:500 25px/1.35 Georgia,"Songti SC",serif; }
.material-title-fills { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 16px; }
.material-title-fills span { padding:5px 8px; border-radius:7px; color:#ccb16c; background:#241e13; font-size:9px; }
.material-preview-copy { display:grid; gap:7px; margin-bottom:16px; padding:11px 12px; border-left:3px solid #a87d2f; border-radius:0 9px 9px 0; color:#d8c38a; background:#211b11; }
.material-preview-copy p { margin:0; font-size:10px; line-height:1.6; }
.material-preview-copy span { color:#9f8e6c; font-size:8px; }
.material-preview-body { display:grid; gap:9px; margin-bottom:16px; padding:12px; border:1px solid var(--line); border-radius:10px; background:var(--surface-muted); }
.material-preview-body > div { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.material-preview-body strong { color:var(--ink); font-size:10px; }
.material-preview-body small { color:var(--muted); font-size:8px; text-align:right; }
.material-preview-body p { max-height:240px; margin:0; overflow:auto; color:var(--ink); font-size:10px; line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }
.material-preview-body.unavailable p { color:var(--muted); font-style:italic; }
.material-preview-details dl { display:grid; gap:0; margin:18px 0; border:1px solid #352b1c; border-radius:11px; overflow:hidden; }
.material-preview-details dl > div { display:grid; grid-template-columns:78px minmax(0,1fr); gap:12px; padding:11px 12px; border-bottom:1px solid #2c2519; }
.material-preview-details dl > div:last-child { border-bottom:0; }
.material-preview-details dt { color:#8f836d; font-size:9px; }
.material-preview-details dd { margin:0; color:#ddc98f; font-size:10px; overflow-wrap:anywhere; }
.material-preview-details .material-preview-reason { grid-template-columns:1fr; }
.material-preview-reason dd { color:#d49a8f; line-height:1.65; }
.material-preview-note { padding:11px 12px; border-radius:9px; color:#a89978; background:#17140f; font-size:9px; line-height:1.6; }
.material-preview-actions { display:flex; gap:9px; align-items:center; margin-top:18px; }
.material-preview-actions .outline-button { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
@media (max-width:720px) {
  .material-preview-modal > #materialPreviewContent { grid-template-columns:1fr; }
  .material-preview-visual { min-height:280px; max-height:48vh; border-right:0; border-bottom:1px solid #352b1c; }
  .material-preview-actions { align-items:stretch; flex-direction:column; }
  .material-preview-actions > * { width:100%; }
}

/* Blue, gold and white dual theme */
:root,
:root[data-theme="day"] {
  color-scheme:light;
  --ink:#102a43;
  --muted:#5d7288;
  --line:#c9d8e6;
  --soft-line:#dfe8f1;
  --paper:#ffffff;
  --canvas:#edf4fa;
  --green:#aa781c;
  --green-dark:#164f83;
  --green-soft:#e8f1f9;
  --amber:#ad781d;
  --amber-soft:#fff4d8;
  --blue:#25699f;
  --blue-soft:#e7f2fb;
  --violet:#6571aa;
  --red:#b34d4b;
  --red-soft:#fdebea;
  --surface:#ffffff;
  --surface-elevated:#f8fbfe;
  --surface-muted:#eef5fb;
  --surface-strong:#e2edf7;
  --field:#ffffff;
  --field-muted:#f3f7fb;
  --hover:#edf5fc;
  --table-head:#eaf2f9;
  --table-total:#e8f2fa;
  --sidebar:#0b365f;
  --sidebar-deep:#082b4d;
  --sidebar-text:#f5f9fd;
  --sidebar-muted:#a9bfd4;
  --sidebar-line:rgba(224,238,250,.16);
  --gold:#c3922f;
  --gold-strong:#986b18;
  --gold-soft:#fff3d2;
  --gold-faint:rgba(195,146,47,.12);
  --blue-accent:#1e6095;
  --blue-faint:rgba(30,96,149,.09);
  --success:#2d7a56;
  --success-soft:#e7f4ed;
  --warning:#a86c18;
  --warning-soft:#fff1d8;
  --danger:#b34d4b;
  --danger-soft:#fdebea;
  --overlay:rgba(6,29,52,.46);
  --focus-ring:rgba(39,109,166,.18);
  --placeholder:#8396a8;
  --scroll-track:#e5eef6;
  --scroll-thumb:#9bb2c6;
  --hero-bg:linear-gradient(135deg,#123f6c 0%,#0b2d51 72%);
  --hero-text:#f8fbff;
  --hero-muted:#bed0e1;
  --card-gradient:linear-gradient(145deg,#ffffff,#f8fbfe);
  --shadow:0 14px 38px rgba(19,61,99,.09);
}

:root[data-theme="night"] {
  color-scheme:dark;
  --ink:#ebf3fb;
  --muted:#9fb2c7;
  --line:#36536f;
  --soft-line:#27435d;
  --paper:#102a44;
  --canvas:#071a2f;
  --green:#dfb34e;
  --green-dark:#d2a13d;
  --green-soft:#193d5a;
  --amber:#e0b34f;
  --amber-soft:#3b3525;
  --blue:#73afe0;
  --blue-soft:#183b59;
  --violet:#aeb8ea;
  --red:#ef8d89;
  --red-soft:#452d36;
  --surface:#102a44;
  --surface-elevated:#14324f;
  --surface-muted:#0c243c;
  --surface-strong:#193b59;
  --field:#0c233a;
  --field-muted:#102b45;
  --hover:#163752;
  --table-head:#0d2740;
  --table-total:#163b58;
  --sidebar:#081f37;
  --sidebar-deep:#06182b;
  --sidebar-text:#f0f6fc;
  --sidebar-muted:#9db2c7;
  --sidebar-line:rgba(184,207,229,.14);
  --gold:#e0b754;
  --gold-strong:#f0ca6b;
  --gold-soft:#3b3524;
  --gold-faint:rgba(224,183,84,.13);
  --blue-accent:#7bb8e8;
  --blue-faint:rgba(104,174,226,.12);
  --success:#79c79e;
  --success-soft:#183f3b;
  --warning:#f0bc62;
  --warning-soft:#493a23;
  --danger:#f0938e;
  --danger-soft:#492d35;
  --overlay:rgba(2,13,25,.7);
  --focus-ring:rgba(112,179,230,.2);
  --placeholder:#7890a7;
  --scroll-track:#0a2036;
  --scroll-thumb:#41627e;
  --hero-bg:linear-gradient(135deg,#173f63 0%,#0b2742 72%);
  --hero-text:#f4f8fc;
  --hero-muted:#a9bfd3;
  --card-gradient:linear-gradient(145deg,#14324f,#0f2942);
  --shadow:0 18px 44px rgba(1,10,20,.28);
}

html { background:var(--canvas); }
body {
  color:var(--ink);
  background:radial-gradient(circle at 78% -10%,var(--gold-faint),transparent 34%),var(--canvas);
  transition:color .2s ease,background-color .2s ease;
}
.main { background:transparent; }

.theme-toggle {
  min-height:36px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:10px;
  color:var(--ink);
  background:var(--surface);
  box-shadow:0 4px 14px rgba(18,57,91,.06);
  cursor:pointer;
  font-size:10px;
  font-weight:700;
  transition:.18s ease;
}
.theme-toggle:hover { color:var(--gold-strong); border-color:var(--gold); transform:translateY(-1px); }
.theme-toggle-icon { width:20px; height:20px; display:grid; place-items:center; border-radius:7px; color:var(--gold-strong); background:var(--gold-soft); font-size:13px; }

.sidebar {
  color:var(--sidebar-text);
  background:linear-gradient(180deg,var(--sidebar) 0%,var(--sidebar-deep) 100%);
  border-right:1px solid var(--sidebar-line);
  box-shadow:18px 0 55px rgba(3,23,41,.14);
}
.brand-symbol { background:linear-gradient(145deg,#f4d77c,#bc8727); box-shadow:0 7px 22px rgba(180,132,40,.2); }
.brand-symbol i { background:#0d3155; }
.brand-mark small,.sidebar-label,.help-card small,.user-card small { color:var(--sidebar-muted); }
.nav-item,.quick-filter { color:var(--sidebar-muted); }
.nav-item:hover,.nav-item.active,.quick-filter:hover { color:var(--sidebar-text); background:linear-gradient(90deg,rgba(224,183,84,.18),rgba(82,145,196,.08)); }
.nav-item.active { box-shadow:inset 3px 0 var(--gold); }
.nav-count { color:#f3d77f; background:rgba(224,183,84,.16); }
.sidebar-section { border-color:var(--sidebar-line); }
.help-card,.user-card { color:var(--sidebar-text); border-color:var(--sidebar-line); background:rgba(223,235,246,.06); }
.help-icon,.avatar { color:#0a2d50; background:linear-gradient(145deg,#f2d77d,#bc892d); }
.user-card-actions > a,.user-card-actions > button { color:var(--sidebar-muted); }

.eyebrow,.section-kicker,.step-label,.text-button,.column-config-button > span { color:var(--gold-strong); }
.brand-motto-line { background:linear-gradient(180deg,#f6dc83 0%,#c9952e 52%,#8e6113 100%); -webkit-background-clip:text; background-clip:text; }
.motto-line-secondary::after { border-color:var(--gold); }
.sync-state { color:var(--muted); }
.sync-state span { background:var(--success); box-shadow:0 0 0 4px var(--success-soft); }
.sync-state.pending span { background:var(--warning); box-shadow:0 0 0 4px var(--warning-soft); }

.metric-card,.panel,.project-card,.material-summary,.alert-summary-grid article,.setup-step,.modal,.drawer,.watch-rule-card {
  color:var(--ink);
  background:var(--card-gradient);
  border-color:var(--soft-line);
  box-shadow:var(--shadow);
}
.metric-card:hover,.project-card:hover { border-color:var(--gold); box-shadow:0 18px 48px rgba(8,39,66,.14),0 0 0 1px var(--gold-faint); }
.accent-card { color:var(--hero-text); background:var(--hero-bg); border-color:rgba(218,178,81,.55); }
.metric-heading,.metric-foot,.project-card-metrics span,.material-cell small,.stacked-id,.id-cell,.plan-name-cell small { color:var(--muted); }
.accent-card .metric-heading { color:var(--hero-muted); }
.metric-icon,.metric-icon.amber,.metric-icon.violet,.metric-icon.blue { color:var(--gold-strong); background:var(--gold-soft); border:1px solid var(--gold-faint); }
.metric-value,.panel-header h2,.title-block h1,.material-summary strong { text-shadow:none; }
.progress,.budget-bar { background:var(--surface-strong); }
.progress i,.blue-progress i,.budget-bar i { background:linear-gradient(90deg,var(--blue-accent),var(--gold)); }
.legend-spend { background:var(--blue-accent); }
.legend-revenue { background:var(--gold); }
.chart-label { fill:var(--muted); }
.chart-grid { stroke:var(--soft-line); }
.chart-point { stroke:var(--surface); }

.date-picker-control,.icon-button,.outline-button,.search-box,.filter-group select,
.api-config-form input,.api-config-form select,.modal input,.modal select,.modal .column-name-input,
.watch-toolbar select,.watch-rule-name,.watch-rule-meta select,.watch-rule-meta input,
.watch-condition select,.watch-condition input,.watch-profile-control > select,.table-pagination select,
.table-view-preset select,.rejection-tools select,.inline-owner-select {
  color:var(--ink);
  background:var(--field);
  border-color:var(--line);
}
input,select,textarea { color:var(--ink); }
input::placeholder,textarea::placeholder,.search-box input::placeholder { color:var(--placeholder); }
.date-picker-control input,.search-box input,.modal input { color:var(--ink); }
.date-picker-control:focus-within,.search-box:focus-within,.api-config-form input:focus,.api-config-form select:focus,
.modal input:focus,.modal select:focus,.watch-rule-name:focus,.watch-rule-meta select:focus,.watch-rule-meta input:focus,
.watch-condition select:focus,.watch-condition input:focus { border-color:var(--blue-accent); box-shadow:0 0 0 3px var(--focus-ring); }
:root[data-theme="day"] input[type="date"]::-webkit-calendar-picker-indicator,
:root[data-theme="day"] input[type="month"]::-webkit-calendar-picker-indicator { filter:none; }
:root[data-theme="night"] input[type="date"]::-webkit-calendar-picker-indicator,
:root[data-theme="night"] input[type="month"]::-webkit-calendar-picker-indicator { filter:invert(.9) sepia(.15); }

.segmented,.view-tabs,.date-preset-bar,.mini-segmented { background:var(--surface-strong); border:1px solid var(--soft-line); }
.segmented button,.view-tabs button,.date-preset-bar button,.mini-segmented button { color:var(--muted); }
.segmented button.active,.view-tabs button.active,.date-preset-bar button.active,.mini-segmented button.active { color:var(--blue-accent); background:var(--surface); box-shadow:0 3px 12px rgba(15,52,85,.1); }
.mini-segmented button[data-reject-filter="ordered"] { color:#b4232d; background:#fff0f0; font-weight:700; box-shadow:inset 0 0 0 1px #f1c1c5; }
.mini-segmented button[data-reject-filter="ordered"]:hover { background:#ffe1e3; }
:root[data-theme="night"] .mini-segmented button[data-reject-filter="ordered"] { color:#ffb4b8; background:#3d222a; box-shadow:inset 0 0 0 1px #87404a; }
:root[data-theme="night"] .mini-segmented button[data-reject-filter="ordered"]:hover { background:#552a35; }
.mini-segmented button[data-reject-filter="ordered"].active,
:root[data-theme="night"] .mini-segmented button[data-reject-filter="ordered"].active { color:#fff; background:#b4232d; box-shadow:0 3px 10px rgba(180,35,45,.2); }
.primary-button,.login-button { color:#0b2d50; background:linear-gradient(135deg,#f0d275,#c08b2b); box-shadow:0 8px 22px rgba(175,127,36,.2); }
.primary-button:hover,.login-button:hover { color:#082642; background:linear-gradient(135deg,#f7de8a,#d09d3c); }
.outline-button,.icon-button { color:var(--muted); }
.outline-button:hover,.icon-button:hover { color:var(--gold-strong); border-color:var(--gold); }
.danger-button { color:var(--danger); border-color:var(--danger); background:var(--surface); }
.danger-button:hover { color:#fff; border-color:var(--danger); background:var(--danger); }
:where(button,a,input,select,textarea,[tabindex]):focus-visible { outline:3px solid var(--focus-ring); outline-offset:2px; }

.table-view-toolbar {
  color:var(--ink);
  border-color:var(--line);
  background:var(--surface-muted);
  box-shadow:0 9px 22px rgba(19,61,99,.06);
}
.table-view-preset,.table-time-button { color:var(--muted); border-color:var(--line); background:var(--surface); }
.table-time-button strong,.table-view-toolbar .outline-button { color:var(--gold-strong); }
.table-view-toolbar .outline-button { border-color:var(--line); background:var(--surface); }
th,.material-table thead,.material-table th,.drawer-metric-table th { color:var(--muted); background:var(--table-head); border-color:var(--soft-line); }
td { color:var(--ink); border-color:var(--soft-line); }
tbody tr:hover td,.clickable-row:hover td { background:var(--hover); }
.material-total-row td { color:var(--blue-accent); background:var(--table-total); border-color:var(--line); }
.material-total-label strong { color:var(--blue-accent); }
.material-total-label small { color:var(--muted); }
.drawer-metric-table td { color:var(--ink); background:var(--surface); }
.drawer-metric-table td strong { color:var(--gold-strong); }
.drawer-table-scroll { border-color:var(--line); background:var(--surface); }
.table-pagination { color:var(--muted); border-color:var(--soft-line); }

.status-pill.running,.review-pill.approved { color:var(--success); background:var(--success-soft); }
.status-pill.running::before,.review-pill.approved::before { background:var(--success); }
.status-pill.risk,.review-pill.reviewing { color:var(--warning); background:var(--warning-soft); }
.status-pill.risk::before,.review-pill.reviewing::before { background:var(--warning); }
.status-pill.paused,.review-pill.unknown { color:var(--muted); background:var(--surface-strong); }
.status-pill.paused::before,.review-pill.unknown::before { background:var(--muted); }
.review-pill.rejected { color:var(--danger); background:var(--danger-soft); }
.review-pill.rejected::before { background:var(--danger); }
.trend.up { color:var(--success); background:var(--success-soft); }
.trend.down { color:var(--danger); background:var(--danger-soft); }
.accent-card .trend.up { color:#d7f2e3; background:rgba(255,255,255,.11); }
.alert-symbol { color:var(--warning); background:var(--warning-soft); }
.alert-symbol.red { color:var(--danger); background:var(--danger-soft); }
.alert-symbol.blue { color:var(--blue-accent); background:var(--blue-soft); }
.alert-dot { color:#fff; background:var(--danger); }
.api-status-dot { background:var(--warning); box-shadow:0 0 0 4px var(--warning-soft); }
.api-status-dot.ready { background:var(--success); box-shadow:0 0 0 4px var(--success-soft); }

.project-card-footer,.material-summary div,.panel-header,.mini-alert,.full-alert,.drawer-material { border-color:var(--soft-line); }
.empty-card { color:var(--muted); border-color:var(--line); background:var(--surface-elevated); }
.empty-card strong { color:var(--ink); }
.mini-alert time,.table-empty,.alert-summary-grid small,.wide-field > small,.setup-checks small,
.authorization-confirm small,.permission-grid small,.token-lifetime small,.sync-ready-box small,
.authorization-help,.rejection-note-cell small,.rejection-note-cell > span { color:var(--muted); }
.budget-meta,.row-action,.column-config-button i,.column-option i,.sort-indicator { color:var(--muted); }
.owner-chip i,.edit-project-button { color:var(--blue-accent); background:var(--blue-soft); }
.edit-project-button:hover { color:var(--gold-strong); background:var(--gold-soft); }
.material-thumb { box-shadow:inset 0 0 0 1px rgba(239,210,132,.22); }
.order-before.has-order { color:var(--danger); background:var(--danger-soft); }
.order-before.no-order { color:var(--muted); background:var(--surface-strong); }
.order-before.pending { max-width:150px; color:var(--warning); background:var(--warning-soft); line-height:1.45; white-space:normal; }
.reason-cell { color:var(--muted); }
.contact-button { color:var(--danger); border-color:var(--danger); background:var(--surface); }
.contact-button:hover { color:#fff; background:var(--danger); }
.contact-button.done { color:var(--success); border-color:var(--success); background:var(--success-soft); }
.rejection-note-cell button,.rejection-note-cell a { color:var(--gold-strong); }
.rejection-note-cell button:hover,.rejection-note-cell a:hover { color:var(--blue-accent); }
.rejection-insight { color:var(--danger); background:var(--danger-soft); border-color:rgba(179,77,75,.28); }
.rejection-insight p { color:var(--danger); }
.insight-icon { color:#fff; background:var(--danger); }
.alert-summary-grid .reject-summary { color:#fff; border-color:#9d4545; background:linear-gradient(135deg,#994644,#bd5b56); }

.integration-hero,.watch-hero {
  color:var(--hero-text);
  background:radial-gradient(circle at 87% 8%,rgba(231,190,91,.18),transparent 31%),var(--hero-bg);
  border-color:rgba(224,183,84,.5);
  box-shadow:0 20px 48px rgba(5,31,54,.18);
}
.integration-hero .section-kicker,.integration-progress strong,.watch-last-state strong { color:#f0cf76; }
.integration-hero-copy > p,.connection-card p,.connection-card small,.watch-hero-copy > p,.watch-last-state,.watch-hero-actions small { color:var(--hero-muted); }
.integration-progress > span { background:rgba(255,255,255,.13); }
.integration-progress i { background:linear-gradient(90deg,#68aade,#efcb70); }
.connection-card { border-color:rgba(222,236,248,.18); background:rgba(226,238,249,.08); }
.step-rail,.permission-grid > div,.drawer-kpis div { background:var(--surface-muted); border-color:var(--soft-line); }
.step-rail span,.step-state,.sync-ready-icon,.field-mapping span { color:var(--blue-accent); background:var(--blue-soft); }
.setup-step.complete .step-rail span { color:#0b2d50; background:linear-gradient(135deg,#f0d275,#c08b2b); }
.setup-step.ready .step-rail span,.setup-step.ready .step-state { color:var(--warning); background:var(--warning-soft); }
.setup-step.complete .step-state { color:var(--success); background:var(--success-soft); }
.official-note,.auth-code-note { color:var(--warning); background:var(--warning-soft); border-color:var(--gold); }
.secret-safety,.column-note,.binding-note { color:var(--blue-accent); background:var(--blue-soft); }
.permission-grid > div,.token-lifetime,.sync-ready-box,.column-option { background:var(--surface-muted); border-color:var(--soft-line); }
.copy-field input { color:var(--muted); background:var(--field-muted); }
.copy-field button,.secret-field button { color:var(--gold-strong); background:var(--gold-soft); border-color:var(--line); }
.api-safety-card { color:var(--hero-text); border-color:rgba(224,183,84,.5); background:var(--hero-bg); }
.api-safety-card p { color:var(--hero-muted); }
.integration-summary-card li { color:var(--muted); }
.integration-summary-card li span { color:var(--blue-accent); background:var(--blue-soft); }

.watch-mode-pill { color:#f0cf76; border-color:rgba(231,190,91,.45); background:rgba(224,183,84,.12); }
.watch-mode-pill.danger { color:#ffc0bb; border-color:rgba(239,141,137,.48); background:rgba(179,77,75,.18); }
.watch-last-state i { background:rgba(218,232,245,.2); }
.watch-safety-bar { border-color:var(--soft-line); background:var(--surface-muted); }
.watch-safety-bar label { border-color:var(--line); background:var(--surface); }
.watch-safety-bar b { color:var(--gold-strong); }
.watch-safety-bar small,.switch-label,.watch-rule-meta label,.watch-condition > span { color:var(--muted); }
.watch-safety-bar input { accent-color:var(--gold); }
.switch-label i { background:var(--surface-strong); box-shadow:inset 0 0 0 1px var(--line); }
.switch-label i::after { background:var(--muted); }
.switch-label input:checked + i { background:var(--blue-accent); }
.switch-label input:checked + i::after { background:#f7dc83; }
.watch-condition { border-color:var(--soft-line); background:var(--surface-muted); }
.watch-creative-id,.watch-rule-tags i,.watch-result.observe { color:var(--gold-strong); }
.watch-rule-tags i,.watch-result.observe { background:var(--gold-soft); }
.watch-result.blocked { color:var(--danger); background:var(--danger-soft); }
.warning-text { color:var(--warning); }
.compact-table td { color:var(--muted); }
.danger-text { color:var(--danger)!important; }
.watch-summary-grid article:first-child { border-color:var(--gold); background:linear-gradient(145deg,var(--gold-soft),var(--surface)); }
.watch-summary-grid article:first-child strong { color:var(--gold-strong); }

.modal-backdrop,.drawer-backdrop { background:var(--overlay); }
.modal,.drawer { background:var(--surface); }
.close-button { color:var(--muted); background:var(--surface-strong); }
.drawer-head { color:var(--hero-text); background:var(--hero-bg); border-bottom:1px solid rgba(224,183,84,.45); }
.drawer-head p { color:var(--hero-muted); }
.column-option > b,.column-option label > b { background:var(--field); border-color:var(--line); }
.modal .column-option:has(.column-toggle:checked) { background:var(--blue-soft); border-color:var(--blue-accent); }
.column-option .column-toggle:checked + b { color:#fff; border-color:var(--blue-accent); background:var(--blue-accent); }
.column-drag-handle { color:var(--gold-strong); border-color:var(--gold); background:var(--gold-soft); }
.column-drag-handle:hover,.column-option.drag-ready .column-drag-handle { color:var(--blue-accent); border-color:var(--blue-accent); background:var(--blue-soft); }
.view-name-field { background:var(--surface-muted); }
.feishu-config-card { border-color:var(--gold); background:var(--gold-soft); }
.feishu-config-card small { color:var(--muted); }
.toast { color:var(--hero-text); background:#16436c; border:1px solid var(--gold); box-shadow:0 14px 38px rgba(3,22,39,.28); }

.material-preview-visual { border-color:var(--soft-line); background:var(--surface-muted); }
.material-preview-placeholder { color:var(--muted); }
.material-preview-placeholder > span { color:var(--gold-strong); border-color:var(--gold); background:var(--gold-soft); }
.material-preview-placeholder strong,.material-preview-details h3 { color:var(--ink); }
.material-title-fills span { color:var(--gold-strong); background:var(--gold-soft); }
.material-preview-copy { color:var(--ink); background:var(--blue-soft); border-color:var(--blue-accent); }
.material-preview-copy span,.material-preview-details dt { color:var(--muted); }
.material-preview-details dl { border-color:var(--line); }
.material-preview-details dl > div { border-color:var(--soft-line); }
.material-preview-details dd { color:var(--ink); }
.material-preview-reason dd { color:var(--danger); }
.material-preview-note { color:var(--muted); background:var(--surface-muted); }

.login-screen { background:var(--canvas); }
.login-visual { color:var(--hero-text); background:radial-gradient(circle at 76% 70%,rgba(224,183,84,.17),transparent 32%),var(--hero-bg); }
.login-panel { background:var(--surface); }
.login-field > div { background:var(--field); border-color:var(--line); }
.login-message > p,.login-proof p { color:var(--hero-muted); }
.login-kicker,.login-proof > span { color:#f0cf76; }
.auth-gate { color:#f0cf76; background:radial-gradient(circle at 50% 42%,#194a76 0,#0b2c4d 43%,#071a2f 82%); }
.auth-gate p { color:#aec3d7; }
.mobile-install-gate { color:var(--hero-text); background:radial-gradient(circle at 50% 23%,#1b527d 0,#0d3459 38%,#071a2f 78%); }
.install-art span { color:#f0cf76; }
.install-art i { background:#d3a744; }
.install-app-button { color:#0a2c4e; background:linear-gradient(135deg,#f1d57b,#bd8829); }
.install-help-button,.mobile-install-gate > p,.install-instructions { color:var(--hero-muted); }
.mobile-install-gate > small { color:var(--hero-muted); }

.owner-source-entry {
  min-width:210px;
  min-height:43px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:6px 11px;
  border:1px solid var(--gold);
  border-radius:11px;
  color:var(--ink);
  background:linear-gradient(135deg,var(--gold-soft),var(--surface));
  box-shadow:0 7px 18px rgba(29,79,122,.07);
  cursor:pointer;
  text-align:left;
  transition:.18s ease;
}
.owner-source-entry:hover { border-color:var(--blue-accent); transform:translateY(-1px); box-shadow:0 10px 24px var(--blue-faint); }
.owner-source-entry-icon { flex:0 0 29px; width:29px; height:29px; display:grid; place-items:center; border-radius:9px; color:#0a2d50; background:linear-gradient(145deg,#f0d275,#c08b2b); font-weight:800; font-size:11px; }
.owner-source-entry > span:last-child { display:grid; gap:3px; min-width:0; }
.owner-source-entry strong { font-size:10px; }
.owner-source-entry small { color:var(--muted); font-size:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.owner-source-entry.ready { border-color:var(--success); background:linear-gradient(135deg,var(--success-soft),var(--surface)); }
.owner-source-entry.has-warning { border-color:var(--warning); background:linear-gradient(135deg,var(--warning-soft),var(--surface)); }

.owner-source-modal { width:min(980px,calc(100vw - 30px)); }
.owner-source-modal form { display:grid; gap:15px; }
.owner-import-card { display:grid; gap:12px; padding:15px; border:1px solid var(--gold); border-radius:13px; background:linear-gradient(135deg,var(--gold-soft),var(--surface)); }
.owner-import-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.owner-import-heading > div { display:grid; gap:4px; }
.owner-import-heading strong { color:var(--ink); font-size:12px; }
.owner-import-heading small { color:var(--muted); font-size:9px; line-height:1.55; }
.owner-import-heading .outline-button { flex:0 0 auto; min-height:35px; text-decoration:none; }
.owner-import-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10px; }
.owner-import-file { display:grid!important; gap:6px!important; margin:0!important; }
.owner-import-file > span { color:var(--muted); font-size:8px; }
.owner-import-file input { min-width:0; height:38px; padding:7px 9px; border:1px solid var(--line); border-radius:9px; color:var(--ink); background:var(--field); font-size:9px; }
.owner-import-file input::file-selector-button { height:24px; margin-right:9px; padding:0 9px; border:0; border-radius:6px; color:#fff; background:var(--blue-accent); cursor:pointer; font-size:8px; }
.owner-import-controls .primary-button { min-height:38px; }
.owner-import-controls button:disabled,.owner-import-file input:disabled { opacity:.48; cursor:not-allowed; }
.owner-import-status { min-height:34px; display:flex; align-items:center; padding:8px 10px; border-left:3px solid var(--blue-accent); border-radius:0 8px 8px 0; color:var(--muted); background:var(--blue-soft); font-size:9px; line-height:1.5; }
.owner-import-summary { display:grid; grid-template-columns:1.4fr repeat(3,minmax(0,.65fr)); overflow:hidden; border:1px solid var(--soft-line); border-radius:10px; background:var(--surface); }
.owner-import-summary article { min-width:0; display:grid; gap:4px; padding:9px 11px; border-right:1px solid var(--soft-line); }
.owner-import-summary article:last-child { border-right:0; }
.owner-import-summary span { color:var(--muted); font-size:8px; }
.owner-import-summary strong { overflow:hidden; color:var(--ink); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.owner-source-optional { overflow:hidden; border:1px solid var(--soft-line); border-radius:13px; background:var(--surface-muted); }
.owner-source-optional > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 15px; cursor:pointer; list-style:none; }
.owner-source-optional > summary::-webkit-details-marker { display:none; }
.owner-source-optional > summary > span { display:grid; gap:3px; }
.owner-source-optional > summary strong { color:var(--ink); font-size:11px; }
.owner-source-optional > summary small { color:var(--muted); font-size:8px; }
.owner-source-optional > summary i { color:var(--gold-strong); font-size:16px; font-style:normal; transition:transform .18s ease; }
.owner-source-optional[open] > summary i { transform:rotate(180deg); }
.owner-source-optional-content { display:grid; gap:13px; padding:0 14px 14px; border-top:1px solid var(--soft-line); }
.owner-source-optional-content > :first-child { margin-top:14px; }
.owner-readonly-note { display:flex; align-items:flex-start; gap:11px; padding:12px 14px; border:1px solid var(--blue-accent); border-radius:12px; color:var(--blue-accent); background:var(--blue-soft); }
.owner-readonly-note > span { flex:0 0 24px; width:24px; height:24px; display:grid; place-items:center; border-radius:50%; color:#fff; background:var(--blue-accent); font-weight:800; }
.owner-readonly-note strong { display:block; color:var(--ink); font-size:11px; }
.owner-readonly-note p { margin:4px 0 0; color:var(--muted); font-size:9px; line-height:1.65; }
.owner-readonly-note b { color:var(--gold-strong); }
.owner-source-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); overflow:hidden; border:1px solid var(--soft-line); border-radius:12px; background:var(--surface-muted); }
.owner-source-summary article { min-width:0; display:grid; gap:4px; padding:12px 14px; border-right:1px solid var(--soft-line); }
.owner-source-summary article:last-child { border-right:0; }
.owner-source-summary span { color:var(--muted); font-size:8px; }
.owner-source-summary strong { color:var(--ink); font:600 18px/1.2 Georgia,"Songti SC",serif; overflow:hidden; text-overflow:ellipsis; }
.owner-source-status { padding:9px 11px; border-left:3px solid var(--gold); border-radius:0 8px 8px 0; color:var(--muted); background:var(--gold-soft); font-size:9px; line-height:1.55; }
.owner-source-alerts { display:grid; gap:7px; max-height:168px; overflow:auto; }
.owner-source-alert { display:grid; grid-template-columns:125px minmax(0,1fr); gap:10px; padding:9px 11px; border:1px solid var(--line); border-radius:9px; color:var(--muted); background:var(--surface-muted); font-size:9px; line-height:1.5; }
.owner-source-alert strong { color:var(--ink); }
.owner-source-alert.warning { border-color:var(--gold); background:var(--warning-soft); }
.owner-source-alert.danger { border-color:var(--danger); background:var(--danger-soft); }
.owner-source-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.owner-source-section-head > div { display:grid; gap:4px; }
.owner-source-section-head strong { font-size:12px; }
.owner-source-section-head small { color:var(--muted); font-size:9px; }
.owner-source-list { display:grid; gap:9px; }
.owner-source-row { display:grid; grid-template-columns:34px minmax(0,1fr) auto auto; gap:10px; align-items:center; padding:11px; border:1px solid var(--soft-line); border-radius:12px; background:var(--surface-muted); }
.owner-source-priority { width:30px; height:30px; display:grid; place-items:center; border:1px solid var(--gold); border-radius:9px; color:var(--gold-strong); background:var(--gold-soft); font-weight:800; font-size:10px; }
.owner-source-fields { min-width:0; display:grid; grid-template-columns:minmax(130px,.5fr) minmax(280px,1.5fr); gap:9px; }
.owner-source-row .owner-source-fields label,.owner-source-row .owner-source-enabled { margin:0; }
.owner-source-row .owner-source-fields label { gap:5px; }
.owner-source-row .owner-source-fields label > span { color:var(--muted); font-size:8px; }
.owner-source-row input { height:35px; font-size:10px; }
.owner-source-enabled { display:flex!important; grid-auto-flow:column; align-items:center; gap:7px!important; padding:7px 9px; border:1px solid var(--line); border-radius:9px; color:var(--muted); background:var(--surface); white-space:nowrap; }
.owner-source-enabled input { width:15px!important; height:15px!important; accent-color:var(--blue-accent); }
.owner-source-enabled span { font-size:9px!important; }
.owner-source-actions { display:flex; align-items:center; gap:5px; }
.owner-source-actions .outline-button { min-width:31px; min-height:31px; padding:0 8px; }
.owner-source-actions button:disabled { opacity:.35; cursor:not-allowed; }
.owner-source-empty { display:grid; justify-items:center; gap:5px; padding:28px 18px; border:1px dashed var(--line); border-radius:12px; color:var(--muted); background:var(--surface-muted); text-align:center; }
.owner-source-empty strong { color:var(--ink); font-size:11px; }
.owner-source-empty span { font-size:9px; }
.owner-source-permission { display:flex; align-items:flex-start; gap:9px; padding:10px 11px; border-radius:9px; color:var(--muted); background:var(--surface-muted); font-size:9px; line-height:1.55; }
.owner-source-permission strong { flex:0 0 auto; color:var(--gold-strong); }
.owner-assignment-cell { min-width:145px; display:grid; gap:5px; }
.owner-assignment-cell select:disabled { opacity:1; cursor:default; color:var(--blue-accent); border-color:var(--blue-accent); background:var(--blue-soft); }
.owner-match-source { display:flex; align-items:center; gap:5px; max-width:180px; color:var(--muted); font-size:8px; line-height:1.35; }
.owner-match-source span { flex:0 0 auto; padding:2px 5px; border-radius:5px; color:var(--success); background:var(--success-soft); font-weight:700; }
.owner-match-source.warning { color:var(--warning); }
.owner-match-source.warning span { color:var(--warning); background:var(--warning-soft); }
.owner-match-source.manual { color:var(--muted); }

@media (max-width:1240px) {
  .owner-source-entry { min-width:190px; }
  .owner-source-row { grid-template-columns:34px minmax(0,1fr) auto; }
  .owner-source-enabled { grid-column:2; justify-self:start; }
  .owner-source-actions { grid-column:3; grid-row:1/3; }
}
@media (max-width:760px) {
  .owner-import-heading,.owner-import-controls { grid-template-columns:1fr; align-items:stretch; flex-direction:column; }
  .owner-import-heading .outline-button,.owner-import-controls .primary-button { width:100%; }
  .owner-import-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .owner-import-summary article:nth-child(2) { border-right:0; }
  .owner-import-summary article:nth-child(-n+2) { border-bottom:1px solid var(--soft-line); }
  .owner-source-entry { width:100%; }
  .owner-source-summary { grid-template-columns:repeat(2,1fr); }
  .owner-source-summary article:nth-child(2) { border-right:0; }
  .owner-source-summary article:nth-child(-n+2) { border-bottom:1px solid var(--soft-line); }
  .owner-source-row { grid-template-columns:30px minmax(0,1fr); }
  .owner-source-fields { grid-template-columns:1fr; }
  .owner-source-enabled { grid-column:2; }
  .owner-source-actions { grid-column:2; grid-row:auto; justify-content:flex-end; }
  .owner-source-section-head { align-items:stretch; flex-direction:column; }
  .owner-source-alert { grid-template-columns:1fr; gap:3px; }
  .owner-source-modal .modal-actions { flex-wrap:wrap; }
  .owner-source-modal .modal-actions .modal-spacer { display:none; }
  .owner-source-modal .modal-actions button { flex:1 1 42%; }
}

::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-track { background:var(--scroll-track); }
::-webkit-scrollbar-thumb { background:var(--scroll-thumb); border:2px solid var(--scroll-track); border-radius:8px; }

@media (max-width:820px) {
  .theme-toggle { min-width:36px; padding:0; justify-content:center; }
  .theme-toggle > span:last-child { display:none; }
}

/* Bounded data regions keep long rejection and alert lists inside their cards. */
.material-table-scroll,.bounded-table-scroll {
  max-height:min(62vh,680px);
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.bounded-table-scroll > table > thead {
  position:sticky;
  top:0;
  z-index:4;
  color:var(--muted);
  background:var(--table-head);
  box-shadow:0 1px 0 var(--soft-line);
}
.bounded-table-scroll > table > thead th { background:var(--table-head); }

.rejection-table-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 20px 0; }
.rejection-table-controls .panel-table-toolbar { flex:0 1 auto; margin:0; }
.rejection-bulk-toolbar { flex:0 0 auto; display:flex; align-items:center; gap:8px; min-height:54px; padding:9px 10px; border:1px solid var(--line); border-radius:11px; background:var(--surface-muted); }
.rejection-bulk-toolbar > span { min-width:62px; color:var(--muted); font-size:9px; font-weight:700; white-space:nowrap; }
.rejection-bulk-toolbar button { min-height:34px; }
.rejection-bulk-toolbar button:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; }
.rejection-note-search { flex:1 1 220px; max-width:380px; min-width:190px; height:42px; display:grid; grid-template-columns:32px minmax(0,1fr) 30px; align-items:center; margin:0!important; padding:0 5px; border:1px solid var(--line); border-radius:10px; color:var(--muted); background:var(--surface-muted); }
.rejection-note-search > span { font-size:17px; text-align:center; }
.rejection-note-search input { min-width:0; width:100%; height:38px; padding:0 5px; border:0; color:var(--ink); background:transparent; outline:0; font:500 10px/1 "Segoe UI",Arial,"Microsoft YaHei",sans-serif; }
.rejection-note-search input::placeholder { color:var(--muted); }
.rejection-note-search button { width:26px; height:26px; border:0; border-radius:7px; color:var(--muted); background:transparent; cursor:pointer; font-size:16px; }
.rejection-note-search button:hover { color:var(--ink); background:var(--surface-strong); }
.rejection-table { min-width:1740px; }
.selection-column { width:48px; min-width:48px; max-width:48px; padding-left:15px!important; padding-right:8px!important; text-align:center; }
.row-selection { width:22px; height:22px; display:grid; place-items:center; position:relative; margin:0; cursor:pointer; }
.row-selection input { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
.row-selection span { width:17px; height:17px; display:grid; place-items:center; border:1px solid var(--line); border-radius:5px; background:var(--field); transition:.15s ease; }
.row-selection span::after { content:""; width:8px; height:4px; border-left:2px solid transparent; border-bottom:2px solid transparent; transform:translateY(-1px) rotate(-45deg); }
.row-selection input:checked + span { border-color:var(--blue-accent); background:var(--blue-accent); box-shadow:0 0 0 3px var(--blue-faint); }
.row-selection input:checked + span::after { border-color:#fff; }
.row-selection input:indeterminate + span { border-color:var(--blue-accent); background:var(--blue-accent); }
.row-selection input:indeterminate + span::after { width:8px; height:0; border:0; border-top:2px solid #fff; transform:none; }
.row-selection input:focus-visible + span { outline:2px solid var(--gold); outline-offset:2px; }
.row-selection input:disabled + span { opacity:.38; cursor:not-allowed; }
.rejection-table tr.is-selected > td { background:var(--blue-soft); }
.rejection-note-cell .note-id-button { max-width:165px; color:var(--blue-accent); text-align:left; }
.rejection-note-cell .note-id-button strong { color:inherit; }
.rejection-row-actions { min-width:96px; align-items:stretch; flex-direction:column; }
.rejection-row-actions button { width:100%; white-space:nowrap; }
.control-permission-note { max-width:122px; color:var(--muted); font-size:8px; line-height:1.4; white-space:normal; }
.history-button { min-height:29px; padding:0 8px; font-size:8px; }
.reason-list { display:grid; gap:5px; max-width:220px; }
.reason-list .reason-cell { padding-left:8px; border-left:2px solid var(--danger); }
.rejection-status-cell { min-width:142px; display:grid; gap:5px; }
.rejection-status-cell select { height:31px; padding:0 25px 0 9px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--field); outline:none; font-size:9px; }
.rejection-status-cell select:focus-visible { border-color:var(--blue-accent); box-shadow:0 0 0 3px var(--blue-faint); }
.rejection-status-cell select:disabled { opacity:.72; cursor:not-allowed; }
.rejection-status-cell small { color:var(--muted); font-size:8px; line-height:1.45; white-space:normal; }
.review-pill.pending { color:var(--warning); background:var(--warning-soft); }
.review-pill.pending::before { background:var(--warning); }
.review-pill.editing { color:var(--blue-accent); background:var(--blue-soft); }
.review-pill.editing::before { background:var(--blue-accent); }
.review-pill.modified { color:var(--success); background:var(--success-soft); }
.review-pill.modified::before { background:var(--success); }

.rejection-history-modal { width:min(900px,calc(100vw - 30px)); }
.rejection-history-summary { display:grid; grid-template-columns:1.3fr repeat(3,minmax(0,1fr)); overflow:hidden; margin-bottom:14px; border:1px solid var(--soft-line); border-radius:12px; background:var(--surface-muted); }
.rejection-history-summary > div { min-width:0; display:grid; gap:4px; padding:11px 13px; border-right:1px solid var(--soft-line); }
.rejection-history-summary > div:last-child { border-right:0; }
.rejection-history-summary span { color:var(--muted); font-size:8px; }
.rejection-history-summary strong { overflow:hidden; color:var(--ink); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.rejection-history-list { display:grid; gap:10px; max-height:min(58vh,580px); padding-right:4px; overflow:auto; overscroll-behavior:contain; }
.rejection-history-card { overflow:hidden; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.history-card-head { display:grid; grid-template-columns:auto auto 1fr; align-items:center; gap:9px; padding:9px 12px; border-bottom:1px solid var(--soft-line); background:var(--surface-muted); }
.history-card-head > span { color:var(--gold-strong); font-size:9px; font-weight:800; }
.history-card-head time { color:var(--muted); font-size:8px; text-align:right; }
.rejection-history-card dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; }
.rejection-history-card dl > div { min-width:0; padding:10px 12px; border-right:1px solid var(--soft-line); border-bottom:1px solid var(--soft-line); }
.rejection-history-card dl > div:nth-child(even) { border-right:0; }
.rejection-history-card dl > div:last-child { border-bottom:0; }
.rejection-history-card dt { margin-bottom:5px; color:var(--muted); font-size:8px; }
.rejection-history-card dd { margin:0; color:var(--ink); font-size:10px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.rejection-history-card .history-reason { grid-column:1/-1; border-right:0; background:var(--danger-soft); }
.rejection-history-card .history-reason dd { color:var(--danger); }
.rejection-history-card .history-note-body { grid-column:1/-1; border-right:0; background:var(--surface-muted); }
.rejection-history-card .history-case-event { grid-column:1/-1; border-right:0; background:var(--blue-faint); }
.rejection-history-card .history-case-event dt { color:var(--blue-accent); font-weight:700; }
.case-event-card { border-color:color-mix(in srgb,var(--blue-accent) 36%,var(--line)); }
.history-source { margin-left:8px; color:var(--blue-accent); font-weight:600; }
.history-copy-chip { display:inline-block; margin:0 5px 5px 0; padding:3px 6px; border-radius:6px; color:var(--blue-accent); background:var(--blue-soft); }
.history-unavailable { color:var(--muted)!important; font-style:italic; }
.history-empty { display:grid; justify-items:center; gap:5px; padding:34px 18px; border:1px dashed var(--line); border-radius:12px; color:var(--muted); background:var(--surface-muted); text-align:center; }
.history-empty strong { color:var(--ink); font-size:11px; }
.history-empty span { max-width:620px; font-size:9px; line-height:1.55; }
.history-empty.danger { border-color:var(--danger); background:var(--danger-soft); }
.history-empty.danger strong { color:var(--danger); }

@media (max-width:1080px) {
  .rejection-table-controls { align-items:stretch; flex-direction:column; }
  .rejection-bulk-toolbar { flex-wrap:wrap; }
  .rejection-note-search { flex:0 0 42px; width:100%; max-width:none; }
  .rejection-table-controls .panel-table-toolbar { width:100%; }
}
@media (max-width:680px) {
  .rejection-table-controls { margin-inline:12px; }
  .rejection-bulk-toolbar > span { width:100%; }
  .rejection-bulk-toolbar button { flex:1 1 140px; }
  .rejection-history-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rejection-history-summary > div:nth-child(2) { border-right:0; }
  .rejection-history-summary > div:nth-child(-n+2) { border-bottom:1px solid var(--soft-line); }
  .rejection-history-card dl { grid-template-columns:1fr; }
  .rejection-history-card dl > div { border-right:0; }
}

@media (prefers-reduced-motion:reduce) {
  body,.theme-toggle { transition:none; }
}

/* Table-view presets: compact editor plus grouped template picker. */
.panel.table-view-popover-open { position:relative; z-index:24; overflow:visible; }
.table-view-picker { position:relative; min-width:180px; color:var(--ink); }
.table-view-picker > summary { height:34px; display:grid; grid-template-columns:auto minmax(70px,1fr) auto; align-items:center; gap:7px; padding:0 10px; border:1px solid var(--line); border-radius:9px; color:var(--muted); background:var(--surface); cursor:pointer; list-style:none; user-select:none; }
.table-view-picker > summary::-webkit-details-marker { display:none; }
.table-view-picker > summary span { font-size:8px; white-space:nowrap; }
.table-view-picker > summary strong { overflow:hidden; color:var(--gold-strong); font-size:9px; text-align:right; text-overflow:ellipsis; white-space:nowrap; }
.table-view-picker > summary > i { color:var(--muted); font-size:10px; font-style:normal; transition:transform .16s ease; }
.table-view-picker[open] > summary { border-color:var(--blue-accent); box-shadow:0 0 0 3px var(--blue-faint); }
.table-view-picker[open] > summary > i { transform:rotate(180deg); }
.table-view-menu { position:absolute; z-index:80; top:calc(100% + 7px); right:0; width:min(318px,calc(100vw - 34px)); overflow:hidden; padding:7px; border:1px solid var(--line); border-radius:13px; color:var(--ink); background:var(--surface); box-shadow:0 20px 50px rgba(7,31,54,.2); }
.table-view-menu section { display:grid; gap:3px; padding:5px 3px 7px; }
.table-view-menu section + section { border-top:1px solid var(--soft-line); }
.table-view-menu h4 { margin:0 7px 4px; color:var(--muted); font-size:8px; font-weight:700; letter-spacing:.08em; }
.table-view-menu-choice { width:100%; min-width:0; display:grid; grid-template-columns:minmax(0,1fr) 18px; align-items:center; gap:8px; padding:7px 8px; border:0; border-radius:8px; color:var(--ink); background:transparent; cursor:pointer; text-align:left; }
.table-view-menu-choice:hover,.table-view-menu-choice.selected { background:var(--blue-faint); }
.table-view-menu-choice > span { min-width:0; display:grid; gap:2px; }
.table-view-menu-choice strong,.table-view-menu-choice small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.table-view-menu-choice strong { font-size:9px; }
.table-view-menu-choice small { color:var(--muted); font-size:8px; font-weight:400; }
.table-view-menu-choice > i { width:18px; height:18px; display:grid; place-items:center; border-radius:6px; color:var(--blue-accent); font-size:10px; font-style:normal; font-weight:800; }
.table-view-saved-row { display:grid; grid-template-columns:minmax(0,1fr) 28px 28px; align-items:center; gap:2px; }
.table-view-row-action { width:27px; height:27px; display:grid; place-items:center; padding:0; border:0; border-radius:7px; color:var(--muted); background:transparent; cursor:pointer; font-size:11px; }
.table-view-row-action:hover { color:var(--blue-accent); background:var(--blue-faint); }
.table-view-row-action.danger:hover { color:var(--danger); background:var(--danger-soft); }
.table-view-menu-empty { margin:2px 7px 5px; color:var(--muted); font-size:8px; }
.table-view-create { width:100%; display:grid; grid-template-columns:28px minmax(0,1fr); column-gap:8px; align-items:center; padding:9px 10px; border:0; border-top:1px solid var(--soft-line); color:var(--blue-accent); background:transparent; cursor:pointer; text-align:left; }
.table-view-create:hover { background:var(--blue-faint); }
.table-view-create > span { grid-row:1/3; width:27px; height:27px; display:grid; place-items:center; border-radius:8px; background:var(--blue-soft); font-size:14px; }
.table-view-create strong { font-size:9px; }
.table-view-create small { color:var(--muted); font-size:8px; }

.column-modal { width:min(1200px,calc(100vw - 32px)); height:min(760px,calc(100vh - 32px)); max-height:calc(100vh - 32px); display:flex; flex-direction:column; overflow:hidden; }
.column-modal .modal-header { flex:0 0 auto; padding:17px 21px 14px; }
.column-modal .modal-header h2 { margin-top:4px; font-size:20px; }
.column-modal .column-form { flex:1 1 auto; min-height:0; display:grid; grid-template-rows:auto minmax(0,1fr) auto auto; gap:10px; padding:13px 18px 15px; overflow:hidden; }
.column-builder-toolbar { display:grid; grid-template-columns:minmax(190px,260px) minmax(280px,1fr); gap:10px; }
.column-modal .view-name-field,.column-modal .column-search-field { min-width:0; display:grid; gap:5px; margin:0; padding:0; background:transparent; }
.column-modal .view-name-field > span,.column-modal .column-search-field > span { color:var(--muted); font-size:8px; }
.column-modal .view-name-field input,.column-search-field > div { height:36px; border:1px solid var(--line); border-radius:9px; color:var(--ink); background:var(--field); }
.column-modal .view-name-field input { height:36px; }
.column-search-field > div { display:grid; grid-template-columns:28px minmax(0,1fr) 30px; align-items:center; }
.column-search-field i { color:var(--muted); font-size:15px; font-style:normal; text-align:center; }
.column-modal .column-search-field input { height:34px; padding:0 4px; border:0; color:var(--ink); background:transparent; box-shadow:none; }
.column-search-field button { width:26px; height:26px; border:0; border-radius:7px; color:var(--muted); background:transparent; cursor:pointer; font-size:16px; }
.column-search-field button:hover { color:var(--ink); background:var(--surface-strong); }
.column-builder { min-height:0; display:grid; grid-template-columns:170px minmax(360px,1fr) minmax(250px,285px); overflow:hidden; border:1px solid var(--line); border-radius:5px; background:var(--surface); }
.column-category-pane,.column-catalog-pane,.column-selected-pane { min-width:0; min-height:0; overflow:hidden; }
.column-category-pane { border-right:1px solid var(--line); background:var(--surface-muted); }
.column-catalog-pane { display:flex; flex-direction:column; border-right:1px solid var(--line); }
.column-selected-pane { display:flex; flex-direction:column; background:var(--surface-muted); }
.column-pane-heading { flex:0 0 auto; min-height:39px; display:flex; align-items:center; gap:8px; padding:7px 10px; border-bottom:1px solid var(--soft-line); }
.column-pane-heading strong { color:var(--ink); font-size:9px; }
.column-pane-heading strong b { color:var(--blue-accent); }
.column-pane-heading > span { color:var(--muted); font-size:8px; }
.column-pane-heading .text-button { margin-left:auto; padding:4px; color:var(--blue-accent); font-size:8px; }
#columnCategoryList { height:calc(100% - 39px); overflow-y:auto; padding:6px; scrollbar-gutter:stable; }
#columnCategoryList button { width:100%; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 9px; border:0; border-radius:8px; color:var(--muted); background:transparent; cursor:pointer; text-align:left; font-size:9px; }
#columnCategoryList button:hover,#columnCategoryList button[aria-pressed="true"] { color:var(--ink); background:var(--blue-soft); }
#columnCategoryList button[aria-pressed="true"] { box-shadow:inset 2px 0 var(--blue-accent); font-weight:700; }
#columnCategoryList b { color:var(--muted); font-size:8px; font-weight:600; }
.column-modal .column-options { min-height:0; display:block; overflow-y:auto; overscroll-behavior:contain; padding:3px 7px 8px; scrollbar-gutter:stable; }
.column-modal .column-option { min-height:48px; display:grid; grid-template-columns:20px minmax(0,1fr) auto; align-items:center; gap:9px; margin:0; padding:7px 8px; border:0; border-bottom:1px solid var(--soft-line); border-radius:7px; cursor:pointer; }
.column-modal .column-option:hover { background:var(--blue-faint); }
.column-modal .column-option:has(.column-toggle:checked) { border-color:var(--soft-line); background:var(--blue-faint); }
.column-option > span { min-width:0; display:grid; gap:3px; }
.column-option > span strong { overflow:hidden; color:var(--ink); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.column-option > span i { overflow:hidden; color:var(--muted); font-size:7px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.column-option > em { color:var(--gold-strong); font-size:8px; font-style:normal; }
.column-catalog-empty { margin:auto; padding:24px; color:var(--muted); font-size:9px; text-align:center; }
.column-selected-help { flex:0 0 auto; margin:0; padding:7px 10px; border-bottom:1px solid var(--soft-line); color:var(--muted); font-size:7px; line-height:1.45; }
.selected-column-options { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:6px; scrollbar-gutter:stable; }
.selected-column-option { display:grid; grid-template-columns:27px 18px minmax(0,1fr) auto; align-items:center; gap:6px; margin-bottom:5px; padding:6px; border:1px solid var(--soft-line); border-radius:8px; background:var(--surface); transition:opacity .16s ease,transform .16s ease,border-color .16s ease; }
.selected-column-option.dragging { opacity:.45; transform:scale(.98); border-color:var(--gold); border-style:dashed; }
.selected-column-drag-handle { width:27px; height:38px; display:grid; place-items:center; border:1px dashed var(--gold); border-radius:7px; color:var(--gold-strong); background:var(--gold-soft); cursor:grab; font-size:15px; }
.selected-column-drag-handle:hover,.selected-column-option.drag-ready .selected-column-drag-handle { color:var(--blue-accent); border-color:var(--blue-accent); background:var(--blue-soft); cursor:grabbing; }
.selected-column-drag-handle:disabled { opacity:.45; cursor:not-allowed; }
.selected-column-index { color:var(--muted); font-size:8px; text-align:center; }
.selected-column-option > label { min-width:0; display:grid; gap:2px; margin:0; }
.column-modal .selected-column-option .column-name-input { min-width:0; width:100%; height:27px; padding:0 6px; border:1px solid transparent; border-radius:6px; color:var(--ink); background:transparent; font-size:9px; }
.column-modal .selected-column-option .column-name-input:hover,.column-modal .selected-column-option .column-name-input:focus { border-color:var(--line); background:var(--field); }
.selected-column-option label small { overflow:hidden; color:var(--muted); font-size:7px; text-overflow:ellipsis; white-space:nowrap; }
.selected-column-actions { display:flex; align-items:center; gap:2px; }
.selected-column-actions button,.selected-column-actions span { width:23px; height:23px; display:grid; place-items:center; padding:0; border:0; border-radius:6px; color:var(--muted); background:transparent; font-size:10px; }
.selected-column-actions button { cursor:pointer; }
.selected-column-actions button:hover:not(:disabled) { color:var(--blue-accent); background:var(--blue-soft); }
.selected-column-actions button:last-child:hover:not(:disabled) { color:var(--danger); background:var(--danger-soft); }
.selected-column-actions button:disabled { opacity:.28; cursor:not-allowed; }
.column-modal .column-note { margin-top:0; padding:7px 9px; }
.column-modal .modal-actions { margin-top:0; }
.column-modal .column-pane-heading strong,.column-modal #columnCategoryList button { font-size:12px; }
#columnCategoryList .column-subcategory { padding-left:23px; font-size:11px; font-weight:400; }
.official-column-group h3 { margin:16px 8px 8px; font-size:12px; font-weight:600; }
.official-column-group-title { display:flex!important; flex-direction:row; align-items:center; gap:7px; padding:8px; margin:0!important; background:var(--surface-muted); font-size:12px!important; }
.official-column-group-title input,.save-column-template input { width:15px; height:15px; margin:0; accent-color:var(--blue-accent); }
.official-column-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px 8px; padding:4px 0 10px; }
.column-modal .official-column-grid .column-option { min-height:34px; border:0; border-radius:3px; padding:6px; grid-template-columns:17px minmax(0,1fr) auto; gap:6px; }
.column-modal .official-column-grid .column-option > b { width:15px; height:15px; border-radius:3px; }
.column-modal .official-column-grid .column-option strong { font-size:11px; font-weight:400; white-space:normal; line-height:1.45; }
.column-modal .official-column-grid .column-option:has(.column-toggle:checked) { background:transparent; }
.column-modal .official-column-grid .column-option:hover { background:var(--blue-faint); }
.column-modal .column-toggle:focus-visible + b { outline:2px solid var(--blue-accent); outline-offset:2px; }
.column-modal .selected-column-option { grid-template-columns:18px minmax(0,1fr) auto; gap:3px; padding:3px; border:0; border-radius:3px; margin-bottom:4px; }
.selected-column-index,.selected-column-option label small { display:none; }
.column-modal .selected-column-option .column-name-input { font-size:11px; padding:0 3px; }
.selected-column-drag-handle { width:18px; height:30px; border:0; color:var(--muted); background:transparent; }
.column-modal .save-column-template { display:flex; flex-direction:row; align-items:center; gap:6px; font-size:11px; margin:0; white-space:nowrap; }
.column-modal #tableViewName { width:140px; height:32px; }
#promotionSummary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:22px; }
.summary-grid[hidden] { display:none!important; }
.promotion-metric-card { min-width:0; display:grid; gap:12px; padding:18px; background:var(--surface); border:1px solid var(--line); border-radius:12px; }
.promotion-metric-card > span { font-size:12px; color:var(--muted); }
.promotion-metric-card > strong { font-size:25px; }
.promotion-metric-card > small { font-size:11px; color:var(--muted); }
.promotion-metric-card .promotion-coverage { font-size:11px; line-height:1.5; }
.promotion-metric-card.is-partial .promotion-coverage { color:var(--warning, #946200); font-weight:600; }
.promotion-account-status { margin:0 0 12px; padding:10px 14px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--muted); font-size:12px; }
.promotion-account-status summary { cursor:pointer; min-height:24px; line-height:24px; }
.promotion-account-status summary > span { margin-left:14px; color:var(--text); text-decoration:underline; text-underline-offset:3px; }
.promotion-account-status summary:focus-visible { outline:2px solid #3f8bc2; outline-offset:4px; border-radius:4px; }
.promotion-account-status p { margin:10px 0; line-height:1.6; }
.promotion-account-status ul { margin:0; padding:0; list-style:none; }
.promotion-account-status li { display:flex; flex-wrap:wrap; gap:4px 16px; padding:6px 0; line-height:1.6; }
.promotion-account-status li strong { color:var(--text); font-weight:600; }
.account-finance-details { margin-top:20px; }
.account-finance-details > summary { cursor:pointer; padding:14px 4px; font-size:12px; color:var(--muted); }
[data-view-table="overview"],[data-view-table="accounts"] { width:max-content; min-width:100%; }
[data-view-table="overview"] th,[data-view-table="accounts"] th { min-width:110px; }
[data-view-table="overview"] [data-column="project"],[data-view-table="accounts"] [data-column="project"] { min-width:220px; }
@media(max-width:760px){.official-column-grid{grid-template-columns:1fr;}#promotionSummary{grid-template-columns:repeat(2,minmax(0,1fr));}.column-modal .modal-actions{flex-wrap:wrap;}}
.sr-only { width:1px!important; height:1px!important; position:absolute!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; }

@media (max-width:900px) {
  .column-modal { width:calc(100vw - 24px); height:calc(100vh - 24px); max-height:calc(100vh - 24px); }
  .column-builder { grid-template-columns:125px minmax(280px,1fr) 270px; }
}
@media (max-width:680px) {
  .table-view-picker { min-width:min(100%,190px); }
  .table-view-menu { right:auto; left:0; }
  .column-modal .column-form { padding:10px; overflow-y:auto; }
  .column-builder-toolbar { grid-template-columns:1fr; }
  .column-builder { min-height:620px; grid-template-columns:1fr; grid-template-rows:auto minmax(260px,1fr) minmax(260px,1fr); overflow:visible; }
  .column-category-pane { border-right:0; border-bottom:1px solid var(--line); }
  .column-category-pane .column-pane-heading { display:none; }
  #columnCategoryList { height:auto; display:flex; overflow-x:auto; padding:6px; }
  #columnCategoryList button { width:auto; flex:0 0 auto; }
  .column-catalog-pane { border-right:0; border-bottom:1px solid var(--line); }
}

/* Independent real-data trend controls and daily small multiples. */
.trend-panel-header { align-items:flex-start; gap:14px; }
.trend-panel-controls { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.trend-panel-controls label { min-width:116px; display:grid; grid-template-columns:auto minmax(82px,1fr); align-items:center; gap:6px; padding:4px 7px; border:1px solid var(--line); border-radius:9px; color:var(--muted); background:var(--surface-muted); font-size:8px; }
.trend-panel-controls label:first-child { min-width:190px; }
.trend-panel-controls select,.trend-panel-controls input { min-width:0; width:100%; height:25px; padding:0 5px; border:0; color:var(--ink); background:transparent; font:600 9px/1 "Segoe UI",Arial,"Microsoft YaHei",sans-serif; outline:0; }
.trend-panel-controls input { font-variant-numeric:tabular-nums lining-nums; }
.chart-panel .chart-wrap { height:auto; min-height:310px; }
.trend-small-multiples { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.trend-mini-card { min-width:0; padding:11px 10px 7px; border:1px solid var(--soft-line); border-radius:11px; background:var(--surface-muted); }
.trend-mini-card header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 3px 5px; }
.trend-mini-card header span { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:9px; }
.trend-mini-card header i { width:7px; height:7px; border-radius:50%; }
.trend-mini-card header strong { color:var(--ink); font-family:"Segoe UI",Arial,"Microsoft YaHei",sans-serif; font-size:15px; font-weight:600; letter-spacing:0; font-variant-numeric:tabular-nums lining-nums; font-feature-settings:"tnum" 1,"lnum" 1; }
.trend-mini-card svg { display:block; width:100%; height:126px; overflow:visible; }
.trend-series-line { fill:none; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.trend-series-point { stroke:var(--surface); stroke-width:1.5; }
.trend-mini-empty { height:126px; display:grid; place-items:center; color:var(--muted); font-size:9px; }

@media (max-width:900px) {
  .trend-panel-header { flex-direction:column; }
  .trend-panel-controls { width:100%; justify-content:flex-start; }
  .trend-panel-controls label { flex:1 1 130px; }
  .trend-panel-controls label:first-child { flex-basis:220px; }
}
@media (max-width:600px) {
  .trend-small-multiples { grid-template-columns:1fr; }
  .chart-panel .chart-wrap { min-height:280px; }
}

/* Comment patrol: one row per note ID, with spend/comments merged across plans. */
.comment-patrol-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:14px; padding:24px 26px; border:1px solid color-mix(in srgb,var(--green) 28%,var(--line)); border-radius:16px; background:linear-gradient(120deg,var(--surface),color-mix(in srgb,var(--green-soft) 68%,var(--surface))); box-shadow:var(--shadow); }
.comment-patrol-hero h2 { margin:6px 0 8px; color:var(--ink); font:600 22px/1.25 Georgia,"Songti SC",serif; }
.comment-patrol-hero p { max-width:780px; margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.comment-patrol-actions { flex:0 0 auto; display:flex; gap:8px; }
.comment-patrol-notice { display:flex; align-items:flex-start; gap:10px; margin-bottom:14px; padding:11px 14px; border:1px solid var(--line); border-radius:11px; color:var(--muted); background:var(--surface-muted); }
.comment-patrol-notice > span { flex:0 0 20px; width:20px; height:20px; display:grid; place-items:center; border-radius:50%; color:var(--blue-accent); background:var(--blue-soft); font:700 11px/1 Georgia,serif; }
.comment-patrol-notice p { margin:1px 0 0; font-size:9px; line-height:1.6; }
.comment-patrol-notice strong { color:var(--ink); }
.comment-patrol-summary { margin-bottom:14px; }
.comment-patrol-summary > div:nth-child(2) strong,.comment-patrol-summary > div:nth-child(3) strong { color:var(--amber); }
.comment-patrol-panel { overflow:hidden; }
.comment-patrol-toolbar { display:flex; align-items:center; gap:9px; padding:16px 18px 11px; }
.comment-patrol-date-range { display:flex; align-items:center; gap:6px; }
.comment-patrol-date-range label { display:flex; align-items:center; gap:5px; padding:4px 7px; border:1px solid var(--line); border-radius:9px; color:var(--muted); background:var(--field); font-size:8px; white-space:nowrap; }
.comment-patrol-date-range input { width:112px; height:25px; padding:0 3px; border:0; color:var(--ink); background:transparent; font-size:9px; outline:0; }
.comment-patrol-date-range > span { color:var(--muted); font-size:9px; }
.comment-patrol-toolbar .search-box { flex:1 1 280px; }
.comment-patrol-toolbar #markAllCommentsChecked { margin-left:auto; white-space:nowrap; }
.comment-patrol-bulk-toolbar { display:flex; align-items:center; gap:8px; padding:0 18px 11px; color:var(--muted); font-size:8px; }
.comment-patrol-bulk-toolbar > span { color:var(--ink); font-weight:700; }
.comment-patrol-bulk-toolbar > small { margin-left:auto; }
.comment-patrol-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 18px 12px; color:var(--muted); font-size:8px; }
.comment-patrol-meta > span { color:var(--ink); font-weight:600; }
.comment-patrol-table { min-width:1740px; }
.comment-patrol-table th { white-space:nowrap; }
.comment-patrol-table td { vertical-align:middle; }
.comment-patrol-note { min-width:220px; display:flex; align-items:center; gap:10px; }
.comment-patrol-note > div { min-width:0; display:grid; gap:4px; }
.comment-patrol-note strong { max-width:250px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.comment-patrol-note small,.comment-patrol-count small { color:var(--muted); font-size:8px; }
.comment-patrol-thumb { flex:0 0 42px; width:42px; height:42px; display:grid; place-items:center; overflow:hidden; border-radius:9px; color:var(--green); background:var(--green-soft); font-size:18px; }
.comment-patrol-thumb.video { color:var(--violet); background:color-mix(in srgb,var(--violet) 12%,var(--surface)); }
.comment-patrol-thumb img { width:100%; height:100%; object-fit:cover; }
.comment-patrol-count { min-width:118px; }
.comment-patrol-count strong { display:block; color:var(--ink); font-size:15px; font-variant-numeric:tabular-nums; }
.comment-patrol-count small { display:block; margin-top:3px; }
.comment-patrol-status { display:inline-flex; align-items:center; min-height:24px; padding:0 8px; border-radius:999px; font-size:8px; font-weight:700; white-space:nowrap; }
.comment-patrol-status.pending { color:var(--amber); background:var(--amber-soft); }
.comment-patrol-status.checked { color:var(--green); background:var(--green-soft); }
.comment-patrol-status.quiet { color:var(--muted); background:var(--surface-muted); }
.comment-patrol-status.unavailable { color:var(--danger); background:var(--danger-soft); }
.comment-patrol-owner { min-width:135px; }
.comment-patrol-owner > strong { display:block; }
.comment-patrol-owner-select { width:150px; height:31px; padding:0 7px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--field); font-size:8px; }
.comment-task-choices { min-width:150px; display:flex; flex-wrap:wrap; gap:5px; }
.comment-task-choices label { position:relative; cursor:pointer; }
.comment-task-choices input { position:absolute; opacity:0; pointer-events:none; }
.comment-task-choices span { min-height:25px; display:inline-flex; align-items:center; padding:0 8px; border:1px solid var(--line); border-radius:8px; color:var(--muted); background:var(--surface); font-size:8px; transition:.16s ease; }
.comment-task-choices input:checked + span { border-color:var(--amber); color:var(--amber); background:var(--amber-soft); font-weight:700; }
.comment-task-status { min-width:86px; height:31px; padding:0 8px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--field); font-size:9px; }
.comment-task-status:disabled { opacity:.62; }
.comment-task-completed { background:color-mix(in srgb,var(--green-soft) 42%,transparent); }
.comment-task-completed .comment-task-status { border-color:color-mix(in srgb,var(--green) 40%,var(--line)); color:var(--green); }
.comment-patrol-row-actions { min-width:125px; display:grid; gap:4px; }
.comment-patrol-row-actions button { justify-content:center; white-space:nowrap; }

@media (max-width:900px) {
  .comment-patrol-hero { align-items:flex-start; flex-direction:column; }
  .comment-patrol-actions { width:100%; }
  .comment-patrol-actions button { flex:1; }
  .comment-patrol-toolbar { align-items:stretch; flex-wrap:wrap; }
  .comment-patrol-date-range { width:100%; flex-wrap:wrap; }
  .comment-patrol-toolbar .filter-group { width:100%; }
  .comment-patrol-toolbar #markAllCommentsChecked { margin-left:0; }
  .comment-patrol-bulk-toolbar { flex-wrap:wrap; }
  .comment-patrol-bulk-toolbar > small { width:100%; margin-left:0; }
}
@media (max-width:600px) {
  .comment-patrol-hero { padding:18px; }
  .comment-patrol-hero h2 { font-size:19px; }
  .comment-patrol-actions { flex-direction:column; }
  .comment-patrol-toolbar .filter-group { display:grid; grid-template-columns:1fr; }
  .comment-patrol-date-range label { flex:1 1 120px; }
  .comment-patrol-date-range input { width:100%; }
  .comment-patrol-toolbar .search-box,.comment-patrol-toolbar #markAllCommentsChecked { flex:1 1 100%; width:100%; }
  .comment-patrol-meta { align-items:flex-start; flex-direction:column; }
}
/* Note comments QR: a local, popup-independent handoff to the mobile app. */
.note-qr-modal{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;}
.note-qr-modal .note-qr-image{width:min(280px,100%);margin:18px auto;background:#fff;padding:8px;}
.note-qr-modal .note-qr-image svg{display:block;width:100%;height:auto;}
.note-qr-modal p{overflow-wrap:anywhere;line-height:1.6;}
.note-qr-modal .note-qr-id{font-family:monospace;}
.note-qr-modal > p{margin:16px 24px;}
.note-qr-modal .modal-actions{padding:0 24px 22px;gap:8px;flex-wrap:wrap;}
.note-qr-modal .note-qr-start{margin-right:auto;}
.note-qr-modal .modal-actions > button,.note-qr-modal .modal-actions > a{padding-left:10px;padding-right:10px;}
.note-qr-modal .note-qr-copy-status,.note-qr-modal .note-qr-copy-fallback{margin:12px 24px;font-size:12px;line-height:1.6;}
.note-qr-modal .note-qr-copy-fallback[hidden]{display:none;}
.account-management-section{margin-bottom:28px;}
.account-month-label{font-size:12px;color:var(--text-secondary,#58728c);white-space:nowrap;}
.account-promotion-panel{margin-top:24px;}
.account-management-section .project-card-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;}
.account-management-section .project-card-metrics strong{font-size:20px;}
.account-management-section .project-card-metrics span{line-height:1.5;}
.report-caliber-tabs{display:flex;gap:4px;margin:10px 0 4px;}
.report-caliber-tabs button{border:1px solid var(--border,#c7d7e6);background:var(--surface,#fff);color:inherit;border-radius:6px;padding:7px 14px;cursor:pointer;}
.report-caliber-tabs button[aria-pressed=true]{color:#fff;background:#155b8d;border-color:#155b8d;}
.report-caliber-help{font-size:11px;line-height:1.6;color:var(--text-secondary,#58728c);margin:5px 0 10px;}
/* Account-scoped Taobao pilot: keep the existing blue/gold visual language. */
#taobaoRiskPanel{margin:18px 0;overflow:hidden}
.watch-summary-grid.risk-pilot-active{grid-template-columns:1fr}
[hidden]{display:none!important}
.risk-notice,.risk-status,.risk-counts,.risk-toolbar,.risk-config,.risk-records,.risk-pagination{margin:16px 20px}
.risk-notice{padding:14px 18px;background:var(--bg-soft,#edf5fb);border-left:3px solid #c49530;line-height:1.8}
.risk-notice span,.risk-rule>span,.risk-rule>small,.risk-table small{display:block}
.risk-table small{font-size:11px;line-height:1.6;margin-top:6px;color:#667d94}
.risk-status{padding:12px;border:1px solid #bad4e8;border-radius:10px;font-size:12px}
.risk-warning{color:#a04c21!important;background:#fff5e7}
.risk-counts,.risk-toolbar,.risk-pagination{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.risk-counts span{background:#edf5fb;padding:12px 18px;border-radius:10px}.risk-counts b{font-size:22px;margin-left:8px}
.risk-config summary,.risk-records summary{cursor:pointer;padding:12px 0;font-weight:600}
.risk-config p{font-size:12px;line-height:1.7}.risk-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:12px;margin:14px 0}
.risk-rule{border:1px solid #c7d9eb;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:10px;background:#f2f7fc}
.risk-rule input[type=number]{width:85px;padding:8px}.risk-rule label{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.risk-rule small{font-size:11px;color:#667d94}
.risk-toolbar select,.risk-toolbar input,.risk-pagination select,.risk-dialog select,.risk-dialog textarea{border:1px solid #bed2e6;border-radius:8px;padding:10px;background:#fff;color:#153655}
.risk-table{min-width:1680px;table-layout:fixed;width:100%}.risk-table th:first-child{width:40px}.risk-table th:nth-child(2){width:240px}.risk-table th:nth-child(8){width:235px}.risk-table th:last-child{width:230px}
.risk-table td{white-space:normal;overflow-wrap:anywhere;padding:18px 12px;line-height:1.7;vertical-align:top}.risk-table button[data-risk-sort]{border:0;background:transparent;color:inherit;cursor:pointer}
.risk-table .outline-button{margin-bottom:8px;display:inline-flex}.risk-hit{border-left:2px solid #d09f36;padding-left:8px;margin-bottom:10px;font-size:12px}
.risk-pagination{justify-content:flex-end}.risk-pagination>span{margin-right:auto}.risk-pagination button{padding:8px 12px;border:1px solid #c7d9eb;border-radius:8px;cursor:pointer}.risk-pagination button:disabled{opacity:.45;cursor:default}
.risk-records p{font-size:12px;border-top:1px solid #d7e4ee;padding:12px;line-height:1.7}.risk-empty{padding:30px}
.risk-dialog{max-width:560px;width:calc(100% - 48px);border:1px solid #c4d4e4;border-radius:18px;padding:24px;color:#153655}.risk-dialog::backdrop{background:#18344d88}.risk-dialog label{display:flex;flex-direction:column;gap:8px;margin:16px 0}.risk-dialog textarea{min-height:100px}.risk-dialog p{font-size:12px;line-height:1.8}.risk-dialog [data-error]{color:#b34542}
@media(max-width:1100px){.risk-rule-grid{grid-template-columns:repeat(2,minmax(200px,1fr))}}@media(max-width:700px){.risk-rule-grid{grid-template-columns:1fr}}
