/* P7a import wizard — deliberately self-contained so it also works before any game asset exists. */
.ccz-import[hidden] { display: none !important; }
.ccz-import {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: radial-gradient(circle at 50% 20%, #2a2418 0, #0b0a08 62%, #000 100%);
  color: #efe4c8; font: 15px/1.65 "Noto Serif SC", "Songti SC", "SimSun", serif; overflow: auto;
}
.ccz-import.drag .ccz-import-card { outline: 2px dashed #d8b45c; outline-offset: 6px; }
.ccz-import-card {
  position: relative; width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  padding: 30px 34px 24px; border: 1px solid #6d5830; border-radius: 10px;
  background: linear-gradient(180deg, rgba(43,36,24,.98), rgba(24,21,15,.99));
  box-shadow: 0 22px 70px #000, inset 0 0 0 1px rgba(255,225,150,.08);
}
.ccz-import-x { position: absolute; right: 12px; top: 10px; background: none; border: 0; color: #cbb98c; font-size: 26px; cursor: pointer; }
.ccz-import-kicker { color: #b99a55; letter-spacing: .18em; font-size: 11px; }
.ccz-import h1 { margin: 6px 0 12px; font-size: 25px; color: #f3d792; font-weight: 600; letter-spacing: .03em; }
.ccz-import-lead { margin: 0 0 14px; color: #e3d8bf; }
.ccz-import code { color: #ffdf9a; background: #0000004d; padding: 1px 5px; border-radius: 3px; }
.ccz-import-note { border-left: 3px solid #8c7438; background: #ffffff08; padding: 10px 14px; margin: 0 0 16px; color: #d8ccb2; }
.ccz-import-warn { border: 1px solid #a56a36; background: #5b2d13; color: #ffd9a8; padding: 8px 12px; border-radius: 4px; margin: 0 0 14px; }
.ccz-import-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.ccz-import button {
  font: inherit; cursor: pointer; border-radius: 5px; padding: 8px 16px; color: #f6e7c2;
  border: 1px solid #7a6435; background: linear-gradient(#4b4028, #2c2618);
}
.ccz-import button:hover:not(:disabled) { border-color: #c7a75f; background: linear-gradient(#5b4d30, #342c1c); }
.ccz-import button.primary { background: linear-gradient(#8a6a2e, #5b421b); border-color: #c9a456; color: #fff3cf; font-weight: 600; }
.ccz-import button.secondary { opacity: .92; }
.ccz-import button:disabled { opacity: .45; cursor: default; }
.ccz-import button.link { border: 0; background: none; color: #c8ab6a; padding: 2px 4px; text-decoration: underline; }
.ccz-import-hint { color: #b8a98a; font-size: 13px; margin: 0 0 12px; }
.ccz-import-progress { margin: 14px 0 10px; border-top: 1px solid #3c3422; padding-top: 12px; }
.ccz-import-progress .row { display: flex; justify-content: space-between; gap: 16px; }
.ccz-import-progress progress { width: 100%; height: 12px; margin: 8px 0 6px; accent-color: #c8a454; }
.ccz-import-progress .detail { color: #a99a7c; font-size: 12px; min-height: 1.2em; overflow-wrap: anywhere; }
.ccz-import-error { border: 1px solid #9c3a2e; background: #3b1712; color: #ffd4cb; padding: 10px 14px; border-radius: 5px; margin: 8px 0; }
.ccz-import-error ul { margin: 6px 0 0 18px; padding: 0; }
.ccz-import-error .warn { color: #e6c78b; margin-top: 6px; font-size: 13px; }
.ccz-import-foot { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; border-top: 1px solid #3c3422; padding-top: 12px; color: #9e9073; font-size: 12px; }
/* P7b: import scope (full / slim), storage estimate and optional video conversion. */
.ccz-import-options { border: 1px solid #4b4027; border-radius: 6px; background: #00000030; padding: 10px 14px; margin: 0 0 14px; }
.ccz-import-options-title { color: #d8b45c; font-size: 12px; letter-spacing: .12em; margin-bottom: 6px; }
.ccz-import-check { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0; cursor: pointer; color: #e3d8bf; }
.ccz-import-check input { margin: 4px 0 0; width: 16px; height: 16px; accent-color: #c8a454; flex: none; }
.ccz-import-check span { flex: 1; }
.ccz-import-check b { color: #f3d792; }
.ccz-import-check small { display: block; color: #b8a98a; font-size: 12px; line-height: 1.35; }
.ccz-import-estimate { margin-top: 8px; padding-top: 7px; border-top: 1px solid #3c3422; color: #ffdf9a; }
.ccz-import-quota { color: #9e9073; font-size: 12px; line-height: 1.4; }
.ccz-import-quota.warn { color: #ffbd7a; }
.ccz-import-convert { border: 1px dashed #5a4a2c; border-radius: 6px; padding: 10px 12px; margin: 10px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ccz-import-convert[hidden] { display: none !important; }
.ccz-import-convert > div { flex: 1 1 100%; color: #d8ccb2; }
.ccz-import-convert small { display: block; color: #9e9073; font-size: 12px; }
.ccz-import-convert-status { color: #c8ab6a; font-size: 12px; }
@media (max-width: 560px) {
  .ccz-import { padding: 10px; align-items: flex-start; }
  .ccz-import-card { padding: 22px 18px 16px; }
  .ccz-import h1 { font-size: 21px; }
  .ccz-import-actions button { flex: 1 1 100%; }
  .ccz-import-check { padding: 4px 0; }
}
