/* 统一灵感库：细分隔线、可扫描标签行与图像优先的素材索引。 */
:root {
  --ih-bg: #f5f0ee;
  --ih-surface: #fffdfb;
  --ih-muted-surface: #f9f5f2;
  --ih-text: #24202b;
  --ih-muted: #81777b;
  --ih-faint: #a39799;
  --ih-line: #e3d9d5;
  --ih-line-strong: #cfc2bd;
  --ih-accent: #df655b;
  --ih-accent-hover: #ca554c;
  --ih-accent-soft: #fbe9e5;
  --ih-green: #467761;
  --ih-green-soft: #e7f0ea;
  --ih-ochre: #9a6c3d;
  --ih-danger: #a7443e;
}
html.dark {
  --ih-bg: #111011;
  --ih-surface: #1a1819;
  --ih-muted-surface: #221f20;
  --ih-text: #f0e9e6;
  --ih-muted: #b0a4a1;
  --ih-faint: #8b7f7d;
  --ih-line: #393233;
  --ih-line-strong: #514647;
  --ih-accent: #ef8076;
  --ih-accent-hover: #f39289;
  --ih-accent-soft: #3d2626;
  --ih-green: #8bbba3;
  --ih-green-soft: #21352c;
  --ih-ochre: #d2ab7c;
  --ih-danger: #ef8a81;
}
a[href="#/inspiration-collection"] { display: none !important; }
body.inspiration-hub-active .inspiration-workspace { display: none !important; }
#inspiration-hub {
  min-height: calc(100dvh - 150px);
  padding: 24px 26px 64px;
  color: var(--ih-text);
  background: var(--ih-bg);
  font-family: MiSans, "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
#inspiration-hub[hidden] { display: none !important; }
#inspiration-hub *, .ih-dialog *, .ih-toast { box-sizing: border-box; }
#inspiration-hub button, #inspiration-hub input, #inspiration-hub select,
.ih-dialog button, .ih-dialog input, .ih-dialog select, .ih-dialog textarea { font: inherit; }
#inspiration-hub button, .ih-dialog button { color: inherit; }
#inspiration-hub input, #inspiration-hub select, .ih-dialog input, .ih-dialog select, .ih-dialog textarea { color: var(--ih-text); }
.ih-icon { width: 17px; height: 17px; display: block; flex: 0 0 auto; }
.ih-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 22px; }
.ih-kicker { color: var(--ih-faint); font-size: 10px; font-weight: 650; letter-spacing: .17em; }
.ih-heading h1 { margin: 4px 0 5px; font-size: 28px; line-height: 1.25; letter-spacing: -.035em; font-weight: 650; }
.ih-heading h1 sup { position: relative; top: 2px; margin-left: 6px; color: var(--ih-faint); font-size: 12px; font-weight: 500; vertical-align: top; }
.ih-heading p { margin: 0; color: var(--ih-muted); font-size: 12px; }
.ih-heading-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ih-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 7px 13px; border: 1px solid var(--ih-line-strong); border-radius: 5px;
  background: var(--ih-surface); color: var(--ih-text); cursor: pointer; text-decoration: none;
  white-space: nowrap; font-size: 12px; font-weight: 520;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.ih-button:hover { border-color: var(--ih-faint); background: var(--ih-muted-surface); }
