:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --line: #e2e6ea;
  --line-soft: #eef1f4;
  --text: #16191d;
  --dim: #5f6874;
  --plus: #0b7a34;
  --minus: #c02a1e;
  --accent: #1a5fd0;
  --warn: #a35c00;
  --note-bg: #fff8e8;
  --note-flip-bg: #fdf0ee;
  --tint: #eef3fc;          
  --field-line: #cfd6dd;    
  --glass: rgba(255, 255, 255, .88);
  --alert-bg: #fffaf3;      
  --alert-line: #f0dfc6;
  --alert-head: #fcebd3;
  --alert-bar: #d9822b;
}




html.evening {
  color-scheme: dark;
  --bg: #07090c; --panel: #1a1f28; --line: #2c3444; --line-soft: #232a36;
  --text: #f1f4f8; --dim: #929cad; --plus: #3fd07f; --minus: #ff6b62;
  --accent: #f28c28; --warn: #f2b045;
  --note-bg: #202634; --note-flip-bg: #1f242e; --tint: #252c39; --field-line: #384255;
  --glass: rgba(26, 31, 40, .95);
  --alert-bg: #1d222c; --alert-line: #323b4c; --alert-head: #272f3d; --alert-bar: #f28c28;
}
html.evening .panel { box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px rgba(0, 0, 0, .45); }
html.evening .note { border-left-width: 4px; }
html.evening .side-right::-webkit-scrollbar-thumb { background: #333c4d; }
html.evening input:disabled { background: #141820; }
html.evening button:hover { background: #d9771a; }
html.evening .card.up { border-color: var(--line); background: #20262f; }
html.evening .card.down { border-color: var(--line); background: #20262f; }
html.evening .tfs button, html.evening .presets button { background: #202633; }
html.evening .tfs button:hover, html.evening .presets button:hover { background: #2a3242; }
html.evening .group { background: #1b202a; }
html.evening .help { background: #1d2330; }
html.evening .filter .mini { background: #1d2330; border-color: #333c4d; }
html.evening .pick-head { background: transparent; color: var(--plus); }
html.evening .dw-band { border-color: #3a3326; }
html.evening .pp-chip:hover { background: #2a3242; }
html.evening .pp-row:hover { background: #202633; border-color: #3a4456; }
html.evening #watchPanel .w-toggle { background: #202633; }
html.evening #watchPanel .w-toggle:hover { background: #2a3242; }
html.evening .go-bar button { background: linear-gradient(90deg, #e8741c, #f5a33a); color: #1a1208; }
html.evening .go-bar button:hover { background: linear-gradient(90deg, #d9681a, #ea9530); }
html.evening #cards .hint.burn { background: #1f242e; }
html.evening #cards .hint.burn span { color: #c3cad6; }
html.tone-anim, html.tone-anim * {
  transition: background-color .9s ease, border-color .9s ease, color .9s ease !important;
}
* { box-sizing: border-box; }


[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
header b { font-size: 17px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none;
         color: inherit; }
.brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.brand b { white-space: nowrap; }

.brand-txt { display: flex; flex-direction: column; line-height: 1.25; color: var(--text); }
.brand-txt i { font-style: normal; font-size: 11.5px; color: var(--dim); }
.brand-big { width: 84px; height: 84px; border-radius: 16px; display: block;
             margin: 0 auto 12px; }
header span { color: var(--dim); font-size: 13px; }



header .tag { color: var(--plus); font-weight: 600; padding: 5px 13px;
              border: 1.5px solid #e8862b; border-radius: 999px; line-height: 1.2; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  header .tag {
    background: linear-gradient(90deg, #0b7a34 0%, #16a34a 25%, #1a5fd0 50%,
                                #16a34a 75%, #0b7a34 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: tagWave 11s linear infinite;
  }
}
@keyframes tagWave {
  from { background-position: 0% 0; }
  to { background-position: 260% 0; }
}
@media (prefers-reduced-motion: reduce) {
  header .tag { animation: none; }
}


main { max-width: 1800px; margin: 0 auto; padding: 20px; }


.work { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 18px; align-items: start; }   
.side-left, .side-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }




@media (min-width: 1001px) {
  

  header { position: sticky; top: 0; z-index: 20; }
  main { padding-bottom: 0; scroll-margin-top: var(--hdr, 60px); }
  .work { height: calc(100vh - var(--hdr, 60px) - 40px); align-items: stretch; }
  

  #watchPanel { position: sticky; top: 0; z-index: 2;
                box-shadow: 0 6px 14px rgba(16, 24, 40, .07); }
  

  .side-left, .side-right { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  .side-left::-webkit-scrollbar, .side-right::-webkit-scrollbar { width: 6px; }
  .side-left::-webkit-scrollbar-thumb,
  .side-right::-webkit-scrollbar-thumb { background: #d3d9e0; border-radius: 3px; }
}
@media (max-width: 1000px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .side-left, .side-right { display: contents; }
  

  #watchPanel { order: -4; }
  #pairPanel { order: -3; }
  .side-left > .panel:first-child { order: -2; }
  

  #botPop, #botPanel { order: -2; }
  

  #botPop { position: fixed; top: 64px; left: 12px; right: 12px; z-index: 40; max-width: 420px; margin: 0 auto;
            max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
  #botPop .panel { padding-top: 14px; }
  #botPop .bot-pop-ask { padding: 16px 56px 0; font-size: 18px; font-weight: 700; text-align: center; color: var(--plus); }   
  #botPop .bot-pop-ask + .panel { padding-top: 10px; }
  #botPop .bot-pop-x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; margin: 0; border-radius: 50%;
                       background: rgba(120, 130, 145, .28); color: #fff; font-size: 16px; line-height: 34px; z-index: 2; }
  #botPop .bot-pop-x:hover { background: rgba(120, 130, 145, .45); }
  #botPop .bot-qr img { width: 132px; height: 132px; }
  #picksPanel { order: -5; }   
}


.go-bar { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

.go-bar button {
  margin-top: 8px; padding: 15px; font-size: 17px; font-weight: 700;
  background: var(--plus); letter-spacing: .01em;
  box-shadow: 0 6px 16px rgba(11, 122, 52, .22);
}
.go-bar button:hover { background: #0a6a2d; }
.go-bar button:disabled { background: var(--plus); }
header .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.vpnflag { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 4px; border: 1px solid var(--line);
           border-radius: 999px; background: var(--panel); color: var(--text); font-size: 13px; font-weight: 600;
           text-decoration: none; white-space: nowrap; }
.vpnflag img { display: block; width: 26px; height: 26px; border-radius: 8px; }
.vpnflag span { color: inherit; font-size: 13px; }
.vpnflag:hover { border-color: var(--accent); }
@media (max-width: 640px) { .vpnflag { padding: 3px; gap: 0; } .vpnflag span { display: none; } }


@media (max-width: 640px) {
  header { position: relative; }
  header .lang { position: absolute; top: 13px; right: 12px; margin: 0; }
  header .right { flex-basis: 100%; justify-content: flex-end; margin: 0; }
}
@media (max-width: 340px) { header b { font-size: 15px; } }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

.entry-block { margin-top: 22px; padding: 12px 12px 14px; border: 2px solid #16a34a; border-radius: 14px;
               background: rgba(22, 163, 74, .05); box-shadow: 0 0 0 3px rgba(22, 163, 74, .12), 0 6px 22px rgba(22, 163, 74, .16); }
#form .entry-block > h2.second, .entry-block > h2.second { margin-top: 0; }   
@media (max-width: 640px) { .entry-block { padding: 10px 10px 12px; } }

.lang { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.lang button { min-width: 38px; margin: 0; padding: 3px 9px; border: 0; border-radius: 999px; background: none;
  color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1.3; cursor: pointer; }
.lang button.on { background: var(--accent); color: #fff; }
.lang button:not(.on):hover { color: var(--text); }
.lang.float { position: fixed; top: 12px; right: 12px; z-index: 30; }
html.evening .lang { background: #202633; border-color: #3a4456; }
html.evening .lang button.on { color: #1a1208; }
header .to-right { margin-left: auto; }   
header .right span { color: var(--text); }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}


.panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 10px;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--text);
  font-weight: 700;
  border-left: 3px solid var(--accent);
  line-height: 1.2;
}


label {
  display: flex; align-items: flex-end; justify-content: center;
  min-height: 28px; margin: 8px 0 4px; text-align: center;
  font-size: 11.5px; font-weight: 600; color: var(--dim);
}


input[type="number"] { text-align: center; }


select#reinvest { text-align: center; text-align-last: center; }
input, select {
  width: 100%;
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--field-line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26, 95, 208, .12); }
input:disabled { background: #f2f4f6; color: var(--dim); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
button {
  width: 100%;
  margin-top: 16px;
  padding: 11px;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-weight: 600; font-family: inherit; font-size: 15px; line-height: 1;
  cursor: pointer;
}
button:hover { background: #164fae; }
button:disabled { opacity: .55; cursor: default; }
.hint { color: var(--dim); font-size: 12px; margin-top: 10px; }


.cards { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

.verdict { text-align: center; font-size: 15px; font-weight: 700; line-height: 1.35;
           margin: 2px 0 12px; }
.verdict.good { color: var(--plus); }
.verdict.bad { color: var(--minus); }
.verdict.mixed { color: var(--warn); }
.cards-top { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cards-rest { display: flex; flex-wrap: wrap; gap: 6px; }
.card {
  display: flex; align-items: baseline; gap: 6px;
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px;
  background: var(--panel); min-width: 0;
}


.card .k { color: var(--dim); font-size: 10.5px; white-space: nowrap; }
.card .v { font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.card.up { border-color: #9ed2b2; background: #f4fbf6; }
.card.down { border-color: #f0b6b0; background: #fdf6f5; }
.card.hero { flex-direction: column; align-items: center; gap: 1px; padding: 8px 18px; }
.card.hero .k { font-size: 11px; }
.card.hero .v { font-size: 19px; letter-spacing: -.01em; }
.plus { color: var(--plus); }
.minus { color: var(--minus); }
canvas { width: 100%; display: block; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 8px; border-bottom: 1px solid var(--line-soft); }
th:first-child, td:first-child { text-align: left; }
th {
  color: var(--dim);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--line);
}
tr:last-child td { border-bottom: 0; }
.note {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--warn);
  background: var(--note-bg);
  border-radius: 0 8px 8px 0;
}
.note.flip { border-color: var(--minus); background: var(--note-flip-bg); }
.err { color: var(--minus); margin-top: 12px; }
footer { color: var(--dim); font-size: 12px; padding: 24px 20px; text-align: center; }


.chart { width: 100%; height: 240px; background: var(--panel); border: 1px solid var(--line-soft);
         border-radius: 10px; overflow: hidden; }

.chart.tall { height: 460px; }   


.chart-legend { position: absolute; top: 8px; left: 10px; z-index: 3; pointer-events: none;
  padding: 3px 9px; border-radius: 6px; background: var(--glass); color: var(--text);
  font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: .01em; }
.chart-legend:empty { display: none; }

.chart-bignote { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 3; pointer-events: none;
  width: max-content; max-width: calc(100% - 230px); padding: 6px 16px; border-radius: 8px;
  
  background: var(--glass); color: var(--text); border: 2px solid #d9730d;
  font-size: 15px; font-weight: 600; line-height: 1.35; text-align: center; text-wrap: balance; }
html.evening .chart-bignote { border-color: #f28c28; }
.chart-bignote[hidden] { display: none; }
@media (max-width: 640px) { .chart-bignote { top: 40px; max-width: calc(100% - 24px); font-size: 11.5px; padding: 3px 8px; border-width: 1.5px; border-radius: 6px; } }
.chart.low { height: 170px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.chart-head h2 { margin: 0; }
.tfs { display: flex; gap: 4px; }
.tfs button {
  width: auto;
  margin: 0;
  padding: 5px 11px;
  background: #eef1f5;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 600; font-family: inherit; font-size: 12px; line-height: 1;
}
.tfs button:hover { background: #e3e8ef; }
.tfs button.on { background: var(--accent); color: #fff; border-color: var(--accent); }


.entry .chart-head { margin-bottom: 14px; }

.entry-modes { margin-bottom: 0; }
.entry-pane { margin-top: 10px; }
#modeTpl select { width: 100%; }
#modeOwn .group.plain { margin-top: 0; }
.entry-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.entry-tools select { width: auto; min-width: 230px; }
.cap-inline { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.cap-inline input { width: 72px; }
.group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fcfdfe;
}
.group + .or { margin: 10px 0; }
.or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: .05em;
  font-weight: 600;
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}
.group-head .why { color: var(--dim); font-size: 12px; }

.filter {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-top: 1px dashed var(--line-soft);
}
.filter:first-of-type { border-top: 0; }
.fld { display: flex; flex-direction: column; gap: 3px; }
.fld .cap {
  margin: 0;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
}
.fld select, .fld input { width: auto; padding: 7px 8px; font-size: 14px; }
.fld.num input { width: 76px; }
.fld.op select { min-width: 150px; }
.filter .sign { padding-bottom: 8px; color: var(--dim); }
button.ghost, button.drop, button.link {
  width: auto;
  margin: 0;
  padding: 7px 12px;
  background: var(--panel);
  border: 1px solid var(--field-line);
  color: var(--accent);
  font-weight: 600; font-family: inherit; font-size: 13px; line-height: 1;
  border-radius: 6px;
}
button.ghost:hover, button.drop:hover { background: var(--tint); }
button.drop { color: var(--dim); padding: 3px 8px; line-height: 1; font-size: 15px; }
button.link { border: 0; padding: 5px 0; background: none; }
.entry-add { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.entry-add .hint { margin: 0; }


body.single { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.gate { max-width: 420px; width: 100%; padding: 20px; }
.gate h1 { margin: 0 0 6px; font-size: 22px; }
.gate .lead { color: var(--dim); font-size: 14px; margin: 0 0 18px; }
.tglink { display: inline-block; margin-top: 12px; font-size: 13px; }


.q {
  width: 18px; height: 18px; margin: 0 0 0 6px; padding: 0;
  border: 1px solid var(--field-line); border-radius: 50%;
  background: var(--panel); color: var(--dim);
  font-weight: 600; font-family: inherit; font-size: 11px; line-height: 1; cursor: pointer; vertical-align: middle;
}
.q:hover { border-color: var(--accent); color: var(--accent); background: var(--panel); }
.q.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.help {
  margin: 0 0 12px; padding: 10px 12px;
  border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0;
  background: #f4f7fc; color: var(--dim); font-size: 13px;
}
.dim { color: var(--dim); font-size: 13px; }
.legend { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 12px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; margin-right: 2px; }
.legend .blue { background: #4c8dff; }
.legend .brown { background: #d0913a; }


.filter {
  position: relative; display: flex; flex-wrap: nowrap; gap: 5px; align-items: center;
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; background: var(--panel);
  margin-bottom: 6px;
}
.filter > * { min-width: 0; }
.filter .grow { flex: 1 1 74px; }
.filter .op { flex: 1 1 104px; }
.filter .val { flex: 0 1 62px; text-align: center; }
.filter select, .filter input { padding: 6px 7px; font-size: 13px; }
.filter .mini {
  flex: 0 0 auto; width: 28px; height: 30px; margin: 0; padding: 0;
  background: #f4f6f9; border: 1px solid #dde3ea; border-radius: 6px;
  color: var(--dim); font-family: inherit; font-size: 14px; line-height: 1; cursor: pointer;
}
.filter .mini:hover { border-color: var(--accent); color: var(--accent); background: var(--tint); }
.filter .drop { color: var(--minus); }
.pop {
  position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin-top: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px; box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
}
.pop .row { gap: 8px; }
.pop label { margin: 8px 0 3px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.pop .done { margin-top: 12px; padding: 8px; font-size: 13px; }

.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share .hint { margin: 0; }

textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--field-line); border-radius: 6px;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text);
  resize: vertical;
}
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26, 95, 208, .12); }

.presets { display: flex; gap: 6px; margin-bottom: 4px; }
.presets button {
  flex: 1; width: auto; margin: 0; padding: 7px 6px;
  background: #f1f4f8; border: 1px solid transparent; border-radius: 6px;
  color: var(--dim); font-weight: 600; font-family: inherit; font-size: 12px; line-height: 1;
}
.presets button:hover { background: #e3e9f2; color: var(--accent); }
.presets button.on { background: var(--accent); color: #fff; }

.years { margin-top: 6px; }
.years span { align-self: center; font-size: 12px; color: var(--dim); padding-right: 2px; }
.years button { flex: 1; padding: 6px 0; }
.pitch { margin: 0 0 16px; padding-left: 18px; color: var(--dim); font-size: 13px; }
.pitch li { margin-bottom: 6px; }

.pick { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.pick-head {
  display: inline-block; margin-bottom: 6px; padding: 3px 9px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase;
  background: #e7f5ec; color: #0b7a34;
}
.pick-body { font-size: 13px; }
.pick-num { font-size: 12px; color: var(--dim); margin: 4px 0 8px; }

#compare h3 { margin: 16px 0 8px; font-size: 13.5px; color: var(--text); font-weight: 700; }

tr.mine td { background: var(--tint); font-weight: 600; }


.bar {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.bar .fld { min-width: 150px; }
.bar .fld.grow { flex: 1 1 240px; }
.bar .fld select { width: 100%; }
.bar label { margin: 0 0 4px; }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bar-right .hint { margin: 0; }


.empty { color: var(--dim); font-size: 13px; padding: 22px 0; }
body.has-run .empty { display: none; }


.chart-empty { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  padding: 0 24px; text-align: center; pointer-events: none; z-index: 1; }
.chart-notes { min-height: 24px; }


#price { min-height: 460px; }
body:not(.has-run) #equity { display: none; }


body:not(.has-run) #multiGo { display: none; }


h2.second { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }


#form h2, #picksPanel h2 { min-height: 40px; margin: 0 0 14px; padding: 8px 12px 8px 11px;
  background: var(--tint); border-left: 3px solid var(--accent); border-radius: 0 7px 7px 0; }
#form h2.second { margin-top: 22px; border-top: 0; }
#form .chart-head h2 { flex: 1 1 100%; margin: 0; }   
#form .chart-head .bar-right { margin-left: auto; }
#form .chart-head { margin-bottom: 14px; }
.bar-right .ghost { padding: 5px 9px; font-size: 12px; }



.veil {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16, 24, 40, .32);
}
.working {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 28px; border-radius: 14px;
  background: var(--panel); box-shadow: 0 18px 50px rgba(16, 24, 40, .22);
}

.working i {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); display: block;
  animation: bounce 1.1s ease-in-out infinite;
}
.working i:nth-child(2) { animation-delay: .15s; }
.working i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .35 }
  40% { transform: translateY(-7px); opacity: 1 }
}
@media (prefers-reduced-motion: reduce) {
  .working i { animation: none; opacity: .8; }
}

.sketch { margin: 0 0 6px; color: var(--warn); }


.cab { display: flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--line); }
.cab img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; }
.cab .ini {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 700; font-family: inherit; font-size: 12px; line-height: 1;
}
.cab #who { color: var(--text); font-weight: 600; font-size: 13px; }
.cab .link { color: var(--dim); font-size: 12px; }
.cab .link:hover { color: var(--accent); }



.bot-cta { display: flex; flex-direction: column; align-items: center; text-align: center; }
.bot-cta .lockable { align-self: stretch; }
#form .min-dep { margin-top: 8px; text-align: center; line-height: 1.4; }
.bot-send-big { position: relative; overflow: hidden; width: min(100%, 420px); min-height: 58px;
                padding: 14px 28px; border: 0; border-radius: 14px; cursor: pointer;
                font: inherit; font-size: 19px; font-weight: 700; letter-spacing: .01em; color: #fff;
                background: linear-gradient(135deg, #2aabee 0%, #1f8fe0 55%, #5b5ff0 100%);
                box-shadow: 0 8px 22px rgba(31, 143, 224, .35);
                animation: bot-glow 2.8s ease-in-out infinite; transition: transform .15s; }
.bot-send-big::before { content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 10px;
                        vertical-align: -3px; background: no-repeat center / contain
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M21.5 3.6 2.9 10.8c-1.3.5-1.3 1.2-.2 1.5l4.8 1.5 1.8 5.6c.2.6.1.9.8.9.5 0 .7-.2 1-.5l2.3-2.3 4.9 3.6c.9.5 1.5.2 1.8-.8L23 5c.3-1.4-.5-2-1.5-1.4ZM8.9 13.4l9.6-6.1c.5-.3.9-.1.5.2l-8.2 7.4-.3 3.4-1.6-4.9Z'/%3E%3C/svg%3E"); }
.bot-send-big::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
                       background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
                       transform: skewX(-20deg); animation: bot-shine 3.2s ease-in-out infinite; }
.bot-send-big:hover { transform: translateY(-1px); }
.bot-send-big:active { transform: translateY(1px); }
.bot-send-big:disabled { cursor: progress; opacity: .85; }
@keyframes bot-glow {
  0%, 100% { box-shadow: 0 8px 22px rgba(31, 143, 224, .35); }
  50% { box-shadow: 0 8px 30px rgba(91, 95, 240, .55), 0 0 0 5px rgba(42, 171, 238, .15); }
}
@keyframes bot-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) {
  .bot-send-big, .bot-send-big::after { animation: none; }
}





.bot-link { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px 22px; }
.bot-link .bot-qr { display: contents; }
.bot-qr img, .bot-qr .qr-fake { grid-column: 2; grid-row: 1; }
.bot-link .bot-acts { grid-column: 3; grid-row: 1; align-self: center; justify-self: start; }
.bot-qr .bot-send-big { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin: 0; }
@media (max-width: 720px) {
  .bot-link { grid-template-columns: 1fr; justify-items: center; }
  .bot-qr img, .bot-qr .qr-fake, .bot-qr .bot-send-big { grid-column: 1; }
  .bot-link .bot-acts { grid-column: 1; grid-row: 3; justify-self: center; }
  .bot-acts { flex-direction: row; }
  .bot-acts button { min-width: 0; }
}
.bot-qr { text-align: center; }
.bot-qr img { display: block; width: 176px; height: 176px; margin: 0 auto;
              image-rendering: pixelated; }
.bot-qr a { font-size: 14px; font-weight: 600; }
.bot-acts { display: flex; flex-direction: column; gap: 10px; flex-wrap: wrap; }

.share-bonus { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px;
  background: rgba(11, 122, 52, .1); border: 1px solid rgba(11, 122, 52, .35);
  color: var(--plus); font-size: 12px; font-weight: 700; line-height: 1.2; vertical-align: 1px; }
.share-why-box { flex: 1 0 100%; width: 100%; text-align: center; }
.bot-acts button.share-why { display: inline-flex; align-items: center; gap: 5px; width: auto; min-width: 0;
  margin: 0; padding: 2px 4px; background: none; color: var(--dim); font-size: 12.5px; font-weight: 500;
  white-space: normal; }
.bot-acts button.share-why:hover { background: none; color: var(--text); }
.share-why i { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.share-why.open i { transform: translateY(1px) rotate(-135deg); }
.share-note { margin-top: 6px; padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(11, 122, 52, .3);
  background: rgba(11, 122, 52, .05); color: var(--text); font-size: 13px; line-height: 1.45; text-align: center; }
.bot-acts button { width: auto; min-width: 168px; margin: 0; padding: 9px 14px; white-space: nowrap; }


.chart-wait { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
              display: flex; align-items: center; justify-content: center; gap: 6px;
              color: var(--dim); font-size: 14px; pointer-events: none; }
.chart-wait i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
                display: inline-block; animation: waitDot 1.1s ease-in-out infinite; }
.chart-wait i:nth-of-type(2) { animation-delay: .18s; }
.chart-wait i:nth-of-type(3) { animation-delay: .36s; }
@keyframes waitDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); }
                     40% { opacity: 1; transform: translateY(-4px); } }
.panel { position: relative; }
@media (prefers-reduced-motion: reduce) { .chart-wait i { animation: none; opacity: .6; } }





.h2btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  margin: 20px 0 14px; padding: 16px 0 0 10px;
  border: 0; border-top: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0; background: none; color: var(--text);
  font-weight: 700; font-family: inherit; font-size: 15px; line-height: 1.2; text-align: left; cursor: pointer; letter-spacing: -.01em;
}
.h2btn, .h2btn:hover, .h2btn:focus { color: var(--text); background: none; }
.h2btn .chev { margin-left: auto; color: var(--dim); font-size: 12px; transition: transform .15s; }
.h2btn.open .chev { transform: rotate(180deg); }



#entryNote { font-size: 13px; line-height: 1.45; font-weight: 400; color: var(--dim); }
#modeNote { font-size: 13px; line-height: 1.45; font-weight: 600; color: var(--accent); }


#cards .hint { margin-top: 10px; font-size: 13px; line-height: 1.5; }

#cards .hint.burn { display: flex; flex-direction: column; align-items: center; justify-content: center;
                    gap: 4px; min-height: 64px; padding: 12px 16px; text-align: center;
                    border: 1.5px solid #e0766b; border-radius: 10px;
                    background: var(--note-flip-bg); color: var(--minus);
                    animation: burn-pulse 2.4s ease-in-out infinite; }
#cards .hint.burn b { font-size: 15px; font-weight: 700; }
#cards .hint.burn span { font-size: 13px; font-weight: 500; color: #9b3a31; max-width: 760px; }
@keyframes burn-pulse {
  0%, 100% { border-color: #e0766b; box-shadow: 0 0 0 0 rgba(224, 118, 107, 0); }
  50% { border-color: #f3b3ab; box-shadow: 0 0 0 4px rgba(224, 118, 107, .16); }
}
@media (prefers-reduced-motion: reduce) { #cards .hint.burn { animation: none; } }


.group.plain { border: 0; background: none; padding: 0; }


.chart-wait { flex-direction: column; }
.wait-long { margin-top: 12px; padding: 8px 14px; border: 1px solid var(--warn);
             border-radius: 999px; color: var(--warn); font-size: 13px; font-weight: 600;
             background: var(--note-bg); }



@media (max-width: 640px) {
  main { padding: 10px; }
  .work, .side-left, .side-right { gap: 12px; }
  .panel { padding: 13px 12px; }
  header { padding: 10px 12px; gap: 8px 10px; }
  header .tag { font-size: 12px; padding: 4px 10px; }
  

  input, select, textarea,
  .filter select, .filter input, .fld select, .fld input { font-size: 16px; }
  .chart.tall, #price { height: 370px; min-height: 370px; }
  .entry-tools select { min-width: 0; width: 100%; }
  #compare, #multi { overflow-x: auto; }
  table { font-size: 12.5px; }
  th, td { padding: 6px 3px; }
  th { font-size: 9.5px; letter-spacing: 0; }
  td { white-space: nowrap; }
  td:first-child { white-space: normal; }
  
  table.words td { white-space: normal; overflow-wrap: anywhere; }
  .bot-link { padding: 12px; }
}



.welcome { position: relative; color: #e8edf3; border-bottom: 1px solid #1f2633;
        background: radial-gradient(1100px 420px at 12% 0%, rgba(22, 163, 74, .20), transparent 60%),
                    radial-gradient(900px 380px at 92% 8%, rgba(26, 95, 208, .22), transparent 60%),
                    #0f131b; }

.welcome { overflow: hidden; }
.welcome-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.welcome-in { position: relative; z-index: 1; }

.welcome-top { position: absolute; top: 4px; right: 20px; z-index: 3; display: flex; align-items: center; gap: 14px; }
.welcome-why { position: static; font-size: 13px; }
@media (max-width: 640px) { .welcome-top { top: 4px; right: 12px; gap: 10px; } .welcome-why { font-size: 12px; } }
.welcome-in { max-width: 1800px; margin: 0 auto; padding: 44px 20px 28px;
           min-height: min(78vh, 720px); display: flex; flex-direction: column;
           justify-content: center; gap: 22px; will-change: opacity, transform; }
.welcome-head h1 { margin: 0 0 8px; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.15;
                letter-spacing: -.02em; color: #fff; }
.welcome-head p { margin: 0; max-width: 640px; color: #9aa6b5; font-size: 15px; }
.bots { overflow: hidden; touch-action: pan-y; cursor: grab; margin: 0 -20px; padding: 6px 20px 10px;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.bots::-webkit-scrollbar { display: none; }
.bots-track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.bot { flex: 0 0 auto; width: 300px; display: flex; flex-direction: column; gap: 12px;
       padding: 18px; border-radius: 16px; border: 1px solid #243044;
       
       background: linear-gradient(180deg, rgba(26, 33, 45, .64), rgba(20, 26, 36, .64)); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }


.bot-top { display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-height: 64px; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, .16);
           border-radius: 12px; background: rgba(255, 255, 255, .03); }
.bot-top::after { content: ""; flex: 0 0 40px; }
.bot-top h3 { flex: 1; margin: 0; font-size: 17px; white-space: nowrap; color: #fff; letter-spacing: -.01em; text-align: center; }
.bot-top > div { flex: 1; text-align: center; }
.bot-sub { display: block; margin-top: 2px; font-size: 12px; color: #fff; font-weight: 500; text-align: center; }
.bot-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
           display: grid; place-items: center; }
.bot-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2;
               stroke-linecap: round; stroke-linejoin: round; }
.ico-shield { background: rgba(34, 197, 94, .15); color: #4ade80; }
.ico-signal { background: rgba(96, 165, 250, .15); color: #7cb4ff; }
.ico-hedge { background: rgba(250, 204, 21, .13); color: #facc15; }
.ico-rocket { background: rgba(248, 113, 113, .15); color: #fb8a8a; }
.ico-coin { background: rgba(247, 147, 26, .15); color: #f7a23b; }
.ico-tune { background: rgba(167, 139, 250, .15); color: #b9a4ff; }
.ico-trophy { background: rgba(242, 140, 40, .15); color: #f2b45a; }
.ico-trophy svg { fill: currentColor; stroke: none; }


@keyframes cup-spin {
  0%   { transform: perspective(180px) rotateY(0) scale(1); animation-timing-function: ease-out; }
  11%  { transform: perspective(180px) rotateY(0) scale(2.5); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  55%  { transform: perspective(180px) rotateY(720deg) scale(2.5); animation-timing-function: ease-in-out; }
  63%  { transform: perspective(180px) rotateY(720deg) scale(.94); animation-timing-function: ease-out; }
  70%, 100% { transform: perspective(180px) rotateY(720deg) scale(1); }
}
.ico-trophy.cup-spin svg { animation: cup-spin 2s infinite; }
@media (prefers-reduced-motion: reduce) { .ico-trophy.cup-spin svg { animation: none; } }


.bot-pick { position: relative; isolation: isolate; overflow: hidden; border-color: transparent; }
.bot-pick::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -2;
  width: 220%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(0turn);
  background: conic-gradient(from 0turn, transparent 0 70%, #f2b45a 82%, #ffffff 88%,
                             #f2b45a 92%, transparent 100%);
  animation: botPickRun 3.6s linear infinite; }
.bot-pick::after { content: ""; position: absolute; inset: 9px; z-index: -1;
  border-radius: 10px; background: linear-gradient(180deg, #1a212d, #141a24); }
@keyframes botPickRun { to { transform: translate(-50%, -50%) rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .bot-pick::before { animation: none; } }




.bot-desc { min-height: calc(1.5em * 4); flex: 1; display: flex; flex-direction: column; justify-content: center; }
.bot p { margin: 0 0 6px; color: #e1e7ef; font-size: 14px; line-height: 1.5; text-align: center; }
.bot p:last-child { margin-bottom: 0; }


.bot-pick .bot-desc p { font-size: 17px; line-height: 1.5; margin: 0; }


.bot-check { margin: 4px 0 0; padding: 0 12px; list-style: none; text-align: left; }
.bot-check li { position: relative; padding-left: 22px; color: #e1e7ef; font-size: 14px; line-height: 1.5; }
.bot-check li::before { content: "✓"; position: absolute; left: 0; color: #4ade80; font-weight: 700; }


.bot-facts { display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, .16);
             border-radius: 12px; background: rgba(255, 255, 255, .03); margin-top: auto; }
.bot-facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
                 padding: 8px 12px; }
.bot-facts div + div { border-top: 1px solid rgba(255, 255, 255, .08); }
.bot-facts span { color: #95a2b3; font-size: 12.5px; }
.bot-facts b { color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.bot-go { display: block; padding: 12px; border-radius: 10px; text-align: center;
          background: #16a34a; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none;
          box-shadow: 0 6px 18px rgba(22, 163, 74, .35); }
.bot-go:hover { background: #15803d; }


.bot-soon { position: relative; overflow: hidden; }
.bot-soon-badge { position: absolute; left: 50%; top: 50%; width: max-content; max-width: 82%;
  transform: translate(-50%, -50%) rotate(-9deg); text-align: center; overflow: hidden;
  padding: 10px 22px; border-radius: 10px; white-space: nowrap;
  font-size: 18px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: #3a2205; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); pointer-events: none;
  background: linear-gradient(180deg, #ffe08a 0%, #f5a623 50%, #d9820a 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12) inset;
  animation: botSoonGlow 2.8s ease-in-out infinite; }
.bot-soon-badge::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg); animation: bot-shine 3.2s ease-in-out infinite; }
@keyframes botSoonGlow {
  0%, 100% { box-shadow: 0 8px 20px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12) inset; }
  50% { box-shadow: 0 8px 26px rgba(245, 166, 35, .55), 0 0 0 1px rgba(255, 255, 255, .2) inset; }
}
.ico-soon { background: rgba(255, 255, 255, .07); color: #8b94a3; position: relative; overflow: hidden; }
.ico-soon::after { content: ""; position: absolute; inset: 0;
  background-image: repeating-conic-gradient(from 0deg, rgba(255,255,255,.22) 0deg 5deg, rgba(255,255,255,.02) 5deg 10deg, rgba(255,255,255,.3) 10deg 15deg, rgba(255,255,255,.05) 15deg 20deg);
  background-size: 220% 220%; animation: botSoonStatic .8s steps(1) infinite; }
@keyframes botSoonStatic {
  0%   { background-position: 10% 20%; }
  12%  { background-position: 70% 60%; }
  24%  { background-position: 30% 85%; }
  36%  { background-position: 90% 10%; }
  48%  { background-position: 50% 50%; }
  60%  { background-position: 20% 90%; }
  72%  { background-position: 80% 30%; }
  84%  { background-position: 40% 5%; }
  100% { background-position: 10% 20%; }
}
@media (prefers-reduced-motion: reduce) { .bot-soon-badge, .bot-soon-badge::after, .ico-soon::after { animation: none; } }
.welcome-note { color: #6f7b8b; font-size: 12px; }


.ico-idea { background: rgba(251, 191, 36, .15); color: #fbbf24; }
.idea { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px;
        border: 1px solid #4a3a16; background: linear-gradient(180deg, #221c10, #17140d);
        box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.idea-txt { margin: 0; flex: 1 1 auto; font-size: clamp(16px, 2vw, 20px); font-weight: 600; color: #fff;
            letter-spacing: -.01em; }
.idea-go { flex: 0 0 auto; display: block; padding: 12px 24px; border-radius: 10px; text-align: center;
           background: #f59e0b; color: #1a1205; font-weight: 700; font-size: 15px; text-decoration: none;
           box-shadow: 0 6px 18px rgba(245, 158, 11, .30); }
.idea-go:hover { background: #fbbf24; }
@media (max-width: 640px) { .idea { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
                            .idea .bot-ico { align-self: center; } }


.welcome-down { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
             color: #e8edf3; font-weight: 800; font-size: 26px; letter-spacing: -.01em;
             text-decoration: none; text-align: center; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .welcome-down span { background: linear-gradient(90deg, #e8edf3 0%, #4ade80 25%, #5aa9ff 50%, #e8edf3 75%, #e8edf3 100%);
    background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: welcomeShine 5s linear infinite; }
}
@keyframes welcomeShine { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.welcome-down i { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
               border: 2px solid #4ade80; color: #4ade80; font-size: 24px; font-style: normal; font-weight: 700;
               animation: welcomeBob 1.8s ease-in-out infinite; }
.welcome-down i::after { content: ""; position: absolute; inset: -2px; border-radius: 50%;
               border: 2px solid rgba(74, 222, 128, .6); animation: welcomeRing 1.8s ease-out infinite; }
.welcome-down:hover i { background: rgba(74, 222, 128, .12); }
@keyframes welcomeBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes welcomeRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@media (max-width: 640px) { .welcome-down { font-size: 20px; gap: 10px; } .welcome-down i { width: 44px; height: 44px; font-size: 20px; } }
@media (prefers-reduced-motion: reduce) {
  .welcome-down span, .welcome-down i, .welcome-down i::after { animation: none; }
}

#work { scroll-margin-top: 0; }


@media (min-width: 1001px) {
  html { scroll-snap-type: y mandatory; }
  .welcome, main { scroll-snap-align: start; scroll-snap-stop: always;
                   scroll-margin-top: var(--hdr, 60px); }
}
main { min-height: 100vh; }
@media (max-width: 640px) {
  .welcome-in { min-height: auto; padding: 24px 12px 20px; gap: 16px; }
  .bots { margin: 0 -12px; padding: 6px 12px 10px; }
  .bot { width: 272px; padding: 16px; }
}


.veil { flex-direction: column; gap: 14px; }



.lockable { position: relative; }
body.locked .lockable > :not(.lock-card) { filter: blur(7px) saturate(1.15); pointer-events: none;
                                           user-select: none; }
.lock-card { display: none; }
body.locked.has-run .lock-card { position: absolute; inset: 0; z-index: 5; display: flex;
  align-items: center; justify-content: center; padding: 10px; }
.lock-in { max-width: 460px; padding: 18px 20px; border-radius: 14px; text-align: center;
           background: var(--glass); border: 1px solid var(--line);
           box-shadow: 0 12px 34px rgba(16, 24, 40, .16); }
.lock-in b { display: block; margin-bottom: 6px; font-size: 16px; color: var(--text); }
.lock-in .lock-free { margin: 0 0 8px; font-size: 14.5px; font-weight: 700; letter-spacing: .01em; color: var(--plus, #16a34a); }
.lock-in p { margin: 0 0 12px; color: var(--dim); font-size: 13.5px; line-height: 1.45; }
.lock-in button { width: auto; margin: 0; padding: 11px 22px; background: #16a34a; font-size: 15px;
                  font-weight: 700; box-shadow: 0 6px 16px rgba(22, 163, 74, .3); }
.lock-in button:hover { background: #15803d; }
.lock-in a { display: inline-block; margin-top: 10px; font-size: 12.5px; }
.lock-in .lock-say { margin-top: 8px; font-size: 12.5px; color: var(--dim); min-height: 1em; }
.lock-card.small .lock-in { padding: 14px 16px; }


body.locked.has-run .pick .lockable { min-height: 118px; }
body.locked.has-run .pick .lock-card { padding: 6px; }
.pick .lock-card.small .lock-in { padding: 10px 14px; }
.pick .lock-in b { font-size: 14px; }
.lock-card.small .lock-in p { display: none; }

.lock-in.lock-two .lock-make + button { margin-top: 10px; }
.lock-in .lock-note { margin: 0 0 12px; font-size: 12.5px; color: var(--dim); }
.lock-in .lock-as { margin: 12px 0 0; font-size: 12px; color: var(--dim); opacity: .85; }

.botnote { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
           padding: 10px 16px; background: #2a2110; border-bottom: 1px solid #4a3a16; color: #f5d98a; font-size: 14px; }
.botnote[hidden] { display: none; }
.botnote-go { flex: 0 0 auto; padding: 6px 14px; border-radius: 8px; background: #f59e0b; color: #1a1205;
              font-weight: 700; text-decoration: none; }
.botnote-go:hover { background: #fbbf24; }

.qr-fake { display: block; width: 176px; height: 176px; margin: 0 auto; image-rendering: pixelated; }
.lock-in .lock-make { display: inline-block; margin: 0 6px 0 0; padding: 11px 20px;
  border-radius: 6px; background: #16a34a; color: #fff; font-weight: 700; font-size: 15px;
  text-decoration: none; box-shadow: 0 6px 16px rgba(22, 163, 74, .3); }
.lock-in .ghost { vertical-align: top; }

.lock-in button.ghost { padding: 10px 18px; background: transparent; color: var(--text);
  border: 1px solid var(--line); box-shadow: none; font-weight: 600; }
.lock-in button.ghost:hover { background: rgba(22, 163, 74, .08); border-color: #16a34a; }


.lock-or { margin: 16px 0 8px; font-size: 12.5px; color: var(--dim); }
.lock-ex { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 0 4px; }
.lock-in .lock-ex a { display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 62px; margin: 0; padding: 6px 0 4px; border-radius: 10px; color: var(--dim);
  font-size: 11.5px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.lock-in .lock-ex a:hover { background: rgba(22, 163, 74, .08); color: var(--text); }
.lock-ex img { width: 34px; height: 34px; border-radius: 9px; display: block;
               transition: transform .15s; }
.lock-in .lock-ex a:hover img { transform: translateY(-2px); }
.lock-in p + .lock-ex { margin-bottom: 12px; }

@media (max-width: 420px) { .lock-in .lock-ex a { width: 56px; } }
.lock-card.small .lock-or, .lock-card.small .lock-ex, .lock-card.small .lock-say { display: none; }

.lock-card.small .lock-in.m-noref p { display: block; margin: 0 0 6px; font-size: 12px; line-height: 1.35; }
.lock-card.small .lock-in.m-noref .lock-ex { display: flex; gap: 2px; margin: 0 0 6px; }
.lock-card.small .lock-in.m-noref .lock-ex a { width: 54px; padding: 3px 0 2px; gap: 2px; font-size: 10.5px; }
.lock-card.small .lock-in.m-noref .lock-ex img { width: 26px; height: 26px; border-radius: 7px; }
.lock-card.small .lock-in.m-noref .lock-free { margin-bottom: 4px; font-size: 13.5px; }

body.locked.has-run .lockable:has(> #cards) { min-height: 280px; }
@media (max-width: 640px) { body.locked.has-run .lockable:has(> #cards) { min-height: 320px; } }


#price { position: relative; }
.chart-veil { display: none; }
body.locked.run-on-chart .chart-veil { display: block; position: absolute; top: 0; bottom: 0;
  left: 16.65%; width: 66.7%; z-index: 3; pointer-events: none;
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }


.date-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.date-btn { margin: 0; padding: 8px 10px; background: var(--panel); border: 1px solid var(--field-line); border-radius: 6px;
  color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; text-align: center; line-height: 1.55; }
.date-btn:hover { background: var(--panel); border-color: var(--accent); }
body.dw-lock { overflow: hidden; }
.dw-veil { position: fixed; inset: 0; z-index: 1000; background: rgba(16, 24, 40, .45);
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.dw-sheet { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 6px 14px 14px; box-shadow: 0 18px 50px rgba(16, 24, 40, .25); }
@media (max-width: 640px) {
  .dw-veil { align-items: flex-end; padding: 0; }
  .dw-sheet { max-width: none; border-radius: 14px 14px 0 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
.dw-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0 8px; }
.dw-title { font-size: 15px; }
.dw-btn { width: auto; margin: 0; padding: 8px 6px; background: none; color: var(--dim); font-size: 15px; font-weight: 500; }
.dw-btn:hover { background: none; color: var(--text); }
.dw-btn.dw-ok { color: var(--accent); font-weight: 700; }
.dw-cols { position: relative; display: flex; gap: 6px; height: 200px; }
.dw-band { position: absolute; left: 0; right: 0; top: 80px; height: 40px; pointer-events: none;
  border-radius: 8px; background: var(--tint); border: 1px solid #c9d8f5; }
.dw-col { position: relative; flex: 1 1 0; overflow-y: auto; scroll-snap-type: y mandatory;
  padding: 80px 0; overscroll-behavior: contain; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.dw-col::-webkit-scrollbar { display: none; }
.dw-col.dw-wide { flex: 1.7 1 0; }
.dw-i { height: 40px; line-height: 40px; text-align: center; scroll-snap-align: center;
  color: var(--dim); font-size: 17px; font-variant-numeric: tabular-nums; cursor: pointer; }
.dw-i.on { color: var(--text); font-weight: 700; }

body.chart-locked .tfs button:disabled { opacity: .45; cursor: not-allowed; }
body.chart-locked #price { cursor: default; }


#form .row > div { display: flex; flex-direction: column; justify-content: flex-end; }
#form label { min-height: 0; margin: 7px 0 3px; }
#form input, #form select, #form .date-btn, #form .pair-btn { height: 38px; padding: 6px 10px; line-height: 1.3; }
#form .row { gap: 8px 8px; }
#form h2 { margin-bottom: 10px; }
#form h2.second { margin-top: 16px; }
#form .chart-head { margin-bottom: 8px; }
#form .hint { margin-top: 6px; }
#form .hint:empty { display: none; }
#form .go-bar { margin-top: 12px; padding-top: 10px; }

.pair-btn { display: flex; align-items: baseline; gap: 2px; margin: 0; text-align: left;
  background: var(--panel); border: 1px solid var(--field-line); border-radius: 6px; color: var(--text);
  font-weight: 400; position: relative; padding-right: 26px !important; }
.pair-btn:hover { background: var(--panel); border-color: var(--accent); }
.pair-btn span { font-weight: 400; }
.pair-btn i { margin-left: auto; color: var(--dim); font-style: normal; font-size: 11px; white-space: nowrap; }
.pair-btn::after { content: ""; position: absolute; right: 10px; top: 50%; width: 7px; height: 7px;
  margin-top: -5px; border: solid var(--dim); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pp-sheet { max-width: 460px; display: flex; flex-direction: column; max-height: min(640px, 86vh); }
.pp-find { margin: 2px 0 10px; font-size: 16px; }
.pp-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pp-chip { width: auto; margin: 0; padding: 7px 14px; background: var(--tint); color: var(--text);
  border-radius: 999px; font-size: 14px; font-weight: 400; line-height: 1.2; display: flex; gap: 6px; align-items: baseline; }
.pp-chip:hover { background: #dfe8fa; }
.pp-chip i { color: var(--dim); font-style: normal; font-size: 11px; font-weight: 500; }
.pp-list { overflow-y: auto; overscroll-behavior: contain; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 4px; padding-bottom: 2px; }
.pp-row { width: auto; margin: 0; padding: 9px 10px; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 400; line-height: 1.2; text-align: left;
  display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.pp-row:hover { background: #f4f7fd; border-color: #c9d8f5; }
.pp-row i { color: var(--dim); font-style: normal; font-size: 11px; font-weight: 500; white-space: nowrap; }
.pp-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-chip.on, .pp-row.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pp-chip.on i, .pp-row.on i { color: rgba(255, 255, 255, .8); }
.pp-none { padding: 18px 0; text-align: center; color: var(--dim); font-size: 13px; }
@media (max-width: 640px) { .pp-sheet { max-height: 80vh; } .pp-list { grid-template-columns: 1fr 1fr; } }


body.run-stale #cards, body.run-stale #botNote { opacity: .45; transition: opacity .2s; }


#watchPanel .w-row { display: flex; align-items: center; gap: 8px; padding: 5px 0;
  border-top: 1px solid var(--line-soft); font-size: 12.5px; }
#watchPanel .w-row:first-child { border-top: 0; }
#watchPanel .w-main { flex: 1 1 auto; min-width: 0; }
#watchPanel .w-name { font-weight: 600; line-height: 1.35; }
#watchPanel .w-sub { color: var(--dim); font-size: 11px; line-height: 1.35; margin-top: 1px; }
#watchPanel .w-off { flex-shrink: 0; }


#watchPanel { padding: 11px; }
#form #watchPanel h2 { min-height: 26px; margin-bottom: 6px; padding: 4px 10px 4px 9px;
  font-size: 13px; }
#watchPanel .w-off { padding: 4px 9px; font-size: 11.5px; }

#watchPanel .w-empty { color: var(--dim); font-size: 11.5px; line-height: 1.45; }

.toast.off { border-left-color: var(--warn); }


#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--plus); border-radius: 10px; padding: 10px 14px;
  max-width: 320px; box-shadow: 0 8px 24px rgba(20, 30, 50, 0.12);
  opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; }
.toast.on { opacity: 1; transform: none; }
.toast b { display: block; font-size: 13px; margin-bottom: 2px; }
.toast span { color: var(--dim); font-size: 12px; line-height: 1.4; }



.toast { position: relative; padding-right: 44px; }
.toast .toast-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; margin: 0; padding: 0;
  display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px;
  background: var(--tint); color: var(--text); font-size: 18px; font-weight: 600; line-height: 1; cursor: pointer; }
.toast .toast-x:hover { background: var(--line); }


#watchPanel .w-toggle { display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; margin: 4px 0 0; padding: 6px 8px; cursor: pointer;
  background: #f3f7fd; border: 0; border-radius: 6px;
  color: var(--accent); font-weight: 600; font-size: 12px; }
#watchPanel .w-toggle:hover { background: #e7eefb; }
#watchPanel .w-arr { font-style: normal; display: inline-block; transition: transform 0.2s; }
#watchPanel .w-toggle.open .w-arr { transform: rotate(180deg); }


.tpl-tf { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.tpl-tf label { font-size: 13px; color: var(--dim); flex-shrink: 0; }
.tpl-tf select { flex: 1 1 auto; }



.bot-pop { position: sticky; top: 0; z-index: 6; margin-bottom: 4px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  box-shadow: 0 12px 30px rgba(16, 24, 40, .16);
  animation: botPopIn .22s ease-out; }
@keyframes botPopIn { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .bot-pop { animation: none; } }

.bot-pop .panel { border: 0; box-shadow: none; border-radius: 12px; margin: 0; }

.bot-pop .panel { border-bottom: 1px solid var(--line-soft); border-radius: 12px 12px 0 0; }


.bot-pop-x { position: relative; display: block; width: 28px; height: 28px; margin: 6px auto 8px; padding: 0;
  border: 0; border-radius: 7px; background: #16a34a; color: #fff;
  font-size: 13px; font-weight: 700; line-height: 28px; text-align: center; cursor: pointer; }
.bot-pop-x::after { content: ""; position: absolute; inset: -4px; }
.bot-pop-x:hover { background: #128a3f; }



.bot-pop .bot-link { grid-template-columns: 1fr; justify-items: center; gap: 12px; }
.bot-pop .bot-qr img, .bot-pop .bot-qr .qr-fake { grid-column: 1; grid-row: 1; }
.bot-pop .bot-qr .bot-send-big { grid-column: 1; grid-row: 3; }
.bot-pop .bot-link .bot-acts { grid-column: 1; grid-row: 2; justify-self: stretch;
  flex-direction: row; align-self: auto; }
.bot-pop .bot-acts button { flex: 1 1 0; min-width: 0; padding: 9px 8px;
  white-space: normal; }
.bot-pop .bot-qr img { width: 150px; height: 150px; }



#watchPanel { background: var(--alert-bg); border-color: var(--alert-line); }
#form #watchPanel h2 { background: var(--alert-head); border-left-color: var(--alert-bar); }


.tpl-pick { display: flex; gap: 8px; align-items: stretch; }
.tpl-pick select { flex: 1 1 auto; min-width: 0; }
.tpl-info {
  flex: 0 0 auto; align-self: stretch; width: 40px; height: auto; margin: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--panel); border: 1px solid var(--field-line); border-radius: 6px; color: var(--dim);
}
.tpl-info svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.tpl-info:hover, .tpl-info.on,
html.evening .tpl-info:hover, html.evening .tpl-info.on { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.tpl-info[hidden], .tpl-help[hidden], .tpl-help img[hidden] { display: none; }
.tpl-help {
  margin-top: 8px; padding: 10px; background: var(--panel); border: 1px solid var(--field-line);
  border-radius: 8px; color: var(--dim); font-size: 13px; line-height: 1.45;
}
.tpl-help img { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto 6px; border-radius: 6px; }
.tpl-help .cap { text-align: center; font-size: 12px; margin-bottom: 8px; }
.tpl-help p { margin: 6px 0 0; }
.tpl-help b { color: var(--text); }

.ico-mnch { background: rgba(255, 176, 32, .15); color: #ffc233; }


body.sp { margin: 0; background: #0f1318; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.sp-box { box-sizing: border-box; width: 100%; max-width: 640px; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.sp-img { display: block; width: 100%; height: auto; border-radius: 12px; background: #fff; }
.sp-go { display: block; padding: 16px; border-radius: 12px; text-align: center; background: #16a34a; color: #fff;
         font: 700 18px -apple-system, Segoe UI, Roboto, Arial, sans-serif; text-decoration: none; box-shadow: 0 6px 18px rgba(22, 163, 74, .35); }
.sp-go:hover { background: #15803d; }

.sp-show { display: block; padding: 14px; border-radius: 12px; text-align: center; background: #eef6ff; color: #1d4ed8; border: 1px solid #93b4ee;
           font: 700 17px -apple-system, Segoe UI, Roboto, Arial, sans-serif; text-decoration: none; }
.sp-show:hover { background: #dbeafe; }


.alt-pick { border: 1px solid var(--plus, #2fb574); border-radius: 8px; padding: 12px; margin: 8px 0; background: rgba(47, 181, 116, .07); }
.alt-pick > b { display: block; font-size: 14px; margin-bottom: 2px; }
.alt-pick .alt-pair { display: block; font-size: 12px; color: var(--dim); margin-bottom: 8px; }
.alt-pick p { margin: 0 0 8px; font-size: 13px; color: var(--dim); }
.alt-pick .alt-ex { color: var(--text); }
.alt-pick button { width: 100%; padding: 11px 14px; border-radius: 8px; border: 0; background: #1f9d55; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }


.pick-head { display: block; width: fit-content; max-width: 100%; margin: 0 auto 6px; text-align: center; }
.pick-pct { text-align: center; font-size: 24px; font-weight: 800; margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.pick-pct.plus { color: var(--plus, #2fb574); }
.pick-pct.minus { color: var(--minus, #d9534f); }
.pick-pct:empty { display: none; }



.presets.entry-modes { gap: 6px; }
.presets.entry-modes button {
  padding: 7px 6px; font-size: 12px; line-height: 1.15; border-radius: 12px;
  background: rgba(var(--c), .13); border: 1px solid rgba(var(--c), .6); color: rgb(var(--c));
}
.presets.entry-modes button[data-m="none"] { --c: 30, 130, 80; }
.presets.entry-modes button[data-m="tpl"]  { --c: 26, 95, 208; }
.presets.entry-modes button[data-m="own"]  { --c: 112, 64, 214; }
.presets.entry-modes button:hover { background: rgba(var(--c), .24); color: rgb(var(--c)); }
.presets.entry-modes button.on { background: rgb(var(--c)); border-color: rgb(var(--c)); color: #fff; }
html.evening .presets.entry-modes button[data-m="none"] { --c: 62, 196, 128; }
html.evening .presets.entry-modes button[data-m="tpl"]  { --c: 96, 165, 250; }
html.evening .presets.entry-modes button[data-m="own"]  { --c: 167, 139, 250; }
html.evening .presets.entry-modes button { background: rgba(var(--c), .14); }
html.evening .presets.entry-modes button:hover { background: rgba(var(--c), .26); }
html.evening .presets.entry-modes button.on { background: rgb(var(--c)); color: #10141c; }



@media (hover: hover) {
  .bots { margin-top: -20px; margin-bottom: -20px; padding-top: 26px; padding-bottom: 30px; }
  .bot { position: relative; transition: transform .22s ease, box-shadow .22s ease; }
  .bot:hover { transform: scale(1.07); z-index: 5; box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); }
}


.ad { position: relative; display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 9px 10px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--tint); color: var(--text); text-decoration: none; }
.ad[hidden] { display: none !important; }
.ad-tag { position: absolute; top: -7px; left: 10px; padding: 0 6px; font-size: 9.5px; letter-spacing: .4px; text-transform: uppercase;
  color: var(--dim); background: var(--panel); border-radius: 6px; }
.ad-logo { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; background: #fff; }
.ad-b { display: block; min-width: 0; flex: 1 1 auto; }
.ad-t { display: block; font-size: 13px; font-weight: 700; line-height: 1.25; }
.ad-s { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.35; color: var(--dim); }
.ad-go { flex: 0 0 auto; padding: 6px 11px; border-radius: 9px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(145deg, #2fa872, #26845b); }
.ad:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }





.ad { border: 1.5px solid color-mix(in srgb, var(--accent) 70%, var(--line)); background: color-mix(in srgb, var(--accent) 13%, var(--panel)); }
.ad-tag { color: var(--accent); font-weight: 700; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.ad-t { font-size: 14px; }
.ad-s { color: color-mix(in srgb, var(--text) 78%, transparent); }
.ad-go { background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 68%, #000)); color: #fff; }
html.evening .ad-go { color: #1a1508; }
.ad:hover { border-color: var(--accent); }





header > .ad { flex: 0 1 auto; min-width: 0; max-width: 640px; margin: 0 0 0 8px; padding: 6px 9px; gap: 8px; }
header > .ad .ad-logo { width: 34px; height: 34px; }
header > .ad .ad-t { font-size: 13px; }
header > .ad .ad-s { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; line-height: 1.3; }
header > .ad .ad-go { padding: 5px 10px; }
@media (max-width: 1000px) { header > .ad { flex: 1 1 100%; order: 9; max-width: none; margin: 6px 0 0; } }

header > .ad .ad-t { color: var(--text); }
header > .ad .ad-s { color: color-mix(in srgb, var(--text) 78%, transparent); }
header > .ad { padding-top: 11px; }
@media (max-width: 1000px) { header > .ad .ad-s { -webkit-line-clamp: 3; } }



@media (min-width: 641px) {
  .welcome-in { padding-top: 26px; padding-bottom: 18px; gap: 14px; }
  .idea { padding: 8px 16px; gap: 12px; border-radius: 12px; }
  .idea .bot-ico { transform: scale(.82); transform-origin: left center; margin-right: -4px; }
  .idea-txt { font-size: clamp(14px, 1.5vw, 17px); }
  .idea-go { padding: 7px 18px; font-size: 14px; border-radius: 9px; }
  .welcome-down { gap: 8px; font-size: 22px; }
  .welcome-down i { width: 40px; height: 40px; font-size: 19px; }
}


@media (min-width: 1001px) {
  header:has(> .ad) > .ad { margin: 0 auto; }
  header:has(> .ad) .right { margin-left: 0; }
}



header > .ad { max-width: 760px; padding: 9px 9px 5px; gap: 8px; }
header > .ad .ad-logo { width: 30px; height: 30px; border-radius: 8px; }
header > .ad .ad-t { font-size: 12.5px; line-height: 1.2; }
header > .ad .ad-s { display: block; -webkit-line-clamp: unset; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; line-height: 1.25; margin-top: 1px; }
header > .ad .ad-go { padding: 4px 9px; font-size: 11.5px; }
@media (max-width: 1000px) { header > .ad .ad-s { white-space: normal; } }

@media (min-width: 1001px) {
  header:has(> .ad) { padding-top: 6px; padding-bottom: 6px; }
}

header > .ad { max-width: 640px; padding: 8px 8px 4px; gap: 7px; border-width: 1px; border-radius: 10px; }
header > .ad .ad-tag { top: -6px; left: 9px; padding: 0 4px; font-size: 7.5px; letter-spacing: .3px; border-radius: 5px; border-width: 1px; line-height: 1.5; }
header > .ad .ad-logo { width: 26px; height: 26px; border-radius: 7px; }
header > .ad .ad-t { font-size: 11.5px; }
header > .ad .ad-s { font-size: 9.5px; }
header > .ad .ad-go { padding: 3px 8px; font-size: 10.5px; border-radius: 7px; }

header .right .lang { order: 99; }

.idea-btns { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.idea-go.idea-ic { display: block; width: 44px; height: 44px; padding: 0; background: none; box-shadow: none; border-radius: 12px; transition: transform .15s, filter .15s; }
.idea-go.idea-ic:hover { background: none; transform: translateY(-2px); filter: brightness(1.1); }
.idea-ic svg { display: block; width: 100%; height: 100%; }
.idea-go.idea-ml { box-shadow: 0 4px 14px rgba(23, 105, 230, .35); }
.idea-go.idea-tg { border-radius: 50%; box-shadow: 0 4px 14px rgba(42, 171, 238, .35); }
@media (max-width: 640px) { .idea-btns { justify-content: center; } .idea-go.idea-ic { width: 48px; height: 48px; } }
@media (min-width: 641px) { .idea-go.idea-ic { width: 38px; height: 38px; } }


header .right { gap: 14px; }
header .cab { display: grid; grid-template-columns: auto auto auto 1fr; align-items: center; column-gap: 0; row-gap: 1px; padding-left: 16px; }
header .cab img, header .cab .ini { grid-row: 1 / 3; grid-column: 1; width: 34px; height: 34px; margin-right: 10px; }
header .cab .ini { font-size: 13px; }
header .cab #who { grid-row: 1; grid-column: 2 / -1; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; line-height: 1.25; }
header .cab #adm, header .cab #out { grid-row: 2; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 500; line-height: 1.25;
                                     color: var(--dim); text-decoration: none; cursor: pointer; white-space: nowrap; }
header .cab #adm { grid-column: 2; }
header .cab #out { grid-column: 3; }
header .cab #who + #out { grid-column: 2; }
header .cab #adm + #out::before { content: "·"; margin: 0 6px; }
header .cab #adm:hover, header .cab #out:hover { color: var(--accent); }
@media (min-width: 641px) {
  header .lang { align-items: center; height: 36px; box-sizing: border-box; }
  header .lang button { height: 28px; min-width: 42px; padding: 0 10px; font-size: 13px; }
}


.lg-veil { position: fixed; inset: 0; z-index: 1001; background: rgba(16, 24, 40, .45);
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.lg-card { position: relative; width: 100%; max-width: 400px; background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 20px 18px; box-shadow: 0 18px 50px rgba(16, 24, 40, .25); }
.lg-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--dim); font-size: 16px; line-height: 32px; cursor: pointer; }
.lg-x:hover { background: var(--tint); color: var(--text); }
.lg-h { display: block; font-size: 18px; margin: 0 28px 8px 0; }
.lg-p { margin: 0 0 14px; color: var(--dim); font-size: 14px; line-height: 1.45; }
.lg-go { width: 100%; padding: 12px; border: 0; border-radius: 10px; background: #229ed9; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.lg-go:hover { background: #1b8bc0; }
.lg-go:disabled { opacity: .7; cursor: default; }
.lg-say { min-height: 18px; margin-top: 8px; font-size: 13px; color: var(--dim); text-align: center; }
.lg-say a { color: var(--accent); }
@media (max-width: 640px) {
  .lg-veil { align-items: flex-end; padding: 0; }
  .lg-card { max-width: none; border-radius: 14px 14px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}


.chart-movenote { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 3; pointer-events: none;
  width: max-content; max-width: calc(100% - 230px); padding: 6px 16px; border-radius: 8px;
  background: var(--glass); color: var(--text); border: 2px solid #d9730d;
  font-size: 15px; font-weight: 600; line-height: 1.35; text-align: center; text-wrap: balance; }
html.evening .chart-movenote { border-color: #f28c28; }
.chart-movenote[hidden] { display: none; }
.chart-movenote:not([hidden]) ~ .chart-bignote { top: 56px; }
@media (max-width: 640px) { .chart-movenote { top: 40px; max-width: calc(100% - 24px); font-size: 11.5px; padding: 3px 8px; border-width: 1.5px; border-radius: 6px; }
  .chart-movenote:not([hidden]) ~ .chart-bignote { top: 80px; } }



html.evening .presets button.on, html.evening .tfs button.on { background: var(--accent); color: #1a1208; border-color: var(--accent); font-weight: 700; }
html.evening .presets button.on:hover, html.evening .tfs button.on:hover { background: var(--accent); color: #1a1208; }


input.bad, input.bad:focus { border-color: var(--minus); }
.lim-note { margin-top: 5px; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--minus); }
.form-bad #go { opacity: .55; }


.gin { margin: 0; min-height: 34px; align-self: center; padding: 7px 14px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink, #fff); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.gin:hover { filter: brightness(1.08); }
.gin[hidden] { display: none; }
@media (max-width: 640px) { .gin { padding: 6px 10px; font-size: 12px; min-height: 34px; } }


.welcome .lang { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); height: 30px; box-sizing: border-box; align-items: center; }
.welcome .lang button { height: 24px; min-width: 38px; padding: 0 9px; font-size: 12px; color: #c9d3df; }
.welcome .lang button.on { background: var(--accent); color: #fff; }
html.evening .welcome .lang { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
html.evening .welcome .lang button.on { color: #1a1208; }


.welcome .welcome-why { color: #cfe1ff; font-weight: 600; text-decoration-color: rgba(207, 225, 255, .6); }
.welcome .welcome-why:hover { color: #fff; }
.welcome .lang { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.welcome .lang button { color: #f1f5fb; font-weight: 600; }
.welcome .lang button:not(.on):hover { color: #fff; background: rgba(255, 255, 255, .12); }
html.evening .welcome .lang { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .34); }



.welcome .welcome-why { display: none; }
.welcome .lang button.on, html.evening .welcome .lang button.on { background: #e8edf3; color: #0f1522; }


.lg-h { margin: 0 32px 8px; text-align: center; }
.lg-p { text-align: center; }


.gate #link.tglink { display: block; text-align: center; padding: 12px; margin-top: 14px; font-size: 16px; font-weight: 600; border: 1px solid var(--accent, #1d5fd0); border-radius: 10px; text-decoration: none; }


.tone-sw { display: inline-flex; gap: 0; border: 1px solid var(--line, #d7dde3); border-radius: 8px; overflow: hidden; vertical-align: middle; flex: none; }
.tone-sw button { background: transparent; color: var(--dim, #5f6874); border: 0; border-radius: 0; padding: 4px 11px; font-size: 14px; line-height: 1.2; cursor: pointer; font-weight: 400; }
.tone-sw button + button { border-left: 1px solid var(--line, #d7dde3); }
.tone-sw button.on { background: var(--accent, #1a5fd0); color: var(--accent-ink, #fff); }
.tone-sw.fixed button.on { box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .55); }


.tone-sw { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line, #d7dde3); border-radius: 999px; background: transparent; overflow: visible; box-shadow: none; }
.tone-sw button, .tone-sw button:hover { width: 26px; min-width: 26px; height: 26px; margin: 0; padding: 0; border: 0; border-left: 0; border-radius: 50%; background: transparent; color: var(--dim, #5f6874);
  font-size: 14px; line-height: 26px; font-weight: 400; display: inline-flex; align-items: center; justify-content: center; box-shadow: none; }
.tone-sw button + button { border-left: 0; }
.tone-sw button.on, .tone-sw button.on:hover { background: var(--accent, #1a5fd0); color: var(--accent-ink, #fff); box-shadow: none; }
.tone-sw:not(.fixed) button.on { opacity: .75; }


.tone-row { display: flex; justify-content: flex-end; margin: -2px 0 6px; }


.chart-notes { position: relative; padding-right: 74px; }
.chart-notes .tone-sw { position: absolute; right: 0; top: -3px; z-index: 2; }
.tone-row { display: none; }


.tv-lock { position: absolute; inset: 0; z-index: 6; background: transparent; }
.tv-lock[hidden] { display: none; }
body.tv-chart .chart-legend { display: none; }
#price iframe { border: 0; }



.chart-movenote { top: -29px; font-size: 12px; font-weight: 600; padding: 2px 10px; border-width: 1.5px; border-radius: 6px; line-height: 1.3; }
.chart-movenote:not([hidden]) ~ .chart-bignote { top: 8px; }
body.has-run #cards .verdict { margin: 0 0 6px; font-size: 14px; }
body.has-run #cards .cards-top { gap: 6px; margin-bottom: 6px; }
body.has-run #cards .card.hero { padding: 4px 12px; }
body.has-run #cards .card.hero .k { font-size: 10px; }
body.has-run #cards .card.hero .v { font-size: 15px; }
body.has-run #cards .cards-rest { gap: 4px; }
body.has-run #cards .card { padding: 3px 7px; }
body.has-run #cards .card .k { font-size: 10px; }
body.has-run #cards .card .v { font-size: 11px; }
body.has-run #cards .hint { margin-top: 4px; font-size: 11.5px; line-height: 1.35; }



body.tv-chart.locked.run-on-chart .chart-veil { clip-path: polygon(0 0, 100% 0, 100% 100%, 190px 100%, 190px calc(100% - 110px), 0 calc(100% - 110px)); }


body.tv-chart .chart-veil { display: none !important; }
.tv-note { position: absolute; right: 84px; top: 64px; z-index: 4; width: 190px; margin: 0; padding: 8px 10px; border-radius: 8px; text-align: left;
  background: var(--glass); color: var(--text); border: 1.5px solid var(--accent); font-size: 12px; font-weight: 600; line-height: 1.35; cursor: pointer; }
.tv-note:hover { background: var(--glass); }
.tv-note[hidden] { display: none; }
@media (max-width: 640px) { .tv-note { right: 70px; top: 52px; width: 150px; font-size: 11px; } }


.prodtabs { display: flex; gap: 10px; padding: 8px 20px 10px; background: var(--panel); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.prodtabs::-webkit-scrollbar { display: none; }
.ptab { --pc: var(--accent); position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 9px; border-radius: 13px; text-decoration: none; white-space: nowrap; flex: none;
  color: var(--text); font-size: 14.5px; font-weight: 700; border: 1px solid color-mix(in srgb, var(--pc) 38%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 20%, transparent), color-mix(in srgb, var(--pc) 6%, transparent));
  transition: transform .15s, border-color .15s, box-shadow .15s; }
.ptab:hover { transform: translateY(-1px); border-color: var(--pc); box-shadow: 0 6px 18px color-mix(in srgb, var(--pc) 28%, transparent); }
.ptab.on { border-color: var(--pc); box-shadow: 0 0 0 1px var(--pc) inset, 0 6px 18px color-mix(in srgb, var(--pc) 24%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 30%, transparent), color-mix(in srgb, var(--pc) 10%, transparent)); }
.ptab.c-or { --pc: #f28c28; } .ptab.c-gd { --pc: #a977ff; } .ptab.c-bl { --pc: #3d9bff; }
html:not(.evening) .ptab.c-or { --pc: #e0730d; } html:not(.evening) .ptab.c-gd { --pc: #7c3aed; } html:not(.evening) .ptab.c-bl { --pc: #1d6fe0; }
.pt-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--pc) 92%, #fff), color-mix(in srgb, var(--pc) 70%, #000)); box-shadow: 0 2px 8px color-mix(in srgb, var(--pc) 45%, transparent); }
.pt-ico svg { width: 20px; height: 20px; overflow: visible; }
.pt-t { color: inherit; font-size: inherit; }
.pt-bd { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 22%, transparent); color: var(--pc); }

.ic-bt .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pt-draw 3.2s ease-in-out infinite; }
.ic-bt .dot { animation: pt-pop 3.2s ease-in-out infinite; transform-origin: 19px 6px; }
.ic-tr .cup { transform-origin: 12px 20px; animation: pt-sway 2.6s ease-in-out infinite; }
.ic-tr .sp { stroke-width: 1.6; opacity: 0; animation: pt-spark 2.6s ease-in-out infinite; }
.ic-vp .sh { transform-origin: 12px 12px; animation: pt-shield 2.8s ease-in-out infinite; }
.ic-vp .ck { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pt-draw 2.8s ease-in-out infinite; }
@keyframes pt-draw { 0%, 12% { stroke-dashoffset: 1; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: .3; } }
@keyframes pt-pop { 0%, 50% { transform: scale(0); } 62% { transform: scale(1.6); } 75%, 100% { transform: scale(1); } }
@keyframes pt-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes pt-spark { 0%, 35% { opacity: 0; transform: scale(.4); } 55% { opacity: 1; transform: scale(1.15); } 80%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes pt-shield { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .pt-ico * { animation: none !important; stroke-dashoffset: 0 !important; } .ic-tr .sp { opacity: 1; } }
@media (max-width: 640px) { .prodtabs { gap: 8px; padding: 7px 10px 9px; } .ptab { padding: 6px 12px 6px 7px; font-size: 13.5px; gap: 8px; } .pt-ico { width: 30px; height: 30px; } .pt-bd { display: none; } }


header .prodtabs { flex: 0 0 calc(100% + 40px); margin: 0 -20px -12px; border-bottom: 0; border-top: 1px solid var(--line); background: transparent; }
@media (max-width: 640px) { header .prodtabs { flex-basis: calc(100% + 24px); margin: 0 -12px -12px; } }

html:not(.evening) .ptab { background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 14%, #fff), color-mix(in srgb, var(--pc) 5%, #fff)); }
html:not(.evening) .ptab.on { background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 24%, #fff), color-mix(in srgb, var(--pc) 9%, #fff)); }
html:not(.evening) .ptab:hover { box-shadow: 0 6px 16px color-mix(in srgb, var(--pc) 22%, transparent); }
html:not(.evening) .pt-bd { background: color-mix(in srgb, var(--pc) 16%, #fff); }

@media (max-width: 640px) { .prodtabs { gap: 6px; padding: 7px 8px 9px; } .ptab { padding: 5px 10px 5px 6px; font-size: 12.5px; gap: 6px; border-radius: 11px; } .pt-ico { width: 26px; height: 26px; border-radius: 8px; } .pt-ico svg { width: 16px; height: 16px; } }
@media (max-width: 360px) { .ptab { padding: 5px 8px 5px 5px; font-size: 12px; } }


header .right { flex-direction: column; align-items: flex-end; gap: 8px; }
header .right-sub { display: inline-flex; align-items: center; gap: 10px; }
header .right-sub .lang { position: static; order: 0; margin: 0; height: 32px; box-sizing: border-box; align-items: center; }
header .right-sub .lang button { height: 26px; min-width: 38px; padding: 0 10px; font-size: 12.5px; }
header .right-sub .tone-sw { margin: 0; }
@media (max-width: 640px) {
  header .right { align-items: flex-end; }
  header .right-sub .lang, header .lang { position: static; top: auto; right: auto; }
}





.prodtabs .right-sub { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 10px; flex: none; padding-left: 12px; }
.prodtabs .right-sub .lang { position: static; margin: 0; height: 32px; box-sizing: border-box; align-items: center; }
.prodtabs .right-sub .lang button { height: 26px; min-width: 38px; padding: 0 10px; font-size: 12.5px; }
.prodtabs .right-sub .tone-sw { margin: 0; }



@media (min-width: 641px) {
  .welcome-in { padding-top: 14px; padding-bottom: 12px; gap: 12px; min-height: 0; }
  .welcome-down { gap: 6px; }
  .welcome-down i { width: 44px; height: 44px; font-size: 21px; }
}
@media (min-width: 901px) { .prodtabs { padding-top: 5px; padding-bottom: 7px; } .ptab { padding: 5px 14px 5px 7px; } .pt-ico { width: 30px; height: 30px; } .pt-ico svg { width: 18px; height: 18px; } }



@media (max-width: 640px) {
  header { padding: 10px 12px 0; gap: 8px; row-gap: 8px; }
  .brand { gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .brand-txt b { font-size: 17px; line-height: 1.15; }
  .brand-txt i { font-size: 11.5px; }
  header .right { order: 2; flex: 1 1 100%; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 8px; margin: 0; min-width: 0; }
  header .right .gin { flex: 1 1 auto; min-width: 0; max-width: 220px; min-height: 36px; padding: 0 12px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  header .right .cab { flex: 1 1 auto; min-width: 0; padding-left: 0; border-left: 0; gap: 8px; }
  header .right .cab #who { min-width: 0; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
  header .right .cab .link { white-space: nowrap; font-size: 12px; }
  header .right-sub { flex: none; gap: 6px; }
  header .right-sub .tone-sw button { width: 24px; min-width: 24px; height: 24px; line-height: 24px; font-size: 13px; }
  header .right-sub .lang { height: 30px; }
  header .right-sub .lang button { height: 24px; min-width: 32px; padding: 0 8px; font-size: 12px; }
  header .prodtabs { order: 3; margin: 0 -12px; padding: 7px 10px 8px; border-top: 1px solid var(--line); }
  header > .ad { order: 4; margin: 0 0 8px; padding: 8px 9px 4px; }
  header > .ad .ad-s { display: none; }
  header > .ad .ad-t { font-size: 13px; }
}


.lg-card { max-width: 420px; padding: 22px 22px 20px; border-radius: 16px; }
.lg-logo { display: block; width: 84px; height: 84px; margin: 4px auto 14px; border-radius: 18px; object-fit: cover; }
.lg-h { margin: 0 0 8px; text-align: left; font-size: 22px; font-weight: 800; }
.lg-p { text-align: left; font-size: 15px; margin: 0 0 18px; }
.lg-go { padding: 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink, #fff); font-size: 16px; font-weight: 800; }
.lg-go:hover { background: var(--accent); filter: brightness(1.07); }
html.evening .lg-go { color: #1a1208; }
.lg-say { text-align: left; }
.lg-logo { margin-bottom: 18px; }
.lg-say { text-align: center; }


@media (min-width: 1001px) {
  header:has(> .ad) { padding-top: 11px; row-gap: 11px; }
}


.tp-veil { position: fixed; inset: 0; z-index: 1002; background: rgba(8, 12, 24, .62); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tp-card { position: relative; width: 100%; max-width: 420px; padding: 28px 26px 22px; border-radius: 20px; text-align: center; color: var(--text); background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .5); background-image: radial-gradient(420px 220px at 50% -10%, color-mix(in srgb, #f2a93b 22%, transparent), transparent 70%); }
.tp-ic { display: grid; place-items: center; margin: 0 auto 14px; width: 92px; height: 92px; border-radius: 24px; background: color-mix(in srgb, #f2a93b 14%, transparent); border: 1px solid color-mix(in srgb, #f2a93b 40%, transparent); }
.tp-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font-size: 16px; cursor: pointer; }
.tp-x:hover { background: var(--tint); color: var(--text); }
.tp-t { font-size: 22px; line-height: 1.3; font-weight: 800; }
.tp-s { margin: 10px 0 22px; font-size: 18px; font-weight: 800; color: var(--plus); background: linear-gradient(100deg, var(--plus) 0%, var(--plus) 38%, color-mix(in srgb, var(--plus) 40%, #fff) 50%, var(--plus) 62%, var(--plus) 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: tp-shine 2.6s linear infinite; }
@keyframes tp-shine { from { background-position: 125% 0; } to { background-position: -125% 0; } }
@media (prefers-reduced-motion: reduce) { .tp-s { animation: none; background: none; -webkit-text-fill-color: var(--plus); } }
.tp-go, .tp-later { display: block; width: 100%; margin: 0 0 10px; padding: 14px; border-radius: 12px; font-size: 16px; font-weight: 800; cursor: pointer; }
.tp-go { border: 0; color: var(--accent-ink, #fff); background: var(--accent); }
.tp-later { color: var(--text); background: var(--tint); border: 1px solid var(--line); }
.tp-go:hover, .tp-later:hover { filter: brightness(1.06); }
@media (max-width: 640px) { .tp-card { padding: 24px 18px 16px; } .tp-t { font-size: 20px; } }

.tp-fly { position: fixed; z-index: 1003; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, #f2a93b 22%, var(--panel)); border: 2px solid #f2a93b; box-shadow: 0 0 22px rgba(242, 169, 59, .75); pointer-events: none; }
.tp-mark { position: fixed; z-index: 1003; pointer-events: none; overflow: visible; }
.tp-mark path { fill: none; stroke: #1fd073; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 7px rgba(31, 208, 115, .85)); animation: tp-draw .65s ease-out forwards; }
@keyframes tp-draw { to { stroke-dashoffset: 0; } }


.sup-link { display: inline-flex; align-items: center; gap: 6px; height: 32px; box-sizing: border-box; padding: 0 12px 0 6px; border: 1px solid var(--line, #d7dde3); border-radius: 999px; color: var(--dim, #5f6874); font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; flex: none; }
.sup-link img { width: 22px; height: 22px; display: block; }
.sup-link:hover { color: var(--text, #1c2430); border-color: var(--accent, #1a5fd0); }


@media (max-width: 640px) {
  header:has(#rightSub) { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 8px; row-gap: 8px; align-items: center; }
  header:has(#rightSub) > .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  header:has(#rightSub) .right, header:has(#rightSub) .right-sub { display: contents; }
  header:has(#rightSub) .right-sub .tone-sw { grid-column: 2; grid-row: 1; }
  header:has(#rightSub) .right-sub .lang { grid-column: 3; grid-row: 1; }
  header:has(#rightSub) .right .gin, header:has(#rightSub) .right .cab { grid-column: 1; grid-row: 2; justify-self: start; max-width: 100%; }
  header:has(#rightSub) .right-sub .sup-link { grid-column: 2 / 4; grid-row: 2; justify-self: end; }
  header:has(#rightSub) > .prodtabs { grid-column: 1 / -1; grid-row: 3; }
  header:has(#rightSub) > .ad { grid-column: 1 / -1; grid-row: 4; }
}


@media (min-width: 641px) {
  html.gbw-on header .cab { min-width: 336px; }
}
@media (max-width: 640px) {
  html.gbw-on header:has(#rightSub) { grid-template-rows: auto auto 36px auto auto; row-gap: 8px; }
  html.gbw-on header:has(#rightSub) .right .cab { grid-column: 1 / -1; grid-row: 2; align-self: center; padding-left: 0; row-gap: 0; }
  html.gbw-on header:has(#rightSub) .right-sub .sup-link { grid-column: 2 / 4; grid-row: 3; justify-self: stretch; justify-content: center; height: 36px; box-sizing: border-box; }
  html.gbw-on header:has(#rightSub) > .prodtabs { grid-row: 4; }
  html.gbw-on header:has(#rightSub) > .ad { grid-row: 5; }
}




body.locked.has-run .lockable { display: grid; }
body.locked.has-run .lockable > * { grid-area: 1 / 1; min-width: 0; }
body.locked.has-run .lockable > :not(.lock-card) { align-self: start; }
body.locked.has-run .lockable > .lock-card { position: relative; inset: auto; align-self: center; justify-self: center; }
body.locked.has-run .lockable:has(> #cards), body.locked.has-run .pick .lockable { min-height: 0; }
.lock-in { position: relative; }
.lock-in .lock-x { position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; padding: 0; margin: 0; border-radius: 50%;
  background: transparent; color: var(--dim); border: 0; box-shadow: none; font-size: 22px; line-height: 28px; font-weight: 400; cursor: pointer; }
.lock-in .lock-x:hover { background: rgba(22, 163, 74, .10); color: var(--text); }
.lock-pill { width: auto; margin: 0; padding: 9px 18px; border-radius: 999px; background: #16a34a; color: #fff; border: 0;
  font-size: 14px; font-weight: 700; box-shadow: 0 6px 16px rgba(22, 163, 74, .3); cursor: pointer; }
.lock-pill:hover { background: #15803d; }



.lock-in { background: color-mix(in srgb, var(--panel, #fff) 97%, transparent); }
.lock-in p, .lock-in .lock-note, .lock-in .lock-or, .lock-in .lock-say { color: var(--text); }
.lock-in p { font-size: 14px; }
.lock-in .lock-note { font-size: 13.5px; line-height: 1.45; }
.lock-in .lock-as { color: color-mix(in srgb, var(--text) 82%, var(--panel, #fff)); opacity: 1; font-size: 13px; line-height: 1.45; }
.lock-in .lock-or { font-size: 13.5px; }
.lock-card.small .lock-in.m-noref p { font-size: 13px; }


.lock-in .lock-x { top: 8px; right: 8px; width: 34px; height: 34px; font-size: 24px; line-height: 32px; font-weight: 500;
  color: var(--text); background: color-mix(in srgb, var(--text) 12%, transparent); z-index: 2; }
@media (hover: hover) { .lock-in .lock-x:hover { background: color-mix(in srgb, var(--text) 22%, transparent); } }
@media (hover: none) { .lock-in .lock-x:hover { background: color-mix(in srgb, var(--text) 12%, transparent); color: var(--text); } }



@media (min-width: 641px) {
  html.gbw-on header .cab { display: grid; grid-template-columns: auto 1px auto auto auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 1px;
    align-items: center; justify-content: end; min-width: 0; padding-left: 0; border-left: 0; margin-left: auto; }
  html.gbw-on header .cab::before { content: ""; grid-column: 2; grid-row: 1 / 3; width: 1px; height: 34px; background: var(--line); }
  html.gbw-on header .cab .gbw-btn { grid-column: 1; grid-row: 1 / 3; align-self: center; justify-self: end; margin: 0; }
  html.gbw-on header .cab img, html.gbw-on header .cab .ini { grid-column: 3; grid-row: 1 / 3; margin-right: 0; }
  html.gbw-on header .cab #who, html.gbw-on header .cab:has(.gbw-btn) #who { grid-column: 4 / 6; grid-row: 1; justify-self: center; text-align: center; }
  html.gbw-on header .cab #who + #out { grid-column: 4 / 6; grid-row: 2; justify-self: center; text-align: center; }
  html.gbw-on header .cab #adm { grid-column: 4; grid-row: 2; justify-self: end; }
  html.gbw-on header .cab #adm + #out { grid-column: 5; grid-row: 2; justify-self: start; }
}


.lock-head { position: relative; }
.lock-head b { padding: 0 38px; }
.lock-head .lock-x { position: absolute; top: -6px; right: -8px; z-index: 3; }



@media (max-width: 1000px) {
  #botPop .bot-pop-x { z-index: 8; }
  #botPop:not(:has(.bot-pop-ask)) > .panel { margin-top: 40px; }
}


.lock-in a.bot-name { display: inline; margin: 0; font-size: inherit; font-weight: 600; color: var(--accent); text-decoration: underline; }
.lock-in a.bot-name:hover { color: var(--text); }


.lock-in .lock-make + button { margin-top: 10px; }


.lock-in .lock-steps { display: inline-block; margin: 0 0 12px; padding: 0 0 0 22px; text-align: left; color: var(--text); font-size: 14px; line-height: 1.45; }
.lock-in .lock-steps li { margin: 0 0 4px; }


.lock-in .lock-make + button { display: block; margin: 10px auto 0; }



.psw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; flex: none; background: #3a455b; border: 1px solid #5d6b88; }   
.psa { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 15px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--dim); text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.psa svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.psa:hover { color: var(--text); }
.psa.on { background: #566480; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.psa.on svg { stroke: var(--accent); }
html:not(.evening) .psw { background: linear-gradient(#e3ebf8, #d0def2); border-color: #9fb4d9; box-shadow: inset 0 1px 0 #f2f6fd, 0 3px 10px rgba(20, 30, 60, .16); }
html:not(.evening) .psa { color: #2f3b4d; }
html:not(.evening) .psa:hover { color: #16191d; }
html:not(.evening) .psa.on { background: #1a5fd0; color: #fff; box-shadow: 0 2px 6px rgba(26, 95, 208, .35); }
html:not(.evening) .psa.on svg { stroke: #fff; }
#welcome, #work { scroll-margin-top: var(--hdr, 60px); }
@media (max-width: 640px) { .psa { height: 32px; padding: 0 10px; gap: 6px; font-size: 13px; } .psa svg { width: 16px; height: 16px; } }
@media (max-width: 420px) { .psa { padding: 0 9px; } .psa svg { display: none; } }
html:not(.evening) header .prodtabs { background: #eef3fb; }   


.psa svg.ico, .psa.on svg.ico, html:not(.evening) .psa.on svg.ico { stroke: none; fill: none; width: 20px; height: 20px; overflow: visible; }
.psa .ico .f { fill: var(--ic); } .psa .ico .s { stroke: var(--ic); }
#ptBots { --ic: #4aa8ff; } #ptBt { --ic: #2fd08a; } #ptTour { --ic: #f5b84a; } #ptVpn { --ic: #9b87ff; }
html:not(.evening) #ptBots { --ic: #2f7bf0; } html:not(.evening) #ptBt { --ic: #12a56a; } html:not(.evening) #ptTour { --ic: #e8960c; } html:not(.evening) #ptVpn { --ic: #7a5af0; }
.ico .bot-body { animation: icBob 2.2s ease-in-out infinite; }
.ico .eye { transform-box: fill-box; transform-origin: center; animation: icBlink 3.4s infinite; }
.ico .bot-ball { animation: icGlow 1.3s ease-in-out infinite; }
.ico .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: icBar 1.7s ease-in-out infinite; }
.ico .b2 { animation-delay: .18s; } .ico .b3 { animation-delay: .36s; }
.ico .cup { transform-origin: 50% 90%; animation: icSway 2.3s ease-in-out infinite; }
.ico .vp-sh { transform-box: fill-box; transform-origin: center; animation: icShield 2.1s ease-in-out infinite; }
.ico .vp-ck { stroke-dasharray: 1; stroke-dashoffset: 1; animation: icDraw 2.4s ease-in-out infinite; }
@keyframes icBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.2px); } }
@keyframes icBlink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes icGlow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes icBar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
@keyframes icSway { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes icShield { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes icDraw { 0%, 12% { stroke-dashoffset: 1; } 50%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@media (prefers-reduced-motion: reduce) { .ico * { animation: none !important; } .ico .vp-ck { stroke-dashoffset: 0; } }


html:not(.evening) .psa.on .ico .f { fill: #fff; } html:not(.evening) .psa.on .ico .s { stroke: #fff; }
html:not(.evening) .psa.on .ico .eye { fill: #1a5fd0; } html:not(.evening) .psa.on .ico .vp-ck { stroke: #1a5fd0; }


@media (hover: hover) {
  .welcome-down { cursor: pointer; }
  
  .welcome-down i { transition: background .1s ease, color .1s ease, border-color .1s ease, scale .12s ease; }
  .welcome-down i::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 0 7px rgba(74, 222, 128, .2), 0 10px 28px rgba(74, 222, 128, .5); opacity: 0; transition: opacity .1s ease; pointer-events: none; }
  .welcome-down:hover i::before { opacity: 1; }
  .welcome-down:hover i { background: #4ade80; color: #0b2a17; border-color: #86efac; scale: 1.14; }
  .welcome-down:hover i::after { border-color: rgba(134, 239, 172, .9); }
  .welcome-down span { transition: filter .2s ease; }
  .welcome-down:hover span { filter: brightness(1.3); }
  .psa svg.ico { transition: scale .18s ease; }
  .psa:hover svg.ico { scale: 1.2; }
  .psa { transition: color .15s, background .15s, box-shadow .15s; }
  .psa:not(.on):hover { background: rgba(255, 255, 255, .12); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
  html:not(.evening) .psa:not(.on):hover { background: rgba(26, 95, 208, .12); box-shadow: 0 2px 8px rgba(26, 95, 208, .2); }
}


@media (max-width: 900px) { header .prodtabs { justify-content: center; } }


footer .legal { max-width: 760px; margin: 10px auto 0; font-size: 11px; line-height: 1.5; opacity: .9; }
footer .legal a, .consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent { margin: 12px 0 0; font-size: 12px; color: var(--dim); text-align: center; }
.terms h2 { margin-top: 22px; }
.terms ol { padding-left: 20px; }
.terms li { margin: 4px 0; }
.terms .upd { color: var(--dim); font-size: 12px; }


.lg-h.lg-reason { text-align: center; margin: 4px 28px 14px; font-size: 17px; line-height: 1.35; }


body.locked.trial .lockable:not(.pick .lockable):not(#botPanel .lockable) > :not(.lock-card) { filter: none; pointer-events: auto; user-select: auto; }
body.locked.trial .lockable:not(.pick .lockable):not(#botPanel .lockable) > .lock-card { display: none; }
body.locked.trial.has-run .lockable:not(.pick .lockable):not(#botPanel .lockable) { display: block; min-height: 0; }
body.locked.trial.has-run .lockable:not(.pick .lockable):not(#botPanel .lockable) > * { grid-area: auto; }
body.locked.trial .chart-veil { display: none; }
