:root {
  --blue: #2878ff;
  --blue-soft: #edf5ff;
  --purple: #8a5bff;
  --ink: #263244;
  --muted: #8893a5;
  --line: #e8ebf0;
  --panel: #ffffff;
  --canvas: #f7f9fc;
  --green: #16b877;
  --danger: #f25f64;
}

/* AI main-image generation */
.ai-image-workspace { min-width: 0; background: #f4f7fb; }
.ai-image-model-badge { align-self: center; margin-left: auto; padding: 7px 12px; color: #1765e8; background: #edf4ff; border: 1px solid #cfe0ff; border-radius: 999px; font-size: 12px; font-weight: 800; }
.ai-image-info-strip p { min-width: 0; }
.ai-image-layout { display: grid; grid-template-columns: minmax(330px, 430px) minmax(0, 1fr); gap: 18px; padding: 20px; }
.ai-image-card { min-width: 0; background: #fff; border: 1px solid #dfe7f2; border-radius: 14px; box-shadow: 0 8px 28px rgba(41,64,101,.07); }
.ai-image-card > header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #e8edf5; }
.ai-image-card > header > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.ai-image-card h1, .ai-image-card h2 { margin: 0; color: #20314c; font-size: 20px; }
.ai-image-step { width: 29px; height: 29px; display: grid; flex: 0 0 29px; place-items: center; color: #fff; background: linear-gradient(135deg, #2d82ff, #1765e8); border-radius: 9px; font-size: 14px; font-weight: 800; }
.ai-image-config-state { padding: 6px 9px; border-radius: 7px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.ai-image-config-state.checking { color: #6b7688; background: #f1f4f8; }
.ai-image-config-state.ready { color: #13834f; background: #e9f8f0; }
.ai-image-config-state.missing { color: #b63c45; background: #fff0f1; }
.ai-image-settings-card { align-self: start; overflow: hidden; }
.ai-api-settings { margin: 18px; padding: 13px; background: #f7faff; border: 1px solid #dce6f5; border-radius: 10px; }
.ai-api-settings > label { display: block; margin-bottom: 8px; color: #263953; font-size: 14px; font-weight: 750; }
.ai-retention-settings { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 18px; background: #f7faff; }
.ai-retention-settings label { display: flex; align-items: center; gap: 10px; }
.ai-retention-settings input { width: 90px; padding: 8px; border: 1px solid #d8e1ed; border-radius: 7px; }
.ai-retention-settings button { padding: 8px 12px; }
.ai-retention-notice { margin: 0; padding: 10px 18px; color: #748399; font-size: 12px; }
.ai-api-settings > input:not(#aiImageApiKey), .ai-api-settings > select { width: 100%; min-width: 0; height: 42px; padding: 0 11px; margin-bottom: 12px; color: #263953; background: #fff; border: 1px solid #d8e1ed; border-radius: 8px; font: inherit; }
.ai-api-settings > input:disabled, .ai-api-settings > select:disabled { background: #eef2f6; }
.ai-api-actions { flex-wrap: wrap; }
.ai-api-settings #aiImageApiKey { width: 100%; min-width: 0; height: 42px; padding: 0 45px 0 11px; color: #263953; background: #fff; border: 1px solid #d8e1ed; border-radius: 8px; font: inherit; }
.ai-api-settings #aiImageApiKey:focus { outline: 2px solid #bfd7ff; border-color: #2878ff; }
.ai-api-settings #aiImageApiKey:disabled { background: #eef2f6; cursor: not-allowed; }
.ai-api-actions { display: flex; gap: 8px; margin-top: 9px; }
.ai-api-actions button { min-height: 36px; flex: 1; padding: 6px 10px; border: 1px solid #cfe0ff; border-radius: 7px; color: #fff; background: #2878ff; font-weight: 750; }
.ai-api-actions button:last-child { color: #b63c45; background: #fff; border-color: #efcbd0; }
.ai-api-actions button:disabled { color: #98a4b3; background: #edf1f5; border-color: #dce2ea; cursor: not-allowed; }
.ai-api-settings > p { margin: 9px 0 0; color: #748399; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.ai-api-settings > p.warning { color: #b23a45; }
.ai-reference-block, .ai-prompt-field, .ai-image-options, .ai-image-generate-button, .ai-image-progress, .ai-task-queue, .ai-image-error { margin-left: 18px; margin-right: 18px; }
.ai-reference-block { margin-top: 18px; }
.ai-reference-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; color: #253854; font-size: 14px; }
.ai-reference-heading span { color: #8290a4; font-size: 12px; }
.ai-reference-drop { width: 100%; min-height: 150px; display: block; padding: 0; overflow: hidden; color: #52647e; background: #f7faff; border: 1.5px dashed #bfd1eb; border-radius: 11px; cursor: pointer; }
.ai-reference-drop:hover, .ai-reference-drop.dragging { color: #1765e8; background: #edf5ff; border-color: #2878ff; }
.ai-reference-empty { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.ai-reference-empty i { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 3px; color: #2878ff; background: #e8f1ff; border-radius: 50%; font-size: 27px; font-style: normal; font-weight: 400; }
.ai-reference-empty strong { color: #263953; font-size: 15px; }
.ai-reference-empty small { color: #8491a3; font-size: 12px; }
.ai-reference-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.ai-reference-file { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) 26px; align-items: center; gap: 8px; padding: 7px; background: #f7f9fc; border: 1px solid #e1e7f0; border-radius: 8px; }
.ai-reference-file img { width: 48px; height: 48px; display: block; object-fit: contain; background-color: #eef1f5; border-radius: 6px; }
.ai-reference-file > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ai-reference-file strong { overflow: hidden; color: #2c3d56; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ai-reference-file small { color: #8190a4; font-size: 10px; }
.ai-reference-file button { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; color: #a84850; background: #fff; border: 1px solid #edcbd0; border-radius: 50%; font-size: 16px; }
.ai-reference-preview { min-height: 150px; display: grid; grid-template-columns: 136px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px; text-align: left; }
.ai-reference-preview img { width: 136px; height: 136px; display: block; object-fit: contain; background-color: #f5f6f8; background-image: linear-gradient(45deg,#e5e8ed 25%,transparent 25%),linear-gradient(-45deg,#e5e8ed 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e5e8ed 75%),linear-gradient(-45deg,transparent 75%,#e5e8ed 75%); background-size: 18px 18px; background-position: 0 0,0 9px,9px -9px,-9px 0; border-radius: 8px; }
.ai-reference-preview > span { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.ai-reference-preview strong { overflow: hidden; color: #233650; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ai-reference-preview small { color: #77859a; font-size: 12px; line-height: 1.5; }
.ai-reference-remove { margin-top: 8px; padding: 6px 9px; color: #b63c45; background: #fff; border: 1px solid #efcbd0; border-radius: 7px; font-size: 12px; }
.ai-prompt-field { display: block; margin-top: 18px; }
.ai-prompt-field > span { display: flex; justify-content: space-between; margin-bottom: 8px; color: #263953; font-size: 14px; }
.ai-prompt-field small { color: #8b97a8; font-weight: 500; }
.ai-prompt-field textarea { width: 100%; min-height: 156px; padding: 12px 13px; resize: vertical; color: #243650; background: #fff; border: 1px solid #d8e1ed; border-radius: 9px; font: inherit; line-height: 1.65; outline: 0; }
.ai-prompt-field textarea:focus { border-color: #2878ff; box-shadow: 0 0 0 3px rgba(40,120,255,.11); }
.ai-image-options { display: grid; grid-template-columns: 1.5fr 1fr; gap: 9px; margin-top: 14px; }
.ai-image-options label { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: #5d6b7f; font-size: 12px; font-weight: 700; }
.ai-image-options select { width: 100%; min-width: 0; height: 42px; padding: 0 9px; color: #263953; background: #fff; border: 1px solid #d8e1ed; border-radius: 8px; font-size: 13px; }
.ai-image-generate-button { width: calc(100% - 36px); min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, #3388ff, #1765e8); border: 0; border-radius: 10px; box-shadow: 0 8px 20px rgba(40,120,255,.25); cursor: pointer; }
.ai-image-generate-button span { font-size: 16px; font-weight: 800; }
.ai-image-generate-button small { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.4); font-size: 11px; }
.ai-image-generate-button:hover:not(:disabled) { background: linear-gradient(135deg, #247afa, #0f58cc); }
.ai-image-generate-button:disabled { color: #98a4b3; background: #e8edf3; box-shadow: none; cursor: not-allowed; }
.ai-image-progress { display: flex; align-items: center; gap: 12px; margin-top: -5px; margin-bottom: 16px; padding: 12px; color: #275ea9; background: #edf5ff; border-radius: 9px; }
.ai-image-progress > span { width: 24px; height: 24px; flex: 0 0 24px; border: 3px solid #bdd6fa; border-top-color: #2878ff; border-radius: 50%; animation: ai-image-spin .8s linear infinite; }
.ai-image-progress div { display: flex; flex-direction: column; gap: 3px; }
.ai-image-progress strong { font-size: 13px; }
.ai-image-progress small { color: #6680a4; font-size: 11px; line-height: 1.4; }
@keyframes ai-image-spin { to { transform: rotate(360deg); } }
.ai-task-queue { margin-top: -5px; margin-bottom: 16px; overflow: hidden; border: 1px solid #dce5f0; border-radius: 9px; }
.ai-task-queue > header { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; background: #f6f8fb; border-bottom: 1px solid #e4eaf2; }
.ai-task-queue > header strong { color: #344963; font-size: 12px; }
.ai-task-queue > header span { color: #7a899d; font-size: 10px; }
.ai-task-queue > div { max-height: 220px; overflow: auto; }
.ai-queue-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 9px 10px; border-bottom: 1px solid #edf0f5; }
.ai-queue-item:last-child { border-bottom: 0; }
.ai-queue-item > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ai-queue-item strong { overflow: hidden; color: #34465e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ai-queue-item small { color: #8995a5; font-size: 10px; }
.ai-queue-status { align-self: center; padding: 4px 7px; color: #65758b; background: #eef2f6; border-radius: 999px; font-size: 10px; font-weight: 750; }
.ai-queue-item.running .ai-queue-status { color: #1765e8; background: #eaf3ff; }
.ai-queue-item.success .ai-queue-status { color: #13834f; background: #e9f8f0; }
.ai-queue-item.failed .ai-queue-status { color: #b63c45; background: #fff0f1; }
.ai-image-error { margin-top: -5px; margin-bottom: 16px; padding: 10px 12px; color: #b23a45; background: #fff0f1; border: 1px solid #f2cbd0; border-radius: 8px; font-size: 12px; line-height: 1.55; }
.ai-image-results-card { min-height: 640px; overflow: hidden; }
.ai-image-results-card > header > div:first-child { flex-wrap: wrap; }
.ai-image-results-card > header > div:first-child small { width: 100%; margin-left: 39px; margin-top: -8px; color: #7e8b9f; }
.ai-image-results-card > header > div:last-child { display: flex; gap: 8px; }
.ai-image-results-card > header button { min-height: 36px; padding: 0 12px; color: #496079; background: #fff; border: 1px solid #d9e2ee; border-radius: 8px; font-weight: 700; }
.ai-image-results-card > header button:last-child { color: #1765e8; background: #edf5ff; border-color: #cfe0ff; }
.ai-image-results-card > header button:disabled { color: #a5afbc; background: #f1f3f6; border-color: #e4e8ed; }
.ai-image-empty { min-height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #7b889a; }
.ai-image-empty > span { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 8px; color: #2878ff; background: linear-gradient(145deg,#edf5ff,#dbeaff); border-radius: 22px; font-size: 24px; font-weight: 900; }
.ai-image-empty strong { color: #43546c; font-size: 17px; }
.ai-image-empty small { font-size: 12px; }
.ai-image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; padding: 16px; }
.ai-image-result-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #dde5ef; border-radius: 11px; box-shadow: 0 5px 16px rgba(35,56,88,.05); }
.ai-image-result-preview { width: 100%; aspect-ratio: 1 / 1; display: block; padding: 0; overflow: hidden; background: #f1f3f6; border: 0; cursor: zoom-in; }
.ai-image-result-preview img { width: 100%; height: 100%; display: block; object-fit: contain; transition: transform .2s ease; }
.ai-image-result-preview:hover img { transform: scale(1.025); }
.ai-image-result-body { display: flex; flex-direction: column; gap: 5px; padding: 10px 11px; }
.ai-image-result-body strong { overflow: hidden; color: #283a54; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ai-image-result-body span { color: #7c899b; font-size: 11px; }
.ai-image-result-body p { height: 34px; display: -webkit-box; margin: 2px 0 0; overflow: hidden; color: #586980; font-size: 11px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ai-image-result-card > footer { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 0 10px 10px; }
.ai-image-result-card > footer a, .ai-image-result-card > footer button { min-height: 35px; display: grid; place-items: center; color: #1765e8; background: #edf5ff; border: 1px solid #cfe0ff; border-radius: 7px; font-size: 12px; font-weight: 750; text-decoration: none; }
.ai-image-result-card > footer button { color: #b64049; background: #fff; border-color: #edcbd0; }
.ai-image-preview { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 24px; }
.ai-image-preview-backdrop { position: absolute; inset: 0; background: rgba(20,31,48,.72); border: 0; }
.ai-image-preview > article { width: min(920px, calc(100vw - 48px)); height: min(900px, calc(100vh - 48px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; position: relative; overflow: hidden; background: #fff; border-radius: 15px; box-shadow: 0 28px 80px rgba(0,0,0,.32); }
.ai-image-preview article > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #e3e9f1; }
.ai-image-preview article > header div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ai-image-preview article > header strong { overflow: hidden; color: #24364f; text-overflow: ellipsis; white-space: nowrap; }
.ai-image-preview article > header span { color: #7d8a9d; font-size: 12px; }
.ai-image-preview article > header button { width: 36px; height: 36px; color: #506079; background: #f3f6f9; border: 0; border-radius: 50%; font-size: 23px; }
.ai-image-preview article > div { min-height: 0; display: grid; place-items: center; overflow: hidden; background: #eef1f5; }
.ai-image-preview article > div img { width: 100%; height: 100%; display: block; object-fit: contain; }
.ai-image-preview article > footer { display: flex; align-items: center; gap: 16px; padding: 13px 16px; border-top: 1px solid #e3e9f1; }
.ai-image-preview article > footer p { min-width: 0; flex: 1; margin: 0; overflow: hidden; color: #55667d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ai-image-preview article > footer a { flex: 0 0 auto; padding: 10px 18px; color: #fff; background: #2878ff; border-radius: 8px; font-weight: 800; text-decoration: none; }
body.ai-image-preview-open { overflow: hidden; }

@media (max-width: 1260px) {
  .ai-image-layout { grid-template-columns: 380px minmax(0, 1fr); }
  .ai-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-image-options { grid-template-columns: 1fr 1fr; }
  .ai-image-options label:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .ai-image-layout { grid-template-columns: 1fr; padding: 12px; }
  .ai-image-results-card { min-height: 420px; }
  .ai-image-empty { min-height: 320px; }
}

@media (max-width: 600px) {
  .ai-image-model-badge { display: none; }
  .ai-api-settings { margin: 13px; }
  .ai-image-layout { gap: 12px; padding: 9px; }
  .ai-image-card > header { align-items: flex-start; padding: 13px; }
  .ai-image-card h1, .ai-image-card h2 { font-size: 18px; }
  .ai-reference-block, .ai-prompt-field, .ai-image-options, .ai-image-generate-button, .ai-image-progress, .ai-task-queue, .ai-image-error { margin-left: 13px; margin-right: 13px; }
  .ai-reference-heading { flex-direction: column; }
  .ai-reference-files { grid-template-columns: 1fr; }
  .ai-reference-preview { grid-template-columns: 100px minmax(0, 1fr); }
  .ai-reference-preview img { width: 100px; height: 100px; }
  .ai-image-options { grid-template-columns: 1fr; }
  .ai-image-options label:first-child { grid-column: auto; }
  .ai-image-generate-button { width: calc(100% - 26px); }
  .ai-image-results-card > header { flex-direction: column; }
  .ai-image-results-card > header > div:last-child { width: 100%; }
  .ai-image-results-card > header > div:last-child button { flex: 1; }
  .ai-image-grid { grid-template-columns: 1fr; padding: 10px; }
  .ai-image-preview { padding: 8px; }
  .ai-image-preview > article { width: calc(100vw - 16px); height: calc(100vh - 16px); }
  .ai-image-preview article > footer p { display: none; }
  .ai-image-preview article > footer a { width: 100%; text-align: center; }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden; color: var(--ink); background: var(--canvas);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

body.auth-pending > :not(.auth-gate):not(.site-filing-footer):not(script),
body.auth-locked > :not(.auth-gate):not(.site-filing-footer):not(script) { display: none !important; }
.site-filing-footer { min-height: 32px; width: 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: center; padding: 7px 12px calc(7px + env(safe-area-inset-bottom, 0px)); background: #f8fafc; border-top: 1px solid #e5eaf1; font-size: 12px; line-height: 18px; }
.site-filing-footer a { color: #7b8797; text-decoration: none; }
.site-filing-footer .public-security-filing { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.site-filing-footer .public-security-filing img { display: block; flex: 0 0 auto; object-fit: contain; }
.site-filing-footer a:hover { color: var(--blue); text-decoration: underline; }
.site-filing-footer a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
body.auth-ready .auth-gate { display: none !important; }
body.auth-pending, body.auth-locked { overflow: auto; }
.auth-gate { width: 100%; min-height: calc(100% - 33px - env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; padding: 28px 16px; overflow: auto; background: radial-gradient(circle at 50% 0,#edf5ff 0,#f7f9fc 38%,#f2f5fa 100%); }
.auth-card { width: min(430px,100%); padding: 34px; background: #fff; border: 1px solid #e0e7f1; border-radius: 18px; box-shadow: 0 24px 70px rgba(35,59,96,.13); }
.auth-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 30px; }
.auth-brand .brand-logo { width: 54px; height: 54px; flex: none; }
.auth-brand strong,.auth-brand small { display: block; }
.auth-brand strong { font-size: 27px; letter-spacing: .06em; }
.auth-brand small { margin-top: 6px; color: #7c889a; font-size: 12px; }
.auth-card h1 { margin: 0; color: #26354a; font-size: 25px; }
.auth-card > p { margin: 9px 0 24px; color: #7b8798; line-height: 1.65; }
.auth-card form { display: grid; gap: 15px; }
.auth-card label { display: grid; gap: 7px; color: #4f5e73; font-size: 13px; font-weight: 700; }
.auth-card input { width: 100%; height: 47px; padding: 0 13px; color: #26354a; background: #fbfcfe; border: 1px solid #d9e1ec; border-radius: 9px; outline: 0; }
.auth-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40,120,255,.09); }
.auth-card form button,.auth-card > button { min-height: 45px; color: #fff; background: var(--blue); border: 0; border-radius: 9px; font-weight: 800; }
.auth-card button:disabled { opacity: .58; cursor: wait; }
.auth-card .auth-secondary { width: 100%; color: var(--blue); background: #edf4ff; border: 1px solid #d2e2ff; }
.auth-state-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 20px; color: var(--blue); background: #edf4ff; border-radius: 50%; font-size: 28px; }
.auth-card:not(#loginCard) { text-align: center; }
.auth-card:not(#loginCard) form { text-align: left; }
.auth-message { margin-top: 15px; padding: 11px 13px; color: #bb3f46; background: #fff0f1; border: 1px solid #f4cdd0; border-radius: 8px; font-size: 13px; line-height: 1.55; }
.account-menu { display: flex; align-items: center; gap: 8px; }
.account-menu span { max-width: 110px; overflow: hidden; color: #536176; font-size: 12px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.topnav .account-menu button { height: 34px; padding: 0 10px; color: #516078; background: #f5f7fa; border: 1px solid #e0e6ee; border-radius: 7px; font-size: 12px; font-weight: 700; }
.topnav .account-menu #profileButton { color: var(--blue); background: #edf4ff; border-color: #d3e3ff; }
.topnav .account-menu #adminConsoleButton { color: var(--blue); background: #edf4ff; border-color: #d3e3ff; }

.profile-workspace { overflow: auto; }
.profile-layout { width: min(1320px,calc(100% - 48px)); display: grid; grid-template-columns: 210px minmax(0,1fr); align-items: start; gap: 24px; margin: 28px auto 48px; }
.profile-navigation { position: sticky; top: 24px; display: grid; align-content: start; gap: 8px; min-width: 0; min-height: 640px; padding: 22px 12px; background: #fff; border: 1px solid #dfe6ef; border-radius: 13px; box-shadow: 0 9px 28px rgba(34,55,88,.05); }
.profile-navigation > strong { padding: 0 14px 17px; color: #8a96a7; font-size: 12px; font-weight: 600; }
.profile-navigation > button { min-width: 0; min-height: 50px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #5d6a7d; background: transparent; border: 0; border-radius: 9px; text-align: left; font-size: 14px; font-weight: 700; }
.profile-navigation > button:hover { background: #f5f8fd; color: var(--blue); }
.profile-navigation > button.active { color: var(--blue); background: #edf4ff; }
.profile-navigation > button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.profile-navigation svg { width: 21px; height: 21px; flex: 0 0 auto; stroke-linecap: round; stroke-linejoin: round; }
.profile-content { min-width: 0; }
.profile-content > article { min-width: 0; min-height: 640px; }
.profile-images-card,.profile-name-card,.profile-password-card,.profile-devices-card { background: #fff; border: 1px solid #dfe6ef; border-radius: 13px; box-shadow: 0 9px 28px rgba(34,55,88,.05); }
.profile-images-card > header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid #e7ebf1; }
.profile-images-card h2,.profile-name-card h2,.profile-password-card h2,.profile-devices-card h2 { margin: 0; font-size: 19px; }
.profile-images-card header p,.profile-name-card header p,.profile-password-card header p,.profile-devices-card header p { margin: 5px 0 0; color: #8490a1; font-size: 12px; }
.profile-image-actions { display: flex; align-items: center; gap: 9px; }
.profile-image-actions label { display: flex; align-items: center; gap: 6px; color: #58677d; font-size: 13px; font-weight: 700; }
.profile-image-actions input { width: 17px; height: 17px; accent-color: var(--blue); }
.profile-image-actions button,.profile-image-card-actions button { min-height: 34px; padding: 0 11px; color: #56657a; background: #fff; border: 1px solid #d8e0ea; border-radius: 7px; font-size: 12px; font-weight: 750; }
.profile-image-actions #profileDeleteSelected { color: #c4474f; border-color: #efc9cd; }
.profile-image-actions button:disabled { opacity: .45; cursor: not-allowed; }
.profile-images-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 13px; padding: 18px; }
.profile-upload-date-divider { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-width: 0; margin: 2px 0 0; }
.profile-upload-date-divider strong { flex: none; color: #56657a; font-size: 13px; }
.profile-upload-date-divider span { height: 1px; flex: 1; background: #dfe6ef; }
.profile-images-empty { min-height: 260px; display: grid; place-content: center; gap: 8px; color: #8a96a7; text-align: center; }
.profile-images-empty strong { color: #4c5a6f; font-size: 18px; }
.profile-image-card { min-width: 0; overflow: hidden; position: relative; background: #fff; border: 1px solid #dfe5ed; border-radius: 10px; }
.profile-image-card.selected { border-color: #75a8ff; box-shadow: 0 0 0 2px rgba(40,120,255,.10); }
.profile-image-check { width: 25px; height: 25px; position: absolute; left: 8px; top: 8px; z-index: 2; display: grid; place-items: center; background: rgba(255,255,255,.92); border: 1px solid #d5deea; border-radius: 6px; }
.profile-image-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.profile-image-preview { width: 100%; aspect-ratio: 1; display: block; padding: 0; overflow: hidden; background-color: #fff; background-image: linear-gradient(45deg,#e7eaf0 25%,transparent 25%),linear-gradient(-45deg,#e7eaf0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7eaf0 75%),linear-gradient(-45deg,transparent 75%,#e7eaf0 75%); background-position: 0 0,0 9px,9px -9px,-9px 0; background-size: 18px 18px; border: 0; }
.profile-image-preview img { width: 100%; height: 100%; display: block; object-fit: contain; }
.profile-image-card-body { padding: 10px; }
.profile-image-card-body > strong { display: block; overflow: hidden; color: #344156; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.profile-image-card-body > small { display: block; margin-top: 5px; color: #8994a5; font-size: 11px; }
.profile-image-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.profile-image-card-actions button.danger { color: #c4474f; border-color: #efc9cd; }
.profile-rename-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 5px; margin-top: 8px; }
.profile-rename-row input { min-width: 0; height: 35px; padding: 0 8px; color: #344156; border: 1px solid #9bbcf4; border-radius: 6px; outline: 0; }
.profile-rename-row span { color: #7b8798; font-size: 12px; }
.profile-rename-actions { display: flex; gap: 6px; margin-top: 6px; }
.profile-rename-actions button { flex: 1; min-height: 32px; color: #52617a; background: #fff; border: 1px solid #d8e0ea; border-radius: 6px; font-size: 11px; font-weight: 750; }
.profile-rename-actions button[data-action="save-rename"] { color: #fff; background: var(--blue); border-color: var(--blue); }
.profile-name-card,.profile-password-card { padding: 28px; }
.profile-name-card header,.profile-password-card header { margin-bottom: 18px; }
.profile-name-card form,.profile-password-card form { width: min(100%,600px); display: grid; gap: 20px; margin: 96px auto 0; }
.profile-name-card label,.profile-password-card label { min-width: 0; display: grid; grid-template-columns: 96px minmax(0,1fr); align-items: center; gap: 16px; color: #59687c; font-size: 14px; font-weight: 600; }
.profile-name-card input,.profile-password-card input { min-width: 0; height: 42px; padding: 0 11px; color: #344156; background: #fbfcfe; border: 1px solid #dbe3ed; border-radius: 7px; outline: 0; }
.profile-name-card input:focus,.profile-password-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,120,255,.09); }
.profile-name-card input[readonly] { color: #8290a3; background: #f5f7fa; }
.profile-name-card form button,.profile-password-card form button { height: 42px; color: #fff; background: var(--blue); border: 0; border-radius: 8px; font-weight: 800; }
.profile-name-card form > button,.profile-password-card form > button { width: 136px; margin: 12px 0 0 112px; border-radius: 22px; }
.profile-password-card .password-rule { margin-left: 112px; }
.profile-name-message,.profile-password-message { max-width: 600px; margin-left: auto; margin-right: auto; }
.profile-name-message,.profile-password-message { margin-top: 13px; padding: 10px 11px; color: #b83f47; background: #fff1f2; border: 1px solid #f1cbd0; border-radius: 7px; font-size: 12px; }
.profile-name-message.success,.profile-password-message.success { color: #13895d; background: #ecfbf5; border-color: #bfead7; }
.password-rule { display: block; color: #7d8999; font-size: 12px; line-height: 1.5; }
.profile-devices-card { overflow: hidden; }
.profile-devices-card > header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 24px; border-bottom: 1px solid #e7ebf1; }
.profile-devices-card > header button { height: 30px; padding: 0 9px; color: #52617a; background: #fff; border: 1px solid #d8e0ea; border-radius: 6px; font-size: 11px; font-weight: 750; }
.profile-device-list { display: grid; gap: 6px; padding: 9px; }
.profile-device-list > p { margin: 12px 0; color: #8994a5; text-align: center; font-size: 12px; }
.profile-device-row { padding: 8px 9px; background: #f8fafc; border: 1px solid #e4e9f0; border-radius: 7px; }
.profile-device-row.current { border-color: #9fc1fb; background: #f3f7ff; }
.profile-device-row > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.profile-device-row strong { min-width: 0; overflow-wrap: anywhere; color: #3d4b60; font-size: 13px; }
.profile-device-row em { flex: none; padding: 3px 7px; color: #1f70eb; background: #e8f1ff; border-radius: 10px; font-size: 10px; font-style: normal; font-weight: 800; }
.profile-device-row small { display: block; margin-top: 3px; overflow-wrap: anywhere; color: #8792a2; font-size: 10px; line-height: 1.35; }
.profile-device-row footer { display: flex; justify-content: flex-end; margin-top: 6px; }
.profile-device-row footer button { min-height: 28px; padding: 0 8px; color: #c4474f; background: #fff; border: 1px solid #efc9cd; border-radius: 6px; font-size: 10px; font-weight: 750; }
.profile-device-row footer button:disabled { color: #8a95a4; background: #eef1f5; border-color: #e1e5eb; cursor: not-allowed; }
@media (min-width: 681px) and (max-width: 1100px) {
  .profile-layout { grid-template-columns: 180px minmax(0,1fr); gap: 18px; }
  .profile-images-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

.admin-workspace { overflow: auto; }
.admin-images-workspace { overflow: auto; }
.admin-images-layout { width: min(1500px,calc(100% - 36px)); display: grid; grid-template-columns: 310px minmax(0,1fr); align-items: start; gap: 18px; margin: 20px auto 48px; }
.admin-image-users-card,.admin-image-gallery-card { overflow: hidden; background: #fff; border: 1px solid #dfe6ef; border-radius: 13px; box-shadow: 0 9px 28px rgba(34,55,88,.05); }
.admin-image-users-card > header,.admin-image-gallery-card > header { min-height: 72px; display: flex; align-items: center; padding: 14px 17px; border-bottom: 1px solid #e7ebf1; }
.admin-image-gallery-card > header { justify-content: space-between; gap: 14px; }
.admin-image-users-card h2,.admin-image-gallery-card h2 { margin: 0; color: #344156; font-size: 18px; }
.admin-image-users-card header p,.admin-image-gallery-card header p { margin: 5px 0 0; color: #8490a1; font-size: 12px; }
.admin-image-user-list { max-height: calc(100dvh - 190px); display: grid; gap: 7px; overflow: auto; padding: 10px; }
.admin-image-user-list > p { margin: 26px 0; color: #8d98a8; text-align: center; }
.admin-image-user { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; color: #526176; text-align: left; background: #f8fafc; border: 1px solid #e3e9f1; border-radius: 8px; }
.admin-image-user:hover,.admin-image-user.active { color: var(--blue); background: #f0f6ff; border-color: #9fc0f8; }
.admin-image-user span { min-width: 0; }
.admin-image-user strong,.admin-image-user small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.admin-image-user strong { color: #3e4c61; font-size: 13px; }
.admin-image-user small { margin-top: 4px; color: #8793a4; font-size: 10px; }
.admin-image-user b { flex: none; padding: 4px 7px; color: var(--blue); background: #e7f0ff; border-radius: 10px; font-size: 10px; }
.admin-image-gallery-empty { min-height: 330px; display: grid; place-content: center; gap: 8px; padding: 20px; color: #8a96a7; text-align: center; }
.admin-image-gallery-empty strong { color: #4c5a6f; font-size: 18px; }
.admin-image-gallery-empty span { font-size: 12px; }
.admin-image-gallery { display: grid; grid-template-columns: repeat(5,minmax(145px,1fr)); gap: 13px; padding: 18px; }
.admin-image-bulk-actions { display: flex; align-items: center; gap: 9px; }
.admin-image-bulk-actions label { display: flex; align-items: center; gap: 6px; color: #58677d; font-size: 12px; font-weight: 750; white-space: nowrap; }
.admin-image-bulk-actions input { width: 17px; height: 17px; accent-color: var(--blue); }
.admin-image-bulk-actions button { min-height: 34px; padding: 0 11px; color: #c4474f; background: #fff; border: 1px solid #efc9cd; border-radius: 7px; font-size: 12px; font-weight: 750; }
.admin-image-bulk-actions button:disabled { opacity: .45; cursor: not-allowed; }
.admin-image-card { min-width: 0; overflow: hidden; position: relative; background: #fff; border: 1px solid #dfe5ed; border-radius: 10px; }
.admin-image-card.selected { border-color: #75a8ff; box-shadow: 0 0 0 2px rgba(40,120,255,.10); }
.admin-image-card-body { padding: 10px; }
.admin-image-card-body strong,.admin-image-card-body small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.admin-image-card-body strong { color: #344156; font-size: 13px; }
.admin-image-card-body small { margin-top: 5px; color: #8994a5; font-size: 11px; }
.admin-image-card-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 9px; }
.admin-image-card-actions button { min-width: 0; height: 31px; padding: 0 9px; color: #316fc8; background: #f1f6ff; border: 1px solid #cfe0fb; border-radius: 6px; font-size: 11px; font-weight: 750; }
.admin-image-card-actions button.danger { color: #c4474f; background: #fff7f7; border-color: #efc9cd; }
.admin-console-grid { width: min(1320px,calc(100% - 36px)); display: grid; grid-template-columns: 390px minmax(0,1fr); gap: 18px; margin: 20px auto 48px; }
.admin-toolbar-actions { display: flex; align-items: center; gap: 9px; }
.admin-toolbar-actions button { white-space: nowrap; }
.admin-toolbar-actions .secondary { color: #536278; background: #fff; border-color: #d6dfeb; }
.admin-toolbar-actions span { display: inline-grid; min-width: 20px; height: 20px; margin-left: 5px; place-items: center; padding: 0 5px; color: #fff; background: #ea4b55; border-radius: 999px; font-size: 10px; }
.admin-toolbar-actions span:empty { display: none; }
.admin-console-card { padding: 20px; background: #fff; border: 1px solid #dfe6ef; border-radius: 13px; box-shadow: 0 9px 28px rgba(34,55,88,.05); }
.admin-console-card header { margin-bottom: 17px; }
.admin-console-card h2 { margin: 0; font-size: 18px; }
.admin-console-card header p { margin: 6px 0 0; color: #8894a5; font-size: 12px; }
.admin-create-user { display: grid; gap: 13px; }
.admin-create-user label { display: grid; gap: 6px; color: #5d6a7e; font-size: 12px; font-weight: 700; }
.admin-create-user input,.admin-create-user select { min-width: 0; height: 41px; padding: 0 11px; color: #344156; background: #fbfcfe; border: 1px solid #dbe3ed; border-radius: 7px; }
.admin-create-user button { height: 42px; color: #fff; background: var(--blue); border: 0; border-radius: 8px; font-weight: 800; }
.admin-console-list { display: grid; gap: 9px; }
.admin-console-list > p { margin: 22px 0; color: #8d98a8; text-align: center; }
.admin-console-row { display: grid; grid-template-columns: minmax(150px,1fr) minmax(170px,1.5fr) auto; align-items: center; gap: 12px; padding: 11px 12px; background: #f8fafc; border: 1px solid #e6ebf1; border-radius: 8px; }
.admin-console-row strong,.admin-console-row small { display: block; overflow-wrap: anywhere; }
.admin-console-row strong { color: #3e4c61; font-size: 13px; }
.admin-console-row small { margin-top: 4px; color: #8b96a6; font-size: 10px; line-height: 1.45; }
.admin-console-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.admin-console-actions button { height: 31px; padding: 0 9px; color: #52617a; background: #fff; border: 1px solid #d8e0eb; border-radius: 6px; font-size: 11px; font-weight: 700; }
.admin-console-actions button.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.admin-console-actions button.danger { color: #c5474e; border-color: #efcbd0; }
.admin-device-limit-editor { height: 31px; display: inline-flex; align-items: center; gap: 5px; padding-left: 8px; color: #68768a; background: #fff; border: 1px solid #d8e0eb; border-radius: 6px; font-size: 10px; font-weight: 700; }
.admin-device-limit-editor input { width: 52px; height: 27px; padding: 0 5px; color: #344156; background: #f8fafc; border: 0; border-left: 1px solid #e3e8ef; outline: 0; text-align: center; }
.admin-console-actions .admin-device-limit-editor button { height: 29px; border-width: 0 0 0 1px; border-radius: 0 5px 5px 0; }
.admin-audit-modal { position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; padding: 18px; background: rgba(25,37,55,.42); backdrop-filter: blur(2px); }
.admin-audit-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: transparent; border: 0; }
.admin-audit-dialog { width: min(1240px,calc(100vw - 36px)); max-height: calc(100dvh - 36px); position: relative; z-index: 1; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #dfe6ef; border-radius: 14px; box-shadow: 0 24px 70px rgba(21,33,52,.24); }
.admin-audit-dialog > header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 19px; border-bottom: 1px solid #e6ebf2; }
.admin-audit-dialog > header h2 { margin: 0; color: #344156; font-size: 19px; }
.admin-audit-dialog > header p { margin: 5px 0 0; color: #7f8b9c; font-size: 12px; }
.admin-audit-close { width: 36px; height: 36px; flex: none; padding: 0; color: #617087; background: #f4f7fa; border: 1px solid #dce3ec; border-radius: 8px; font-size: 22px; line-height: 1; }
.admin-audit-dialog-body { min-height: 0; overflow: auto; padding: 17px 19px 19px; }
body.admin-audit-open { overflow: hidden; }
.admin-audit-filters { display: grid; grid-template-columns: minmax(150px,1fr) minmax(150px,1fr) minmax(150px,1fr) 100px 80px; align-items: end; gap: 10px; padding: 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 9px; }
.admin-audit-filters label { min-width: 0; display: grid; gap: 6px; color: #5d6a7e; font-size: 11px; font-weight: 750; }
.admin-audit-filters input,.admin-audit-filters select { width: 100%; min-width: 0; height: 38px; padding: 0 10px; color: #344156; background: #fff; border: 1px solid #d6dfeb; border-radius: 7px; }
.admin-audit-filters button { height: 38px; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 7px; font-weight: 750; }
.admin-audit-filters button.secondary { color: #5e6d82; background: #fff; border-color: #d6dfeb; }
.admin-audit-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; }
.admin-audit-summary span { color: #68768b; font-size: 12px; }
.admin-audit-summary button { height: 32px; padding: 0 12px; color: var(--blue); background: #f1f6ff; border: 1px solid #cfe0ff; border-radius: 6px; font-weight: 700; }
.admin-audit-table { margin-top: 10px; overflow: hidden; border: 1px solid #e0e6ef; border-radius: 9px; }
.admin-audit-head,.admin-audit-row { display: grid; grid-template-columns: minmax(180px,1.05fr) minmax(210px,1.3fr) minmax(110px,.55fr) minmax(230px,1.4fr); gap: 12px; align-items: center; padding: 10px 13px; }
.admin-audit-head { color: #6e7b8e; background: #f3f6fa; font-size: 11px; font-weight: 800; }
.admin-audit-list { max-height: min(560px,calc(100dvh - 330px)); overflow: auto; }
.admin-audit-list > p { margin: 0; padding: 38px 16px; color: #8c97a7; text-align: center; }
.admin-audit-row { min-height: 64px; border-top: 1px solid #edf0f4; font-size: 12px; }
.admin-audit-row:first-child { border-top: 0; }
.admin-audit-row:hover { background: #fafcff; }
.admin-audit-row strong,.admin-audit-row small { display: block; overflow-wrap: anywhere; }
.admin-audit-row strong { color: #3e4d62; font-size: 12px; }
.admin-audit-row small { margin-top: 4px; color: #8a96a6; font-size: 10px; line-height: 1.45; }
.admin-audit-result { width: fit-content; padding: 4px 8px; color: #17855b; background: #eaf8f2; border-radius: 999px; font-weight: 750; }
.admin-audit-result.failed { color: #bd444b; background: #fff0f1; }
body.admin-download-logs-open { overflow: hidden; }
.download-log-summary { flex-wrap: wrap; margin-top: 0; }
.download-log-summary label { color: #5d6a7e; font-size: 12px; }
.download-log-summary select { height: 34px; margin-left: 6px; padding: 0 9px; border: 1px solid #d6dfeb; border-radius: 6px; color: #344156; background: #fff; }
.download-log-row { display: grid; grid-template-columns: 155px minmax(90px,.6fr) 70px minmax(160px,1.7fr) 90px; align-items: center; gap: 12px; padding: 12px 13px; border-bottom: 1px solid #edf0f4; font-size: 12px; color: #3e4d62; }
.download-log-row > span { min-width: 0; overflow-wrap: anywhere; }
.download-log-head { color: #6e7b8e; background: #f3f6fa; font-weight: 750; }
@media (max-width: 680px) {
  .download-log-head { display: none; }
  .download-log-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .download-log-row > span:first-child, .download-log-row > span:nth-child(4) { grid-column: 1 / -1; }
  .download-log-row > span::before { content: attr(data-label) "："; color: #8995a6; }
  .admin-toolbar-actions { flex-wrap: wrap; }
}
.admin-audit-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.admin-audit-pagination span { color: #66758a; font-size: 12px; }
.admin-audit-pagination button { height: 33px; padding: 0 13px; color: #536278; background: #fff; border: 1px solid #d5deea; border-radius: 6px; font-weight: 700; }
.admin-audit-pagination button:disabled { color: #aab3c0; background: #f2f4f7; cursor: not-allowed; }
.admin-account-modal { position: fixed; inset: 0; z-index: 1610; display: grid; place-items: center; padding: 18px; background: rgba(25,37,55,.42); backdrop-filter: blur(2px); }
.admin-account-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: transparent; border: 0; }
.admin-account-dialog { width: min(760px,calc(100vw - 36px)); max-height: calc(100dvh - 36px); position: relative; z-index: 1; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #dfe6ef; border-radius: 14px; box-shadow: 0 24px 70px rgba(21,33,52,.24); }
.admin-user-settings-dialog { width: min(700px,calc(100vw - 36px)); }
.admin-account-dialog > header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 19px; border-bottom: 1px solid #e6ebf2; }
.admin-account-dialog > header h2 { margin: 0; color: #344156; font-size: 19px; }
.admin-account-dialog > header p { margin: 5px 0 0; color: #7f8b9c; font-size: 12px; }
.admin-account-close { width: 36px; height: 36px; flex: none; padding: 0; color: #617087; background: #f4f7fa; border: 1px solid #dce3ec; border-radius: 8px; font-size: 22px; line-height: 1; }
.admin-account-dialog-body { min-height: 0; overflow: auto; padding: 18px 19px 20px; }
body.admin-account-modal-open { overflow: hidden; }
.admin-device-overview { display: grid; grid-template-columns: minmax(160px,.7fr) minmax(330px,1.3fr); align-items: end; gap: 13px; padding: 14px; background: #f5f8fd; border: 1px solid #dfe7f2; border-radius: 10px; }
.admin-device-overview > div span,.admin-device-overview > div strong { display: block; }
.admin-device-overview > div span { color: #748196; font-size: 11px; }
.admin-device-overview > div strong { margin-top: 5px; color: #2f6fd3; font-size: 23px; }
.admin-device-overview label { display: grid; grid-template-columns: auto minmax(75px,1fr) auto; align-items: center; gap: 8px; color: #5d6a7e; font-size: 11px; font-weight: 750; }
.admin-device-overview input { min-width: 0; height: 38px; padding: 0 9px; color: #344156; background: #fff; border: 1px solid #d6dfeb; border-radius: 7px; }
.admin-device-overview button { height: 38px; padding: 0 13px; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 7px; font-weight: 750; }
.admin-device-detail-list { display: grid; gap: 9px; margin-top: 14px; }
.admin-device-detail-list > p { margin: 28px 0; color: #8995a6; text-align: center; }
.admin-device-detail-row { padding: 13px 14px; background: #fff; border: 1px solid #e1e7ef; border-radius: 9px; }
.admin-device-detail-row > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-device-detail-row > header strong { min-width: 0; overflow-wrap: anywhere; color: #3d4b60; font-size: 14px; }
.admin-device-detail-row > header em { flex: none; padding: 4px 8px; color: #2d70d4; background: #edf4ff; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 750; }
.admin-device-detail-row dl { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 11px 0 0; padding-top: 10px; border-top: 1px solid #edf1f5; }
.admin-device-detail-row dl div { min-width: 0; }
.admin-device-detail-row dt { color: #8994a4; font-size: 10px; }
.admin-device-detail-row dd { margin: 4px 0 0; overflow-wrap: anywhere; color: #536176; font-size: 11px; font-weight: 700; }
.admin-user-settings-body { display: grid; gap: 12px; }
.admin-setting-section { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 15px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }
.admin-setting-section h3 { margin: 0; color: #3e4c61; font-size: 15px; }
.admin-setting-section p { margin: 5px 0 0; color: #8490a1; font-size: 11px; line-height: 1.45; }
.admin-setting-section > button,.admin-reset-password-form > button { height: 37px; padding: 0 14px; color: #4f6077; background: #fff; border: 1px solid #d4deea; border-radius: 7px; font-weight: 750; }
.admin-setting-section > button.restore { color: #147e58; border-color: #b9e1d0; background: #f1fbf7; }
.admin-setting-section > button:disabled { color: #99a4b3; background: #eef1f5; cursor: not-allowed; }
.admin-reset-password-form,.admin-rename-user-form { grid-template-columns: minmax(160px,.8fr) minmax(210px,1fr) auto; }
.admin-reset-password-form label,.admin-rename-user-form label { display: grid; gap: 5px; color: #66758a; font-size: 10px; font-weight: 750; }
.admin-reset-password-form input,.admin-rename-user-form input { min-width: 0; height: 37px; padding: 0 10px; color: #344156; background: #fff; border: 1px solid #d6dfeb; border-radius: 7px; }
.admin-reset-password-form > button,.admin-rename-user-form > button { color: #fff; background: var(--blue); border-color: var(--blue); }
.admin-danger-zone { background: #fff8f8; border-color: #f0d1d4; }
.admin-danger-zone > button { color: #c3454d; border-color: #edc3c7; background: #fff; }
.admin-recycle-dialog { width: min(820px,calc(100vw - 36px)); }
.admin-recycle-list { display: grid; gap: 10px; }
.admin-recycle-list > p { margin: 28px 0; color: #8995a6; text-align: center; }
.admin-recycle-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(150px,.55fr) auto; align-items: center; gap: 14px; padding: 14px; background: #f8fafc; border: 1px solid #e1e7ef; border-radius: 10px; }
.admin-recycle-row strong,.admin-recycle-row small { display: block; overflow-wrap: anywhere; }
.admin-recycle-row strong { color: #3e4d62; font-size: 14px; }
.admin-recycle-row small { margin-top: 5px; color: #8793a4; font-size: 11px; }
.admin-recycle-actions { display: flex; gap: 8px; }
.admin-recycle-actions button { height: 35px; padding: 0 12px; color: #506076; background: #fff; border: 1px solid #d5deea; border-radius: 7px; font-weight: 750; }
.admin-recycle-actions button.restore { color: #147e58; border-color: #b9e1d0; background: #f1fbf7; }
.admin-recycle-actions button.danger { color: #c3454d; border-color: #edc3c7; }
.admin-permanent-delete-dialog { width: min(640px,calc(100vw - 36px)); }
.admin-permanent-delete-form { display: grid; gap: 12px; }
.admin-delete-option { display: flex; align-items: flex-start; gap: 11px; padding: 14px; background: #f8fafc; border: 1px solid #dfe6ef; border-radius: 10px; cursor: pointer; }
.admin-delete-option:has(input:checked) { border-color: #90b7f8; box-shadow: 0 0 0 2px rgba(46,124,246,.08); }
.admin-delete-option.danger:has(input:checked) { background: #fff8f8; border-color: #e9aeb4; box-shadow: 0 0 0 2px rgba(205,68,78,.07); }
.admin-delete-option input { margin-top: 3px; }
.admin-delete-option span,.admin-delete-option strong,.admin-delete-option small { display: block; }
.admin-delete-option strong { color: #3d4b60; font-size: 14px; }
.admin-delete-option small { margin-top: 5px; color: #7f8b9c; font-size: 11px; line-height: 1.5; }
.admin-delete-confirm { display: grid; gap: 7px; margin-top: 4px; color: #59677b; font-size: 12px; font-weight: 700; }
.admin-delete-confirm b { color: #c3454d; }
.admin-delete-confirm input { height: 40px; padding: 0 11px; color: #344156; background: #fff; border: 1px solid #d3dce8; border-radius: 8px; }
.admin-delete-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }
.admin-delete-actions button { height: 38px; padding: 0 15px; border-radius: 7px; font-weight: 750; }
.admin-delete-actions button.secondary { color: #536278; background: #fff; border: 1px solid #d5deea; }
.admin-delete-actions button.danger { color: #fff; background: #c74851; border: 1px solid #c74851; }
.admin-delete-actions button:disabled { opacity: .45; cursor: not-allowed; }

.credential-username { display: none !important; }
.password-field { min-width: 0; width: 100%; position: relative; display: block; }
.password-field > input.password-visibility-input { width: 100%; padding-right: 50px; }
.password-visibility-input::-ms-reveal { display: none; }
.password-field .password-visibility-toggle { width: 38px; height: calc(100% - 8px); min-height: 0; position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: grid; place-items: center; padding: 0; color: #7a8799; background: transparent; border: 0; border-radius: 6px; box-shadow: none; line-height: 1; }
.password-field .password-visibility-toggle:hover { color: var(--blue); background: #edf4ff; }
.password-field .password-visibility-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.password-field .password-visibility-toggle[aria-pressed="true"] { color: var(--blue); }
.password-visibility-toggle svg { width: 20px; height: 20px; pointer-events: none; }
.password-visibility-toggle .password-eye-slash { display: none; }
.password-visibility-toggle[aria-pressed="true"] .password-eye-slash { display: block; }

.topbar {
  height: 74px; padding: 0 18px; display: flex; align-items: center;
  gap: 18px; background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 4;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 220px; color: var(--ink); text-decoration: none; }
.brand-logo { width: 44px; height: 44px; display: block; flex: 0 0 auto; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 29px; letter-spacing: .06em; line-height: 1; white-space: nowrap; }
.brand small { margin-top: 6px; color: #566276; font-size: 13px; font-weight: 650; letter-spacing: .03em; white-space: nowrap; }
.mobile-menu-button, .mobile-nav-backdrop { display: none; }
.topnav { display: flex; align-self: stretch; gap: 13px; margin-left: auto; }
.topnav a, .topnav button { display: flex; align-items: center; position: relative; padding: 0; color: #4f5b6d; background: transparent; border: 0; text-decoration: none; font-weight: 600; white-space: nowrap; }
.topnav button:focus { outline: 0; }
.topnav button:focus-visible { outline: 2px solid rgba(40,120,255,.42); outline-offset: -2px; border-radius: 7px; }
.topnav a:hover, .topnav button:hover, .topnav a.active { color: var(--blue); }
.topnav a.active::after, .topnav button.active::after { content: ""; height: 2px; position: absolute; left: 2px; right: 2px; bottom: 0; background: var(--blue); border-radius: 2px; }
.topnav-dropdown-wrap { display: flex; align-items: stretch; position: relative; }
.topnav-dropdown-wrap > button { min-width: 76px; justify-content: center; gap: 6px; white-space: nowrap; }
.nav-caret { width: 14px; height: 14px; flex: 0 0 14px; position: relative; }
.nav-caret::before { content: ""; width: 7px; height: 7px; position: absolute; left: 3px; top: 3px; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: rotate(45deg); transform-origin: center; transition: transform .16s ease; }
.topnav-dropdown-wrap.open .nav-caret::before { transform: rotate(225deg); }
.topnav-dropdown { width: 280px; position: absolute; z-index: 40; left: 50%; top: calc(100% - 3px); padding: 9px; transform: translateX(-50%); background: #fff; border: 1px solid #dfe5ed; border-radius: 11px; box-shadow: 0 15px 36px rgba(34,55,88,.17); }
.topnav .topnav-dropdown button { width: 100%; min-height: 48px; justify-content: center; padding: 0 18px; color: #4f5b6d; border-radius: 8px; font-size: 15px; text-align: center; white-space: nowrap; }
.topnav .topnav-dropdown button:hover, .topnav .topnav-dropdown button.active { color: var(--blue); background: #f0f6ff; }
.topnav .topnav-dropdown button::after { display: none; }
.topnav-dropdown.main-image-dropdown { width: 210px; }
.topnav .primary-upload-nav { height: 44px; align-self: center; gap: 8px; padding: 0 17px; color: #fff; background: linear-gradient(135deg, #2878ff, #1765e8); border: 1px solid #1765e8; border-radius: 10px; box-shadow: 0 7px 18px rgba(40,120,255,.25); font-weight: 750; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.topnav .primary-upload-nav:hover, .topnav .primary-upload-nav.active { color: #fff; background: linear-gradient(135deg, #176ff2, #0d58cf); box-shadow: 0 9px 22px rgba(40,120,255,.34); transform: translateY(-1px); }
.topnav .primary-upload-nav:active { transform: translateY(0); }
.topnav .primary-upload-nav::after { display: none; }
.nav-upload-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: transparent; }
.nav-upload-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.report-count-badge { min-width: 20px; height: 20px; display: grid; place-items: center; position: absolute; right: -15px; top: 15px; z-index: 2; padding: 0 5px; color: #fff; background: #ef3f45; border: 2px solid #fff; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1; box-shadow: 0 3px 8px rgba(220,44,51,.28); }
.server-state { min-width: 148px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: #687488; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.server-state i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #adb5c2; }
.server-state.online i { background: var(--green); box-shadow: 0 0 0 3px rgba(22,184,119,.13); }
.server-state.scanning i { background: #ffad29; animation: pulse 1.2s infinite; }
.server-state.storage-full { color: #b53c43; background: #fff2f3; border-color: #f1c6ca; }
.server-state.storage-full i { background: var(--danger); box-shadow: 0 0 0 3px rgba(242,95,100,.13); }

.app-shell { height: calc(100vh - 74px); display: grid; grid-template-columns: minmax(0, 1fr); }
.app-shell.home-view { grid-template-columns: minmax(0,1fr); }
.app-shell.home-view .sidebar { display: none; }
.app-shell.home-view .workspace { grid-column: 1; }
.app-shell.search-view { display: grid; grid-template-columns: 314px minmax(0,1fr); overflow: hidden; background: var(--canvas); }
.app-shell.search-view > .workspace { min-height: 0; grid-column: 2; grid-row: 1; overflow-y: auto; }
.search-control-panel { display: none; min-width: 0; padding: 16px 14px 14px; background: #fff; border-right: 1px solid #dfe6ef; scrollbar-width: thin; }
.app-shell.search-view .search-control-panel { display: flex; grid-column: 1; grid-row: 1; flex-direction: column; overflow-y: auto; }
.search-control-header { display: block; margin: 0 0 13px; }
.search-control-header > div:first-child strong,.search-control-header > div:first-child span { display: block; }
.search-control-header > div:first-child strong { color: #2e3e58; font-size: 21px; }
.search-control-header > div:first-child span { margin-top: 4px; color: #7b8799; font-size: 13px; }
.search-control-header .server-state { width: 100%; min-width: 0; justify-content: flex-start; margin-top: 12px; padding: 8px 10px; background: #f8faff; font-size: 12px; }
.search-control-grid { display: block; }
.search-control-grid .side-section { min-width: 0; }
.search-control-grid .search-options { display: block; }
.search-hub-links { display: grid; gap: 8px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #e8edf4; }
.search-hub-primary-links { gap: 9px; margin: 0 0 15px; padding: 12px; background: #f7f9fc; border: 1px solid #e2e8f1; border-radius: 11px; }
.search-status-button { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 9px 10px; color: #40506a; background: #fff; border: 1px solid #dce4ef; border-radius: 9px; text-align: left; }
.search-status-button:hover,.search-status-button.active { color: var(--blue); background: #f3f7ff; border-color: #a9c8fb; }
.search-status-button > span:first-child { min-width: 0; }
.search-status-button strong,.search-status-button small { display: block; }
.search-status-button strong { font-size: 13px; }
.search-status-button small { margin-top: 3px; color: #8793a5; font-size: 10px; }
.search-status-button .server-state { width: auto; min-width: 104px; flex: none; justify-content: center; margin: 0; padding: 7px 8px; font-size: 10px; }
.search-hub-group-label { margin: 0 2px 1px; color: #78869a; font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.search-hub-link { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 11px; position: relative; padding: 9px 12px; color: #40506a; background: #f7f9fc; border: 1px solid #dfe6ef; border-radius: 9px; text-align: left; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.search-hub-link:hover { color: var(--blue); background: #f1f6ff; border-color: #bcd2fa; }
.search-hub-link.active { color: #1765e8; background: #eaf3ff; border-color: #92b9ff; box-shadow: 0 5px 14px rgba(40,120,255,.09); }
.search-hub-primary-links .search-hub-link { min-height: 64px; background: #fff; box-shadow: 0 3px 10px rgba(40,63,96,.045); }
.search-hub-primary-links .search-hub-link.upload { color: #185fc8; background: linear-gradient(135deg,#f5f9ff,#eef5ff); border-color: #bcd4fb; border-left: 4px solid #2878ff; }
.search-hub-primary-links .search-hub-link.upload:hover { color: #0f55bc; background: #e7f1ff; border-color: #82b0fa; transform: translateY(-1px); }
.search-hub-primary-links .report-alerts-button { color: #b6434a; background: linear-gradient(135deg,#fff9f9,#fff1f2); border-color: #f1c7ca; border-left: 4px solid #e6575d; }
.search-hub-primary-links .report-alerts-button:hover { color: #a8323a; background: #ffecee; border-color: #e99da2; transform: translateY(-1px); }
.search-hub-link:disabled { opacity: .58; cursor: not-allowed; }
.search-hub-link > span:last-of-type { min-width: 0; }
.search-hub-link strong,.search-hub-link small { display: block; }
.search-hub-link strong { font-size: 14px; }
.search-hub-link small { margin-top: 3px; color: #8290a4; font-size: 11px; }
.search-hub-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; color: #fff; background: var(--blue); border-radius: 9px; font-size: 19px; font-weight: 850; }
.search-hub-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.search-hub-icon.report { color: #d24a51; background: #ffedef; }
.search-hub-link .report-count-badge { right: 8px; top: 7px; }
.search-control-actions { display: flex; align-items: stretch; flex-direction: column; gap: 9px; margin-top: 13px; }
.search-control-actions .privacy-note { margin: 0; text-align: center; }
.search-control-actions .primary-button { width: 100%; flex: 0 0 auto; }
.sidebar { min-width: 0; overflow-y: auto; display: flex; flex-direction: column; padding: 13px 13px 12px; background: #fff; border-right: 1px solid var(--line); scrollbar-width: thin; }
.side-section { padding: 13px 0; border-top: 1px solid #f0f2f5; }
.query-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid #dfe4eb; }
.query-section-title { display: block; margin: 0 0 8px; padding: 0; color: #48566b; background: transparent; border: 0; font-size: 14px; font-weight: 700; }
.query-section-title:hover { color: var(--blue); }
.product-code-section { margin: 0; padding: 0 0 13px; border-top: 0; }
.product-code-section > label { display: block; margin-bottom: 8px; color: #48566b; font-size: 14px; font-weight: 700; }
.product-code-field { position: relative; }
.product-code-field input { width: 100%; height: 46px; padding: 0 42px 0 13px; color: #344156; background: #fbfcfe; border: 1px solid #d8dee8; border-radius: 8px; outline: 0; font-size: 15px; }
.product-code-field input:focus { border-color: #82adff; box-shadow: 0 0 0 3px rgba(40,120,255,.08); }
.product-code-field button { width: 29px; height: 29px; position: absolute; right: 8px; top: 8px; color: #7e8999; background: #eef1f5; border: 0; border-radius: 6px; font-size: 18px; line-height: 1; }
.product-code-actions { margin-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.product-code-actions label { display: flex; align-items: center; gap: 6px; color: #617087; font-size: 13px; cursor: pointer; }
.product-code-actions input { width: 16px; height: 16px; accent-color: var(--blue); }
.product-code-actions button { min-width: 100px; padding: 8px 12px; color: #fff; background: var(--blue); border: 0; border-radius: 6px; font-size: 13px; font-weight: 700; }
.product-code-actions button:disabled { color: #aeb6c2; background: #edf0f4; cursor: not-allowed; }
.product-code-section p { margin: 9px 2px 0; color: #8792a3; font-size: 12px; line-height: 1.55; }
.drop-zone { min-height: 128px; display: grid; place-items: center; overflow: hidden; outline: 0; background: #fbfcfe; border: 1px dashed #cbd3df; border-radius: 8px; transition: .18s; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.dragover { border-color: var(--blue); background: #f5f9ff; }
.drop-empty { padding: 16px 10px; text-align: center; }
.drop-empty svg { width: 32px; height: 32px; fill: none; stroke: #7d91b2; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.drop-empty strong, .drop-empty span, .drop-empty b { display: block; }
.drop-empty strong { margin-top: 6px; font-size: 15px; }
.drop-empty span { margin: 6px 0 11px; color: #8792a3; font-size: 12px; }
.drop-empty b { width: 108px; margin: auto; padding: 7px 10px; color: var(--blue); background: var(--blue-soft); border-radius: 6px; font-size: 13px; }
.query-preview { width: 100%; padding: 9px; position: relative; }
.query-preview img { width: 100%; height: 118px; display: block; object-fit: contain; background: #f2f4f7; border-radius: 6px; }
.query-preview > div { min-width: 0; margin-top: 8px; }
.query-preview strong, .query-preview span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.query-preview strong { font-size: 14px; }
.query-preview span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.icon-button { width: 25px; height: 25px; display: grid; place-items: center; position: absolute; right: 14px; top: 14px; color: #637087; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 5px; font-size: 17px; line-height: 1; }
.query-crop-button { min-width: 54px; height: 27px; position: absolute; left: 14px; top: 14px; padding: 0 9px; color: #1768df; background: rgba(255,255,255,.94); border: 1px solid #b9d2fb; border-radius: 6px; font-size: 11px; font-weight: 800; }
.query-crop-button.applied { color: #fff; background: var(--blue); border-color: var(--blue); }

.search-crop-modal { position: fixed; inset: 0; z-index: 1800; display: grid; place-items: center; padding: 20px; }
.search-crop-backdrop { position: absolute; inset: 0; background: rgba(20,29,43,.76); border: 0; backdrop-filter: blur(3px); }
.search-crop-dialog { width: min(920px,calc(100vw - 40px)); height: min(850px,calc(100dvh - 40px)); max-height: calc(100dvh - 40px); display: grid; grid-template-rows: auto minmax(0,1fr) auto; position: relative; overflow: hidden; background: #fff; border-radius: 15px; box-shadow: 0 28px 85px rgba(0,0,0,.38); }
.search-crop-dialog > header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 17px; border-bottom: 1px solid #e2e7ee; }
.search-crop-dialog > header h2 { margin: 0; color: #27384f; font-size: 19px; }
.search-crop-dialog > header p { margin: 5px 0 0; color: #7f8b9c; font-size: 12px; }
.search-crop-dialog > header button { width: 36px; height: 36px; flex: none; color: #5e6c80; background: #f2f5f8; border: 0; border-radius: 50%; font-size: 24px; }
.search-crop-content { min-height: 0; display: grid; grid-template-rows: minmax(240px,1fr) auto; padding: 15px; background: #eef1f5; }
.search-crop-stage-shell { min-height: 0; display: grid; place-items: center; overflow: hidden; }
.search-crop-canvas { position: relative; overflow: hidden; background-color: #fff; background-image: linear-gradient(45deg,#e2e6eb 25%,transparent 25%),linear-gradient(-45deg,#e2e6eb 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2e6eb 75%),linear-gradient(-45deg,transparent 75%,#e2e6eb 75%); background-position: 0 0,0 10px,10px -10px,-10px 0; background-size: 20px 20px; box-shadow: 0 7px 26px rgba(35,49,69,.18); touch-action: none; }
.search-crop-canvas > img { width: 100%; height: 100%; display: block; object-fit: fill; user-select: none; -webkit-user-drag: none; }
.search-crop-selection { position: absolute; cursor: move; border: 2px solid #fff; box-shadow: 0 0 0 1px #2878ff,0 0 0 9999px rgba(12,20,32,.58); touch-action: none; }
.search-crop-grid { position: absolute; inset: 0; background-image: linear-gradient(to right,transparent 33.15%,rgba(255,255,255,.72) 33.33%,rgba(255,255,255,.72) 33.65%,transparent 33.8%,transparent 66.15%,rgba(255,255,255,.72) 66.33%,rgba(255,255,255,.72) 66.65%,transparent 66.8%),linear-gradient(to bottom,transparent 33.15%,rgba(255,255,255,.72) 33.33%,rgba(255,255,255,.72) 33.65%,transparent 33.8%,transparent 66.15%,rgba(255,255,255,.72) 66.33%,rgba(255,255,255,.72) 66.65%,transparent 66.8%); pointer-events: none; }
.search-crop-selection button { width: 22px; height: 22px; position: absolute; padding: 0; background: transparent; border: 0; touch-action: none; }
.search-crop-selection button::after { content: ""; width: 10px; height: 10px; display: block; position: absolute; left: 6px; top: 6px; background: #fff; border: 2px solid #2878ff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.28); }
.search-crop-selection button[data-crop-handle="nw"] { left: -11px; top: -11px; cursor: nwse-resize; }
.search-crop-selection button[data-crop-handle="ne"] { right: -11px; top: -11px; cursor: nesw-resize; }
.search-crop-selection button[data-crop-handle="se"] { right: -11px; bottom: -11px; cursor: nwse-resize; }
.search-crop-selection button[data-crop-handle="sw"] { left: -11px; bottom: -11px; cursor: nesw-resize; }
.search-crop-content > p { margin: 12px 0 0; color: #596a80; text-align: center; font-size: 12px; font-weight: 700; }
.search-crop-dialog > footer { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid #e2e7ee; }
.search-crop-dialog > footer > div { display: flex; gap: 9px; }
.search-crop-dialog > footer button { min-height: 40px; padding: 0 17px; border-radius: 8px; font-weight: 800; }
.search-crop-dialog > footer button.secondary { color: #526176; background: #fff; border: 1px solid #d5dde8; }
.search-crop-dialog > footer button.primary { color: #fff; background: var(--blue); border: 1px solid var(--blue); }
body.search-crop-open { overflow: hidden; }

@media (max-width: 600px) {
  .search-crop-modal { padding: 7px; }
  .search-crop-dialog { width: calc(100vw - 14px); height: calc(100dvh - 14px); max-height: calc(100dvh - 14px); }
  .search-crop-dialog > header { min-height: 60px; padding: 10px 12px; }
  .search-crop-dialog > header h2 { font-size: 17px; }
  .search-crop-dialog > header p { font-size: 10px; }
  .search-crop-content { grid-template-rows: minmax(200px,1fr) auto; padding: 10px; }
  .search-crop-dialog > footer { align-items: stretch; flex-direction: column; }
  .search-crop-dialog > footer > button,.search-crop-dialog > footer > div { width: 100%; }
  .search-crop-dialog > footer > div button { flex: 1; }
}
.search-options h2, .admin-card h2 { margin: 0 0 12px; font-size: 15px; }
.select-field { display: block; color: #596577; font-size: 13px; font-weight: 600; }
select { height: 38px; padding: 0 32px 0 11px; color: #4b5668; background: #fff; border: 1px solid #dfe3e9; border-radius: 6px; outline: 0; }
.select-field select { width: 100%; margin-top: 7px; }
select:focus, textarea:focus { border-color: #82adff; box-shadow: 0 0 0 3px rgba(40,120,255,.08); }
.search-all-field { display: flex; align-items: center; gap: 9px; margin-top: 11px; padding: 9px 10px; color: #596577; background: #fbfcfe; border: 1px solid #e2e6ec; border-radius: 7px; cursor: pointer; }
.search-all-field input { width: 17px; height: 17px; flex: 0 0 auto; margin: 0; accent-color: var(--blue); }
.search-all-field span, .search-all-field strong, .search-all-field small { display: block; }
.search-all-field span { min-width: 0; }
.search-all-field strong { font-size: 13px; }
.search-all-field small { margin-top: 3px; color: #8792a3; font-size: 11px; }
.mode-card { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 10px; border: 1px solid #d8e6ff; border-radius: 7px; background: #f6f9ff; }
.mode-icon { width: 28px; height: 28px; display: grid; place-items: center; color: var(--blue); background: #fff; border: 1px solid #d9e5fa; border-radius: 6px; }
.mode-card div { min-width: 0; flex: 1; }
.mode-card strong, .mode-card small { display: block; }
.mode-card strong { font-size: 14px; }
.mode-card small { margin-top: 4px; color: #788598; font-size: 11px; white-space: nowrap; }
.mode-card > i { color: var(--blue); font-style: normal; }

.admin-card { padding: 13px 0; border-top: 1px solid #f0f2f5; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; }
.admin-heading h2 { margin-bottom: 0; }
.text-button, .folder-picker-button { padding: 4px 5px; color: var(--blue); background: transparent; border: 0; font-size: 13px; }
.text-button:hover, .folder-picker-button:hover:not(:disabled) { text-decoration: underline; }
.folder-picker-button:disabled { color: var(--muted); cursor: wait; }
.field-label-row { margin-top: 11px; display: flex; align-items: center; justify-content: space-between; color: #596577; font-size: 13px; font-weight: 600; }
textarea { width: 100%; margin-top: 6px; padding: 9px; resize: vertical; color: #4e5a6b; background: #fbfcfe; border: 1px solid #dfe3e9; border-radius: 6px; font-size: 13px; line-height: 1.5; }
.settings-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
.settings-row label { color: #687487; font-size: 12px; }
.settings-row select { width: 100%; height: 35px; margin-top: 5px; padding-left: 7px; font-size: 12px; }
.save-button { width: 100%; margin-top: 9px; padding: 9px; color: var(--blue); background: #f1f6ff; border: 1px solid #d9e7ff; border-radius: 6px; font-size: 13px; font-weight: 700; }
.save-button:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.index-progress { margin-top: 10px; padding: 9px; color: #627087; background: #f7f9fc; border-radius: 6px; }
.index-progress > div:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.index-progress > div:first-child span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.index-progress strong { color: var(--blue); white-space: nowrap; }
.progress-track { height: 3px; margin: 7px 0 6px; overflow: hidden; background: #e1e6ee; border-radius: 10px; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), var(--purple)); transition: width .25s; }
.progress-track span.indeterminate { width: 35%; animation: slide 1.2s infinite ease-in-out; }
.index-progress small { display: block; color: #7f8a9a; font-size: 11px; line-height: 1.45; }
.lan-links { margin-top: 6px; }
.lan-links a { display: block; overflow: hidden; color: var(--blue); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; }
.primary-button { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: var(--blue); border: 0; border-radius: 7px; font-size: 15px; font-weight: 700; box-shadow: 0 6px 16px rgba(40,120,255,.18); }
.primary-button:hover:not(:disabled) { background: #1769ee; }
.primary-button:disabled { color: #aeb6c2; background: #f0f2f5; box-shadow: none; cursor: not-allowed; }
.privacy-note { margin: 9px 0 0; color: #818c9c; text-align: center; font-size: 12px; }
.privacy-note span { color: var(--green); }

.workspace { min-width: 0; overflow-y: auto; grid-column: 1; grid-row: 1; background: var(--canvas); }
.home-workspace { padding: 38px clamp(20px,4vw,72px) 64px; background: linear-gradient(180deg,#f7faff 0,#f8f9fc 52%,#f4f7fb 100%); }
.home-hero { width: min(1420px,100%); min-height: 390px; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(330px,.8fr); align-items: center; gap: 48px; margin: 0 auto; padding: 50px clamp(34px,5vw,82px); overflow: hidden; position: relative; color: #fff; background: linear-gradient(135deg,#172f6c 0,#1857c8 48%,#7046f5 100%); border-radius: 26px; box-shadow: 0 28px 65px rgba(30,69,147,.22); }
.home-hero::before { content: ""; width: 420px; height: 420px; position: absolute; left: 46%; top: -280px; background: rgba(255,255,255,.12); border-radius: 50%; }
.home-hero-copy { position: relative; z-index: 2; }
.home-kicker { display: inline-flex; padding: 7px 12px; color: #dce9ff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: 13px; font-weight: 750; letter-spacing: .08em; }
.home-hero h1 { display: flex; align-items: center; gap: 18px; margin: 25px 0 12px; font-size: clamp(48px,5vw,76px); line-height: 1; letter-spacing: .08em; }
.home-hero h1 img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(12,28,79,.2)); }
.home-hero p { margin: 0; color: #e6edff; font-size: clamp(18px,1.6vw,24px); font-weight: 650; line-height: 1.7; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.home-hero-actions a { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; color: #fff; text-decoration: none; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); border-radius: 10px; font-weight: 800; transition: transform .16s ease,background .16s ease; }
.home-hero-actions a:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.home-hero-actions .home-primary-action { color: #1f5fd2; background: #fff; border-color: #fff; }
.home-hero-actions .home-primary-action:hover { background: #f3f7ff; }
.home-hero-visual { width: min(420px,100%); aspect-ratio: 1; display: grid; place-items: center; justify-self: end; position: relative; z-index: 1; }
.home-hero-visual::before { content: ""; position: absolute; inset: 8%; background: radial-gradient(circle,rgba(255,255,255,.28),rgba(255,255,255,.03) 66%,transparent 68%); border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.home-hero-visual img { width: 70%; height: 70%; position: relative; z-index: 2; object-fit: contain; filter: drop-shadow(0 22px 30px rgba(12,25,72,.3)); }
.home-orbit { position: absolute; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; }
.home-orbit.orbit-one { inset: 0; }
.home-orbit.orbit-two { inset: 19%; }
.home-introduction { width: min(1420px,100%); margin: 46px auto 0; }
.home-introduction > header { max-width: 760px; }
.home-introduction > header > span { color: var(--blue); font-size: 14px; font-weight: 800; letter-spacing: .12em; }
.home-introduction h2 { margin: 11px 0 8px; color: #263752; font-size: clamp(27px,2.2vw,38px); line-height: 1.35; }
.home-introduction header p { margin: 0; color: #718097; font-size: 16px; line-height: 1.7; }
.home-feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.home-feature-grid a { min-width: 0; min-height: 168px; display: flex; flex-direction: column; position: relative; padding: 23px; overflow: hidden; color: inherit; text-decoration: none; background: #fff; border: 1px solid #e0e7f1; border-radius: 16px; box-shadow: 0 10px 30px rgba(39,66,109,.06); transition: transform .17s ease,border-color .17s ease,box-shadow .17s ease; }
.home-feature-grid a:hover { border-color: #9ec0fa; box-shadow: 0 17px 34px rgba(39,79,145,.13); transform: translateY(-4px); }
.home-feature-grid b { position: absolute; right: 16px; top: 12px; color: #e7effc; font-size: 34px; line-height: 1; }
.home-feature-grid strong { position: relative; color: #30415c; font-size: 19px; }
.home-feature-grid span { margin-top: 14px; color: #758299; line-height: 1.7; }
.workspace-toolbar { min-height: 56px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.search-results-toolbar { gap: 12px; }
.search-toolbar-main { min-width: 0; display: flex; align-items: center; gap: 14px; }
.search-toolbar-right { min-width: 0; display: flex; align-items: center; gap: 10px; margin-left: auto; }
.result-tabs { display: flex; gap: 3px; padding: 4px; background: #f5f7fa; border-radius: 7px; }
.result-tabs button { min-width: 82px; padding: 8px 13px; color: #7b8798; background: transparent; border: 0; border-radius: 5px; font-size: 13px; }
.result-tabs button.active { color: var(--blue); background: #fff; box-shadow: 0 2px 8px rgba(43,59,82,.07); font-weight: 700; }
.search-toolbar-actions { display: flex; align-items: center; gap: 7px; }
.search-toolbar-action { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; position: relative; padding: 0 11px; color: #52617a; background: #fff; border: 1px solid #dbe3ee; border-radius: 7px; font-size: 12px; white-space: nowrap; }
.search-toolbar-action:hover,.search-toolbar-action.active { color: var(--blue); background: #f2f7ff; border-color: #a9c7fa; }
.search-toolbar-action.upload { color: #fff; background: var(--blue); border-color: var(--blue); font-weight: 750; }
.search-toolbar-action.upload:hover,.search-toolbar-action.upload.active { color: #fff; background: #1769ee; border-color: #1769ee; }
.search-toolbar-action.report-alerts-button { color: #c4434b; background: #fff7f7; border-color: #efc9cc; }
.search-toolbar-action.report-alerts-button:hover,.search-toolbar-action.report-alerts-button.active { color: #b7353d; background: #ffeded; border-color: #e99ca1; }
.search-toolbar-action:disabled { opacity: .5; cursor: not-allowed; }
.toolbar-action-icon { width: 21px; height: 21px; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 850; }
.toolbar-action-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.toolbar-action-icon.report { border-radius: 50%; }
.search-toolbar-action .report-count-badge { right: -7px; top: -9px; }
.search-toolbar-action.status { gap: 8px; }
.search-toolbar-action.status .server-state { width: auto; min-width: 0; gap: 5px; padding: 0; background: transparent; border: 0; border-radius: 0; font-size: 11px; }
.search-toolbar-action.status .server-state span { max-width: 110px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-toolbar-action.settings { color: #52617a; background: #f7f9fc; }
.search-toolbar-action.admin-all-images { color: #1768df; background: #edf4ff; border-color: #c9dcff; font-weight: 750; }
.toolbar-meta { display: flex; align-items: center; gap: 9px; color: #7d8899; font-size: 12px; }
.toolbar-meta button { width: 27px; height: 27px; color: #8d98a8; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.info-strip { min-height: 37px; display: flex; align-items: center; gap: 12px; padding: 0 18px; color: #58779f; background: #f0f6ff; border-bottom: 1px solid #e1ebfa; font-size: 13px; }
.info-strip span { color: var(--blue); font-weight: 700; }
.info-strip p { margin: 0; }

.upload-toolbar > div:first-child { display: flex; align-items: baseline; gap: 12px; }
.upload-toolbar strong { font-size: 16px; }
.upload-toolbar > div:first-child span { color: var(--muted); font-size: 12px; }
.report-toolbar > button { height: 34px; padding: 0 13px; color: var(--blue); background: #f3f7ff; border: 1px solid #d6e5ff; border-radius: 7px; font-size: 13px; font-weight: 700; }
.report-toolbar > button:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.report-files-panel { width: calc(100% - 24px); margin: 12px auto; }
.report-files-empty { min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #758196; text-align: center; }
.report-files-empty-icon { width: 70px; height: 70px; display: grid; place-items: center; color: var(--green); background: #edfbf6; border: 1px solid #ccefe1; border-radius: 50%; font-size: 32px; }
.report-files-empty h1 { margin: 18px 0 7px; color: #344156; font-size: 22px; }
.report-files-empty p { margin: 0; font-size: 14px; }
.report-workspace .result-image { cursor: pointer; }
.report-workspace .result-image a { width: 100%; height: 100%; display: block; }
.report-workspace .result-image img { transition: transform .18s ease; }
.report-workspace .result-image:hover img { transform: scale(1.025); }
.infringement-empty { min-height: calc(100% - 93px); }
.infringement-icon { width: 88px; height: 88px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border: 1px solid #d9e7ff; border-radius: 50%; box-shadow: 0 12px 30px rgba(40,120,255,.12); }
.infringement-icon svg { width: 51px; height: 51px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.infringement-empty h1 { margin-top: 22px; }

.same-print-workspace { background: #f5f7fa; }
.same-print-privacy-strip { border-bottom-color: #dce8e2; background: #f4fbf7; }
.same-print-privacy-strip > span { color: #19744f; background: #e0f5e9; }
.same-print-panel { width: min(1240px, calc(100% - 36px)); margin: 24px auto 45px; }
.same-print-card { padding: 22px; background: #fff; border: 1px solid #dfe5ed; border-radius: 13px; box-shadow: 0 10px 28px rgba(34,55,88,.065); }
.same-print-card + .same-print-card { margin-top: 20px; }
.same-print-card-header { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.same-print-card-header > div { min-width: 0; display: flex; align-items: center; gap: 13px; }
.same-print-card-header > div > b { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; }
.same-print-card-header h2 { margin: 0; color: #344156; font-size: 20px; }
.same-print-card-header p { margin: 4px 0 0; color: #7c8899; font-size: 13px; }
.same-print-card-header > strong { flex: 0 0 auto; color: #536176; font-size: 14px; }
.same-print-add-shop { margin-top: 19px; display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 12px; padding: 16px; background: #f7f9fc; border: 1px solid #e2e7ee; border-radius: 10px; }
.same-print-add-shop label { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px; color: #4f5d71; font-weight: 700; }
.same-print-add-shop input { width: 100%; height: 42px; padding: 0 12px; color: #263244; background: #fff; border: 1px solid #d7dee8; border-radius: 7px; font: inherit; box-sizing: border-box; }
.same-print-add-shop input:focus { outline: 2px solid rgba(40,120,255,.17); border-color: var(--blue); }
.same-print-add-shop button, .same-print-query-drop button, .same-print-query-actions button { min-height: 42px; padding: 0 18px; color: #fff; background: var(--blue); border: 0; border-radius: 7px; font-weight: 750; }
.same-print-add-shop button:disabled, .same-print-query-actions button:disabled { color: #a5aebb; background: #e8ebef; cursor: not-allowed; }
.same-print-scan-progress { margin-top: 14px; padding: 14px 16px; background: #f3f7ff; border: 1px solid #d6e4fb; border-radius: 9px; }
.same-print-scan-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.same-print-scan-progress strong { color: #344156; }
.same-print-scan-progress small { min-width: 0; margin-top: 7px; overflow: hidden; color: #657287; white-space: nowrap; text-overflow: ellipsis; }
.same-print-progress-track { height: 7px; margin-top: 10px; overflow: hidden; background: #dfe7f4; border-radius: 7px; }
.same-print-progress-track span { width: 0; height: 100%; display: block; background: var(--blue); border-radius: inherit; transition: width .16s ease; }
.same-print-scan-actions { display: flex; gap: 7px; margin-top: 7px; }
.same-print-scan-actions button { min-width: 56px; height: 30px; color: #526074; background: #fff; border: 1px solid #d4dce7; border-radius: 6px; }
.same-print-shop-list { margin-top: 14px; display: grid; gap: 10px; }
.same-print-shop-row { display: grid; grid-template-columns: auto minmax(180px,1fr) auto auto; align-items: center; gap: 13px; padding: 13px 14px; border: 1px solid #e0e5ec; border-radius: 9px; }
.same-print-shop-row:hover { border-color: #c8d8ef; background: #fbfdff; }
.same-print-shop-check { width: 20px; height: 20px; accent-color: var(--blue); }
.same-print-shop-details { min-width: 0; }
.same-print-shop-name { width: min(360px,100%); height: 34px; padding: 0; color: #344156; background: transparent; border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 750; }
.same-print-shop-name:not(:disabled) { padding: 0 9px; background: #fff; border-color: var(--blue); border-radius: 5px; }
.same-print-shop-details small { display: block; margin-top: 3px; overflow: hidden; color: #7b8798; white-space: nowrap; text-overflow: ellipsis; }
.same-print-shop-stats { color: #526074; text-align: right; white-space: nowrap; }
.same-print-shop-stats strong, .same-print-shop-stats small { display: block; }
.same-print-shop-actions { display: flex; gap: 6px; }
.same-print-shop-actions button, .same-print-secondary-button, .same-print-scope-row button { min-height: 34px; padding: 0 11px; color: #526074; background: #fff; border: 1px solid #d7dee8; border-radius: 6px; font-weight: 650; }
.same-print-shop-actions button.danger { color: #d94c53; border-color: #efc5c8; }
.same-print-empty { margin-top: 14px; padding: 28px; color: #718095; text-align: center; background: #fafbfc; border: 1px dashed #d6dde7; border-radius: 9px; }
.same-print-empty strong { color: #536176; font-size: 16px; }
.same-print-empty p { margin: 8px 0 0; }
.same-print-mode-tabs { margin-top: 18px; display: inline-flex; gap: 4px; padding: 4px; background: #edf1f6; border-radius: 9px; }
.same-print-mode-tabs button { min-width: 150px; height: 38px; padding: 0 15px; color: #657287; background: transparent; border: 0; border-radius: 7px; font-weight: 750; }
.same-print-mode-tabs button.active { color: var(--blue); background: #fff; box-shadow: 0 2px 8px rgba(39,57,84,.11); }
.same-print-scope-row { margin-top: 18px; display: flex; align-items: center; gap: 9px; padding: 12px 14px; background: #f7f9fc; border: 1px solid #e2e7ee; border-radius: 9px; }
.same-print-scope-row > strong { flex: 0 0 auto; color: #47556a; }
#samePrintScopeList { min-width: 0; display: flex; flex: 1; flex-wrap: wrap; gap: 7px; }
#samePrintScopeList label { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; color: #4d5b70; background: #fff; border: 1px solid #dae1eb; border-radius: 18px; }
#samePrintScopeList input { accent-color: var(--blue); }
#samePrintScopeList > span { color: #8792a2; }
.same-print-accuracy-row { margin-top: 10px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; color: #5e6c80; background: #fbfcfe; border: 1px solid #e2e7ee; border-radius: 9px; }
.same-print-accuracy-row label { flex: 0 0 auto; color: #47556a; font-weight: 750; }
.same-print-accuracy-row select { height: 36px; padding: 0 32px 0 11px; color: #344156; background: #fff; border: 1px solid #cfd8e5; border-radius: 7px; font: inherit; font-weight: 700; }
.same-print-accuracy-row span { min-width: 0; flex: 1; }
.same-print-accuracy-row em { color: #d4454d; font-style: normal; font-weight: 750; }
.same-print-shop-row.outdated { border-color: #efc2c5; background: #fff9f9; }
.same-print-index-upgrade { margin-left: 8px; color: #d4454d; font-weight: 750; }
.same-print-query-drop { min-height: 205px; margin-top: 14px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: #68768a; background: #fbfcfe; border: 2px dashed #cfd7e3; border-radius: 11px; outline: none; }
.same-print-query-drop.dragging, .same-print-query-drop:focus-visible { border-color: var(--blue); background: #f3f7ff; }
.same-print-query-drop svg { width: 55px; height: 55px; fill: none; stroke: var(--blue); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.same-print-query-drop strong { color: #344156; font-size: 18px; }
.same-print-query-drop button { margin-top: 5px; }
.same-print-query-list { margin-top: 14px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.same-print-query-item { min-width: 0; position: relative; padding: 8px; border: 1px solid #dfe5ed; border-radius: 9px; }
.same-print-query-item img { width: 100%; aspect-ratio: 1; display: block; object-fit: contain; background: #f2f4f7; border-radius: 6px; }
.same-print-query-item strong { margin-top: 7px; display: block; overflow: hidden; color: #435167; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.same-print-query-item footer { margin-top: 7px; display: flex; gap: 6px; }
.same-print-query-item footer button { min-width: 0; height: 30px; flex: 1; padding: 0 5px; color: #526074; background: #fff; border: 1px solid #d7dee8; border-radius: 5px; font-size: 12px; }
.same-print-query-item footer button.manual { color: var(--blue); border-color: #b9d2fb; background: #f3f7ff; }
.same-print-query-item > button { width: 26px; height: 26px; position: absolute; top: 13px; right: 13px; color: #fff; background: rgba(33,43,58,.74); border: 0; border-radius: 50%; font-size: 17px; }
.same-print-crop-editor { margin-top: 14px; padding: 14px; background: #eef1f5; border: 1px solid #d6dde7; border-radius: 10px; }
.same-print-crop-editor > header, .same-print-crop-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.same-print-crop-editor > header > div { min-width: 0; flex: 1; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.same-print-crop-editor > header > button { flex-shrink: 0; white-space: nowrap; }
.same-print-crop-editor > header span { margin-top: 3px; color: #737f91; font-size: 12px; }
.same-print-crop-editor button { height: 34px; padding: 0 12px; color: #526074; background: #fff; border: 1px solid #d3dae4; border-radius: 6px; }
.same-print-crop-editor button.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.same-print-crop-stage { min-height: 360px; margin: 12px 0; display: grid; place-items: center; overflow: hidden; background: #252a31; border-radius: 7px; }
.same-print-crop-stage canvas { width: min(100%,760px); height: auto; display: block; cursor: crosshair; touch-action: none; }
.same-print-crop-editor > footer span { min-width: 0; flex: 1; color: #657287; text-align: center; }
.same-print-query-actions { margin-top: 16px; display: flex; align-items: center; justify-content: flex-end; gap: 15px; }
.same-print-query-actions span { min-width: 0; flex: 1; color: #68768a; }
.same-print-library-check { min-height: 150px; margin-top: 14px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 22px; background: linear-gradient(135deg,#f5f9ff,#fbfdff); border: 1px solid #d8e4f5; border-radius: 11px; }
.same-print-library-check-icon { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; box-shadow: 0 8px 20px rgba(40,120,255,.22); font-size: 28px; font-weight: 800; }
.same-print-library-check strong { color: #344156; font-size: 18px; }
.same-print-library-check p { margin: 7px 0 0; color: #6d7a8d; line-height: 1.6; }
.same-print-library-check > button { min-height: 42px; padding: 0 19px; color: #fff; background: var(--blue); border: 0; border-radius: 7px; font-weight: 750; }
.same-print-library-check > button:disabled { color: #a5aebb; background: #e5e9ee; cursor: not-allowed; }
.same-print-results-card { scroll-margin-top: 10px; }
.same-print-search-progress { margin-top: 18px; display: flex; align-items: center; gap: 10px; padding: 13px; color: #536176; background: #f3f7ff; border-radius: 8px; }
.same-print-search-progress > span { width: 18px; height: 18px; border: 2px solid #c7d9f7; border-top-color: var(--blue); border-radius: 50%; animation: same-print-spin .7s linear infinite; }
.same-print-search-progress > strong { min-width: 0; flex: 1; }
.same-print-search-progress > button { height: 32px; padding: 0 11px; color: #d54b52; background: #fff; border: 1px solid #efc2c5; border-radius: 6px; font-weight: 700; }
.same-print-results { margin-top: 17px; display: grid; gap: 18px; }
.same-print-result-group { padding-top: 17px; border-top: 1px solid #e2e7ee; }
.same-print-result-group:first-child { padding-top: 0; border-top: 0; }
.same-print-result-query { display: flex; align-items: center; gap: 11px; }
.same-print-result-query img { width: 58px; height: 58px; object-fit: contain; background: #f1f3f6; border-radius: 6px; }
.same-print-result-query h3 { margin: 0; color: #344156; font-size: 17px; }
.same-print-result-query p { margin: 4px 0 0; color: #718095; }
.same-print-match-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.same-print-match-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #dfe5ed; border-radius: 9px; cursor: zoom-in; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.same-print-match-card:hover, .same-print-match-card:focus-visible { border-color: #86b2fa; box-shadow: 0 10px 24px rgba(38,69,112,.13); transform: translateY(-2px); outline: none; }
.same-print-match-card.high { border-color: #efadb0; box-shadow: 0 0 0 1px rgba(222,66,73,.08); }
.same-print-match-images { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #e7ebf0; }
.same-print-match-images figure { margin: 0; position: relative; background: #f3f5f8; }
.same-print-match-images img { width: 100%; aspect-ratio: 1; display: block; object-fit: contain; }
.same-print-match-images figcaption { position: absolute; left: 5px; bottom: 5px; padding: 2px 5px; color: #fff; background: rgba(35,44,58,.74); border-radius: 4px; font-size: 10px; }
.same-print-match-card footer { padding: 10px; }
.same-print-match-card footer > span { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.same-print-risk { color: #d8444c; font-weight: 800; }
.same-print-risk.similar { color: #d48717; }
.same-print-score { color: #526074; font-weight: 750; }
.same-print-match-card strong { margin-top: 7px; display: block; overflow: hidden; color: #3f4d62; white-space: nowrap; text-overflow: ellipsis; }
.same-print-match-card small { margin-top: 4px; display: block; overflow: hidden; color: #7b8798; white-space: nowrap; text-overflow: ellipsis; }
.same-print-no-match { margin-top: 12px; padding: 24px; color: #6f7d90; text-align: center; background: #f8fafc; border: 1px dashed #d6dde7; border-radius: 8px; }
.same-print-duplicate-group { padding: 15px; background: #fbfcfe; border: 1px solid #e0e6ee; border-radius: 10px; }
.same-print-group-copy-toolbar, .same-print-group-copy-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.same-print-group-copy-toolbar { padding: 12px; background: #f0f6ff; border-radius: 8px; }
.same-print-group-copy-actions { margin-top: 10px; }
.same-print-group-selection { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.same-print-group-copy-toolbar button, .same-print-group-copy-actions button { padding: 7px 12px; }
.same-print-duplicate-group.high { border-color: #efb5b8; background: #fffafa; }
.same-print-duplicate-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.same-print-duplicate-header h3 { margin: 0; color: #344156; font-size: 17px; }
.same-print-duplicate-header p { margin: 5px 0 0; color: #718095; }
.same-print-duplicate-header > strong { flex: 0 0 auto; color: #d8444c; }
.same-print-duplicate-header > strong.similar { color: #d48717; }
.same-print-duplicate-grid { margin-top: 13px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.same-print-duplicate-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #dfe5ed; border-radius: 8px; cursor: zoom-in; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.same-print-duplicate-card:hover, .same-print-duplicate-card:focus-visible { border-color: #86b2fa; box-shadow: 0 10px 24px rgba(38,69,112,.13); transform: translateY(-2px); outline: none; }
.same-print-duplicate-card .same-print-match-images { grid-template-columns: 1fr 1fr; }
.same-print-duplicate-card footer { padding: 9px; }
.same-print-duplicate-card footer > span { display: flex; justify-content: space-between; gap: 8px; }
.same-print-duplicate-card footer strong, .same-print-duplicate-card footer small { display: block; margin-top: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.same-print-duplicate-card footer strong { color: #3f4d62; }
.same-print-duplicate-card footer small { color: #7b8798; }
.same-print-evidence { color: #2670d9 !important; }
.same-print-product-data { margin: 9px 0 7px; display: grid; gap: 6px; cursor: default; }
.same-print-product-data > div { min-width: 0; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 6px; }
.same-print-product-data dt { color: #748196; font-size: 12px; }
.same-print-product-data dd { min-width: 0; margin: 0; overflow: hidden; color: #3f4d62; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; user-select: text; }
.same-print-product-data dd.unrecognized { color: #a1aaba; }
.same-print-product-data button { min-height: 26px; padding: 2px 6px; color: #2670d9; background: #f4f8ff; border: 1px solid #d4e2f9; border-radius: 5px; font-size: 11px; cursor: pointer; }
.same-print-product-data button:disabled { color: #a5adba; background: #f8f9fb; border-color: #e3e7ee; cursor: not-allowed; }
.same-print-adjust-button { width: 100%; min-height: 32px; margin-top: 9px; padding: 5px 8px; color: #2670d9; background: #f3f7ff; border: 1px solid #c8dcfa; border-radius: 6px; font: inherit; cursor: pointer; }
.same-print-adjust-button:hover { background: #e5efff; }
.same-print-crop-editor button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 600px) {
  .same-print-crop-editor > footer { flex-wrap: wrap; }
  .same-print-crop-editor > footer span { order: -1; flex: 1 0 100%; }
  .same-print-crop-stage { min-height: 240px; }
}
.same-print-preview-modal { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 18px; background: rgba(20,28,39,.72); backdrop-filter: blur(3px); }
body.same-print-preview-open { overflow: hidden; }
.same-print-preview-card { --same-print-preview-size: min(76vh, calc(100vw - 44px), 900px); width: var(--same-print-preview-size); overflow: hidden; background: #fff; border-radius: 13px; box-shadow: 0 24px 72px rgba(0,0,0,.36); }
.same-print-preview-card > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 17px; border-bottom: 1px solid #e0e5ec; }
.same-print-preview-card > header > div { min-width: 0; }
.same-print-preview-card > header strong, .same-print-preview-card > header span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.same-print-preview-card > header strong { color: #344156; font-size: 16px; }
.same-print-preview-card > header span { margin-top: 3px; color: #7a8798; font-size: 12px; }
.same-print-preview-card > header button { width: 36px; height: 36px; flex: 0 0 auto; color: #657287; background: #f4f6f9; border: 0; border-radius: 50%; font-size: 25px; }
.same-print-preview-stage { width: 100%; aspect-ratio: 1; position: relative; overflow: hidden; touch-action: none; background-color: #fff; }
.same-print-preview-stage.transparent-background { background-image: linear-gradient(45deg,#e5e8ed 25%,transparent 25%),linear-gradient(-45deg,#e5e8ed 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e5e8ed 75%),linear-gradient(-45deg,transparent 75%,#e5e8ed 75%); background-position: 0 0,0 10px,10px -10px,-10px 0; background-size: 20px 20px; }
.same-print-preview-stage img { position: absolute; left: 50%; top: 50%; max-width: none; max-height: none; user-select: none; -webkit-user-drag: none; transform-origin: center; will-change: width,height,transform; }
.same-print-preview-stage.drag-mode { cursor: grab; }
.same-print-preview-stage.dragging { cursor: grabbing; }
.same-print-preview-card > footer { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 13px; border-top: 1px solid #e0e5ec; }
.same-print-preview-background, .same-print-preview-tools { display: flex; align-items: center; gap: 7px; }
.same-print-preview-background label { color: #536176; font-weight: 700; }
.same-print-preview-background button, .same-print-preview-tools button, .same-print-preview-tools output { min-width: 38px; height: 36px; display: grid; place-items: center; padding: 0 9px; color: #526074; background: #fff; border: 1px solid #d4dce7; border-radius: 7px; font: inherit; }
.same-print-preview-background button.active, .same-print-preview-tools button.active { color: var(--blue); border-color: #94baff; background: #f2f7ff; }
#samePrintPreviewColorButton { min-width: 38px; padding: 5px; }
#samePrintPreviewColorSwatch { width: 24px; height: 24px; display: block; background: #fff; border: 1px solid #bfc7d2; }
#samePrintPreviewColor { width: 1px; height: 1px; position: absolute; opacity: 0; pointer-events: none; }
#samePrintPreviewPercent { min-width: 58px; font-size: 13px; }
@media (max-width: 680px) {
  .auth-card { padding: 25px 20px; border-radius: 14px; }
  .profile-layout { width: calc(100% - 22px); grid-template-columns: 1fr; }
  .profile-layout { gap: 12px; margin-top: 12px; }
  .profile-navigation { position: static; min-height: 0; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; padding: 6px; }
  .profile-navigation > strong { display: none; }
  .profile-navigation > button { min-height: 65px; flex-direction: column; justify-content: center; gap: 7px; padding: 9px 2px; font-size: 12px; white-space: nowrap; }
  .profile-navigation svg { width: 19px; height: 19px; }
  .profile-content > article { min-height: 380px; }
  .profile-name-card,.profile-password-card { padding: 20px 16px; }
  .profile-name-card form,.profile-password-card form { gap: 17px; margin-top: 32px; }
  .profile-name-card label,.profile-password-card label { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .profile-name-card form > button,.profile-password-card form > button { width: 100%; margin: 8px 0 0; }
  .profile-password-card .password-rule { margin-left: 0; }
  .profile-images-card > header { align-items: flex-start; flex-direction: column; }
  .profile-image-actions { width: 100%; justify-content: space-between; }
  .profile-images-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 11px; }
  .admin-console-grid { width: calc(100% - 22px); grid-template-columns: 1fr; }
  .admin-images-layout { width: calc(100% - 22px); grid-template-columns: 1fr; }
  .admin-image-user-list { max-height: 300px; }
  .admin-image-gallery-card > header { align-items: flex-start; flex-direction: column; }
  .admin-image-bulk-actions { width: 100%; justify-content: space-between; }
  .admin-image-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 11px; }
  .admin-audit-modal { padding: 8px; }
  .admin-audit-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .admin-audit-dialog > header { min-height: 64px; padding: 12px; }
  .admin-audit-dialog-body { padding: 12px; }
  .admin-audit-filters { grid-template-columns: 1fr 1fr; }
  .admin-audit-table { overflow-x: auto; }
  .admin-audit-head,.admin-audit-row { min-width: 780px; }
  .admin-console-row { grid-template-columns: 1fr; }
  .admin-console-actions { justify-content: flex-start; }
  .admin-account-modal { padding: 8px; }
  .admin-account-dialog,.admin-user-settings-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .admin-account-dialog > header { min-height: 64px; padding: 12px; }
  .admin-account-dialog-body { padding: 12px; }
  .admin-device-overview { grid-template-columns: 1fr; align-items: stretch; }
  .admin-device-overview label { grid-template-columns: 1fr 86px auto; }
  .admin-device-detail-row dl { grid-template-columns: 1fr; gap: 8px; }
  .admin-setting-section,.admin-reset-password-form,.admin-rename-user-form { grid-template-columns: 1fr; align-items: stretch; }
  .admin-setting-section > button,.admin-reset-password-form > button,.admin-rename-user-form > button { width: 100%; }
  .admin-recycle-row { grid-template-columns: 1fr; }
  .admin-recycle-actions { justify-content: stretch; }
  .admin-recycle-actions button { flex: 1; }
  .same-print-accuracy-row { align-items: flex-start; flex-wrap: wrap; }
  .same-print-accuracy-row span, .same-print-accuracy-row em { width: 100%; flex-basis: 100%; }
  .same-print-preview-modal { padding: 8px; }
  .same-print-preview-card { --same-print-preview-size: min(70vh, calc(100vw - 16px)); }
  .same-print-preview-card > footer { align-items: stretch; flex-direction: column; }
  .same-print-preview-background, .same-print-preview-tools { justify-content: center; }
}
@keyframes same-print-spin { to { transform: rotate(360deg); } }
.flow-check-panel { width: min(760px, calc(100% - 36px)); margin: 36px auto; }
.flow-check-card { padding: 28px; background: linear-gradient(180deg, #f7faff 0, #fff 150px); border: 2px solid #a9c8ff; border-radius: 13px; box-shadow: 0 14px 38px rgba(40,120,255,.13); }
.flow-check-card > header { display: flex; align-items: center; gap: 16px; margin-bottom: 25px; }
.flow-check-icon { width: 62px; height: 62px; display: grid; flex: 0 0 auto; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 12px; }
.flow-check-icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.flow-check-card h1 { margin: 0; color: #344156; font-size: 24px; }
.flow-check-card header p { margin: 7px 0 0; color: #7c8899; font-size: 14px; }
.flow-check-card > label { display: block; margin-bottom: 10px; color: #344f78; font-size: 16px; font-weight: 750; }
.flow-check-field { display: grid; grid-template-columns: minmax(0, 1fr) 122px; gap: 12px; }
.flow-check-field input { height: 54px; padding: 0 16px; color: #26364d; background: #fff; border: 2px solid #82adf7; border-radius: 9px; outline: 0; font-size: 18px; box-shadow: inset 0 1px 2px rgba(45,72,110,.04); }
.flow-check-field input::placeholder { color: #8b98aa; }
.flow-check-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40,120,255,.13); }
.flow-check-field button { color: #fff; background: var(--blue); border: 0; border-radius: 9px; font-size: 17px; font-weight: 750; }
.flow-check-field button:disabled { color: #aeb6c2; background: #edf0f4; cursor: not-allowed; }
.flow-check-result { min-height: 94px; display: flex; align-items: center; gap: 15px; margin-top: 20px; padding: 17px 19px; background: #f7f9fc; border: 1px solid #e1e6ed; border-radius: 10px; }
.flow-result-icon { width: 48px; height: 48px; display: grid; flex: 0 0 auto; place-items: center; color: #fff; background: #758196; border-radius: 50%; font-size: 24px; font-weight: 700; }
.flow-check-result > div { min-width: 0; }
.flow-check-result small, .flow-check-result strong { display: block; }
.flow-check-result small { color: #7c8899; font-size: 12px; }
.flow-check-result strong { margin-top: 3px; color: #344156; font-size: 21px; }
.flow-check-result.not-interrupted { background: #f0fbf6; border-color: #cdeedf; }
.flow-check-result.not-interrupted .flow-result-icon { background: var(--green); }
.flow-check-result.suspected-interruption { background: #fff4f4; border-color: #f4cece; }
.flow-check-result.suspected-interruption .flow-result-icon { background: #e44c4c; }
.flow-check-result.new-store { background: #fff9ed; border-color: #f3dfb5; }
.flow-check-result.new-store .flow-result-icon { background: #d9951d; }
.flow-check-result.lookup-error { background: #fff4f4; border-color: #f4cece; }
.flow-check-result.lookup-error .flow-result-icon { background: #e44c4c; }
.main-image-panel { width: min(1220px, calc(100% - 36px)); margin: 24px auto 40px; }
.main-image-card { padding: 22px; background: #fff; border: 1px solid #dfe5ed; border-radius: 13px; box-shadow: 0 10px 30px rgba(34,55,88,.07); }
.main-image-card + .main-image-card { margin-top: 20px; }
.main-image-card-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.main-image-step { min-width: 0; display: flex; align-items: center; gap: 13px; }
.main-image-step > b { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-size: 16px; }
.main-image-step h2 { margin: 0; color: #344156; font-size: 20px; }
.main-image-step p { margin: 5px 0 0; color: #7c8899; font-size: 13px; }
.template-admin-actions { display: flex; align-items: center; gap: 10px; }
.template-admin-actions > button, .generate-tshirt-button, .tshirt-output-section header button { height: 39px; padding: 0 16px; color: #fff; background: var(--blue); border: 0; border-radius: 8px; font-weight: 700; }
.template-source-filters { height: 39px; display: flex; align-items: center; padding: 3px; background: #f0f3f7; border: 1px solid #dfe5ed; border-radius: 9px; }
.template-source-filters button { height: 31px; padding: 0 12px; color: #677489; background: transparent; border: 0; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.template-source-filters button.active { color: #176ff2; background: #fff; box-shadow: 0 1px 5px rgba(34,55,88,.12); }
.template-source-filters button span { min-width: 19px; height: 19px; display: inline-grid; place-items: center; margin-left: 4px; padding: 0 5px; color: inherit; background: #e4e9f0; border-radius: 10px; font-size: 10px; }
.template-source-filters button.active span { background: #e9f2ff; }
.tshirt-template-upload-progress { margin-top: 15px; padding: 11px 12px; background: #f5f8fc; border: 1px solid #dce4ef; border-radius: 8px; }
.tshirt-template-upload-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tshirt-template-upload-progress strong { min-width: 0; overflow: hidden; color: #4c5b70; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tshirt-template-upload-progress > div:first-child span { flex: 0 0 auto; color: #6d7b8f; font-size: 10px; }
.tshirt-template-upload-track { height: 7px; margin-top: 8px; overflow: hidden; background: #e4eaf2; border-radius: 999px; }
.tshirt-template-upload-track span { width: 0; height: 100%; display: block; background: linear-gradient(90deg,#2878ff,#65a3ff); border-radius: inherit; transition: width .18s ease; }
.tshirt-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 13px; margin-top: 20px; }
.tshirt-template-item { min-width: 0; padding: 9px; text-align: left; background: #f8fafc; border: 2px solid transparent; border-radius: 10px; transition: .15s; }
.tshirt-template-item:hover { background: #f3f7ff; border-color: #cfe0ff; }
.tshirt-template-item.selected { background: #eff5ff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,120,255,.08); }
.tshirt-template-item img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: contain; background: #fff; border-radius: 7px; }
.tshirt-template-item strong, .tshirt-template-item small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tshirt-template-item strong { margin-top: 9px; color: #344156; font-size: 13px; }
.tshirt-template-item small { margin-top: 3px; color: #8a95a5; font-size: 11px; }
.tshirt-template-item .tshirt-template-uploader { color: #64748b; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; white-space: normal; }
.tshirt-template-empty { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 18px; color: #8a95a5; background: #f8fafc; border: 1px dashed #cfd8e5; border-radius: 10px; }
.tshirt-template-empty strong { color: #526074; font-size: 16px; }
.tshirt-template-empty span { margin-top: 6px; font-size: 12px; }
.main-image-editor-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 20px; margin-top: 20px; }
.main-image-editor-grid .main-image-card { min-width: 0; }
.tshirt-editor-layout { display: grid; grid-template-columns: minmax(300px, 1fr) 245px; align-items: start; gap: 20px; margin-top: 20px; }
.tshirt-preview-shell { min-height: 430px; display: grid; place-items: center; overflow: hidden; background-color: #edf1f6; background-image: linear-gradient(45deg,#e3e8ef 25%,transparent 25%),linear-gradient(-45deg,#e3e8ef 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e3e8ef 75%),linear-gradient(-45deg,transparent 75%,#e3e8ef 75%); background-position: 0 0,0 8px,8px -8px,-8px 0; background-size: 16px 16px; border: 1px solid #d9e0e9; border-radius: 10px; }
.tshirt-preview-empty { color: #7f8b9b; font-size: 15px; }
.tshirt-preview-canvas { width: 100%; position: relative; overflow: hidden; user-select: none; touch-action: none; }
.tshirt-template-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.tshirt-template-layer > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: fill; pointer-events: none; }
.tshirt-preview-canvas.template-drag-mode { cursor: grab; }
.tshirt-preview-canvas.template-drag-mode.dragging-template { cursor: grabbing; }
.tshirt-preview-canvas.template-drag-mode .tshirt-print-area { pointer-events: none; }
.tshirt-print-area { position: absolute; z-index: 2; display: grid; place-items: center; overflow: visible; color: #1169eb; background: rgba(40,120,255,.08); border: 2px dashed #1672fa; cursor: move; touch-action: none; box-shadow: 0 0 0 1px rgba(255,255,255,.75); }
.tshirt-print-area:focus-visible { outline: 3px solid rgba(40,120,255,.25); outline-offset: 3px; }
.tshirt-print-area > span { z-index: 1; padding: 4px 7px; background: rgba(255,255,255,.88); border-radius: 5px; font-size: 12px; font-weight: 700; pointer-events: none; }
.tshirt-print-area > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; pointer-events: none; }
.tshirt-print-area.align-top > img { object-position: center top; }
.tshirt-print-area > i { width: 14px; height: 14px; position: absolute; z-index: 3; background: #fff; border: 2px solid #1672fa; border-radius: 50%; }
.tshirt-print-area > i[data-handle="nw"] { left: -8px; top: -8px; cursor: nwse-resize; }
.tshirt-print-area > i[data-handle="ne"] { right: -8px; top: -8px; cursor: nesw-resize; }
.tshirt-print-area > i[data-handle="sw"] { left: -8px; bottom: -8px; cursor: nesw-resize; }
.tshirt-print-area > i[data-handle="se"] { right: -8px; bottom: -8px; cursor: nwse-resize; }
.tshirt-area-controls { min-width: 0; padding: 15px; background: #f7f9fc; border: 1px solid #e1e6ed; border-radius: 10px; }
.selected-template-name span, .selected-template-name strong { display: block; }
.selected-template-name span { color: #8490a1; font-size: 11px; }
.selected-template-name strong { margin-top: 4px; overflow: hidden; color: #344156; font-size: 16px; white-space: nowrap; text-overflow: ellipsis; }
.selected-design-name { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e0e5ec; }
.tshirt-area-controls > label { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 18px; color: #5d6a7d; font-size: 12px; font-weight: 700; }
.tshirt-area-controls label output { color: var(--blue); }
.tshirt-area-controls input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--blue); }
.template-transform-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.template-transform-actions button { min-height: 35px; color: #526074; background: #fff; border: 1px solid #d8dfe8; border-radius: 7px; font-size: 12px; font-weight: 700; }
.template-transform-actions button.active { color: #176ff2; background: #edf5ff; border-color: #8bb6ff; }
.template-transform-actions button:disabled { color: #adb5c0; background: #f1f3f6; cursor: not-allowed; }
.template-transform-position { margin-top: 9px; color: #7a8798; font-size: 10px; text-align: center; }
.tshirt-area-controls > .print-align-option { min-height: 58px; display: flex; grid-template-columns: none; align-items: center; gap: 10px; margin-top: 17px; padding: 10px 11px; background: #fff; border: 1px solid #dfe5ed; border-radius: 8px; cursor: pointer; }
.print-align-option input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--blue); }
.print-align-option span { min-width: 0; }
.print-align-option strong, .print-align-option small { display: block; }
.print-align-option strong { color: #3f4c60; font-size: 13px; }
.print-align-option small { margin-top: 3px; color: #8490a1; font-size: 10px; font-weight: 500; line-height: 1.45; }
.print-area-position { margin-top: 16px; padding: 9px; color: #687589; background: #fff; border: 1px solid #e1e6ed; border-radius: 7px; font-size: 11px; line-height: 1.55; }
.print-area-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.print-area-actions button, .template-edit-controls button { min-height: 35px; color: #526074; background: #fff; border: 1px solid #d8dfe8; border-radius: 7px; font-size: 12px; font-weight: 700; }
.print-area-actions button:disabled { color: #adb5c0; background: #f1f3f6; }
.template-edit-controls { margin-top: 17px; padding-top: 15px; border-top: 1px solid #dfe5ed; }
.template-edit-controls label { display: block; color: #657287; font-size: 11px; font-weight: 700; }
.template-edit-controls input { width: 100%; height: 35px; margin: 6px 0 8px; padding: 0 9px; border: 1px solid #d8dfe8; border-radius: 7px; outline: 0; }
.template-edit-controls button { width: 100%; margin-top: 7px; color: var(--blue); border-color: #cfe0ff; }
.template-edit-controls button.danger { color: var(--danger); border-color: #f0d1d1; }
.template-edit-controls button.danger.confirming { color: #fff; background: var(--danger); border-color: var(--danger); }
.design-upload-card { align-self: start; }
.tshirt-design-drop { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 20px; color: #647287; background: #f8faff; border: 1.5px dashed #b9cae3; border-radius: 10px; cursor: pointer; transition: .15s; }
.tshirt-design-drop:hover, .tshirt-design-drop.dragover { color: var(--blue); background: #f1f6ff; border-color: var(--blue); }
.tshirt-design-drop.processing { opacity: .6; cursor: wait; pointer-events: none; }
.tshirt-design-drop > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--blue); background: #e9f2ff; border-radius: 50%; font-size: 26px; }
.tshirt-design-drop strong { margin-top: 12px; font-size: 15px; }
.tshirt-design-drop small { margin-top: 5px; color: #909bac; font-size: 11px; }
.tshirt-design-import-progress { margin-top: 12px; padding: 11px 12px; background: #f5f8fc; border: 1px solid #dce4ef; border-radius: 8px; }
.tshirt-design-import-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tshirt-design-import-progress strong { min-width: 0; overflow: hidden; color: #4c5b70; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tshirt-design-import-progress > div:first-child span { flex: 0 0 auto; color: #6d7b8f; font-size: 10px; }
.tshirt-design-import-track { height: 7px; margin-top: 8px; overflow: hidden; background: #e4eaf2; border-radius: 999px; }
.tshirt-design-import-track span { width: 0; height: 100%; display: block; background: linear-gradient(90deg,#2878ff,#65a3ff); border-radius: inherit; transition: width .18s ease; }
.tshirt-design-list { max-height: 330px; overflow-y: auto; margin-top: 12px; }
.tshirt-design-list > p { margin: 0; padding: 18px 0; color: #929dac; text-align: center; font-size: 12px; }
.tshirt-design-row { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 10px; margin: 3px 0; padding: 8px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; transition: .15s; }
.tshirt-design-row:hover { background: #f5f8fc; }
.tshirt-design-row.active { background: #eef5ff; border-color: #78aaff; box-shadow: 0 0 0 2px rgba(40,120,255,.07); }
.tshirt-design-row:focus-visible { outline: 2px solid rgba(40,120,255,.4); outline-offset: 1px; }
.tshirt-design-row img { width: 54px; height: 54px; object-fit: contain; background-color: #f1f3f6; background-image: linear-gradient(45deg,#e1e5ea 25%,transparent 25%),linear-gradient(-45deg,#e1e5ea 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e1e5ea 75%),linear-gradient(-45deg,transparent 75%,#e1e5ea 75%); background-position: 0 0,0 6px,6px -6px,-6px 0; background-size: 12px 12px; border-radius: 6px; }
.tshirt-design-row div { min-width: 0; }
.tshirt-design-row strong, .tshirt-design-row small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tshirt-design-row strong { color: #435167; font-size: 12px; }
.tshirt-design-row small { margin-top: 4px; color: #8c97a7; font-size: 10px; }
.tshirt-design-row button { width: 28px; height: 28px; color: var(--danger); background: #fff5f5; border: 0; border-radius: 50%; }
.tshirt-design-list-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.tshirt-design-list-actions button { height: 34px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.clear-designs { color: #687589; background: #f6f8fb; border: 1px solid #e0e5ec; }
.reset-designs { color: #176ff2; background: #eef5ff; border: 1px solid #cddfff; }
.tshirt-design-list-actions button:disabled { color: #a8b1bd; background: #f1f3f6; border-color: #e0e4e9; cursor: not-allowed; }
.generate-main-image-card { margin-top: 20px; }
.generate-tshirt-button { min-width: 150px; }
.generate-tshirt-button:disabled { color: #aeb6c2; background: #edf0f4; }
.tshirt-generate-actions { display: flex; align-items: flex-end; gap: 12px; }
.tshirt-filename-option { width: 235px; display: grid; gap: 6px; }
.tshirt-filename-option label { display: flex; align-items: center; gap: 7px; color: #566479; font-size: 11px; font-weight: 700; }
.tshirt-filename-option label input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.tshirt-filename-option > input { width: 100%; height: 38px; padding: 0 10px; color: #344156; background: #fff; border: 1px solid #d7dfe9; border-radius: 7px; outline: 0; }
.tshirt-filename-option > input:focus { border-color: #72a5ff; box-shadow: 0 0 0 3px rgba(40,120,255,.08); }
.tshirt-filename-option > input:disabled { color: #a8b1bf; background: #f1f3f6; }
.tshirt-output-size-settings { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 14px 16px; background: #f7f9fc; border: 1px solid #e1e6ed; border-radius: 9px; }
.tshirt-output-size-settings > div:first-child strong, .tshirt-output-size-settings > div:first-child small { display: block; }
.tshirt-output-size-settings > div:first-child strong { color: #435167; font-size: 14px; }
.tshirt-output-size-settings > div:first-child small { margin-top: 4px; color: #8894a5; font-size: 11px; }
.tshirt-output-size-modes { display: flex; align-items: center; gap: 7px; }
.tshirt-output-size-modes > button { height: 36px; padding: 0 15px; color: #5e6b7e; background: #fff; border: 1px solid #d7dee8; border-radius: 7px; font-weight: 700; }
.tshirt-output-size-modes > button.active { color: #176ff2; background: #eef5ff; border-color: #7eafff; box-shadow: 0 0 0 2px rgba(40,120,255,.08); }
.tshirt-output-size-modes > button:disabled { opacity: .55; }
.tshirt-output-size-modes label { height: 36px; display: flex; align-items: center; overflow: hidden; background: #fff; border: 1px solid #cfd8e5; border-radius: 7px; }
.tshirt-output-size-modes label.disabled { opacity: .48; }
.tshirt-output-size-modes input { width: 72px; height: 100%; padding: 0 8px; color: #344156; text-align: right; background: transparent; border: 0; outline: 0; font-weight: 700; }
.tshirt-output-size-modes label:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(40,120,255,.12); }
.tshirt-output-size-modes label span { padding-right: 10px; color: #69768a; font-size: 12px; white-space: nowrap; }
.tshirt-generate-progress { height: 44px; position: relative; margin-top: 18px; overflow: hidden; background: #edf2f8; border-radius: 8px; }
.tshirt-generate-progress > span { width: 0; position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg,#dceaff,#c5ddff); transition: width .2s; }
.tshirt-generate-progress > strong { position: relative; z-index: 1; display: block; padding: 13px 15px; color: #45617f; font-size: 12px; }
.tshirt-output-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e7ee; }
.tshirt-output-section > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.tshirt-output-section h3 { margin: 0; color: #344156; font-size: 17px; }
.tshirt-output-section header p { margin: 4px 0 0; color: #8792a2; font-size: 11px; }
.tshirt-output-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(175px,1fr)); gap: 13px; margin-top: 16px; }
.tshirt-output-item { overflow: hidden; background: #f8fafc; border: 1px solid #e1e6ed; border-radius: 9px; }
.tshirt-output-item img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: contain; background: #eef1f5; }
.tshirt-output-item footer { padding: 10px; }
.tshirt-output-item strong { display: block; overflow: hidden; color: #435167; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.tshirt-output-item footer small { display: block; margin-top: 4px; color: #8a96a6; font-size: 10px; }
.tshirt-output-actions { display: grid; grid-template-columns: 1fr 64px; gap: 7px; margin-top: 8px; }
.tshirt-output-item a, .tshirt-output-item footer button { min-height: 31px; display: flex; align-items: center; justify-content: center; padding: 6px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.tshirt-output-item a { color: var(--blue); text-align: center; background: #edf4ff; }
.tshirt-output-item footer button { color: var(--danger); background: #fff2f2; border: 1px solid #f2cccc; }
.tshirt-output-item footer button:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.workspace-switch-button { height: 38px; padding: 0 16px; color: #fff; background: var(--blue); border: 0; border-radius: 8px; font-weight: 750; box-shadow: 0 6px 14px rgba(40,120,255,.18); }
.workspace-switch-button.secondary { color: #526074; background: #fff; border: 1px solid #d7dee8; box-shadow: none; }
.product-collector-panel { width: min(1220px, calc(100% - 36px)); margin: 24px auto 40px; }
.collector-card { padding: 22px; background: #fff; border: 1px solid #dfe5ed; border-radius: 13px; box-shadow: 0 10px 30px rgba(34,55,88,.07); }
.collector-card + .collector-card { margin-top: 20px; }
.collector-card-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.collector-workspace-toolbar { gap: 12px; }
.collector-main-export-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; margin-left: auto; }
.collector-main-export-actions > span { color: #53739d; font-size: 12px; white-space: nowrap; }
.collector-main-export-actions > button { min-width: 116px; height: 36px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
.collector-price-field { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 7px 0 13px; color: #526074; background: #f7f9fc; border: 1px solid #dce3ec; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.collector-price-field > span { color: #7a8799; }
.collector-price-field input { width: 84px; height: 30px; padding: 0 8px; color: #344156; background: #fff; border: 1px solid #cfd8e5; border-radius: 6px; outline: 0; font-size: 13px; font-weight: 700; }
.collector-price-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(40,120,255,.1); }
.collector-import-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; padding: 11px 13px; color: #66758a; background: #f8fafc; border: 1px solid #e0e6ee; border-radius: 8px; }
.collector-import-mode label { display: inline-flex; align-items: center; gap: 7px; color: #405069; font-size: 13px; font-weight: 750; cursor: pointer; user-select: none; }
.collector-import-mode input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.collector-import-mode span { font-size: 11px; }
.collector-import-mode .collector-sort-choice { display: inline-flex; align-items: center; gap: 10px; padding: 5px 9px; background: #fff; border: 1px solid #dde5ef; border-radius: 7px; }
.collector-import-mode .collector-sort-choice label { gap: 5px; font-size: 12px; }
.collector-import-mode .collector-sort-choice input { width: 15px; height: 15px; }
.collector-import-mode .collector-sort-choice:has(input:disabled) { opacity: .5; }
.collector-import-mode .collector-sort-order { gap: 8px; background: #f7faff; border-color: #cfe0fb; }
.collector-import-mode.folder-mode { color: #246fd8; background: #f0f6ff; border-color: #b9d2f7; }
.collector-drop { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 20px; outline: 0; color: #647287; background: #f8faff; border: 1.5px dashed #b9cae3; border-radius: 10px; cursor: pointer; transition: .15s; }
.collector-drop:hover, .collector-drop:focus-visible, .collector-drop.dragover { color: var(--blue); background: #f1f6ff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40,120,255,.06); }
.collector-drop > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--blue); background: #e9f2ff; border-radius: 50%; font-size: 26px; }
.collector-drop strong { margin-top: 11px; font-size: 15px; }
.collector-drop small { margin-top: 5px; color: #909bac; font-size: 11px; }
.collector-import-progress { margin-top: 12px; padding: 11px 13px; color: #256dc8; background: #eef5ff; border: 1px solid #cfe0fa; border-radius: 8px; font-size: 12px; }
.collector-import-progress.error { color: #bd3e47; background: #fff2f3; border-color: #f3c8cc; }
.collector-drop.importing { opacity: .64; cursor: wait; pointer-events: none; }
.collector-drop.compact { min-height: 140px; }
.collector-list-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-bottom: 10px; border-bottom: 1px solid #e8ecf2; }
.collector-list-heading > div { display: flex; align-items: baseline; gap: 9px; }
.collector-list-heading strong { color: #3f4d62; font-size: 15px; }
.collector-list-heading span { color: #8b96a6; font-size: 11px; }
.collector-list-heading button { height: 30px; padding: 0 11px; color: var(--danger); background: #fff4f4; border: 1px solid #f1d3d3; border-radius: 6px; font-size: 11px; }
.collector-product-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 11px; margin-top: 12px; }
.collector-product-list > p, .collector-common-list > p, .collector-category-files > p { grid-column: 1 / -1; margin: 0; padding: 22px 0; color: #929dac; text-align: center; font-size: 12px; }
.collector-product-item { min-width: 0; position: relative; display: grid; grid-template-columns: 62px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 8px; text-align: left; background: #f8fafc; border: 2px solid transparent; border-radius: 9px; }
.collector-product-item:hover { z-index: 4; border-color: #cfe0ff; }
.collector-product-item.selected { background: #eff5ff; border-color: var(--blue); }
.collector-product-thumbnail { width: 62px; height: 62px; display: block; overflow: hidden; background: #eef1f5; border-radius: 6px; cursor: zoom-in; }
.collector-product-thumbnail > img { width: 100%; height: 100%; display: block; object-fit: contain; }
.collector-product-hover-preview { width: min(360px, calc(100vw - 24px)); height: min(360px, calc(100vh - 24px)); position: fixed; left: 0; top: 0; z-index: 220; display: grid; place-items: center; padding: 10px; opacity: 0; visibility: hidden; pointer-events: none; background-color: #f7f9fc; background-image: linear-gradient(45deg,#e7ebf0 25%,transparent 25%),linear-gradient(-45deg,#e7ebf0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7ebf0 75%),linear-gradient(-45deg,transparent 75%,#e7ebf0 75%); background-position: 0 0,0 10px,10px -10px,-10px 0; background-size: 20px 20px; border: 1px solid #d7dfe9; border-radius: 12px; box-shadow: 0 18px 46px rgba(28,42,64,.24); transition: opacity .12s ease, visibility .12s ease; }
.collector-product-hover-preview.visible { opacity: 1; visibility: visible; }
.collector-product-hover-preview { box-sizing: border-box; }
.collector-product-hover-preview img { width: 100%; height: 100%; display: block; object-fit: contain; }
.collector-product-item div { min-width: 0; }
.collector-product-item strong, .collector-product-item small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.collector-product-item strong { color: #3f4d62; font-size: 12px; }
.collector-product-item small { margin-top: 5px; color: #7f8b9c; font-family: Consolas, monospace; font-size: 10px; letter-spacing: .03em; }
.collector-product-item > button, .collector-file-row > button, .collector-common-item > button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--danger); background: #fff3f3; border: 0; border-radius: 50%; }
.collector-editor-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: start; gap: 20px; margin-top: 20px; }
.collector-editor-grid .collector-card { min-width: 0; margin-top: 0; }
.collector-editor-grid .collector-material-card { grid-column: 1 / -1; }
.collector-selected-product { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: baseline; gap: 9px; margin-top: 19px; padding: 12px 14px; background: #f7f9fc; border: 1px solid #e0e6ee; border-radius: 8px; }
.collector-selected-product span { color: #8490a1; font-size: 11px; }
.collector-selected-product strong { overflow: hidden; color: #344156; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.collector-selected-product small { color: var(--blue); font-family: Consolas, monospace; font-size: 11px; }
.collector-product-title-editor { display: grid; grid-template-columns: minmax(0,1fr) minmax(310px,1fr); gap: 10px; margin-top: 10px; }
.collector-product-name-field { height: 58px; box-sizing: border-box; display: grid; grid-template-columns: auto minmax(120px,1fr); align-items: center; gap: 9px; padding: 8px 9px; background: #f7f9fc; border: 1px solid #dce3ec; border-radius: 8px; }
.collector-product-name-field > span { color: #59677b; font-size: 11px; font-weight: 750; white-space: nowrap; }
.collector-product-name-field > input { width: 100%; height: 32px; box-sizing: border-box; padding: 0 9px; color: #344156; background: #fff; border: 1px solid #cfd8e5; border-radius: 6px; outline: 0; font-size: 11px; font-weight: 700; }
.collector-product-name-field > input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(40,120,255,.1); }
.collector-product-name-field > input:disabled { color: #9ba5b3; background: #eef1f5; cursor: not-allowed; }
.collector-material-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin-top: 13px; }
.collector-material-grid > button { min-height: 69px; padding: 10px; text-align: left; background: #f9fbfd; border: 1px solid #dfe5ed; border-radius: 8px; }
.collector-material-grid > button:hover:not(:disabled), .collector-material-grid > button.active { background: #eff5ff; border-color: #84b3ff; }
.collector-material-grid > button:disabled { opacity: .48; cursor: not-allowed; }
.collector-material-grid strong, .collector-material-grid span { display: block; }
.collector-material-grid strong { color: #435167; font-size: 13px; }
.collector-material-grid span { margin-top: 7px; color: #8a96a6; font-size: 10px; }
.collector-main-output-settings { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; padding: 11px 12px; background: #f7f9fc; border: 1px solid #e1e6ed; border-radius: 8px; }
.collector-main-output-settings > div:first-child strong, .collector-main-output-settings > div:first-child small { display: block; }
.collector-main-output-settings > div:first-child strong { color: #435167; font-size: 12px; }
.collector-main-output-settings > div:first-child small { margin-top: 3px; color: #8894a5; font-size: 10px; }
.collector-main-output-settings .tshirt-output-size-modes > button { height: 32px; padding: 0 12px; font-size: 11px; }
.collector-main-output-settings .tshirt-output-size-modes label { height: 32px; }
.collector-main-output-settings .tshirt-output-size-modes input { width: 58px; }
.collector-category-files { max-height: 260px; overflow-y: auto; margin-top: 13px; padding-top: 2px; border-top: 1px solid #e8ecf2; }
.collector-category-files.product-main-five-rows { max-height: 430px; }
.collector-category-files > header { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 6px; }
.collector-category-files > header strong { color: #526074; font-size: 12px; }
.collector-category-files > header button { height: 29px; padding: 0 10px; color: var(--blue); background: #edf4ff; border: 0; border-radius: 6px; font-size: 11px; font-weight: 700; }
.collector-category-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.collector-category-actions label { display: flex; align-items: center; gap: 5px; color: #5d6b7f; font-size: 11px; font-weight: 700; cursor: pointer; user-select: none; }
.collector-category-actions input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
.collector-category-actions input:disabled + * { opacity: .55; }
.collector-category-files > header button:disabled { color: #a0aaba; background: #eef1f5; cursor: not-allowed; }
.collector-category-files > .collector-follow-main-note { margin: 7px 0 0; padding: 18px 12px; color: #3474cb; background: #f1f7ff; border: 1px solid #d3e5ff; border-radius: 8px; }
.collector-file-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid #edf0f4; }
.collector-file-row strong { overflow: hidden; color: #4a576b; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.collector-file-row small { color: #8e99a8; font-size: 10px; }
.collector-file-row.primary strong::after { margin-left: 6px; padding: 2px 5px; color: #176ff2; background: #e8f2ff; border-radius: 4px; content: "首图"; font-size: 9px; }
.collector-file-row.collector-detail-preview { grid-template-columns: 52px minmax(0,1fr) auto; padding: 8px; background: #f8fafc; border-bottom: 0; border-radius: 8px; }
.collector-detail-preview + .collector-detail-preview { margin-top: 7px; }
.collector-main-sortable { cursor: grab; user-select: none; transition: opacity .12s ease, box-shadow .12s ease, transform .12s ease; }
.collector-main-sortable:active { cursor: grabbing; }
.collector-main-sortable.dragging { opacity: .38; }
.collector-main-sortable.drop-before { box-shadow: inset 0 3px 0 var(--blue); transform: translateY(1px); }
.collector-main-sortable.drop-after { box-shadow: inset 0 -3px 0 var(--blue); transform: translateY(-1px); }
.collector-detail-preview img { width: 52px; height: 52px; object-fit: contain; background: #eef1f5; border-radius: 6px; }
.collector-detail-preview div { min-width: 0; }
.collector-detail-preview strong, .collector-detail-preview small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.collector-detail-preview strong.collector-planned-name { color: var(--blue); font-size: 13px; }
.collector-detail-preview small { margin-top: 4px; color: #8d98a8; font-size: 10px; }
.collector-common-list { max-height: 340px; overflow-y: auto; display: grid; gap: 8px; margin-top: 13px; }
.collector-inline-common { margin-top: 15px; padding-top: 15px; border-top: 1px solid #e2e8f0; }
.collector-inline-common > header { display: flex; align-items: center; justify-content: space-between; }
.collector-inline-common > header strong, .collector-inline-common > header span { display: block; }
.collector-inline-common > header strong { color: #3f4d62; font-size: 14px; }
.collector-inline-common > header span { margin-top: 4px; color: #8995a6; font-size: 10px; }
.collector-inline-common .collector-drop.compact { min-height: 118px; margin-top: 12px; }
.collector-common-item { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 8px; background: #f8fafc; border-radius: 8px; }
.collector-common-item img { width: 52px; height: 52px; object-fit: contain; background: #eef1f5; border-radius: 6px; }
.collector-common-item div { min-width: 0; }
.collector-common-item strong, .collector-common-item small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.collector-common-item strong { color: #465469; font-size: 11px; }
.collector-common-item strong.collector-planned-name { color: var(--blue); font-size: 13px; }
.collector-common-item small { margin-top: 4px; color: #8d98a8; font-size: 10px; }
.collector-generate-card { margin-top: 20px; }
.collector-generate-actions { display: flex; align-items: flex-end; gap: 10px; }
.collector-title-suffix-field { min-width: 250px; height: 58px; box-sizing: border-box; display: grid; grid-template-columns: auto minmax(110px,1fr); align-items: center; gap: 8px; padding: 8px 9px; background: #f7f9fc; border: 1px solid #dce3ec; border-radius: 8px; }
.collector-title-suffix-field.active { background: #f2f7ff; border-color: #a9c9f6; }
.collector-title-suffix-field.apply-all { background: #edf6ff; border-color: #7eb0f7; }
.collector-title-suffix-options { display: grid; gap: 5px; }
.collector-title-suffix-field label { display: flex; align-items: center; gap: 5px; color: #59677b; font-size: 11px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.collector-title-suffix-field label input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
.collector-title-suffix-field > input { width: 100%; height: 32px; box-sizing: border-box; padding: 0 9px; color: #344156; background: #fff; border: 1px solid #cfd8e5; border-radius: 6px; outline: 0; font-size: 11px; }
.collector-title-suffix-field > input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(40,120,255,.1); }
.collector-title-suffix-field > input:disabled { color: #9ba5b3; background: #eef1f5; cursor: not-allowed; }
.collector-color-choice { min-width: 176px; height: 58px; box-sizing: border-box; display: flex; align-items: center; gap: 6px; margin: 0; padding: 12px 7px 6px; background: #f7f9fc; border: 1px solid #dce3ec; border-radius: 8px; }
.collector-color-choice legend { padding: 0 5px; color: #6c7889; font-size: 11px; font-weight: 750; }
.collector-color-choice > button { height: 30px; flex: 1; display: grid; place-items: center; padding: 0 10px; color: #526074; background: #fff; border: 1px solid #cfd8e5; border-radius: 6px; font-size: 12px; font-weight: 750; transition: .15s; }
.collector-color-choice > button:hover:not(:disabled) { border-color: #8eb7f6; }
.collector-color-choice > button:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,120,255,.12); }
.collector-color-choice > button.active { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 4px 10px rgba(40,120,255,.2); }
.collector-color-choice > button:disabled { opacity: .55; cursor: not-allowed; }
.collector-package-summary { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.collector-package-summary span { padding: 8px 11px; color: #526074; background: #f3f6fa; border: 1px solid #e0e6ed; border-radius: 7px; font-size: 11px; }
.collector-package-progress { margin-top: 13px; padding: 11px 13px; color: #37618f; background: #edf5ff; border-radius: 7px; font-size: 12px; }
.lan-upload-panel { width: min(980px, calc(100% - 36px)); margin: 30px auto; }
.lan-upload-drop { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px; outline: 0; background: #fff; border: 1.5px dashed #bfcce0; border-radius: 12px; transition: .18s; }
.lan-upload-drop:hover, .lan-upload-drop:focus-visible, .lan-upload-drop.dragover { border-color: var(--blue); background: #f7faff; box-shadow: 0 0 0 4px rgba(40,120,255,.06); }
.upload-cloud-icon { width: 78px; height: 78px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 50%; }
.upload-cloud-icon svg { width: 47px; height: 47px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lan-upload-drop h1 { margin: 20px 0 8px; font-size: 24px; }
.lan-upload-drop p { margin: 0; color: #7a8799; font-size: 14px; }
.lan-upload-drop button { margin-top: 20px; padding: 10px 30px; color: #fff; background: var(--blue); border: 0; border-radius: 7px; font-weight: 700; }
.lan-upload-drop small { margin-top: 12px; color: #9aa5b4; font-size: 12px; }
.upload-queue { margin-top: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.upload-queue > header, .upload-queue > footer { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.upload-queue > header { border-bottom: 1px solid var(--line); }
.upload-queue > header > div { display: flex; align-items: baseline; gap: 10px; }
.upload-queue h2 { margin: 0; font-size: 15px; }
.upload-queue header span, .upload-queue footer p { margin: 0; color: var(--muted); font-size: 12px; }
.upload-queue header button { color: var(--danger); background: transparent; border: 0; font-size: 12px; }
.upload-file-list { max-height: 330px; overflow-y: auto; padding: 6px 16px; }
.upload-file-row { display: grid; grid-template-columns: 48px minmax(150px,1fr) minmax(225px,1.15fr) minmax(90px,auto) auto; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }
.upload-file-row:last-child { border-bottom: 0; }
.upload-file-row.rejected { margin: 0 -8px; padding: 12px 8px; background: #fff8f8; border-bottom-color: #f5dfe1; }
.upload-file-preview { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; color: #a16d72; background: #f1f3f6; border-radius: 5px; font-size: 10px; font-weight: 750; }
.upload-file-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-file-preview.unavailable { background: #f8e9eb; border: 1px dashed #e1aeb3; }
.upload-file-row div { min-width: 0; }
.upload-file-row strong, .upload-file-row small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.upload-file-row strong { font-size: 13px; }
.upload-file-row small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.upload-code-controls { min-width: 0; }
.upload-code-label { display: block; color: #617087; font-size: 12px; }
.upload-code-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 0; margin-top: 6px; }
.upload-code-entry input { width: 100%; height: 34px; padding: 0 9px; color: #344156; background: #fbfcfe; border: 1px solid #d9dfe8; border-radius: 6px 0 0 6px; outline: 0; font-size: 13px; }
.upload-code-entry input:focus { border-color: #82adff; box-shadow: 0 0 0 3px rgba(40,120,255,.08); }
.upload-code-entry input.error { color: var(--danger); border-color: #e78489; background: #fff8f8; }
.upload-name-extension { min-width: 45px; height: 34px; display: flex; align-items: center; padding: 0 9px; color: #657389; background: #f2f5f9; border: 1px solid #d9dfe8; border-left: 0; border-radius: 0 6px 6px 0; font-size: 12px; }
.upload-code-message { min-height: 15px; grid-column: 1 / -1; display: block; margin-top: 4px; color: #768397; font-size: 11px; line-height: 1.35; }
.upload-code-message.available { color: var(--green); }
.upload-code-message.error { color: var(--danger); font-weight: 700; }
.upload-rejected-title { color: var(--danger); font-size: 12px; }
.upload-rejected-reason { display: block; margin-top: 5px; color: var(--danger) !important; white-space: normal !important; line-height: 1.45; font-weight: 700; }
.upload-file-state { min-width: 72px; color: #718096; text-align: right; font-size: 12px; }
.upload-file-state.success { color: var(--green); }
.upload-file-state.error { color: var(--danger); }
.upload-file-row.rejected .upload-file-state { color: var(--danger); font-weight: 700; }
.remove-upload-file { width: 28px; height: 28px; color: #8792a3; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.upload-queue > footer { justify-content: flex-end; background: #fafbfc; border-top: 1px solid var(--line); }
.upload-queue > footer button { min-width: 125px; padding: 9px 16px; color: #fff; background: var(--blue); border: 0; border-radius: 7px; font-weight: 700; }
.upload-queue > footer button:disabled { background: #b7c1cf; cursor: not-allowed; }

.empty-state { min-height: calc(100% - 88px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 24px; text-align: center; }
.empty-illustration { width: 140px; height: 104px; position: relative; }
.empty-illustration .tile { position: absolute; width: 66px; height: 52px; border: 1px solid #dfe7f3; border-radius: 8px; background: #fff; box-shadow: 0 8px 23px rgba(65,88,121,.08); }
.empty-illustration .one { left: 3px; top: 25px; transform: rotate(-10deg); }
.empty-illustration .two { right: 3px; top: 16px; transform: rotate(9deg); }
.empty-illustration .three { left: 35px; top: 4px; background: linear-gradient(145deg,#edf4ff,#fff); }
.empty-illustration svg { width: 57px; height: 57px; padding: 12px; position: absolute; left: 42px; top: 32px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: #fff; border: 1px solid #dce8fa; border-radius: 50%; box-shadow: 0 7px 20px rgba(40,120,255,.16); z-index: 2; }
.empty-state h1 { margin: 19px 0 9px; font-size: 23px; }
.empty-state p { margin: 0; color: #7d8899; font-size: 14px; }
.empty-steps { margin-top: 27px; display: flex; align-items: center; gap: 12px; color: #748195; font-size: 13px; }
.empty-steps span { display: flex; align-items: center; gap: 5px; }
.empty-steps b { width: 20px; height: 20px; display: grid; place-items: center; color: var(--blue); background: #ebf3ff; border-radius: 50%; font-size: 9px; }
.empty-steps i { width: 30px; height: 1px; background: #dce2ea; }

.results-section { padding: 12px; }
.result-task { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.task-header { min-height: 43px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #eef0f3; }
.task-header > div { display: flex; align-items: center; gap: 11px; }
.task-id { color: #8d98a8; font-size: 11px; }
.task-header strong { font-size: 14px; }
.task-header em { color: var(--green); font-size: 11px; font-style: normal; }
.task-header p { margin: 0; color: #7f8a9a; font-size: 11px; }
.results-grid { display: grid; grid-template-columns: repeat(4, minmax(165px, 1fr)); gap: 12px; padding: 13px; }
.result-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e4e7ec; border-radius: 7px; transition: .16s; }
.result-card:hover { border-color: #aac8ff; box-shadow: 0 8px 22px rgba(52,76,110,.09); transform: translateY(-2px); }
.result-image { position: relative; aspect-ratio: 1 / .88; overflow: hidden; background: #f2f4f7; cursor: zoom-in; }
.result-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.score { position: absolute; top: 7px; right: 7px; padding: 5px 8px; color: #fff; background: rgba(38,50,68,.83); border-radius: 10px; font-size: 11px; backdrop-filter: blur(4px); }
.result-info { padding: 9px; }
.result-title-row { min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.result-info strong { min-width: 0; overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.result-title-row em,.result-meta-row em { flex: none; font-size: 13px; font-style: normal; font-weight: 700; white-space: nowrap; }
.result-title-row em.curated,.result-meta-row em.curated { color: var(--blue); }
.result-title-row em.uploader,.result-title-row em.own-uploader,.result-meta-row em.uploader,.result-meta-row em.own-uploader { color: var(--blue); }
.result-title-row em.other-uploader,.result-meta-row em.other-uploader { color: #e04d52; }
.result-title-row em.uploaded,.result-meta-row em.uploaded { color: #e04d52; }
.result-info span { display: block; margin-top: 5px; color: #7f8a9a; font-size: 11px; }
.result-meta-row { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin-top: 5px; }
.result-info .result-meta-row span { display: inline; margin: 0; }
.result-meta-row i { color: #a2abba; font-size: 11px; font-style: normal; }
.result-meta-row em { font-size: 11px; }
.result-info .result-meta-row .result-uploader { display: inline-flex; align-items: baseline; gap: 4px; margin: 0 0 0 auto; }
.result-actions { display: flex; gap: 5px; margin-top: 8px; }
.result-actions button, .result-actions a { flex: 1; padding: 7px 4px; color: #536176; background: #fff; border: 1px solid #e4e7ec; border-radius: 5px; text-align: center; text-decoration: none; font-size: 11px; }
.result-actions button:hover, .result-actions a:hover { color: var(--blue); border-color: #a9c9ff; background: #f7faff; }
.result-actions .download-original { color: #fff; background: var(--blue); border-color: var(--blue); font-weight: 700; }
.result-actions .download-original:hover { color: #fff; background: #1769ee; border-color: #1769ee; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; padding: 9px 15px; color: #fff; background: #273448; border-radius: 7px; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: .2s; box-shadow: 0 10px 25px rgba(24,33,47,.2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #b84449; }
.window-settings-popover { position: fixed; z-index: 27; width: min(760px, calc(100vw - 24px)); }
.window-settings-popover::before { content: ""; width: 12px; height: 12px; position: absolute; right: 25px; top: -6px; z-index: 1; background: #fff; border-left: 1px solid #e1e6ed; border-top: 1px solid #e1e6ed; transform: rotate(45deg); }
.window-settings-card { max-height: calc(100vh - 85px); overflow-y: auto; background: #fff; border: 1px solid #e1e6ed; border-radius: 11px; box-shadow: 0 18px 48px rgba(25,38,58,.20); }
.window-settings-card > header { padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.window-settings-card h2 { margin: 0; font-size: 18px; }
.window-settings-card header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.window-settings-card header button { width: 33px; height: 33px; color: #7a8697; background: #f6f8fa; border: 1px solid var(--line); border-radius: 7px; font-size: 22px; }
.window-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 18px; background: #f8faff; }
.window-options label { color: #687487; font-size: 12px; }
.window-options select { width: 100%; margin-top: 6px; background: #fff; }
.window-settings-card .admin-card { margin: 0; padding: 17px 18px; border-top: 1px solid var(--line); }
.info-library-panel { width: min(1320px, calc(100% - 36px)); margin: 22px auto 42px; }
.info-library-search { min-height: 58px; display: grid; grid-template-columns: minmax(260px,1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid #dfe5ed; border-radius: 11px; box-shadow: 0 8px 24px rgba(34,55,88,.05); }
.info-library-search label { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 11px; background: #f7f9fc; border: 1px solid #d9e1ec; border-radius: 8px; }
.info-library-search label:focus-within { border-color: #72a5ff; box-shadow: 0 0 0 3px rgba(40,120,255,.08); }
.info-library-search label span { color: #7d8999; font-size: 20px; }
.info-library-search input { width: 100%; color: #344156; background: transparent; border: 0; outline: 0; font-size: 13px; }
.info-library-search > strong { color: #7b8798; font-size: 12px; white-space: nowrap; }
.info-library-search > button { height: 36px; padding: 0 15px; color: var(--blue); background: #edf4ff; border: 1px solid #d2e2ff; border-radius: 7px; font-weight: 750; }
.info-add-card { margin-top: 18px; padding: 20px; background: #fff; border: 1px solid #dce4ef; border-radius: 13px; box-shadow: 0 10px 28px rgba(34,55,88,.07); }
.info-add-card > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.info-add-card h2 { margin: 0; color: #344156; font-size: 19px; }
.info-add-card header p { margin: 5px 0 0; color: #8a96a6; font-size: 12px; }
.info-add-card > header > button { width: 34px; height: 34px; color: #7a8798; background: #f2f5f8; border: 0; border-radius: 50%; font-size: 21px; }
.info-add-form { display: grid; gap: 15px; margin-top: 18px; }
.info-add-form > label { display: grid; gap: 7px; color: #526074; font-size: 13px; font-weight: 750; }
.info-add-form input[type="text"], .info-add-form textarea { width: 100%; padding: 10px 12px; color: #344156; background: #fbfcfe; border: 1px solid #cfd8e5; border-radius: 8px; outline: 0; }
.info-add-form input[type="text"] { height: 42px; }
.info-add-form textarea { min-height: 118px; resize: vertical; line-height: 1.6; }
.info-add-form input[type="text"]:focus, .info-add-form textarea:focus { border-color: #72a5ff; box-shadow: 0 0 0 3px rgba(40,120,255,.09); }
.info-image-picker-row { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 13px; }
.info-image-picker { min-height: 78px; display: flex; align-items: center; gap: 11px; padding: 12px 14px; color: #536176; text-align: left; background: #f8faff; border: 1.5px dashed #b9cae3; border-radius: 9px; }
.info-image-picker:hover { color: var(--blue); background: #f1f6ff; border-color: var(--blue); }
.info-image-picker > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: var(--blue); background: #e6f1ff; border-radius: 50%; font-size: 23px; }
.info-image-picker strong, .info-image-picker small { display: block; }
.info-image-picker strong { font-size: 13px; }
.info-image-picker small { margin-top: 4px; color: #8a96a6; font-size: 10px; }
.info-selected-images { min-height: 78px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px; background: #f8fafc; border: 1px solid #e0e6ee; border-radius: 9px; }
.info-selected-images > p { width: 100%; margin: 0; color: #929dac; text-align: center; font-size: 11px; }
.info-selected-image { max-width: 220px; display: grid; grid-template-columns: 42px minmax(0,1fr) 25px; align-items: center; gap: 7px; padding: 5px; background: #fff; border: 1px solid #e0e5ec; border-radius: 7px; }
.info-selected-image img { width: 42px; height: 42px; object-fit: cover; border-radius: 5px; }
.info-selected-image div { min-width: 0; }
.info-selected-image strong, .info-selected-image small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.info-selected-image strong { color: #536176; font-size: 10px; }
.info-selected-image small { margin-top: 3px; color: #929dac; font-size: 9px; }
.info-selected-image button { width: 24px; height: 24px; color: var(--danger); background: #fff1f1; border: 0; border-radius: 50%; }
.info-selected-image.existing { border-color: #c8daf8; background: #f6f9ff; }
.info-sharing-warning { margin: -3px 0 0; color: #a06a0b; font-size: 11px; }
.info-add-actions { display: flex; justify-content: flex-end; gap: 9px; }
.info-add-actions button { min-width: 102px; height: 38px; border-radius: 7px; font-weight: 750; }
.info-add-actions button:first-child { color: #677488; background: #fff; border: 1px solid #d5dde7; }
.info-add-actions button:last-child { color: #fff; background: var(--blue); border: 1px solid var(--blue); }
.info-add-actions button:last-child:disabled { color: #aeb6c2; background: #edf0f4; border-color: #edf0f4; }
.info-entry-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(340px,1fr)); align-items: start; gap: 16px; margin-top: 18px; }
.info-entry-list > p { grid-column: 1 / -1; margin: 0; padding: 48px 20px; color: #8d98a8; text-align: center; background: #fff; border: 1px solid #e0e6ee; border-radius: 12px; }
.info-entry-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #dfe5ed; border-radius: 12px; box-shadow: 0 9px 26px rgba(34,55,88,.055); }
.info-entry-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 17px 12px; }
.info-entry-card h2 { min-width: 0; flex: 1 1 auto; margin: 0; overflow-wrap: anywhere; color: #344156; font-size: 17px; line-height: 1.4; }
.info-entry-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.info-entry-actions button { min-width: 58px; height: 31px; border-radius: 7px; font-size: 11px; font-weight: 750; }
.info-entry-edit { color: var(--blue); background: #edf4ff; border: 1px solid #c9dcff; }
.info-entry-delete { flex: 0 0 auto; min-width: 58px; height: 31px; color: #d84c51; background: #fff; border: 1px solid #efb8bb; border-radius: 7px; font-size: 11px; font-weight: 750; }
.info-entry-delete.confirming { color: #fff; background: #e0555a; border-color: #e0555a; }
.info-entry-content { margin: 0; padding: 0 17px 14px; color: #58667a; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; }
.info-entry-content.empty { color: #9ba4b1; }
.info-entry-images { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; padding: 0 12px 13px; }
.info-entry-images button { min-width: 0; overflow: hidden; padding: 0; background: #eef1f5; border: 0; border-radius: 7px; }
.info-entry-images img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: cover; transition: transform .16s; }
.info-entry-images button:hover img { transform: scale(1.035); }
.info-entry-meta { display: flex; justify-content: space-between; gap: 10px; padding: 10px 17px; color: #8b96a6; background: #f8fafc; border-top: 1px solid #edf0f4; font-size: 10px; }
.info-image-lightbox { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 34px; background: rgba(23,31,43,.82); }
.info-image-lightbox > button { width: 42px; height: 42px; position: fixed; right: 24px; top: 20px; z-index: 1; color: #fff; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font-size: 27px; }
.info-image-lightbox figure { max-width: min(1100px, calc(100vw - 80px)); max-height: calc(100vh - 70px); margin: 0; }
.info-image-lightbox img { max-width: 100%; max-height: calc(100vh - 110px); display: block; margin: auto; object-fit: contain; background: #fff; border-radius: 8px; box-shadow: 0 20px 70px rgba(0,0,0,.45); }
.info-image-lightbox figcaption { margin-top: 10px; color: #fff; text-align: center; font-size: 13px; }
.image-tool-panel { width: min(1320px, calc(100% - 36px)); margin: 22px auto 42px; }
.exif-panel .image-tool-drop { width: 100%; }
.exif-input-card { grid-template-columns: minmax(360px,1fr) auto; }
.exif-import-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.exif-import-actions > label { margin-right: auto; color: #526077; font-size: 16px; }
.exif-import-actions button, .exif-save-actions button, .exif-remove-actions button { min-height: 42px; padding: 9px 14px; color: #53647a; background: #fff; border: 1px solid #d4deec; border-radius: 8px; font-size: 15px; font-weight: 700; }
.exif-panel button.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.exif-panel button:disabled { opacity: .5; cursor: not-allowed; }
.exif-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px, .7fr); gap: 20px; margin-top: 20px; align-items: start; }
.exif-layout .image-tool-results-card { margin-top: 0; }
.exif-layout .image-tool-results-card > header > span { color: #8492a7; font-size: 13px; }
.exif-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.exif-item.current { border-color: var(--blue); box-shadow: 0 0 0 2px #dceaff; }
.exif-preview { position: relative; aspect-ratio: 1; background-color: #fff; background-image: linear-gradient(45deg,#e6e9ee 25%,transparent 25%),linear-gradient(-45deg,#e6e9ee 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e6e9ee 75%),linear-gradient(-45deg,transparent 75%,#e6e9ee 75%); background-size: 16px 16px; background-position: 0 0,0 8px,8px -8px,-8px 0; }
.exif-preview-button { display: block; width: 100%; height: 100%; padding: 12px; background: transparent; border: 0; cursor: pointer; }
.exif-preview-button img { width: 100%; height: 100%; display: block; object-fit: contain; }
.exif-preview > label { position: absolute; top: 8px; left: 8px; display: grid; padding: 6px; background: #fff; border-radius: 6px; box-shadow: 0 1px 5px #0002; }
.exif-preview input, .exif-import-actions input, .exif-fields input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.exif-edit-card { min-width: 0; padding: 20px; background: #fff; border: 1px solid #dce4ef; border-radius: 13px; box-shadow: 0 10px 28px rgba(34,55,88,.07); }
.exif-edit-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.exif-edit-card > header > div { min-width: 0; }
#exifRestoreDefaults { flex: 0 0 auto; min-height: 38px; padding: 7px 12px; color: #53647a; background: #fff; border: 1px solid #d4deec; border-radius: 8px; font-size: 14px; font-weight: 700; }
.exif-edit-card h2 { margin: 0; color: #344156; font-size: 20px; }
.exif-edit-card header p { margin: 7px 0 0; color: #55709a; overflow-wrap: anywhere; font-size: 15px; }
.exif-settings-fold { min-width: 0; margin-top: 16px; border: 1px solid #dce6f4; border-radius: 11px; }
.exif-settings-fold > summary { display: flex; align-items: center; gap: 10px; padding: 14px; color: #3f5069; background: #f0f6ff; border-radius: 10px; cursor: pointer; list-style: none; }
.exif-settings-fold > summary::-webkit-details-marker { display: none; }
.exif-settings-fold > summary > span:first-child { flex: 1; min-width: 0; }
.exif-settings-fold > summary strong { display: block; font-size: 15px; }
.exif-settings-fold > summary small { display: block; margin-top: 5px; color: #7789a3; font-size: 12px; line-height: 1.5; }
.exif-fold-expanded,.exif-fold-collapsed { flex: none; color: var(--blue); font-size: 13px; font-weight: 700; }
.exif-settings-fold[open] > summary .exif-fold-collapsed,.exif-settings-fold:not([open]) > summary .exif-fold-expanded { display: none; }
.exif-settings-fold > summary::after { content: ""; width: 7px; height: 7px; flex: none; margin-right: 2px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); }
.exif-settings-fold[open] > summary::after { transform: rotate(225deg); }
.exif-settings-fold > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.exif-settings-content { min-width: 0; padding: 14px; }
.exif-settings-content > :first-child { margin-top: 0; }
.exif-preset-card, .exif-option-card { margin-top: 16px; padding: 14px; border: 1px solid #dce6f4; border-radius: 11px; background: #f8faff; }
.exif-preset-card > div:first-child, .exif-option-title { display: flex; align-items: flex-start; gap: 9px; color: #3f5069; }
.exif-preset-card > div:first-child { justify-content: space-between; }
.exif-preset-card strong, .exif-option-title strong { display: block; font-size: 15px; }
.exif-preset-card small, .exif-option-title small { display: block; margin-top: 3px; color: #8996a8; font-size: 12px; line-height: 1.45; }
.exif-preset-controls { display: grid; grid-template-columns: minmax(110px,.7fr) minmax(170px,1.3fr); gap: 9px; margin-top: 12px; }
.exif-preset-controls select, .exif-padding-label select, .exif-fields select { width: 100%; height: 41px; padding: 0 10px; color: #35445a; background: #fff; border: 1px solid #ccd8e8; border-radius: 8px; font-size: 14px; }
.exif-lens-quick, .exif-city-quick, .exif-resolution-quick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.exif-lens-quick button, .exif-city-quick button, .exif-resolution-quick button { min-height: 33px; padding: 6px 11px; color: #54657c; background: #fff; border: 1px solid #ccd8e8; border-radius: 7px; font-size: 13px; font-weight: 700; }
.exif-lens-quick button.active, .exif-lens-quick button:hover, .exif-city-quick button:hover, .exif-resolution-quick button:hover { color: #1769e0; border-color: #82afff; background: #eef5ff; }
.exif-field-help { color: #8491a4; font-size: 13px; line-height: 1.6; }
.exif-fields { display: grid; gap: 12px; }
.exif-field-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 13px; border: 1px solid #e0e7f1; border-radius: 10px; background: #fff; }
.exif-field-group > h3 { grid-column: 1 / -1; margin: 0 0 2px; color: #526077; font-size: 14px; }
.exif-fields .exif-field-row { display: grid; gap: 6px; }
.exif-fields .exif-field-row[data-exif-field="date_taken"] { grid-column: 1 / -1; }
.exif-fields label { display: flex; align-items: center; gap: 8px; color: #526077; font-size: 15px; font-weight: 700; }
.exif-fields input[type=text], .exif-option-card input[type=number] { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #d4deec; border-radius: 7px; font-size: 15px; color: #344156; background: #fff; }
.exif-fields input[type=text]:disabled, .exif-fields select:disabled { color: #7a879a; background: #f6f8fc; }
.exif-fields input[type=text]:focus, .exif-fields select:focus, .exif-option-card input:focus, .exif-preset-controls select:focus { outline: 2px solid #c1d8ff; border-color: var(--blue); }
.exif-option-title > input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.exif-gps-grid, .exif-resolution-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.exif-gps-grid label, .exif-resolution-grid label, .exif-padding-label { display: grid; gap: 5px; color: #66758b; font-size: 12px; font-weight: 700; }
.exif-map { position: relative; height: 260px; margin-top: 12px; overflow: hidden; background: #e9eef5; border: 1px solid #ccd8e8; border-radius: 10px; cursor: grab; touch-action: none; user-select: none; }
.exif-map.dragging { cursor: grabbing; }
.exif-map.disabled { cursor: not-allowed; }
.exif-map-tiles { position: absolute; inset: 0; overflow: hidden; }
.exif-map-tile { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; user-select: none; }
.exif-map-center { position: absolute; z-index: 3; left: 50%; top: 50%; width: 30px; height: 38px; pointer-events: none; transform: translate(-50%,-100%); filter: drop-shadow(0 3px 3px rgba(31,57,91,.3)); }
.exif-map-center::before { content: ""; position: absolute; left: 4px; top: 2px; width: 22px; height: 22px; background: #2878ff; border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-sizing: border-box; }
.exif-map-center span { position: absolute; z-index: 1; left: 12px; top: 10px; width: 6px; height: 6px; background: #fff; border-radius: 50%; }
.exif-map-controls { position: absolute; z-index: 4; right: 10px; top: 10px; display: grid; overflow: hidden; background: #fff; border: 1px solid #c9d4e3; border-radius: 8px; box-shadow: 0 3px 12px rgba(37,55,81,.16); }
.exif-map-controls button { width: 36px; height: 34px; padding: 0; color: #344156; background: #fff; border: 0; font-size: 22px; line-height: 1; }
.exif-map-controls button + button { border-top: 1px solid #dbe3ed; }
.exif-map-controls button:hover:not(:disabled) { color: #1769e0; background: #eef5ff; }
.exif-map-coordinate, .exif-map-attribution, .exif-map-loading { position: absolute; z-index: 4; padding: 4px 7px; color: #536176; background: rgba(255,255,255,.92); font-size: 10px; line-height: 1.25; }
.exif-map-coordinate { left: 8px; top: 8px; border-radius: 5px; box-shadow: 0 1px 5px rgba(37,55,81,.12); }
.exif-map-attribution { right: 5px; bottom: 4px; color: #536176; text-decoration: none; }
.exif-map-attribution:hover { text-decoration: underline; }
.exif-map-loading { left: 50%; top: 50%; border-radius: 6px; transform: translate(-50%,-50%); }
.exif-map-loading.hidden { display: none; }
.exif-map.disabled .exif-map-tiles, .exif-map.disabled .exif-map-center, .exif-map.disabled .exif-map-attribution { opacity: .3; }
.exif-padding-label { grid-template-columns: 1fr 130px; align-items: center; margin-top: 12px; }
.exif-padding-label select { height: 38px; }
.exif-choice-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.exif-choice-buttons button { min-height: 38px; padding: 7px 12px; color: #54657c; background: #fff; border: 1px solid #ccd8e8; border-radius: 8px; font-size: 14px; font-weight: 700; }
.exif-choice-buttons button.active { color: #1769e0; border-color: #82afff; background: #eef5ff; }
.exif-choice-buttons button:focus-visible { outline: 2px solid #82afff; outline-offset: 2px; }
.exif-template-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: #3f5069; }
.exif-template-heading > div { display: flex; flex-wrap: wrap; gap: 8px; }
.exif-template-heading button { min-height: 38px; padding: 7px 12px; font-size: 14px; }
.exif-template-info { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.exif-template-info > div { min-width: 0; }
.exif-template-info img { width: 70px; height: 80px; flex: 0 0 auto; object-fit: contain; background: #eaf0f7; border: 1px solid #dce6f4; border-radius: 7px; }
.exif-template-info strong { color: #526077; font-size: 14px; overflow-wrap: anywhere; }
.exif-template-info p { margin: 5px 0 0; color: #8491a4; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.exif-template-info p.error { color: #d44949; }
.exif-format-row { grid-template-columns: 1fr; }
.exif-format-row .exif-choice-buttons { margin-top: 0; }
.exif-save-actions, .exif-remove-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.exif-save-actions button { flex: 1; }
.exif-remove-actions { padding-top: 18px; border-top: 1px solid #e5eaf1; }
.exif-remove-actions button { flex: 1; color: #c34e54; border-color: #ecced1; background: #fff8f8; }
.exif-metadata { margin-top: 20px; border-top: 1px solid #e5eaf1; padding-top: 16px; }
.exif-metadata summary { color: #526077; font-weight: 700; font-size: 16px; cursor: pointer; }
.exif-metadata dl { max-height: 360px; overflow: auto; margin: 13px 0 0; background: #f8faff; border-radius: 8px; }
.exif-metadata dl > div { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 10px; padding: 10px 12px; border-bottom: 1px solid #e5eaf1; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.exif-metadata dt { color: #7a879a; }
.exif-metadata dd { margin: 0; color: #344156; }
@media (max-width: 1050px) { .exif-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 800px) { .exif-layout { grid-template-columns: minmax(0,1fr); } .exif-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .exif-edit-card { grid-row: 1; } .exif-input-card { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 520px) { .exif-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .exif-edit-card > header { display: grid; } .exif-field-group, .exif-gps-grid, .exif-resolution-grid { grid-template-columns: minmax(0,1fr); } .exif-preset-controls { grid-template-columns: minmax(0,1fr); } .exif-padding-label { grid-template-columns: 1fr; } .exif-map { height: 220px; } }
.image-tool-input-card, .image-tool-results-card { background: #fff; border: 1px solid #dce4ef; border-radius: 13px; box-shadow: 0 10px 28px rgba(34,55,88,.07); }
.image-tool-input-card { display: grid; grid-template-columns: minmax(340px,1.25fr) minmax(390px,1fr); align-items: stretch; gap: 18px; padding: 20px; }
.image-tool-drop { min-height: 128px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px; color: #526077; background: #f8faff; border: 1.5px dashed #b9cae3; border-radius: 11px; text-align: left; }
.image-tool-drop:hover, .image-tool-drop:focus-visible, .image-tool-drop.dragover { color: var(--blue); background: #edf5ff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40,120,255,.08); }
.image-tool-drop > span { width: 50px; height: 50px; flex: none; display: grid; place-items: center; color: var(--blue); background: #e7f1ff; border-radius: 50%; font-size: 29px; }
.image-tool-drop > div { display: grid; gap: 7px; }
.image-tool-drop strong { color: #344156; font-size: 18px; }
.image-tool-drop small { color: #8793a5; font-size: 13px; }
.image-tool-settings { display: grid; grid-template-columns: minmax(180px,1fr) 120px 130px; align-items: end; gap: 12px; padding: 16px; background: #f8faff; border: 1px solid #e3e9f1; border-radius: 11px; }
.image-tool-settings > label, .image-tool-setting-stack > label { display: grid; gap: 8px; color: #536176; font-size: 13px; font-weight: 750; }
.image-tool-settings > label > span, .image-tool-setting-stack > label > span { height: 44px; display: flex; align-items: center; overflow: hidden; background: #fff; border: 1px solid #cad5e3; border-radius: 8px; }
.image-tool-setting-stack { display: grid; gap: 12px; }
.image-tool-settings input { width: 100%; min-width: 0; height: 100%; padding: 0 12px; color: #263348; background: transparent; border: 0; outline: 0; font-size: 16px; font-weight: 750; }
.image-tool-settings em { padding-right: 12px; color: #758297; font-size: 13px; font-style: normal; white-space: nowrap; }
.image-tool-settings > button { height: 44px; border-radius: 8px; font-weight: 750; }
.image-tool-settings > button.secondary { color: #627087; background: #fff; border: 1px solid #d5dde8; }
.image-tool-settings > button.primary { color: #fff; background: var(--blue); border: 1px solid var(--blue); }
.image-tool-settings > button:disabled { color: #aeb6c2; background: #edf0f4; border-color: #edf0f4; cursor: not-allowed; }
.image-compress-settings > .image-compress-resolution { grid-column: 1 / -1; }
.image-compress-resolution { min-width: 0; margin: 0; padding: 13px 11px 11px; background: #fff; border: 1px solid #d7e0ea; border-radius: 8px; }
.image-compress-resolution legend { padding: 0 5px; color: #526074; font-size: 12px; font-weight: 750; }
.image-compress-resolution-toggle, .image-compress-keep-ratio { display: flex; align-items: center; gap: 7px; color: #536176; font-size: 12px; font-weight: 700; cursor: pointer; }
.image-tool-settings .image-compress-resolution-toggle input, .image-tool-settings .image-compress-keep-ratio input { width: 16px; min-width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--blue); }
.image-compress-resolution-fields { display: grid; grid-template-columns: repeat(2,minmax(175px,1fr)); gap: 12px; }
.image-compress-resolution-fields > label { min-width: 0; display: grid; gap: 6px; color: #657287; font-size: 11px; font-weight: 700; }
.image-compress-resolution-fields > label > span { height: 40px; display: flex; align-items: center; overflow: hidden; background: #fff; border: 1px solid #cad5e3; border-radius: 7px; }
.image-compress-resolution-fields input:disabled { color: #aeb6c2; background: #f1f3f6; cursor: not-allowed; }
.image-compress-keep-ratio { margin-top: 10px; }
.image-compress-keep-ratio:has(input:disabled) { color: #aeb6c2; cursor: not-allowed; }
.image-tool-settings.image-folder-settings { min-width: 0; grid-template-columns: minmax(0,1fr) minmax(145px,1.35fr); }
.image-tool-settings.image-folder-settings > .image-folder-naming { grid-column: 1 / -1; }
.image-tool-settings.image-folder-settings > button { width: 100%; min-width: 0; }
.image-folder-naming { min-width: 0; min-height: 76px; box-sizing: border-box; display: flex; align-items: center; gap: 10px; margin: 0; padding: 17px 10px 8px; background: #fff; border: 1px solid #d7e0ea; border-radius: 8px; }
.image-folder-naming legend { padding: 0 5px; color: #526074; font-size: 12px; font-weight: 750; }
.image-folder-naming label { min-width: 0; display: flex; align-items: center; gap: 6px; padding: 7px 9px; color: #536176; background: #f7f9fc; border: 1px solid #e1e6ed; border-radius: 7px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.image-folder-naming label:has(input:checked) { color: var(--blue); background: #edf4ff; border-color: #9fc3fb; }
.image-folder-naming input { width: 16px; height: 16px; flex: none; margin: 0; padding: 0; accent-color: var(--blue); }
.image-folder-rule-summary { color: #59708c; font-size: 12px; }
.image-preview-input-card { grid-template-columns: minmax(0, 1fr) minmax(220px, .6fr); }
.image-preview-import-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 12px 18px; }
.image-preview-import-info > strong { max-width: 100%; overflow-wrap: anywhere; color: #344156; font-size: 16px; }
.image-preview-import-info > span, .image-preview-help { color: #8793a5; font-size: 13px; }
.image-preview-import-info > button { padding: 9px 16px; color: #627087; background: #fff; border: 1px solid #d5dde8; border-radius: 8px; }
.image-preview-import-info > button:disabled { color: #aeb6c2; cursor: not-allowed; }
.image-preview-results > header { flex-wrap: wrap; }
.image-preview-export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.image-preview-tools { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(360px, 1.4fr); gap: 16px 22px; padding: 18px 20px; background: #f8faff; border-bottom: 1px solid #e0e7f1; }
.image-preview-tools label { display: grid; min-width: 0; gap: 7px; color: #526074; font-size: 13px; font-weight: 700; }
.image-preview-search > div { display: flex; gap: 8px; margin-top: 7px; }
.image-preview-tools input, .image-preview-rename input { width: 100%; min-width: 0; height: 40px; padding: 0 11px; color: #344156; background: #fff; border: 1px solid #cfd8e5; border-radius: 7px; font-size: 14px; }
.image-preview-tools input:focus, .image-preview-rename input:focus { outline: 2px solid #bdd4ff; border-color: var(--blue); }
.image-preview-search input { flex: 1; }
.image-preview-replace { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.image-preview-translate-status { color: #246de0; font-size: 13px; }
.image-preview-folder-heading > .image-preview-translation { margin: 8px 0 0; color: #246de0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.image-preview-tools button, .image-preview-folder button:not(.image-preview-item) { width: auto; min-width: 0; flex: none; min-height: 36px; padding: 0 12px; color: #246de0; background: #fff; border: 1px solid #ccdbef; border-radius: 7px; font-size: 13px; font-weight: 700; }
.image-preview-tools button { height: 40px; }
.image-preview-tools button:disabled, .image-preview-folder button:disabled { color: #aeb6c2; cursor: not-allowed; }
.image-preview-tools > p { grid-column: 1 / -1; margin: 0; line-height: 1.65; }
.image-preview-folder { min-width: 0; padding: 20px; border-bottom: 2px solid #dce5f0; }
.image-preview-folder:last-child { border-bottom: 0; }
.image-preview-folder > header { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.image-preview-folder h3 { min-width: 0; margin: 0; color: #344156; font-size: 17px; overflow-wrap: anywhere; }
.image-preview-search-match { color: inherit; background: #ffd400; border-radius: 2px; }
.image-preview-folder header > span { flex: none; color: #7e8b9d; font-size: 12px; }
.image-preview-folder-heading { flex: 1; min-width: 0; }
.image-preview-folder-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.image-preview-folder-actions > span { flex: none; white-space: nowrap; color: #7e8b9d; font-size: 12px; }
.image-preview-rename { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.image-preview-rename input { flex: 1 1 180px; }
.image-preview-strip { --image-preview-height: 146px; display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #bccce3 #f3f6fa; }
.image-preview-item { width: calc(var(--image-preview-height) * var(--image-preview-ratio, 1) + 2px); min-width: 0; flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; padding: 0; color: #536176; background: transparent; border: 0; text-align: left; cursor: zoom-in; }
.image-preview-item:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.image-preview-frame { box-sizing: content-box; width: calc(100% - 2px); height: var(--image-preview-height); display: grid; place-items: center; overflow: hidden; color: #8e99aa; background-color: #fff; background-image: linear-gradient(45deg,#e7eaee 25%,transparent 25%),linear-gradient(-45deg,#e7eaee 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7eaee 75%),linear-gradient(-45deg,transparent 75%,#e7eaee 75%); background-position: 0 0,0 8px,8px -8px,-8px 0; background-size: 16px 16px; border: 1px solid #dfe5ed; border-radius: 8px; font-size: 12px; }
.image-preview-frame img { width: 100%; height: 100%; display: block; object-fit: fill; }
.image-preview-item:hover .image-preview-frame { border-color: var(--blue); }
.image-preview-item > strong { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 650; }
.image-preview-item.error .image-preview-frame { color: #bd4149; background: #fff2f3; }
.image-preview-empty { margin: 0; padding: 40px 18px; color: #8793a5; font-size: 14px; text-align: center; }
.image-preview-strip > .image-preview-empty { padding: 15px 0; text-align: left; }
.image-preview-unsupported { margin: 16px 20px 0; padding: 12px 14px; color: #a96325; background: #fff8ed; border: 1px solid #f0dfc4; border-radius: 8px; font-size: 13px; }
.image-preview-unsupported summary { cursor: pointer; }
.image-preview-unsupported ul { max-height: 160px; overflow: auto; padding-left: 20px; overflow-wrap: anywhere; }
.image-preview-hover { width: min(440px, calc(100vw - 24px)); height: min(440px, calc(100vh - 24px)); padding: 12px; }
@media (max-width: 680px) {
  .image-preview-input-card { grid-template-columns: minmax(0, 1fr); }
  .image-preview-import-info { padding: 0; gap: 8px; }
  .image-preview-folder { padding: 16px 12px; }
  .image-preview-folder h3 { font-size: 15px; }
  .image-preview-strip { --image-preview-height: 120px; }
  .image-preview-tools { grid-template-columns: minmax(0, 1fr); padding: 16px 12px; }
  .image-preview-replace { grid-template-columns: minmax(0, 1fr); }
  .image-preview-export-actions { width: 100%; }
  .image-preview-export-actions > button { flex: 1; min-width: 0 !important; }
  .image-preview-folder > header { align-items: flex-start; flex-wrap: wrap; }
  .image-preview-folder-heading { flex-basis: 100%; }
}
@media (min-width: 681px) and (max-width: 1050px) {
  .image-preview-tools { grid-template-columns: minmax(0, 1fr); }
}
.image-folder-item .image-tool-preview > span { max-width: calc(100% - 16px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.image-tool-progress { height: 42px; grid-column: 1 / -1; position: relative; overflow: hidden; background: #edf3fb; border-radius: 8px; }
.image-tool-progress > span { width: 0; position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg,#cfe2ff,#8ebaff); transition: width .2s ease; }
.image-tool-progress > strong { position: relative; z-index: 1; display: block; padding: 12px 14px; color: #3d5879; font-size: 13px; }
.image-tool-results-card { margin-top: 20px; overflow: hidden; }
.image-tool-results-card > header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 18px; border-bottom: 1px solid #e5eaf1; }
.image-tool-results-card h2 { margin: 0; color: #344156; font-size: 18px; }
.image-tool-results-card header p { margin: 5px 0 0; color: #8793a5; font-size: 12px; }
.image-tool-results-card header button { min-width: 132px; height: 40px; padding: 0 15px; color: #fff; background: var(--blue); border: 0; border-radius: 8px; font-weight: 750; }
.image-tool-results-card header button:disabled { color: #aeb6c2; background: #edf0f4; cursor: not-allowed; }
.image-tool-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; padding: 18px; }
.image-tool-grid > p { grid-column: 1 / -1; margin: 0; padding: 44px 15px; color: #909bac; text-align: center; }
.image-tool-item { min-width: 0; overflow: hidden; background: #fafbfd; border: 1px solid #dfe5ed; border-radius: 10px; }
.image-tool-preview { aspect-ratio: 1; display: grid; place-items: center; position: relative; overflow: hidden; background-color: #fff; background-image: linear-gradient(45deg,#e7eaee 25%,transparent 25%),linear-gradient(-45deg,#e7eaee 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7eaee 75%),linear-gradient(-45deg,transparent 75%,#e7eaee 75%); background-position: 0 0,0 10px,10px -10px,-10px 0; background-size: 20px 20px; }
.image-tool-preview img { width: 100%; height: 100%; display: block; object-fit: contain; }
.transparent-trim-item .image-tool-preview { background: var(--canvas); }
.transparent-trim-preview-canvas { max-width: 100%; max-height: 100%; overflow: hidden; background-color: #fff; background-image: linear-gradient(45deg,#dfe3e8 25%,transparent 25%),linear-gradient(-45deg,#dfe3e8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dfe3e8 75%),linear-gradient(-45deg,transparent 75%,#dfe3e8 75%); background-position: 0 0,0 8px,8px -8px,-8px 0; background-size: 16px 16px; }
.transparent-trim-preview-canvas.landscape { width: 100%; }
.transparent-trim-preview-canvas.portrait { height: 100%; }
.transparent-trim-preview-canvas img { width: 100%; height: 100%; object-fit: fill; }
.image-tool-preview-empty { color: #8e99aa; font-size: 13px; font-weight: 700; }
.image-tool-preview > span { position: absolute; right: 8px; top: 8px; padding: 4px 7px; color: #607087; background: rgba(255,255,255,.92); border: 1px solid rgba(215,222,232,.95); border-radius: 5px; font-size: 11px; font-weight: 750; }
.image-tool-item-body { padding: 11px; }
.image-tool-item-body > strong { display: block; overflow: hidden; color: #344156; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.image-tool-item-body > small { min-height: 34px; display: block; margin-top: 5px; color: #7e8b9d; font-size: 11px; line-height: 1.5; }
.image-tool-item-body > small.success { color: #159661; }
.image-tool-item-body > small.error { color: #d94d52; }
.image-tool-item-actions { display: flex; gap: 7px; margin-top: 9px; }
.image-tool-item-actions button, .image-tool-item-actions a { height: 32px; flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; text-decoration: none; }
.image-tool-item-actions button { color: #68768b; background: #fff; border: 1px solid #d6dee8; }
.image-tool-item-actions a { color: #fff; background: var(--blue); border: 1px solid var(--blue); }
.image-tool-item-actions a.disabled { color: #aeb6c2; background: #edf0f4; border-color: #edf0f4; pointer-events: none; }
.software-upload-toggle { height: 38px; padding: 0 17px; color: #fff; background: var(--blue); border: 0; border-radius: 8px; font-weight: 750; box-shadow: 0 6px 14px rgba(40,120,255,.18); }
.software-panel { width: min(1320px, calc(100% - 36px)); margin: 22px auto 42px; }
.software-upload-card { margin-bottom: 20px; padding: 20px; background: #fff; border: 1px solid #dce4ef; border-radius: 13px; box-shadow: 0 10px 28px rgba(34,55,88,.07); }
.software-upload-card > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.software-upload-card h2 { margin: 0; color: #344156; font-size: 19px; }
.software-upload-card header p { margin: 5px 0 0; color: #8a96a6; font-size: 12px; }
.software-upload-card > header > button { width: 34px; height: 34px; color: #7a8798; background: #f2f5f8; border: 0; border-radius: 50%; font-size: 21px; }
.software-upload-form { display: grid; grid-template-columns: minmax(240px,.9fr) minmax(360px,1.6fr) 138px; align-items: end; gap: 15px; margin-top: 18px; }
.software-file-picker { height: 88px; display: grid; grid-template-columns: 42px minmax(0,1fr); grid-template-rows: 1fr 1fr; align-items: center; column-gap: 11px; padding: 13px 15px; color: #516077; text-align: left; background: #f8faff; border: 1.5px dashed #b9cae3; border-radius: 9px; }
.software-file-picker:hover, .software-file-picker:focus-visible, .software-file-picker.dragover { color: var(--blue); background: #edf5ff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40,120,255,.08); }
.software-file-picker.dragover { border-style: solid; transform: translateY(-1px); }
.software-file-picker > span { width: 42px; height: 42px; grid-row: 1 / 3; display: grid; place-items: center; color: var(--blue); background: #e7f1ff; border-radius: 50%; font-size: 25px; }
.software-file-picker strong, .software-file-picker small { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.software-file-picker strong { align-self: end; font-size: 14px; }
.software-file-picker small { align-self: start; margin-top: 4px; color: #8c98a8; font-size: 11px; }
.software-upload-form label { display: grid; gap: 7px; color: #526074; font-size: 13px; font-weight: 750; }
.software-upload-form textarea { width: 100%; height: 88px; padding: 11px 12px; color: #344156; background: #fbfcfe; border: 1px solid #cfd8e5; border-radius: 9px; outline: 0; resize: none; line-height: 1.55; }
.software-upload-form textarea:focus { border-color: #72a5ff; box-shadow: 0 0 0 3px rgba(40,120,255,.1); }
.software-submit { height: 44px; margin-bottom: 0; color: #fff; background: var(--blue); border: 0; border-radius: 8px; font-weight: 750; }
.software-submit:disabled { color: #aeb6c2; background: #edf0f4; cursor: not-allowed; }
.software-upload-progress { height: 38px; position: relative; margin-top: 14px; overflow: hidden; background: #edf3fb; border-radius: 7px; }
.software-upload-progress span { width: 45%; position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg,#dceaff,#bdd8ff); animation: software-upload-moving 1.1s ease-in-out infinite alternate; }
.software-upload-progress strong { position: relative; z-index: 1; display: block; padding: 10px 13px; color: #49627f; font-size: 12px; }
@keyframes software-upload-moving { from { transform: translateX(-25%); } to { transform: translateX(145%); } }
.software-section { overflow: hidden; margin-top: 20px; background: #fff; border: 1px solid #dfe5ed; border-radius: 13px; box-shadow: 0 9px 28px rgba(34,55,88,.055); }
.software-section > header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; border-bottom: 1px solid #e6ebf1; }
.software-section > header > div { display: flex; align-items: center; gap: 12px; }
.software-section-icon { min-width: 50px; height: 36px; display: grid; place-items: center; padding: 0 9px; color: #176ff2; background: #eaf3ff; border-radius: 8px; font-size: 12px; font-weight: 800; }
.software-section.lan .software-section-icon { color: #8b5a0b; background: #fff3d8; }
.software-section h2 { margin: 0; color: #344156; font-size: 18px; }
.software-section header p { margin: 4px 0 0; color: #8a96a6; font-size: 11px; }
.software-section > header > strong { color: #718096; font-size: 12px; }
.software-table-head, .software-file-row { min-width: 830px; display: grid; grid-template-columns: minmax(190px,1.05fr) minmax(260px,1.6fr) 165px 170px; align-items: center; gap: 16px; padding: 11px 18px; }
.software-table-head { color: #7e8a9b; background: #f7f9fc; font-size: 11px; font-weight: 750; }
.software-file-list { overflow-x: auto; }
.software-file-list > p { margin: 0; padding: 34px 18px; color: #909bac; text-align: center; font-size: 13px; }
.software-file-row { min-height: 76px; border-top: 1px solid #edf0f4; }
.software-file-row:first-child { border-top: 0; }
.software-file-name { min-width: 0; }
.software-file-name strong { display: block; overflow: hidden; color: #3c4b61; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.software-file-name strong.script-public-download-name { color: #dc2626; }
.software-file-name small { display: block; margin-top: 5px; color: #96a0ae; font-size: 10px; }
.software-file-description { overflow: hidden; color: #687589; font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.software-file-meta { color: #8290a2; font-size: 11px; line-height: 1.65; }
.software-file-actions { display: flex; justify-content: flex-end; gap: 8px; }
.software-file-actions a, .software-file-actions button { min-width: 74px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border-radius: 7px; text-decoration: none; font-size: 12px; font-weight: 750; }
.software-file-actions a { color: #fff; background: var(--blue); border: 1px solid var(--blue); }
.software-file-actions a:hover { background: #1769ee; }
.software-file-actions button { color: #d84c51; background: #fff; border: 1px solid #efb8bb; }
.software-file-actions button.confirming { color: #fff; background: #e0555a; border-color: #e0555a; }
.relay-panel { width: min(1320px, calc(100% - 36px)); margin: 22px auto 42px; }
.relay-upload-card, .relay-files-card { overflow: hidden; background: #fff; border: 1px solid #dfe5ed; border-radius: 13px; box-shadow: 0 9px 28px rgba(34,55,88,.055); }
.relay-upload-card { margin-bottom: 20px; padding: 20px; }
.relay-upload-card > header, .relay-files-card > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.relay-upload-card h2, .relay-files-card h2 { margin: 0; color: #344156; font-size: 19px; }
.relay-upload-card header p, .relay-files-card header p { margin: 5px 0 0; color: #8a96a6; font-size: 11px; }
.relay-upload-card > header > button { width: 34px; height: 34px; color: #7a8798; background: #f2f5f8; border: 0; border-radius: 50%; font-size: 21px; }
.relay-upload-form { display: grid; grid-template-columns: minmax(0,1fr) 150px; gap: 14px; margin-top: 18px; }
.relay-file-picker { min-height: 82px; display: flex; align-items: center; gap: 12px; padding: 12px 15px; color: #536176; text-align: left; background: #f8faff; border: 1.5px dashed #b9cae3; border-radius: 9px; }
.relay-file-picker:hover, .relay-file-picker:focus-visible, .relay-file-picker.dragover { color: var(--blue); background: #edf5ff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40,120,255,.08); }
.relay-file-picker.dragover { border-style: solid; transform: translateY(-1px); }
.relay-file-picker > span { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: var(--blue); background: #e7f1ff; border-radius: 50%; font-size: 25px; }
.relay-file-picker div { min-width: 0; }
.relay-file-picker strong, .relay-file-picker small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.relay-file-picker strong { font-size: 14px; }
.relay-file-picker small { margin-top: 5px; color: #8d98a8; font-size: 11px; }
.relay-upload-submit { color: #fff; background: var(--blue); border: 0; border-radius: 8px; font-weight: 750; }
.relay-upload-submit:disabled { color: #aeb6c2; background: #edf0f4; }
.relay-upload-progress { min-height: 50px; position: relative; margin-top: 14px; overflow: hidden; background: #edf3fb; border-radius: 8px; }
.relay-upload-progress > span { width: 0; position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg,#dceaff,#bdd8ff); transition: width .2s; }
.relay-upload-progress > div { min-height: 50px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; }
.relay-upload-progress strong { color: #49627f; font-size: 12px; }
.relay-upload-progress button { height: 31px; padding: 0 12px; color: var(--danger); background: #fff; border: 1px solid #eccaca; border-radius: 6px; font-size: 11px; font-weight: 700; }
.relay-files-card > header { min-height: 78px; padding: 14px 18px; border-bottom: 1px solid #e6ebf1; }
.relay-files-card > header > div:last-child { display: flex; align-items: center; gap: 10px; }
.relay-files-card > header > div:last-child strong { color: #718096; font-size: 12px; }
.relay-files-card > header button { height: 33px; padding: 0 12px; color: var(--blue); background: #edf4ff; border: 1px solid #d2e2ff; border-radius: 7px; font-weight: 700; }
.relay-table-head, .relay-file-row { min-width: 900px; display: grid; grid-template-columns: minmax(220px,1.5fr) 120px 145px 145px 155px; align-items: center; gap: 13px; }
.relay-table-head { min-height: 38px; padding: 0 18px; color: #8c97a7; background: #f8fafc; border-bottom: 1px solid #e8ecf1; font-size: 10px; font-weight: 750; }
.relay-file-list { overflow-x: auto; }
.relay-file-list > p { margin: 0; padding: 48px 20px; color: #929dac; text-align: center; }
.relay-file-row { min-height: 68px; padding: 10px 18px; border-bottom: 1px solid #eef1f5; }
.relay-file-row:last-child { border-bottom: 0; }
.relay-file-row > div { min-width: 0; }
.relay-file-row strong, .relay-file-row small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.relay-file-row strong { color: #435167; font-size: 13px; }
.relay-file-row small { margin-top: 4px; color: #8c97a7; font-size: 10px; }
.relay-file-size, .relay-file-owner, .relay-file-expiry { color: #657287; font-size: 11px; }
.relay-file-expiry strong { color: #d27d12; font-size: 12px; }
.relay-file-actions { display: flex; justify-content: flex-end; gap: 7px; }
.relay-file-actions a, .relay-file-actions button { min-width: 64px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 6px; font-size: 11px; font-weight: 750; }
.relay-file-actions a { color: #fff; background: var(--blue); }
.relay-file-actions button { color: var(--danger); background: #fff; border: 1px solid #efc3c5; }
.relay-file-actions button.confirming { color: #fff; background: var(--danger); border-color: var(--danger); }
.direct-transfer-panel { width: min(1120px,calc(100% - 36px)); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 24px auto 48px; }
.direct-transfer-card { min-width: 0; padding: 23px; background: #fff; border: 1px solid #dfe6ef; border-radius: 14px; box-shadow: 0 10px 30px rgba(34,55,88,.055); }
.direct-transfer-card > header { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.direct-transfer-card h2 { margin: 0; color: #344156; font-size: 20px; }
.direct-transfer-card header p { margin: 5px 0 0; color: #8894a5; font-size: 12px; }
.direct-step { width: 40px; height: 40px; display: grid; place-items: center; flex: none; color: #fff; background: var(--blue); border-radius: 50%; font-size: 16px; font-weight: 850; box-shadow: 0 7px 16px rgba(40,120,255,.22); }
.direct-file-picker { width: 100%; min-height: 92px; display: flex; align-items: center; gap: 13px; padding: 14px 16px; color: #536176; text-align: left; background: #f8faff; border: 1.5px dashed #b9cae3; border-radius: 10px; }
.direct-file-picker:hover,.direct-file-picker.dragover { color: var(--blue); background: #edf5ff; border-color: var(--blue); }
.direct-file-picker > span { width: 44px; height: 44px; display: grid; place-items: center; flex: none; color: var(--blue); background: #e7f1ff; border-radius: 50%; font-size: 27px; }
.direct-file-picker div { min-width: 0; }
.direct-file-picker strong,.direct-file-picker small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.direct-file-picker strong { font-size: 14px; }
.direct-file-picker small { margin-top: 6px; color: #8c97a7; font-size: 11px; }
.direct-primary { width: 100%; height: 45px; margin-top: 14px; color: #fff; background: var(--blue); border: 0; border-radius: 9px; font-weight: 800; }
.direct-primary:disabled { color: #abb4c1; background: #edf0f4; cursor: not-allowed; }
.direct-code-box { margin-top: 15px; padding: 13px 15px; background: #f0f6ff; border: 1px solid #d6e5ff; border-radius: 9px; }
.direct-code-box > small { display: block; color: #718198; font-size: 11px; }
.direct-code-box > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 5px; }
.direct-code-box strong { color: var(--blue); font-size: 28px; letter-spacing: .15em; }
.direct-code-box button { height: 32px; padding: 0 12px; color: var(--blue); background: #fff; border: 1px solid #cbdfff; border-radius: 6px; font-weight: 750; }
.direct-code-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }.direct-code-box > div { flex-wrap: wrap; }.direct-code-box button:disabled { opacity: .5; cursor: default; }
.direct-code-input { display: grid; grid-template-columns: minmax(0,1fr) 86px; gap: 10px; }
.direct-code-input input { min-width: 0; height: 46px; padding: 0 14px; color: #324056; background: #fbfcfe; border: 1px solid #d8e1ec; border-radius: 9px; font-size: 18px; font-weight: 750; letter-spacing: .12em; outline: 0; }
.direct-code-input input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40,120,255,.08); }
.direct-code-input button { color: var(--blue); background: #edf4ff; border: 1px solid #d3e3ff; border-radius: 9px; font-weight: 800; }
.direct-file-info { margin-top: 14px; padding: 13px 15px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 9px; }
.direct-file-info strong,.direct-file-info small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.direct-file-info strong { font-size: 14px; }
.direct-file-info small { margin-top: 5px; color: #8490a1; font-size: 11px; }
.direct-connection { margin: 12px 0 0; padding: 9px 11px; color: #526b8e; background: #f5f8ff; border: 1px solid #e0e9f6; border-radius: 7px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.direct-diagnostics { margin: 8px 0 0; color: #526b8e; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.direct-diagnostics summary { cursor: pointer; width: fit-content; }
.direct-diagnostics p { margin: 6px 0 0; padding: 9px 11px; background: #f5f8ff; border: 1px solid #e0e9f6; border-radius: 7px; white-space: pre-line; }
.direct-progress { min-height: 54px; position: relative; margin-top: 14px; overflow: hidden; background: #edf3fb; border-radius: 9px; }
.direct-progress > span { width: 0; position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg,#dceaff,#bcd7ff); transition: width .18s; }
.direct-progress > div { min-height: 54px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; }
.direct-progress strong { min-width: 0; color: #49627f; font-size: 11px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.direct-progress button { height: 31px; flex: none; padding: 0 11px; color: var(--danger); background: #fff; border: 1px solid #eccaca; border-radius: 6px; font-size: 11px; font-weight: 750; }
.direct-transfer-note { grid-column: 1 / -1; margin: 0; padding: 12px 15px; color: #6e7b8f; background: #fff9eb; border: 1px solid #f1dfb5; border-radius: 9px; font-size: 12px; line-height: 1.6; }
.download-coming-popover { position: fixed; z-index: 27; width: min(270px, calc(100vw - 24px)); }
.download-coming-popover::before { content: ""; width: 12px; height: 12px; position: absolute; right: 25px; top: -6px; z-index: 1; background: #fff; border-left: 1px solid #e1e6ed; border-top: 1px solid #e1e6ed; transform: rotate(45deg); }
.download-coming-card { min-height: 92px; display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid #e1e6ed; border-radius: 11px; box-shadow: 0 18px 48px rgba(25,38,58,.20); }
.download-coming-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: none; color: var(--blue); background: var(--blue-soft); border-radius: 10px; font-size: 27px; font-weight: 500; }
.download-coming-card strong { display: block; color: #344156; font-size: 16px; }
.download-coming-card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.status-modal { position: fixed; z-index: 28; width: min(580px, calc(100vw - 24px)); background: transparent; }
.status-modal::before { content: ""; width: 12px; height: 12px; position: absolute; right: 25px; top: -6px; z-index: 1; background: #fff; border-left: 1px solid #e1e6ed; border-top: 1px solid #e1e6ed; transform: rotate(45deg); }
.status-modal.from-search-panel::before { left: -6px; right: auto; top: 25px; transform: rotate(-45deg); }
.status-dialog-card { width: 100%; overflow: hidden; background: #fff; border: 1px solid #e1e6ed; border-radius: 11px; box-shadow: 0 18px 48px rgba(25,38,58,.20); }
.status-dialog-card > header { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.status-dialog-card > header > div { display: flex; align-items: center; gap: 11px; }
.status-live-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(22,184,119,.12); }
.status-dialog-card h2 { margin: 0; font-size: 18px; }
.status-dialog-card header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.status-dialog-card header button { width: 33px; height: 33px; color: #7a8697; background: #f6f8fa; border: 1px solid var(--line); border-radius: 7px; font-size: 22px; }
.status-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 17px 20px; background: #f8faff; }
.status-overview > div { padding: 13px 10px; background: #fff; border: 1px solid #e5eaf2; border-radius: 8px; }
.status-overview span, .status-overview strong { display: block; }
.status-overview span { color: var(--muted); font-size: 11px; }
.status-overview strong { margin-top: 7px; color: #344156; font-size: 15px; }
.status-overview > div:first-child strong { color: var(--green); }
.status-details { margin: 0; padding: 7px 20px; }
.status-details > div { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef1f5; }
.status-details > div:last-child { border-bottom: 0; }
.status-details dt { color: #7a8697; font-size: 13px; }
.status-details dd { margin: 0; overflow-wrap: anywhere; color: #344156; font-size: 13px; }
.status-dialog-card > footer { padding: 13px 20px; display: flex; justify-content: flex-end; gap: 9px; background: #fafbfc; border-top: 1px solid var(--line); }
.status-dialog-card > footer button { min-width: 90px; padding: 8px 13px; color: #617087; background: #fff; border: 1px solid #dfe4eb; border-radius: 7px; font-size: 13px; }
.status-dialog-card > footer .status-confirm { color: #fff; background: var(--blue); border-color: var(--blue); }
.lightbox { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 6px; color: #344156; background: rgba(26,34,47,.48); backdrop-filter: blur(3px); }
.lightbox-layout { --preview-size: min(calc(100vh - 120px), calc(100vw - 450px), 1116px); width: var(--preview-size); position: relative; transform: translateX(max(0px, calc(430px - (100vw - var(--preview-size)) / 2))); }
.lightbox.comparison-mode .lightbox-layout { --preview-size: min(calc(100vh - 120px), calc(66.6667vw - 8px), 1116px); transform: translateX(25%); }
.lightbox-card { width: 100%; overflow: hidden; background: #fff; border: 1px solid #dce2ea; border-radius: 12px; box-shadow: 0 24px 70px rgba(17,25,38,.28); }
.lightbox-card > header { min-height: 48px; padding: 0 12px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.lightbox-title-row { min-width: 0; display: flex; align-items: baseline; gap: 9px; }
.lightbox-title-row strong { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
.lightbox-title-row em { flex: none; font-size: 15px; font-style: normal; font-weight: 700; white-space: nowrap; }
.lightbox-title-row em.curated { color: var(--blue); }
.lightbox-title-row em.uploader,.lightbox-title-row em.own-uploader { color: var(--blue); }
.lightbox-title-row em.other-uploader { color: #e04d52; }
.lightbox-title-row em.uploaded { color: #e04d52; }
.lightbox-title-row em.reported { color: #e04d52; }
.lightbox-close { width: 34px; height: 34px; flex: none; color: #718096; background: #f5f7fa; border: 1px solid #e2e6ec; border-radius: 7px; font-size: 23px; line-height: 1; }
.lightbox-stage { width: calc(100% - 16px); aspect-ratio: 1; margin: 8px auto; position: relative; display: grid; place-items: center; overflow: hidden; touch-action: none; background-color: #fff; border: 1px solid #dfe4eb; }
.lightbox-stage.transparent-background { background-color: #fff; background-image: linear-gradient(45deg,#e5e8ed 25%,transparent 25%),linear-gradient(-45deg,#e5e8ed 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e5e8ed 75%),linear-gradient(-45deg,transparent 75%,#e5e8ed 75%); background-position: 0 0,0 10px,10px -10px,-10px 0; background-size: 20px 20px; }
.lightbox-stage img { width: 100%; height: 100%; min-width: 0; min-height: 0; display: block; object-fit: contain; object-position: center; user-select: none; -webkit-user-drag: none; transform: translate(0,0) scale(1); transform-origin: center center; transition: transform .14s ease; will-change: transform; }
.lightbox-stage.drag-mode { cursor: grab; }
.lightbox-stage.dragging { cursor: grabbing; }
.lightbox-stage.dragging img { transition: none; }
.lightbox-query-reference { width: calc(50% - 8px); aspect-ratio: 1; position: absolute; right: calc(100% + 8px); top: 56px; z-index: 2; display: grid; place-items: center; overflow: hidden; background-color: #fff; border: 1px solid #dfe4eb; border-radius: 9px; box-shadow: 0 16px 42px rgba(17,25,38,.22); }
.lightbox-query-reference.transparent-background { background-color: #fff; background-image: linear-gradient(45deg,#e5e8ed 25%,transparent 25%),linear-gradient(-45deg,#e5e8ed 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e5e8ed 75%),linear-gradient(-45deg,transparent 75%,#e5e8ed 75%); background-position: 0 0,0 10px,10px -10px,-10px 0; background-size: 20px 20px; }
.lightbox-query-reference > span { position: absolute; left: 9px; top: 9px; z-index: 1; padding: 5px 9px; color: #344156; background: rgba(255,255,255,.90); border: 1px solid rgba(211,218,227,.94); border-radius: 6px; box-shadow: 0 3px 10px rgba(25,38,58,.10); font-size: 13px; font-weight: 700; }
.lightbox-query-reference > img { width: 100%; height: 100%; min-width: 0; min-height: 0; display: block; object-fit: contain; object-position: center; user-select: none; -webkit-user-drag: none; }
.lightbox-card > footer { min-height: 58px; padding: 7px 12px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; background: #fafbfc; border-top: 1px solid var(--line); }
.preview-background-control { width: max-content; min-height: 54px; position: absolute; right: calc(100% + 6px); bottom: 0; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 8px 10px; background: #fff; border: 1px solid #dfe4eb; border-radius: 10px; box-shadow: 0 10px 28px rgba(25,38,58,.18); }
.preview-background-control label { font-size: 15px; font-weight: 650; }
.preview-background-control button { height: 36px; padding: 0 13px; color: #657287; background: #fff; border: 1px solid #d9dfe8; border-radius: 6px; font-size: 14px; }
.preview-background-control button.active { color: var(--blue); border-color: var(--blue); background: #f3f7ff; }
.preview-background-control .preview-color-button { width: 40px; padding: 3px; border-color: #aeb7c5; border-radius: 0; }
.preview-color-button span { width: 100%; height: 100%; display: block; background: #fff; }
.native-color-input { width: 2px; height: 2px; position: absolute; right: 225px; bottom: calc(100% + 6px); opacity: .01; pointer-events: none; }
.preview-zoom-toolbar { display: flex; align-items: center; gap: 3px; padding: 5px 8px; background: #fff; border: 1px solid #e0e5ec; border-radius: 24px; box-shadow: 0 6px 18px rgba(39,51,70,.10); }
.preview-tool { min-width: 36px; height: 34px; display: grid; place-items: center; position: relative; padding: 0 7px; color: #263244; background: transparent; border: 0; border-radius: 17px; font-size: 24px; line-height: 1; }
.preview-tool:hover, .preview-tool:focus-visible { color: var(--blue); background: #f0f5ff; }
.preview-tool.active { color: #fff; background: var(--blue); }
.preview-zoom-percent { min-width: 62px; font-size: 14px; font-weight: 700; }
.preview-icon-tool svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.preview-tool[data-tooltip]::after { content: attr(data-tooltip); position: absolute; left: 50%; bottom: calc(100% + 9px); z-index: 4; padding: 5px 8px; color: #fff; background: rgba(32,42,57,.94); border-radius: 5px; opacity: 0; pointer-events: none; transform: translate(-50%,4px); transition: .15s; white-space: nowrap; font-size: 12px; font-weight: 500; }
.preview-tool[data-tooltip]:hover::after, .preview-tool[data-tooltip]:focus-visible::after { opacity: 1; transform: translate(-50%,0); }
.lightbox-report { min-width: 90px; height: 38px; margin-left: auto; padding: 0 14px; color: #d94d52; background: #fff; border: 1px solid #efb1b4; border-radius: 7px; font-size: 14px; font-weight: 700; }
.lightbox-report:hover { color: #fff; background: #e1585d; border-color: #e1585d; }
.lightbox-download { min-width: 94px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 7px; text-decoration: none; font-size: 14px; font-weight: 700; }
.lightbox-download:hover { color: #fff; background: #1769ee; border-color: #1769ee; }
.lightbox.report-mode { background: rgba(18,24,33,.78); backdrop-filter: grayscale(1) blur(3px); }
.lightbox.report-mode .lightbox-card { background: #747a83; border-color: #656b73; }
.lightbox.report-mode .lightbox-card > header { color: #eef1f5; background: #747a83; border-bottom-color: #656b73; }
.lightbox.report-mode .lightbox-close { color: #d9dde3; background: #676d75; border-color: #858b93; }
.lightbox.report-mode .lightbox-close { visibility: hidden; pointer-events: none; }
.lightbox.report-mode .lightbox-query-reference { opacity: .32; filter: grayscale(1); }
.lightbox.report-mode .lightbox-stage { z-index: 3; background-color: #fff; border-color: #fff; box-shadow: 0 0 0 4px #fff, 0 10px 38px rgba(0,0,0,.46); }
.lightbox.report-mode .lightbox-card > footer { background: #747a83; border-top-color: #656b73; }
.lightbox.report-mode .preview-background-control, .lightbox.report-mode .preview-zoom-toolbar,
.lightbox.report-mode .lightbox-report, .lightbox.report-mode .lightbox-download { display: none; }
.lightbox-stage #reportCanvas { width: 100%; height: 100%; position: absolute; inset: 0; z-index: 3; display: block; cursor: crosshair; touch-action: none; }
.lightbox-stage #reportCanvas.text-placement { cursor: text; }
.report-canvas-text-editor { min-width: 180px; position: absolute; z-index: 7; display: flex; align-items: center; gap: 6px; padding: 6px; color: #ef2b2d; background: rgba(255,255,255,.90); border: 1px dashed currentColor; border-radius: 4px; cursor: move; box-shadow: 0 4px 14px rgba(18,27,40,.20); touch-action: none; }
.report-canvas-text-editor.dragging { background: rgba(255,255,255,.72); box-shadow: 0 7px 20px rgba(18,27,40,.28); }
.report-canvas-text-editor input { width: auto; min-width: 0; height: 1.35em; flex: 1; padding: 0; color: inherit; background: transparent; border: 0; outline: 0; font-family: "Microsoft YaHei", "Segoe UI", sans-serif; font-weight: 700; line-height: 1.2; cursor: text; }
.report-canvas-text-editor button { width: 48px; height: 30px; flex: none; padding: 0; color: #fff; background: var(--blue); border: 0; border-radius: 5px; font-size: 12px; font-weight: 700; cursor: pointer; }
.report-text-selection { position: absolute; z-index: 6; min-width: 24px; min-height: 24px; border: 1px dashed #2878ff; cursor: move; box-shadow: 0 0 0 1px rgba(255,255,255,.80); touch-action: none; }
.report-text-selection::before { content: ""; width: 7px; height: 7px; position: absolute; left: -4px; top: -4px; background: #fff; border: 1px solid #2878ff; }
.report-text-selection > span { width: 11px; height: 11px; position: absolute; right: -6px; bottom: -6px; background: #fff; border: 2px solid #2878ff; border-radius: 1px; cursor: nwse-resize; }
.report-text-selection.transforming { border-style: solid; }
.report-canvas-loading { position: absolute; z-index: 4; padding: 10px 14px; color: #657287; background: rgba(255,255,255,.96); border: 1px solid #dfe4eb; border-radius: 7px; }
.inline-report-toolbar { width: 100%; min-width: 0; display: none; align-items: center; gap: 6px; }
.lightbox.report-mode .inline-report-toolbar { display: flex; }
.inline-report-toolbar label { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 650; }
.inline-report-toolbar input[type="color"] { width: 36px; height: 32px; padding: 2px; background: #fff; border: 1px solid #b9c1cc; }
.inline-report-toolbar input[type="range"] { width: 82px; accent-color: #fff; }
.inline-report-toolbar output { min-width: 22px; color: #fff; font-weight: 700; }
.inline-report-toolbar button { height: 34px; padding: 0 9px; color: #344156; background: #fff; border: 1px solid #d9dfe8; border-radius: 6px; font-weight: 650; white-space: nowrap; }
.inline-report-toolbar button.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.inline-report-toolbar > span { min-width: 80px; flex: 1; margin-left: 2px; overflow: hidden; color: #eef1f5; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.inline-report-toolbar button.primary { min-width: 74px; color: #fff; background: var(--blue); border-color: var(--blue); }
.inline-report-toolbar button:disabled { color: #aeb6c2; background: #edf0f4; border-color: #edf0f4; cursor: not-allowed; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes slide { from { transform: translateX(-120%); } to { transform: translateX(340%); } }
@media (max-width: 1600px) {
  .topbar { padding-left: 14px; padding-right: 14px; gap: 12px; }
  .brand { min-width: 168px; }
  .brand small { display: none; }
  .topnav { gap: 10px; }
  .topnav a, .topnav button { font-size: 13px; }
  .topnav-dropdown-wrap > button { min-width: 72px; }
}
@media (max-width: 1180px) {
  .home-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .results-grid { grid-template-columns: repeat(4, minmax(135px, 1fr)); }
  .search-results-toolbar { align-items: stretch; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .search-toolbar-main { width: 100%; justify-content: space-between; }
  .search-toolbar-right { width: 100%; justify-content: flex-end; }
}
@media (max-width: 980px) {
  .topbar { z-index: 10; }
  .brand { min-width: 0; margin-right: auto; }
  .mobile-menu-button { min-width: 88px; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 9px; flex: 0 0 auto; color: #36506f; background: #f4f8ff; border: 1px solid #dbe7fc; border-radius: 10px; font-size: 15px; font-weight: 750; }
  .mobile-menu-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  .mobile-menu-button[aria-expanded="true"] { color: var(--blue); background: #eaf3ff; }
  .mobile-menu-icon { width: 18px; height: 16px; position: relative; display: block; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
  .mobile-menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 2px solid currentColor; }
  .mobile-nav-backdrop:not(.hidden) { position: fixed; z-index: 8; inset: 74px 0 0; display: block; width: 100%; padding: 0; background: rgba(23,37,62,.35); border: 0; }
  .topnav { position: fixed; z-index: 11; top: 74px; right: 0; bottom: 0; width: min(360px, calc(100vw - 40px)); display: flex; flex-direction: column; align-self: auto; gap: 0; margin: 0; padding: 12px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-left: 1px solid #dfe7f2; box-shadow: -18px 0 45px rgba(23,37,62,.18); visibility: hidden; pointer-events: none; transform: translateX(102%); transition: transform .2s ease, visibility .2s ease; }
  .topnav.mobile-open { visibility: visible; pointer-events: auto; transform: translateX(0); }
  .topnav > button, .topnav-dropdown-wrap > button { width: 100%; min-height: 48px; flex: 0 0 auto; justify-content: flex-start; padding: 0 14px; border-bottom: 1px solid #edf1f7; font-size: 16px; text-align: left; }
  .topnav-dropdown-wrap { display: block; border-bottom: 1px solid #edf1f7; }
  .topnav-dropdown-wrap > button { justify-content: space-between; border-bottom: 0; }
  .topnav a.active::after, .topnav button.active::after { left: 0; top: 9px; right: auto; bottom: 9px; width: 3px; height: auto; }
  .topnav-dropdown, .topnav-dropdown.main-image-dropdown { width: 100%; position: static; padding: 3px 8px 9px; transform: none; background: #f7faff; border: 0; border-radius: 9px; box-shadow: none; }
  .topnav .topnav-dropdown button { min-height: 44px; justify-content: flex-start; padding: 0 14px; font-size: 15px; text-align: left; white-space: normal; }
  .topnav .account-menu { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; padding: 12px; background: #f7f9fc; border-radius: 9px; }
  .topnav .account-menu.hidden { display: none; }
  .topnav .account-menu span { grid-column: 1 / -1; max-width: none; }
  .topnav .account-menu button { min-height: 40px; justify-content: center; }
  .report-count-badge { right: 12px; top: 10px; }
  .app-shell { grid-template-columns: minmax(0,1fr); }
  .app-shell.search-view { grid-template-columns: 280px minmax(0,1fr); }
  .app-shell:not(.search-view) { grid-template-columns: minmax(0,1fr); }
  .app-shell:not(.search-view) .sidebar { display: none; }
  .app-shell:not(.search-view) .workspace { grid-column: 1; }
  .window-settings-card, .status-dialog-card { max-height: calc(100dvh - 110px); overflow-y: auto; }
  .results-grid { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .main-image-editor-grid { grid-template-columns: 1fr; }
  .collector-editor-grid { grid-template-columns: 1fr; }
  .software-upload-form { grid-template-columns: 1fr; }
  .software-submit { width: 100%; }
  .info-image-picker-row { grid-template-columns: 1fr; }
  .image-tool-input-card { grid-template-columns: 1fr; }
  .image-tool-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .direct-transfer-panel { width: calc(100% - 22px); grid-template-columns: 1fr; gap: 14px; margin: 16px auto 30px; }
  .direct-transfer-card { padding: 17px 14px; }
  .direct-transfer-note { grid-column: auto; }
  body { overflow: auto; }
  body.mobile-menu-open { overflow: hidden; }
  .topbar { position: sticky; top: 0; height: 60px; padding: 0 13px; }
  .brand strong { font-size: 27px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand small { display: none; }
  .mobile-nav-backdrop:not(.hidden) { top: 60px; }
  .topnav { top: 60px; }
  .server-state { min-width: 0; padding: 7px 8px; }
  .server-state span { max-width: 100px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .app-shell { height: auto; display: flex; flex-direction: column; }
  .app-shell.search-view { display: flex; overflow: visible; }
  .app-shell.search-view .search-control-panel { width: 100%; overflow: visible; border-right: 0; border-bottom: 1px solid #dfe6ef; }
  .app-shell.search-view > .workspace { width: 100%; min-height: 70vh; overflow: visible; }
  .search-control-panel { padding: 15px 11px; }
  .search-control-header { align-items: flex-start; }
  .search-control-header > div:first-child strong { font-size: 19px; }
  .search-control-header .server-state { flex: 0 0 auto; }
  .search-control-actions { gap: 10px; }
  .search-control-actions .privacy-note { margin: 0; text-align: center; }
  .search-control-actions .primary-button { width: 100%; flex: 0 0 auto; }
  .home-workspace { padding: 16px 11px 40px; }
  .home-hero { min-height: 0; grid-template-columns: 1fr; gap: 20px; padding: 30px 22px; border-radius: 17px; }
  .home-hero h1 { margin-top: 20px; font-size: 48px; }
  .home-hero h1 img { width: 64px; height: 64px; }
  .home-hero p { font-size: 17px; }
  .home-hero-actions { align-items: stretch; flex-direction: column; margin-top: 24px; }
  .home-hero-visual { width: 190px; justify-self: center; }
  .home-introduction { margin-top: 31px; }
  .home-introduction h2 { font-size: 25px; }
  .home-introduction header p { font-size: 14px; }
  .home-feature-grid { grid-template-columns: 1fr; gap: 11px; margin-top: 20px; }
  .home-feature-grid a { min-height: 136px; padding: 20px; }
  .sidebar { overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace { overflow: visible; min-height: 70vh; }
  .search-toolbar-main { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
  .search-toolbar-main .result-tabs { width: 100%; }
  .search-toolbar-main .result-tabs button { min-width: 0; flex: 1; padding-left: 7px; padding-right: 7px; }
  .search-toolbar-right { display: flex; flex-wrap: wrap; }
  .search-toolbar-right .toolbar-meta { width: 100%; justify-content: flex-end; }
  .search-toolbar-actions { width: 100%; display: grid; grid-template-columns: repeat(auto-fit,minmax(88px,1fr)); }
  .search-toolbar-action { min-width: 0; justify-content: center; padding: 0 6px; }
  .search-toolbar-action.status { gap: 5px; }
  .search-toolbar-action.status .server-state span { display: none; }
  .info-strip { align-items: flex-start; flex-direction: column; gap: 4px; padding: 9px 16px; line-height: 1.45; }
  .info-strip span { flex: 0 0 auto; white-space: nowrap; }
  .admin-card { order: 8; }
  .primary-button { margin-top: 10px; }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-header { align-items: flex-start; padding: 10px; flex-direction: column; }
  .empty-steps i { width: 13px; }
  .lan-upload-panel { width: calc(100% - 22px); margin: 18px auto; }
  .lan-upload-drop { min-height: 280px; padding: 25px 15px; }
  .upload-file-row { grid-template-columns: 42px minmax(0,1fr) auto; }
  .upload-code-controls { grid-column: 1 / -1; grid-row: 2; }
  .upload-file-state { grid-column: 2; text-align: left; }
  .remove-upload-file { grid-column: 3; grid-row: 1; }
  .window-settings-popover { left: 12px !important; right: 12px !important; width: auto; }
  .window-options { grid-template-columns: 1fr; }
  .status-overview { grid-template-columns: repeat(2, 1fr); }
  .status-details > div { grid-template-columns: 82px minmax(0,1fr); }
  .status-modal { left: 12px !important; right: 12px !important; width: auto; }
  .flow-check-panel { width: calc(100% - 22px); margin: 18px auto; }
  .flow-check-card { padding: 20px 15px; }
  .main-image-panel { width: calc(100% - 22px); margin: 18px auto 30px; }
  .main-image-card { padding: 17px 14px; }
  .main-image-card-header { align-items: flex-start; flex-direction: column; }
  .upload-toolbar { min-height: 66px; gap: 10px; }
  .upload-toolbar > div:first-child { min-width: 0; align-items: flex-start; flex-direction: column; gap: 3px; }
  .workspace-switch-button { flex: 0 0 auto; padding: 0 10px; font-size: 12px; }
  .product-collector-panel { width: calc(100% - 22px); margin: 18px auto 30px; }
  .software-panel { width: calc(100% - 22px); margin: 18px auto 30px; }
  .relay-panel { width: calc(100% - 22px); margin: 18px auto 30px; }
  .relay-upload-card { padding: 17px 14px; }
  .relay-upload-form { grid-template-columns: 1fr; }
  .relay-upload-submit { height: 42px; }
  .info-library-panel { width: calc(100% - 22px); margin: 18px auto 30px; }
  .info-library-search { grid-template-columns: 1fr auto; }
  .info-library-search label { grid-column: 1 / -1; }
  .info-add-card { padding: 17px 14px; }
  .info-entry-list { grid-template-columns: 1fr; }
  .info-image-lightbox { padding: 12px; }
  .info-image-lightbox figure { max-width: calc(100vw - 24px); }
  .image-tool-panel { width: calc(100% - 22px); margin: 18px auto 30px; }
  .image-tool-input-card { padding: 14px; }
  .image-tool-drop { min-height: 116px; padding: 16px; }
  .image-tool-settings { grid-template-columns: 1fr; }
  .image-tool-settings > button { width: 100%; }
  .image-compress-resolution-fields { grid-template-columns: 1fr; }
  .image-tool-settings.image-folder-settings { grid-template-columns: 1fr; }
  .image-folder-naming { align-items: stretch; flex-direction: column; }
  .image-tool-results-card > header { align-items: stretch; flex-direction: column; }
  .image-tool-results-card header button { width: 100%; }
  .image-tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; }
  .same-print-panel { width: calc(100% - 22px); margin: 18px auto 30px; }
  .same-print-card { padding: 17px 14px; }
  .same-print-card-header { align-items: flex-start; flex-direction: column; }
  .same-print-add-shop { grid-template-columns: 1fr; }
  .same-print-add-shop label { grid-template-columns: 1fr; gap: 6px; }
  .same-print-shop-row { grid-template-columns: auto minmax(0,1fr); }
  .same-print-shop-stats, .same-print-shop-actions { grid-column: 2; text-align: left; }
  .same-print-scope-row { align-items: flex-start; flex-wrap: wrap; }
  #samePrintScopeList { width: 100%; flex-basis: 100%; }
  .same-print-query-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .same-print-query-actions { align-items: stretch; flex-direction: column; }
  .same-print-query-actions button { width: 100%; }
  .same-print-mode-tabs { width: 100%; box-sizing: border-box; }
  .same-print-mode-tabs button { min-width: 0; flex: 1; }
  .same-print-library-check { grid-template-columns: 1fr; text-align: center; }
  .same-print-library-check-icon { margin: 0 auto; }
  .same-print-library-check > button { width: 100%; }
  .same-print-match-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .same-print-duplicate-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .software-upload-card { padding: 17px 14px; }
  .software-upload-toggle { flex: 0 0 auto; padding: 0 11px; font-size: 12px; }
  .software-table-head { display: none; }
  .software-file-list { overflow-x: visible; }
  .software-file-row { min-width: 0; grid-template-columns: minmax(0,1fr); gap: 8px; padding: 14px 16px; }
  .software-file-name strong { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
  .software-file-description { display: block; overflow: visible; overflow-wrap: anywhere; }
  .software-file-actions { justify-content: flex-start; flex-wrap: wrap; }
  .software-file-actions a, .software-file-actions button { min-width: 94px; height: 40px; }
  .collector-card { padding: 17px 14px; }
  .collector-card-header { align-items: stretch; flex-direction: column; }
  .collector-workspace-toolbar { flex-wrap: wrap; padding: 12px 14px; gap: 8px; }
  .collector-workspace-toolbar > div:first-child { width: 100%; }
  .collector-price-field { justify-content: flex-end; }
  .collector-generate-actions { align-items: stretch; flex-direction: column; }
  .collector-product-title-editor { grid-template-columns: 1fr; }
  .collector-title-suffix-field { width: 100%; min-width: 0; }
  .collector-color-choice { width: 100%; box-sizing: border-box; }
  .collector-main-output-settings { align-items: stretch; flex-direction: column; }
  .collector-main-output-settings .tshirt-output-size-modes { width: 100%; }
  .collector-main-output-settings .tshirt-output-size-modes > button { flex: 1; }
  .collector-main-output-settings .tshirt-output-size-modes label { flex: 1.2; }
  .collector-main-output-settings .tshirt-output-size-modes input { width: 100%; min-width: 0; }
  .collector-material-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .collector-product-list { grid-template-columns: 1fr; }
  .collector-selected-product { grid-template-columns: 1fr; gap: 4px; }
  .template-admin-actions, .template-admin-actions > button, .generate-tshirt-button { width: 100%; }
  .template-admin-actions { align-items: stretch; flex-direction: column; }
  .template-source-filters { width: 100%; }
  .template-source-filters button { width: auto; flex: 1; }
  .tshirt-output-size-settings { align-items: stretch; flex-direction: column; }
  .tshirt-output-size-modes { width: 100%; }
  .tshirt-output-size-modes > button { flex: 1; }
  .tshirt-output-size-modes label { flex: 1.2; }
  .tshirt-output-size-modes input { width: 100%; min-width: 0; }
  .tshirt-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tshirt-editor-layout { grid-template-columns: 1fr; }
  .tshirt-preview-shell { min-height: 300px; }
  .tshirt-area-controls { width: 100%; }
  .tshirt-output-section > header { align-items: stretch; flex-direction: column; }
  .tshirt-output-section header button { width: 100%; }
  .tshirt-generate-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .tshirt-filename-option { width: 100%; }
  .lightbox-layout { --preview-size: min(calc(100vh - 120px), calc(100vw - 12px)); transform: none; }
  .preview-background-control { width: max-content; position: static; margin-bottom: 7px; border-right: 1px solid #dfe4eb; border-radius: 10px; }
  .native-color-input { left: 0; right: auto; }
  .lightbox-card > footer { align-items: stretch; flex-direction: column; }
  .lightbox-report, .lightbox-download { width: 100%; margin-left: 0; }
  .inline-report-toolbar { flex-wrap: wrap; }
  .inline-report-toolbar > span { width: 100%; margin-left: 0; }
}
@media (max-width: 390px) { .results-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* SHEIN Excel data processing */
.shein-excel-workspace { background: #f5f8fc; }
.shein-excel-panel { width: min(1600px, calc(100% - 64px)); margin: 26px auto 42px; }
.shein-excel-upload-card, .shein-excel-distribution-card, .shein-excel-table-card { background: #fff; border: 1px solid #dfe7f1; border-radius: 14px; box-shadow: 0 10px 30px rgba(40,71,115,.07); }
.shein-excel-upload-card { padding: 20px; }
.shein-excel-drop { min-height: 112px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 18px 22px; background: #f7faff; border: 1.5px dashed #afc9ed; border-radius: 11px; cursor: pointer; transition: .18s ease; }
.shein-excel-drop:hover, .shein-excel-drop:focus-visible, .shein-excel-drop.dragover { background: #eef5ff; border-color: var(--blue); outline: 0; }
.shein-excel-drop.loading { cursor: wait; }
.shein-excel-file-icon { width: 52px; height: 52px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,#20a96b,#13884f); border-radius: 13px; font-size: 22px; font-weight: 900; box-shadow: 0 8px 18px rgba(24,151,91,.2); }
.shein-excel-drop > div { min-width: 0; display: grid; gap: 6px; }
.shein-excel-drop strong { color: #243653; font-size: 18px; }
.shein-excel-drop small { color: #7a889b; font-size: 13px; }
.shein-excel-choose, .shein-excel-file-state button { height: 42px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; color: var(--blue); background: #fff; border: 1px solid #bdd3f5; border-radius: 8px; font-weight: 700; }
.shein-excel-choose[aria-disabled="true"] { color: #9caabd; cursor: wait; }
.shein-excel-file-state { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 18px; background: #f4f8ff; border: 1px solid #d5e3f8; border-radius: 10px; }
.shein-excel-file-state > div { min-width: 0; display: grid; gap: 5px; }
.shein-excel-file-state strong { overflow: hidden; color: #263b5c; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.shein-excel-file-state span { color: #728199; font-size: 12px; }
.shein-excel-results { display: grid; gap: 18px; margin-top: 18px; }
.shein-excel-stats { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.shein-excel-stats article { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; background: #fff; border: 1px solid #dfe7f1; border-radius: 12px; box-shadow: 0 7px 20px rgba(40,71,115,.055); }
.shein-excel-stats span { color: #65758d; font-size: 14px; font-weight: 700; }
.shein-excel-stats strong { color: #263c5d; font-size: 29px; line-height: 1; }
.shein-excel-stats .zero strong { color: #76859b; }
.shein-excel-stats .positive strong { color: #16a163; }
.shein-excel-stats .listed strong { color: #2477ea; }
.shein-excel-stats .unlisted strong { color: #d65757; }
.shein-excel-distribution-card { padding: 18px 20px 20px; }
.shein-excel-distribution-card header h2 { margin: 0; color: #283c5d; font-size: 17px; }
.shein-excel-distribution-card header p { margin: 4px 0 0; color: #7d8999; font-size: 12px; }
.shein-excel-distribution-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.shein-excel-distribution-status { display: flex; gap: 5px; }
.shein-excel-distribution-status button { min-height: 34px; padding: 0 13px; color: #526681; background: #f5f8fc; border: 1px solid #d8e2ef; border-radius: 7px; font-weight: 750; cursor: pointer; }
.shein-excel-distribution-status button.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.shein-excel-multi-sales { display: flex; align-items: center; flex: 0 0 auto; gap: 6px; padding-right: 4px; color: #526681; font-size: 13px; font-weight: 750; cursor: pointer; }
.shein-excel-multi-sales input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.shein-excel-distribution { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.shein-excel-sales-separator { align-self: stretch; flex: 0 0 1px; min-height: 34px; margin: 3px 4px; background: #cbd6e5; }
.shein-excel-distribution > button { min-width: 116px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; color: #5c6b80; background: #f5f7fa; border: 1px solid #e0e5ec; border-radius: 8px; font-size: 12px; cursor: pointer; }
.shein-excel-distribution > button:hover { border-color: #91b9fa; box-shadow: 0 3px 10px rgba(47,125,246,.12); }
.shein-excel-distribution > button.positive { color: #087847; background: #edfbf5; border-color: #c7efdd; }
.shein-excel-distribution > button.active { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 4px 12px rgba(47,125,246,.24); }
.shein-excel-distribution b { font-weight: 700; }
.shein-excel-distribution strong { color: inherit; font-size: 14px; }
.shein-excel-table-card { overflow: hidden; }
.shein-excel-table-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 17px 18px; border-bottom: 1px solid #e4e9f0; }
.shein-excel-filters { min-width: 0; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.shein-excel-filters label { display: grid; gap: 6px; color: #66758a; font-size: 12px; font-weight: 700; }
.shein-excel-filters select, .shein-excel-filters input, .shein-excel-copy-bar input { height: 38px; box-sizing: border-box; padding: 0 11px; color: #263a58; background: #fff; border: 1px solid #ced8e6; border-radius: 7px; font: inherit; }
.shein-excel-filters select { min-width: 134px; }
.shein-excel-search-label { min-width: min(330px,32vw); }
.shein-excel-search-label input { width: 100%; }
.shein-excel-selection-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.shein-excel-selection-actions span { margin-right: 3px; color: #778498; font-size: 12px; }
.shein-excel-selection-actions button { height: 36px; padding: 0 12px; color: #49617e; background: #f7f9fc; border: 1px solid #d8e0ea; border-radius: 7px; font-weight: 700; }
.shein-excel-table-scroll { max-height: min(56vh,680px); position: relative; overflow: auto; }
.shein-excel-table { width: 100%; min-width: 1060px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.shein-excel-table th { height: 42px; position: sticky; z-index: 2; top: 0; padding: 0 12px; color: #53637a; background: #f3f6fa; border-bottom: 1px solid #dce4ee; font-size: 12px; text-align: left; }
.shein-excel-table th:nth-child(1) { width: 42px; }
.shein-excel-table th:nth-child(2) { width: 215px; }
.shein-excel-table th:nth-child(3) { width: 72px; text-align: right; }
.shein-excel-table th:nth-child(4) { width: 92px; }
.shein-excel-table th:nth-child(5) { width: 96px; }
.shein-excel-table th.image { width: 92px; text-align: center; }
.shein-excel-sort { width: 100%; height: 42px; display: flex; align-items: center; justify-content: flex-start; gap: 5px; padding: 0; color: inherit; background: transparent; border: 0; font: inherit; font-weight: 800; cursor: pointer; text-align: left; }
.shein-excel-table th:nth-child(3) .shein-excel-sort { justify-content: flex-end; }
.shein-excel-sort span { color: #9aa7b8; font-size: 11px; }
.shein-excel-sort.active { color: var(--blue); }
.shein-excel-sort.active span { color: inherit; }
.shein-excel-table td { height: 47px; padding: 0 12px; color: #4b5d74; border-bottom: 1px solid #edf0f4; font-size: 12px; vertical-align: middle; }
.shein-excel-table tbody tr:hover td { background: #f8fbff; }
.shein-excel-table .check { text-align: center; }
.shein-excel-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue); }
.shein-excel-table td.skc { color: #263e60; font-weight: 700; overflow-wrap: anywhere; }
.shein-excel-table td.sales { color: #708096; text-align: right; font-variant-numeric: tabular-nums; }
.shein-excel-table td.sales.positive { color: #10955a; font-weight: 800; }
.shein-excel-table td.name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shein-excel-table td.image { text-align: center; }
.shein-excel-view-image { height: 30px; min-width: 62px; padding: 0 10px; color: var(--blue); background: #eef5ff; border: 1px solid #c6dbfa; border-radius: 6px; font: inherit; font-weight: 700; cursor: pointer; }
.shein-excel-view-image:hover { background: #e0edff; border-color: #8cb6f5; }
.shein-excel-no-image { color: #9aa6b6; }
.shein-excel-image-dialog { box-sizing: border-box; width: min(680px,calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 0; overflow: hidden; color: #263b59; background: #fff; border: 1px solid #dce5f0; border-radius: 14px; box-shadow: 0 26px 80px rgba(20,35,56,.28); }
.shein-excel-image-dialog[open] { display: flex; flex-direction: column; }
.shein-excel-image-dialog::backdrop { background: rgba(19,31,49,.57); }
.shein-excel-image-dialog > header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #e3eaf3; }
.shein-excel-image-dialog > header > div { min-width: 0; }
.shein-excel-image-dialog h2 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.shein-excel-image-dialog header p { margin: 6px 0 0; overflow: hidden; color: #75859a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.shein-excel-image-dialog header button { flex: 0 0 34px; height: 34px; color: #526681; background: #f0f4f9; border: 0; border-radius: 50%; font-size: 24px; cursor: pointer; }
.shein-excel-image-stage { min-height: 160px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; background: #f5f8fc; }
.shein-excel-image-stage img { display: block; max-width: 100%; max-height: min(70dvh,680px); object-fit: contain; border-radius: 5px; }
.shein-excel-image-stage p { margin: 30px 0; color: #7b8ba0; font-size: 14px; text-align: center; }
.shein-excel-table .status-badge { display: inline-flex; align-items: center; min-width: 48px; height: 25px; justify-content: center; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.shein-excel-table .status-badge.listed { color: #176dd9; background: #eaf3ff; }
.shein-excel-table .status-badge.unlisted { color: #c64b4b; background: #fff0f0; }
.shein-excel-table .status-badge.unknown { color: #6e7a8c; background: #f0f2f5; }
.shein-excel-empty { min-height: 170px; display: grid; place-items: center; color: #8793a4; font-size: 14px; }
.shein-excel-copy-bar { min-height: 78px; position: sticky; z-index: 3; bottom: 0; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 12px 18px; background: rgba(255,255,255,.97); border-top: 1px solid #dfe6ef; box-shadow: 0 -7px 20px rgba(36,58,92,.06); backdrop-filter: blur(8px); }
.shein-excel-selected-summary { min-width: 0; display: grid; gap: 3px; margin-right: auto; }
.shein-excel-selected-summary strong { color: #2a405f; font-size: 14px; }
.shein-excel-next-copy { min-width: 0; display: flex; align-items: center; gap: 10px; flex: 0 1 410px; }
.shein-excel-next-copy #sheinExcelCopyNext { flex: 0 0 auto; }
.shein-excel-batch-progress { min-width: 0; flex: 1; color: #526681; font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.shein-excel-copy-bar label { display: flex; align-items: center; gap: 7px; color: #5f6f84; font-size: 12px; font-weight: 700; }
.shein-excel-copy-bar input { width: 84px; text-align: center; font-weight: 800; }
.shein-excel-copy-bar button { height: 40px; padding: 0 16px; color: #3e5878; background: #f5f8fc; border: 1px solid #d4dfea; border-radius: 8px; font-weight: 800; }
.shein-excel-copy-bar button.primary { min-width: 130px; color: #fff; background: var(--blue); border-color: var(--blue); }
.shein-excel-copy-bar button:disabled { color: #a4afbd; background: #f0f2f5; border-color: #e4e7eb; cursor: not-allowed; }
.shein-excel-export-card { min-width: 0; padding: 22px; background: #fff; border: 1px solid #dfe7f2; border-radius: 14px; }
.shein-excel-export-card h2 { margin: 0; color: #253b59; font-size: 19px; }
.shein-excel-export-card header p { margin: 7px 0 0; color: #76889f; font-size: 13px; }
.shein-excel-export-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }
.shein-excel-export-controls fieldset { display: flex; flex: 1 1 280px; flex-wrap: wrap; gap: 20px; min-width: 0; margin: 0; padding: 12px 16px 15px; border: 1px solid #dfe7f2; border-radius: 9px; }
.shein-excel-export-controls legend { padding: 0 6px; color: #526681; font-size: 12px; font-weight: 700; }
.shein-excel-export-controls label { display: inline-flex; align-items: center; gap: 7px; color: #3e5878; font-size: 14px; font-weight: 700; cursor: pointer; }
.shein-excel-export-controls input { width: 17px; height: 17px; accent-color: var(--blue); }
.shein-excel-export-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.shein-excel-export-actions button { min-height: 42px; padding: 0 20px; color: #3e5878; background: #f5f8fc; border: 1px solid #d4dfea; border-radius: 8px; font-weight: 800; }
.shein-excel-export-actions button.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.shein-excel-export-actions button:disabled { color: #a4afbd; background: #f0f2f5; border-color: #e4e7eb; cursor: not-allowed; }
.shein-excel-export-example { margin: 12px 0 0; color: #76889f; font-size: 12px; overflow-wrap: anywhere; }
.shein-excel-export-example span { color: #3e5878; }
.shein-excel-export-progress { margin-top: 16px; padding: 12px 14px; background: #f1f6ff; border-radius: 8px; }
.shein-excel-export-progress progress { display: block; width: 100%; height: 9px; accent-color: var(--blue); }
.shein-excel-export-progress p { margin: 9px 0 0; color: #3e5878; font-size: 13px; overflow-wrap: anywhere; }
.shein-excel-export-failures { margin-top: 12px; color: #bd4c4c; font-size: 13px; }
.shein-excel-export-failures summary { cursor: pointer; font-weight: 700; }
.shein-excel-export-failures ul { max-height: 200px; padding-left: 22px; overflow: auto; }
.shein-excel-export-failures li { margin: 6px 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .shein-excel-export-card { padding: 16px 14px; }
  .shein-excel-export-actions { width: 100%; }
  .shein-excel-export-actions button { flex: 1; padding: 0 12px; }
}

@media (max-width: 1100px) {
  .shein-excel-panel { width: calc(100% - 32px); }
  .shein-excel-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .shein-excel-table-toolbar { align-items: stretch; flex-direction: column; }
  .shein-excel-selection-actions { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .shein-excel-panel { width: calc(100% - 22px); margin: 18px auto 30px; }
  .shein-excel-upload-card { padding: 12px; }
  .shein-excel-drop { grid-template-columns: auto minmax(0,1fr); gap: 12px; padding: 16px 13px; }
  .shein-excel-file-icon { width: 44px; height: 44px; }
  .shein-excel-choose { width: 100%; grid-column: 1 / -1; }
  .shein-excel-file-state { align-items: stretch; flex-direction: column; padding: 14px; }
  .shein-excel-file-state button { width: 100%; }
  .shein-excel-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .shein-excel-stats article { min-height: 75px; padding: 0 14px; }
  .shein-excel-stats article:first-child { grid-column: 1 / -1; }
  .shein-excel-stats strong { font-size: 24px; }
  .shein-excel-distribution-card { padding: 16px 14px; }
  .shein-excel-distribution-title h2 { width: 100%; }
  .shein-excel-distribution-title { gap: 9px; }
  .shein-excel-distribution-status button { padding: 0 10px; }
  .shein-excel-distribution > button { flex: 1 1 120px; }
  .shein-excel-sales-separator { flex-basis: 100%; min-height: 1px; height: 1px; margin: 4px 0; }
  .shein-excel-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .shein-excel-filters label, .shein-excel-filters select { min-width: 0; width: 100%; }
  .shein-excel-search-label { min-width: 0; grid-column: 1 / -1; }
  .shein-excel-selection-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .shein-excel-selection-actions span { grid-column: 1 / -1; }
  .shein-excel-copy-bar { align-items: stretch; flex-wrap: wrap; }
  .shein-excel-selected-summary { width: 100%; flex-basis: 100%; }
  .shein-excel-copy-bar label { flex: 1 1 100%; justify-content: space-between; }
  .shein-excel-copy-bar input { flex: 1; }
  .shein-excel-copy-bar button { flex: 1 1 calc(50% - 6px); padding: 0 9px; }
  .shein-excel-next-copy { flex-basis: 100%; }
  .shein-excel-next-copy #sheinExcelCopyNext { min-width: 112px; }
}

.software-file-name strong.software-official-release-name { color: #dc2626; font-weight: 700; }
