/* Shared commerce styling for the live market and its embedded reference tools. */
:root {
  --ink: #203036;
  --muted: #65706e;
  --primary: #b84418;
  --green: var(--primary);
  --light: #fbefe5;
  --accent: #f5e4d3;
  --line: #e3e2db;
  --canvas: #f4f3ef;
  --orange: #c44521;
  --radius: 5px;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
body { background: var(--canvas); color: var(--ink); line-height: 1.5; }
h1, h2, h3 { letter-spacing: 0; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
button, a, input, select, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
input, textarea, select { border-color: #cfD2cc; border-radius: 4px; padding: 10px 12px; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px #b844181a; }
button:disabled, .btn[disabled] { cursor: not-allowed; }
.btn { min-height: 40px; padding: 9px 17px; border-radius: 4px; font-size: 14px; font-weight: 500; }
.btn:hover { filter: none; background: #9c3611; border-color: #9c3611; }
.btn.light { background: #fff; color: #354252; border-color: #cfD2cc; }
.btn.light:hover { color: var(--primary); border-color: var(--primary); background: #fffaf5; }
.btn.soft { color: var(--primary); background: var(--light); border-color: #ecd8c3; }
.btn.small { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.btn .icon { width: 18px; height: 18px; }
.muted, .footnote, .operation-note, .prototype-note { color: var(--muted); }
.filter-label { color: var(--muted); font-size: 13px; }
.eyebrow, .mini-caption { display: none; }
.heading-row { margin-bottom: 18px; align-items: flex-start; }
.heading-row h1 { font-size: 22px; line-height: 1.45; margin: 0 0 5px; }
.heading-row .muted { font-size: 13px; line-height: 1.7; }
.panel { border-radius: 5px; padding: 22px; margin-bottom: 18px; box-shadow: none; }
.panel-title { margin-bottom: 16px; }
.field { color: #3e4855; font-size: 14px; gap: 7px; }
.field small, .footnote { font-size: 12px; color: #65706e; }
.form-grid { gap: 18px; }
.empty, .empty-state { border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.live-alert { background: #fff9eb; border: 1px solid #efdfbd; border-radius: 4px; color: #77571f; }
.status-tag { color: #596576; background: #eef1f5; border-radius: 3px; font-size: 12px; padding: 3px 7px; }

/* Market navigation replaces the dashboard-style sidebar. */
.market-app { min-height: 100vh; }
.site-header { background: #fff; border-bottom: 1px solid #d6dde6; }
.site-header-inner, .site-navigation { max-width: 1220px; padding: 0 20px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header-inner { min-height: 76px; }
.trade-logo { width: 36px; height: 36px; flex-shrink: 0; }
.site-brand span { padding-left: 15px; border-left: 1px solid #dfe2dc; margin-left: 9px; }
.site-brand { display: flex; align-items: center; gap: 10px; padding: 0; text-align: left; white-space: nowrap; }
.site-brand strong { font-size: 27px; font-weight: 700; color: #20363b; letter-spacing: .1px; }
.site-brand span { font-size: 13px; color: var(--muted); }
.header-account { display: flex; align-items: center; gap: 20px; min-width: 0; }
.local-label { font-size: 12px; color: #626e7c; white-space: nowrap; }
.account-link { max-width: 220px; padding: 8px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: #4c5865; }
.account-link:hover { color: var(--primary); }
.site-navigation { min-height: 46px; border-top: 1px solid #edf0e9; }
.desktop-nav { display: flex; align-items: stretch; gap: 30px; align-self: stretch; }
.desktop-nav button { border-bottom: 3px solid transparent; padding: 9px 2px 10px; font-size: 15px; color: #434d59; }
.desktop-nav button:hover { color: var(--primary); }
.desktop-nav button[aria-current="page"] { border-color: var(--primary); color: #1f3637; font-weight: 700; }
.navigation-extra { display: flex; align-items: center; gap: 24px; font-size: 13px; color: #596576; }
.navigation-extra a { text-decoration: none; color: inherit; }
.navigation-extra button { padding: 9px 0; }
.market-main { max-width: 1220px; padding: 22px 20px 48px; }
.operation-note { margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; }

/* Search and categories use the space that previously held promotional copy. */
.market-search-area { position: relative; min-height: 206px; padding: 24px 28px 20px; margin-bottom: 18px; border-radius: 8px; overflow: hidden; background: #1b2a32 url('/assets/equipment-workbench.png') no-repeat right center / auto 112%; color: #fff; }
.market-heading { max-width: 62%; }
.market-heading h1 { font-size: 30px; line-height: 1.3; font-weight: 700; letter-spacing: .5px; margin: 0 0 8px; }
.market-heading > span { color: #d0d8d9; font-size: 13px; }
.searchbox { background: #fff; border: 1px solid #b9c3bf; border-radius: 5px; padding: 4px 4px 4px 12px; gap: 6px; }
.searchbox input { font-size: 14px; padding: 8px; }
.searchbox > .icon { color: #747f7c; width: 18px; }
.searchbox .btn { min-height: 38px; padding: 8px 26px; }
.market-search-area .searchbox { max-width: 580px; width: 62%; margin-top: 17px; border: 0; }
.search-hints { gap: 14px; margin-top: 9px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.search-hints button { padding: 0; color: #53675f; font-size: 12px; }
.search-hints button:hover { color: var(--primary); text-decoration: underline; }
.market-search-area .search-hints { color: #c6d0cf; }
.market-search-area .search-hints button { color: #e6ebe8; }
.market-search-area .search-hints button:hover { color: #ffc29e; }
.scene-caption { position: absolute; right: 12px; bottom: 9px; font-size: 10px; color: #edf0ed; background: #17232aa6; padding: 2px 5px; border-radius: 2px; }
.market-search-area.is-filtered { background: #fff; color: var(--ink); min-height: 0; border: 1px solid var(--line); padding: 18px 22px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0 24px; }
.is-filtered .market-heading { grid-row: 1 / 3; max-width: none; align-self: center; }
.is-filtered .market-heading h1 { font-size: 23px; }
.is-filtered .market-heading > span { color: var(--muted); }
.is-filtered .searchbox { width: 100%; max-width: none; margin: 0; border: 1px solid #bbcbc4; }
.is-filtered .search-hints, .is-filtered .search-hints button { color: #66746f; }
.is-filtered .search-hints button:hover { color: var(--primary); }
.market-filters { background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.category-row { display: flex; gap: 14px; padding: 12px 16px; }
.category-row .filter-label { width: 62px; color: #65706e; font-size: 13px; padding-top: 7px; }
.category-options { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.category-option { border-radius: 3px; padding: 6px 12px; min-height: 32px; font-size: 13px; color: #424d5a; }
.category-option:hover { background: #f3f6fa; }
.category-option.active { color: #fff; background: #304b4e; font-weight: 600; }
.market-filter-controls { border-top: 1px solid #eceae4; padding: 10px 16px; display: flex; align-items: center; gap: 24px; }
.market-filter-controls label { display: flex; align-items: center; gap: 10px; color: #65706e; font-size: 13px; white-space: nowrap; }
.market-filter-controls select { width: 160px; padding: 6px 10px; font-size: 13px; min-height: 34px; }
.clear-filters { margin-left: auto; color: #54677e; font-size: 12px; padding: 8px; white-space: nowrap; }
.clear-filters:disabled { opacity: .6; }
.results-bar { margin: 17px 0 12px; gap: 10px; }
.results-bar strong { font-size: 18px; min-width: 0; border-left: 4px solid #c6582c; padding-left: 10px; }
.results-bar small { color: #65706e; font-size: 12px; margin-left: 10px; font-weight: 400; overflow-wrap: anywhere; }
.compact-select { color: #4d5a69; font-size: 13px; flex-shrink: 0; }
.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.product-card, .inventory-card { border-radius: 8px; border: 1px solid #e0dfd7; box-shadow: none; transition: border-color .15s; min-width: 0; }
.product-card:hover { transform: none; box-shadow: 0 3px 12px #263e3b0b; border-color: #a5b5ae; }
.product-card:hover img { transform: none; }
.product-art { aspect-ratio: 4 / 3; background: #f0f0eb; border-bottom: 1px solid #e9e9e3; }
.product-art img { object-fit: contain; transition: none; }
.condition { left: 9px; top: 9px; color: #4a5664; font-size: 11px; border-radius: 3px; background: #fff; padding: 3px 6px; border: 1px solid #e3e2db; }
.image-caption { position: absolute; right: 7px; bottom: 6px; color: #566170; background: #ffffffed; font-size: 10px; padding: 1px 4px; }
.product-info { padding: 12px; }
.product-info h3 { color: #262c34; font-size: 15px; font-weight: 600; line-height: 1.55; height: 46px; margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { gap: 5px; }
.tag, .product-info .tag { background: #f2f2ec; border-radius: 2px; color: #606b78; font-size: 11px; padding: 2px 5px; }
.tag:before { content: none; }
.product-info .tags { height: 22px; gap: 4px; }
.product-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; margin-top: 9px; }
.price { font-variant-numeric: tabular-nums; font-family: Arial, "Microsoft YaHei", sans-serif; color: #c44521; font-size: 24px; font-weight: 700; letter-spacing: 0; }
.product-price-row .price { margin: 0; }
.quantity { color: #626e7c; font-size: 11px; white-space: nowrap; }
.product-bottom { border: 0; padding-top: 9px; font-size: 12px; color: #65717f; gap: 8px; }
.product-bottom > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-company { border-top: 1px solid #eceae4; margin-top: 9px; padding-top: 8px; font-size: 11px; color: #626e7c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-pagination { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 24px; font-size: 13px; }
.inventory-toolbar { margin: 18px 0; }
.inventory-meta { padding: 0 12px 12px; }
.inventory-card .product-company { margin-bottom: 8px; }

/* Forms, account and messages use the same neutral surfaces. */
.live-form { max-width: 860px; margin: 0; }
.live-form .field { margin-bottom: 16px; }
.live-form .btn.full { width: auto; min-width: 200px; }
.upload-preview img, .edit-photos img, .photo-gallery img { border-radius: 4px; background: #f1f3f5; }
.file-input { background: #fafbfc; border-style: dashed; padding: 16px; }
.seller-manage-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.seller-photos img { width: 160px; height: 135px; }
.seller-actions { margin: 20px 0 12px; }
.product-history li { border-left-color: #e9ccb2; padding-bottom: 17px; }
.product-history time { color: #6c7784; font-size: 12px; }
.product-history p { margin-top: 5px; }
.detail-photo { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.detail-photo img { width: 100%; height: 100%; object-fit: contain; }
.detail-main .description { font-size: 14px; }
.profile-hero { border: 1px solid var(--line); border-top: 3px solid #b55c32; border-radius: 5px; background: #fff; color: var(--ink); padding: 22px; }
.profile-hero .avatar, .avatar, .company-avatar { color: #566b60; background: #f3eadf; border-radius: 4px; }
.profile-hero p { color: #65706e; }
.profile-hero .avatar { background: #f3eadf; color: #566b60; }
.live-profile-actions { gap: 0; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.live-profile-actions .panel { border: 0; border-radius: 0; margin: 0; padding: 22px; background: transparent; }
.live-profile-actions .panel + .panel { border-left: 1px solid var(--line); }
.chat-layout { max-width: none; gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.chat-layout > .panel { border: 0; border-radius: 0; margin: 0; }
.conversation-list { border-right: 1px solid var(--line) !important; background: #fafbfc; }
.conversation-item { border-radius: 0; }
.conversation-item.active { background: #fbefe4; }
.conversation-item strong { font-size: 14px; }
.conversation-item small { font-size: 12px; color: #65717f; }
.unread { background: #c83f35; }
.chat-header { padding: 16px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.chat-header h3 { font-size: 15px; }
.chat-header small { color: #6b7784; }
.message-stream { background: #f5f6f8; height: min(58vh, 560px); min-height: 300px; }
.message-row .bubble, .bubble { border: 1px solid #e0e5eb; background: #fff; border-radius: 4px; font-size: 14px; }
.message-row.mine .bubble, .bubble.mine { background: #fce9d7; border-color: #edd3b8; border-radius: 4px; }
.message-row small { color: #6d7783; font-size: 11px; }
.chat-compose input { background: #fff; border: 1px solid #cfD2cc; }
.stat-card { border-radius: 4px; padding: 18px; }
.stat-card b { font-size: 28px; }
.stat-card span { font-size: 13px; }
.auth-tabs .active { color: var(--primary); border-color: var(--primary); }
.login-captcha-row button { border-radius: 4px; width: 150px; height: 56px; }
.login-captcha-row button:focus-visible { outline-color: var(--primary); }
dialog { border-radius: 6px; color: var(--ink); }
dialog::backdrop { background: #18233166; backdrop-filter: none; }
#toast { border-radius: 4px; background: #303b49; font-size: 13px; }

/* Embedded forum, wiring library and calculator. */
.live-helper { border-radius: 0; background: transparent; height: max(720px, 82vh); }
.helper-context { color: #6c5e43; background: #fff9ed; border-left: 3px solid #d9bc82; padding: 8px 12px; margin-bottom: 16px; font-size: 12px; }
.embedded-prototype { background: var(--canvas); }
.embedded-prototype .main { max-width: none; padding: 0 2px 20px; }
.feed { border-radius: 4px; padding: 0 20px; }
.post { padding: 20px 0; }
.post-top { margin-bottom: 10px; }
.post-title { font-size: 17px; margin-bottom: 8px; }
.post-body { font-size: 14px; color: #4c5865; margin-bottom: 10px; }
.company-name { font-size: 13px; color: #3c4754; }
.company-meta, .post-footer span, .post-footer button { color: #6a7684; font-size: 12px; }
.verified { color: #5b7fa8; }
.type { color: #996622; background: #fff3df; font-size: 12px; border-radius: 2px; }
.type.sell { color: #765a3b; background: #fbefe4; }
.type.talk { color: #596979; background: #eef1f5; }
.tabs { gap: 24px; }
.tab { color: #65717e; font-size: 14px; }
.vip-panel, .sidebar-vip, .membership-card.premium { background: #f4f5ed; border-color: #ddded3; }
.vip-price, .membership-card .price { font-family: Arial, sans-serif; color: var(--orange); }
.vip-panel p, .vip-price span { color: #65717e; font-size: 12px; }
.help-hero { background: #253c42; color: #fff; border: 1px solid #253c42; border-radius: 4px; padding: 20px; text-align: left; margin-bottom: 16px; }
.help-hero h1 { font-size: 21px; margin: 0 0 5px; }
.help-hero p { color: #d2ddda; font-size: 13px; margin-bottom: 12px; }
.help-hero .searchbox { max-width: none; margin: 0; }
.help-grid { gap: 12px; }
.help-card { border-radius: 4px; padding: 17px; box-shadow: none; }
.help-card:hover { transform: none; border-color: #b9b8aa; }
.help-card h3 { font-size: 15px; margin-bottom: 5px; }
.help-card p { font-size: 12px; color: #677482; }
.tool-icon { background: #f8eee3; color: #546c66; border-radius: 4px; }
.tool-link strong { font-size: 14px; }
.tool-link small { color: #65706e; font-size: 12px; }
.quick-tools .help-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.quick-tools .tool-icon { grid-row: 1 / 3; margin: 0; height: 36px; width: 36px; }
.schematic-mini { display: none; }
.section-heading { margin: 23px 0 13px; }
.section-heading h2 { font-size: 18px; }
.knowledge-list button { font-size: 14px; color: #354253; padding: 15px 0; }
.knowledge-list button span { font-size: 12px; color: #65706e; }
.knowledge-list .icon { color: #697c94; }
.chip { border-radius: 3px; color: #5d6977; font-size: 13px; }
.chip.active { color: var(--primary); background: #fbefe4; }
.chip:hover { background: #f0f4f9; }
.calc-result { background: #fff; color: var(--ink); border: 1px solid #d7dcd4; border-top: 3px solid var(--primary); border-radius: 4px; padding: 24px; }
.calc-result .eyebrow { display: block; color: #4f6178; font-size: 14px; letter-spacing: 0; }
.calc-result .total { color: var(--primary); font-family: Arial, sans-serif; font-size: 44px; letter-spacing: 0; margin: 15px 0 8px; }
.calc-result .total span, .calc-result p, .calc-result dt { color: #65706e; }
.calc-result dl { border-top: 1px solid var(--line); font-size: 13px; }
.calc-result p { font-size: 13px; }
.diagram-canvas { border: 1px solid var(--line); border-radius: 4px; background-color: #fafbfc; background-image: none; }
.diagram-node { border-color: #9bb4aa; border-radius: 4px; box-shadow: none; }
.diagram-node .icon, .diagram-node span { color: #3a6056; }
.diagram-edge { background: #658078; }
.diagram-edge:after, .diagram-edge span { color: #506e65; }
.diagram-note { background: #f2f5f9; color: #506178; border-radius: 4px; }
.ai-banner { background: #f3f4ef; border: 1px solid var(--line); border-radius: 4px; padding: 18px; }
.ai-banner p, .ai-banner .icon { color: #617792; }
.question-chips button { border-color: #d9ddd4; border-radius: 4px; font-size: 12px; color: #4e6480; }
.upload-zone { border-color: #acbfd6; border-radius: 4px; background: #f8fafc; }
.upload-zone strong, .upload-zone .icon { color: #537467; }
.selected-summary { background: #f1f5fa; border-radius: 4px; color: #526983; }
.membership-card { border-radius: 4px; border-color: var(--line); }
.benefits li { color: #586576; font-size: 14px; }
.benefits .icon { color: var(--primary); }
.sidebar .nav-item.active { color: var(--primary); background: #fbefe5; }
.sidebar .nav-item.active:after { background: var(--primary); }
.sidebar-vip button { background: #ebece2; color: #566b60; }
.hot-search button { background: #f1f4f8; color: #5c6b7f; font-size: 12px; }
.notice, .side-note { color: #6c7886; }

@media (max-width: 1000px) {
  .site-brand span { display: none; }
  .desktop-nav { gap: 22px; }
  .navigation-extra { gap: 14px; }
  .market-search-area.is-filtered { grid-template-columns: 200px minmax(0, 1fr); gap: 0 20px; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
  .seller-manage-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 700px) {
  body { font-size: 14px; }
  .site-header { position: sticky; top: 0; z-index: 30; }
  .site-header-inner { min-height: 58px; padding: 0 12px; gap: 10px; }
  .trade-logo { width: 27px; height: 27px; }
  .site-brand { gap: 7px; }
  .site-brand strong { font-size: 19px; letter-spacing: 0; }
  .header-account { gap: 9px; }
  .account-link { max-width: 85px; font-size: 12px; }
  .local-label, .site-navigation { display: none; }
  .header-publish { min-height: 34px; padding: 6px 9px; font-size: 12px; gap: 3px; }
  .header-publish .icon { width: 15px; height: 15px; }
  .market-main { padding: 14px 12px 94px; }
  .market-search-area { display: block; min-height: 168px; padding: 17px 14px 15px; margin-bottom: 12px; background-size: auto 118%; background-position: right -96px center; }
  .market-heading { display: block; max-width: none; }
  .market-heading h1 { font-size: 22px; letter-spacing: 0; margin-bottom: 3px; }
  .market-heading > span { font-size: 11px; }
  .market-search-area .searchbox { width: 100%; max-width: none; margin-top: 12px; }
  .scene-caption { display: none; }
  .market-search-area::after { content: '场景示意 · AI 生成'; display: block; color: #bdc9c8; font-size: 9px; margin-top: 7px; }
  .market-search-area.is-filtered { display: block; padding: 11px; }
  .is-filtered .market-heading, .market-search-area.is-filtered::after { display: none; }
  .is-filtered .searchbox { margin: 0; }
  .searchbox { padding: 3px 3px 3px 9px; }
  .searchbox input { font-size: 14px; }
  .searchbox .btn { min-height: 38px; padding: 7px 17px; font-size: 14px; }
  .search-hints { gap: 12px; font-size: 11px; margin-top: 8px; }
  .search-hints button { font-size: 11px; }
  .category-row { padding: 8px; display: block; }
  .category-row .filter-label { display: none; }
  .category-options { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 82px; gap: 3px; overflow-x: auto; padding-bottom: 3px; }
  .category-option { padding: 7px 3px; min-height: 38px; font-size: 13px; }
  .market-filter-controls { gap: 8px; padding: 9px; flex-wrap: wrap; }
  .market-filter-controls label { flex: 1; min-width: 0; font-size: 12px; gap: 5px; }
  .market-filter-controls select { flex: 1; width: 0; min-width: 0; font-size: 12px; padding: 6px 2px; min-height: 36px; }
  .clear-filters { font-size: 11px; padding: 7px 0; }
  .results-bar { margin: 14px 0 10px; align-items: center; }
  .results-bar strong { font-size: 14px; }
  .results-bar small { font-size: 11px; margin-left: 6px; }
  .compact-select { font-size: 12px; padding: 6px 0; max-width: 118px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-art { aspect-ratio: 1.1; }
  .product-info { padding: 9px; }
  .product-info h3 { font-size: 14px; height: 43px; line-height: 1.5; margin-bottom: 6px; }
  .product-info .tag { font-size: 10px; padding: 2px 4px; }
  .product-info .tags { height: 19px; gap: 3px; }
  .condition { font-size: 10px; left: 7px; top: 7px; }
  .price { font-size: 22px; }
  .quantity { font-size: 10px; }
  .product-bottom { font-size: 11px; padding-top: 7px; }
  .product-company { font-size: 10px; padding-top: 6px; margin-top: 7px; }
  .image-caption { font-size: 9px; }
  .mobile-nav { min-height: 61px; padding: 7px 4px max(8px, env(safe-area-inset-bottom)); background: #fff; border-color: #dce2e9; backdrop-filter: none; }
  .mobile-nav button { font-size: 11px; color: #65706e; gap: 4px; min-width: 54px; min-height: 42px; }
  .mobile-nav button.active { color: var(--primary); }
  .mobile-nav .center-market { color: var(--primary); font-weight: 600; }
  .mobile-nav .center-market .icon, .mobile-nav .publish .icon { background: var(--primary); color: #fff; width: 33px; height: 28px; margin-top: -3px; border-radius: 4px; padding: 4px; }
  .heading-row { margin-bottom: 16px; gap: 12px; }
  .heading-row h1 { font-size: 21px; }
  .heading-row .muted { font-size: 12px; }
  .heading-row .btn { font-size: 12px; padding: 8px 10px; min-height: 36px; }
  .panel { padding: 16px; border-radius: 4px; }
  .field { font-size: 13px; }
  .field input, .field select, .field textarea { font-size: 16px; padding: 10px; }
  .form-grid { gap: 14px 12px; }
  .live-form .btn.full { width: 100%; }
  .seller-manage-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .seller-photos img { width: 130px; height: 110px; }
  .seller-actions .btn { min-height: 42px; font-size: 13px; }
  .inventory-meta { gap: 5px; padding: 0 9px 10px; }
  .inventory-meta .btn { font-size: 11px; padding: 6px 8px; }
  .status-tag { font-size: 11px; }
  .profile-hero { padding: 17px; }
  .profile-hero h2 { font-size: 18px; }
  .profile-hero p { font-size: 12px; }
  .live-profile-actions .panel + .panel { border-left: 0; border-top: 1px solid var(--line); }
  .chat-layout { grid-template-columns: 1fr; }
  .conversation-list { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .chat-header h3 { font-size: 14px; }
  .chat-header small { font-size: 11px; }
  .message-stream { height: 48vh; }
  .chat-compose input { font-size: 16px; }
  .operation-note { font-size: 11px; margin-top: 22px; }
  .live-helper { height: max(720px, 82vh); }
  .embedded-prototype .main { padding: 0 0 20px; }
  .feed { padding: 0 14px; }
  .post { padding: 17px 0; }
  .post-title { font-size: 15px; }
  .post-body { font-size: 13px; }
  .company-name { font-size: 12px; }
  .company-meta, .post-footer span, .post-footer button { font-size: 11px; }
  .tab { font-size: 13px; }
  .type { font-size: 11px; }
  .help-hero { padding: 15px; }
  .help-hero h1 { font-size: 20px; }
  .help-hero p { font-size: 12px; }
  .help-grid { gap: 10px; }
  .help-card { padding: 14px; }
  .help-card h3 { font-size: 14px; }
  .help-card p { font-size: 12px; }
  .quick-tools .help-card { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 10px; }
  .quick-tools .tool-icon { width: 30px; height: 30px; margin: 0; }
  .quick-tools .help-card h3 { font-size: 12px; }
  .section-heading h2 { font-size: 16px; }
  .knowledge-list button { font-size: 13px; }
  .calc-result { padding: 21px; }
  .calc-result .total { font-size: 40px; }
  .diagram-note { font-size: 12px; }
  .ai-banner { padding: 16px; }
  .ai-banner p { font-size: 12px; }
  .question-chips button { font-size: 12px; border-radius: 4px; }
}
@media (max-width: 360px) {
  .trade-logo { width: 23px; height: 23px; }
  .site-brand strong { font-size: 17px; }
  .header-account { gap: 6px; }
  .account-link { max-width: 65px; }
  .header-publish .icon { display: none; }
  .quantity { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
