/* 展小秘 · 小程序 / H5 / 后台统一蓝灰白视觉基线 */
:root {
  color-scheme: light;
  --ink: #1d2b42;
  --muted: #68778d;
  --faint: #8290a5;
  --green: #355dc5;
  --green-dark: #294aa2;
  --accent: #355dc5;
  --mint: #eff3fa;
  --bg: #eff2f6;
  --white: #fff;
  --line: #dce3ec;
  --line-strong: #c7d3e4;
  --radius: 10px;
  --font: 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .4; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: 30px; font-weight: 600; letter-spacing: -.8px; line-height: 1.35; margin-bottom: 12px; }
h2 { font-size: 18px; font-weight: 550; line-height: 1.5; margin-bottom: 8px; }
h3 { font-size: 16px; font-weight: 550; line-height: 1.5; }
p { line-height: 1.8; }
svg { flex-shrink: 0; vertical-align: middle; }
.icon { display: inline-block; width: 18px; height: 18px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 400; letter-spacing: .4px; color: var(--muted); }
.full { grid-column: 1 / -1; }
.boot { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }

/* Wordmark and compact controls */
.brand { display: flex; align-items: flex-start; gap: 12px; white-space: nowrap; }
.brand-mark { width: 29px; height: 31px; fill: none; stroke: var(--ink); stroke-width: 1.3; }
.brand > span { font-size: 25px; font-weight: 600; letter-spacing: -.8px; line-height: 1.3; }
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .2px; margin-top: 4px; }
.btn {
  min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; font-size: 13px; font-weight: 450; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn-primary { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn-primary:hover:not(:disabled) { background: #1d2b42; border-color: #1d2b42; }
.btn-secondary { background: #fff; border-color: var(--line-strong); }
.btn-secondary:hover:not(:disabled) { background: #f8faff; border-color: #8290a5; }
.btn-sm { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.btn-danger { color: #9b423b; background: #fff; border-color: #dfcbc8; }
.btn-danger:hover { background: #faf2f0; }
.text-btn { border: 0; background: none; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; padding: 6px 0; font-size: 12px; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-btn .icon { width: 15px; height: 15px; }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 3px; background: transparent; color: var(--muted); }
.icon-btn:hover { color: var(--ink); background: #eff3fa; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.badge-green { color: var(--accent); }
.badge-amber { color: #68778d; }
.online-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: var(--accent); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #eff3fa; color: #1d2b42; font-size: 14px; font-weight: 400; flex-shrink: 0; }
.avatar.large { width: 56px; height: 56px; font-size: 22px; }
.stars { display: inline-flex; gap: 2px; font-size: 15px; letter-spacing: 0; color: #dce3ee; white-space: nowrap; }
.stars .filled { color: var(--accent); }

/* Application frame */
.app-shell { min-height: 100dvh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 25; width: 204px;
  display: flex; flex-direction: column; padding: 30px 0 16px;
  background: #f8faff; border-right: 1px solid var(--line);
}
.sidebar .brand { margin: 0 25px 52px; }
.sidebar nav { display: flex; flex-direction: column; gap: 9px; min-height: 0; overflow-y: auto; }
.nav-item { position: relative; border: 0; background: transparent; width: 100%; text-align: left; padding: 14px 28px; min-height: 46px; display: flex; align-items: center; gap: 15px; font-size: 14px; color: #4c5f7b; }
.nav-item .icon { width: 19px; height: 19px; }
.nav-item:hover { background: #eff3fa; }
.nav-item.active { font-weight: 550; color: var(--ink); background: #eff3fa; }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; background: var(--ink); }
.sidebar-bottom { margin-top: auto; padding-top: 24px; flex-shrink: 0; }
.sidebar-bottom .nav-item { font-size: 13px; }
.sidebar-account { margin: 18px 17px 0; padding: 20px 9px 4px; width: calc(100% - 34px); border: 0; border-top: 1px solid var(--line); background: none; display: flex; align-items: center; gap: 12px; text-align: left; }
.sidebar-account strong { display: block; font-size: 13px; font-weight: 500; }
.sidebar-account small { display: block; font-size: 11px; margin-top: 4px; color: var(--muted); }
.main-shell { margin-left: 204px; }
.topbar { height: 74px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 42px; gap: 20px; background: #fff; }
.breadcrumbs { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--muted); }
.breadcrumbs strong { font-weight: 500; color: var(--ink); }
.breadcrumb-slash { color: #8290a5; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.role-select select { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 5px; max-width: 200px; }
.environment-label { font-size: 11px; color: #68778d; padding: 3px 0; }
.user-button { padding: 0; border: 0; background: none; }
.mobile-brand, .mobile-nav { display: none; }
.main-content { padding: 0 42px; max-width: 1580px; margin: 0 auto; }
.exhibition-switch { display: flex; align-items: center; gap: 14px; min-height: 64px; font-size: 12px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.exhibition-caption { color: var(--muted); white-space: nowrap; }
.exhibition-switch select { border: 0; background: transparent; color: #4c5f7b; max-width: min(65%, 520px); padding: 7px 24px 7px 0; font-size: 12px; text-overflow: ellipsis; }
.scope-caption { margin-left: auto; color: #68778d; font-size: 11px; }
#page-content { min-height: 62vh; }
#page-content[aria-busy=true] { cursor: progress; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 40px 0 28px; }
.exhibition-switch + #page-content .page-heading { margin-top: 0; }
.page-heading .eyebrow { margin: 0 0 10px; }
.page-heading h1 { margin-bottom: 10px; }
.page-heading p { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 0; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0; margin-top: 42px; border-top: 1px solid var(--line); font-size: 11px; color: #68778d; }
.footer-divider { display: inline-block; margin: 0 10px; color: #b4c0d3; }

/* Common content, metrics, and tabular data */
.card { border: 0; border-radius: 0; background: transparent; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 32px 0 42px; }
.metric { background: transparent; border: 0; border-left: 1px solid var(--line-strong); border-radius: 0; padding: 0 30px; }
.metric:first-child { border-left: 0; padding-left: 0; }
.metric:last-child { padding-right: 0; }
.metric-label { font-size: 13px; color: var(--muted); }
.metric-value { font-size: 34px; line-height: 1.25; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -1px; margin-top: 10px; }
.metric-caption { font-size: 11px; color: var(--muted); margin-top: 10px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; }
.section-head h2 { margin: 0; font-size: 17px; }
.section-head p { font-size: 12px; margin: 6px 0 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.data-table th { background: #f8faff; padding: 17px 20px; color: var(--muted); font-weight: 400; white-space: nowrap; border-bottom: 1px solid var(--line); }
.data-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
.data-table tbody tr:hover { background: #f8faff; }
.data-table td strong { font-weight: 500; }
.data-table td small { display: block; font-size: 11px; color: var(--muted); margin-top: 7px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-input { padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 3px; min-height: 40px; background: #fff; }
.search-box { display: flex; align-items: center; gap: 10px; padding: 0 10px 0 13px; border: 1px solid var(--line-strong); background: #fff; border-radius: 3px; min-height: 40px; min-width: 0; }
.search-box > .icon { width: 16px; height: 16px; color: var(--muted); }
.search-box input { min-width: 0; width: 100%; flex: 1; border: 0; background: none; padding: 10px 0; font-size: 12px; color: var(--ink); outline: 0; }
.search-box:focus-within { outline: 2px solid #8290a5; outline-offset: 1px; }
.search-box .btn { border: 0; padding: 3px 6px; min-height: 30px; font-size: 11px; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 12px; font-size: 12px; color: var(--muted); }
.pagination > div { display: flex; gap: 8px; align-items: center; }
.kind-tabs { display: flex; align-items: center; gap: 26px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.kind-tabs button { position: relative; background: none; border: 0; padding: 14px 0; color: var(--muted); font-size: 13px; }
.kind-tabs button.active { color: var(--ink); font-weight: 500; }
.kind-tabs button.active::after { content: ''; position: absolute; bottom: -1px; height: 2px; background: var(--ink); left: 0; right: 0; }
.empty { padding: 68px 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-top: 1px solid var(--line); color: var(--muted); }
.empty > .icon { width: 28px; height: 28px; color: #8290a5; margin-bottom: 20px; }
.empty h3 { color: #4c5f7b; font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.empty p { max-width: 420px; font-size: 12px; }
.empty.error-state { min-height: 450px; border: 0; }
.notice { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.8; color: var(--muted); border-top: 1px solid var(--line); padding: 18px 0; margin-top: 22px; }
.notice > .icon { width: 16px; height: 16px; margin-top: 3px; }

/* Forms and side-panel dialogs */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 9px; font-size: 12px; color: #4c5f7b; }
.field input, .field select, .field textarea { display: block; min-width: 0; width: 100%; border: 1px solid var(--line-strong); background: #fff; padding: 11px 12px; color: var(--ink); border-radius: 3px; font-size: 14px; min-height: 42px; }
.field textarea { resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #8290a5; }
.field input[readonly] { color: #68778d; background: #f8faff; }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); }
.form-error { color: #a7473f; font-size: 12px; line-height: 1.8; margin: 17px 0 0; }
.form-error:empty { display: none; }
.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; display: flex; align-items: stretch; justify-content: flex-end; background: #1d2b423d; z-index: 100; }
.modal { width: 640px; max-width: 100%; height: 100dvh; background: #fff; overflow: auto; box-shadow: -8px 0 40px #19251b10; }
.modal > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 28px 32px 25px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 2; }
.modal > header .eyebrow { font-size: 11px; color: #8290a5; }
.modal > header h2 { font-size: 23px; letter-spacing: -.4px; margin: 8px 0 0; font-weight: 550; }
.modal > header .icon-btn { align-self: flex-start; }
.modal form { padding: 25px 32px 28px; }
.modal form > p.muted { font-size: 12px; }
.form-section-heading { grid-column: 1 / -1; display: flex; align-items: center; gap: 11px; margin: 10px 0 0; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 550; }
.form-section-heading:first-child { padding-top: 0; border-top: 0; margin-top: 0; }
.form-section-heading > span { font-size: 10px; font-weight: 400; color: #8290a5; letter-spacing: 1px; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); background: #fff; padding: 22px 0 6px; margin-top: 30px; }
.capture-note { display: flex; justify-content: space-between; gap: 15px; font-size: 11px; color: var(--muted); padding: 0 0 23px; margin-bottom: 3px; }
.capture-note > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.capture-note > span:last-child { white-space: nowrap; color: #8290a5; }
.draft-notice { font-size: 12px; border-left: 2px solid var(--accent); padding-left: 12px; color: var(--muted); margin-bottom: 25px; }
.rating-field, .tag-field { border: 0; padding: 0; margin: 0; }
.rating-field legend, .tag-field legend { margin-bottom: 13px; padding: 0; }
.rating-picker { display: flex; gap: 7px; }
.rating-picker label { flex: 1; min-width: 0; text-align: center; cursor: pointer; position: relative; }
.rating-picker input, .tag-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rating-picker label span { display: block; padding: 8px; font-size: 25px; color: #b4c0d3; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.rating-picker input:checked + span { color: var(--accent); border-color: var(--accent); background: #f8faff; }
.rating-picker input:focus-visible + span, .tag-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.rating-picker small { display: block; font-size: 10px; color: var(--muted); margin-top: 9px; }
.tag-options { display: flex; gap: 9px; flex-wrap: wrap; }
.tag-options label { position: relative; cursor: pointer; }
.tag-options label span { display: block; padding: 9px 12px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 12px; border-radius: 3px; }
.tag-options input:checked + span { border-color: var(--ink); color: var(--ink); background: #f8faff; }
.draft-status { margin-right: auto; display: inline-flex; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); }
.draft-status .icon { width: 14px; height: 14px; }
.detail-head { display: flex; align-items: center; gap: 14px; padding: 4px 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.detail-head .company-avatar { display: none; }
.detail-head h3 { font-size: 22px; font-weight: 550; margin-bottom: 7px; }
.detail-head p { margin: 0; font-size: 12px; }
.detail-head .stars { margin-left: auto; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0 0 30px; }
.detail-grid dt { font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.detail-grid dd { font-size: 13px; color: #4c5f7b; margin: 0; overflow-wrap: anywhere; line-height: 1.7; }
.record-detail h4 { font-size: 12px; font-weight: 500; color: #4c5f7b; margin: 26px 0 12px; }
.record-detail h4 + p { font-size: 13px; line-height: 1.9; color: #4c5f7b; }
.detail-notes { white-space: pre-wrap; }
.detail-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.detail-section h4 { margin: 0 0 18px; font-size: 14px; font-weight: 550; }
.detail-section .detail-grid { margin: 0; }
.detail-section .detail-notes { margin: 0; color: #4c5f7b; line-height: 1.9; }
.detail-section .record-tags { margin-top: 16px; }
.detail-products { list-style: none; margin: 0; padding: 0; }
.detail-products li + li { margin-top: 18px; }
.detail-products strong { font-size: 13px; font-weight: 500; }
.detail-products p { margin: 7px 0 0; white-space: pre-wrap; color: var(--muted); font-size: 12px; }
.media-upload-label{position:relative;margin:16px 0 10px;cursor:pointer;overflow:hidden}.media-upload-label input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.media-upload-label:focus-within{outline:2px solid var(--accent);outline-offset:3px}.attachment-list{list-style:none;margin:0;padding:0}.attachment-list li{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}.attachment-list li>span{min-width:0;flex:1}.attachment-list strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.attachment-list small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.attachment-list .text-btn{flex-shrink:0}.login-access-note{font-size:12px;line-height:1.7;color:var(--muted);margin-top:20px}
.record-detail .detail-head { margin-bottom: 0; }
.record-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.record-tags > span { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 2px; padding: 3px 7px; }
.custom-field-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.custom-field-row input, .custom-field-row select { min-width: 0; padding: 11px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 3px; font-size: 12px; background: #fff; }
.custom-field-row input:not([type=hidden]) { flex: 1; }
.custom-field-row select { width: 86px; }
.custom-field-row .icon-btn { flex-shrink: 0; }
.help-content h3 { font-size: 15px; margin: 28px 0 10px; }
.help-content h3:first-child { margin-top: 0; }
.help-content p { font-size: 13px; color: var(--muted); }
.profile-info { text-align: center; padding-top: 20px; }
.profile-info h3 { margin: 18px 0 5px; }
.profile-info p { margin-bottom: 6px; font-size: 13px; }

/* Join and account pages */
.join-page { max-width: 650px; padding: 44px 0 60px; }
.join-page > .eyebrow { margin-bottom: 20px; }
.join-page h1 { font-size: 30px; margin-bottom: 22px; }
.join-page > p { font-size: 13px; }
.join-details { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 25px 0; margin: 28px 0; }
.join-details dt { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.join-details dd { margin: 0; font-size: 13px; }
.join-page > .btn { margin-bottom: 15px; }
.profile-page { max-width: 650px; }
.profile-header { display: flex; align-items: center; gap: 18px; padding: 10px 0 28px; }
.profile-header h2 { font-size: 24px; margin: 0 0 8px; }
.profile-header p { font-size: 13px; color: var(--muted); margin: 0; }
.profile-details { margin: 0; border-top: 1px solid var(--line); }
.profile-details > div { display: flex; justify-content: space-between; gap: 25px; padding: 19px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.profile-details dt { color: var(--muted); white-space: nowrap; }
.profile-details dd { margin: 0; text-align: right; }
.profile-links { margin-top: 26px; }
.profile-links button { display: flex; justify-content: space-between; align-items: center; padding: 19px 0; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 14px; }
.profile-footnote { font-size: 11px; line-height: 1.9; color: #8290a5; margin-top: 35px; }

/* Login */
.login-layout { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1.08fr; background: #fff; }
.login-story { display: flex; flex-direction: column; padding: 46px 60px 32px; background: #f8faff; border-right: 1px solid var(--line); }
.login-copy { margin: auto 0; padding: 65px 0 35px; }
.login-copy > .eyebrow { font-size: 12px; color: #8290a5; }
.login-copy h1 { font-size: 46px; font-weight: 500; line-height: 1.6; letter-spacing: -1.7px; margin: 22px 0 25px; }
.login-copy p { font-size: 14px; line-height: 2; color: var(--muted); }
.login-index { margin: 20px 0 50px; border-top: 1px solid #dce3ee; }
.login-index > div { display: flex; align-items: center; gap: 23px; padding: 18px 0; border-bottom: 1px solid #dce3ee; font-size: 12px; }
.login-index dt { font-size: 11px; color: #8290a5; font-variant-numeric: tabular-nums; }
.login-index dd { margin: 0; color: #68778d; }
.login-foot { display: flex; justify-content: space-between; color: #8290a5; font-size: 10px; margin-top: auto; }
.login-panel { display: flex; justify-content: center; align-items: center; padding: 60px 50px; }
.login-form-wrap { width: 380px; max-width: 100%; }
.login-form-wrap > .eyebrow { color: #68778d; }
.login-form-wrap > h2 { font-size: 30px; font-weight: 550; letter-spacing: -.7px; margin: 14px 0 10px; }
.login-form-wrap > p { font-size: 13px; margin-bottom: 32px; }
.login-form-wrap .field { margin-top: 22px; }
.login-form-wrap .field input { min-height: 46px; }
.code-field { display: flex; gap: 10px; }
.code-field input { flex: 1; min-width: 0; }
.code-field .btn { padding: 9px 12px; font-size: 12px; }
.consent { display: flex; gap: 8px; align-items: flex-start; margin: 22px 0; font-size: 11px; color: #68778d; line-height: 1.7; }
.consent input { margin: 3px 0 0; }
.login-submit { display: flex; width: 100%; justify-content: space-between; padding: 12px 16px; height: 46px; }
.demo-logins { padding-top: 28px; margin-top: 32px; border-top: 1px solid var(--line); }
.demo-logins > .eyebrow { font-size: 11px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 8px; }
.demo-account { text-align: left; position: relative; padding: 17px 14px 17px 0; border: 0; border-bottom: 1px solid var(--line); background: none; }
.demo-account:hover strong { color: var(--accent); }
.demo-account strong { display: block; font-size: 13px; font-weight: 450; }
.demo-account small { display: block; font-size: 10px; color: #8290a5; margin-top: 6px; }
.demo-account .icon { position: absolute; right: 0; top: 19px; width: 13px; height: 13px; color: #68778d; }
.login-end { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; }
.login-end > span { color: #8290a5; font-size: 10px; }
.realm-switch { border: 0; background: none; display: inline-flex; gap: 7px; align-items: center; padding: 0; font-size: 12px; }
.realm-switch .icon { width: 14px; height: 14px; }
.login-mobile-brand { display: none; }
#toast { position: fixed; bottom: 32px; left: 50%; transform: translate(-50%,12px); max-width: 90%; padding: 13px 21px; border-radius: 4px; background: #1d2b42; color: #fff; font-size: 12px; box-shadow: 0 8px 30px #1d2b4214; opacity: 0; z-index: 200; pointer-events: none; transition: opacity .18s, transform .18s; text-align: center; line-height: 1.7; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }

/* Tablet */
@media (min-width: 1600px) {
  .sidebar { width: 224px; }
  .sidebar .brand { margin-left: 32px; }
  .nav-item { padding-left: 34px; }
  .main-shell { margin-left: 224px; }
  .topbar { padding: 0 54px; }
  .main-content { padding: 0 54px; }
}
@media (max-width: 1100px) {
  .sidebar { width: 180px; }
  .sidebar .brand { margin: 0 20px 45px; gap: 9px; }
  .sidebar .brand > span { font-size: 23px; }
  .brand-mark { width: 25px; height: 29px; }
  .nav-item { padding: 13px 23px; font-size: 13px; gap: 12px; }
  .main-shell { margin-left: 180px; }
  .main-content, .topbar { padding-left: 28px; padding-right: 28px; }
  .metric { padding: 0 22px; }
  .metric-value { font-size: 30px; }
  .metric-label { font-size: 12px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { font-size: 12px; }
  .topbar-right { gap: 14px; }
  .environment-label { display: none; }
  .login-story { padding: 40px; }
  .login-copy h1 { font-size: 38px; }
  .login-panel { padding: 48px 35px; }
}

/* Mobile H5 and compact operator view */
@media (max-width: 700px) {
  .sidebar { display: none; }
  .main-shell { margin-left: 0; }
  .topbar { height: 66px; padding: 0 21px; gap: 10px; }
  .breadcrumbs, .desktop-logout { display: none; }
  .mobile-brand { display: block; }
  .mobile-brand .brand { gap: 0; }
  .mobile-brand .brand-mark { display: none; }
  .mobile-brand .brand > span { font-size: 22px; font-weight: 600; letter-spacing: -.8px; }
  .topbar-right { gap: 12px; }
  .role-select select { max-width: 170px; font-size: 10px; color: #68778d; padding: 5px 0; }
  .avatar { width: 30px; height: 30px; font-size: 12px; }
  .main-content { padding: 0 21px 95px; }
  .exhibition-switch { min-height: 50px; margin: 0 0 12px; border: 0; gap: 0; }
  .exhibition-caption, .scope-caption { display: none; }
  .exhibition-switch select { padding: 10px 18px 10px 0; max-width: 100%; color: #68778d; font-size: 12px; }
  .page-heading { margin: 27px 0 24px; gap: 14px; align-items: flex-start; }
  .page-heading .eyebrow { display: none; }
  .page-heading h1 { font-size: 28px; line-height: 1.3; margin-bottom: 8px; letter-spacing: -.8px; }
  .page-heading p { font-size: 11px; line-height: 1.8; }
  .heading-actions { gap: 8px; flex-shrink: 0; }
  .heading-actions .btn { font-size: 11px; padding: 8px 10px; min-height: 35px; }
  .heading-actions .btn .icon { width: 14px; height: 14px; }
  .metric-grid { margin: 26px 0 30px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 0; }
  .metric { padding: 0 20px; }
  .metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .metric-value { font-size: 29px; margin-top: 7px; }
  .metric-label { font-size: 11px; }
  .metric-caption { font-size: 10px; line-height: 1.7; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding: 6px 9px calc(6px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: stretch; background: #fff; border-top: 1px solid var(--line); }
  .mobile-nav > button { position: relative; flex: 1; padding: 7px 4px; border: 0; background: none; color: #68778d; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 5px; font-size: 10px; }
  .mobile-nav .icon { width: 19px; height: 19px; }
  .mobile-nav > button.active { color: var(--ink); font-weight: 550; }
  .mobile-nav > button.active::after { content: ''; position: absolute; height: 2px; width: 21px; bottom: -1px; left: calc(50% - 10px); background: var(--ink); }
  .admin-mobile-nav { overflow-x: auto; justify-content: flex-start; }
  .admin-mobile-nav > button { font-size: 9px; flex: 0 0 76px; }
  .page-footer { margin-top: 30px; padding: 18px 0 0; font-size: 9px; gap: 10px; }
  .page-footer .footer-divider { margin: 0 5px; }
  .section-head { padding: 19px 0; gap: 10px; }
  .section-head h2 { font-size: 16px; }
  .section-head p { font-size: 11px; }
  .search-box input { font-size: 12px; }
  .search-box { min-height: 43px; }
  .search-box input:focus { font-size: 16px; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 16px 15px; }
  .data-table td small { font-size: 10px; }
  .pagination { font-size: 11px; gap: 10px; padding: 20px 0; }
  .pagination .btn { font-size: 11px; padding: 6px 9px; }
  .kind-tabs { gap: 22px; margin-bottom: 18px; }
  .kind-tabs button { font-size: 12px; }
  .empty { padding: 55px 10px; }
  .notice { font-size: 11px; }
  .modal { width: 100%; box-shadow: none; }
  .modal > header { padding: 21px 21px 19px; }
  .modal > header h2 { font-size: 22px; }
  .modal > header .eyebrow { font-size: 10px; }
  .modal form { padding: 22px 21px 25px; }
  .form-grid { gap: 23px 14px; }
  .field { font-size: 12px; gap: 8px; }
  .field input, .field select, .field textarea { font-size: 16px; padding: 11px 10px; }
  .field input::placeholder, .field textarea::placeholder { font-size: 13px; }
  .modal-actions { gap: 10px; margin-top: 28px; }
  .modal-actions .btn { min-height: 43px; font-size: 13px; }
  .draft-status { font-size: 10px; max-width: 150px; }
  .capture-note { font-size: 10px; padding-bottom: 22px; gap: 12px; }
  .rating-picker { gap: 6px; }
  .rating-picker label span { padding: 9px 7px; font-size: 24px; }
  .rating-picker small { font-size: 9px; margin-top: 8px; }
  .tag-options { gap: 7px; }
  .tag-options label span { font-size: 11px; padding: 9px; }
  .detail-head { flex-wrap: wrap; padding-bottom: 23px; }
  .detail-head h3 { font-size: 21px; }
  .detail-grid { gap: 22px 15px; }
  .detail-grid dd { font-size: 13px; }
  .record-detail { padding-bottom: 70px; }
  .detail-section { margin: 0 -21px; padding: 23px 21px; border-bottom: 8px solid #f8faff; }
  .detail-section h4 { font-size: 14px; margin-bottom: 17px; }
  .modal form:has(> .capture-note) { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .detail-actions, .modal form:has(> .capture-note) > .modal-actions { position: fixed; z-index: 3; left: 0; right: 0; bottom: 0; margin: 0; padding: 13px 21px calc(13px + env(safe-area-inset-bottom)); background: #fff; }
  .detail-actions .btn-primary, .modal form:has(> .capture-note) > .modal-actions .btn-primary { flex: 1; min-height: 46px; border-radius: 6px; }
  .detail-actions .btn-danger { background: #fff; border-color: transparent; color: #8a6e66; padding-left: 0; }
  .modal form:has(> .capture-note) > .modal-actions .draft-status { display: none; }
  .custom-field-row { gap: 8px; }
  .custom-field-row input, .custom-field-row select { font-size: 14px; }
  .custom-field-row select { width: 70px; }
  .join-page { padding: 25px 0; }
  .join-page h1 { font-size: 28px; }
  .join-details { grid-template-columns: 1fr; gap: 20px; }
  .profile-header { padding-bottom: 25px; }
  .profile-header .avatar { width: 52px; height: 52px; font-size: 22px; }
  .profile-header h2 { font-size: 23px; }
  .profile-details > div { font-size: 12px; }
  .profile-footnote { font-size: 10px; }
  .login-layout { display: block; }
  .login-story { display: none; }
  .login-panel { min-height: 100dvh; padding: 36px 27px 38px; align-items: flex-start; }
  .login-form-wrap { width: 100%; max-width: 420px; }
  .login-mobile-brand { display: block; margin-bottom: 62px; }
  .login-mobile-brand .brand > span { font-size: 25px; }
  .login-mobile-brand .brand-mark { width: 25px; height: 31px; }
  .login-form-wrap > h2 { font-size: 29px; margin-top: 13px; }
  .login-form-wrap > p { font-size: 12px; margin-bottom: 27px; }
  .login-form-wrap .field { margin-top: 22px; }
  .login-form-wrap .field input { font-size: 16px; min-height: 47px; }
  .login-submit { height: 47px; }
  .demo-logins { margin-top: 31px; padding-top: 24px; }
  .demo-grid { gap: 0 22px; }
  .demo-account strong { font-size: 12px; }
  .demo-account small { font-size: 10px; }
  .login-end { margin-top: 29px; }
  .login-end > span { font-size: 9px; }
  #toast { bottom: calc(87px + env(safe-area-inset-bottom)); font-size: 11px; }
}
@media (max-width: 360px) {
  .main-content, .topbar { padding-left: 17px; padding-right: 17px; }
  .role-select select { max-width: 140px; }
  .modal form, .modal > header { padding-left: 17px; padding-right: 17px; }
  .detail-section { margin-left: -17px; margin-right: -17px; padding-left: 17px; padding-right: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .tag-options label span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: #fff; font-size: 12px; }
  .sidebar, .topbar, .exhibition-switch, .mobile-nav, .heading-actions, .page-footer, #toast, .kind-tabs, .mobile-capture-bar { display: none !important; }
  .main-shell { margin: 0; }
  .main-content { padding: 0; max-width: none; }
  #page-content { min-height: auto; }
  .page-heading { margin: 10px 0 22px; }
  .page-heading h1 { font-size: 24px; }
  .metric-grid { grid-template-columns: repeat(4,1fr); }
  .metric:nth-child(3) { border-left: 1px solid var(--line); padding-left: 20px; }
  .metric-value { font-size: 26px; }
  .card { break-inside: avoid; }
  .modal-backdrop { display: none; }
}
.custom-field-row{display:grid;grid-template-columns:minmax(0,1fr) 88px 36px}.custom-field-row [name=fieldOptions]{grid-column:1/-1;grid-row:2}.custom-field-row .remove-field{grid-column:3;grid-row:1}.custom-field-row select{width:100%}
.available-exhibitions article{padding:20px 0;border-bottom:1px solid var(--line)}.available-exhibitions h3{margin-bottom:8px}.available-exhibitions p{margin-bottom:10px}.empty>.btn{margin:5px}
.product-image-option{display:flex;align-items:center;gap:10px;font-size:13px;margin:12px 0}.product-image-option input{accent-color:var(--accent)}.detail-products+#add-record-product{margin-top:18px}.profile-page{background:white;padding:24px;border:1px solid var(--line);border-radius:16px}

/* Shared platform baseline: blue actions, white surfaces, quiet gray canvas. */
body,.main-shell{background:var(--bg)}.sidebar,.topbar{background:#fff}.sidebar .brand{margin-bottom:30px}.brand-mark{stroke:var(--accent)}
.nav-item.active{color:var(--accent);background:#edf2fc}.nav-item.active::before{background:var(--accent)}.nav-item:hover{background:#f4f7fc}
.btn-primary{background:var(--accent);border-color:var(--accent)}.btn-primary:hover:not(:disabled){background:#294aa2;border-color:#294aa2}.btn-secondary{background:#fff;border-color:var(--line-strong);color:var(--ink)}.text-btn{color:var(--accent)}
.page-heading{flex-wrap:wrap}.heading-actions{flex-wrap:wrap;justify-content:flex-end;max-width:100%}.card,.empty{background:#fff;border:1px solid var(--line);border-radius:16px}.empty{margin:20px 0}
.table-wrap{background:#fff;border:1px solid var(--line);border-radius:16px;overflow-x:auto}.data-table th{background:#f4f7fc}.data-table tbody tr:hover{background:#f8faff}
.field input,.field select,.field textarea,.search-input,.search-box,.custom-field-row input,.custom-field-row select{border-radius:8px}.avatar{background:#edf2fc;color:var(--accent)}.stars .filled{color:#d9a117}
.login-story{background:#edf2fc}.login-copy>.eyebrow,.login-form-wrap>.eyebrow{color:var(--accent)}.login-panel{background:#fff}.login-index{border-color:var(--line-strong)}.login-index>div{border-color:var(--line-strong)}
.notice{background:#edf2fc;border-radius:10px;border-color:var(--line);color:var(--ink)}.tag-options input:checked+span{color:var(--accent);background:#edf2fc;border-color:var(--accent)}.record-tags>span{background:#f4f7fc;border-radius:6px}.rating-picker input:checked+span{background:#edf2fc;color:var(--accent)}
.modal{border-radius:16px 0 0 16px}.available-exhibitions article{padding:20px;border:1px solid var(--line);border-radius:16px;margin-bottom:14px;background:#fff}#toast{background:var(--ink);border-radius:10px}
@media(max-width:700px){.heading-actions{justify-content:flex-start}.modal{border-radius:0}.page-heading{align-items:flex-start}.login-panel{background:var(--bg)}.mobile-nav>button.active{color:var(--accent)}.mobile-nav>button.active::after{background:var(--accent)}}
.entry-qr { display: grid; justify-items: center; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; margin: 16px 0; }
.entry-qr img { width: min(100%, 256px); height: auto; image-rendering: pixelated; }
.company-intelligence { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f4f7fd; overflow-wrap: anywhere; }
.company-intelligence[hidden], .entry-qr img[hidden] { display: none; }
.company-intelligence p { margin: 8px 0; }
.company-intelligence article + article { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.audio-recorder { padding: 16px; border: 1px solid var(--line); border-radius: 12px; margin-top: 16px; background: #f4f7fd; }
.audio-recorder-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.audio-recorder audio { width: 100%; margin-top: 8px; }
.audio-recorder [hidden] { display: none; }
.private-image-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 12px; margin: 16px 0; }
.private-image-grid figure, .attachment-list figure { margin: 0; padding: 10px; background: #f4f7fd; border: 1px solid var(--line); border-radius: 12px; }
.private-image-grid img, .attachment-list figure img { display: block; width: 100%; max-width: 360px; height: 180px; object-fit: contain; border-radius: 8px; }
.private-image-grid img:not([src]), .attachment-list figure img:not([src]) { display: none; }
.private-image-grid figcaption, .attachment-list figcaption { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.attachment-list audio { display: block; width: min(100%,340px); margin-top: 12px; }
.attachment-list audio[hidden] { display: none; }
.match-filter-form { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 12px; align-items: end; margin: 20px 0; }
.structured-result { display: grid; gap: 12px; margin: 16px 0; }
.structured-result > div { padding: 12px; border-left: 3px solid #d3def8; background: #f7f9fd; border-radius: 6px; }
.structured-result dt { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.structured-result dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.structured-result-list { padding-left: 20px; }
.ai-overview{margin-top:16px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#f7f9fd;overflow-wrap:anywhere;white-space:normal}
.ai-overview>summary{cursor:pointer;color:var(--accent);font-weight:600}
.ai-overview section+section{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}
.ai-overview h4{margin:12px 0 6px;font-size:14px}
.ai-overview .ai-overview-text,.ai-overview li{white-space:pre-wrap;overflow-wrap:anywhere}
.ai-overview .ai-overview-note,.ai-overview .ai-overview-source{font-size:12px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}
.task-status { color: var(--accent); padding: 12px; background: #eff3fb; border-radius: 10px; }
.profile-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; padding: 16px 0; border-block: 1px solid var(--line); }
.profile-summary dt { color: var(--muted); font-size: 12px; }.profile-summary dd { margin: 8px 0 0; font-size: 22px; }
.company-change-history { border-top: 1px solid var(--line); padding: 16px 0; }
.my-exhibition-group { margin: 24px 0; }.my-exhibition-group > h2 { font-size: 16px; margin-bottom: 14px; }
.my-exhibition-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 14px; }
.my-exhibition-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.my-exhibition-card.is-current { border-color: var(--accent); }.my-exhibition-card > div { padding: 18px; }.my-exhibition-card h3 { margin: 8px 0; font-size: 18px; }
.my-exhibition-card > img { width: 100%; height: 140px; object-fit: cover; }
#import-decisions pre { max-width: 480px; max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }
.queue-record-search { display: flex; align-items: end; gap: 12px; margin: 16px 0; }.queue-record-search > label { flex: 1; }
.local-audio-queue { margin: 12px 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.local-audio-queue > li { background: #f6f8fc; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.local-audio-queue audio { width: 100%; margin-top: 12px; }.local-audio-queue audio[hidden] { display: none; }
.profile-guide { display: flex; align-items: center; gap: 12px; padding: 16px; margin: 0 0 20px; border: 1px solid #d1dcf5; border-radius: 14px; background: #f5f8ff; }
.profile-guide > div { flex: 1; }.profile-guide p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.speech-input { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f6f8fc; }
.speech-interim { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--accent); font-size: 13px; }
@media (max-width: 600px) { .queue-record-search { display: block; }.queue-record-search > button { margin-top: 8px; }.profile-summary { grid-template-columns: repeat(2,1fr); } }
