:root{--app-surface:#111a2c;--app-text:#e8eef8;--app-muted:#b5c2d6;--app-border:#334155;--app-accent:#c4b5fd}
body{overflow-x:clip}
.live-stack{display:flex;flex-direction:column;gap:12px;min-width:0}
.live-card{padding:16px;border:1px solid var(--app-border);border-radius:20px;background:var(--app-surface);color:var(--app-text);overflow-wrap:anywhere;min-width:0}
.live-card h2,.live-card h3{margin:0 0 8px;font-size:17px}
.live-card p{margin:6px 0;line-height:1.9;white-space:pre-wrap}
.live-muted{color:var(--app-muted);font-size:13px}
.live-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.live-btn,.live-input{font:inherit;border:1px solid var(--app-border);border-radius:12px;min-height:44px;padding:10px 12px;background:var(--app-surface);color:var(--app-text);max-width:100%}
.live-btn{cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.live-btn.primary,.live-btn[aria-pressed=true],.live-btn[aria-selected=true]{background:var(--app-accent);color:#1a1430}
.live-btn:disabled{cursor:wait;opacity:.6}
.live-btn:focus-visible,.live-input:focus-visible{outline:2px solid var(--app-accent);outline-offset:3px}
.live-input{width:100%;min-width:0;box-sizing:border-box}
.live-input option{background:var(--app-surface)}
.live-form{display:flex;flex-direction:column;gap:12px}
.live-form label{display:flex;flex-direction:column;gap:6px}
.live-error{color:#fda4af}
.live-status{font-size:13px;line-height:1.8}
.live-wallet{background:var(--reward-surface);border-color:var(--reward-border)}
.live-number{font-size:36px;font-weight:800;font-variant-numeric:tabular-nums}
.sheet-body{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
.sheet-body #sheet-card{min-width:0}
.sheet-body h2{margin:0;font-size:20px}
.live-banner{display:block;color:var(--app-text)!important;text-decoration:none}
.live-banner img{width:100%;max-height:180px;object-fit:cover;border-radius:12px}
[data-search]{width:100%}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.calendar-date{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:end}
.calendar-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.calendar-filters label,.calendar-date label{min-width:0}
.calendar-status{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;font-size:13px}
.calendar-status [role=status]{flex:1;min-width:140px}

.spread-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}
.spread-tabs .live-btn{flex:none;min-height:40px}
.spread-search{display:block}.spread-search .live-input{width:100%;box-sizing:border-box}
.spread-wrap{overflow-x:auto;border:1px solid var(--app-border);border-radius:20px;background:var(--app-surface);-webkit-overflow-scrolling:touch}
.spread-table{border-collapse:separate;border-spacing:0;width:100%;min-width:max-content;color:var(--app-text);font-size:13px}
.spread-table th,.spread-table td{padding:10px 8px;text-align:center;border-bottom:1px solid rgba(148,163,184,.12);white-space:nowrap}
.spread-table tbody tr:last-child>*{border-bottom:0}
.spread-firm,.spread-firm-head{position:sticky;right:0;background:var(--app-surface);text-align:right!important;min-width:112px;z-index:1}
.spread-firm strong{display:block;font-size:13px}.spread-firm small{display:block;color:var(--app-muted);font-size:11px;font-weight:400}
.spread-sort{font:inherit;background:none;border:0;color:var(--app-text);cursor:pointer;display:grid;gap:2px;min-height:44px;min-width:64px;padding:4px;align-content:center;justify-items:center}
.spread-sort small{color:var(--app-muted);font-size:10px;font-weight:400}
.spread-cell{direction:ltr;unicode-bidi:isolate;display:inline-block;min-width:40px;padding:4px 8px;border-radius:8px;font-weight:700;font-variant-numeric:tabular-nums}
.spread-cell.best{background:rgba(55,201,119,.2);outline:1.5px solid #facc15;color:#86efac}
.spread-na{color:var(--app-muted)}
.spread-sub{margin:8px 0 0;font-size:14px;color:var(--app-muted)}


/* Spreads screen bottom navigation: the same rules the prop screen uses (styles are scoped per screen id) */
#s-spreads *{box-sizing:border-box}
#s-spreads a{color:#4ADE80;text-decoration:none}
#s-spreads a:hover{color:#86EFAC}
#s-spreads button{font-family:inherit;cursor:pointer}
#s-spreads .tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:58px;min-height:52px;color:#8A97AD;font-size:11px;font-weight:600}
#s-spreads .tab:hover{color:#E8EEF8}
#s-spreads .tab .ni{width:26px;height:26px;filter:grayscale(.9) brightness(.8);opacity:.8}
#s-spreads .tab:hover .ni{filter:none;opacity:1}
#s-spreads .tab[aria-current] .ni{filter:none;opacity:1;animation:floaty 2.6s ease-in-out infinite}

/* Economic calendar: styles ported from the Prop Kadeh forex news page (same colours, chips, pills and row bars) */
.pkff{direction:rtl;text-align:right;color:#D5DFEC;font-size:14.5px;line-height:1.9;margin:0}
.pkff *{box-sizing:border-box}
.pkff table,.pkff thead,.pkff tbody,.pkff tr,.pkff td,.pkff th,.pkff details,.pkff summary,.pkff div,.pkff span,.pkff p{background-color:transparent!important}
.pkff p{margin:0!important}
.pkff .pkff-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.pkff .pkff-upd{font-size:12.5px;color:#9FB0C6!important}
.pkff .pkff-tg{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:#E6EDF5!important;cursor:pointer;user-select:none;min-height:44px}
.pkff .pkff-tg input{accent-color:#FACC15;width:16px;height:16px;margin:0}
.pkff .pkff-note{font-size:12.5px;line-height:1.9;color:#9FB0C6!important;margin:0 0 12px!important}
.pkff .pkff-wrap{border:1px solid #2A3B57;border-radius:16px;overflow:hidden;background:linear-gradient(180deg,#1A2B47 0%,#14213A 100%)!important;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.pkff details.pkff-d{border-top:1px solid #243650}
.pkff details.pkff-d:first-child{border-top:0}
.pkff summary.pkff-s{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:14px 18px;transition:background .15s;min-height:44px}
.pkff summary.pkff-s::-webkit-details-marker{display:none}
.pkff summary.pkff-s:hover{background-color:rgba(255,255,255,.04)!important}
.pkff .pkff-chev{flex:none;width:22px;height:22px;border-radius:50%;border:1.5px solid #3B4F6E;display:inline-flex;align-items:center;justify-content:center;color:#9FB0C6;font-size:11px;transition:transform .2s}
.pkff details[open]>summary .pkff-chev{transform:rotate(180deg);border-color:#FACC15;color:#FACC15}
.pkff .pkff-dn{font-size:16px;font-weight:800;color:#FFFFFF!important}
.pkff .pkff-dd{font-size:13px;color:#9FB0C6!important;margin-right:2px}
.pkff .pkff-sp{flex:1 1 auto}
.pkff .pkff-ch{display:inline-block;font-size:12px;font-weight:700;border-radius:20px;padding:2px 11px;white-space:nowrap;background-color:#2A3B57!important;color:#D5DFEC!important}
.pkff .pkff-ch.hi{background-color:rgba(248,113,113,.18)!important;color:#FCA5A5!important}
.pkff .pkff-ch.td{background-color:#FACC15!important;color:#1A1300!important;font-weight:800}
.pkff details.pkff-today>summary{background:linear-gradient(90deg,rgba(250,204,21,.16),rgba(250,204,21,0) 70%)!important}
.pkff details.pkff-today>summary .pkff-dn{color:#FACC15!important}
.pkff .pkff-tw{overflow-x:auto}
.pkff table{border-collapse:collapse;width:100%;min-width:640px}
.pkff thead th{color:#9FB0C6!important;font-weight:700;font-size:12.5px;padding:8px 16px;text-align:right;white-space:nowrap;border-top:1px solid #243650;border-bottom:1px solid #243650;background-color:rgba(255,255,255,.02)!important}
.pkff td{padding:11px 16px;border-top:1px solid #1F3049;color:#D5DFEC!important;vertical-align:middle}
.pkff tbody tr:nth-child(even) td{background-color:rgba(255,255,255,.025)!important}
.pkff tbody tr:hover td{background-color:rgba(250,204,21,.06)!important}
.pkff td.pkff-t{white-space:nowrap;font-weight:800;color:#FACC15!important;direction:ltr;text-align:right;font-size:14px}
.pkff .pkff-c{display:inline-block;min-width:44px;text-align:center;font-weight:800;font-size:12px;border-radius:8px;padding:2px 8px;direction:ltr;letter-spacing:.4px;background-color:#2A3B57!important;color:#E6EDF5!important}
.pkff .pkff-c.usd{background-color:rgba(34,197,94,.18)!important;color:#86EFAC!important}
.pkff .pkff-c.eur{background-color:rgba(96,165,250,.18)!important;color:#93C5FD!important}
.pkff .pkff-c.gbp{background-color:rgba(167,139,250,.18)!important;color:#C4B5FD!important}
.pkff .pkff-c.jpy{background-color:rgba(248,113,113,.18)!important;color:#FCA5A5!important}
.pkff .pkff-c.aud{background-color:rgba(45,212,191,.18)!important;color:#5EEAD4!important}
.pkff .pkff-c.nzd{background-color:rgba(52,211,153,.18)!important;color:#6EE7B7!important}
.pkff .pkff-c.cad{background-color:rgba(251,146,60,.18)!important;color:#FDBA74!important}
.pkff .pkff-c.chf{background-color:rgba(244,114,182,.18)!important;color:#F9A8D4!important}
.pkff .pkff-c.cny{background-color:rgba(251,191,36,.18)!important;color:#FCD34D!important}
.pkff td.pkff-ev{direction:ltr;text-align:right;min-width:220px;color:#EEF3F9!important;font-weight:600}
.pkff td.pkff-n{direction:ltr;text-align:right;white-space:nowrap;color:#B8C4D4!important}
.pkff .pkff-i{display:inline-block;font-size:12px;font-weight:800;border-radius:20px;padding:2px 11px;white-space:nowrap}
.pkff .pkff-i.hi{background-color:rgba(248,113,113,.2)!important;color:#FCA5A5!important}
.pkff .pkff-i.md{background-color:rgba(251,191,36,.2)!important;color:#FCD34D!important}
.pkff .pkff-i.lo{background-color:rgba(52,211,153,.16)!important;color:#6EE7B7!important}
.pkff .pkff-i.ho{background-color:rgba(148,163,184,.2)!important;color:#CBD5E1!important}
.pkff tr.hi td:first-child{box-shadow:inset 4px 0 0 #F87171}
.pkff tr.md td:first-child{box-shadow:inset 4px 0 0 #FBBF24}
.pkff tr.lo td:first-child{box-shadow:inset 4px 0 0 rgba(52,211,153,.55)}
.pkff.only-hi tr:not(.imp){display:none}
.pkff.only-hi tr.imp{display:table-row!important}
.pkff tr.past td{opacity:.5}
.pkff .pkff-empty{padding:12px 18px;color:#9FB0C6!important;font-size:13.5px}
@media(max-width:640px){.pkff{font-size:14px}
.pkff td,.pkff thead th{padding:9px 10px}
.pkff summary.pkff-s{padding:12px 14px}
.pkff .pkff-dn{font-size:15px}}

/* Management panel screen */
#s-admin *{box-sizing:border-box}
#s-admin a{color:#C4B5FD;text-decoration:none}
#s-admin button{font-family:inherit;cursor:pointer}
.adm-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.adm-bar h1{margin:0;font-size:20px}
.adm-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.adm-tile{display:flex;flex-direction:column;gap:4px;align-items:flex-start;padding:14px;border-radius:16px;border:1px solid var(--app-border);background:var(--app-surface);color:var(--app-text);text-align:right;min-height:72px}
.adm-tile strong{font-size:22px}.adm-tile span{font-size:12px;color:var(--app-muted)}
.adm-tile:disabled{cursor:default}
.adm-modules{display:grid;gap:10px}
.adm-module{display:flex;flex-direction:column;gap:4px;align-items:flex-start;padding:14px 16px;border-radius:16px;border:1px solid var(--app-border);background:var(--app-surface);color:var(--app-text);text-align:right;min-height:64px}
.adm-module span{font-size:12.5px;color:var(--app-muted)}
.adm-list{display:grid;gap:8px}
.adm-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;border:1px solid var(--app-border);background:var(--app-surface);color:var(--app-text);text-align:right;min-height:56px}
.adm-item>div:first-child{display:grid;gap:2px;min-width:0}.adm-item small{color:var(--app-muted);font-size:12px;overflow-wrap:anywhere}
.adm-item strong{overflow-wrap:anywhere}
.adm-chip{display:inline-block;padding:2px 10px;border-radius:20px;font-size:11.5px;font-weight:700;background:#2A3B57;color:#D5DFEC;white-space:nowrap}
.adm-chip.ok{background:rgba(52,211,153,.18);color:#6EE7B7}.adm-chip.bad{background:rgba(248,113,113,.2);color:#FCA5A5}
.adm-field{display:grid;gap:6px;font-size:13.5px}.adm-field>span{color:var(--app-muted)}
.adm-field small{font-size:12px}
.adm-field textarea.live-input{resize:vertical;min-height:90px}
.adm-field .live-input,.adm-form .live-input{width:100%}
.adm-check{display:flex;align-items:center;gap:10px;min-height:44px}.adm-check input{width:18px;height:18px;accent-color:#facc15}
.adm-ro{margin:0;padding:10px 12px;border-radius:12px;background:#0a0f1c;white-space:pre-wrap;overflow-wrap:anywhere}
.adm-image{display:grid;gap:8px}.adm-image img{max-width:140px;max-height:100px;border-radius:12px;border:1px solid var(--app-border);object-fit:contain;background:#0a0f1c}
.adm-kv{display:grid;gap:8px}.adm-kv-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) 44px;gap:6px}
.adm-hist{padding:10px 0;border-top:1px solid var(--app-border);font-size:13px}.adm-hist p{margin:4px 0}

/* PDF features (user side) */
.unread-badge{position:absolute;top:-4px;left:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#ef4444;color:#fff;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.unread-badge[hidden]{display:none}
.kv{display:grid;gap:6px;margin:8px 0}.kv div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:8px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.04)}
.kv dt{color:var(--app-muted);font-size:13px}.kv dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.cmp-wrap{overflow-x:auto;border:1px solid var(--app-border);border-radius:16px}
.cmp{border-collapse:collapse;width:100%;font-size:13px;color:var(--app-text)}.cmp th,.cmp td{padding:10px;border-bottom:1px solid rgba(148,163,184,.14);text-align:right;vertical-align:top}
.cmp thead th{background:rgba(255,255,255,.04)}.cmp tbody th{color:var(--app-muted);font-weight:600;white-space:nowrap}
.calc label{display:grid;gap:4px;margin-bottom:8px}.calc-out{font-weight:700;color:#86efac}
.live-card.unread{border-color:#facc15}
.poll .live-btn{width:100%;margin:4px 0}.poll-bar{position:relative;display:flex;justify-content:space-between;gap:8px;padding:10px;border-radius:10px;background:rgba(255,255,255,.05);margin:6px 0;overflow:hidden}
.poll-bar span{position:absolute;inset:0 0 0 auto;background:rgba(56,189,248,.22)}.poll-bar.mine span{background:rgba(52,211,153,.3)}.poll-bar b,.poll-bar em{position:relative;font-style:normal}
.reply{padding:8px 10px;border-right:3px solid #38bdf8;background:rgba(56,189,248,.08);border-radius:8px}
.avatar{width:64px;height:64px;border-radius:50%;object-fit:cover}
.task-img{width:100%;max-height:180px;object-fit:cover;border-radius:12px}
.pre{white-space:pre-wrap}.kv-link{overflow-wrap:anywhere}
.pkff tr[data-event-id]{cursor:pointer}.pkff tr.pkff-detail td{background:rgba(250,204,21,.05)!important;white-space:normal}.pkff tr.pkff-detail .kv{max-width:520px}
body.off-reviews [data-action="reviews"],body.off-reviews [data-do="review"],body.off-reviews [data-do="review-report"],
body.off-cashback [data-action="cashback"],body.off-cashback [data-do="cashback"],body.off-cashback [data-do="cashback-list"],body.off-cashback [data-do="evidence"],
body.off-invites [data-do="invites"],body.off-calculator [data-action="calculator"],body.off-calculator [data-do="calculator"],body.off-polls .poll{display:none!important}
.adm-preview{border-style:dashed}.adm-kv-row.list{grid-template-columns:minmax(0,1fr) 44px}
