/* Interactive workspace additions; the original visual theme remains intact. */
body { font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, a:focus-visible { outline: 3px solid #7ae0cc; outline-offset: 3px; }
.content { animation: arrive .2s ease-out; }
@keyframes arrive { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.sub-head { align-items: center; gap: 20px; }
.sub-head h1 { font-size: 27px; letter-spacing: -.025em; }
.sub-head p:not(.eyebrow) { font-size: 13px; line-height: 1.7; }
.head-actions { display: flex; gap: 8px; flex-shrink: 0; }
.primary, .secondary, .danger { font-size: 12px; font-weight: 600; padding: 10px 14px; border-radius: 7px; }
.secondary { background: white; border: 1px solid #d9e4e4; color: #37585b; }
.secondary:hover { background: #eaf7f3; border-color: #81c9bb; }
.danger { background: #d35762; color: white; border: 0; }
.scope-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 20px 0 4px; }
.scope-controls label, .order-toolbar>label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7b86; }
input, select { border: 1px solid #dbe5e6; border-radius: 7px; padding: 9px 11px; color: #233e4c; background: #fff; min-width: 0; }
input:focus, select:focus { outline: 2px solid #8ddacb; border-color: #249e90; }
.demo-label { margin-left: auto; color: #8a9c9c; font-size: 11px; }
.metrics { margin: 23px 0; }
.metrics article { min-height: 132px; }
.metrics strong { font: 600 25px "Consolas", monospace; letter-spacing: -.045em; display: block; white-space: nowrap; }
.metric-note { margin-top: 14px; font-size: 11px; }
.trend-chart { margin-top: 18px; }
.chart-summary { display: flex; align-items: baseline; gap: 12px; }
.chart-summary strong { font: 600 24px Consolas, monospace; }
.chart-summary span { color: #8b989f; font-size: 11px; }
.trend-chart svg { width: 100%; display: block; overflow: visible; }
.trend-chart svg text { font: 12px Consolas, monospace; fill: #85959d; }
.chart-point { opacity: .15; cursor: crosshair; }
.chart-point:hover { opacity: 1; stroke: #fff; stroke-width: 2; r: 6; }
.muted, .source-note { color: #829099; font-size: 12px; line-height: 1.8; }
.source-note { font-size: 11px; margin-top: 18px; }
.store-list { margin-top: 24px; }
.store-list>div { padding: 19px 0; }
.store-list strong { font-size: 13px; }
.store-cards { margin-top: 24px; }
.store-card footer { line-height: 2; }
.card-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; border-top: 1px solid #e8eeee; padding-top: 16px; }
.filter-row.wrap { flex-wrap: wrap; margin: 20px 0; }
.search-form { display: flex; gap: 8px; margin: 0 0 16px; }
.search-form input { width: 270px; max-width: 100%; }
.order-toolbar { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 620px; }
.table-scroll th { white-space: nowrap; }
.table-scroll td { line-height: 1.6; }
.cell-note { display: block; margin-top: 4px; font-size: 10px; color: #8a979d; }
.empty-state { padding: 36px 15px; text-align: center; color: #8a979d; }
.formula { margin-top: 22px; }
.formula p { display: flex; justify-content: space-between; gap: 10px; color: #70818a; }
.formula b { color: #233f4b; font: 600 15px Consolas, monospace; }
.formula .total { border-top: 1px solid #dce8e6; padding-top: 18px; color: #168e81; }
.formula .total b { color: #168e81; font-size: 20px; }
.dialog-open { overflow: hidden; }
.ai-modal { max-height: 90dvh; overflow-y: auto; width: min(610px,100%); }
.ai-modal.wide { width: min(820px,100%); }
.ai-modal .table-scroll table { min-width: 480px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; margin: 24px 0; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; color: #73838b; font-size: 12px; }
.form-grid input, .form-grid select { width: 100%; font-size: 14px; padding: 11px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.form-error { color: #c84655; font-size: 12px; }
.calculation { padding: 18px; background: #eff8f5; border: 1px solid #d9ebe5; border-radius: 10px; display: flex; flex-wrap: wrap; gap: 22px; margin: 20px 0; }
.calculation span { flex: 1; font-size: 11px; color: #6a8c83; min-width: 110px; }
.calculation strong { display: block; font: 600 22px Consolas, monospace; color: #148473; margin-top: 8px; }
.detail-hero { margin-top: 22px; }
.detail-hero h3 { font-size: 20px; margin-bottom: 7px; }
.detail-hero p { font-size: 12px; color: #8a989c; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.entry-grid button { text-align: left; border: 1px solid #e1eae8; background: #f8fbfa; padding: 21px 17px; border-radius: 9px; transition: .2s; }
.entry-grid button:hover { background: #e9f6f1; transform: translateY(-2px); border-color: #8acebd; }
.entry-grid span { display: block; font-size: 23px; color: #179786; margin-bottom: 12px; }
.entry-grid strong { display: block; font-size: 14px; color: #2b4751; }
.entry-grid small { display: block; font-size: 11px; color: #8a999b; margin-top: 7px; line-height: 1.6; }
.import-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.file-label { border: 1px dashed #96bcba; border-radius: 7px; padding: 8px; color: #237e73; font-size: 12px; }
.file-label input { border: 0; padding: 0; font-size: 11px; max-width: 205px; margin-left: 8px; }
.notice { background: #eaf7f0; border: 1px solid #d8ede2; color: #258570; padding: 13px 15px; border-radius: 8px; margin: 15px 0; font-size: 13px; }
#import-preview { text-align: left; padding: 0; }
.check-success { margin: 25px auto 15px; width: 65px; height: 65px; border-radius: 50%; background: #e0f5eb; color: #1eaa7f; font-size: 38px; display: grid; place-items: center; }
.answer-card { background: #f2f9f6; border: 1px solid #d9eee5; border-radius: 11px; padding: 20px; margin-top: 22px; font-size: 13px; line-height: 1.8; }
.answer-card .question { color: #6b8f82; font-size: 12px; border-bottom: 1px solid #dbeae4; padding-bottom: 12px; }
.answer-card h3 { color: #167e6a; font-size: 19px; }
.activity p { border-bottom: 1px solid #ebefed; padding: 12px 0; font-size: 13px; }
.activity small { display: block; color: #92a29c; margin-top: 5px; }
.guide p { padding: 14px 0; border-bottom: 1px solid #e9efed; color: #70877e; line-height: 1.8; font-size: 13px; }
.guide b { display: block; color: #267c65; }
.sidebar .workspace span { color: #7893a6; }
@media(min-width:1500px) { .content { padding-top: 45px; } .metrics article { min-height: 145px; } }
@media(max-width:1150px) { .head-actions { flex-wrap: wrap; } .sub-head { align-items: flex-start; } .sub-head h1 { font-size: 24px; } .store-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:720px) { .sub-head { flex-direction: column; gap: 17px; } .head-actions { width: 100%; } .demo-label { width: 100%; margin: 0; } .scope-controls { gap: 10px; } .scope-controls label { flex: 1; } .scope-controls input,.scope-controls select { max-width: 170px; } .metrics,.metrics.compact { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .metrics article { padding: 15px 11px; min-height: 115px; } .metrics strong { font-size: 21px; } .metric-note { font-size: 10px; } .store-cards { grid-template-columns: 1fr; } .order-toolbar { flex-direction: column; } .ai-modal { padding: 25px 18px; } .form-grid { grid-template-columns: 1fr; } .modal-backdrop { padding: 12px; } .entry-grid { gap: 8px; } .entry-grid button { padding: 15px 12px; } .panel { padding: 18px; } .chart-summary { flex-direction: column; gap: 6px; } .crumb small { display: none; } .sidebar.open { box-shadow: 10px 0 80px #071a3460; } }
