/* ===== Публичный список: оболочка поверх темы — подвал «Сделай свой», кнопка «Поделиться», подсказки, 404 ===== */
.card.mine { outline: 3px dashed rgba(255, 255, 255, .0); }
[data-gift]:disabled { cursor: default; opacity: .75; }
[data-gift].busy { opacity: .6; pointer-events: none; }
.ktd-empty { text-align: center; font: 700 18px "Manrope", sans-serif; padding: 30px 16px; margin: 0; color: inherit; opacity: .8; }

.ktd-foot { position: relative; z-index: 5; padding: 40px 16px calc(110px + env(safe-area-inset-bottom)); display: grid; gap: 18px; justify-items: center; font-family: "Manrope", sans-serif; }
.ktd-cta {
  width: min(560px, 100%); display: grid; gap: 6px; text-align: center; padding: 22px 20px;
  background: #fff6e3; color: #0e0b2e; border: 3px solid #0e0b2e; border-radius: 22px; box-shadow: 6px 6px 0 #2530ff;
}
.ktd-cta b { font: 800 19px/1.2 "Unbounded", sans-serif; }
.ktd-cta span { font-size: 14px; color: #4a4560; }
.ktd-cta a { justify-self: center; margin-top: 8px; background: #2530ff; color: #fff; text-decoration: none; font-weight: 800; padding: 12px 18px; border-radius: 999px; border: 2px solid #0e0b2e; }
.ktd-cta a:hover { background: #0e0b2e; }
.ktd-legal { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12px; text-align: center; }
.ktd-legal span, .ktd-legal button { color: #fff; opacity: .7; background: rgba(0, 0, 0, .35); padding: 4px 10px; border-radius: 999px; }
.ktd-docs { display: flex; gap: 6px; justify-content: center; font-size: 11px; }
.ktd-docs a { color: #fff; opacity: .6; background: rgba(0, 0, 0, .3); padding: 3px 9px; border-radius: 999px; text-decoration: none; }
.ktd-report { border: 0; font: inherit; text-decoration: underline; cursor: pointer; }

.ktd-share-btn {
  position: fixed; z-index: 100; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  border: 3px solid #0e0b2e; background: #d4ff3a; color: #0e0b2e; font: 800 15px "Manrope", sans-serif;
  padding: 12px 18px; border-radius: 999px; box-shadow: 4px 4px 0 #0e0b2e; cursor: pointer;
}
.ktd-share-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #0e0b2e; }
.ktd-veil { position: fixed; inset: 0; z-index: 110; background: rgba(8, 6, 30, .5); opacity: 0; pointer-events: none; transition: opacity .2s; }
.ktd-share {
  position: fixed; z-index: 120; left: 50%; top: 50%; width: min(400px, calc(100% - 32px)); transform: translate(-50%, -46%) scale(.96);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  background: #fff6e3; color: #0e0b2e; border: 3px solid #0e0b2e; border-radius: 24px; box-shadow: 8px 8px 0 #2530ff; padding: 18px; font-family: "Manrope", sans-serif;
}
body.ktd-sharing .ktd-veil { opacity: 1; pointer-events: auto; }
body.ktd-sharing .ktd-share { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.ktd-share-h { display: flex; justify-content: space-between; align-items: center; font: 800 16px "Unbounded", sans-serif; }
.ktd-x { border: 0; background: none; font-size: 24px; cursor: pointer; color: inherit; }
.ktd-link { display: flex; gap: 6px; margin: 14px 0 10px; }
.ktd-link input { flex: 1; min-width: 0; font: 600 14px "Manrope", sans-serif; padding: 10px 12px; border: 2px solid #0e0b2e; border-radius: 12px; background: #fff; }
.ktd-copy { border: 2px solid #0e0b2e; background: #2530ff; color: #fff; font-weight: 800; border-radius: 12px; padding: 0 12px; cursor: pointer; white-space: nowrap; }
.ktd-nets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.ktd-nets a { text-align: center; text-decoration: none; color: #0e0b2e; font-weight: 800; font-size: 13px; padding: 10px 4px; border: 2px solid #0e0b2e; border-radius: 12px; background: #fff; }
.ktd-nets a:hover { background: #d4ff3a; }
.ktd-qr { width: 180px; margin: 14px auto 6px; background: #fff; border-radius: 12px; padding: 6px; }
.ktd-qr svg { display: block; width: 100%; height: auto; }
.ktd-qr-dl { display: block; text-align: center; font-weight: 700; font-size: 13px; color: #2530ff; }

.ktd-toast {
  position: fixed; z-index: 130; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  width: max-content; max-width: calc(100% - 32px); background: #0e0b2e; color: #fff; font: 700 14px/1.35 "Manrope", sans-serif;
  padding: 12px 16px; border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; text-align: center;
}
.ktd-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 404 */
body.nf { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #2530ff; color: #fff6e3; font-family: "Manrope", sans-serif; text-align: center; padding: 24px; }
.nf h1 { font: 800 clamp(28px, 6vw, 44px)/1.1 "Unbounded", sans-serif; margin: 10px 0; }
.nf p { max-width: 360px; margin: 0 auto 22px; }
.nf-gift { font-size: 72px; }
.nf-btn { display: inline-block; background: #d4ff3a; color: #0e0b2e; font-weight: 800; padding: 13px 20px; border-radius: 999px; text-decoration: none; border: 3px solid #0e0b2e; }

/* превью в кабинете */
.ktd-preview .ktd-share-btn, .ktd-example .ktd-share-btn, .ktd-example .ktd-report { display: none; }
/* свой список в кабинете: подвал «Сделай свой» и «Пожаловаться» хозяину ни к чему; подарок из уведомления мигает рамкой */
.ktd-own .ktd-cta, .ktd-own .ktd-report, .ktd-own .ktd-share-btn { display: none; }
/* панель хозяина на настоящей странице списка — как в кабинете */
.ktd-ownbar { position: sticky; top: 0; z-index: 95; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: #fff6e3; border-bottom: 3px solid #0e0b2e; color: #0e0b2e; font-family: "Manrope", system-ui, sans-serif; }
.ktd-ob-back { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid #0e0b2e; border-radius: 50%; background: #fff; color: #0e0b2e; font: 800 22px/1 "Manrope", sans-serif; text-decoration: none; box-shadow: 2px 2px 0 #0e0b2e; }
.ktd-ob-t { flex: 1; min-width: 0; display: grid; }
.ktd-ob-t b { font: 800 17px/1.2 "Unbounded", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ktd-ob-t span { font-size: 13px; font-weight: 700; color: #6b6890; }
.ktd-ob-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid #0e0b2e; border-radius: 999px; padding: 7px 14px; font: 800 14px "Manrope", sans-serif; color: #0e0b2e; background: #fff; text-decoration: none; box-shadow: 2px 2px 0 #0e0b2e; white-space: nowrap; cursor: pointer; }
.ktd-ob-share { background: #d4ff3a; }
@media (max-width: 560px) { .ktd-ob-t { display: none; } .ktd-ownbar { gap: 8px; } .ktd-ob-btn { flex: 1; padding: 9px 10px; } }
.ktd-hl { position: absolute; z-index: 90; pointer-events: none; border: 5px solid #ffcc00; border-radius: 14px; box-shadow: 0 0 0 3px rgba(14, 11, 46, .55), 0 0 24px rgba(255, 204, 0, .8); animation: ktd-hl-pulse 1s ease-in-out 3 forwards; }
@keyframes ktd-hl-pulse { 50% { opacity: .25; } 100% { opacity: 0; } }
/* «можно несколько»: вторая строка на кнопке подарка */
[data-gift] .ktd-mx { display: block; margin-top: 3px; font: 600 11px/1.2 "Manrope", system-ui, sans-serif; letter-spacing: 0; text-transform: none; opacity: .8; white-space: normal; }
/* «вскладчину»: полоска «обещано N из цены» на кнопке и окошко с суммой */
[data-gift] .ktd-pl > i { display: block; height: 5px; margin-top: 4px; border-radius: 9px; background: rgba(127, 127, 127, .35); overflow: hidden; }
[data-gift] .ktd-pl > i > i { display: block; height: 100%; border-radius: 9px; background: currentColor; }
body.ktd-pooling .ktd-veil { opacity: 1; pointer-events: auto; }
.ktd-pd {
  position: fixed; z-index: 120; left: 50%; top: 50%; width: min(420px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; transform: translate(-50%, -46%) scale(.96);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  background: #fff6e3; color: #0e0b2e; border: 3px solid #0e0b2e; border-radius: 24px; box-shadow: 8px 8px 0 #2530ff; padding: 18px; font-family: "Manrope", sans-serif;
}
body.ktd-pooling .ktd-pd { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.ktd-pd-t { margin: 10px 0 8px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.ktd-pd-bar { height: 10px; border: 2px solid #0e0b2e; border-radius: 9px; background: #fff; overflow: hidden; }
.ktd-pd-bar i { display: block; height: 100%; background: #2530ff; }
.ktd-pd-s { margin: 6px 0 12px; font-size: 14px; }
.ktd-pd-l { display: block; font-weight: 800; font-size: 13px; margin-top: 4px; }
.ktd-pd .ktd-link { margin: 6px 0 8px; }
.ktd-pd .ktd-copy { padding: 0 16px; }
.ktd-pd-c { display: flex; flex-wrap: wrap; gap: 6px; }
.ktd-pd-c button { border: 2px solid #0e0b2e; background: #fff; color: #0e0b2e; font: 700 13px "Manrope", sans-serif; padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.ktd-pd-c button:hover { background: #d4ff3a; }
.ktd-pd-cancel { display: block; margin: 12px 0 0; border: 0; background: none; color: #c0262d; font: 700 14px "Manrope", sans-serif; text-decoration: underline; cursor: pointer; padding: 0; }
.ktd-pd-go { display: block; margin-top: 14px; text-align: center; background: #d4ff3a; color: #0e0b2e; text-decoration: none; font-weight: 800; padding: 12px; border: 2px solid #0e0b2e; border-radius: 14px; }
.ktd-pd-n { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: #4a4560; }
