.hero { padding-top: 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { padding-left: 28px; position: relative; margin: 6px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand); font-weight: 700; }
.center { text-align: center; }

.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 230px; border: 2px dashed #b9cfc7; border-radius: 12px; background: #f6fbf9;
  cursor: pointer; padding: 20px; font-weight: 400; transition: background .15s, border-color .15s;
}
.drop:hover, .drop.over { background: var(--brand-soft); border-color: var(--brand); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop svg { width: 46px; height: 46px; color: var(--brand); }
.drop b { font-size: 18px; }
.drop span { color: var(--muted); font-size: 15px; }
.status { display: flex; gap: 10px; align-items: center; margin-top: 14px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { margin-top: 14px; background: #fdecec; border: 1px solid #f2c2c2; color: #8a1c1c; padding: 10px 12px; border-radius: 9px; font-size: 15px; }
.error-inline { color: #8a1c1c; }

.banner { padding: 10px 16px; text-align: center; font-size: 15px; }
.banner.test { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); }
.banner.paid { background: var(--brand-soft); border-bottom: 1px solid #bfdcd2; }

.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.field { margin: 14px 0; display: flex; flex-direction: column; gap: 6px; }
.field.two { flex-direction: row; gap: 12px; }
.field.two > div { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field input, .field select { width: 100%; }
.check { margin: 12px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.unlock { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.unlock .steps li { margin-bottom: 16px; }
.unlock .btn { min-height: 40px; padding: 8px 16px; margin: 2px 0 4px; }
.unlock a.disabled { pointer-events: none; opacity: .5; }
.key-row { display: flex; gap: 8px; margin-top: 6px; }
.key-row input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
#unlockMsg { margin-top: 6px; font-size: 14px; }
#unlockMsg.ok { color: var(--brand); font-weight: 600; }
#unlockMsg.bad { color: #8a1c1c; }
.progress { margin-top: 20px; }
.bar { height: 10px; border-radius: 6px; background: #ece9e2; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.progress-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 15px; }
.linkish { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }

.preview-card { padding: 0; overflow: hidden; }
.preview-head { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat-preview { background: #f3f1ec; padding: 14px; max-height: 640px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.cp-day { align-self: center; background: #e9ecee; color: var(--muted); font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 99px; margin: 8px 0 4px; }
.cp-sys { align-self: center; background: #ebe8e1; color: var(--muted); font-size: 12px; padding: 4px 10px; border-radius: 8px; max-width: 85%; text-align: center; white-space: pre-wrap; }
.cp-bubble { align-self: flex-start; max-width: 78%; background: #fff; border: 1px solid #e2dfd8; border-radius: 10px; padding: 6px 9px 4px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.cp-bubble.me { align-self: flex-end; background: #def1ea; border-color: #c4e1d6; }
.cp-name { font-weight: 700; font-size: 12px; color: var(--brand); }
.cp-text { white-space: pre-wrap; }
.cp-text.muted, .cp-att { color: var(--muted); font-style: italic; }
.cp-att { font-size: 13px; }
.cp-time { text-align: right; color: #999; font-size: 11px; }
.cp-img { display: block; max-width: 100%; max-height: 260px; border-radius: 6px; margin: 2px 0; }
.cp-img.sticker { max-width: 90px; }
.cp-more { align-self: center; color: var(--muted); font-size: 13px; margin: 10px 0; }

@media (max-width: 860px) {
  .hero-grid, .result-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
  .drop { min-height: 180px; }
}