.ih-button:active { transform: translateY(1px); }
.ih-button:disabled { opacity: .55; cursor: wait; }
.ih-button.ih-primary { border-color: var(--ih-accent); background: var(--ih-accent); color: #fffaf8 !important; }
.ih-button.ih-primary:hover { border-color: var(--ih-accent-hover); background: var(--ih-accent-hover); }
.ih-button.ih-quiet { border-color: transparent; background: transparent; }
.ih-button.ih-danger, .ih-danger { color: var(--ih-danger) !important; }
.ih-icon-button {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 38px; height: 38px; padding: 0; border: 0; border-radius: 5px;
  background: transparent; color: var(--ih-muted); cursor: pointer; text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}
.ih-icon-button:hover { color: var(--ih-text); background: var(--ih-muted-surface); }
.ih-icon-button.is-active { color: var(--ih-accent); background: var(--ih-accent-soft); }
.ih-icon-button.is-active .ih-icon { fill: currentColor; }
#inspiration-hub button:focus-visible, #inspiration-hub a:focus-visible,
#inspiration-hub input:focus-visible, #inspiration-hub select:focus-visible,
#inspiration-hub summary:focus-visible, .ih-dialog button:focus-visible,
.ih-dialog a:focus-visible, .ih-dialog input:focus-visible, .ih-dialog textarea:focus-visible {
  outline: 2px solid var(--ih-accent); outline-offset: 2px;
}
.ih-view-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--ih-line-strong); }
.ih-view-tabs button {
  position: relative; min-height: 43px; padding: 0 1px; border: 0; background: transparent;
  color: var(--ih-muted); cursor: pointer; font-weight: 580;
}
.ih-view-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.ih-view-tabs button.is-active { color: var(--ih-text); }
.ih-view-tabs button.is-active::after { background: var(--ih-accent); }
.ih-view-tabs button span { margin-left: 5px; color: var(--ih-faint); font-size: 11px; font-weight: 450; }
.ih-filter-area { border-bottom: 1px solid var(--ih-line-strong); }
.ih-filter-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 0 12px; }
.ih-search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 210px; max-width: 480px; color: var(--ih-muted); }
.ih-search input { width: 100%; min-width: 0; padding: 7px 0; border: 0; outline: 0; background: transparent; }
.ih-search input::placeholder { color: var(--ih-faint); }
.ih-search:focus-within { color: var(--ih-accent); }
.ih-search:focus-within input { box-shadow: 0 1px 0 var(--ih-accent); }
.ih-select { display: flex; align-items: center; gap: 6px; color: var(--ih-muted); white-space: nowrap; font-size: 12px; }
.ih-select select, .ih-advanced input, .ih-collect-form input, .ih-form input, .ih-form select,
.ih-detail-info input, .ih-tags-editor input, .ih-detail-add-tag input {
  min-height: 36px; padding: 6px 9px; border: 1px solid var(--ih-line); border-radius: 5px;
  outline: none; background: var(--ih-surface);
}
.ih-select select:focus, .ih-advanced input:focus, .ih-collect-form input:focus,
.ih-form input:focus, .ih-form select:focus, .ih-detail-info input:focus,
.ih-tags-editor input:focus, .ih-detail-add-tag input:focus { border-color: var(--ih-accent); }
.ih-tag-filter { padding: 0 0 13px; }
.ih-tag-filter-heading { display: flex; align-items: center; gap: 12px; min-height: 33px; }
.ih-tag-filter-heading strong { font-size: 12px; font-weight: 620; }
.ih-tag-filter-heading > span { color: var(--ih-faint); font-size: 11px; }
.ih-tag-filter-heading button { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 3px 0; border: 0; background: transparent; color: var(--ih-muted); cursor: pointer; font-size: 11px; }
.ih-tag-filter-heading button:hover { color: var(--ih-accent); }
.ih-tag-filter-heading .ih-icon { width: 14px; height: 14px; }
.ih-tag-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-top: 1px solid color-mix(in srgb, var(--ih-line) 62%, transparent); }
.ih-tag-row > span { padding: 4px 0; color: var(--ih-muted); font-size: 11px; }
.ih-tag-row > div { display: flex; flex-wrap: wrap; gap: 5px 14px; }
.ih-tag {
  min-height: 28px; padding: 2px 0; border: 0; border-bottom: 1px solid transparent;
  background: transparent; color: var(--ih-muted); cursor: pointer; font-size: 12px;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.ih-tag:hover { color: var(--ih-text); }
.ih-tag.is-active { border-bottom-color: var(--ih-accent); color: var(--ih-accent); font-weight: 620; }
.ih-advanced { margin-top: 6px; border-top: 1px solid var(--ih-line); }
.ih-advanced summary { display: flex; align-items: center; gap: 8px; min-height: 35px; color: var(--ih-muted); cursor: pointer; font-size: 11px; list-style-position: inside; }
.ih-advanced summary i { padding: 0 4px; color: var(--ih-accent); font-size: 10px; font-style: normal; }
.ih-advanced-grid { display: grid; grid-template-columns: repeat(4, minmax(130px, 180px)); gap: 10px; padding: 6px 0 10px; }
.ih-advanced-grid label { color: var(--ih-muted); font-size: 11px; }
.ih-advanced-grid input { display: block; width: 100%; margin-top: 4px; }
.ih-active-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 7px; border-top: 1px solid var(--ih-line); color: var(--ih-muted); font-size: 11px; }
.ih-active-filters button { padding: 2px 0; border: 0; background: transparent; color: var(--ih-accent); cursor: pointer; }
.ih-library-results { padding-top: 19px; }
.ih-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.ih-results-heading > div { display: flex; align-items: baseline; gap: 12px; }
.ih-results-heading strong { font-size: 13px; font-weight: 620; }
.ih-results-heading span { color: var(--ih-faint); font-size: 11px; }
.ih-material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px 20px; }
.ih-material-card { min-width: 0; border-bottom: 1px solid var(--ih-line-strong); background: transparent; }
.ih-card-cover-wrap { position: relative; }
.ih-cover { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ih-muted-surface); color: var(--ih-faint); }
.ih-cover > span { position: absolute; left: 17px; bottom: 9px; font-size: 52px; line-height: 1; font-weight: 650; letter-spacing: -.06em; opacity: .48; }
.ih-cover > small { position: absolute; right: 13px; bottom: 13px; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.ih-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ih-cover > em { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid color-mix(in srgb, var(--ih-surface) 75%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--ih-text) 52%, transparent); color: var(--ih-surface); opacity: 0; transform: translate(-50%, -48%); transition: opacity .18s ease, transform .18s ease; }
.ih-material-card:hover .ih-cover > em, .ih-candidate-row:hover .ih-cover > em { opacity: 1; transform: translate(-50%, -50%); }
.ih-cover > em .ih-icon { width: 21px; height: 21px; }
.ih-favorite { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 34px; min-height: 34px; padding: 5px; border: 0; border-radius: 5px; background: transparent; color: var(--ih-muted); cursor: pointer; }
.ih-card-cover-wrap > .ih-favorite { position: absolute; z-index: 2; top: 8px; right: 8px; background: color-mix(in srgb, var(--ih-surface) 88%, transparent); }
.ih-favorite:hover, .ih-favorite.is-active { color: var(--ih-accent); }
.ih-favorite.is-active .ih-icon { fill: currentColor; }
.ih-stage { position: absolute; left: 9px; top: 9px; padding: 2px 6px; background: color-mix(in srgb, var(--ih-surface) 90%, transparent); color: var(--ih-muted); font-size: 9px; }
.is-inbox .ih-stage { color: var(--ih-ochre); }
.ih-card-main { display: block; width: 100%; padding: 11px 0 13px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.ih-card-meta { display: block; overflow: hidden; color: var(--ih-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ih-card-meta i { margin: 0 6px; color: var(--ih-line-strong); font-style: normal; }
.ih-card-title { display: -webkit-box; overflow: hidden; min-height: 44px; margin-top: 6px; font-size: 15px; line-height: 1.45; font-weight: 620; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ih-card-main:hover .ih-card-title { color: var(--ih-accent); }
.ih-card-summary { display: -webkit-box; overflow: hidden; min-height: 37px; margin-top: 6px; color: var(--ih-muted); font-size: 11px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ih-card-tags { display: flex; gap: 7px; overflow: hidden; min-height: 22px; margin-top: 7px; white-space: nowrap; }
.ih-card-tags em { overflow: hidden; color: var(--ih-faint); font-size: 10px; font-style: normal; text-overflow: ellipsis; }
.ih-card-stats { display: flex; align-items: flex-end; gap: 16px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--ih-line); }
.ih-card-stats > span { display: flex; align-items: baseline; gap: 4px; }
.ih-card-stats small { color: var(--ih-faint); font-size: 9px; }
.ih-card-stats b { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ih-card-stats time { margin-left: auto; color: var(--ih-faint); font-size: 9px; }
.ih-empty { padding: 70px 20px; border-top: 1px solid var(--ih-line); border-bottom: 1px solid var(--ih-line); text-align: center; }
.ih-empty strong { font-size: 16px; font-weight: 620; }
.ih-empty p { margin: 8px auto 20px; color: var(--ih-muted); font-size: 12px; }
.ih-loading { min-height: 300px; display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; color: var(--ih-muted); }
.ih-loading span { width: 4px; height: 24px; background: var(--ih-line-strong); }
.ih-loading span:nth-child(2) { height: 36px; background: var(--ih-accent); }
.ih-loading p { flex-basis: 100%; margin: 4px 0 0; text-align: center; font-size: 12px; }
.ih-state { padding: 60px 20px; text-align: center; }
.ih-state p { margin: 8px 0 20px; color: var(--ih-muted); }
.ih-collect-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding-top: 22px; }
.ih-collect-console { min-width: 0; padding-right: 26px; border-right: 1px solid var(--ih-line-strong); }
.ih-section-title > span { color: var(--ih-faint); font-size: 9px; letter-spacing: .14em; }
.ih-section-title h2 { margin: 4px 0 6px; font-size: 20px; font-weight: 630; }
.ih-section-title p { margin: 0; color: var(--ih-muted); font-size: 11px; }
.ih-api-pending { margin-top: 22px; padding: 15px 0; border-top: 1px solid var(--ih-line); border-bottom: 1px solid var(--ih-line); }
.ih-api-pending strong { font-size: 12px; font-weight: 620; }
.ih-api-pending p { margin: 6px 0 0; color: var(--ih-muted); font-size: 11px; line-height: 1.75; }
.ih-job-log { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--ih-line); }
.ih-job-log h3 { margin: 0 0 10px; font-size: 12px; font-weight: 620; }
.ih-job-log > div { display: flex; gap: 8px; padding: 8px 0; }
.ih-job-log i { width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--ih-faint); }
.ih-job-log i.is-completed { background: var(--ih-green); }
.ih-job-log i.is-failed { background: var(--ih-danger); }
.ih-job-log i.is-running { background: var(--ih-ochre); }
.ih-job-log span { min-width: 0; }
.ih-job-log strong, .ih-job-log small { display: block; overflow: hidden; text-overflow: ellipsis; }
.ih-job-log strong { font-size: 11px; font-weight: 570; white-space: nowrap; }
.ih-job-log small { margin-top: 2px; color: var(--ih-faint); font-size: 9px; }
.ih-job-log > p { color: var(--ih-faint); font-size: 11px; }
.ih-candidate-pool { min-width: 0; }
.ih-candidate-search { max-width: 250px; min-width: 160px; }
.ih-candidate-list { border-top: 1px solid var(--ih-line-strong); }
.ih-candidate-row { display: grid; grid-template-columns: 120px minmax(200px, 1fr) 185px 148px; gap: 15px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ih-line); }
.ih-cover.is-compact { aspect-ratio: 4 / 3; }
.ih-cover.is-compact > span { left: 10px; font-size: 34px; }
.ih-cover.is-compact > small { display: none; }
.ih-cover.is-compact > em { width: 32px; height: 32px; }
.ih-candidate-copy { min-width: 0; }
.ih-candidate-copy h3 { display: -webkit-box; overflow: hidden; margin: 4px 0 0; font-size: 13px; line-height: 1.45; font-weight: 610; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ih-candidate-copy > p { overflow: hidden; margin: 4px 0 0; color: var(--ih-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ih-candidate-tags { display: flex; gap: 7px; margin-top: 5px; overflow: hidden; color: var(--ih-faint); font-size: 9px; white-space: nowrap; }
.ih-candidate-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 0; }
.ih-candidate-metrics dt { color: var(--ih-faint); font-size: 9px; }
.ih-candidate-metrics dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ih-candidate-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.ih-candidate-actions .ih-button { width: 100%; }
.ih-candidate-actions .ih-icon-button { margin-left: auto; width: 30px; height: 30px; }
.ih-load-more { width: 100%; min-height: 42px; margin-top: 12px; border: 1px solid var(--ih-line); background: transparent; color: var(--ih-muted); cursor: pointer; }
.ih-load-more:hover { background: var(--ih-muted-surface); color: var(--ih-text); }
.ih-dialog {
  width: min(1240px, calc(100vw - 36px)); max-width: none; max-height: calc(100dvh - 36px);
  margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--ih-line-strong); border-radius: 9px;
  background: var(--ih-surface); color: var(--ih-text); box-shadow: 0 24px 70px rgba(32, 25, 28, .2);
}
.ih-dialog::backdrop { background: rgba(30, 24, 27, .46); backdrop-filter: blur(2px); }
.ih-dialog-shell { max-height: calc(100dvh - 38px); overflow-y: auto; }
.ih-dialog-shell > header { position: sticky; z-index: 4; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 12px 20px; border-bottom: 1px solid var(--ih-line); background: var(--ih-surface); }
.ih-dialog-shell > header span { color: var(--ih-faint); font-size: 9px; letter-spacing: .15em; }
.ih-dialog-shell > header h2 { margin: 1px 0 0; font-size: 18px; font-weight: 630; }
.ih-dialog-shell > header .ih-icon-button { width: 42px; height: 42px; }
.ih-editor-dialog { width: min(680px, calc(100vw - 36px)); }
.ih-tags-dialog { width: min(780px, calc(100vw - 36px)); }
.ih-form { padding: 22px; }
.ih-form-hint { margin: 0 0 18px; color: var(--ih-muted); font-size: 12px; }
.ih-form label, .ih-detail-info label { display: block; color: var(--ih-muted); font-size: 11px; }
.ih-form label + label, .ih-form-grid + label { margin-top: 14px; }
.ih-form input, .ih-form select, .ih-form textarea { display: block; width: 100%; margin-top: 5px; }
.ih-form textarea, .ih-notes textarea {
  width: 100%; padding: 10px 11px; resize: vertical; border: 1px solid var(--ih-line); border-radius: 5px;
  outline: none; background: var(--ih-surface); line-height: 1.65;
}
.ih-form textarea:focus, .ih-notes textarea:focus { border-color: var(--ih-accent); }
.ih-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ih-form-grid label + label { margin-top: 0; }
.ih-form footer, .ih-tags-editor > footer, .ih-detail-form > footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--ih-line); }
.ih-tags-editor { padding: 20px 22px; }
.ih-tag-groups-editor > section { padding: 14px 0; border-top: 1px solid var(--ih-line); }
.ih-tag-groups-editor > section > header { display: flex; align-items: center; gap: 8px; }
.ih-tag-groups-editor > section > header input { flex: 1; font-weight: 610; }
.ih-tag-edit-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 0; }
.ih-tag-edit-list > span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid var(--ih-line); border-radius: 4px; color: var(--ih-muted); font-size: 11px; }
.ih-tag-edit-list button { padding: 0; border: 0; background: transparent; color: var(--ih-faint); cursor: pointer; font-size: 16px; line-height: 1; }
.ih-tag-edit-list button:hover { color: var(--ih-danger); }
.ih-tag-add { display: flex; gap: 8px; }
.ih-tag-add input { flex: 1; }
.ih-new-group { display: flex; gap: 8px; padding-top: 16px; border-top: 1px solid var(--ih-line-strong); }
.ih-new-group input { flex: 1; }
.ih-detail-overview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 22px; padding: 22px; }
.ih-video-frame { height: 520px; background: #191617; }
.ih-video-frame iframe, .ih-video-frame video { display: block; width: 100%; height: 100%; border: 0; }
.ih-video-frame video { object-fit: contain; }
.ih-video-unavailable { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 360px; height: 100%; padding: 32px; background: var(--ih-muted-surface); text-align: center; }
.ih-video-unavailable > .ih-icon { width: 34px; height: 34px; margin-bottom: 15px; color: var(--ih-faint); }
.ih-video-unavailable strong { font-size: 15px; }
.ih-video-unavailable p { max-width: 330px; margin: 7px 0 20px; color: var(--ih-muted); font-size: 12px; }
.ih-detail-info { min-width: 0; }
.ih-detail-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--ih-muted); font-size: 11px; }
.ih-detail-status .ih-favorite { border: 1px solid var(--ih-line); padding: 5px 9px; }
.ih-detail-info > label + label { margin-top: 11px; }
.ih-detail-info input { display: block; width: 100%; margin-top: 4px; }
.ih-detail-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 11px 0; }
.ih-original-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--ih-muted); font-size: 11px; text-decoration: none; }
.ih-original-link:hover { color: var(--ih-accent); }
.ih-original-link .ih-icon { width: 14px; height: 14px; }
.ih-detail-stage-action { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--ih-line); }
.ih-detail-stage-action > span { display: flex; align-items: center; gap: 7px; color: var(--ih-green); font-size: 11px; }
.ih-detail-tags { padding: 18px 22px; border-top: 1px solid var(--ih-line); }
.ih-detail-tags > header { display: flex; align-items: baseline; gap: 12px; }
.ih-detail-tags h3 { margin: 0; font-size: 14px; }
.ih-detail-tags header span { color: var(--ih-faint); font-size: 10px; }
.ih-detail-tag-list { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.ih-detail-tag-list .ih-tag { min-height: 32px; }
.ih-detail-add-tag { display: flex; gap: 8px; max-width: 330px; margin-top: 12px; }
.ih-detail-add-tag input { flex: 1; min-width: 0; }
.ih-notes { padding: 20px 22px; border-top: 1px solid var(--ih-line-strong); }
.ih-notes > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.ih-notes > header span { color: var(--ih-faint); font-size: 9px; letter-spacing: .14em; }
.ih-notes h3 { margin: 2px 0 0; font-size: 17px; }
.ih-notes > header p { margin: 0; color: var(--ih-faint); font-size: 10px; }
.ih-notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.ih-notes-grid label strong { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 600; }
.ih-notes-grid textarea { display: block; min-height: 104px; font-size: 12px; }
.ih-note-wide { grid-column: 1 / -1; }
.ih-delete-confirm { display: flex; align-items: center; gap: 8px; margin: 0 22px; padding: 12px; border: 1px solid color-mix(in srgb, var(--ih-danger) 35%, var(--ih-line)); background: color-mix(in srgb, var(--ih-accent-soft) 45%, transparent); }
.ih-delete-confirm[hidden] { display: none; }
.ih-delete-confirm span { margin-right: auto; color: var(--ih-danger); font-size: 11px; }
.ih-detail-form > footer { justify-content: space-between; margin: 0; padding: 16px 22px 20px; }
.ih-detail-form > footer > div { display: flex; gap: 8px; }
.ih-toast { position: fixed; z-index: 10000; left: 50%; bottom: 28px; max-width: min(560px, calc(100vw - 32px)); padding: 10px 16px; border: 1px solid var(--ih-line-strong); border-radius: 6px; background: var(--ih-text); color: var(--ih-surface); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .16s ease, transform .16s ease; }
.ih-toast.is-success, .ih-toast.is-error { opacity: 1; transform: translate(-50%, 0); }
.ih-toast.is-error { border-color: #9e433d; background: #9e433d; color: #fff8f6; }
@media (min-width: 1600px) {
  .ih-material-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  #inspiration-hub { padding: 20px 20px 54px; }
  .ih-filter-toolbar { flex-wrap: wrap; }
  .ih-search { max-width: none; flex-basis: 100%; }
  .ih-material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ih-collect-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
  .ih-collect-console { padding-right: 18px; }
  .ih-candidate-row { grid-template-columns: 100px minmax(180px, 1fr) 130px; }
  .ih-candidate-actions { grid-column: 2 / -1; justify-content: flex-start; margin-top: -4px; }
  .ih-candidate-actions .ih-button { width: auto; }
  .ih-candidate-actions .ih-icon-button { margin-left: 0; }
}
@media (max-width: 800px) {
  #inspiration-hub { padding: 56px 15px 48px; }
  .ih-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .ih-heading-actions { width: 100%; }
  .ih-heading-actions .ih-button { flex: 1; min-height: 44px; }
  .ih-heading h1 { font-size: 25px; }
  .ih-heading p { line-height: 1.7; }
  .ih-view-tabs button { min-height: 46px; }
  .ih-filter-toolbar { gap: 8px; }
  .ih-select { flex: 1; align-items: flex-start; flex-direction: column; gap: 3px; }
  .ih-select select { width: 100%; min-height: 42px; }
  .ih-filter-toolbar > .ih-icon-button { width: 42px; height: 42px; margin-top: 17px; }
  .ih-tag-filter-heading > span { display: none; }
  .ih-tag-filter-heading button { min-height: 40px; }
  .ih-tag-row { grid-template-columns: 1fr; gap: 2px; padding: 8px 0; }
  .ih-tag-row > div { gap: 4px 16px; }
  .ih-tag { min-height: 38px; }
  .ih-advanced summary { min-height: 42px; }
  .ih-advanced-grid { grid-template-columns: 1fr 1fr; }
  .ih-advanced-grid input { min-height: 42px; }
  .ih-material-grid { gap: 22px 13px; }
  .ih-card-stats { gap: 9px; flex-wrap: wrap; }
  .ih-card-stats time { flex-basis: 100%; margin-left: 0; }
  .ih-collect-layout { grid-template-columns: 1fr; }
  .ih-collect-console { padding: 0 0 22px; border-right: 0; border-bottom: 1px solid var(--ih-line-strong); }
  .ih-collect-form { grid-template-columns: 1fr 110px; }
  .ih-collect-form button { grid-column: 1 / -1; min-height: 44px; }
  .ih-job-log { display: none; }
  .ih-candidate-row { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .ih-candidate-metrics { grid-column: 2; }
  .ih-candidate-actions { grid-column: 2; }
  .ih-results-heading { align-items: flex-start; }
  .ih-results-heading > div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .ih-candidate-search { min-width: 130px; }
  .ih-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .ih-dialog-shell { max-height: calc(100dvh - 22px); }
  .ih-detail-overview { grid-template-columns: 1fr; padding: 16px; }
  .ih-video-frame { height: 440px; }
  .ih-video-unavailable { min-height: 260px; }
  .ih-detail-tags, .ih-notes { padding: 17px 16px; }
  .ih-notes-grid { grid-template-columns: 1fr; }
  .ih-note-wide { grid-column: auto; }
  .ih-detail-form > footer { padding: 15px 16px 18px; }
}
@media (max-width: 520px) {
  .ih-material-grid { grid-template-columns: 1fr; }
  .ih-card-title { min-height: 0; font-size: 16px; }
  .ih-card-summary { min-height: 0; font-size: 12px; }
  .ih-cover { aspect-ratio: 16 / 9; }
  .ih-card-cover-wrap > .ih-favorite { width: 42px; height: 42px; }
  .ih-results-heading > span { display: none; }
  .ih-candidate-search { max-width: 155px; }
  .ih-collect-form { grid-template-columns: 1fr; }
  .ih-collect-form button { grid-column: auto; }
  .ih-candidate-row { grid-template-columns: 76px minmax(0, 1fr); }
  .ih-candidate-copy > p, .ih-candidate-tags { display: none; }
  .ih-candidate-metrics { grid-column: 1 / -1; }
  .ih-candidate-actions { grid-column: 1 / -1; }
  .ih-candidate-actions .ih-button { flex: 1; min-height: 42px; }
  .ih-form { padding: 17px 16px; }
  .ih-form-grid, .ih-detail-fields { grid-template-columns: 1fr; }
  .ih-form input, .ih-form select, .ih-detail-info input, .ih-tags-editor input, .ih-detail-add-tag input { min-height: 44px; }
  .ih-form footer, .ih-tags-editor > footer { flex-wrap: wrap; }
  .ih-form footer .ih-button, .ih-tags-editor > footer .ih-button { flex: 1; min-height: 44px; }
  .ih-detail-overview { gap: 18px; }
  .ih-video-frame { height: 390px; }
  .ih-detail-status .ih-favorite { min-height: 42px; }
  .ih-detail-add-tag { max-width: none; }
  .ih-notes > header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .ih-notes-grid textarea { min-height: 118px; font-size: 14px; }
  .ih-delete-confirm { align-items: stretch; flex-direction: column; }
  .ih-delete-confirm span { margin: 0 0 5px; }
  .ih-detail-form > footer { align-items: stretch; flex-direction: column-reverse; }
  .ih-detail-form > footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .ih-detail-form > footer .ih-button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  #inspiration-hub *, .ih-dialog *, .ih-toast { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
/* Apify 采集控制台 */
.ih-apify-form { margin-top: 22px; padding: 15px 0; border-top: 1px solid var(--ih-line); border-bottom: 1px solid var(--ih-line); }
.ih-apify-form input, .ih-apify-form select { width: 100%; padding: 9px 12px; border: 1px solid var(--ih-line-strong); border-radius: 10px; background: var(--ih-surface); color: var(--ih-text); font-size: 12px; font-family: inherit; }
.ih-apify-form input:focus, .ih-apify-form select:focus { outline: 2px solid var(--ih-accent-soft); border-color: var(--ih-accent); }
.ih-apify-row { display: flex; gap: 8px; margin-top: 10px; }
.ih-apify-row select { width: 92px; flex: none; }
.ih-apify-row .ih-button { flex: 1; justify-content: center; }
.ih-apify-form .ih-form-hint { margin: 10px 0 0; color: var(--ih-faint); font-size: 10px; }
.ih-job-log i.is-succeeded { background: var(--ih-green); }
