:root {
  --ink: #18201f;
  --muted: #69736f;
  --line: #dce3df;
  --canvas: #f5f7f4;
  --surface: #ffffff;
  --surface-alt: #eff3ef;
  --forest: #145c4e;
  --forest-deep: #0d4037;
  --mint: #d6efe5;
  --lime: #bbdd58;
  --orange: #f37b45;
  --orange-soft: #fff0e9;
  --blue: #3178b8;
  --blue-soft: #eaf3fb;
  --red: #c9473e;
  --red-soft: #fff0ee;
  --yellow: #f8d77a;
  --shadow: 0 10px 26px rgba(21, 42, 35, 0.07);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; }
body { background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 242px minmax(0, 1fr); }
.sidebar { background: #102e28; color: #dcebe5; padding: 18px 12px; display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 8px 10px 22px; color: white; }
.brand-mark { height: 30px; width: 30px; display: grid; place-items: center; border-radius: 7px; background: var(--lime); color: #15372e; font-size: 16px; font-weight: 800; }
.brand-copy { min-width: 0; }
.brand-title { font-weight: 760; font-size: 16px; line-height: 1.1; letter-spacing: .2px; }
.brand-subtitle { color: #91afa5; font-size: 11px; margin-top: 4px; }
.workspace-switcher { display: flex; align-items: center; gap: 8px; color: #f6fbf8; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); width: 100%; border-radius: 6px; padding: 10px; text-align: left; margin: 0 0 17px; }
.workspace-switcher span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; font-weight: 600; }
.workspace-switcher svg { width: 15px; }
.nav-label { color: #76978b; font-size: 11px; padding: 12px 10px 7px; letter-spacing: .8px; }
.nav-item { border: 0; background: transparent; color: #b8d0c7; display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; text-align: left; border-radius: 6px; margin: 1px 0; transition: .16s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.075); }
.nav-item.active { color: #15372e; background: var(--lime); font-weight: 700; }
.nav-item svg { width: 17px; height: 17px; flex: 0 0 auto; }
.nav-badge { margin-left: auto; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.13); color: inherit; font-size: 11px; }
.nav-item.active .nav-badge { background: rgba(21,55,46,.15); }
.sidebar-bottom { margin-top: auto; padding-top: 18px; }
.sidebar-help { border: 1px solid rgba(214,239,229,.16); background: rgba(214,239,229,.07); padding: 12px; border-radius: 7px; color: #a9c5ba; font-size: 12px; line-height: 1.55; }
.sidebar-help strong { color: white; display: block; margin-bottom: 3px; }
.sidebar-help button { border: 0; padding: 0; color: var(--lime); background: transparent; margin-top: 8px; font-weight: 700; }
.user-mini { display: flex; align-items: center; gap: 9px; padding: 16px 8px 4px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #4f8978; font-weight: 750; flex: 0 0 auto; }
.avatar.orange { background: #d2663a; }
.avatar.yellow { color: #553f0c; background: #efc66d; }
.avatar.blue { background: #397eaf; }
.user-mini .name { color: #f3fbf7; font-size: 13px; font-weight: 650; }
.user-mini .role { color: #8ba99f; font-size: 11px; margin-top: 2px; }
.signout { margin-left: auto; color: #8ba99f; background: transparent; border: 0; padding: 5px; }
.signout:hover { color: #fff; }

.main { min-width: 0; }
.topbar { height: 66px; display: flex; align-items: center; gap: 16px; padding: 0 30px; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.mobile-menu { display: none; }
.crumb { min-width: 160px; }
.crumb .title { font-size: 17px; font-weight: 740; letter-spacing: .1px; }
.crumb .hint { color: var(--muted); font-size: 12px; margin-top: 3px; }
.searchbox { max-width: 390px; min-width: 220px; flex: 1; position: relative; }
.searchbox svg { position: absolute; left: 11px; top: 10px; width: 17px; color: #77817c; }
.searchbox input { width: 100%; height: 38px; padding: 0 58px 0 37px; border: 1px solid var(--line); background: #f8faf8; border-radius: 6px; outline: none; color: var(--ink); }
.searchbox input:focus { border-color: #6aa897; box-shadow: 0 0 0 3px rgba(40,130,107,.12); background: #fff; }
.key-hint { position: absolute; right: 8px; top: 9px; border: 1px solid #d9e0dc; padding: 2px 5px; color: #7d8782; background: white; font-size: 11px; border-radius: 4px; }
.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-button { height: 34px; width: 34px; display: inline-grid; place-items: center; color: #4d5b55; background: transparent; border: 1px solid transparent; border-radius: 6px; position: relative; }
.icon-button:hover { background: var(--surface-alt); border-color: var(--line); }
.icon-button svg { width: 18px; }
.notice-dot { width: 7px; height: 7px; background: var(--orange); border: 1px solid white; position: absolute; border-radius: 50%; right: 8px; top: 7px; }
.connection { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); padding-left: 5px; }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: #69a783; }
.connection.mock .connection-dot { background: #eaa16f; }

.page { padding: 28px 30px 40px; max-width: 1680px; margin: auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.page-head h1 { font-size: 25px; margin: 0; font-weight: 760; letter-spacing: 0; }
.page-head p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }
.head-actions, .toolbar, .inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button { height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; background: white; color: #355047; border: 1px solid #cfd9d4; border-radius: 6px; font-weight: 650; white-space: nowrap; }
.button:hover { background: #f4f8f5; border-color: #a7b9b1; }
.button.primary { color: white; background: var(--forest); border-color: var(--forest); }
.button.primary:hover { background: var(--forest-deep); }
.button.warm { color: #6f2f12; background: var(--lime); border-color: var(--lime); }
.button.danger { color: var(--red); border-color: #e7c4bf; background: white; }
.button svg { width: 16px; height: 16px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); border-radius: 7px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; }
.metric { min-width: 0; padding: 17px 18px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric-label { color: var(--muted); font-size: 12px; display: flex; gap: 7px; align-items: center; }
.metric-label svg { width: 15px; }
.metric-value { font-size: 27px; font-weight: 760; margin: 10px 0 5px; letter-spacing: .1px; }
.metric-foot { font-size: 12px; color: var(--muted); }
.trend { font-weight: 680; color: var(--forest); }
.trend.down { color: var(--red); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); gap: 20px; }
.wide-left { min-width: 0; display: grid; gap: 20px; }
.side-stack { min-width: 0; display: grid; gap: 20px; align-content: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); overflow: hidden; }
.panel-head { min-height: 55px; padding: 13px 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 12px; }
.panel-title { font-size: 15px; font-weight: 720; }
.panel-subtitle { font-size: 12px; color: var(--muted); margin-top: 3px; }
.panel-link { background: none; border: 0; color: var(--forest); font-weight: 680; font-size: 12px; padding: 4px; }
.panel-body { padding: 17px; }
.panel-body.flush { padding: 0; }
.panel-foot { border-top: 1px solid var(--line); padding: 11px 17px; color: var(--muted); font-size: 12px; }

.goal-row { display: grid; grid-template-columns: 215px minmax(0,1fr) 92px; align-items: center; gap: 16px; padding: 15px 17px; border-bottom: 1px solid #e9eeeb; }
.goal-row:last-child { border-bottom: 0; }
.goal-name { font-weight: 680; }
.goal-meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.progress { height: 8px; background: #e8eeea; overflow: hidden; border-radius: 6px; }
.progress > span { height: 100%; display: block; background: var(--forest); border-radius: inherit; }
.progress.orange > span { background: var(--orange); }
.progress.blue > span { background: var(--blue); }
.goal-percent { text-align: right; color: var(--muted); font-size: 12px; }
.goal-percent strong { color: var(--ink); font-size: 14px; }

.task-list { display: grid; }
.task { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 13px 17px; border-bottom: 1px solid #e9eeeb; }
.task:last-child { border-bottom: 0; }
.task-check { appearance: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1.5px solid #a8b9b1; border-radius: 50%; display: grid; place-content: center; cursor: pointer; }
.task-check:checked { background: var(--forest); border-color: var(--forest); }
.task-check:checked::after { content: ""; width: 8px; height: 4px; border-left: 1.5px solid white; border-bottom: 1.5px solid white; transform: rotate(-45deg) translateY(-1px); }
.task-name { font-weight: 650; line-height: 1.35; }
.task-name.done { color: #84908b; text-decoration: line-through; }
.task-meta { margin-top: 5px; color: var(--muted); font-size: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.task-owner { display: flex; align-items: center; gap: 5px; }
.tiny-avatar { width: 18px; height: 18px; display: inline-grid; place-items: center; font-size: 9px; border-radius: 50%; color: white; background: #4f8978; }
.due { color: #8b5a16; background: #fff7df; font-size: 11px; padding: 3px 6px; border-radius: 4px; white-space: nowrap; }
.due.overdue { color: #a73d34; background: #fff0ee; }

.content-performance { padding: 14px 17px 17px; }
.legend { display: flex; gap: 15px; color: var(--muted); font-size: 12px; margin: 2px 0 12px; }
.legend span { display: inline-flex; gap: 5px; align-items: center; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--forest); }
.legend i.orange { background: var(--orange); }
.chart { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; height: 160px; gap: 9px; padding: 10px 0 0; border-bottom: 1px solid var(--line); }
.chart-col { height: 100%; display: flex; align-items: end; justify-content: center; gap: 3px; position: relative; }
.bar { width: min(17px, 42%); border-radius: 3px 3px 0 0; background: var(--forest); min-height: 5px; transition: .2s; }
.bar.alt { background: #e6a56c; }
.chart-col:hover .bar { filter: brightness(.85); }
.chart-col b { position: absolute; bottom: -23px; font-size: 11px; color: #86908b; font-weight: 500; }
.chart-axis { height: 25px; }

.client-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--line); }
.summary-item { padding: 15px 17px; border-right: 1px solid var(--line); }
.summary-item:nth-child(2n) { border-right: 0; }
.summary-item:nth-child(n+3) { border-top: 1px solid var(--line); }
.summary-item label { color: var(--muted); font-size: 11px; display: block; }
.summary-item strong { display: block; font-size: 17px; margin-top: 5px; }
.timeline { padding: 4px 17px 10px; }
.timeline-item { display: grid; grid-template-columns: 13px 1fr; gap: 10px; min-height: 48px; position: relative; padding-top: 10px; }
.timeline-item:before { content: ""; position: absolute; height: calc(100% - 11px); left: 5px; top: 18px; border-left: 1px solid #d4ded8; }
.timeline-item:last-child:before { display: none; }
.timeline-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--forest); background: white; margin-top: 2px; z-index: 1; }
.timeline-main { font-size: 12px; line-height: 1.45; }
.timeline-main strong { font-weight: 680; }
.timeline-time { color: var(--muted); font-size: 11px; margin-top: 3px; }

.filter-row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-input, .filter-select { height: 36px; padding: 0 10px; min-width: 150px; border: 1px solid var(--line); border-radius: 6px; background: white; color: #35413d; outline: none; }
.filter-input:focus, .filter-select:focus { border-color: #6aa897; box-shadow: 0 0 0 3px rgba(40,130,107,.1); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { height: 40px; text-align: left; padding: 0 16px; color: #7a847f; background: #f7f9f7; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 680; white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid #e8eeea; color: #43504b; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fbf9; }
.company-cell { display: flex; align-items: center; gap: 9px; min-width: 200px; }
.company-cell strong { color: var(--ink); font-size: 13px; display: block; }
.company-cell small { color: var(--muted); font-size: 11px; display: block; margin-top: 3px; }
.status { display: inline-flex; align-items: center; white-space: nowrap; font-size: 11px; font-weight: 680; padding: 4px 7px; border-radius: 4px; }
.status.green { color: #1c6654; background: #e5f4ee; }
.status.orange { color: #9d4b1a; background: #fff0e7; }
.status.blue { color: #26669b; background: #e8f3fb; }
.status.gray { color: #67726d; background: #edf1ef; }
.status.red { color: #a94238; background: #fcedeb; }
.text-button { border: 0; color: var(--forest); background: transparent; padding: 4px 2px; font-weight: 670; font-size: 12px; }
.text-button:hover { color: var(--forest-deep); text-decoration: underline; }
.page-count { color: var(--muted); font-size: 12px; }
.table-footer { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .62fr); gap: 20px; }
.detail-profile { display: flex; align-items: flex-start; gap: 13px; }
.detail-profile .avatar { width: 44px; height: 44px; font-size: 16px; }
.detail-profile h2 { font-size: 18px; margin: 0; }
.detail-profile p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.detail-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 18px; }
.detail-meta div { padding: 14px 12px 0 0; }
.detail-meta span { display: block; color: var(--muted); font-size: 11px; }
.detail-meta strong { display: block; margin-top: 5px; font-size: 13px; }
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); padding: 0 17px; }
.tab { height: 43px; border: 0; background: transparent; color: var(--muted); padding: 0 1px; position: relative; font-weight: 630; }
.tab.active { color: var(--forest); }
.tab.active:after { content: ""; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: var(--forest); }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 13px; overflow-x: auto; padding-bottom: 4px; }
.kanban-col { min-width: 230px; background: #eaf0ec; border: 1px solid #d9e3dd; border-radius: 7px; padding: 10px; }
.kanban-title { display: flex; align-items: center; justify-content: space-between; padding: 3px 3px 10px; color: #42554d; font-weight: 710; font-size: 13px; }
.kanban-count { color: #6c7a74; background: #dce7e0; border-radius: 9px; padding: 2px 6px; font-size: 11px; }
.kanban-card { background: white; border: 1px solid #dae3de; border-radius: 6px; padding: 12px; margin-bottom: 9px; box-shadow: 0 2px 5px rgba(28,56,45,.03); }
.kanban-card:last-child { margin-bottom: 0; }
.kanban-card h3 { font-size: 13px; line-height: 1.45; margin: 0 0 9px; }
.kanban-card p { margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.kanban-card-foot { display: flex; align-items: center; justify-content: space-between; }
.kanban-card-foot .tiny-avatar { width: 21px; height: 21px; font-size: 9px; }
.task-priority { font-size: 11px; color: #99633a; background: #fff1e6; padding: 3px 5px; border-radius: 4px; }
.task-priority.normal { color: #436c94; background: #eaf3fb; }

.split-content { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(400px, 1.35fr); gap: 20px; }
.item-list { display: grid; }
.content-item { width: 100%; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 13px 15px; border: 0; border-bottom: 1px solid #e7ece9; color: inherit; background: transparent; text-align: left; }
.content-item:hover, .content-item.active { background: #f2f8f4; }
.content-item.active { box-shadow: inset 3px 0 var(--forest); }
.content-item-title { font-size: 13px; font-weight: 680; line-height: 1.4; }
.content-item-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.channel-mark { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; background: #e4efe9; color: var(--forest); font-size: 11px; font-weight: 780; }
.content-preview { padding: 22px; }
.content-brief { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 12px; }
.content-preview h2 { font-size: 21px; line-height: 1.4; margin: 15px 0 8px; max-width: 680px; }
.content-byline { color: var(--muted); font-size: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.copy-block { margin: 19px 0; max-width: 720px; color: #35413d; line-height: 1.9; white-space: pre-line; }
.copy-block .highlight { color: var(--forest); font-weight: 700; }
.preview-image { height: 170px; max-width: 720px; overflow: hidden; border-radius: 6px; background: linear-gradient(120deg, #d7b28c, #efd5aa 48%, #a84f2e); position: relative; }
.preview-image:after { content: ""; width: 130px; height: 130px; position: absolute; right: 13%; bottom: -37px; border-radius: 50%; background: radial-gradient(circle at 47% 42%, #f4d58f 0 15%, #be572b 16% 37%, #692915 38% 48%, #e8b566 49% 59%, transparent 60%); transform: rotate(18deg); opacity: .92; }
.preview-image:before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(80deg, rgba(255,255,255,.09) 0 1px, transparent 1px 22px); }
.review-note { padding: 12px; background: #f7faf8; border-left: 3px solid var(--lime); color: #50605a; line-height: 1.6; font-size: 12px; }

.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.asset { border: 1px solid var(--line); border-radius: 6px; background: white; overflow: hidden; cursor: pointer; position: relative; }
.asset:hover { border-color: #93b7a8; box-shadow: var(--shadow); }
.asset-check { position: absolute; right: 9px; top: 9px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); background: rgba(18,40,32,.5); color: white; display: grid; place-items: center; opacity: 0; }
.asset:hover .asset-check { opacity: 1; }
.asset-visual { aspect-ratio: 1.35 / 1; overflow: hidden; position: relative; background: #efe7d6; }
.asset-visual .scene { position: absolute; inset: 0; background: linear-gradient(155deg, #f6d3a1 0 38%, #c36a36 39% 65%, #5b3122 66%); }
.asset-visual .scene.noodle { background: radial-gradient(ellipse at 45% 60%, #f4d173 0 22%, #b94924 23% 32%, #e8ae64 33% 41%, #77301c 42% 57%, transparent 58%), linear-gradient(150deg, #e0b875 0 50%, #815137 51%); }
.asset-visual .scene.store { background: linear-gradient(90deg, #e9e0d3 0 23%, #214b44 24% 75%, #d7aa5b 76%); }
.asset-visual .scene.poster { background: linear-gradient(143deg, #c83f2d, #f1b457 56%, #0e5b51 57%); }
.asset-visual:after { content: ""; position: absolute; width: 34%; aspect-ratio: 1; right: 12%; bottom: -13%; border-radius: 50%; background: rgba(255,228,158,.78); box-shadow: 0 -12px 0 rgba(97,38,21,.33); }
.asset-info { padding: 10px; }
.asset-name { font-size: 12px; font-weight: 670; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-info small { color: var(--muted); font-size: 11px; display: block; margin-top: 5px; }

.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.skill-card { border: 1px solid var(--line); background: white; border-radius: 7px; padding: 16px; transition: .16s; }
.skill-card:hover { border-color: #8ebaa8; transform: translateY(-1px); box-shadow: var(--shadow); }
.skill-card-top { display: flex; gap: 11px; align-items: flex-start; }
.skill-icon { height: 37px; width: 37px; border-radius: 7px; display: grid; place-items: center; background: #e2f1e9; color: var(--forest); }
.skill-icon.orange { background: #fff0e9; color: #c15e2c; }
.skill-icon.blue { background: #e7f1fa; color: #3079b5; }
.skill-icon svg { width: 20px; }
.skill-card h3 { margin: 0; font-size: 14px; }
.skill-card p { margin: 8px 0 13px; color: var(--muted); font-size: 12px; line-height: 1.55; min-height: 36px; }
.skill-card-bottom { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.skill-card-bottom .button { height: 31px; font-size: 12px; }
.run-list { display: grid; }
.run-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 9px; align-items: center; padding: 11px 0; border-bottom: 1px solid #e7ece9; }
.run-row:last-child { border-bottom: 0; }
.run-row strong { font-size: 12px; display: block; }
.run-row span { font-size: 11px; color: var(--muted); display: block; margin-top: 3px; }
.run-icon { color: var(--forest); }
.run-icon svg { width: 17px; }

.tool-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; }
.calculator-form { padding: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-field label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); padding: 0 10px; height: 37px; outline: none; background: white; }
.form-field textarea { height: 74px; padding-top: 9px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #6aa897; box-shadow: 0 0 0 3px rgba(40,130,107,.11); }
.form-field.full { grid-column: 1 / -1; }
.calculator-result { padding: 17px; }
.result-main { background: #103f36; color: white; padding: 18px; border-radius: 6px; }
.result-main label { color: #a8c9bd; display: block; font-size: 12px; }
.result-main strong { display: block; font-size: 31px; margin: 7px 0; }
.result-main small { color: #b7d4c8; }
.result-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; border: 1px solid var(--line); border-top: 0; }
.result-grid div { padding: 13px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.result-grid div:nth-child(2n) { border-right: 0; }
.result-grid span { display: block; color: var(--muted); font-size: 11px; }
.result-grid strong { display: block; margin-top: 5px; font-size: 15px; }
.check-list { display: grid; gap: 10px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; border-bottom: 1px solid #e7ece9; padding-bottom: 10px; }
.check-item:last-child { border-bottom: 0; padding-bottom: 0; }
.check-item input { margin-top: 2px; accent-color: var(--forest); }
.check-item strong { display: block; font-size: 13px; }
.check-item span { color: var(--muted); font-size: 11px; line-height: 1.5; display: block; margin-top: 3px; }

.funnel { display: flex; min-height: 132px; align-items: center; justify-content: center; gap: 3px; padding: 20px 17px; }
.funnel-step { flex: 1; min-width: 70px; color: #173d34; text-align: center; clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%, 12% 50%); padding: 20px 14px; background: #dcebe5; }
.funnel-step:first-child { clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%); }
.funnel-step:nth-child(2) { background: #c7e1d5; }
.funnel-step:nth-child(3) { background: #b1d6c7; }
.funnel-step:nth-child(4) { background: var(--lime); }
.funnel-step b { font-size: 19px; display: block; }
.funnel-step small { font-size: 11px; color: #4c645b; display: block; margin-top: 4px; white-space: nowrap; }
.bar-list { padding: 5px 17px 14px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 45px; align-items: center; gap: 9px; margin-top: 11px; font-size: 12px; }
.bar-row .bar-track { height: 9px; background: #e8eeea; border-radius: 4px; overflow: hidden; }
.bar-row .bar-fill { display: block; height: 100%; background: var(--forest); border-radius: inherit; }
.bar-row:nth-child(2) .bar-fill { background: #6ca691; }
.bar-row:nth-child(3) .bar-fill { background: #e2a169; }
.bar-row strong { text-align: right; }

.empty { padding: 42px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 30px; height: 30px; color: #9cb1a8; margin-bottom: 8px; }
.empty strong { display: block; color: #53615b; margin-bottom: 4px; }
.toast-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: grid; gap: 9px; max-width: 340px; }
.toast { display: flex; align-items: center; gap: 9px; padding: 11px 13px; background: #143a31; color: #fff; box-shadow: 0 12px 30px rgba(15,44,36,.22); border-radius: 6px; font-size: 13px; }
.toast.error { background: #8b3932; }
.toast svg { width: 16px; flex: 0 0 auto; }

.login-screen { min-height: 100vh; background: #f2f5f2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); }
.login-showcase { background: #113b33; color: white; padding: clamp(38px, 8vw, 120px) clamp(38px, 9vw, 140px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.login-showcase:before { content: ""; position: absolute; width: min(48vw, 620px); height: min(48vw, 620px); border: 1px solid rgba(187,221,88,.18); border-radius: 50%; right: -19%; top: 10%; box-shadow: 0 0 0 72px rgba(187,221,88,.035), 0 0 0 144px rgba(187,221,88,.02); }
.login-showcase > * { position: relative; }
.login-brand { display: flex; gap: 10px; align-items: center; font-weight: 750; }
.login-brand .brand-mark { width: 34px; height: 34px; }
.login-hero { max-width: 510px; margin: 55px 0; }
.login-hero h1 { font-size: clamp(32px, 3.3vw, 50px); line-height: 1.18; letter-spacing: 0; margin: 0; font-weight: 770; }
.login-hero p { color: #afc9be; line-height: 1.75; max-width: 420px; margin: 20px 0 0; }
.login-proof { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.16); padding-top: 19px; gap: 15px; }
.login-proof b { font-size: 19px; display: block; }
.login-proof span { font-size: 11px; color: #9fbbaf; display: block; margin-top: 5px; }
.login-side { display: grid; place-items: center; padding: 30px; }
.login-card { width: min(390px, 100%); }
.login-card h2 { font-size: 27px; margin: 0; }
.login-card > p { color: var(--muted); line-height: 1.6; margin: 9px 0 28px; }
.login-form { display: grid; gap: 15px; }
.login-field label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 7px; color: #485750; }
.login-field input { height: 44px; width: 100%; border: 1px solid #cfd9d4; border-radius: 6px; outline: none; padding: 0 12px; background: white; }
.login-field input:focus { border-color: #62a18d; box-shadow: 0 0 0 3px rgba(42,128,106,.1); }
.login-options { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.login-options label { display: flex; align-items: center; gap: 6px; }
.login-options input { accent-color: var(--forest); }
.login-submit { height: 44px; font-size: 14px; margin-top: 3px; }
.login-tip { margin-top: 20px; font-size: 12px; padding: 11px; color: #587267; background: #e7f1eb; border-radius: 6px; line-height: 1.55; }
.login-footer { margin-top: 32px; display: flex; gap: 7px; color: var(--muted); font-size: 12px; }
.login-footer a { color: var(--forest); text-decoration: none; }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .asset-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .skill-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; transform: translateX(-102%); width: 250px; transition: transform .2s ease; box-shadow: 10px 0 28px rgba(0,0,0,.22); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: inline-grid; }
  .topbar { padding: 0 17px; }
  .page { padding: 22px 17px 32px; }
  .dashboard-grid, .detail-layout, .split-content, .tool-grid { grid-template-columns: 1fr; }
  .topbar .crumb { min-width: 0; flex: 1; }
  .searchbox { display: none; }
  .connection { display: none; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .login-screen { grid-template-columns: 1fr; }
  .login-showcase { min-height: 330px; padding: 33px; }
  .login-hero { margin: 45px 0; }
  .login-side { padding: 48px 26px; }
}
@media (max-width: 580px) {
  .page-head { display: block; }
  .page-head .head-actions { margin-top: 15px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric { padding: 14px; }
  .metric-value { font-size: 23px; }
  .goal-row { grid-template-columns: 1fr 56px; gap: 10px; }
  .goal-row .progress { grid-column: 1 / -1; grid-row: 2; }
  .goal-percent { grid-column: 2; grid-row: 1; }
  .client-summary { grid-template-columns: 1fr; }
  .summary-item { border-right: 0; border-top: 1px solid var(--line); }
  .summary-item:first-child { border-top: 0; }
  .asset-grid, .skill-grid { grid-template-columns: 1fr; }
  .funnel { overflow-x: auto; justify-content: flex-start; }
  .funnel-step { flex: 0 0 96px; }
  .calculator-form { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .topbar-right .icon-button:first-child { display: none; }
  .login-proof { gap: 7px; }
}
