
:root {
  --m-bg: #f5f6f8;
  --m-card: #fff;
  --m-ink: #273142;
  --m-copy: #596575;
  --m-muted: #9aa4b1;
  --m-line: #edf0f4;
  --m-blue: #2369f5;
  --m-blue-soft: #eaf1ff;
  --m-orange: #ffab05;
  --m-orange-soft: #fff5dc;
  --m-red: #fa4c48;
  --m-red-soft: #fff0ef;
  --m-green: #27b985;
  --m-shadow: 0 2px 12px rgba(42, 55, 72, .045);
  font-family: "思源黑体", "Source Han Sans CN", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--m-bg); }
body { margin: 0; min-width: 320px; color: var(--m-copy); background: var(--m-bg); font-size: 13px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
.mobile-work-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 0; font-size: 12px; }
.mobile-work-actions[hidden] { display: none; }
.mobile-work-actions label { display: flex; align-items: center; gap: 5px; }
.mobile-work-actions button, .mobile-work-delete { border: 1px solid #f4d7d7; border-radius: 7px; padding: 5px 9px; color: #d84949; background: #fff4f4; }
.mobile-work-actions button { margin-left: auto; }
.mobile-work-checkbox { display: flex; align-items: center; padding: 5px 6px 5px 0; }
.mobile-work-checkbox input, #mobile-work-select-all { width: 17px; height: 17px; accent-color: var(--m-blue); }
.mobile-follow-button { flex-shrink: 0; padding: 7px 9px; margin-left: 6px; color: #137f5b; background: #e7f8ef; border: 0; border-radius: 7px; font-size: 11px; }
.mobile-follow-button.is-followed { opacity: 1; color: #34836a; }
svg { width: 16px; height: 16px; stroke-width: 1.9; }

.mobile-body { min-height: 100vh; padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
.mobile-shell { width: 100%; max-width: 540px; min-height: 100vh; margin: 0 auto; overflow: hidden; background: var(--m-bg); }
.mobile-view { display: none; min-height: 100vh; padding-bottom: 18px; animation: mobile-page-in .18s ease-out; }
.mobile-view.is-active { display: block; }
@keyframes mobile-page-in { from { opacity: .18; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.mobile-appbar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 23px 14px 12px; background: var(--m-bg); }
.mobile-appbar-home { min-height: 88px; align-items: flex-end; padding-bottom: 12px; }
.mobile-appbar-inner { min-height: 76px; gap: 10px; }
.mobile-appbar-inner > div { min-width: 0; flex: 1; text-align: center; }
.mobile-appbar-title { display: grid; min-width: 0; flex: 1; gap: 2px; text-align: left; }
.mobile-appbar h1 { margin: 0; color: var(--m-ink); font-size: 17px; font-weight: 800; line-height: 1.25; }
.mobile-eyebrow { display: block; margin-bottom: 3px; color: #8b96a5; font-size: 10px; font-weight: 500; }
.mobile-titlebar { margin: 0 0 11px; background: var(--m-card); border-bottom: 1px solid var(--m-line); }
.mobile-titlebar-head { display: flex; min-height: 82px; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 25px 14px 12px; background: var(--m-card); }
.mobile-titlebar-head > div { min-width: 0; flex: 1; }
.mobile-titlebar-head h1 { margin: 0; color: var(--m-ink); font-size: 18px; font-weight: 800; line-height: 1.25; }
.mobile-titlebar-inner .mobile-titlebar-head { min-height: 64px; justify-content: flex-start; padding: 16px 10px 9px; }
.mobile-titlebar-inner .mobile-titlebar-head > div { text-align: left; }
.mobile-titlebar-works .mobile-titlebar-head { min-height: 64px; padding: 16px 10px 9px; }
.mobile-titlebar > .mobile-page-tabs { margin: 0; border-top: 0; border-bottom: 0; }
.mobile-sync-inline { display: flex; min-width: 0; align-items: baseline; gap: 4px; color: var(--m-muted); font-size: 10px; }
.mobile-sync-inline b { color: var(--m-copy); font-size: 11px; font-weight: 700; }
.mobile-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mobile-sync-block { display: grid; gap: 2px; text-align: right; }
.mobile-sync-block span { color: var(--m-muted); font-size: 9px; }
.mobile-sync-block b { color: var(--m-copy); font-size: 10px; font-weight: 600; }
.mobile-back-button { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; padding: 0; color: var(--m-copy); background: var(--m-card); border: 1px solid var(--m-line); border-radius: 5px; }
.mobile-back-button:hover { color: var(--m-blue); }
.mobile-appbar-placeholder { width: 32px; flex: 0 0 32px; }

.mobile-page-content { padding: 0 10px 24px; }
.mobile-comment-toolbar { margin: 0 -10px 11px; background: var(--m-card); border-top: 1px solid var(--m-line); border-bottom: 1px solid var(--m-line); }
.mobile-toolbar-title { display: grid; gap: 2px; padding: 21px 10px 0; background: var(--m-card); }
.mobile-toolbar-title h1 { margin: 0; color: var(--m-ink); font-size: 18px; font-weight: 800; line-height: 1.25; }
.mobile-refresh-line { display: flex; align-items: center; justify-content: space-between; min-height: 29px; margin: 0 2px 9px; }
.mobile-refresh-label { display: inline-flex; align-items: center; gap: 5px; color: var(--m-muted); font-size: 10px; }
.mobile-refresh-label b { color: var(--m-copy); font-size: 10px; font-weight: 700; }
.mobile-refresh-label svg { width: 13px; height: 13px; }
.mobile-refresh-control { display: flex; height: 29px; align-items: center; gap: 4px; padding: 0 4px 0 8px; background: var(--m-card); border: 1px solid var(--m-line); border-radius: 5px; }
.mobile-refresh-control select { width: 72px; height: 25px; padding: 0; color: var(--m-copy); background: transparent; border: 0; outline: 0; font-size: 10px; }
.mobile-icon-button { display: grid; width: 25px; height: 25px; place-items: center; padding: 0; color: #fff; background: var(--m-blue); border: 0; border-radius: 5px; }
.mobile-icon-button svg { width: 13px; height: 13px; }
.mobile-icon-button.is-hidden { display: none; }

.mobile-comment-toolbar .mobile-refresh-line { margin: 0; padding: 11px 10px 6px; }
.mobile-filter-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; background: var(--m-card); border-bottom: 1px solid var(--m-line); }
.mobile-filter-tabs button { position: relative; min-width: 0; height: 39px; padding: 0 2px; overflow: hidden; color: var(--m-copy); background: transparent; border: 0; font-size: 11px; white-space: nowrap; }
.mobile-filter-tabs button::after { position: absolute; right: 17%; bottom: -1px; left: 17%; height: 2px; content: ""; background: transparent; border-radius: 5px; }
.mobile-filter-tabs button.is-active { color: var(--m-blue); font-weight: 700; }
.mobile-filter-tabs button.is-active::after { background: var(--m-blue); }
.mobile-filter-tabs b { margin-left: 2px; color: #aeb6c0; font-size: 10px; font-weight: 500; }
.mobile-filter-tabs button.is-active b { color: var(--m-blue); }

.mobile-section-row { display: flex; min-height: 29px; align-items: center; justify-content: space-between; padding: 0 6px 7px; }
.mobile-section-row h2 { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--m-ink); font-size: 13px; font-weight: 800; }
.mobile-section-row h2 svg { width: 15px; height: 15px; color: var(--m-blue); }
.mobile-section-row > span { color: var(--m-muted); font-size: 9px; }
.mobile-link-button { display: inline-flex; align-items: center; gap: 3px; padding: 0; color: var(--m-blue); background: transparent; border: 0; font-size: 10px; }
.mobile-link-button svg { width: 13px; height: 13px; }
.mobile-comment-list { display: grid; gap: 10px; }

.mobile-comment-card { display: grid; gap: 8px; padding: 11px; background: var(--m-card); border: 1px solid #edf0f3; border-radius: 5px; box-shadow: var(--m-shadow); }
.mobile-card-head, .mobile-card-user, .mobile-card-times, .mobile-work-row { display: flex; align-items: center; }
.mobile-card-head { justify-content: space-between; min-height: 20px; }
.mobile-badge { display: inline-flex; min-height: 19px; align-items: center; padding: 0 7px; color: var(--m-blue); background: var(--m-blue-soft); border-radius: 5px; font-size: 9px; font-weight: 700; }
.mobile-badge-intent { color: #f06a28; background: var(--m-orange-soft); }
.mobile-badge-none { color: #8792a0; background: #f1f3f6; }
.mobile-badge-duplicate { color: #bd6280; background: #fff0f4; }
.mobile-status { display: inline-flex; align-items: center; color: var(--m-muted); font-size: 9px; }
.mobile-status.is-located { color: var(--m-green); }
.mobile-work-row { gap: 8px; min-width: 0; padding: 7px; background: #fafbfc; border: 1px solid #f0f2f5; border-radius: 5px; }
.mobile-work-row > div { display: grid; min-width: 0; gap: 3px; }
.mobile-work-row strong { display: -webkit-box; overflow: hidden; color: var(--m-ink); font-size: 11px; font-weight: 700; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mobile-work-row small { overflow: hidden; color: var(--m-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-cover { position: relative; display: grid; width: 42px; height: 48px; flex: 0 0 42px; place-items: center; overflow: hidden; color: #aab3bd; background: #edf0f3; border-radius: 5px; }
.mobile-cover svg { width: 15px; height: 15px; }
.mobile-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mobile-comment-copy { display: grid; gap: 4px; }
.mobile-comment-copy > span { color: var(--m-muted); font-size: 9px; }
.mobile-comment-text { margin: 0; padding: 8px 9px; color: var(--m-blue); background: #fafbfc; border-radius: 5px; font-size: 12px; line-height: 1.55; }
.mobile-card-user { gap: 7px; min-width: 0; }
.mobile-avatar { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; overflow: hidden; color: #6c7890; background: #eef1f5; border-radius: 5px; font-size: 9px; object-fit: cover; }
.mobile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mobile-user-copy { display: grid; min-width: 0; gap: 2px; }
.mobile-user-copy small { color: var(--m-muted); font-size: 9px; }
.mobile-card-user strong { min-width: 0; overflow: hidden; color: var(--m-ink); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mobile-locate-button { display: inline-flex; flex-shrink: 0; white-space: nowrap; height: 28px; align-items: center; margin-left: auto; padding: 0 9px; color: var(--m-blue); background: var(--m-blue-soft); border: 0; border-radius: 5px; font-size: 10px; font-weight: 600; }
.mobile-locate-button.is-located { color: #fff; background: var(--m-orange); }
.mobile-confirm-modal { position: fixed; z-index: 1000; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.mobile-confirm-backdrop { position: absolute; inset: 0; background: rgba(32, 42, 58, .38); }
.mobile-confirm-dialog { position: relative; width: min(100%, 540px); padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); background: var(--m-card); border-radius: 5px 5px 0 0; box-shadow: 0 -10px 35px rgba(27, 39, 56, .2); animation: mobile-sheet-up .22s ease-out both; }
@keyframes mobile-sheet-up { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
.mobile-confirm-heading { display: flex; align-items: center; gap: 9px; }
.mobile-confirm-heading > div { display: grid; min-width: 0; gap: 3px; }
.mobile-confirm-heading strong { color: var(--m-ink); font-size: 14px; font-weight: 800; }
.mobile-confirm-heading small { color: var(--m-muted); font-size: 10px; }
.mobile-confirm-preview { display: grid; gap: 5px; margin: 15px 0; padding: 10px; background: #fafbfc; border: 1px solid var(--m-line); border-radius: 5px; }
.mobile-confirm-preview b { overflow: hidden; color: var(--m-ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-confirm-preview p { margin: 0; color: var(--m-blue); font-size: 12px; line-height: 1.55; }
.mobile-confirm-preview small { overflow: hidden; color: var(--m-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-confirm-button { height: 36px; border: 0; border-radius: 5px; font-size: 11px; font-weight: 700; }
.mobile-confirm-button.is-secondary { color: var(--m-copy); background: #f1f3f6; }
.mobile-confirm-button.is-primary { color: #fff; background: var(--m-blue); }
.mobile-card-times { justify-content: space-between; gap: 8px; padding-top: 7px; border-top: 1px solid var(--m-line); }
.mobile-card-times span { display: grid; gap: 2px; color: var(--m-muted); font-size: 9px; }
.mobile-card-times b { color: var(--m-copy); font-size: 9px; font-weight: 600; }

.mobile-state { display: grid; min-height: 210px; place-items: center; align-content: center; gap: 8px; color: var(--m-muted); font-size: 11px; }
.mobile-state svg { width: 26px; height: 26px; color: #aeb8c4; }
.mobile-state svg[data-lucide="loader-circle"] { animation: mobile-spin 1.1s linear infinite; }
.mobile-state.compact { min-height: 80px; background: #fafbfc; border: 1px solid var(--m-line); border-radius: 5px; }
@keyframes mobile-spin { to { transform: rotate(360deg); } }

.mobile-hero-card, .mobile-form-card, .mobile-query-card, .mobile-query-result, .mobile-list-card { margin-bottom: 11px; background: var(--m-card); border: 1px solid #edf0f3; border-radius: 5px; box-shadow: var(--m-shadow); }
.mobile-hero-card { display: flex; min-height: 80px; align-items: center; gap: 10px; padding: 13px; }
.mobile-hero-card-blue { background: #edf4ff; border-color: #dfeaff; }
.mobile-hero-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; color: #fff; background: var(--m-blue); border-radius: 5px; }
.mobile-hero-icon svg { width: 19px; height: 19px; }
.mobile-hero-card h2 { margin: 0; color: var(--m-ink); font-size: 14px; }
.mobile-hero-card p { margin: 4px 0 0; color: var(--m-muted); font-size: 10px; }
.mobile-hero-arrow { width: 16px; height: 16px; margin-left: auto; color: #a9b4c1; }
.mobile-form-card, .mobile-query-card { padding: 14px 12px; }
.mobile-card-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.mobile-card-heading > div { display: grid; min-width: 0; gap: 3px; }
.mobile-card-heading strong { color: var(--m-ink); font-size: 14px; font-weight: 800; }
.mobile-card-heading small { color: var(--m-muted); font-size: 9px; }
.mobile-card-heading > svg { width: 18px; height: 18px; color: var(--m-blue); }
.mobile-card-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 5px; }
.mobile-card-icon-blue { color: var(--m-blue); background: var(--m-blue-soft); }
.mobile-card-icon svg { width: 16px; height: 16px; }
.mobile-field-label { display: block; margin-bottom: 7px; color: var(--m-ink); font-size: 11px; font-weight: 700; }
.mobile-field-label em { color: var(--m-red); font-style: normal; }
.mobile-form-card textarea { display: block; width: 100%; min-height: 104px; resize: vertical; padding: 10px; color: var(--m-copy); background: #fafbfc; border: 1px solid var(--m-line); border-radius: 5px; outline: 0; font-size: 11px; line-height: 1.6; }
.mobile-form-card textarea:focus, .mobile-input-wrap:focus-within { border-color: #9ebcff; box-shadow: 0 0 0 3px rgba(35, 105, 245, .09); }
.mobile-form-card textarea::placeholder, .mobile-input-wrap input::placeholder { color: #b0b8c2; }
.mobile-quick-add-button { display: inline-flex; width: 100%; height: 36px; align-items: center; justify-content: center; gap: 5px; margin-top: 8px; color: var(--m-blue); background: var(--m-blue-soft); border: 1px solid #d9e6ff; border-radius: 5px; font-size: 11px; font-weight: 700; }
.mobile-quick-add-button:hover { background: #e1ecff; }
.mobile-quick-add-button svg { width: 15px; height: 15px; }
.mobile-quick-add-button.is-loading svg { animation: mobile-spin 1s linear infinite; }
.mobile-quick-add-hint { margin: 5px 0 13px; color: var(--m-muted); font-size: 9px; line-height: 1.5; text-align: center; }
.mobile-field-hint { display: flex; align-items: flex-start; gap: 4px; margin: 7px 0 14px; color: var(--m-muted); font-size: 9px; line-height: 1.5; }
.mobile-field-hint svg { width: 12px; height: 12px; flex: 0 0 auto; color: var(--m-blue); }
.mobile-field-pair { display: flex; align-items: center; justify-content: space-between; }
.mobile-field-pair > span { color: var(--m-muted); font-size: 9px; }
.mobile-select-wrap { display: flex; height: 39px; align-items: center; gap: 7px; padding: 0 9px; margin-bottom: 13px; color: var(--m-blue); background: #fafbfc; border: 1px solid var(--m-line); border-radius: 5px; }
.mobile-select-wrap select { min-width: 0; flex: 1; color: var(--m-copy); background: transparent; border: 0; outline: 0; font-size: 11px; }
.mobile-select-wrap svg:last-child { width: 13px; color: var(--m-muted); }
.mobile-policy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 9px; margin-bottom: 13px; background: #fafbfc; border-radius: 5px; }
.mobile-policy-row > div { display: grid; gap: 3px; padding: 2px 4px; }
.mobile-policy-row span { color: var(--m-muted); font-size: 9px; }
.mobile-policy-row b { color: var(--m-blue); font-size: 12px; font-weight: 800; }
.mobile-primary-button { display: inline-flex; width: 100%; height: 40px; align-items: center; justify-content: center; gap: 5px; color: #fff; background: var(--m-blue); border: 0; border-radius: 5px; box-shadow: 0 5px 10px rgba(35, 105, 245, .16); font-size: 11px; font-weight: 700; }
.mobile-primary-button:hover { background: #1658da; }
.mobile-primary-button svg { width: 15px; height: 15px; }
.mobile-primary-button.is-loading svg { animation: mobile-spin 1s linear infinite; }
.mobile-form-status { min-height: 15px; margin: 7px 0 0; color: var(--m-muted); font-size: 9px; line-height: 1.5; }
.mobile-form-status.is-success { color: var(--m-green); }
.mobile-form-status.is-error { color: var(--m-red); }
.mobile-form-status.is-loading-text { color: var(--m-blue); }
.mobile-input-wrap button.is-loading svg, .mobile-play-pending svg { animation: mobile-spin 1s linear infinite; }

.mobile-list-card { padding: 12px; }
.mobile-works-heading { padding-top: 2px; }
.mobile-work-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 11px; }
.mobile-work-stat { display: flex; min-height: 62px; align-items: center; gap: 8px; padding: 9px; background: var(--m-card); border: 1px solid #edf0f3; border-radius: 5px; box-shadow: var(--m-shadow); }
.mobile-work-stat-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 5px; }
.mobile-work-stat-icon svg { width: 15px; height: 15px; }
.mobile-work-stat-icon.is-blue { color: var(--m-blue); background: var(--m-blue-soft); }
.mobile-work-stat-icon.is-red { color: var(--m-red); background: var(--m-red-soft); }
.mobile-work-stat-icon.is-orange { color: #d98200; background: var(--m-orange-soft); }
.mobile-work-stat-icon.is-green { color: var(--m-green); background: #e6f8f1; }
.mobile-work-stat div { display: grid; gap: 3px; }
.mobile-work-stat small { color: var(--m-muted); font-size: 9px; }
.mobile-work-stat strong { color: var(--m-ink); font-size: 17px; line-height: 1; }
.mobile-work-list { display: grid; gap: 8px; }
.mobile-monitor-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 0 4px; }
.mobile-monitor-tabs::-webkit-scrollbar { display: none; }
.mobile-monitor-tabs button { flex: 0 0 auto; min-height: 29px; padding: 0 9px; color: var(--m-muted); background: var(--m-card); border: 1px solid #e7ebf0; border-radius: 6px; font: inherit; font-size: 10px; font-weight: 600; }
.mobile-monitor-tabs button.is-active { color: var(--m-blue); background: var(--m-blue-soft); border-color: #cfe0ff; }
.mobile-monitor-tabs b { margin-left: 2px; font-size: 9px; }
.mobile-monitor-note { margin: -3px 0 1px; color: var(--m-muted); font-size: 9px; }
.mobile-monitor-error { padding: 8px 10px; color: var(--m-red); background: var(--m-red-soft); border-radius: 6px; font-size: 10px; }
.mobile-monitor-pagination { display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 10px; color: var(--m-muted); }
.mobile-monitor-pagination[hidden] { display: none; }
.mobile-monitor-pagination button { padding: 8px 12px; color: var(--m-blue); background: var(--m-card); border: 1px solid var(--m-line); font: inherit; }
.mobile-monitor-pagination button:disabled { opacity: .4; }
.mobile-comment-total { display: inline-block; padding: 2px 5px; color: var(--m-blue); background: var(--m-blue-soft); }
#mobile-works-refresh.is-loading svg { animation: mobile-spin 1s linear infinite; }
.mobile-client-card { padding: 10px; background: var(--m-card); border: 1px solid #edf0f3; border-radius: 6px; box-shadow: var(--m-shadow); }
.mobile-client-card-head { display: flex; min-width: 0; align-items: center; gap: 8px; }
.mobile-client-avatar { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; color: var(--m-blue); background: var(--m-blue-soft); border-radius: 8px; }
.mobile-client-avatar svg { width: 16px; height: 16px; }
.mobile-client-card-head > div { display: grid; min-width: 0; flex: 1; gap: 2px; }
.mobile-client-card-head strong { overflow: hidden; color: var(--m-ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-client-card-head small { overflow: hidden; color: var(--m-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-client-status { padding: 3px 6px; border-radius: 5px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.mobile-client-status.is-online { color: var(--m-green); background: #e6f8f1; }
.mobile-client-status.is-offline { color: var(--m-muted); background: #f0f2f5; }
.mobile-client-card-body { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #f0f2f5; }
.mobile-client-card-body div { display: grid; min-width: 0; gap: 2px; }
.mobile-client-card-body span { color: var(--m-muted); font-size: 9px; }
.mobile-client-card-body b { color: var(--m-ink); font-size: 10px; overflow-wrap: anywhere; }
.mobile-client-summary { padding: 8px 10px; color: var(--m-muted); background: var(--m-card); border: 1px solid #edf0f3; border-radius: 6px; font-size: 10px; }
.mobile-work-card { display: flex; min-height: 78px; align-items: center; gap: 7px; padding: 9px; background: var(--m-card); border: 1px solid #edf0f3; border-radius: 5px; box-shadow: var(--m-shadow); }
.mobile-work-card-main { display: flex; min-width: 0; flex: 1; align-items: center; gap: 8px; }
.mobile-work-cover { position: relative; display: grid; width: 47px; height: 57px; flex: 0 0 47px; place-items: center; overflow: hidden; color: #aab3bd; background: #edf0f3; border-radius: 5px; }
.mobile-work-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mobile-work-cover svg { width: 17px; height: 17px; }
.mobile-work-card-copy { display: grid; min-width: 0; gap: 3px; }
.mobile-work-card-copy strong { display: -webkit-box; overflow: hidden; color: var(--m-ink); font-size: 11px; font-weight: 700; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mobile-work-card-copy small, .mobile-work-card-meta { overflow: hidden; color: var(--m-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-work-card-side { display: grid; min-width: 55px; justify-items: end; gap: 5px; }
.mobile-work-status { display: inline-flex; align-items: center; min-height: 20px; padding: 0 6px; border-radius: 5px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.mobile-work-status.is-collecting { color: var(--m-blue); background: var(--m-blue-soft); }
.mobile-work-status.is-cooldown { color: #bd7800; background: var(--m-orange-soft); }
.mobile-work-status.is-queued { color: var(--m-green); background: #e6f8f1; }
.mobile-work-status.is-invalid { color: var(--m-red); background: var(--m-red-soft); }
.mobile-work-card-side small { color: var(--m-muted); font-size: 8px; white-space: nowrap; }
.mobile-recent-works { display: grid; gap: 7px; }
.mobile-work-item { display: flex; min-height: 57px; align-items: center; gap: 8px; padding: 7px; background: #fafbfc; border: 1px solid #f0f2f5; border-radius: 5px; }
.mobile-work-item > div { display: grid; min-width: 0; flex: 1; gap: 3px; }
.mobile-work-item strong { overflow: hidden; color: var(--m-ink); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mobile-work-item small { overflow: hidden; color: var(--m-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-level-chip { padding: 4px 6px; color: var(--m-blue); background: var(--m-blue-soft); border-radius: 5px; font-size: 9px; font-weight: 700; }

.mobile-query-card { padding-bottom: 12px; }
.mobile-input-wrap { display: flex; height: 42px; align-items: center; gap: 7px; padding-left: 10px; background: #fafbfc; border: 1px solid var(--m-line); border-radius: 5px; }
.mobile-input-wrap > svg { color: var(--m-blue); }
.mobile-input-wrap input { min-width: 0; flex: 1; color: var(--m-copy); background: transparent; border: 0; outline: 0; font-size: 11px; }
.mobile-input-wrap button { display: grid; width: 33px; height: 33px; margin-right: 4px; place-items: center; color: #fff; background: var(--m-blue); border: 0; border-radius: 5px; }
.mobile-input-wrap button svg { width: 15px; height: 15px; }
.mobile-query-result { min-height: 155px; padding: 12px; }
.mobile-result-label { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.mobile-result-label strong { color: var(--m-ink); font-size: 13px; font-weight: 800; }
.mobile-result-label small { margin-left: auto; color: var(--m-muted); font-size: 9px; }
.mobile-result-label .mobile-heading-dot { width: 6px; height: 6px; background: var(--m-blue); border-radius: 5px; }
.mobile-profile { display: flex; align-items: center; gap: 9px; padding-bottom: 11px; border-bottom: 1px solid var(--m-line); }
.mobile-profile-avatar { display: block; width: 44px; height: 44px; flex: 0 0 44px; border: 2px solid #e8eefb; border-radius: 5px; object-fit: cover; background: #eef1f5; }
.mobile-profile h2 { margin: 0; color: var(--m-ink); font-size: 14px; font-weight: 800; }
.mobile-profile p { max-width: 240px; margin: 4px 0 0; overflow: hidden; color: var(--m-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 15px; padding-top: 11px; }
.mobile-result-grid span { display: block; margin-bottom: 3px; color: var(--m-muted); font-size: 9px; }
.mobile-result-grid b { display: block; overflow: hidden; color: var(--m-ink); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mobile-result-grid .full { grid-column: 1 / -1; }
.mobile-secuid { padding: 7px 8px; color: var(--m-blue) !important; background: var(--m-blue-soft); border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px !important; }
.mobile-query-history { display: grid; gap: 0; }
.mobile-history-item { display: flex; width: 100%; min-height: 52px; align-items: center; gap: 8px; padding: 7px 1px; color: inherit; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--m-line); }
.mobile-history-item:last-child { border-bottom: 0; }
.mobile-history-item img, .mobile-history-fallback { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 5px; object-fit: cover; }
.mobile-history-fallback { display: grid; place-items: center; color: #fff; background: var(--m-blue); font-size: 11px; }
.mobile-history-item > div { display: grid; min-width: 0; flex: 1; gap: 2px; }
.mobile-history-item strong { overflow: hidden; color: var(--m-ink); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mobile-history-item small { overflow: hidden; color: var(--m-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-history-item time { color: var(--m-muted); font-size: 8px; white-space: nowrap; }
.mobile-history-item > svg { width: 13px; height: 13px; color: #b1bac5; }
.mobile-history-tags { display: flex; min-width: 0; flex-wrap: wrap; gap: 3px; }
.mobile-history-tag { display: inline-flex; max-width: 100%; align-items: center; padding: 3px 5px; overflow: hidden; border-radius: 5px; font-size: 8px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.mobile-history-tag.is-blue { color: #3a78df; background: #edf4ff; }
.mobile-history-tag.is-purple { color: #7656d9; background: #f2efff; }
.mobile-history-tag.is-green { color: #1b9d78; background: #eafaf4; }

.mobile-page-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 -10px 11px; background: var(--m-card); border-top: 1px solid var(--m-line); border-bottom: 1px solid var(--m-line); }
.mobile-query-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-right: -10px; margin-left: -10px; }
.mobile-page-tabs button { position: relative; min-width: 0; height: 42px; padding: 0 3px; overflow: hidden; color: var(--m-copy); background: transparent; border: 0; font-size: 11px; white-space: nowrap; }
.mobile-page-tabs button::after { position: absolute; right: 18%; bottom: -1px; left: 18%; height: 2px; content: ""; background: transparent; border-radius: 5px; }
.mobile-page-tabs button.is-active { color: var(--m-blue); font-weight: 800; }
.mobile-page-tabs button.is-active::after { background: var(--m-blue); }
.mobile-add-tabs { margin-top: 0; }

/* Add/work tabs switch immediately without the page-entry transition. */
#mobile-view-add, #mobile-view-works { animation: none; }

.mobile-auth-list { display: grid; gap: 8px; }
.mobile-auth-result { display: flex; min-height: 57px; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border: 1px solid var(--m-line); border-radius: 5px; background: #fafbfc; }
.mobile-auth-result > div { display: grid; min-width: 0; gap: 3px; }
.mobile-auth-result strong { color: var(--m-ink); font-size: 12px; }
.mobile-auth-result small { color: var(--m-muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-auth-result b { flex: 0 0 auto; padding: 4px 7px; border-radius: 5px; color: var(--m-red); background: var(--m-red-soft); font-size: 9px; }
.mobile-auth-result.is-supported b { color: var(--m-green); background: #eafaf4; }

.mobile-query-value-blue { color: var(--m-blue) !important; }
.mobile-play-list { display: grid; gap: 8px; }
.mobile-play-card { padding: 9px; background: #fafbfc; border: 1px solid var(--m-line); border-radius: 5px; }
.mobile-play-main { display: flex; min-width: 0; align-items: flex-start; gap: 9px; }
.mobile-play-cover { position: relative; display: grid; width: 56px; height: 70px; flex: 0 0 56px; place-items: center; overflow: hidden; color: #aab3bd; background: #edf0f3; border-radius: 5px; object-fit: cover; }
img.mobile-play-cover { object-fit: cover; }
.mobile-play-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mobile-play-main > div { display: grid; min-width: 0; flex: 1; gap: 3px; }
.mobile-play-main strong { overflow: hidden; color: var(--m-ink); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.mobile-play-main small { overflow: hidden; color: var(--m-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-play-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding-top: 5px; margin-top: 2px; border-top: 1px solid var(--m-line); }
.mobile-play-metrics span { display: grid; gap: 1px; color: var(--m-muted); font-size: 8px; }
.mobile-play-metrics b { color: var(--m-ink); font-size: 10px; font-weight: 800; }
.mobile-play-pending { display: inline-flex; align-items: center; gap: 4px; padding-top: 5px; color: var(--m-blue); font-size: 9px; }
.mobile-play-pending svg { width: 12px; height: 12px; }
.mobile-play-error { display: inline-flex; align-items: center; max-width: 100%; padding-top: 5px; overflow: hidden; color: var(--m-red); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.mobile-bottom-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: calc(62px + env(safe-area-inset-bottom)); padding: 6px 20px env(safe-area-inset-bottom); background: rgba(255,255,255,.98); border-top: 1px solid #e9edf2; box-shadow: 0 -2px 9px rgba(43, 55, 70, .05); }
.mobile-bottom-nav button { display: grid; min-width: 0; place-items: center; align-content: center; gap: 3px; padding: 0; color: #9ba6b5; background: transparent; border: 0; font-size: 9px; }
.mobile-bottom-nav button.is-active { color: var(--m-ink); font-weight: 700; }
.mobile-bottom-nav button svg { width: 18px; height: 18px; }
.mobile-toast-region { position: fixed; z-index: 60; right: 11px; bottom: calc(73px + env(safe-area-inset-bottom)); left: 11px; display: grid; gap: 6px; pointer-events: none; }
.mobile-toast { display: flex; align-items: center; gap: 7px; padding: 9px 10px; color: var(--m-copy); background: rgba(255,255,255,.98); border: 1px solid var(--m-line); border-radius: 5px; box-shadow: 0 6px 18px rgba(36, 48, 65, .12); font-size: 10px; opacity: 0; transform: translateY(6px); animation: mobile-toast-in .2s ease-out forwards; }
.mobile-toast.is-error { color: var(--m-red); }
.mobile-toast svg { width: 14px; height: 14px; color: var(--m-green); }
.mobile-toast.is-error svg { color: var(--m-red); }
@keyframes mobile-toast-in { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 359px) {
  .mobile-page-content { padding-right: 8px; padding-left: 8px; }
  .mobile-appbar { padding-right: 11px; padding-left: 11px; }
  .mobile-comment-toolbar { margin-right: -8px; margin-left: -8px; }
  .mobile-filter-tabs button { font-size: 10px; }
}

@media (min-width: 721px) {
  .mobile-body { padding-bottom: 0; background: #e7eaf0; }
  .mobile-shell { max-width: 430px; min-height: calc(100vh - 30px); margin: 15px auto; border: 1px solid #dce1e9; border-radius: 5px; box-shadow: 0 15px 45px rgba(43, 55, 72, .13); }
  .mobile-bottom-nav { position: sticky; width: 100%; max-width: 430px; margin: 0 auto; border-right: 1px solid #e4e8ee; border-left: 1px solid #e4e8ee; border-radius: 5px; }
}

/* Mobile UI uses one compact corner radius across cards, controls and navigation. */
[class*="mobile-"] { border-radius: 5px; }

