:root{color-scheme:dark;--bg:#0e1116;--panel:#151a21;--panel-2:#1b212b;--panel-3:#212a35;--edge:#2c3440;--text:#f1f4f8;--muted:#8e9baa;--accent:#ffab56;--accent-soft:rgba(255,171,86,.11);--blue:#6ba6ff;--green:#45c99b;--red:#f17883;--radius:17px;--shadow:0 12px 46px rgba(0,0,0,.22)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);font:14px/1.48 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}
.app-shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;flex:0 0 260px;display:flex;flex-direction:column;height:100dvh;border-right:1px solid var(--edge);background:#13171d;padding:28px 18px 20px}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 34px}.brand-mark{display:grid;place-items:center;border-radius:13px;width:43px;height:43px;background:linear-gradient(145deg,#ffc275,#ef873c);color:#20160e;font-size:19px;font-weight:900;letter-spacing:-1.5px;box-shadow:0 5px 18px #ff963036}.brand-mark span{margin-left:1px}.brand strong{display:block;letter-spacing:-.4px;font-size:16px}.brand-light{color:var(--accent)}.brand small{display:block;margin-top:3px;color:#627385;letter-spacing:2px;font-size:9px;font-weight:700}.side-caption{padding:0 16px 11px;font-weight:700;letter-spacing:1.8px;color:#6d7b8b;font-size:10px}.side-nav{display:grid;gap:4px}.nav-link{display:flex;align-items:center;gap:12px;background:transparent;color:#a9b3c1;border:0;border-radius:12px;text-align:left;padding:12px 14px;font-weight:600;width:100%;transition:background .15s,color .15s}.nav-link svg{height:19px;width:19px;stroke-width:1.8}.nav-link.active{background:var(--accent-soft);color:var(--accent)}.nav-link:hover:not(.active){background:#1d232c;color:white}.side-footer{display:flex;gap:10px;align-items:center;padding:16px 8px 0;border-top:1px solid var(--edge);margin-top:auto}.avatar-dot{width:35px;height:35px;background:#33465b;color:#bfcee1;border:1px solid #4e6073;border-radius:50%;display:grid;place-items:center;font-weight:700}.side-footer strong{font-size:12px;display:block}.side-footer small{display:block;font-size:11px;color:var(--muted)}.status-dot{width:8px;height:8px;border-radius:50%;background:var(--green);margin-left:auto}.main-column{min-width:0;flex:1}.topbar{height:83px;border-bottom:1px solid var(--edge);background:rgba(21,26,33,.75);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(24px,4.8vw,65px);gap:20px}.top-left{display:flex;align-items:center;gap:12px}.top-left strong{font-size:19px;display:block;letter-spacing:-.4px}.top-left small{display:block;color:var(--muted);font-size:12px}.top-right{display:flex;gap:13px;align-items:center}.mobile-logo{display:none}.main-content{max-width:1400px;margin:0 auto;padding:35px clamp(24px,4.8vw,65px) 85px}.bottom-nav{display:none}
.page-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:27px}.page-title{margin:0;font-size:28px;font-weight:750;letter-spacing:-.8px}.page-note{color:var(--muted);margin:5px 0 0}.page-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.pill{padding:6px 10px;font-size:11px;border-radius:100px;font-weight:700;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.pill-blue{background:#1b2b43;color:#87b8ff}.pill-green{background:rgba(69,201,155,.12);color:#69e5b7}.pill-orange{background:rgba(255,171,86,.12);color:var(--accent)}.pill-red{background:rgba(241,120,131,.12);color:#f5929c}.pill-neutral{background:#222b37;color:#b1becd}.pill-dot:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.btn{border:1px solid transparent;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 15px;border-radius:10px;font-weight:700;white-space:nowrap;transition:transform .12s,opacity .12s,background .12s}.btn:active{transform:scale(.98)}.btn-primary{background:var(--accent);color:#201509}.btn-primary:hover{background:#ffba77}.btn-secondary{background:var(--panel-2);color:var(--text);border-color:var(--edge)}.btn-secondary:hover{background:var(--panel-3)}.btn-danger{background:rgba(241,120,131,.14);color:#f9a2a9;border-color:rgba(241,120,131,.22)}.btn-xs{min-height:31px;padding:5px 9px;font-size:12px}.btn svg{width:17px;height:17px}.icon-btn{display:grid;place-items:center;border:1px solid var(--edge);border-radius:10px;background:var(--panel-2);color:var(--text);width:37px;height:37px;font-size:23px}.icon-btn:hover{background:#2a3442}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.metric{padding:21px 22px;min-width:0;background:var(--panel);border:1px solid var(--edge);border-radius:var(--radius)}.metric-icon{width:37px;height:37px;border-radius:11px;background:var(--panel-3);display:grid;place-items:center;color:var(--accent);margin-bottom:18px}.metric-icon svg{width:19px;height:19px}.metric small{color:var(--muted);font-weight:600}.metric strong{font-size:29px;letter-spacing:-1px;display:block;margin-top:4px}.metric .hint{font-size:11px;color:#6f8091;margin-top:4px}.columns{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(275px,1fr);gap:20px}.panel{background:var(--panel);border:1px solid var(--edge);border-radius:var(--radius);overflow:hidden}.panel-pad{padding:22px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.panel-head h2{font-size:16px;letter-spacing:-.25px;margin:0}.panel-sub{margin:0;color:var(--muted);font-size:12px}.section-stack{display:grid;gap:20px}.empty-state{text-align:center;padding:34px 18px;color:var(--muted);border:1px dashed var(--edge);border-radius:12px}.empty-state strong{color:var(--text);display:block;margin-bottom:5px}.empty-state svg{height:26px;width:26px;color:var(--accent);margin-bottom:12px}
.item-row{display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid var(--edge);min-width:0}.item-row:last-child{border-bottom:0}.row-icon{flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#253343;color:#a3c2e3;font-weight:800;font-size:13px;text-transform:uppercase}.row-icon.orange{background:var(--accent-soft);color:var(--accent)}.row-main{flex:1;min-width:0}.row-main strong{font-size:13px;display:block;overflow-wrap:anywhere}.row-main small{color:var(--muted);font-size:11px;display:block;margin-top:3px;overflow-wrap:anywhere}.row-trailing{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.muted{color:var(--muted)}.muted-sm{font-size:12px;color:var(--muted)}.mono{font-variant-numeric:tabular-nums}.divider{height:1px;background:var(--edge);margin:17px 0}.callout{padding:16px 18px;border:1px solid #4e4531;background:#27241d;border-radius:13px;color:#e9cfa8;font-size:12px;line-height:1.6}.callout-blue{border-color:#2e4055;background:#1a2532;color:#adceef}.callout strong{color:#ffe4b7}.quick-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.quick-tile{background:#202731;border:1px solid var(--edge);padding:17px;text-align:left;border-radius:12px;color:var(--text);font-weight:700;display:flex;align-items:center;gap:12px}.quick-tile:hover{background:#2b3541}.quick-tile svg{color:var(--accent);width:20px;height:20px;flex:none}.mini-note{margin-top:17px;color:var(--muted);font-size:11px}.tag{font-size:11px;color:#95a7bb;background:#202935;border:1px solid #344252;border-radius:7px;padding:3px 7px}.legend{color:var(--muted);font-size:12px;margin:0}
.search-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}.input,.select,.textarea{border:1px solid #36404d;background:#11161d;color:var(--text);outline:none;border-radius:10px;padding:10px 12px;min-height:40px;min-width:0}.input:focus,.select:focus,.textarea:focus{border-color:var(--accent)}.input::placeholder,.textarea::placeholder{color:#667486}.search-row .input{flex:1;min-width:150px}.select{max-width:100%}.textarea{display:block;resize:vertical;min-height:180px;width:100%;line-height:1.55}.field{display:grid;gap:7px;margin-bottom:15px}.field label{font-size:12px;color:#b2beca;font-weight:700}.field-help{font-size:11px;color:var(--muted);margin-top:5px}.form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.account-card{background:var(--panel);border:1px solid var(--edge);border-radius:var(--radius);padding:20px}.account-name{font-weight:800;letter-spacing:-.2px;overflow-wrap:anywhere}.account-sub{color:var(--muted);font-size:12px;margin-top:4px}.account-stats{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.stat-mini{border-radius:9px;padding:9px 11px;background:var(--panel-2);font-size:12px;color:#c2ccd7}.stat-mini b{color:white;margin-right:4px}.account-foot{margin-top:18px;display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--edge);padding-top:14px}.group-line{display:flex;align-items:center;gap:13px;padding:16px 0;border-bottom:1px solid var(--edge)}.group-line:last-child{border:0}.group-title{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}.group-url{font-size:11px;display:block;color:var(--muted);max-width:380px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.group-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-left:auto}.group-controls label{font-size:11px;color:var(--muted)}.switch{appearance:none;width:38px;height:22px;display:inline-block;position:relative;border-radius:20px;border:1px solid #566174;background:#3b4756;cursor:pointer;transition:background .15s;vertical-align:middle}.switch:before{content:"";position:absolute;width:16px;height:16px;left:2px;top:2px;background:white;border-radius:50%;transition:transform .15s}.switch:checked{background:var(--accent);border-color:var(--accent)}.switch:checked:before{transform:translateX(16px);background:#22160a}.switch:disabled{opacity:.35}.toggle-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-top:1px solid var(--edge)}
.timeline{display:grid;gap:0}.timeline-item{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--edge)}.timeline-item:last-child{border:0}.timeline-mark{height:10px;width:10px;flex:0 0 10px;margin-top:4px;background:var(--blue);border-radius:50%;box-shadow:0 0 0 5px rgba(107,166,255,.09)}.timeline-mark.green{background:var(--green);box-shadow:0 0 0 5px rgba(69,201,155,.08)}.timeline-mark.red{background:var(--red);box-shadow:0 0 0 5px rgba(241,120,131,.1)}.timeline-details{flex:1;min-width:0}.timeline-details strong{font-size:12px;display:block}.timeline-details small{font-size:11px;color:var(--muted);display:block;margin-top:3px}.hint-line{display:flex;gap:8px;align-items:center;margin-top:7px;color:var(--muted);font-size:11px}.numbered{font-variant-numeric:tabular-nums}
.overlay{position:fixed;inset:0;display:grid;place-items:center;background:rgba(5,9,14,.76);z-index:100;padding:15px;backdrop-filter:blur(5px)}.dialog{width:min(100%,530px);max-height:min(88dvh,850px);overflow-y:auto;background:#1b222c;border:1px solid #3b4655;border-radius:20px;padding:24px;box-shadow:var(--shadow)}.dialog h2{font-size:19px;margin:0 0 6px}.dialog p{color:var(--muted);margin:0 0 18px;line-height:1.6}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.dialog .check-row{display:flex;align-items:flex-start;gap:10px;margin-top:14px;color:#d5dfe8;font-size:12px}.dialog .check-row input{margin-top:3px}.dialog .preview-list{max-height:230px;overflow:auto;border:1px solid var(--edge);border-radius:10px;padding:6px 12px}.preview-list .item-row{padding:10px 0}.toast-region{position:fixed;bottom:26px;right:25px;z-index:200;display:grid;gap:9px;max-width:min(92vw,380px)}.toast{background:#263440;color:#eff6ff;border:1px solid #435467;border-radius:12px;padding:12px 15px;box-shadow:var(--shadow);font-size:12px}.toast.error{border-color:#7b3b48;background:#462630}.loading-card{color:var(--muted);padding:70px;text-align:center}.skeleton{min-height:40px;border-radius:10px;background:#252b34}
@media(max-width:1180px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.columns{grid-template-columns:1fr}.sidebar{flex-basis:220px}.main-content{padding-inline:28px}.topbar{padding-inline:28px}}
@media(max-width:730px){.sidebar{display:none}.main-column{width:100%}.topbar{height:68px;padding:0 18px}.top-left strong{font-size:16px}.top-left small{font-size:10px}.mobile-logo{display:grid;place-items:center;background:linear-gradient(130deg,#ffc275,#ed8f43);color:#271909;font-weight:850;border-radius:11px;width:36px;height:36px}.main-content{padding:25px 16px 110px}.page-title{font-size:23px}.page-top{flex-direction:column;gap:12px}.metrics{gap:10px;margin-bottom:17px}.metric{padding:14px}.metric strong{font-size:25px}.metric-icon{margin-bottom:8px;width:30px;height:30px}.card-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.panel-pad{padding:16px}.bottom-nav{display:grid;position:fixed;bottom:0;left:0;right:0;grid-template-columns:repeat(6,minmax(0,1fr));z-index:15;background:#171d25;border-top:1px solid var(--edge);padding:9px max(6px,env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));gap:0}.bottom-link{color:#8c9aab;background:none;border:0;display:grid;justify-items:center;align-content:center;font-size:9px;gap:4px;padding:3px 0;min-width:0;line-height:1.2}.bottom-link svg{width:20px;height:20px}.bottom-link.active{color:var(--accent)}.group-line{align-items:flex-start;flex-wrap:wrap;gap:10px}.group-controls{width:100%;justify-content:flex-start;margin-left:52px}.group-url{max-width:230px}.search-row{display:grid;grid-template-columns:1fr 1fr}.search-row .input{grid-column:1/-1;min-width:0}.search-row .select{width:100%}.toast-region{bottom:85px;left:15px;right:15px}.dialog{padding:18px;border-radius:16px}.row-trailing .pill{font-size:10px}.quick-actions{grid-template-columns:1fr 1fr}}
@media(max-width:380px){.bottom-link{font-size:8px}.metric small{font-size:11px}.top-right .pill{display:none}.group-controls{margin-left:0}.page-actions{width:100%}.page-actions .btn{flex:1}}

/* v8.2: scheduling cards never share a row with account-name text. */
.schedule-account{display:grid;gap:13px;min-width:0;padding:19px 0;border-bottom:1px solid var(--edge)}
.schedule-account:last-child{border-bottom:0;padding-bottom:0}
.schedule-account:first-child{padding-top:0}
.schedule-account-head{display:flex;align-items:center;gap:13px;min-width:0;flex-wrap:wrap}
.schedule-account-head .row-icon{flex:none}
.schedule-account-title{flex:1 1 150px;min-width:0}
.schedule-account-title strong{display:block;font-size:14px;overflow-wrap:anywhere;line-height:1.35}
.schedule-account-title small{display:block;font-size:11px;color:var(--muted);overflow-wrap:anywhere;margin-top:4px}
.schedule-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));gap:12px;min-width:0}
.schedule-controls .field{margin:0;min-width:0}
.schedule-controls .input,.schedule-controls .select{width:100%;max-width:100%;box-sizing:border-box}
.schedule-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
.pause-control{display:inline-flex;align-items:center;gap:9px;margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap}
.rule-extra[hidden]{display:none!important}
.send-now-row{display:flex;flex-wrap:wrap;align-items:end;gap:12px;min-width:0}
.send-now-row .field{flex:1 1 210px;margin-bottom:0;min-width:0}
.send-now-row .select{width:100%}
.send-now-row .btn{flex:0 1 auto}
@media(max-width:550px){.schedule-account-head>.pill{margin-left:53px}.schedule-actions .pause-control{margin-left:0}.send-now-row .btn{width:100%;justify-content:center}}

/* v8.2.4.1: Telegram Desktop (older macOS/WebKit) modal scrolling fix.
   Keep vh fallback: min(88dvh,850px) from previous CSS is unsupported on older WebKit. */
.overlay {
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
}
.dialog {
  flex: 0 1 530px;
  width: 100%;
  margin: auto 0;
  min-height: 0;
  max-height: calc(100vh - 30px);
  max-height: calc(100dvh - 30px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
/* One scrolling surface for the long account/group picker, not nested wheel traps. */
.dialog .join-picker-list {
  max-height: none !important;
  overflow: visible !important;
}
/* Controls stay accessible while the long picker scrolls. */
.dialog-actions {
  position: sticky;
  bottom: -24px;
  z-index: 2;
  background: #1b222c;
  border-top: 1px solid #3b4655;
  padding: 14px 0 4px;
  flex-wrap: wrap;
}
@media (max-width: 730px) {
  .dialog-actions { bottom: -18px; }
}

/* QR login: compact, scrollable on old Telegram Desktop and mobile. */
.qr-code-box{display:flex;align-items:center;justify-content:center;padding:14px;margin:12px auto 17px;background:white;border-radius:13px;width:min(100%,310px)}
.qr-code-box img{display:block;width:100%;max-width:280px;height:auto;image-rendering:pixelated}
.dialog .field .input{width:100%}


/* ---------------------------------------------------------------
   Target Partners light design • v8.2.7
   Pure presentation layer. No changes to Telegram API / jobs.
   Uses only legacy-compatible CSS; retains Telegram Desktop modal fix.
   --------------------------------------------------------------- */
:root {
  color-scheme: light;
  --bg:#f6f9f6;--panel:#fff;--panel-2:#f8fbf8;--panel-3:#e9f8ec;
  --edge:#e4eae5;--text:#101b16;--muted:#6c7870;
  --accent:#00a72e;--accent-soft:rgba(0,167,46,.1);
  --blue:#168447;--green:#008837;--red:#ca3947;
  --radius:20px;--shadow:0 13px 35px rgba(30,76,41,.10),0 2px 6px rgba(22,50,32,.04);
}
html { background:var(--bg) }
body { background:var(--bg);color:var(--text);font-size:14px }
a {color:#087f31}
a:hover {color:#006c28}
.app-shell {background:var(--bg)}
.sidebar {background:#fff;border-right:1px solid var(--edge);box-shadow:3px 0 20px rgba(0,38,10,.024)}
.brand {padding-bottom:34px}
.brand-mark,.mobile-logo {background:linear-gradient(140deg,#e4ffeb,#d3fbe0);color:#02952e;border:1px solid #b6efd0;box-shadow:none;font-size:29px;letter-spacing:0;font-weight:900}
.brand strong {color:#17241b;font-weight:850;letter-spacing:-.5px;font-size:14px}
.brand-light {color:#008b28}
.brand small {color:#8d9890;letter-spacing:1.45px}
.side-caption {color:#8f9d93}
.nav-link {color:#57665a;border-radius:13px;min-height:44px}
.nav-link.active {background:#e6fbea;color:#007f28}
.nav-link:hover:not(.active) {color:#084d23;background:#f0f8f2}
.nav-link svg {width:20px;height:20px}
.side-footer {border-top:1px solid var(--edge)}
.side-footer strong {color:var(--text)}
.avatar-dot {color:#0f8436;background:#e9f8eb;border-color:#d0ecd7}
.status-dot {background:#00b23b}
.topbar {background:rgba(255,255,255,.95);border-bottom:1px solid var(--edge)}
.top-left strong {color:#1b271e}
.top-left small {color:#79887c}
.icon-btn {background:#fff;color:#53685a;border:1px solid #dfe6df;box-shadow:0 2px 7px rgba(20,42,27,.05)}
.icon-btn:hover {background:#f0faf1}
.main-content {max-width:1400px;padding-top:28px}
/* The brand masthead is part of each real section, not an image-only demo. */
.tp-hero {position:relative;overflow:hidden;isolation:isolate;border-radius:24px;margin-bottom:24px;padding:28px 32px 28px;background:radial-gradient(circle at 82% 22%,rgba(37,244,104,.19),transparent 39%),linear-gradient(110deg,#fff 0%,#fff 57%,#ecffef 100%);border:1px solid #e4f1e7;min-height:190px}
.tp-brand-lockup {position:relative;z-index:1;display:flex;align-items:center;gap:13px;margin-bottom:23px;width:max-content;max-width:100%}
.tp-target-symbol {display:grid;place-items:center;width:51px;height:51px;color:#008d2b;flex:none}
.tp-target-symbol svg {display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:5.2;stroke-linecap:round}
.tp-target-symbol .tp-dot {fill:currentColor;stroke:none}
.tp-wordmark {display:flex;flex-direction:column;align-items:flex-start;line-height:.89;letter-spacing:-.6px}
.tp-wordmark strong {font-size:22px;font-weight:900;color:#14211a}
.tp-wordmark strong:nth-child(2) {color:#078c2c}
.tp-wordmark small {color:#485b4c;font-size:7px;letter-spacing:2.5px;font-weight:800;margin-top:10px;white-space:nowrap}
.tp-hero-art {position:absolute;pointer-events:none;right:-46px;top:-56px;width:325px;height:325px;opacity:.86;z-index:0;display:grid;place-items:center}
.tp-art-orbit {border-radius:50%;position:absolute;inset:15px;border:1px solid rgba(5,187,61,.16);background:radial-gradient(circle,rgba(123,251,155,.10) 0%,rgba(123,251,155,.04) 55%,transparent 70%)}
.tp-art-orbit-two {inset:52px;border-color:rgba(5,187,61,.28);background:rgba(105,255,137,.05)}
.tp-art-target {width:205px;height:205px;border-radius:50%;display:grid;place-items:center;transform:rotate(12deg);background:radial-gradient(circle at 25% 22%,rgba(165,255,184,.85),transparent 50%);filter:drop-shadow(0 9px 15px rgba(0,151,52,.16))}
.tp-art-target svg {width:100%;height:100%;stroke:#00a72d;stroke-width:5.5;fill:none;stroke-linecap:round}
.tp-art-target svg .tp-dot {fill:#007827;stroke:none}
.tp-hero .page-top {position:relative;z-index:1;margin:0;align-items:flex-end}
.tp-hero .page-title {font-size:32px;line-height:1.13;letter-spacing:-1.15px;color:#0f1611;font-weight:850}
.tp-hero .page-note {max-width:570px;color:#6a756e;font-size:13px}
.tp-hero .page-actions {max-width:100%;justify-content:flex-end}
/* Glass-white cards with soft depth and clean typography. */
.panel,.metric,.account-card {background:#fff;border:1px solid #e3eae3;box-shadow:0 5px 17px rgba(21,59,34,.06);border-radius:20px}
.panel-pad {padding:23px}
.panel-head h2 {font-weight:850;font-size:17px;letter-spacing:-.4px;color:#141d17}
.metric {position:relative;min-height:138px;padding:20px 20px 19px}
.metric-icon {display:grid;place-items:center;color:#028d32;background:radial-gradient(circle,#d4fbdc 15%,#f0fff2 75%);width:43px;height:43px;border-radius:50%;margin-bottom:12px}
.metric-icon svg {width:22px;height:22px}
.metric small {font-size:13px;color:#5d6a60;font-weight:650}
.metric strong {font-size:31px;line-height:1.15;font-weight:850;color:#121a13}
.metric .hint {font-size:11px;color:#7f8c80;margin-top:6px}
.pill {font-size:11px;min-height:25px;padding:5px 11px}
.pill-blue {background:#e5f7ec;color:#137c39}
.pill-green {background:#dffae5;color:#08772b}
.pill-orange {background:#fff2d8;color:#985c03}
.pill-red {background:#ffe5e6;color:#b62439}
.pill-neutral {background:#f0f2f0;color:#56645b}
.btn {border-radius:13px;font-weight:750;min-height:42px;letter-spacing:-.1px}
.btn-primary {background:linear-gradient(155deg,#00c83c,#008d26);color:#fff;border:1px solid #00a130;box-shadow:0 5px 12px rgba(0,150,48,.16)}
.btn-primary:hover {background:linear-gradient(155deg,#00b939,#007d22)}
.btn-secondary {background:#fff;border:1px solid #dce5de;color:#24402c;box-shadow:0 2px 5px rgba(12,40,20,.03)}
.btn-secondary:hover {background:#f1faf2}
.btn-danger {color:#b12b3b;background:#fff0f1;border-color:#f8d5db}
.btn-danger:hover {background:#ffe8eb}
.btn:focus-visible,.icon-btn:focus-visible,.nav-link:focus-visible,.bottom-link:focus-visible {outline:3px solid rgba(0,164,48,.42);outline-offset:2px}
.quick-actions {gap:12px}
.quick-tile {background:#fff;border:1px solid #e2e9e3;box-shadow:0 4px 12px rgba(33,72,40,.05);padding:16px;color:#213b28;min-height:67px;border-radius:16px}
.quick-tile svg {width:24px;height:24px;color:#01982c}
.quick-tile:hover {background:#f0fcf3}
.tp-quick-primary {background:linear-gradient(150deg,#08c83c,#008f29);color:#fff;border-color:#00b035}
.tp-quick-primary svg {color:#fff}
.tp-quick-primary:hover {background:#029929}
.callout {color:#86661a;background:#fff8e9;border-color:#f1dfb4;border-radius:14px}
.callout strong {color:#73500e}
.callout-blue {background:#edfbf1;border-color:#c9edd6;color:#327447}
.callout-blue strong {color:#0a7630}
.item-row,.group-line,.timeline-item,.toggle-line {border-bottom-color:#edf0ed;border-top-color:#edf0ed}
.row-icon {border-radius:50%;background:#e3f9e9;color:#098a35;width:44px;height:44px;flex-basis:44px;font-size:13px}
.row-icon.orange {background:#e4f8e8;color:#048d30}
.row-main strong {color:#18251b;font-size:13px}
.row-main small,.timeline-details small,.group-url {color:#77857b}
.account-name {font-size:16px;color:#16251b;font-weight:850}
.account-sub {color:#718275}
.stat-mini {background:#f2f8f3;color:#57705e;border:1px solid #e6f0e8;border-radius:10px}
.stat-mini b {color:#058330}
.account-foot {border-top-color:#e8eee9}
.tag {color:#477b55;background:#edf9ef;border-color:#d8eddc}
.muted,.muted-sm,.panel-sub,.legend,.mini-note,.field-help,.account-sub {color:#77857b}
.input,.select,.textarea {background:#fff;border:1px solid #d9e2db;color:#18251c;border-radius:13px}
.input:focus,.select:focus,.textarea:focus {border-color:#09a63f;box-shadow:0 0 0 3px rgba(3,177,56,.08)}
.input::placeholder,.textarea::placeholder {color:#a6afa8}
.field label {color:#496050}
.input[type="checkbox"],input[type="checkbox"] {accent-color:#04a433}
.switch {background:#d4ded6;border:1px solid #b9cbbb}
.switch:checked {background:#00b83b;border-color:#00a833}
.switch:checked:before {background:#fff}
.timeline-mark {background:#9cae9f;box-shadow:0 0 0 5px #eef5ef}
.timeline-mark.green {background:#00a63a;box-shadow:0 0 0 5px #e4f9e9}
.timeline-mark.red {background:#c7414c;box-shadow:0 0 0 5px #ffeded}
.empty-state {border-color:#dce6de;color:#758579;background:#fcfdfc}
.empty-state strong {color:#23362a}
.empty-state svg {color:#05932c}
/* Dialogs: preserve prior scroll and sticky-action fixes for old desktop WebView. */
.overlay {background:rgba(9,29,17,.60)}
.dialog {background:#fff;border:1px solid #e0ebe2;color:#132019;box-shadow:0 22px 65px rgba(15,44,24,.22);border-radius:23px}
.dialog h2 {color:#0c1b12;font-weight:850}
.dialog p,.dialog .check-row {color:#637267}
.dialog .preview-list {border-color:#dbe9de;background:#fcfefc}
.dialog-actions {background:#fff;border-top-color:#e2ece4}
.toast {background:#153c24;color:#fff;border-color:#236e3c}
.toast.error {background:#8b2730;color:#fff;border-color:#ad3944}
.qr-code-box {border:1px solid #e2ece5}
.skeleton {background:#ebf0ec}
/* Navigation footer matches the clean, white Telegram UI reference. */
@media(max-width:730px){
 .topbar {height:62px;padding:0 15px;background:#fff}
 .top-left strong {font-size:15px}
 .mobile-logo {font-size:24px;width:37px;height:37px}
 .main-content {padding:14px 12px calc(115px + env(safe-area-inset-bottom))}
 .tp-hero {padding:22px 16px 24px;margin-bottom:17px;border-radius:20px;min-height:218px}
 .tp-brand-lockup {gap:9px;margin-bottom:28px}
 .tp-target-symbol {width:45px;height:45px}
 .tp-wordmark strong {font-size:20px}
 .tp-wordmark small {font-size:5.9px;letter-spacing:1.7px}
 .tp-hero-art {width:234px;height:234px;top:-20px;right:-102px;opacity:.52}
 .tp-art-target {width:148px;height:148px}
 .tp-hero .page-top {display:flex;flex-direction:column;align-items:flex-start;gap:13px}
 .tp-hero .page-title {font-size:29px}
 .tp-hero .page-note {font-size:12px;max-width:320px}
 .tp-hero .page-actions {width:100%;justify-content:flex-start}
 .tp-hero .page-actions .btn {flex:1 1 auto;white-space:normal}
 .metrics {gap:10px}
 .metric {min-height:122px;padding:13px 14px}
 .metric-icon {width:34px;height:34px;margin-bottom:9px}
 .metric-icon svg {width:17px;height:17px}
 .metric strong {font-size:25px}
 .metric small {font-size:11px}
 .panel-pad {padding:17px}
 .panel,.account-card {border-radius:17px}
 .bottom-nav {background:rgba(255,255,255,.98);border-top:1px solid #e3ebe4;box-shadow:0 -6px 23px rgba(20,62,31,.065);padding-top:10px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
 .bottom-link {color:#677469;border-radius:13px;font-size:9px;font-weight:650;min-height:53px}
 .bottom-link.active {color:#037c2b;background:#def9e4}
 .bottom-link svg {width:21px;height:21px}
 .dialog-actions {background:#fff}
 .quick-actions {grid-template-columns:1fr 1fr}
 .quick-tile {padding:12px;gap:8px;font-size:12px;min-height:68px;white-space:normal}
}
@media(max-width:390px){
 .tp-hero {padding:19px 13px}
 .tp-wordmark strong {font-size:18px}
 .tp-wordmark small {font-size:5.2px;letter-spacing:1.3px}
 .tp-target-symbol {width:40px;height:40px}
 .metric strong {font-size:23px}
 .quick-actions {grid-template-columns:1fr 1fr}
 .bottom-link {font-size:8px;gap:3px}
}
@media(min-width:731px){
 .tp-hero .page-actions .btn {box-shadow:0 4px 11px rgba(3,143,38,.07)}
}
@media(prefers-reduced-motion:reduce){
 *,*:before,*:after {transition:none!important;scroll-behavior:auto!important}
}
