:root {
  --lj-pack-ink: #172033;
  --lj-pack-muted: #697386;
  --lj-pack-line: #e3e7ef;
  --lj-pack-accent: #6957e8;
  --lj-pack-blue: #377cf6;
  --lj-pack-soft: #f3f4f9;
}

.lj-pack-modal-open { overflow: hidden !important; }
.lj-pack-modal-open body { overflow: hidden !important; }

.lj-pack-inline-entry,
.lj-pack-floating-entry {
  border: 1px solid rgba(106, 87, 232, .2);
  background: linear-gradient(120deg, #f7f5ff, #eef5ff);
  color: var(--lj-pack-ink);
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(68, 59, 137, .12);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lj-pack-inline-entry {
  width: 100%;
  min-height: 64px;
  padding: 11px 14px;
  margin-bottom: 12px;
  grid-column: 1 / -1;
  text-align: left;
}

.lj-pack-floating-entry {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 86;
  padding: 12px 15px;
  text-align: left;
}

.lj-pack-inline-entry:hover,
.lj-pack-floating-entry:hover { transform: translateY(-2px); border-color: rgba(106, 87, 232, .46); box-shadow: 0 15px 35px rgba(68, 59, 137, .18); }
.lj-pack-entry-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #6756e9, #377cf6); box-shadow: 0 8px 18px rgba(81, 74, 202, .26); }
.lj-pack-entry-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lj-pack-inline-entry > span:nth-child(2), .lj-pack-floating-entry > span:nth-child(2) { display: grid; gap: 2px; }
.lj-pack-inline-entry b, .lj-pack-floating-entry b { font-size: 14px; letter-spacing: .01em; }
.lj-pack-inline-entry small, .lj-pack-floating-entry small { color: #737b8f; font-size: 11px; }
.lj-pack-inline-entry em, .lj-pack-floating-entry em { margin-left: auto; padding: 5px 8px; border-radius: 999px; color: #5b4ddd; background: #fff; font-size: 10px; font-style: normal; font-weight: 700; }

.lj-pack-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(14, 18, 32, .68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lj-pack-modal {
  width: min(1240px, calc(100vw - 44px));
  height: min(880px, calc(100vh - 44px));
  min-height: 620px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  color: var(--lj-pack-ink);
  background: #f3f5f9;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 24px;
  box-shadow: 0 34px 90px rgba(8, 12, 28, .4);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.lj-pack-modal.lj-pack-attention { animation: lj-pack-attention .35s ease; }
@keyframes lj-pack-attention { 0%,100% { transform: scale(1); } 45% { transform: scale(.992); box-shadow: 0 34px 90px rgba(8,12,28,.4), 0 0 0 3px rgba(119,101,244,.35); } }

.lj-pack-modal button,
.lj-pack-modal input,
.lj-pack-modal select { font: inherit; }
.lj-pack-modal button:focus-visible,
.lj-pack-modal input:focus-visible,
.lj-pack-modal select:focus-visible { outline: 3px solid rgba(82, 115, 241, .22); outline-offset: 2px; }
.lj-pack-modal svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.lj-pack-hero {
  min-height: 112px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(118, 163, 255, .34), transparent 28%),
    radial-gradient(circle at 16% 120%, rgba(140, 107, 255, .32), transparent 32%),
    linear-gradient(125deg, #17213b 0%, #293a6b 52%, #433882 100%);
}
.lj-pack-hero::after { content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg,#000,transparent 80%); }
.lj-pack-hero-mark { position: relative; z-index: 1; width: 58px; height: 58px; flex: 0 0 auto; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); border: 1px solid rgba(255,255,255,.24); box-shadow: inset 0 1px rgba(255,255,255,.24), 0 14px 28px rgba(5,10,32,.22); }
.lj-pack-hero-mark svg { width: 29px; height: 29px; }
.lj-pack-hero > div:nth-child(2) { position: relative; z-index: 1; min-width: 0; }
.lj-pack-hero small { display: block; margin-bottom: 3px; color: #bfcdf3; font-size: 11px; letter-spacing: .13em; }
.lj-pack-hero h1 { margin: 0; font-size: 25px; line-height: 1.15; letter-spacing: .02em; }
.lj-pack-hero p { margin: 7px 0 0; color: #ced7ee; font-size: 12px; }
.lj-pack-hero-tags { z-index: 1; margin-left: auto; display: flex; gap: 7px; }
.lj-pack-hero-tags span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #dae4ff; background: rgba(255,255,255,.08); font-size: 10px; }
.lj-pack-close { position: relative; z-index: 2; width: 38px; height: 38px; margin-left: 5px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; color: #fff; background: rgba(255,255,255,.09); display: grid; place-items: center; cursor: pointer; }
.lj-pack-close:hover { background: rgba(255,255,255,.18); }
.lj-pack-close svg { width: 19px; height: 19px; }

.lj-pack-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 18px 10px; background: #fff; border-bottom: 1px solid var(--lj-pack-line); }
.lj-pack-tab { border: 1px solid transparent; border-radius: 14px; padding: 9px 12px; display: flex; align-items: center; gap: 10px; color: #626b7e; background: transparent; cursor: pointer; text-align: left; transition: .18s ease; }
.lj-pack-tab:hover { background: #f5f6fb; }
.lj-pack-tab.is-active { color: #5544d8; border-color: #ded9ff; background: linear-gradient(110deg, #f4f1ff, #f0f5ff); box-shadow: 0 6px 16px rgba(85,68,216,.08); }
.lj-pack-tab .lj-pack-icon { width: 33px; height: 33px; border-radius: 11px; display: grid; place-items: center; background: #f0f2f7; }
.lj-pack-tab.is-active .lj-pack-icon { color: #fff; background: linear-gradient(145deg, #6d58ea, #3b7cf4); }
.lj-pack-tab svg { width: 17px; height: 17px; }
.lj-pack-tab > span:last-child { display: grid; gap: 2px; }
.lj-pack-tab b { font-size: 13px; }
.lj-pack-tab small { color: #9298a7; font-size: 10px; }

.lj-pack-feedback { min-height: 34px; padding: 7px 22px; display: flex; align-items: center; color: #727b8e; background: #fafbfc; border-bottom: 1px solid var(--lj-pack-line); font-size: 11px; }
.lj-pack-feedback span { display: flex; align-items: center; gap: 6px; }
.lj-pack-feedback svg { width: 14px; height: 14px; }
.lj-pack-feedback .is-error { color: #c53c4d; }
.lj-pack-feedback .is-success { color: #17865d; }

.lj-pack-project-context { min-height: 49px; padding: 7px 22px; display: flex; align-items: center; gap: 13px; color: #596275; background: linear-gradient(90deg,#f8f9fd,#f4f2ff); border-bottom: 1px solid #e6e7ef; }
.lj-pack-project-context > div { min-width: 0; display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; }
.lj-pack-project-context small { color: #9299a9; font-size: 9px; }
.lj-pack-project-context b { max-width: 220px; overflow: hidden; color: #3f358d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.lj-pack-project-context span { grid-column: 1 / -1; margin-top: 2px; color: #7d8495; font-size: 8px; }
.lj-pack-project-context select { min-width: 190px; height: 32px; margin-left: auto; padding: 0 28px 0 10px; border: 1px solid #d9d6f2; border-radius: 9px; color: #4d438e; background: #fff; cursor: pointer; font-size: 10px; font-weight: 700; }

.lj-pack-layout { min-height: 0; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.lj-pack-sidebar { min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr); background: #f9fafc; border-right: 1px solid var(--lj-pack-line); }
.lj-pack-search { padding: 13px; display: flex; gap: 7px; border-bottom: 1px solid #e9ecf2; }
.lj-pack-search input { min-width: 0; flex: 1; height: 36px; padding: 0 11px; color: #30394c; background: #fff; border: 1px solid #dfe3eb; border-radius: 10px; font-size: 12px; }
.lj-pack-search button { width: 36px; height: 36px; border: 1px solid #dfe3eb; border-radius: 10px; color: #647087; background: #fff; display: grid; place-items: center; cursor: pointer; }
.lj-pack-search svg { width: 16px; height: 16px; }
.lj-pack-asset-list { overflow: auto; padding: 9px; scrollbar-width: thin; }
.lj-pack-asset-item { width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 13px; display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 9px; color: #3a4356; background: transparent; cursor: pointer; text-align: left; }
.lj-pack-asset-item + .lj-pack-asset-item { margin-top: 3px; }
.lj-pack-asset-item:hover { background: #fff; border-color: #e7e9ef; }
.lj-pack-asset-item.is-active { color: #4d3ed0; background: #fff; border-color: #dbd6fa; box-shadow: 0 8px 20px rgba(50,44,113,.08); }
.lj-pack-thumb { width: 46px; height: 46px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; color: #7167ad; background: linear-gradient(145deg,#edeaf8,#e9f1fb); }
.lj-pack-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lj-pack-thumb svg { width: 20px; height: 20px; }
.lj-pack-asset-copy { min-width: 0; display: grid; gap: 4px; }
.lj-pack-asset-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.lj-pack-asset-copy small { color: #8a91a1; font-size: 9px; }
.lj-pack-asset-copy i { height: 3px; overflow: hidden; border-radius: 999px; background: #e9ebf1; }
.lj-pack-asset-copy em { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#725bea,#3e8af7); }
.lj-pack-asset-item > strong { min-width: 30px; font-size: 10px; text-align: right; }
.lj-pack-list-state { min-height: 220px; padding: 30px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #8891a4; text-align: center; }
.lj-pack-list-state > svg { width: 32px; height: 32px; }
.lj-pack-list-state b { color: #535d70; font-size: 13px; }
.lj-pack-list-state small { font-size: 10px; line-height: 1.6; }
.lj-pack-spinner { width: 25px; height: 25px; border: 3px solid #dddff0; border-top-color: #6857e8; border-radius: 50%; animation: lj-pack-spin .8s linear infinite; }
@keyframes lj-pack-spin { to { transform: rotate(360deg); } }

.lj-pack-detail { min-width: 0; overflow: auto; padding: 18px 20px 28px; background: #f3f5f9; scrollbar-width: thin; }
.lj-pack-detail-head { padding: 17px 18px; border: 1px solid #e2e5ed; border-radius: 18px; display: flex; align-items: center; gap: 18px; background: linear-gradient(120deg, #fff, #f9f9ff); box-shadow: 0 10px 25px rgba(29,36,66,.05); }
.lj-pack-detail-title { min-width: 0; display: flex; align-items: center; gap: 13px; }
.lj-pack-detail-title > span { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,#6957e8,#377cf6); box-shadow: 0 10px 20px rgba(81,74,202,.2); }
.lj-pack-detail-title > span svg { width: 23px; height: 23px; }
.lj-pack-detail-title small { color: #7f8799; font-size: 10px; }
.lj-pack-detail-title h2 { margin: 2px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.lj-pack-detail-title p { margin: 0; color: #7a8293; font-size: 10px; line-height: 1.5; }
.lj-pack-score { margin-left: auto; min-width: 112px; display: grid; text-align: right; }
.lj-pack-score strong { color: #5c49dc; font-size: 24px; line-height: 1; }
.lj-pack-score strong small { font-size: 11px; }
.lj-pack-score span { margin-top: 3px; color: #8b92a1; font-size: 9px; }
.lj-pack-score i { width: 100%; height: 4px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #e6e7ee; }
.lj-pack-score em { height: 100%; display: block; background: linear-gradient(90deg,#725bea,#3e8af7); }

.lj-pack-levels { margin-top: 14px; padding: 15px; border: 1px solid #e1e5ec; border-radius: 17px; background: #fff; }
.lj-pack-levels > header, .lj-pack-outfit-nav > header, .lj-pack-slot-section > header { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.lj-pack-levels header div, .lj-pack-outfit-nav header div { display: grid; gap: 2px; }
.lj-pack-levels header small, .lj-pack-outfit-nav header small, .lj-pack-slot-section header small { color: #8c93a4; font-size: 9px; letter-spacing: .08em; }
.lj-pack-levels header b, .lj-pack-outfit-nav header b { font-size: 12px; }
.lj-pack-levels header > span, .lj-pack-outfit-nav header > span { color: #8a91a0; font-size: 9px; }
.lj-pack-levels > div { margin-top: 10px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.lj-pack-levels button { min-height: 64px; padding: 9px 10px; display: grid; grid-template-columns: 18px minmax(0,1fr); column-gap: 6px; border: 1px solid #e5e7ed; border-radius: 12px; color: #4b5466; background: #fafbfc; cursor: pointer; text-align: left; }
.lj-pack-levels button:hover { border-color: #cbc5f5; }
.lj-pack-levels button.is-active { color: #5545d4; border-color: #cfc8fa; background: #f5f2ff; }
.lj-pack-levels button span { width: 17px; height: 17px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #d8dbe3; grid-row: 1/3; }
.lj-pack-levels button.is-active span { background: #6653e5; }
.lj-pack-levels button svg { width: 11px; height: 11px; }
.lj-pack-levels button b { font-size: 11px; }
.lj-pack-levels button small { color: #9298a7; font-size: 8px; line-height: 1.45; }

.lj-pack-slot-section { margin-top: 14px; }
.lj-pack-slot-section header { padding: 0 2px 10px; }
.lj-pack-slot-section h3 { margin: 2px 0 0; font-size: 14px; }
.lj-pack-sync-badge { padding: 5px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; color: #287257; background: #e8f7f0; font-size: 9px; font-weight: 700; }
.lj-pack-sync-badge svg { width: 12px; height: 12px; }
.lj-pack-slot-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.lj-pack-slot { min-width: 0; overflow: hidden; border: 1px solid #e1e5ec; border-radius: 15px; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.lj-pack-slot:hover { transform: translateY(-2px); border-color: #d5d0f4; box-shadow: 0 12px 25px rgba(38,42,79,.08); }
.lj-pack-slot-media { height: 118px; position: relative; overflow: hidden; background: linear-gradient(145deg,#eceef5,#e8edf7); }
.lj-pack-slot-media img { width: 100%; height: 100%; object-fit: cover; }
.lj-pack-slot-media > span { height: 100%; display: grid; place-items: center; align-content: center; gap: 5px; color: #949bad; }
.lj-pack-slot-media > span svg { width: 27px; height: 27px; }
.lj-pack-slot-media > span small { font-size: 9px; }
.lj-pack-slot-media > em { position: absolute; top: 7px; right: 7px; padding: 4px 6px; display: inline-flex; align-items: center; gap: 3px; border-radius: 999px; color: #fff; background: rgba(22,124,86,.88); font-size: 8px; font-style: normal; backdrop-filter: blur(5px); }
.lj-pack-slot-media > em svg { width: 10px; height: 10px; }
.lj-pack-slot-body { padding: 10px; }
.lj-pack-slot-body > div { display: flex; align-items: center; gap: 5px; }
.lj-pack-slot-body b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.lj-pack-slot-body i { margin-left: auto; padding: 2px 5px; border-radius: 999px; color: #6b54de; background: #eeeafd; font-size: 7px; font-style: normal; }
.lj-pack-slot-body i.is-optional { color: #7e8798; background: #eef0f4; }
.lj-pack-slot-body p { min-height: 28px; margin: 5px 0 4px; color: #8a91a0; font-size: 8px; line-height: 1.55; }
.lj-pack-usage { color: #4b7895; font-size: 7px; }
.lj-pack-slot footer { margin-top: 9px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 5px; }
.lj-pack-slot footer button { min-width: 0; height: 29px; border: 1px solid #dfe2e9; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; color: #626b7c; background: #fff; cursor: pointer; font-size: 8px; }
.lj-pack-slot footer button:hover { border-color: #c8c2ef; color: #5746d5; }
.lj-pack-slot footer button.is-primary { color: #fff; border-color: transparent; background: linear-gradient(120deg,#6855e6,#3c81f4); }
.lj-pack-slot footer svg { width: 11px; height: 11px; }

.lj-pack-outfit-create { margin-left: auto; display: flex; gap: 6px; }
.lj-pack-outfit-create input { width: 160px; height: 34px; padding: 0 10px; border: 1px solid #dfe2ea; border-radius: 9px; background: #fff; font-size: 10px; }
.lj-pack-outfit-create button { height: 34px; padding: 0 11px; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(120deg,#6855e6,#3c81f4); cursor: pointer; font-size: 10px; font-weight: 700; }
.lj-pack-outfit-nav { margin-top: 14px; padding: 15px; border: 1px solid #e1e5ec; border-radius: 17px; background: #fff; }
.lj-pack-outfit-nav > div { margin-top: 10px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; }
.lj-pack-outfit-nav button { min-width: 155px; min-height: 62px; padding: 9px; position: relative; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 2px 8px; border: 1px solid #e4e6ed; border-radius: 12px; color: #4a5365; background: #fafbfc; cursor: pointer; text-align: left; }
.lj-pack-outfit-nav button.is-selected { color: #5948d8; border-color: #cbc4f7; background: #f5f2ff; }
.lj-pack-outfit-nav button > span { width: 30px; height: 30px; grid-row: 1/4; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,#7a65e7,#4d8af1); }
.lj-pack-outfit-nav button svg { width: 15px; height: 15px; }
.lj-pack-outfit-nav button b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.lj-pack-outfit-nav button small { color: #8f96a5; font-size: 8px; }
.lj-pack-outfit-nav button em, .lj-pack-outfit-nav button i { width: max-content; padding: 2px 5px; border-radius: 999px; font-size: 7px; font-style: normal; }
.lj-pack-outfit-nav button em { color: #177b58; background: #e2f5ec; }
.lj-pack-outfit-nav button i { color: #5a48d8; background: #e9e5ff; }

.lj-pack-empty-detail { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8790a2; text-align: center; }
.lj-pack-empty-detail > svg { width: 45px; height: 45px; margin-bottom: 10px; }
.lj-pack-empty-detail h3 { margin: 5px 0; color: #4a5365; font-size: 15px; }
.lj-pack-empty-detail p { max-width: 480px; margin: 0; font-size: 10px; line-height: 1.7; }
.lj-pack-empty-detail button.is-primary { height: 34px; margin-top: 14px; padding: 0 14px; border: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #fff; background: linear-gradient(120deg,#6955e7,#3b80f3); cursor: pointer; font-size: 10px; font-weight: 700; }
.lj-pack-empty-detail button.is-primary svg { width: 14px; height: 14px; }
.lj-pack-empty-detail > small { display: block; margin-top: 8px; color: #82899a; font-size: 8px; }

.lj-pack-modal-footer { min-height: 58px; padding: 9px 18px; display: flex; align-items: center; gap: 11px; background: #fff; border-top: 1px solid var(--lj-pack-line); }
.lj-pack-modal-footer > div { display: grid; grid-template-columns: 10px auto; column-gap: 7px; align-items: center; }
.lj-pack-status-dot { width: 8px; height: 8px; grid-row: 1/3; border-radius: 50%; background: #20ad78; box-shadow: 0 0 0 5px #e4f7ef; }
.lj-pack-modal-footer b { font-size: 10px; }
.lj-pack-modal-footer small { color: #8c93a2; font-size: 8px; }
.lj-pack-modal-footer > button { margin-left: auto; height: 34px; padding: 0 18px; border: 0; border-radius: 10px; color: #fff; background: #293653; cursor: pointer; font-size: 10px; font-weight: 700; }

.lj-pack-image-dock { position: fixed; left: 50%; bottom: 20px; z-index: 230; width: min(760px, calc(100vw - 32px)); transform: translateX(-50%); padding: 11px 12px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 10px; color: #fff; background: rgba(25,34,58,.94); border: 1px solid rgba(255,255,255,.14); border-radius: 15px; box-shadow: 0 18px 50px rgba(10,15,30,.35); backdrop-filter: blur(10px); }
.lj-pack-image-dock > span { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(145deg,#775eea,#4286f4); }
.lj-pack-image-dock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lj-pack-image-dock div { min-width: 0; }
.lj-pack-image-dock small { display: block; color: #9eadd0; font-size: 8px; }
.lj-pack-image-dock b { font-size: 11px; }
.lj-pack-image-dock p { margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c9d2e7; font-size: 8px; }
.lj-pack-image-dock button { height: 32px; padding: 0 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; color: #fff; background: rgba(255,255,255,.1); cursor: pointer; font-size: 9px; }
.lj-pack-image-dock button.is-done { color: #bff3dc; background: rgba(35,176,120,.18); }

.lj-pack-phase-nav { margin-top: 14px; padding: 15px; border: 1px solid #dddff0; border-radius: 17px; background: linear-gradient(125deg,#fbfaff,#f4f7ff); box-shadow: 0 9px 24px rgba(64,60,125,.05); }
.lj-pack-phase-nav > header { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.lj-pack-phase-nav > header div { display: grid; gap: 2px; }
.lj-pack-phase-nav > header small { color: #8b91a5; font-size: 9px; letter-spacing: .08em; }
.lj-pack-phase-nav > header b { font-size: 12px; }
.lj-pack-phase-nav > header > span { color: #6155b6; font-size: 9px; }
.lj-pack-phase-create { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 7px; }
.lj-pack-phase-create input { min-width: 0; height: 34px; padding: 0 10px; border: 1px solid #dfe2eb; border-radius: 9px; color: #30394c; background: #fff; font-size: 10px; }
.lj-pack-phase-create button { height: 34px; padding: 0 12px; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(120deg,#6855e6,#3c81f4); cursor: pointer; font-size: 10px; font-weight: 700; }
.lj-pack-phase-list { margin-top: 10px; display: flex; gap: 7px; overflow-x: auto; }
.lj-pack-phase-list > button { min-width: 155px; padding: 9px 10px; display: grid; gap: 2px; position: relative; border: 1px solid #e1e3ec; border-radius: 11px; color: #465064; background: rgba(255,255,255,.84); cursor: pointer; text-align: left; }
.lj-pack-phase-list > button.is-selected { color: #5543d5; border-color: #c9c1fa; background: #fff; box-shadow: 0 7px 18px rgba(74,61,175,.1); }
.lj-pack-phase-list b { font-size: 10px; }
.lj-pack-phase-list small { color: #8a91a2; font-size: 8px; }
.lj-pack-phase-list em,.lj-pack-phase-list i { width: max-content; margin-top: 3px; padding: 2px 5px; border-radius: 999px; font-size: 7px; font-style: normal; }
.lj-pack-phase-list em { color: #157b57; background: #e3f6ed; }
.lj-pack-phase-list i { color: #5543d5; background: #ece8ff; }
.lj-pack-phase-empty { margin: 10px 0 0; padding: 9px 11px; border-radius: 10px; color: #757d90; background: rgba(255,255,255,.8); font-size: 9px; line-height: 1.6; }
.lj-pack-modal-footer > button.is-editing { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #5846d8; border: 1px solid #d5cff8; background: #f3f0ff; }
.lj-pack-modal-footer > button.is-editing + button { margin-left: 0; }
.lj-pack-modal-footer > button svg { width: 14px; height: 14px; }

.lj-composer-backdrop,.lj-timing-backdrop { position: fixed; inset: 0; z-index: 10040; display: grid; place-items: center; padding: 20px; background: rgba(8,12,25,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lj-composer,.lj-timing-modal { width: min(1180px,calc(100vw - 40px)); height: min(850px,calc(100vh - 40px)); overflow: hidden; display: grid; color: #192237; border: 1px solid rgba(255,255,255,.24); border-radius: 24px; background: #f2f4f9; box-shadow: 0 36px 100px rgba(5,9,22,.52); font-family: Inter,"PingFang SC","Microsoft YaHei",sans-serif; }
.lj-composer { display: flex; flex-direction: column; min-height: 0; }
.lj-composer > header,.lj-composer-message { flex: 0 0 auto; box-sizing: border-box; }
.lj-composer > header { min-height: 104px; padding: 21px 25px; display: flex; align-items: center; gap: 16px; color: #fff; background: radial-gradient(circle at 70% 0,rgba(90,145,255,.35),transparent 36%),linear-gradient(125deg,#17213c,#343a78 58%,#5b3d8d); }
.lj-composer > header > div { min-width: 0; }
.lj-composer > header small { color: #bac8ed; font-size: 10px; letter-spacing: .14em; }
.lj-composer > header h2 { margin: 4px 0; font-size: 21px; }
.lj-composer > header p { margin: 0; color: #ced7ed; font-size: 10px; }
.lj-composer > header button,.lj-timing-hero > button { width: 38px; height: 38px; margin-left: auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; color: #fff; background: rgba(255,255,255,.1); cursor: pointer; }
.lj-composer svg,.lj-timing-modal svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lj-composer > header svg,.lj-timing-hero > button svg { width: 19px; height: 19px; }
.lj-composer-message { padding: 8px 24px; font-size: 10px; }
.lj-composer-message.is-error { color: #ae3547; background: #fff0f2; border-bottom: 1px solid #f3ccd2; }
.lj-composer-grid { flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; display: grid; grid-template-columns: 285px minmax(0,1fr); }
.lj-composer-grid > aside { min-width: 0; min-height: 0; overflow: auto; padding: 15px; background: #f7f8fb; border-right: 1px solid #e1e4ec; }
.lj-composer-grid > main { min-width: 0; min-height: 0; overflow: auto; padding: 15px 17px 24px; display: flex; flex-direction: column; }
.lj-composer h3 { margin: 0; font-size: 12px; }
.lj-composer-facts,.lj-composer-evidence,.lj-composer-modes,.lj-composer-refs,.lj-composer-prompt { padding: 14px; border: 1px solid #e0e3eb; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px rgba(31,38,69,.04); }
.lj-composer-facts > div { margin-top: 9px; padding: 9px; border-radius: 10px; background: #f4f5fa; }
.lj-composer-facts b,.lj-composer-evidence b { color: #5545d3; font-size: 9px; }
.lj-composer-facts p { margin: 4px 0 0; color: #596377; font-size: 9px; line-height: 1.55; }
.lj-composer-facts > small { display: block; margin-top: 9px; color: #748095; font-size: 8px; line-height: 1.55; }
.lj-composer-evidence { margin-top: 10px; }
.lj-composer-evidence > p { margin: 9px 0 0; padding-left: 9px; border-left: 2px solid #d8d2fa; display: grid; gap: 3px; }
.lj-composer-evidence span { color: #697286; font-size: 8px; line-height: 1.55; }
.lj-composer-modes > div { margin-top: 9px; display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.lj-composer-modes button { min-width: 0; padding: 9px; display: grid; gap: 3px; border: 1px solid #e1e4eb; border-radius: 10px; color: #566074; background: #f9fafc; cursor: pointer; text-align: left; }
.lj-composer-modes button.is-active { color: #5543d5; border-color: #c8c0fa; background: linear-gradient(125deg,#f2efff,#f1f6ff); box-shadow: 0 6px 15px rgba(76,61,181,.08); }
.lj-composer-modes b { font-size: 10px; }
.lj-composer-modes small { color: #8c93a2; font-size: 7px; line-height: 1.4; }
.lj-composer-refs { margin-top: 10px; }
.lj-composer-refs > header,.lj-composer-prompt > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lj-composer-refs h3 small { color: #8e95a5; font-size: 8px; font-weight: 400; }
.lj-composer-refs > header button { height: 28px; padding: 0 9px; display: flex; align-items: center; gap: 4px; border: 1px solid #d6d0f7; border-radius: 8px; color: #5948d8; background: #f3f0ff; cursor: pointer; font-size: 8px; }
.lj-composer-refs > header svg { width: 11px; height: 11px; }
.lj-composer-refs > div:not(.lj-composer-no-ref) { margin-top: 9px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.lj-composer-refs article { min-width: 0; padding: 7px; display: grid; gap: 3px; border: 1px solid #e2e4eb; border-radius: 11px; background: #fafbfc; }
.lj-composer-refs article.is-selected { border-color: #bfb5f8; background: #f6f3ff; }
.lj-composer-refs article > button { height: 86px; padding: 0; position: relative; overflow: hidden; border: 0; border-radius: 8px; background: #e8ebf2; cursor: pointer; }
.lj-composer-refs article img { width: 100%; height: 100%; object-fit: cover; }
.lj-composer-refs article > button span { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #6553e4; }
.lj-composer-refs article > button svg { width: 12px; height: 12px; }
.lj-composer-refs article b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.lj-composer-refs article small { color: #8991a1; font-size: 7px; }
.lj-composer-refs select { width: 100%; height: 25px; margin-top: 3px; padding: 0 5px; border: 1px solid #d9d6ed; border-radius: 6px; color: #5145a4; background: #fff; font-size: 7px; }
.lj-composer-no-ref { margin-top: 9px; padding: 14px; border: 1px dashed #d7d9e4; border-radius: 10px; color: #757e91; background: #f8f9fb; font-size: 9px; line-height: 1.6; text-align: center; }
.lj-composer-modes,.lj-composer-refs { flex: 0 0 auto; }
.lj-composer-prompt { flex: 1 0 270px; min-height: 270px; margin-top: 10px; display: flex; flex-direction: column; overflow: hidden; }
.lj-composer-prompt select { height: 28px; padding: 0 8px; border: 1px solid #dddfe8; border-radius: 8px; color: #4f596d; background: #fafbfc; font-size: 8px; }
.lj-composer-prompt textarea { width: 100%; height: auto; flex: 1 1 auto; min-height: 180px; margin-top: 9px; padding: 11px; resize: none; overflow: auto; border: 1px solid #dfe2e9; border-radius: 10px; color: #30394b; background: #fbfcfd; font: 9px/1.65 Inter,"PingFang SC","Microsoft YaHei",sans-serif; box-sizing: border-box; }
.lj-composer-prompt textarea:focus { outline: 3px solid rgba(89,71,220,.13); border-color: #aaa0ed; }
.lj-composer-audit { margin-top: 8px; padding: 9px 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; border-radius: 9px; font-size: 8px; }
.lj-composer-audit.is-pass { color: #176d50; background: #e9f7f1; }
.lj-composer-audit.is-blocked { color: #aa3545; background: #fff0f2; }
.lj-composer-audit b { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; }
.lj-composer-audit svg { width: 11px; height: 11px; }
.lj-composer-audit span { padding: 2px 5px; border-radius: 999px; background: rgba(255,255,255,.66); }
.lj-composer-audit span[data-level="warning"] { color: #8d5c12; }
.lj-composer > footer { flex: 0 0 auto; min-height: 63px; box-sizing: border-box; padding: 9px 18px; position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; background: #fff; border-top: 1px solid #e1e4eb; }
.lj-composer > footer > div { margin-right: auto; display: grid; gap: 2px; }
.lj-composer > footer b { font-size: 10px; }
.lj-composer > footer small { color: #848c9d; font-size: 8px; }
.lj-composer > footer button { height: 34px; padding: 0 14px; border: 1px solid #dfe2e9; border-radius: 9px; color: #596276; background: #fff; cursor: pointer; font-size: 9px; font-weight: 700; }
.lj-composer > footer button.is-primary { color: #fff; border-color: transparent; background: linear-gradient(120deg,#6955e7,#3b80f3); }
.lj-composer > footer button:disabled { cursor: not-allowed; opacity: .55; }

.lj-timing-backdrop { z-index: 10035; }
.lj-timing-modal { grid-template-rows: auto auto minmax(0,1fr) auto; }
.lj-timing-hero { min-height: 105px; padding: 20px 24px; display: flex; align-items: center; gap: 18px; color: #fff; background: radial-gradient(circle at 72% 0,rgba(90,171,255,.32),transparent 34%),radial-gradient(circle at 12% 120%,rgba(128,88,236,.3),transparent 30%),linear-gradient(125deg,#111c34,#223a63 56%,#403675); }
.lj-timing-hero > div { min-width: 0; }
.lj-timing-hero small { color: #b8c7e7; font-size: 9px; }
.lj-timing-hero h2 { margin: 4px 0; font-size: 22px; }
.lj-timing-hero p { margin: 0; color: #c8d4ea; font-size: 10px; }
.lj-timing-hero > section { margin-left: auto; display: flex; gap: 7px; }
.lj-timing-hero > section span { min-width: 94px; padding: 8px 10px; display: grid; gap: 2px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.08); }
.lj-timing-hero > section b { font-size: 10px; }
.lj-timing-hero > button { margin-left: 0; }
.lj-timing-feedback { min-height: 34px; padding: 7px 20px; display: flex; align-items: center; color: #657085; background: #fafbfc; border-bottom: 1px solid #e1e4eb; font-size: 9px; }
.lj-timing-feedback span { display: inline-flex; align-items: center; gap: 5px; }
.lj-timing-feedback svg { width: 12px; height: 12px; }
.lj-timing-feedback .is-error { color: #b23648; }
.lj-timing-feedback .is-success { color: #157854; }
.lj-timing-modal > main { min-height: 0; overflow: auto; padding: 14px 18px 28px; }
.lj-timing-loading { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #687286; }
.lj-timing-loading button { height: 32px; padding: 0 12px; border: 1px solid #d9dce5; border-radius: 9px; color: #5747d4; background: #fff; cursor: pointer; }
.lj-timing-episodes { display: flex; gap: 6px; overflow-x: auto; }
.lj-timing-episodes button { min-width: 110px; padding: 8px 10px; display: grid; gap: 2px; border: 1px solid #dfe2e9; border-radius: 10px; color: #586276; background: #fff; cursor: pointer; text-align: left; }
.lj-timing-episodes button.is-active { color: #5543d5; border-color: #c8c0f8; background: #f4f1ff; }
.lj-timing-episodes b { font-size: 10px; }
.lj-timing-episodes small { color: #8b92a2; font-size: 7px; }
.lj-timing-summary { margin-top: 10px; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.lj-timing-summary > div { padding: 12px 13px; position: relative; overflow: hidden; display: grid; gap: 4px; border: 1px solid #e0e3eb; border-radius: 13px; background: #fff; box-shadow: 0 7px 20px rgba(31,38,69,.04); }
.lj-timing-summary > div::after { content:""; position:absolute; inset:auto -12px -20px auto; width:55px; height:55px; border-radius:50%; background:linear-gradient(145deg,rgba(112,86,233,.13),rgba(59,133,244,.07)); }
.lj-timing-summary small { color: #858d9e; font-size: 8px; }
.lj-timing-summary b { color: #333c51; font-size: 17px; }
.lj-timing-timeline { margin-top: 10px; padding: 13px; border: 1px solid #dfe2ea; border-radius: 14px; background: #fff; }
.lj-timing-timeline > header { display: flex; align-items: end; justify-content: space-between; }
.lj-timing-timeline > header div { display: grid; gap: 2px; }
.lj-timing-timeline > header small { color: #888f9f; font-size: 8px; }
.lj-timing-timeline > header b { font-size: 10px; }
.lj-timing-timeline > header span { color: #777f91; font-size: 8px; }
.lj-timing-timeline > header > section { display: flex; align-items: center; gap: 8px; }
.lj-timing-timeline > header > section button { height: 28px; padding: 0 9px; display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 8px; color: #fff; background: linear-gradient(120deg,#6855e6,#3d83f1); cursor: pointer; font-size: 8px; font-weight: 700; }
.lj-timing-timeline > header > section button svg { width: 11px; height: 11px; }
.lj-timing-timeline > div { margin-top: 9px; min-height: 48px; display: flex; gap: 3px; }
.lj-timing-timeline > div button { min-width: 36px; min-height: 48px; padding: 5px; flex-grow: 1; display: grid; place-items: center; align-content: center; gap: 1px; border: 0; border-radius: 7px; color: #fff; background: linear-gradient(130deg,#7663df,#4688e9); cursor: pointer; opacity: .78; }
.lj-timing-timeline > div button:nth-child(3n+2) { background: linear-gradient(130deg,#437fae,#3faaa1); }
.lj-timing-timeline > div button:nth-child(3n) { background: linear-gradient(130deg,#8e5cae,#c36d94); }
.lj-timing-timeline > div button.is-active { opacity: 1; box-shadow: 0 0 0 3px #e2ddff,0 8px 18px rgba(62,56,131,.17); }
.lj-timing-timeline button b { font-size: 10px; }
.lj-timing-timeline button small { color: rgba(255,255,255,.86); font-size: 7px; }
.lj-animatic { margin-top: 10px; padding: 11px; display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 13px; border: 1px solid #cbc4f5; border-radius: 14px; color: #fff; background: radial-gradient(circle at 85% 20%,rgba(88,133,231,.3),transparent 35%),linear-gradient(125deg,#18243e,#2f3766); box-shadow: 0 12px 28px rgba(31,37,76,.18); }
.lj-animatic-frame { min-height: 142px; overflow: hidden; display: grid; place-items: center; border-radius: 10px; background: #0f1728; }
.lj-animatic-frame img { width: 100%; height: 100%; object-fit: cover; }
.lj-animatic-frame > span { display: grid; place-items: center; gap: 6px; color: #b8c5e7; }
.lj-animatic-frame svg { width: 28px; height: 28px; }
.lj-animatic-frame small { font-size: 8px; }
.lj-animatic > div:last-child { min-width: 0; padding: 4px 4px 2px; display: flex; flex-direction: column; }
.lj-animatic > div:last-child > small { color: #9eafd3; font-size: 8px; }
.lj-animatic h3 { margin: 5px 0 4px; font-size: 16px; }
.lj-animatic p { margin: 0; color: #c7d1e6; font-size: 9px; line-height: 1.55; }
.lj-animatic blockquote { margin: 8px 0 0; padding: 7px 9px; border-left: 2px solid #8878ef; color: #e3e7f3; background: rgba(255,255,255,.06); font-size: 8px; }
.lj-animatic footer { margin-top: auto; padding-top: 10px; display: grid; grid-template-columns: auto minmax(60px,1fr) auto; align-items: center; gap: 8px; }
.lj-animatic footer span { color: #b8c4df; font-size: 8px; }
.lj-animatic footer i { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.14); }
.lj-animatic footer em { height: 100%; display: block; background: linear-gradient(90deg,#8b79f1,#58a2f4); }
.lj-animatic footer button { height: 27px; padding: 0 8px; border: 1px solid rgba(255,255,255,.17); border-radius: 7px; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; font-size: 7px; }
.lj-timing-list { margin-top: 10px; display: grid; gap: 8px; }
.lj-timing-shot { overflow: hidden; border: 1px solid #e0e3ea; border-radius: 14px; background: #fff; }
.lj-timing-shot.is-open { border-color: #c8c0f5; box-shadow: 0 10px 26px rgba(41,37,91,.08); }
.lj-timing-shot-head { width: 100%; min-height: 76px; padding: 10px 12px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto auto; align-items: center; gap: 10px; border: 0; color: #333d51; background: #fff; cursor: pointer; text-align: left; }
.lj-timing-shot.is-open .lj-timing-shot-head { background: linear-gradient(120deg,#faf9ff,#f6f9ff); }
.lj-timing-number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg,#6b57e5,#3b82f2); font-size: 13px; font-weight: 800; }
.lj-timing-shot-head > div { min-width: 0; display: grid; gap: 2px; }
.lj-timing-shot-head > div small { color: #8b92a2; font-size: 7px; }
.lj-timing-shot-head > div b { font-size: 10px; }
.lj-timing-shot-head > div p { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #747d8e; font-size: 8px; }
.lj-timing-shot-head > section { display: flex; align-items: center; gap: 8px; }
.lj-timing-shot-head > section span { min-width: 64px; display: grid; gap: 1px; text-align: center; }
.lj-timing-shot-head > section small { color: #9197a5; font-size: 7px; }
.lj-timing-shot-head > section b { font-size: 11px; }
.lj-timing-shot-head > section span.is-model-longer b { color: #a76216; }
.lj-timing-shot-head > section i { color: #a2a8b5; font-style: normal; }
.lj-timing-shot-head > em { padding: 4px 7px; border-radius: 999px; color: #5947d8; background: #eeeaff; font-size: 7px; font-style: normal; }
.lj-timing-shot-body { padding: 0 13px 14px; border-top: 1px solid #e8eaf0; background: #f8f9fc; }
.lj-timing-contract { padding: 11px 0; display: grid; grid-template-columns: 170px auto minmax(0,1fr); align-items: end; gap: 8px; }
.lj-timing-contract label { display: grid; gap: 4px; color: #656e80; font-size: 8px; }
.lj-timing-contract label > div { height: 32px; display: flex; overflow: hidden; border: 1px solid #dce0e8; border-radius: 8px; background: #fff; }
.lj-timing-contract input { min-width: 0; width: 100%; padding: 0 8px; border: 0; color: #343d50; font-size: 10px; }
.lj-timing-contract label span { padding: 0 8px; display: grid; place-items: center; color: #788093; background: #f1f2f6; font-size: 8px; }
.lj-timing-contract > button { height: 32px; padding: 0 11px; display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 8px; color: #fff; background: #33415f; cursor: pointer; font-size: 8px; font-weight: 700; }
.lj-timing-contract > button svg { width: 12px; height: 12px; }
.lj-timing-contract > p { margin: 0 0 2px; color: #717a8c; font-size: 8px; line-height: 1.55; }
.lj-timing-contract > p b { color: #5543d5; }
.lj-timing-takes { display: grid; gap: 9px; }
.lj-timing-take { padding: 11px; border: 1px solid #e0e3ea; border-radius: 12px; background: #fff; }
.lj-timing-take.is-selected { border-color: #c9c1f7; }
.lj-timing-take > header { display: flex; align-items: center; gap: 8px; }
.lj-timing-take > header > div { display: flex; align-items: center; gap: 8px; }
.lj-timing-take > header > div > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(145deg,#6955e7,#3d83f1); }
.lj-timing-take > header svg { width: 14px; height: 14px; }
.lj-timing-take > header div div { display: grid; gap: 2px; }
.lj-timing-take > header b { font-size: 9px; }
.lj-timing-take > header small { color: #878e9e; font-size: 7px; }
.lj-timing-take > header a { margin-left: auto; color: #5948d7; font-size: 8px; }
.lj-timing-take > video { width: min(480px,100%); max-height: 270px; margin-top: 9px; display: block; border-radius: 10px; background: #111827; }
.lj-timing-no-video { margin-top: 8px; padding: 15px; border-radius: 9px; color: #7f8797; background: #eef0f4; font-size: 8px; }
.lj-timing-preserve { margin-top: 8px; padding: 8px 9px; display: flex; align-items: center; gap: 7px; border-radius: 9px; color: #176f51; background: #e9f7f1; }
.lj-timing-preserve > svg { width: 14px; height: 14px; }
.lj-timing-preserve span { display: grid; gap: 1px; }
.lj-timing-preserve b { font-size: 8px; }
.lj-timing-preserve small { font-size: 7px; }
.lj-cut-candidates { margin-top: 9px; }
.lj-cut-candidates h4 { margin: 0 0 6px; font-size: 9px; }
.lj-cut-candidates > section { padding: 8px; display: grid; grid-template-columns: 25px minmax(0,1fr) auto auto; align-items: center; gap: 8px; border: 1px solid #e4e6ec; border-radius: 9px; background: #fafbfc; }
.lj-cut-candidates > section + section { margin-top: 5px; }
.lj-cut-candidates > section > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: #6855e4; font-size: 9px; font-weight: 800; }
.lj-cut-candidates > section > div { min-width: 0; display: grid; gap: 2px; }
.lj-cut-candidates b { font-size: 8px; }
.lj-cut-candidates small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #858d9d; font-size: 7px; }
.lj-cut-candidates i { width: 100%; height: 3px; overflow: hidden; border-radius: 999px; background: #e4e6ec; }
.lj-cut-candidates em { height: 100%; display: block; background: linear-gradient(90deg,#6c57e4,#3f8ded); }
.lj-cut-candidates strong { color: #4b5568; font-size: 7px; white-space: nowrap; }
.lj-cut-candidates button { height: 27px; padding: 0 8px; border: 1px solid #d3cef3; border-radius: 7px; color: #5745d5; background: #f3f0ff; cursor: pointer; font-size: 7px; }
.lj-cut-actions { margin-top: 9px; display: flex; align-items: end; flex-wrap: wrap; gap: 6px; }
.lj-cut-actions > button { height: 31px; padding: 0 10px; border: 1px solid #dde0e7; border-radius: 8px; color: #596274; background: #fff; cursor: pointer; font-size: 8px; }
.lj-cut-actions > button.is-ai { display: inline-flex; align-items: center; gap: 5px; color: #fff; border-color: transparent; background: linear-gradient(120deg,#6855e6,#3c82f3); font-weight: 700; }
.lj-cut-actions > button svg { width: 12px; height: 12px; }
.lj-cut-actions label { display: grid; gap: 3px; color: #737c8d; font-size: 7px; }
.lj-cut-actions input { width: 64px; height: 29px; padding: 0 7px; border: 1px solid #dce0e8; border-radius: 7px; font-size: 8px; }
.lj-cut-actions button:disabled,.lj-timing-contract button:disabled { cursor: not-allowed; opacity: .55; }
.lj-cut-result { margin-top: 8px; color: #687286; font-size: 8px; }
.lj-cut-result a { color: #5746d4; }
.lj-timing-empty-takes { min-height: 72px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #747d90; border: 1px dashed #d8dbe4; border-radius: 10px; background: #fbfcfd; }
.lj-timing-empty-takes > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #6855e5; background: #eeeaff; }
.lj-timing-empty-takes svg { width: 16px; height: 16px; }
.lj-timing-empty-takes div { display: grid; gap: 2px; }
.lj-timing-empty-takes b { font-size: 9px; }
.lj-timing-empty-takes small { color: #8b92a1; font-size: 7px; }
.lj-timing-modal > footer { min-height: 59px; padding: 9px 17px; display: flex; align-items: center; gap: 8px; background: #fff; border-top: 1px solid #e0e3ea; }
.lj-timing-modal > footer > div { margin-right: auto; display: flex; align-items: center; gap: 7px; color: #1b7959; }
.lj-timing-modal > footer > div > svg { width: 15px; height: 15px; }
.lj-timing-modal > footer span { display: grid; gap: 1px; }
.lj-timing-modal > footer b { font-size: 9px; }
.lj-timing-modal > footer small { color: #808899; font-size: 7px; }
.lj-timing-modal > footer button { height: 33px; padding: 0 13px; border: 1px solid #dfe2e9; border-radius: 9px; color: #596274; background: #fff; cursor: pointer; font-size: 8px; font-weight: 700; }
.lj-timing-modal > footer button.is-primary { color: #fff; border-color: transparent; background: #2d3c59; }

@media (max-width: 920px) {
  .lj-pack-backdrop { padding: 0; }
  .lj-pack-modal { width: 100vw; height: 100dvh; min-height: 0; border-radius: 0; }
  .lj-pack-hero { min-height: 96px; padding: 16px; }
  .lj-pack-hero-tags { display: none; }
  .lj-pack-tabs { gap: 4px; padding: 8px; }
  .lj-pack-tab { justify-content: center; padding: 8px 5px; }
  .lj-pack-tab .lj-pack-icon { width: 29px; height: 29px; }
  .lj-pack-tab > span:last-child small { display: none; }
  .lj-pack-project-context { padding: 7px 14px; gap: 8px; }
  .lj-pack-project-context b { max-width: 135px; }
  .lj-pack-project-context select { min-width: 125px; max-width: 48vw; }
  .lj-pack-layout { grid-template-columns: 220px minmax(0,1fr); }
  .lj-pack-slot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lj-composer-backdrop,.lj-timing-backdrop { padding: 0; }
  .lj-composer,.lj-timing-modal { width: 100vw; height: 100dvh; border-radius: 0; }
  .lj-composer-grid { grid-template-columns: 235px minmax(0,1fr); }
  .lj-composer-modes > div { grid-template-columns: repeat(2,1fr); }
  .lj-composer-refs > div:not(.lj-composer-no-ref) { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .lj-timing-hero > section span { min-width: 76px; }
  .lj-timing-shot-head { grid-template-columns: 38px minmax(0,1fr) auto; }
  .lj-timing-shot-head > em { display: none; }
}

@media (max-width: 680px) {
  .lj-pack-hero-mark { display: none; }
  .lj-pack-hero h1 { font-size: 20px; }
  .lj-pack-hero p { max-width: 280px; font-size: 9px; }
  .lj-pack-tab { display: grid; justify-items: center; gap: 3px; text-align: center; }
  .lj-pack-tab b { font-size: 10px; }
  .lj-pack-layout { display: block; overflow: auto; }
  .lj-pack-sidebar { height: auto; display: block; border-right: 0; }
  .lj-pack-asset-list { display: flex; gap: 5px; overflow-x: auto; }
  .lj-pack-asset-item { min-width: 205px; }
  .lj-pack-detail { overflow: visible; padding: 12px; }
  .lj-pack-detail-head { align-items: flex-start; padding: 12px; }
  .lj-pack-detail-title p { display: none; }
  .lj-pack-score { min-width: 78px; }
  .lj-pack-levels > div { grid-template-columns: 1fr; }
  .lj-pack-slot-grid { grid-template-columns: 1fr; }
  .lj-pack-slot-media { height: 180px; }
  .lj-pack-outfit-create { width: 100%; margin-top: 10px; }
  .lj-pack-outfit-create input { flex: 1; min-width: 0; }
  .lj-pack-detail-head { flex-wrap: wrap; }
  .lj-pack-modal-footer small { display: none; }
  .lj-pack-floating-entry { right: 14px; bottom: 72px; }
  .lj-pack-image-dock { bottom: 72px; grid-template-columns: 32px minmax(0,1fr); }
  .lj-pack-image-dock > button { grid-column: 1/3; }
  .lj-pack-phase-nav > header > span { display: none; }
  .lj-pack-phase-create { grid-template-columns: 1fr; }
  .lj-pack-modal-footer > div { display: none; }
  .lj-pack-modal-footer > button.is-editing { margin-left: 0; flex: 1; }
  .lj-composer > header,.lj-timing-hero { min-height: 88px; padding: 15px; }
  .lj-composer > header h2,.lj-timing-hero h2 { font-size: 17px; }
  .lj-composer > header p,.lj-timing-hero p { display: none; }
  .lj-composer-grid { display: block; min-height: 0; overflow: auto; }
  .lj-composer-grid > aside,.lj-composer-grid > main { overflow: visible; padding: 10px; border-right: 0; }
  .lj-composer-grid > main { padding-top: 0; display: block; }
  .lj-composer-prompt { min-height: 0; display: block; overflow: visible; }
  .lj-composer-prompt textarea { min-height: 240px; resize: vertical; }
  .lj-composer-refs > div:not(.lj-composer-no-ref) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lj-composer > footer > div { display: none; }
  .lj-composer > footer button { flex: 1; }
  .lj-timing-hero > section { display: none; }
  .lj-timing-modal > main { padding: 10px 10px 22px; }
  .lj-timing-summary { grid-template-columns: repeat(2,1fr); }
  .lj-animatic { grid-template-columns: 1fr; }
  .lj-animatic-frame { min-height: 180px; }
  .lj-timing-timeline > header { align-items: center; }
  .lj-timing-timeline > header > section > span { display: none; }
  .lj-timing-shot-head { grid-template-columns: 34px minmax(0,1fr); }
  .lj-timing-number { width: 32px; height: 32px; }
  .lj-timing-shot-head > section { grid-column: 1/3; justify-content: space-around; width: 100%; padding-top: 7px; border-top: 1px solid #eceef3; }
  .lj-timing-contract { grid-template-columns: 1fr auto; }
  .lj-timing-contract > p { grid-column: 1/3; }
  .lj-cut-candidates > section { grid-template-columns: 23px minmax(0,1fr) auto; }
  .lj-cut-candidates > section > strong { display: none; }
  .lj-cut-candidates button { grid-column: 2/4; }
  .lj-cut-actions > button.is-ai { width: 100%; justify-content: center; }
  .lj-timing-modal > footer > div { display: none; }
  .lj-timing-modal > footer button { flex: 1; }
}

/* v22：作品库生图结果的任务级确认回填。独立于会被媒体侧栏迁移的通用操作行。 */
.lj-pack-result-commit-row {
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.lj-pack-result-commit {
  min-height: 34px;
  max-width: min(100%, 420px);
  padding: 0 14px;
  border: 1px solid #5f55dd;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #6b5ce7, #397ee8);
  box-shadow: 0 8px 20px rgba(75, 86, 211, .18);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
}
.lj-pack-result-commit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(75, 86, 211, .26);
}
.lj-pack-result-commit:disabled { cursor: default; opacity: .82; }
.lj-pack-result-commit.is-saved {
  border-color: #20a875;
  background: linear-gradient(135deg, #22ad78, #159767);
  box-shadow: 0 8px 20px rgba(28, 160, 111, .18);
}
.lj-pack-result-commit.is-error {
  border-color: #cf5a62;
  background: linear-gradient(135deg, #d8666d, #bd434d);
}
@media (max-width: 680px) {
  .lj-pack-result-commit-row { width: 100%; }
  .lj-pack-result-commit { width: 100%; max-width: none; }
}
/* Scoped non-destructive material revision dialog. */
.lj-pack-result-commit-row{display:flex;flex-wrap:wrap;gap:8px}.lj-pack-result-revise{border:1px solid #6366f1;border-radius:8px;padding:8px 12px;background:transparent;color:inherit;cursor:pointer}
.lj-material-revision{position:fixed;inset:0;z-index:2147483000;background:#0009;display:flex;align-items:center;justify-content:center;padding:16px}.lj-material-revision>section{background:#fff;color:#182033;width:min(600px,100%);max-height:90dvh;overflow:auto;border-radius:16px;padding:20px;box-shadow:0 20px 80px #0005}.lj-material-revision header{display:flex;align-items:center;justify-content:space-between}.lj-material-revision h3{margin:0}.lj-material-revision img{display:block;max-width:100%;max-height:200px;margin:12px auto;object-fit:contain}.lj-material-revision label{display:block;margin:12px 0}.lj-material-revision textarea,.lj-material-revision select{display:block;width:100%;box-sizing:border-box;margin-top:8px;padding:10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#182033}.lj-material-revision textarea{min-height:100px;resize:vertical}.lj-material-revision button{border:0;border-radius:8px;padding:10px 14px;background:#4f46e5;color:white;cursor:pointer}.lj-material-revision button:disabled{opacity:.6}.lj-material-revision small{display:block;color:#596579;line-height:1.6}.lj-material-revision [data-error]{color:#b91c1c}.lj-material-revision footer{display:flex;justify-content:flex-end}

/* Local edit dock v10: keep status compact and make the only required action obvious. */
.lj-pack-image-dock .lj-pack-image-actions { min-width: max-content; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.lj-pack-image-dock .lj-pack-image-actions button { min-width: 126px; height: 40px; padding: 0 16px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.lj-pack-image-dock .lj-pack-image-actions .lj-pack-region-primary { border-color: rgba(170,156,255,.72); background: linear-gradient(120deg,#7259e8,#3e82f4); box-shadow: 0 8px 20px rgba(68,91,221,.32); }
.lj-pack-image-dock .lj-pack-image-actions .lj-pack-region-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.lj-pack-image-dock .lj-pack-image-actions .lj-pack-region-primary:focus-visible { outline: 3px solid rgba(173,213,255,.9); outline-offset: 2px; }
.lj-pack-image-dock .lj-pack-image-actions .lj-pack-region-primary.is-error { color: #ffd4d8; border-color: rgba(255,148,160,.5); background: rgba(174,46,64,.35); box-shadow: none; }
@media (max-width: 640px) {
  .lj-pack-image-dock { bottom: 10px; width: calc(100vw - 20px); grid-template-columns: 36px minmax(0,1fr); padding: 10px; }
  .lj-pack-image-dock .lj-pack-image-actions { grid-column: 1 / -1; width: 100%; }
  .lj-pack-image-dock .lj-pack-image-actions button { width: 100%; min-height: 44px; }
}
