:root {
  color-scheme: light;
  --green-950: #123328;
  --green-900: #183e32;
  --green-800: #23533f;
  --green-700: #32694d;
  --green-600: #427c59;
  --green-100: #e8f0e7;
  --green-50: #f0f5ed;
  --lemon: #e7ef83;
  --yellow: #f1d971;
  --orange: #de9452;
  --canvas: #f6f5ef;
  --paper: #fffefa;
  --ink: #24372e;
  --muted: #7a847b;
  --line: #e8e9e0;
  --radius: 19px;
  --shadow: 0 5px 22px rgb(32 55 35 / 3%);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select, textarea { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #b5c962; outline-offset: 3px; }
svg { flex-shrink: 0; vertical-align: middle; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: #e7ef83; color: var(--green-950); }

.shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: 236px; padding: 31px 17px 22px; background: var(--green-900); color: #f6f8e9; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px 31px; }
.brand-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; background: var(--lemon); color: var(--green-950); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 20%); }
.brand-icon svg { width: 27px; height: 27px; }
.brand-title { color: #fbfce9; font-size: 19px; font-weight: 700; letter-spacing: .8px; white-space: nowrap; }
.brand-sub { margin-top: 2px; color: #a9bbab; font-size: 9px; letter-spacing: 1.1px; white-space: nowrap; }
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 47px; padding: 11px 15px; border: 0; border-radius: 11px; background: transparent; color: #b9c9bc; font-size: 13px; text-align: left; white-space: nowrap; transition: color .16s, background .16s; }
.nav-item:hover { background: rgb(255 255 255 / 7%); color: #fff; }
.nav-item.active { background: var(--lemon); color: var(--green-950); font-weight: 650; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.nav-icon svg { width: 20px; height: 20px; }
.side-section { margin: 27px 15px 12px; color: #7f9a88; font-size: 10px; font-weight: 600; letter-spacing: 1.8px; }
.side-bottom { margin-top: auto; padding: 22px 13px 0; color: #9ab29f; font-size: 11px; }
.side-bottom::before { display: block; height: 1px; margin-bottom: 19px; background: rgb(255 255 255 / 10%); content: ""; }
.side-bottom p + p { margin-top: 5px; }
.side-bottom .tag { margin-top: 10px; border-color: #52715b; background: rgb(255 255 255 / 5%); color: #c9dbbb; }
.workspace { flex: 1; min-width: 0; margin-left: 236px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; padding: 16px 36px; border-bottom: 1px solid var(--line); background: rgb(249 249 243 / 96%); backdrop-filter: blur(16px); }
.breadcrumbs { display: flex; align-items: center; gap: 11px; color: #8f978c; font-size: 12px; white-space: nowrap; }
.breadcrumbs strong, .breadcrumbs b { color: var(--ink); font-weight: 550; }
.breadcrumbs svg { width: 14px; height: 14px; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 15px; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #d5ddc9; border-radius: 50%; background: #e5ead9; color: #406140; font-size: 12px; font-weight: 650; }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #e8debf; border-radius: 6px; background: #faf4e2; color: #95804b; font-size: 10px; white-space: nowrap; }
.demo-pill::before { width: 5px; height: 5px; border-radius: 50%; background: #b39b56; content: ""; }
.mode-switch { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid #e5e8dd; border-radius: 10px; background: #eceee5; }
.mode-switch button, .mode-switch .button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 31px; padding: 5px 12px; border: 0; border-radius: 7px; background: transparent; color: #7a8477; font-size: 11px; white-space: nowrap; }
.mode-switch button.active, .mode-switch .button.active { background: var(--paper); color: var(--green-900); font-weight: 650; box-shadow: 0 1px 5px rgb(36 55 46 / 7%); }
.mode-switch svg { width: 14px; height: 14px; }
.content { max-width: 1600px; margin: 0 auto; padding: 31px 36px 40px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.eyebrow { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: #8c957c; font-size: 9px; font-weight: 650; letter-spacing: 2px; text-transform: uppercase; }
.eyebrow::before { width: 14px; height: 2px; border-radius: 2px; background: #b5bc83; content: ""; }
.page-title { color: #24372e; font-size: clamp(23px, 2.25vw, 30px); font-weight: 650; line-height: 1.35; letter-spacing: -.7px; }
.page-subtitle { max-width: 740px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; background: #f0f2e9; color: var(--green-900); font-size: 12px; font-weight: 550; line-height: 1.5; text-align: center; white-space: nowrap; transition: background .16s, border-color .16s, transform .16s; }
.btn:hover { transform: translateY(-1px); background: #e6eadb; }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--green-900); color: #fffde9; box-shadow: 0 3px 8px rgb(24 62 50 / 10%); }
.btn.primary:hover { background: #2a5842; }
.btn.secondary { border-color: #dfe4d7; background: var(--paper); color: #4e6453; }
.btn.secondary:hover { border-color: #b8c5ac; background: #f5f7ee; }
.btn.ghost { background: transparent; color: #5c745e; }
.btn.ghost:hover { background: #edf1e5; }
.btn.small { min-height: 31px; padding: 5px 10px; border-radius: 7px; font-size: 11px; }
.btn.danger { border-color: #edcfbf; background: #fff3ed; color: #ad634a; }
.btn.amber { background: var(--lemon); color: var(--green-950); }
.btn.amber:hover { background: #dbe872; }
.icon-btn { display: inline-grid; place-items: center; flex-shrink: 0; width: 35px; height: 35px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: #70816b; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: var(--green-50); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 23px; }
.stat-card { position: relative; min-width: 0; min-height: 135px; padding: 21px 22px 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: var(--shadow); }
.stat-label { color: #7d887d; font-size: 11px; }
.stat-value { display: inline-block; margin-top: 9px; color: #294233; font-size: 31px; font-weight: 600; line-height: 1.25; letter-spacing: -.9px; font-variant-numeric: tabular-nums; }
.stat-unit { margin-left: 5px; color: #8a9485; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.stat-foot { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: #8e9789; font-size: 10px; }
.stat-foot .positive, .positive { color: #698653; }
.stat-icon { position: absolute; top: 20px; right: 18px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #f1f3e5; color: #77956a; }
.stat-icon svg { width: 17px; height: 17px; }
.stat-card:nth-child(2) .stat-icon { background: #f8f0dc; color: #b59657; }
.stat-card:nth-child(3) .stat-icon { background: #edf0e0; color: #8f9b61; }
.stat-card:nth-child(4) .stat-icon { background: #f6ece0; color: #c2956a; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(290px, 1fr); align-items: start; gap: 22px; }
.card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.card.padded { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 65px; padding: 19px 22px; }
.card.padded > .card-head { min-height: auto; padding: 0 0 17px; }
.card-title { display: inline-flex; align-items: center; gap: 8px; color: #334a39; font-size: 14px; font-weight: 650; }
.card-title svg { width: 17px; height: 17px; color: #6f8a66; }
.muted { color: var(--muted); font-size: 12px; }
.card-head .muted { font-size: 10px; }
.map-wrap { position: relative; min-height: 320px; margin: 0 16px; overflow: hidden; border: 1px solid #e6eadc; border-radius: 12px; background: #eff2e7; isolation: isolate; }
.map-wrap > svg, .map-grid > svg { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.map-grid { position: relative; height: 330px; background-color: #eff2e6; background-image: linear-gradient(32deg, transparent 45%, #e0e7d7 45.5%, transparent 46%), linear-gradient(120deg, transparent 52%, #e0e7d7 52.5%, transparent 53%); background-size: 90px 85px, 130px 120px; }
.map-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; color: #87917e; font-size: 10px; }
.map-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4d7956; }
.legend-dot.orange, .legend-dot.busy { background: #dba769; }
.legend-dot.yellow { background: #bbc369; }
.map-label { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid #d8e0ca; border-radius: 8px; background: rgb(255 254 250 / 95%); color: #547046; font-size: 10px; box-shadow: 0 3px 8px rgb(63 85 43 / 7%); }
.map-label strong { font-weight: 650; }
.map-toolbar { position: absolute; top: 13px; right: 13px; z-index: 3; display: flex; flex-direction: column; gap: 5px; }
.map-toolbar .icon-btn { width: 29px; height: 29px; border-radius: 7px; box-shadow: 0 2px 8px rgb(48 66 36 / 5%); }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 22px 17px; color: #8b9586; font-size: 10px; }
.map-foot > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.map-foot svg { width: 13px; height: 13px; }
.ai-card { padding: 22px; border-color: #2d5941; background: linear-gradient(135deg, #214b38 0%, #183e32 82%); color: #edf5df; box-shadow: 0 8px 28px rgb(24 62 50 / 9%); }
.ai-card .card-head { min-height: 0; padding: 0 0 16px; }
.ai-card .card-title { color: #f4f9df; }
.ai-card .card-title svg { color: #dce77c; }
.ai-card .muted { color: #a7bda9; }
.ai-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid rgb(220 231 124 / 24%); border-radius: 5px; background: rgb(220 231 124 / 9%); color: #dce77c; font-size: 9px; font-weight: 600; letter-spacing: .3px; }
.ai-badge svg { width: 12px; height: 12px; }
.ai-message { color: #d9e7d2; font-size: 12px; line-height: 1.9; }
.ai-message strong { color: #e2ed8b; font-weight: 600; }
.ai-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; padding: 4px 10px; border: 1px solid #dde5d1; border-radius: 7px; background: #f8faf3; color: #748466; font-size: 10px; line-height: 1.5; }
.chip:hover, .chip.active { border-color: #aebf87; background: #ecf1db; color: #49633b; }
.ai-card .chip { border-color: #557653; background: rgb(255 255 255 / 5%); color: #d0dfbd; }
.ai-card .chip:hover, .ai-card .chip.active { border-color: #b1c36e; background: rgb(220 231 124 / 12%); color: #eef4ba; }
.ai-result { margin-top: 16px; padding: 13px 15px; border: 1px solid #e0e8d2; border-radius: 10px; background: #f3f6eb; color: #566e46; font-size: 12px; line-height: 1.85; white-space: pre-line; }
.ai-card .ai-result { border-color: rgb(222 234 163 / 17%); background: rgb(8 32 20 / 18%); color: #d4e3c6; }
.ai-result strong { color: #3d6236; }
.ai-card .ai-result strong { color: #e7ee97; }
.row { display: flex; align-items: center; gap: 11px; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.section-gap { margin-top: 23px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.w-full { width: 100%; }
.span-all { grid-column: 1 / -1; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-small { font-size: 11px; }
.text-danger { color: #b06a4d; }
.text-green { color: #4d7b48; }

.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; color: #4b5e4b; font-size: 11px; text-align: left; }
.data-table th { padding: 12px 20px; border-top: 1px solid #edf0e6; border-bottom: 1px solid #edf0e6; background: #f9faf4; color: #919b87; font-size: 10px; font-weight: 400; white-space: nowrap; }
.data-table td { padding: 15px 20px; border-bottom: 1px solid #edf0e6; vertical-align: middle; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfdf8; }
.data-table td strong { color: #42543f; font-weight: 550; }
.data-table .btn { white-space: nowrap; }
.status { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 3px 8px; border: 1px solid #e3e8da; border-radius: 5px; background: #f0f3e9; color: #82926d; font-size: 10px; font-weight: 500; line-height: 1.65; white-space: nowrap; }
.status::before { flex-shrink: 0; width: 4px; height: 4px; border-radius: 50%; background: currentColor; content: ""; }
.status.pending { border-color: #eee1b6; background: #faf3dc; color: #b49a4a; }
.status.assigned { border-color: #d6e0cc; background: #edf3e6; color: #7c9463; }
.status.accepted { border-color: #cddfcf; background: #ebf4eb; color: #64875d; }
.status.arrived { border-color: #d7e5d0; background: #edf6e5; color: #6e9253; }
.status.working { border-color: #c9ddc8; background: #e7f0e2; color: #5b7f4b; }
.status.paused { border-color: #edd9c5; background: #faf0e3; color: #b78e55; }
.status.review { border-color: #e8deae; background: #f7f3d9; color: #a89e4b; }
.status.settlement { border-color: #e1dfc4; background: #f4f2e4; color: #97904e; }
.status.completed { border-color: #d6dfd2; background: #edf1e9; color: #7c8f6f; }
.status.cancelled { border-color: #e4e4dc; background: #f1f1ec; color: #9a9b8e; }
.text-link { display: inline-flex; align-items: center; gap: 3px; padding: 1px 0; border: 0; background: none; color: #6b8856; font-size: 11px; text-decoration: none; text-underline-offset: 3px; }
.text-link:hover { color: #315a31; text-decoration: underline; }
.text-link svg { width: 12px; height: 12px; }
.order-title { color: #3b523b; font-size: 12px; font-weight: 550; }
.order-meta { margin-top: 4px; color: #9aa18f; font-size: 10px; }
.progress { height: 5px; overflow: hidden; border-radius: 6px; background: #e9eedf; }
.progress-fill { height: 100%; border-radius: inherit; background: #a8bd78; transition: width .25s; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 17px; }
.search-input { min-width: 200px; min-height: 38px; padding: 8px 12px; border: 1px solid #e0e5d7; border-radius: 8px; background: var(--paper); color: #4c6247; font-size: 12px; }
.search-input::placeholder, .input::placeholder, .textarea::placeholder, .mobile-input::placeholder { color: #a1a999; }
.select { min-height: 38px; max-width: 100%; padding: 8px 30px 8px 11px; border: 1px solid #e0e5d7; border-radius: 8px; background: var(--paper); color: #66785b; font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-label { display: block; color: #65775a; font-size: 11px; font-weight: 550; }
.field-label .required { margin-left: 3px; color: #c68d5b; }
.input, .textarea { display: block; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #dfe5d6; border-radius: 9px; background: #fdfefa; color: #42583c; font-size: 12px; line-height: 1.6; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .textarea:focus, .search-input:focus, .select:focus, .mobile-input:focus { border-color: #a6b974; outline: none; box-shadow: 0 0 0 3px rgb(175 194 122 / 14%); }
.input[readonly], .input:disabled { background: #f1f3e9; color: #89927f; }
.field-help { color: #919b87; font-size: 10px; line-height: 1.6; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.empty-state { padding: 44px 24px; color: #919c85; font-size: 12px; text-align: center; }
.empty-state svg { display: block; width: 36px; height: 36px; margin: 0 auto 12px; color: #adb99a; }
.empty-state strong { display: block; margin-bottom: 6px; color: #617252; font-size: 14px; font-weight: 550; }
.notice { display: flex; align-items: flex-start; gap: 9px; padding: 12px 15px; border: 1px solid #e0e6d2; border-radius: 9px; background: #f2f5e9; color: #7b8c65; font-size: 11px; line-height: 1.8; }
.notice svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 2px; }
.notice.warning { border-color: #ecdfb9; background: #fbf6e6; color: #a79052; }
.notice.success { border-color: #d6e4cb; background: #eff7e8; color: #66894f; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 16px 0; border-bottom: 1px solid #e9ede0; }
.list-item:first-child { padding-top: 0; }
.list-item:last-child { padding-bottom: 0; border-bottom: 0; }
.list-detail { flex: 1; min-width: 0; }
.list-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #48603f; font-size: 12px; font-weight: 550; }
.list-meta { margin-top: 5px; color: #929d85; font-size: 10px; line-height: 1.8; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid #e2e8d5; border-radius: 5px; background: #f2f5e9; color: #879970; font-size: 9px; font-weight: 400; line-height: 1.7; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 22px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); align-items: start; gap: 22px; }
.detail-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 21px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.detail-summary h2 { color: #344e32; font-size: 20px; font-weight: 600; }
.detail-summary .order-meta { margin-top: 7px; }
.timeline { padding: 4px 0; }
.timeline-item { position: relative; min-height: 64px; padding: 0 0 22px 27px; }
.timeline-item::before { position: absolute; top: 13px; bottom: 0; left: 5px; width: 1px; background: #dce6cf; content: ""; }
.timeline-item:last-child { min-height: 0; padding-bottom: 0; }
.timeline-item:last-child::before { display: none; }
.timeline-dot { position: absolute; top: 5px; left: 0; width: 11px; height: 11px; border: 2px solid #cad8b7; border-radius: 50%; background: #fffefa; }
.timeline-item.active .timeline-dot, .timeline-item.done .timeline-dot { border-color: #8ba666; background: #a6bd7c; }
.timeline-item.active .timeline-dot { box-shadow: 0 0 0 4px #ecf3df; }
.timeline-item strong { color: #55704b; font-size: 12px; font-weight: 550; }
.timeline-item p, .timeline-item time { display: block; margin-top: 4px; color: #96a186; font-size: 10px; }
.metric-bar { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: #7b8c68; font-size: 11px; }
.metric-bar > span:first-child { flex: 0 0 72px; }
.metric-bar .progress { flex: 1; height: 6px; }
.metric-bar > strong:last-child { flex: 0 0 45px; color: #637b4d; font-size: 11px; font-weight: 550; text-align: right; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.service-card { display: flex; align-items: flex-start; flex-direction: column; gap: 11px; min-height: 150px; padding: 21px; border: 1px solid #e3e8d8; border-radius: 14px; background: #fffefa; color: #526e42; text-align: left; transition: transform .16s, border-color .16s; }
.service-card:hover { transform: translateY(-2px); border-color: #bdce9f; }
.service-card > svg { width: 26px; height: 26px; color: #88a165; }
.service-card h3, .service-card strong { font-size: 14px; font-weight: 600; }
.service-card p { color: #95a183; font-size: 11px; line-height: 1.8; }
.guide-banner { display: flex; align-items: center; gap: 18px; margin-bottom: 23px; padding: 17px 21px; border: 1px solid #e3e7cc; border-radius: 13px; background: #f0f2dc; }
.guide-banner strong { color: #5f7846; font-size: 12px; font-weight: 600; }
.guide-banner p { margin-top: 4px; color: #8d9972; font-size: 10px; }
.guide-step { display: flex; align-items: center; gap: 6px; color: #7f9161; font-size: 10px; white-space: nowrap; }
.guide-step > span:first-child { display: inline-grid; place-items: center; width: 21px; height: 21px; border: 1px solid #d5dfb6; border-radius: 50%; background: #f8faed; color: #81965a; font-size: 9px; }
.close-btn { display: inline-grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; padding: 5px; border: 0; border-radius: 7px; background: transparent; color: #94a27d; }
.close-btn:hover { background: rgb(88 110 52 / 8%); }
.close-btn svg { width: 17px; height: 17px; }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 22px; }
.kv { min-width: 0; }
.kv > span, .kv > dt, .kv > label { display: block; margin-bottom: 4px; color: #96a185; font-size: 10px; }
.kv > strong, .kv > dd { display: block; margin: 0; color: #536f43; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.price-box { padding: 17px 18px; border: 1px solid #e4e9d4; border-radius: 11px; background: #f5f7eb; }
.price-box .stat-value { margin-top: 3px; color: #5f7b42; font-size: 27px; }
.price-box p { color: #93a17b; font-size: 10px; }
.price-box .row + .row { margin-top: 9px; }

.modal-root { position: fixed; inset: 0; z-index: 100; }
.modal-root:empty { display: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 30px 20px; overflow-y: auto; background: rgb(16 38 27 / 40%); backdrop-filter: blur(5px); }
.modal-card { width: min(640px, 100%); max-height: calc(100dvh - 60px); overflow: auto; border: 1px solid rgb(255 255 255 / 70%); border-radius: 19px; background: var(--paper); box-shadow: 0 25px 90px rgb(17 43 28 / 25%); }
.modal-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 24px 17px; border-bottom: 1px solid var(--line); background: var(--paper); }
.modal-header h2, .modal-header h3 { color: #3e5936; font-size: 17px; font-weight: 600; }
.modal-body { padding: 23px 24px; }
.modal-body > .notice:first-child { margin-bottom: 20px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 16px 24px 21px; border-top: 1px solid var(--line); background: #fafbf4; }
.toast { position: fixed; bottom: 32px; left: calc(50% + 118px); z-index: 200; width: max-content; max-width: min(480px, calc(100vw - 36px)); padding: 12px 19px; border: 1px solid #446441; border-radius: 11px; background: #264b35; color: #eef4df; font-size: 12px; line-height: 1.7; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; box-shadow: 0 7px 30px rgb(19 47 28 / 17%); }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

.mobile-stage { display: grid; grid-template-columns: minmax(250px, 1fr) 390px; align-items: start; gap: clamp(25px, 5vw, 90px); width: min(1030px, 100%); margin: 0 auto; padding: 5px 20px 28px; }
.mobile-intro { position: sticky; top: 120px; padding: 48px 0; }
.mobile-intro .eyebrow { margin-bottom: 14px; }
.mobile-intro h1 { max-width: 390px; color: #29482f; font-size: 37px; font-weight: 600; line-height: 1.35; letter-spacing: -1.5px; }
.mobile-intro h1 strong, .mobile-intro h1 em { color: #80964f; font-style: normal; font-weight: inherit; }
.mobile-intro > p { max-width: 360px; margin-top: 17px; color: #899579; font-size: 12px; line-height: 2; }
.mobile-intro .card { margin-top: 28px; border-color: #e1e7d3; background: #f0f3e7; box-shadow: none; }
.mobile-intro .guide-step { margin-top: 14px; color: #6d8552; font-size: 12px; white-space: normal; }
.mobile-intro .guide-step > span:first-child { flex: 0 0 25px; width: 25px; height: 25px; }
.mobile-intro .notice { margin-top: 25px; }
.phone-frame { position: relative; width: 390px; max-width: 100%; overflow: hidden; border: 7px solid #29392c; border-radius: 41px; background: #f6f7ee; box-shadow: 0 24px 60px rgb(47 68 35 / 13%), 0 2px 6px rgb(47 68 35 / 8%); }
.phone-top { position: relative; height: 33px; background: #fafbf4; }
.phone-top::after { position: absolute; top: 7px; left: 50%; width: 93px; height: 19px; border-radius: 15px; background: #29392c; transform: translateX(-50%); content: ""; }
.phone-status { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 6px 22px 0; color: #3c4b33; font-size: 9px; font-weight: 650; }
.phone-status svg { width: 12px; height: 12px; }
.phone-body { position: relative; min-height: 650px; background: #f5f7ed; }
.mobile-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 63px; padding: 12px 20px; border-bottom: 1px solid #e9eddf; background: #fafbf4; }
.mobile-header h2, .mobile-header > strong { color: #3b5634; font-size: 17px; font-weight: 650; }
.mobile-header p { margin-top: 2px; color: #99a58b; font-size: 9px; }
.mobile-header .row { gap: 7px; }
.mobile-header .icon-btn { width: 31px; height: 31px; border: 0; background: #eff3e5; }
.mobile-header .avatar { width: 31px; height: 31px; flex-basis: 31px; font-size: 11px; }
.mobile-hero { position: relative; min-height: 157px; margin: 16px 16px 18px; padding: 22px 20px; overflow: hidden; border: 1px solid #416241; border-radius: 17px; background: #2b5138; color: #f3f7dc; }
.mobile-hero::after { position: absolute; right: -27px; bottom: -73px; width: 200px; height: 200px; border: 21px solid rgb(210 228 150 / 8%); border-radius: 50%; pointer-events: none; content: ""; }
.mobile-hero .eyebrow { position: relative; z-index: 1; margin-bottom: 8px; color: #b7c98a; font-size: 8px; letter-spacing: 1.5px; }
.mobile-hero .eyebrow::before { background: #bbc97d; }
.mobile-title { position: relative; z-index: 1; color: #f4f8de; font-size: 24px; font-weight: 600; line-height: 1.4; letter-spacing: -.6px; }
.mobile-subtitle { position: relative; z-index: 1; margin-top: 8px; color: #c6d4b3; font-size: 10px; line-height: 1.8; }
.mobile-hero .btn { position: relative; z-index: 1; margin-top: 15px; }
.mobile-hero > svg { position: absolute; right: 18px; bottom: 17px; z-index: 0; width: 100px; height: 100px; color: #b5cc80; opacity: .55; }
.mobile-card { margin: 12px 16px; padding: 17px; border: 1px solid #e3e9d5; border-radius: 14px; background: #fffefa; box-shadow: 0 3px 9px rgb(43 71 28 / 2%); }
.mobile-card .kv-grid { gap: 14px; }
.mobile-card .kv > span { font-size: 9px; }
.mobile-card .kv > strong { font-size: 11px; }
.mobile-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 19px 11px; }
.mobile-section-head h3, .mobile-section-head > strong { color: #435f36; font-size: 13px; font-weight: 650; }
.mobile-section-head .text-link { font-size: 10px; }
.mobile-order { margin: 11px 16px; padding: 16px; border: 1px solid #e2e8d3; border-radius: 14px; background: #fffefa; }
.mobile-order .row { gap: 7px; }
.mobile-order .order-title { font-size: 13px; }
.mobile-order .order-meta { font-size: 9px; }
.mobile-order .status { padding: 2px 6px; font-size: 9px; }
.mobile-order .progress { margin-top: 12px; height: 4px; }
.mobile-order .mobile-actions { padding: 0; margin-top: 13px; }
.mobile-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 4px 0; }
.mobile-kpi { min-width: 0; padding: 0 9px; border-right: 1px solid #e5ebd8; text-align: center; }
.mobile-kpi:last-child { border-right: 0; }
.mobile-kpi strong { display: block; color: #54713e; font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.mobile-kpi span, .mobile-kpi p { display: block; margin-top: 4px; color: #91a17a; font-size: 9px; }
.mobile-tabs { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-around; gap: 2px; min-height: 72px; margin-top: 24px; padding: 10px 7px 15px; border-top: 1px solid #e0e7d1; background: #fcfdf5; }
.mobile-tab { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; min-width: 48px; min-height: 44px; padding: 0 5px; border: 0; border-radius: 8px; background: transparent; color: #a5b08f; font-size: 9px; }
.mobile-tab svg { width: 20px; height: 20px; }
.mobile-tab.active { color: #52743c; font-weight: 650; }
.mobile-tab.active svg { filter: drop-shadow(0 2px 2px rgb(100 139 62 / 10%)); }
.mobile-tab:hover { background: #f0f4e5; }
.mobile-actions { display: flex; align-items: center; gap: 8px; padding: 15px 16px 5px; }
.mobile-actions > .btn { flex: 1; min-height: 43px; padding: 9px 11px; font-size: 11px; }
.mobile-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px 8px; margin: 19px 16px 23px; }
.mobile-service { display: flex; align-items: center; flex-direction: column; gap: 7px; min-width: 0; padding: 2px 0; border: 0; background: transparent; color: #768a62; font-size: 10px; text-align: center; }
.mobile-service > span:first-child, .mobile-service > svg { display: grid; place-items: center; width: 44px; height: 44px; padding: 11px; border-radius: 13px; background: #eaf0db; color: #779853; }
.mobile-service > span:first-child svg { width: 22px; height: 22px; }
.mobile-service:nth-child(2n) > span:first-child, .mobile-service:nth-child(2n) > svg { background: #f1eed8; color: #a6a363; }
.mobile-service:nth-child(3n) > span:first-child, .mobile-service:nth-child(3n) > svg { background: #f4e9d9; color: #bd9b6b; }
.mobile-ai { margin: 16px; padding: 15px; border: 1px solid #d8e4bf; border-radius: 13px; background: #edf4df; }
.mobile-ai .card-title { color: #66864c; font-size: 12px; }
.mobile-ai .card-title svg { width: 15px; height: 15px; color: #85a559; }
.mobile-ai p { margin-top: 7px; color: #8b9d70; font-size: 10px; line-height: 1.85; }
.mobile-ai .ai-badge { border-color: #d0deb1; background: #e3edce; color: #809b5a; font-size: 8px; }
.mobile-input { display: block; width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #d9e4c4; border-radius: 8px; background: #fbfdf6; color: #607d46; font-size: 11px; line-height: 1.7; }
textarea.mobile-input { min-height: 80px; resize: vertical; }
.mobile-form { padding: 17px; }
.mobile-form .field + .field { margin-top: 15px; }
.mobile-form .field-grid { gap: 12px; }
.mobile-form .field-grid .field { margin-top: 0; }
.mobile-form .field-grid + .field, .mobile-form .field + .field-grid { margin-top: 15px; }
.mobile-form .field-label { font-size: 11px; }
.mobile-form .input, .mobile-form .select { width: 100%; font-size: 12px; }
.mobile-form .notice { padding: 10px 12px; font-size: 10px; }
.mobile-price { color: #8b9b5b; font-size: 19px; font-weight: 600; letter-spacing: -.4px; }
.mobile-price small { margin-left: 3px; color: #a8b18e; font-size: 9px; font-weight: 400; letter-spacing: 0; }
.mobile-map { position: relative; height: 140px; margin-top: 13px; overflow: hidden; border: 1px solid #e0e8d2; border-radius: 9px; background: #eff3e4; }
.mobile-map > svg { width: 100%; height: 100%; }
.mobile-demo-label { margin: 10px 17px 0; color: #a4ad94; font-size: 8px; line-height: 1.8; text-align: center; }
.mobile-mini-heading { margin-bottom: 11px; color: #627d4e; font-size: 12px; font-weight: 600; }
.mobile-inline-note { color: #9eaa8b; font-size: 9px; line-height: 1.8; }
.boot-screen { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 100vh; padding: 40px 20px; background: var(--canvas); text-align: center; }
.boot-mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 19px; border-radius: 19px; background: var(--green-900); color: var(--lemon); font-size: 29px; font-weight: 600; box-shadow: 0 9px 25px rgb(24 62 50 / 12%); }
.boot-screen h1 { color: var(--green-900); font-size: 27px; font-weight: 650; letter-spacing: 2px; }
.boot-screen p { margin-top: 8px; color: #8c9b7d; font-size: 12px; letter-spacing: 2px; }
.boot-loading { margin-top: 35px; color: #a1aa94; font-size: 11px; }
.noscript-notice { position: fixed; right: 20px; bottom: 20px; left: 20px; z-index: 300; padding: 16px; border: 1px solid #e6dcb9; border-radius: 10px; background: #fbf5df; color: #968144; font-size: 13px; text-align: center; }

@media (min-width: 1600px) {
  .content { padding-top: 37px; }
  .stat-card { min-height: 145px; }
  .map-wrap { min-height: 355px; }
  .map-grid { height: 355px; }
}
@media (max-width: 1220px) {
  .topbar { padding-right: 25px; padding-left: 25px; }
  .content { padding-right: 25px; padding-left: 25px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.45fr) minmax(255px, 1fr); gap: 17px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 18px 17px 15px; }
  .stat-icon { top: 18px; right: 14px; width: 27px; height: 27px; }
  .stat-value { font-size: 28px; }
  .top-actions { gap: 9px; }
  .top-actions .demo-pill { display: none; }
  .mobile-stage { grid-template-columns: minmax(190px, 1fr) 370px; gap: 30px; padding-right: 0; padding-left: 0; }
  .phone-frame { width: 370px; }
  .mobile-intro h1 { font-size: 31px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-banner { flex-wrap: wrap; gap: 12px; }
  .guide-banner > .close-btn { margin-left: auto; }
  .detail-grid { grid-template-columns: minmax(0, 1.35fr) minmax(250px, 1fr); }
}
@media (max-width: 1050px) {
  .dashboard-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-grid > .stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-stage { grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; }
  .phone-frame { width: 360px; }
  .mobile-intro h1 { font-size: 27px; }
  .mobile-intro .guide-step { font-size: 11px; }
  .mobile-intro .card.padded { padding: 17px; }
  .page-heading { align-items: flex-start; }
  .heading-actions { flex-wrap: wrap; justify-content: flex-end; }
  .three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { width: 76px; padding: 24px 10px 16px; }
  .brand { justify-content: center; padding: 0 0 27px; }
  .brand-icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; }
  .brand-title, .brand-sub, .brand > div:not(.brand-icon), .side-section, .side-bottom { display: none; }
  .side-nav { gap: 10px; }
  .nav-item { justify-content: center; gap: 0; min-height: 47px; padding: 12px; font-size: 0; }
  .nav-item .nav-label, .nav-item .tag { display: none; }
  .nav-item .nav-icon { width: 21px; height: 21px; }
  .nav-item .nav-icon svg { width: 21px; height: 21px; }
  .workspace { margin-left: 76px; }
  .topbar { min-height: 73px; padding: 13px 22px; }
  .topbar .breadcrumbs { font-size: 11px; }
  .content { padding: 25px 22px 32px; }
  .top-actions .avatar { display: none; }
  .mode-switch button, .mode-switch .button { padding: 5px 9px; }
  .mobile-stage { grid-template-columns: minmax(0, 1fr) 370px; gap: 23px; }
  .phone-frame { width: 370px; }
  .mobile-intro { padding-top: 35px; }
  .mobile-intro .notice { display: none; }
  .toast { left: calc(50% + 38px); }
  .two-col { gap: 17px; }
}
@media (max-width: 760px) {
  .breadcrumbs { display: none; }
  .top-actions { width: 100%; justify-content: space-between; }
  .top-actions .demo-pill { display: inline-flex; }
  .mobile-stage { display: flex; align-items: center; flex-direction: column; gap: 18px; padding-top: 0; }
  .mobile-intro { position: static; width: 100%; padding: 0; }
  .mobile-intro h1 { max-width: none; font-size: 25px; }
  .mobile-intro > p { max-width: none; margin-top: 7px; font-size: 11px; }
  .mobile-intro .eyebrow { margin-bottom: 7px; }
  .mobile-intro > .card, .mobile-intro > .guide-step { display: none; }
  .page-heading { flex-direction: column; gap: 15px; margin-bottom: 20px; }
  .heading-actions { justify-content: flex-start; }
  .two-col, .three-col { grid-template-columns: minmax(0, 1fr); }
  .dashboard-grid > .stack { display: flex; }
  .mobile-stage > .phone-frame { width: 390px; }
  .card-head { padding: 18px; }
  .card.padded, .ai-card { padding: 19px; }
}
@media (max-width: 600px) {
  .shell { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; padding: 6px 9px; border-bottom: 1px solid #365b43; }
  .brand { display: none; }
  .side-nav { display: flex; align-items: stretch; flex-direction: row; gap: 5px; overflow-x: auto; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .nav-item { flex: 1 0 auto; flex-direction: column; gap: 3px; width: auto; min-width: 53px; min-height: 48px; padding: 7px 9px; border-radius: 8px; font-size: 9px; line-height: 1.4; text-align: center; }
  .nav-item .nav-label { display: inline; }
  .nav-item .nav-icon, .nav-item .nav-icon svg { width: 17px; height: 17px; }
  .workspace { margin-left: 0; }
  .topbar { min-height: 60px; padding: 9px 14px; }
  .top-actions { gap: 8px; }
  .top-actions .demo-pill { padding: 4px 6px; font-size: 8px; }
  .mode-switch { gap: 2px; padding: 3px; border-radius: 8px; }
  .mode-switch button, .mode-switch .button { min-height: 34px; padding: 6px 9px; font-size: 10px; }
  .mode-switch svg { display: none; }
  .content { padding: 20px 14px 27px; }
  .page-title { font-size: 23px; letter-spacing: -.5px; }
  .page-subtitle { margin-top: 7px; font-size: 11px; }
  .eyebrow { font-size: 8px; }
  .page-heading { gap: 13px; }
  .heading-actions { width: 100%; gap: 7px; }
  .heading-actions .btn { min-height: 38px; padding: 8px 12px; font-size: 11px; }
  .stats-grid { gap: 10px; margin-bottom: 17px; }
  .stat-card { min-height: 124px; padding: 16px 14px; border-radius: 12px; }
  .stat-label { font-size: 10px; }
  .stat-icon { top: 15px; right: 12px; width: 25px; height: 25px; border-radius: 8px; }
  .stat-icon svg { width: 14px; height: 14px; }
  .stat-value { margin-top: 13px; font-size: 25px; }
  .stat-unit { margin-left: 3px; font-size: 9px; }
  .stat-foot { gap: 3px; font-size: 9px; }
  .dashboard-grid, .detail-grid { gap: 16px; }
  .card { border-radius: 15px; }
  .card-head { min-height: 60px; padding: 16px; }
  .card-title { font-size: 13px; }
  .card.padded, .ai-card { padding: 17px; }
  .map-wrap { min-height: 260px; margin-right: 11px; margin-left: 11px; }
  .map-grid { height: 270px; }
  .map-wrap > svg, .map-grid > svg { min-height: 260px; }
  .map-foot { flex-wrap: wrap; gap: 9px; padding: 12px 15px 15px; font-size: 9px; }
  .map-legend { gap: 9px; font-size: 9px; }
  .map-label { padding: 4px 7px; font-size: 9px; }
  .data-table th { padding: 11px 14px; }
  .data-table td { padding: 13px 14px; }
  .filters { gap: 8px; }
  .search-input { flex: 1 1 100%; width: 100%; min-width: 0; min-height: 42px; }
  .select { flex: 1; min-width: 0; min-height: 42px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mobile-form .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .input, .textarea { min-height: 44px; font-size: 14px; }
  .btn { min-height: 43px; }
  .btn.small { min-height: 36px; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { flex: 1; }
  .kv-grid { gap: 16px; }
  .service-grid { gap: 10px; }
  .service-card { min-height: 139px; padding: 16px; }
  .guide-banner { gap: 9px; padding: 14px 16px; }
  .guide-banner .guide-step { font-size: 9px; }
  .section-gap { margin-top: 17px; }
  .toast { bottom: 20px; left: 50%; max-width: calc(100vw - 28px); font-size: 11px; }
  .modal-backdrop { align-items: flex-end; padding: 12px; }
  .modal-card { max-height: calc(100dvh - 24px); border-radius: 17px; }
  .modal-header { padding: 18px 18px 15px; }
  .modal-body { padding: 20px 18px; }
  .modal-footer { padding: 15px 18px 18px; }
  .mobile-stage { gap: 15px; padding: 0; }
  .mobile-intro h1 { font-size: 24px; }
  .mobile-intro > p { font-size: 10px; line-height: 1.8; }
  .mobile-stage > .phone-frame { width: min(390px, 100%); border-width: 5px; border-radius: 32px; box-shadow: 0 10px 30px rgb(47 68 35 / 8%); }
  .phone-top { height: 29px; }
  .phone-top::after { top: 5px; height: 18px; }
  .phone-body { min-height: 615px; }
  .mobile-header { padding-right: 16px; padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .sidebar, .topbar, .heading-actions, .toast, .modal-root { display: none !important; }
  .workspace { margin-left: 0; }
  body, .content { background: #fff; }
  .content { padding: 0; }
  .card, .stat-card { break-inside: avoid; box-shadow: none; }
}

/* Integration refinements for the three working surfaces. */
.card.padded { position: relative; }
.card.padded > h3 { margin: 10px 0; }
.card.padded > p + p { margin-top: 10px; }
.three-col .stat-icon { position: static; }
.notice { display: block; }
.notice > svg { display: inline-block; margin-right: 5px; }
.notice > p { margin-top: 5px; }
.ai-badge { border-color: #d4e0be; background: #eef3e3; color: #54723e; }
.ai-card .ai-badge { border-color: #69834c; background: #3c603b; color: #e3ee97; }
.ai-message { margin: 17px 0; padding: 14px; border-radius: 9px; background: #f0f4e8; color: #627456; }
.ai-message strong { color: #3c623e; }
.ai-card .ai-message { background: rgb(255 255 255 / 7%); color: #baccb2; }
.ai-card .ai-message strong { color: #e1ed8b; }
.ai-card h2, .mobile-intro h1 { white-space: pre-line; }
.ai-result { margin-bottom: 18px; }
.ai-result h3 { margin-bottom: 10px; }
.ai-result p + p { margin-top: 10px; }
.ai-result .kv-grid { margin: 14px 0; }
.ai-result .kv strong { font-size: 18px; }
.ai-result details { margin-top: 15px; }
.ai-result details summary { cursor: pointer; }
.ai-result .text-link { margin-right: 5px; }
.modal-body p { margin: 0 0 13px; }
.modal-body h3 { margin: 20px 0 13px; }
.modal-body .field + .field, .modal-body .field-grid + .field { margin-top: 18px; }
.modal-body .notice, .modal-body .price-box { margin-top: 17px; }
.modal-body .price-box > strong { font-size: 26px; display: block; padding: 7px 0; }
.modal-body .kv-grid { margin: 18px 0; }
.progress-fill { display: block; }
.phone-status { height: 29px; padding: 7px 22px 0; background: #fafbf4; }
.phone-top { display: flex; justify-content: space-between; align-items: center; height: 39px; padding: 4px 18px 9px; color: #47633c; font-size: 11px; }
.phone-top::after { display: none; }
.phone-body { min-height: 0; max-height: 690px; overflow-y: auto; scrollbar-width: thin; }
.phone-body > .notice { margin: 12px 16px; }
.phone-body > .muted { margin: 12px 18px; }
.phone-body .mobile-title { color: #35502e; font-size: 19px; }
.mobile-hero h2 { margin-top: 12px; font-size: 27px; line-height: 1.5; letter-spacing: -.6px; }
.mobile-hero p { margin-top: 11px; color: #c4d3b7; font-size: 11px; }
.mobile-order h3 { margin: 11px 0 7px; font-size: 14px; }
.mobile-order .row { margin-top: 9px; }
.mobile-order .muted { margin: 5px 0; font-size: 11px; }
.mobile-card h3 { margin: 9px 0; }
.mobile-card p { margin: 8px 0; }
.mobile-ai .btn { margin-top: 10px; }
.mobile-tabs { margin-top: 0; }
.mobile-intro .timeline { margin: 28px 0; }
.mobile-intro > .btn { margin-top: 20px; }
.mobile-intro .field-label { margin-bottom: 5px; }
.phone-frame { box-shadow: 0 24px 60px rgb(47 68 35 / 13%); }
@media (max-width: 760px) {
  .top-actions { width: auto; }
  .top-actions .avatar, .top-actions .demo-pill { display: none; }
  .two-col[style] { grid-template-columns: minmax(0,1fr) !important; }
  .mobile-intro .timeline { display: none; }
  .mobile-intro .field { margin: 10px 0; }
  .mobile-intro > .btn { margin: 12px 0; }
}
@media (max-width: 600px) {
  .phone-body { max-height: none; }
  .phone-frame { border-width: 0 !important; border-radius: 18px !important; }
  .phone-top { height: 39px; }
  .phone-status { display: none; }
  .topbar { gap: 6px; }
  .mode-switch button { padding: 5px 8px; }
  .card-head .filters { margin: 0; }
}

/* Real AMap basemap: no seed machinery coordinates are plotted. */
.amap-panel { overflow: hidden; border: 1px solid #dce5d4; border-radius: 12px; background: #fffefa; color: #35503b; }
.amap-mount { width: 100%; min-height: 0; }
.amap-canvas { width: 100%; height: 400px; min-height: 280px; background: #eef1e9; }
.amap-status { display: block; padding: 11px 15px; background: #f3f6ec; border-bottom: 1px solid #e4e9dc; color: #647554; font-size: 12px; line-height: 1.7; }
.amap-status[data-state="error"], .amap-status.error { color: #9e5c32; background: #fff2e4; }
.amap-status[data-state="ready"], .amap-status.ready { color: #356341; background: #edf5e8; }
.amap-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 13px; border-top: 1px solid #e4e9dc; background: #fbfcf6; }
.amap-tools .btn { min-height: 33px; font-size: 11px; padding: 6px 11px; }
.amap-detail { padding: 13px 15px; border-top: 1px solid #e6ebdf; font-size: 12px; }
.amap-detail p, .amap-detail label { margin: 7px 0; }
.amap-detail .row { flex-wrap: wrap; }
.amap-picked { padding: 14px; border-top: 1px solid #d8e4c8; background: #f3f7e9; }
.amap-picked > p, .amap-picked > label { margin: 8px 0; }
.amap-picked .input, .amap-picked .select { margin-bottom: 8px; }
.amap-picked .btn { margin: 7px 7px 0 0; }
.amap-point-list { list-style: none; margin: 0; padding: 0; }
.amap-point-list li, .amap-point-list > article, .amap-point-list > div { padding: 12px 0; border-bottom: 1px solid #e4e9db; }
.amap-point-list li:last-child, .amap-point-list > div:last-child { border-bottom: 0; }
.amap-point-list button { text-align: left; }
.amap-point-list .muted { font-size: 10px; }
.amap-panel small { font-size: 10px; color: #839275; }
.amap-panel .notice { margin: 10px 12px; }
.amap-panel .amap-info-content { font-family: var(--font); font-size: 12px; }
.amap-point-label { padding: 3px 7px; border-radius: 4px; color: #244932; background: #fffefa; border: 1px solid #93ac7b; white-space: nowrap; }
.phone-body .amap-panel { margin: 12px; border-radius: 11px; }
.phone-body .amap-mount { min-height: 0; }
.phone-body .amap-canvas { height: 330px; }
.phone-body .amap-status { padding: 10px 12px; font-size: 11px; }
.phone-body .amap-tools { padding: 8px 10px; gap: 6px; }
.phone-body .amap-tools .btn { padding: 6px 9px; font-size: 10px; }
.phone-body .amap-detail { padding: 10px 12px; font-size: 11px; }
@media (max-width: 600px) {
  .amap-canvas { height: 350px; }
  .amap-tools .btn { min-height: 39px; }
  .amap-picked .input { font-size: 14px; }
  .amap-detail .row { gap: 7px; }
}
