:root { color-scheme: dark; --bg:#080a0c; --card:#131519; --card2:#181b20; --card3:#1c1f25; --line:#292d33; --green:#36d779; --green2:#008e4a; --text:#f0f4f1; --muted:#7f8893; --red:#ff5366; --amber:#edb451; --radius:13px; font:14px/1.48 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
* { box-sizing:border-box; } html {background:var(--bg);min-height:100%;} body{margin:0;background:radial-gradient(ellipse 80% 200px at 50% -90px,#064a392b,transparent),var(--bg);color:var(--text);min-height:100vh;} button,input,select,textarea{font:inherit;} button{cursor:pointer;} button:disabled{opacity:.42;cursor:not-allowed;} a{color:var(--green)} input,select,textarea { color:var(--text);background:var(--card2);border:1px solid #30353a;border-radius:10px;outline:none;padding:12px;width:100%;min-height:44px;} input:focus,select:focus,textarea:focus{border-color:var(--green)} input::placeholder, textarea::placeholder{color:#68727c} textarea{min-height:70px;resize:vertical} label{color:var(--muted);font-size:11px;font-weight:700;display:block;margin:0 0 5px;letter-spacing:.02em} h1,h2,h3,p{margin:0} h1{font-size:20px;letter-spacing:-.045em;} h2{font-size:15px;margin:0 0 12px;} h3{font-size:13px} small{font-size:11px;color:var(--muted)} .app{min-height:100vh;max-width:490px;margin:0 auto;padding:0 14px 103px;background:linear-gradient(180deg,#0b0f10 0,#080a0c 210px);box-shadow:0 0 60px #0009}.app.admin{max-width:1120px;padding-bottom:38px}.topline{height:4px;background:linear-gradient(90deg,transparent,#009f6b,#4dfca0,transparent);box-shadow:0 0 20px #1ed88233}.brandbar{display:flex;align-items:center;justify-content:space-between;padding:16px 0 14px;gap:10px}.brand{display:flex;align-items:center;gap:9px;font-weight:750;font-size:13px}.brandlogo{width:25px;height:25px;border:1px solid #32644d;border-radius:7px;display:grid;place-items:center;color:var(--green);font-size:19px;font-weight:1000;text-shadow:0 0 10px #30d77b6b;background:#0b1511;transform:skew(-7deg)}.tag{border:1px solid #16673b;background:#0b251b;color:var(--green);border-radius:999px;font-size:10px;padding:4px 9px;font-weight:800;letter-spacing:.08em}.tag.gray{border-color:var(--line);background:#14171b;color:#9ea8ad}.tag.amber{border-color:#756023;background:#332a10;color:#f1ca70}.heroheader{margin:0 0 14px}.subtitle{color:var(--muted);font-size:11px;margin:5px 0 0}.seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#111318;border:1px solid #25282c;padding:3px;border-radius:11px;margin:10px 0}.seg.three{grid-template-columns:repeat(3,1fr)}.seg button{border:0;border-radius:8px;background:transparent;color:#8b9199;padding:10px 5px;text-transform:uppercase;font-size:10px;font-weight:900;letter-spacing:.035em}.seg button.active{background:linear-gradient(180deg,#4aec94,#0d9952);color:#082417;box-shadow:inset 0 1px #92ffc6a6}.card{background:#131519;border:1px solid #24272c;border-radius:var(--radius);padding:14px;margin:10px 0}.card.subtle{background:#111317}.card.highlight{background:linear-gradient(130deg,#101a16 0,#14171b 60%);border-color:#234e37}.eyebrow{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:750;letter-spacing:.095em}.amount{font-size:27px;font-weight:750;letter-spacing:-.055em;line-height:1.12;margin:7px 0 12px}.amount.big{font-size:34px}.positive{color:var(--green)!important}.negative{color:var(--red)!important}.muted{color:var(--muted)}.small{font-size:11px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.ellipsize{overflow-wrap:anywhere}.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.stats.three{grid-template-columns:repeat(3,1fr)}.stat{background:var(--card2);border:1px solid #22262b;padding:11px;border-radius:10px;min-width:0}.stat strong{display:block;font-size:14px;white-space:normal;margin-top:3px;letter-spacing:-.03em}.stat .eyebrow{font-size:9px}.btn{background:linear-gradient(180deg,#47e988,#09944b);border:0;border-radius:10px;color:#052716;padding:12px 14px;font-weight:850;min-height:42px;transition:filter .15s;}.btn:hover{filter:brightness(1.1)}.btn.secondary{background:#15181d;color:var(--text);border:1px solid #2a2e32}.btn.danger{background:#ef5260;color:#240a11}.btn.ghost{background:transparent;color:var(--green);border:1px solid #18512f}.btn.tiny{padding:7px 10px;min-height:31px;font-size:11px;border-radius:8px}.btn.full{width:100%}.buttons{display:flex;gap:7px;margin:8px 0}.buttons>.btn{flex:1}.field{margin:12px 0}.notice{font-size:11px;color:#acb6ba;line-height:1.6;padding:10px 12px;border:1px solid #24412d;border-radius:11px;background:#101f17;margin:10px 0}.notice.warning{border-color:#6b4c24;background:#261b0f;color:#f1d7aa}.sectiontitle{display:flex;justify-content:space-between;align-items:center;margin:20px 0 9px}.sectiontitle h2{margin:0}.listrow{border:1px solid #25282d;border-radius:12px;background:#14161a;margin:7px 0;padding:11px;display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0}.listrow .name{font-weight:700;font-size:12px}.listrow .detail{font-size:10px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.listrow .right{font-size:13px;font-weight:750;text-align:right;white-space:nowrap}.trade-icon{display:grid;place-items:center;background:#0e3322;color:#5af09e;border-radius:8px;width:28px;height:32px;font-weight:900;flex-shrink:0}.trade-icon.short{background:#3a1820;color:#ff778a}.status{font-weight:750;font-size:10px;color:var(--amber)}.status.approved{color:var(--green)}.status.rejected{color:var(--red)}.status.aml_review{color:#b89df1}.bottomnav{position:fixed;z-index:12;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:490px;border:1px solid #282c30;border-radius:17px 17px 0 0;background:linear-gradient(#15171b,#0d1013);display:grid;grid-template-columns:repeat(5,1fr);padding:8px 4px max(8px,env(safe-area-inset-bottom));box-shadow:0 -10px 30px #0008}.bottomnav button{display:grid;place-items:center;gap:4px;border:0;background:none;color:#8b939d;padding:6px 0;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.02em}.bottomnav button svg{width:18px;height:18px}.bottomnav button.active{color:var(--green)}.bottomnav button.active svg{filter:drop-shadow(0 0 6px #36d7798b)}.chart{height:180px;display:flex;align-items:end;gap:9px;padding:22px 20px 18px;border-bottom:1px dashed #2b3531;margin:14px 0 10px;background:repeating-linear-gradient(to top,transparent 0,transparent 47px,#202820 48px);}.bar{background:linear-gradient(180deg,#69ffac,#087744);width:100%;min-width:7px;max-width:35px;position:relative;border:1px solid #68ffb04d}.bar:after{content:'';position:absolute;top:-9px;bottom:-8px;width:1px;left:50%;background:#42b974a0}.narrow{max-width:540px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.adminmenu{display:flex;gap:6px;overflow-x:auto;padding:5px 0 9px;scrollbar-width:none;position:sticky;top:0;background:var(--bg);z-index:10}.adminmenu button{flex-shrink:0;border:1px solid var(--line);background:#121519;color:#a2abb0;border-radius:9px;padding:10px;font-size:11px}.adminmenu button.active{background:#173c2b;color:var(--green);border-color:#318e57}.admin .stats{grid-template-columns:repeat(4,1fr)}.admin .admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}.admin .admin-grid>.card{margin:0}.inlinefields{display:flex;gap:8px;align-items:end}.inlinefields>*{flex:1;min-width:0}.logitem{font-size:11px;line-height:1.5;border-bottom:1px solid var(--line);padding:12px 0}.logitem:last-child{border:0}.copy{background:none;border:0;color:var(--green);font-size:11px;font-weight:800}.empty{padding:26px 15px;text-align:center;color:#88919a;font-size:12px}.topnav{margin-bottom:10px;display:flex;align-items:center;justify-content:space-between}.topnav a{font-size:11px;color:#9eabb1;text-decoration:none}.chip{display:inline-block;background:#1b2025;border:1px solid #303840;color:#bdc5c9;padding:2px 7px;border-radius:7px;font-size:10px}.qr{width:174px;height:174px;image-rendering:pixelated;background:white;padding:8px;border-radius:10px;display:block;margin:14px auto}.line{height:1px;background:var(--line);margin:12px 0}.progress{height:7px;background:#27302c;border-radius:999px;overflow:hidden;margin-top:9px}.progress>div{height:100%;border-radius:inherit;background:linear-gradient(90deg,#047541,#58f49d)}#toast{position:fixed;bottom:110px;left:50%;transform:translateX(-50%) translateY(10px);opacity:0;pointer-events:none;background:#253b2e;color:#e8ffed;border:1px solid #4ac27a;border-radius:10px;padding:12px 15px;max-width:min(450px,90vw);z-index:100;font-size:12px;box-shadow:0 10px 40px #0009;transition:.2s}#toast.show{opacity:1;transform:translateX(-50%)}#toast.err{background:#442028;border-color:#ff647c}.modalbg{position:fixed;inset:0;background:#000b;z-index:20;display:grid;place-items:center;padding:16px}.modal{width:100%;max-width:440px;max-height:85vh;overflow:auto;background:#15181d;border:1px solid #343a41;border-radius:16px;padding:18px}.modal h2{margin-bottom:15px}.modalhead{display:flex;justify-content:space-between;align-items:start}.close{background:none;border:0;color:#fff;font-size:24px}.skeleton{height:140px;display:grid;place-content:center;color:var(--muted)}.badge-round{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#15261c;color:var(--green);font-weight:900}.profile-identity{display:flex;align-items:center;gap:10px}.profile-identity .badge-round{flex-shrink:0}.profile-identity h2{margin:0;overflow-wrap:anywhere} .labelled{display:flex;align-items:center;justify-content:space-between;gap:8px}.checkboxline{display:flex;align-items:center;gap:6px;color:#abb2b8;font-size:11px}.checkboxline input{width:auto;min-height:0;accent-color:var(--green)} @media(max-width:700px){.admin .stats{grid-template-columns:repeat(2,1fr)}.admin .admin-grid{grid-template-columns:1fr}} @media(min-width:700px){.admin{padding-inline:28px}.admin .card{padding:20px}.admin .listrow{padding:15px}.admin .brandbar{padding:20px 0}}

.page-enter { animation: page-enter 160ms ease-out both; }
@media (prefers-reduced-motion: reduce) { #botPageContent.page-enter { animation: none; } }

.client .news-entry {
  width: 100%;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  color: var(--text);
}
.news-entry strong, .news-entry .small { display: block; }
.news-entry .small { margin-top: 4px; }
.news-entry-arrow { font-size: 24px; color: var(--green); }
.calendar-back { margin-bottom: 10px; }
.calendar-page { padding-bottom: env(safe-area-inset-bottom, 0px); }
.weekly-news-event { margin-top: 10px; }
.weekly-news-event h2 { margin: 5px 0 7px; }
.weekly-news-event p { margin: 0; line-height: 1.5; }
.calendar-fallback { display: flex; justify-content: center; align-items: center; margin-top: 12px; text-align: center; text-decoration: none; }
.weekly-news-sources { margin-top: 10px; }
.bot-news-post p { margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.bot-news-media { display: block; width: 100%; max-height: min(65vh, 480px); object-fit: contain; margin-top: 12px; border-radius: 10px; background: var(--card2); }
.notification-bell { position: relative; margin-left: auto; display: grid; place-items: center; min-width: 38px; min-height: 38px; }
#notificationCount { position: absolute; top: -5px; right: -5px; min-width: 16px; padding: 2px 4px; border-radius: 999px; background: #badbff; color: #101a29; font-size: 10px; }
#notificationBanner { position: fixed; top: calc(8px + max(env(safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px))); left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 24px)); z-index: 110; pointer-events: none; }
.notification-banner-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0; pointer-events: auto; box-shadow: 0 12px 35px #0008; animation: phone-notification-in 240ms ease-out both; }
.notification-banner-card p { margin-top: 4px; }
@keyframes phone-notification-in { from { opacity: 0; transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .notification-banner-card { animation: none; } }

.app .btn,
.app .seg button,
.app .bottomnav button {
  transition: color 160ms ease, background-color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.app .btn:active,
.app .seg button:active,
.app .bottomnav button:active { transform: scale(.97); }

.app button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

@keyframes page-enter { from { opacity: .93; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .page-enter { animation: none; }

  .app .btn,
  .app .seg button,
  .app .bottomnav button { transition: none; }

  .app .btn:active,
  .app .seg button:active,
  .app .bottomnav button:active { transform: none; }
}

body:has(.app),
.app {
  --card2: #111821;
  --line: #2b3644;
  --muted: #a1adba;
  --green: #b7dbff;
  --text: #edf3fb;
  --radius: 15px;
  --steel-button: linear-gradient(160deg, #f4f8ff 3%, #b9c8da 43%, #8197af 100%);
  color: var(--text);
}

body:has(.app) {
  background: radial-gradient(ellipse at 50% -14%, #26364b, #07090d 48%);
}

.app {
  background: linear-gradient(155deg, #1a2331 0, #090d13 245px, #080b10 100%);
}

.app .topline {
  background: linear-gradient(100deg, transparent 7%, #5b728c 32%, #f4f9ff 54%, #80b1dc 69%, transparent 96%);
  box-shadow: 0 0 18px #98c9f075;
}

.client .topline { position: relative; }

.client .topline::after,
.client .bottomnav::before {
  content: '';
  position: absolute;
  inset: 0 8% auto;
  height: 2px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, #7ba9d14d 22%, #dceeff 50%, #7ba9d14d 78%, transparent);
  box-shadow: 0 0 8px #91c6f39c, 0 0 18px #78b8ed55;
  pointer-events: none;
  animation: client-edge-glow 5.5s ease-in-out infinite alternate;
}

.client .topline::after { top: 1px; }
.client .bottomnav::before { top: -1px; }

@keyframes client-edge-glow {
  from { opacity: .48; }
  to { opacity: .84; }
}

@media (prefers-reduced-motion: reduce) {
  .client .topline::after,
  .client .bottomnav::before { animation: none; opacity: .62; }
}

.app .brandbar { border-bottom: 1px solid #a4c8ef25; margin-bottom: 14px; }

.app .brandlogo {
  color: #edf5ff;
  border-color: #94abc6;
  background: linear-gradient(155deg, #52677c, #1a283a 50%, #0d1623);
  text-shadow: 0 0 10px #b4dbff90;
  box-shadow: inset 0 1px #f1f8ff45, 0 0 12px #9bcafa32;
}

.app h1 { font-size: 23px; }
.app .amount, .app .stat strong { font-variant-numeric: tabular-nums; }
.app .positive { color: #9be0c5 !important; }
.app .negative { color: #ff8fa1 !important; }
.app .card, .app .listrow {
  background: linear-gradient(150deg, #1a2330, #111720 75%);
  border-color: #303e50;
  box-shadow: inset 0 1px #e3efff0c;
}
.app .card.highlight {
  background: linear-gradient(135deg, #26364b, #151e2a 58%, #111720);
  border-color: #51677f;
}
.app .stat, .app .seg {
  background: #0c131d;
  border-color: #2a3748;
}
.app .seg button, .app .bottomnav button { color: var(--muted); }
.app .btn, .modal .btn, .app .seg button.active {
  color: #0b1725;
  background: var(--steel-button);
  box-shadow: inset 0 1px #ffffffad;
}
.app .btn.secondary, .modal .btn.secondary {
  color: var(--text);
  background: linear-gradient(160deg, #263446, #131c29);
  border-color: #3d4e64;
  box-shadow: inset 0 1px #e3efff15;
}
.app .btn.danger, .modal .btn.danger {
  color: #fff1f3;
  background: linear-gradient(155deg, #a83b54, #70283d);
  box-shadow: inset 0 1px #ffd3dd45;
}

.app .btn.ghost, .modal .btn.ghost {
  color: var(--green);
  background: transparent;
  border-color: #49627d;
  box-shadow: none;
}

.app .adminmenu { background: #0a1019; }
.app .adminmenu button { color: var(--muted); background: var(--card2); }
.app .adminmenu button.active {
  color: #0b1725;
  background: var(--steel-button);
  border-color: #b9c8da;
}
.app .adminmenu button:focus-visible { outline-offset: -2px; }
.app .tag:not(.amber) { color: #ccdef2; background: #1c2a3a; border-color: #3d4e64; }
.app .status.approved { color: #9be0c5; }
.app .notice:not(.warning), .modal .notice:not(.warning) {
  color: #c5d5e6;
  background: #111f2d;
  border-color: #344a63;
}
body:has(.app) .modal {
  background: linear-gradient(150deg, #1a2330, #111720 75%);
  border-color: #3d4e64;
}

.app .bottomnav {
  background: linear-gradient(180deg, #1c2634, #0b111b);
  border-color: #3a4a5e;
}
.app .bottomnav button.active { color: #e4f2ff; }
.app .bottomnav button.active svg { filter: drop-shadow(0 0 6px #98cfffaf); }
.app .chip, .app .badge-round {
  color: #ccdef2;
  background: #1c2a3a;
  border-color: #3d4e64;
}
.app .bottomnav button:focus-visible { outline-offset: -2px; }
.app .chart {
  gap: clamp(2px, 1.6vw, 8px);
  padding-inline: 12px;
  border-color: #344a63;
  background: repeating-linear-gradient(to top, transparent 0, transparent 47px, #526a832f 48px);
}
.app .bar {
  min-width: 0;
  background: linear-gradient(180deg, #dcedff, #5078a2);
  border-color: #d0e6fc6b;
}
.app .bar::after { background: #a1c5e5a0; }
.app .progress { background: #283749; }
.app .progress > div { background: linear-gradient(90deg, #5c7fa9, #cbe4ff); }

.launch-screen {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #030507;
}

.launch-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.launch-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: launch-art-in 780ms cubic-bezier(.2, .65, .3, 1) both;
}

.launch-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, #111e2b, #030507 74%);
}

.launch-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 38%, #a7cdff16 49%, transparent 60%);
  transform: translateX(-100%);
  animation: launch-sheen 2.4s ease-in-out infinite;
  pointer-events: none;
}

.launch-loading {
  position: absolute;
  inset: auto 12px max(24px, calc(env(safe-area-inset-bottom) + 14px)) 12px;
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
}
.launch-status { color: #dce6f2; font-size: 12px; text-shadow: 0 1px 8px #000, 0 1px 3px #000; }
.launch-progress {
  width: 120px;
  height: 3px;
  border-radius: 99px;
  overflow: hidden;
  background: #273748;
}
.launch-progress::after {
  content: '';
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #638bb6, #f3f8ff);
  animation: launch-sweep 1.2s ease-in-out infinite alternate;
}

@keyframes launch-art-in {
  from { opacity: .75; transform: scale(1.045); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes launch-sheen {
  0%, 20% { transform: translateX(-100%); }
  80%, 100% { transform: translateX(100%); }
}
@keyframes launch-sweep {
  to { transform: translateX(128%); }
}

@media (min-aspect-ratio: 3/4) {
  .launch-frame::before {
    background:
      linear-gradient(135deg, #04070b38, #05070bd9 62%, #0203047a),
      url('/assets/trading-bot-splash.png') center / cover no-repeat;
    filter: blur(26px);
    transform: scale(1.09);
  }

  .launch-art {
    width: min(100%, 72vh);
    width: min(100%, 72dvh);
    margin-inline: auto;
    object-fit: cover;
    mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .launch-art, .launch-frame::after, .launch-progress::after { animation: none; }
}

.brandlogo{color:transparent;background:black url(/assets/trading-bot-splash-3312.png) center 19% / 290% auto no-repeat}
.request-pending{background:linear-gradient(110deg,#162144,#344293,#16485b,#162144);background-size:300% 100%;animation:request-wait 3s ease infinite}.request-approved{color:#b1ffda;animation:request-glow .8s ease-out}.request-rejected{color:#ff8f99}.request-review{color:#ffdc75}.request-review details p{overflow-wrap:anywhere;text-align:left}.request-review summary{cursor:pointer}@keyframes request-wait{to{background-position:100% 0}}@keyframes request-glow{from{box-shadow:inset 0 0 25px #40ffab}}@media(prefers-reduced-motion:reduce){.request-pending,.request-approved{animation:none}}
.request-rejected .right,.request-review:has(.status.rejected) .right{color:#ff8f99;text-shadow:0 0 9px #ff506986}.request-review:has(.status.aml_review) .right{color:#ffdc75;text-shadow:0 0 9px #ffce5480}

.history-entry>summary{display:block;cursor:pointer;list-style:none}.history-entry>summary::-webkit-details-marker{display:none}.history-comment{padding:10px 14px 14px;overflow-wrap:anywhere;text-align:left;color:inherit}.history-comment p{margin:4px 0 0;white-space:pre-wrap}.client .history-rejected .right{color:#ff8f99!important;text-shadow:0 0 9px #ff5069}.client .history-aml_review .right{color:#ffdc75!important;text-shadow:0 0 9px #ffce54}

.client .topline { margin-inline: -14px; background: linear-gradient(90deg, #6489af, #eaf5ff 50%, #6489af); }
.client .topline::after { inset: 0 0 auto; height: 100%; border-radius: 0; background: linear-gradient(90deg, #93caff44, #f4faff, #93caff44); }
@media (prefers-reduced-motion: reduce) { [data-client-page=partners].page-enter { animation: none; } }
.partner-link { margin-block: 12px 14px; padding: 12px 14px; border: 1px solid #607a98; border-radius: 10px; background: var(--card2); color: var(--text); line-height: 1.5; overflow-wrap: anywhere; }
.partner-link:empty { display: none; }

.client .brandbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cycle-indicator { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 5px 8px; border: 1px solid #ff687956; border-radius: 999px; color: #ff8794; background: #341920; font-size: 11px; font-weight: 600; line-height: 1.2; }
.cycle-indicator svg { flex-shrink: 0; filter: drop-shadow(0 0 4px currentColor); }
.cycle-indicator[data-active=true] { color: #77ecc0; background: #123027; border-color: #77ecc056; }
.cycle-indicator[data-active=true] svg { animation: cycle-indicator-pulse 1.8s ease-in-out infinite alternate; }
@keyframes cycle-indicator-pulse { from { opacity: .62; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cycle-indicator[data-active=true] svg { animation: none; } }

.cycle-indicator svg { animation: cycle-idle-glow 3.4s ease-in-out infinite; }
.cycle-indicator[data-active=true] svg { animation: none; }
.cycle-indicator[data-active=true] path { stroke-dasharray: 19 7; animation: cycle-live-signal 1.8s linear infinite; }
@keyframes cycle-idle-glow { 0%, 100% { opacity: .68; } 50% { opacity: 1; } }
@keyframes cycle-live-signal { to { stroke-dashoffset: -26; } }
@media (prefers-reduced-motion: reduce) { .cycle-indicator svg, .cycle-indicator[data-active=true] path { animation: none; stroke-dasharray: none; opacity: 1; } }

.cycle-indicator[data-active=true] path { stroke-dasharray: none; animation: cycle-pulse-travel 2s ease-in-out infinite; }
@keyframes cycle-pulse-travel {
  0%, 100% { transform: translateX(-3px); opacity: .45; }
  18% { opacity: 1; }
  74% { transform: translateX(3px); opacity: 1; }
  90% { transform: translateX(3px); opacity: 0; }
  91% { transform: translateX(-3px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .cycle-indicator[data-active=true] path { animation: none; } }


.cycle-indicator .cycle-monitor-beat { display: none; }
.cycle-indicator[data-active=true] svg { overflow: hidden; filter: none; }
.cycle-indicator[data-active=true] .cycle-idle-wave { display: none; }
.cycle-indicator[data-active=true] .cycle-monitor-beat { display: block; stroke: #9bffda; stroke-dasharray: none; animation: cycle-ecg-continuous 2.2s linear infinite; }
@keyframes cycle-ecg-continuous {
  from { transform: translateX(-56px); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) { .cycle-indicator[data-active=true] .cycle-monitor-beat { animation: none; } }

.cycle-indicator[data-active=false] svg { overflow: hidden; filter: none; animation: none; }
.cycle-indicator[data-active=false] .cycle-idle-wave { animation: cycle-ecg-continuous 4.8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .cycle-indicator[data-active=false] .cycle-idle-wave { animation: none; } }

.client .news-entry {
  width: 100%;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  color: var(--text);
}
.news-entry strong, .news-entry .small { display: block; }
.news-entry .small { margin-top: 4px; }
.news-entry-arrow { font-size: 24px; color: var(--green); }
.calendar-back { margin-bottom: 10px; }
.calendar-page { padding-bottom: env(safe-area-inset-bottom, 0px); }
.calendar-card, .calendar-explanations { margin-top: 12px; }
.calendar-card p { margin: 10px 0; }
.calendar-scroll {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  background: #fff;
}
.calendar-scroll iframe { display: block; border: 0; }
.calendar-fallback { display: flex; justify-content: center; align-items: center; text-align: center; text-decoration: none; }
.calendar-explanations dl { margin: 12px 0 0; }
.calendar-explanations dt { margin-top: 12px; font-weight: 700; }
.calendar-explanations dd { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }

.client [data-client-page=portfolio] .request-pending, .client [data-client-page=portfolio] .request-approved { animation: none; }

.client-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.client-header-actions .notification-bell { margin-left: 0; }
.client-header-actions .cycle-indicator { white-space: nowrap; }

.notification-banner-card.notice-tone,
.notification-list-item.notice-tone {
  --notice-accent: #aebbd0;
  --notice-bg: #192130;
  background: var(--notice-bg);
  border-inline-start: 3px solid var(--notice-accent);
}
.notice-tone.notice-tone--success { --notice-accent: #79edb4; --notice-bg: #112b24; }
.notice-tone.notice-tone--danger { --notice-accent: #ff8b96; --notice-bg: #321d28; }
.notice-tone.notice-tone--warning { --notice-accent: #ffd17a; --notice-bg: #30261a; }
.notice-tone strong { color: var(--notice-accent); display: block; line-height: 1.35; }
.notice-tone p { margin: 4px 0 0; line-height: 1.45; overflow-wrap: anywhere; }
.notification-list-item small { display: block; margin-top: 6px; }
.notification-banner-card.notice-tone { animation: notice-accent-in 250ms ease-out both; }
@keyframes notice-accent-in { from { opacity: .68; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .notification-banner-card.notice-tone { animation: none; } }

.commission-amount { color:#ffd17a; }

.cycle-day-list { display:grid; gap:8px; }
.cycle-day-row { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; padding:14px 16px; border:1px solid var(--border,#ffffff20); border-radius:12px; background:var(--card,#141b22); color:var(--text,#eef4f6); text-align:left; font:inherit; cursor:pointer; }
.cycle-day-row>span:first-child { display:grid; gap:4px; flex-shrink:0; }
.cycle-day-row>span:last-child { text-align:right; font-size:13px; overflow-wrap:anywhere; }
.modalbg.cycle-day-overlay { align-items:flex-end; padding-bottom:0; }
.cycle-day-sheet { width:min(100%,560px); max-height:85dvh; overflow-y:auto; border-radius:20px 20px 0 0; animation:cycle-day-sheet-in 240ms cubic-bezier(.22,1,.36,1) both; }
@keyframes cycle-day-sheet-in { from { transform:translateY(40px); opacity:0; } to { transform:translateY(0); opacity:1; } }
@media(prefers-reduced-motion:reduce) { .cycle-day-sheet { animation:none; } }

.cycle-event-alert { display:inline-block; color:#ff6576; font-size:18px; font-weight:800; width:16px; text-align:center; animation:cycle-event-nudge 2.4s ease-in-out infinite; }
@keyframes cycle-event-nudge { 0%,70%,100% { transform:translateY(0); } 80% { transform:translateY(-3px); } 90% { transform:translateY(1px); } }
@media(prefers-reduced-motion:reduce) { .cycle-event-alert { animation:none; } }


/* Keep news and the trading plot within the WebView. */
.client [data-client-page="news"],
.client .calendar-page,
.client .calendar-page .card,
.client #clientScreen { min-width: 0; max-width: 100%; }
.client [data-client-page="news"] { overflow-x: clip; }
.client .calendar-page { overflow-wrap: anywhere; }
.client .calendar-page input[type="date"],
.client .calendar-page img,
.client .calendar-page video,
.client .calendar-page iframe { min-width: 0; max-width: 100%; }
.client .calendar-page img,
.client .calendar-page video { display: block; object-fit: contain; }
.client .calendar-page .labelled > * { min-width: 0; }

.balance-chart { min-width: 0; max-width: 100%; }
.balance-chart-heading, .balance-chart-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.balance-chart-heading h2 { margin: 0; }
.balance-chart-heading strong { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.balance-chart-scroll {
  min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-inline: contain; margin: 14px 0 8px; border-radius: 8px;
  background: repeating-linear-gradient(to bottom, transparent 0 41px, #ffffff0c 41px 42px);
}
.balance-chart-plot { position: relative; height: 172px; }
.balance-segment { position: absolute; height: 2px; transform-origin: left center; pointer-events: none; }
.balance-segment.up, .balance-point.up { --balance-color: var(--green, #53de9b); }
.balance-segment.down, .balance-point.down { --balance-color: var(--red, #ff7487); }
.balance-segment.flat, .balance-point.flat { --balance-color: var(--muted, #a2abb0); }
.balance-segment { background: var(--balance-color); animation: balance-reveal .35s ease-out both; }
.balance-point {
  position: absolute; width: 32px; height: 32px; transform: translate(-50%,-50%);
  border: 0; border-radius: 50%; background: transparent; padding: 0;
}
.balance-point::after {
  content: ''; display: block; margin: auto; width: 9px; height: 9px;
  border-radius: 50%; background: var(--balance-color); border: 2px solid #14161a;
}
.balance-point[aria-pressed="true"]::after, .balance-point:focus-visible::after {
  outline: 2px solid var(--balance-color); outline-offset: 2px;
}
.balance-chart-detail { margin-top: 14px; }
.balance-chart-trades { max-height: 16rem; overflow: auto; overscroll-behavior-y: contain; }
.balance-chart-trades .name { overflow-wrap: anywhere; }
@keyframes balance-reveal { from { opacity: 0; scale: 0 1; } to { opacity: 1; scale: 1 1; } }
@media (prefers-reduced-motion: reduce) { .balance-segment { animation: none; } }

.trade-history-heading { margin: 0 0 8px; }
.trade-history-list { max-width: 100%; max-height: 22rem; overflow: auto; overscroll-behavior-y: contain; }
.trade-history-list .name { overflow-wrap: anywhere; }
[data-trade-history-more] { margin-top: 8px; }
