* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; background: linear-gradient(160deg, #0b1220, #111827 60%, #1f2937); color: #111827; min-height: 100vh; }
.shell { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; }
.top { display: flex; align-items: center; gap: 14px; color: #e5e7eb; margin-bottom: 18px; }
.top .logo { height: 44px; width: auto; }
.top .sub { font-size: 14px; opacity: .75; border-left: 1px solid rgba(255,255,255,.25); padding-left: 14px; }
.card { background: #fff; border-radius: 16px; padding: 28px 26px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
h1 { font-size: 24px; margin: 0 0 8px; }
.hint { color: #4b5563; font-size: 14px; margin: 0 0 18px; }
.tiny { color: #6b7280; font-size: 12px; margin-top: 18px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; color: #1f2937; }
label small, .q small { font-weight: 400; color: #6b7280; }
input:not([type=radio]):not([type=checkbox]):not([type=color]), textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 15px; font-family: inherit;
}
input:focus, textarea:focus { outline: none; border-color: #c9a84c; box-shadow: 0 0 0 3px rgba(201,168,76,.25); }
input[type=color] { display: block; margin-top: 6px; width: 70px; height: 40px; border: 1px solid #d1d5db; border-radius: 8px; padding: 2px; }
.q { margin-bottom: 16px; }
.q > span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; padding: 11px 13px; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.choice:hover { border-color: #c9a84c; }
.choice input { margin-top: 3px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.checks label { font-weight: 500; margin: 0; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 8px; display: flex; gap: 8px; align-items: center; }
.row { display: flex; gap: 24px; }
.dots { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 20px; flex-wrap: wrap; }
.dots li { flex: 1; min-width: 70px; text-align: center; font-size: 12px; padding: 6px 4px; border-radius: 999px; background: #f3f4f6; color: #6b7280; }
.dots li.on { background: #111827; color: #fff; font-weight: 600; }
.dots li.done { background: #fef3c7; color: #92400e; }
.nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.nav .err { flex: 1; color: #b91c1c; font-size: 13px; }
button { border: 0; border-radius: 999px; padding: 12px 22px; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
button.primary { background: #c9a84c; color: #111; }
button.primary:disabled { opacity: .6; cursor: default; }
button.ghost { background: #f3f4f6; color: #111; }
.review { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 14px; margin: 0 0 16px; }
.review dt { color: #6b7280; }
.review dd { margin: 0; word-break: break-word; }
.progress { list-style: none; padding: 0; margin: 18px 0; }
.progress li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 15px; color: #9ca3af; }
.progress li .ic { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; background: #f3f4f6; flex: none; }
.progress li.done { color: #111827; }
.progress li.done .ic { background: #dcfce7; color: #166534; }
.progress li.active { color: #111827; font-weight: 700; }
.progress li.active .ic { background: #fef3c7; animation: pulse 1.2s ease-in-out infinite; }
.progress li.failed { color: #b91c1c; }
.progress li.failed .ic { background: #fee2e2; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.result { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 16px 18px; }
.result a.btn { display: inline-block; background: #111827; color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 999px; margin: 6px 8px 6px 0; font-weight: 600; font-size: 14px; }
.result table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.result td, .result th { text-align: left; padding: 6px; border-bottom: 1px solid #d1fae5; word-break: break-all; }
.foot { text-align: center; color: #9ca3af; font-size: 12px; margin-top: 18px; }
.foot a { color: #d1d5db; }
@media (max-width: 560px) { .card { padding: 22px 16px; } .review { grid-template-columns: 1fr; } .review dd { margin-bottom: 6px; } }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
select { background: #fff; }
.note { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #334155; margin: 0 0 14px; line-height: 1.5; }
.note div { margin-top: 8px; }
.network { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.imp { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.imp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.imp-head .t { font-weight: 700; }
.imp-head .h { color: #6b7280; font-size: 12px; font-weight: 400; display: block; }
.imp-head input[type=file] { font-size: 13px; }
.imp-status { font-size: 13px; margin-top: 8px; }
.imp-status.ok { color: #166534; } .imp-status.bad { color: #b91c1c; }
.map { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.map th, .map td { text-align: left; padding: 5px 6px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.map td.sample { color: #6b7280; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map select { margin: 0; padding: 6px 8px; font-size: 13px; border-radius: 8px; width: 100%; }
.map tr.blocked td { color: #b91c1c; }
.map tr.dup select { border-color: #f59e0b; }
.preview { overflow-x: auto; margin-top: 10px; }
.preview table { border-collapse: collapse; font-size: 12px; }
.preview th, .preview td { border: 1px solid #e5e7eb; padding: 4px 6px; white-space: nowrap; }
.preview th { background: #f9fafb; }
@media (max-width: 560px) { .row3 { grid-template-columns: 1fr; } }
.plan { border: 2px solid #c9a84c; border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; background: linear-gradient(180deg, #fffdf5, #fff); }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan-name { font-size: 20px; font-weight: 800; }
.plan-price { font-size: 15px; color: #374151; }
.plan-price b { font-size: 28px; color: #111; }
.plan-trial { display: inline-block; background: #dcfce7; color: #166534; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; margin: 6px 0 4px; }
.plan ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: #374151; }
.card-box { min-height: 90px; }
