/* Site dialogs, confirm boxes and notices (tc-dialogs.js) — moved out of the script on 21 Nov 2026 so the
   old-browser / low-RAM rules (tools/css_compat.py) cover it too. */
.tcd-stack{position:fixed;z-index:2147483000;left:50%;top: calc(0px + 70px); top:calc(env(safe-area-inset-top,0px) + 70px);transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;width: calc(100vw - 24px); width:min(420px,calc(100vw - 24px));pointer-events:none}
@media (min-width:900px) {
  .tcd-stack{left:auto;right:24px;top:auto;bottom:104px;transform:none;width:380px;flex-direction:column-reverse}
}
.tcd-note{pointer-events:auto;position:relative;display:flex;align-items:center;gap:12px;padding:12px 14px 14px 12px;border-radius:16px;background:rgba(22,24,23,.92);color:#f3f5f4;border:1px solid rgba(255,255,255,.1);box-shadow: 0 2px 6px rgba(0,0,0,0.35); font:500 14.5px/1.4 inherit;overflow:hidden;cursor:pointer;opacity:0;transform:translateY(-10px) scale(.98);transition:opacity .22s ease,transform .26s cubic-bezier(.2,.9,.3,1.2)}
@media (min-width:900px) {
  .tcd-note{transform:translateY(10px) scale(.98)}
}
.tcd-note.is-in{opacity:1;transform:none}
.tcd-note.is-out{opacity:0;transform:translateY(-6px) scale(.98)}
.tcd-note-ic{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;color:#0c0f0d;background:var(--tcd-c)}
.tcd-note-ic svg{width:18px;height:18px}
.tcd-note-t{flex:1;min-width:0;overflow-wrap:anywhere;text-align:left}
.tcd-note-bar{position:absolute;left:0;bottom:0;height:3px;width:100%;background:var(--tcd-c);transform-origin:left;opacity:.85}
.tcd-note.is-success,.tcd-box.is-success{--tcd-c:#39ff6a}
.tcd-note.is-error,.tcd-box.is-error{--tcd-c:#ff5f57}
.tcd-note.is-warning,.tcd-box.is-warning{--tcd-c:#ffbe3c}
.tcd-note.is-info,.tcd-box.is-info{--tcd-c:#5ac8fa}
.tcd-box.is-question{--tcd-c:#39ff6a}
.tcd-veil{position:fixed;top: 0; right: 0; bottom: 0; left: 0; inset:0;z-index:2147483100;display:flex;align-items:flex-end;justify-content:center;background: rgba(3, 5, 4, 0.9);opacity:0;transition:opacity .2s ease}
@media (min-width:640px) {
  .tcd-veil{align-items:center;padding:24px}
}
.tcd-veil.is-in{opacity:1}
.tcd-box{position:relative;width:100%;max-width:460px;max-height: 86vh; max-height:min(86vh,640px);display:flex;flex-direction:column;background:linear-gradient(180deg,rgba(34,37,35,.98),rgba(20,22,21,.98));color:#f3f5f4;border:1px solid rgba(255,255,255,.1);border-bottom:0;border-radius:24px 24px 0 0;box-shadow: 0 2px 6px rgba(0,0,0,0.35); padding: 26px 22px calc(18px + 0px); padding:26px 22px calc(18px + env(safe-area-inset-bottom,0px));transform:translateY(40px);transition:transform .3s cubic-bezier(.2,.9,.3,1);outline:none;font-family:inherit}
@media (min-width:640px) {
  .tcd-box{border-radius:22px;border-bottom:1px solid rgba(255,255,255,.1);transform:translateY(14px) scale(.97);padding:28px 26px 22px;box-shadow: 0 2px 6px rgba(0,0,0,0.35); }
}
.tcd-veil.is-in .tcd-box{transform:none}
.tcd-box::before{content:"";position:absolute;left:50%;top:9px;width:40px;height:4px;margin-left:-20px;border-radius:4px;background:rgba(255,255,255,.18)}
@media (min-width:640px) {
  .tcd-box::before{display:none}
}
.tcd-box::after{content:"";position:absolute;top: 0; right: 0; bottom: 0; left: 0; inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(120% 60% at 50% -10%,color-mix(in srgb,var(--tcd-c) 22%,transparent),transparent 60%)}
.tcd-ic{position:relative;z-index:1;align-self:center;display:grid;place-items:center;width:58px;height:58px;border-radius:50%;color:var(--tcd-c);background:color-mix(in srgb,var(--tcd-c) 14%,transparent);box-shadow:0 0 0 7px color-mix(in srgb,var(--tcd-c) 7%,transparent);margin-bottom:14px}
.tcd-ic svg{width:30px;height:30px}
.tcd-title{position:relative;z-index:1;margin:0 0 8px;text-align:center;font-size:18.5px;font-weight:700;letter-spacing:.2px;line-height:1.3;overflow-wrap:anywhere}
.tcd-text{position:relative;z-index:1;margin:0;text-align:center;color:rgba(243,245,244,.74);font-size:14.5px;line-height:1.55;overflow-y:auto;overflow-wrap:anywhere;white-space:pre-line;max-height:46vh;padding:0 2px;-webkit-overflow-scrolling:touch}
.tcd-text.is-long{text-align:left}
.tcd-acts{position:relative;z-index:1;display:flex;gap:10px;margin-top:22px}
.tcd-btn{flex:1;min-height:48px;border-radius:14px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#f3f5f4;font:700 15px/1 inherit;letter-spacing:.3px;cursor:pointer;transition: transform .12s ease;}
.tcd-btn:hover{background:rgba(255,255,255,.1)}
.tcd-btn:active{transform:scale(.97)}
.tcd-btn:focus-visible{outline:2px solid var(--tcd-c);outline-offset:2px}
.tcd-btn.is-main{border-color:transparent;background:linear-gradient(135deg,#39ff6a,#1fcf55);color:#06210f}
.tcd-btn.is-main:hover{filter:brightness(1.06)}
.tcd-btn.is-danger{border-color:transparent;background:linear-gradient(135deg,#ff6a5f,#e5483d);color:#fff}
@media (prefers-reduced-motion:reduce) {
  .tcd-note,.tcd-veil,.tcd-box{transition:none!important}
}
#notice-box,#confirm,#confirm2{display:none!important}

/* compat:rich:start — capable devices only (html.tc-rich, set in the head): glass blur, big soft shadows,
   filters. Weak phones and old browsers use the lighter look in the rules above. */
.tc-rich .tcd-note { box-shadow: 0 14px 40px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.06); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.tc-rich .tcd-veil { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); background: rgba(3,5,4,.62); }
.tc-rich .tcd-box { box-shadow: 0 -10px 50px rgba(0,0,0,.5); }
@media (min-width:640px) {
  .tc-rich .tcd-box { box-shadow: 0 30px 80px rgba(0,0,0,.6); }
}
/* compat:rich:end */

/* compat:no-flexgap:start — rebuilt by tools/css_compat.py: spacing for engines without flex gap
   (html.no-flexgap, set in the head). Edit the gap in the rule above, then run the tool. */
.no-flexgap .tcd-stack > :not(:last-child) { margin-bottom: 8px; }
.no-flexgap .tcd-note > :not(:last-child) { margin-right: 12px; }
.no-flexgap .tcd-acts > :not(:last-child) { margin-right: 10px; }
/* compat:no-flexgap:end */
