/* Approved Spark Pro desktop studio. Telegram and narrow layouts retain their styles. */
@media (min-width: 1000px) {
  body.browser-app {
    --line: #ffffff14;
    --text: #f4f5f8;
    background:
      radial-gradient(ellipse at 75% 0, #20324780, transparent 48%), #080e14;
  }
  body.browser-app .bg-glow {
    display: none;
  }
  body.browser-app .app-shell {
    margin-left: 264px;
    padding: 0 36px 40px;
  }
  body.browser-app .desktop-sidebar {
    width: 264px;
    padding: 14px 12px 16px;
    border: 1px solid #8195b43d;
    border-radius: 18px 18px 0 0;
    background:
      radial-gradient(ellipse at 0 0, #28324d65, transparent 50%),
      linear-gradient(120deg, #131923, #0b1117 75%);
    box-shadow: 12px 0 55px #0003;
  }
  body.browser-app .desktop-brand {
    gap: 16px;
    margin: 0 2px 8px;
    padding: 12px;
    min-height: 86px;
    border-radius: 18px;
    background: linear-gradient(130deg, #ffffff07, #ffffff01);
  }
  body.browser-app .desktop-brand .brand-mark {
    flex: 0 0 60px;
    width: 60px;
    height: 62px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 34px;
    font-style: italic;
    color: #a3ff64;
    border: 1px solid #71dac349;
    background:
      radial-gradient(ellipse at 20% 0, #7affb43d, transparent 65%),
      linear-gradient(135deg, #173b3b, #111e29 60%, #285154);
    box-shadow:
      inset 0 1px 10px #7affbd1f,
      0 8px 22px #0005;
  }
  body.browser-app .desktop-brand b {
    font-size: 22px;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
  body.browser-app .desktop-brand small {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #a2aab7;
  }
  body.browser-app .desktop-sidebar nav {
    gap: 3px;
  }
  body.browser-app .desktop-sidebar nav:first-of-type {
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
  body.browser-app .desktop-sidebar nav > small {
    margin: 17px 18px 9px;
    font-size: 10px;
    color: #929ba8;
  }
  body.browser-app .desktop-sidebar nav > small:not(:first-child) {
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }
  body.browser-app .desktop-sidebar button {
    min-height: 50px;
    gap: 20px;
    padding: 12px 18px;
    border-radius: 11px;
    color: #c8cbd3;
    font-size: 14px;
    line-height: 1.25;
    transition:
      background 0.18s,
      border-color 0.18s,
      color 0.18s;
  }
  body.browser-app .desktop-sidebar button > span:first-child {
    flex: 0 0 28px;
    width: 28px;
    font-size: 24px;
    text-align: center;
  }
  body.browser-app .desktop-nav-icon {
    display: block;
    width: 24px;
    height: 24px;
  }
  body.browser-app
    .desktop-sidebar
    [data-desktop-nav="tariffs"]
    > span:first-child {
    color: #ff8c46;
  }
  body.browser-app .spark-action-inline-icon {
    display: none;
  }
  body.browser-app .desktop-sidebar button:hover {
    background: #ffffff08;
    color: #fff;
  }
  body.browser-app .desktop-sidebar button.active {
    color: #dbf8e7;
    border-color: #af82ff;
    background: linear-gradient(110deg, #7357bf45, #6d48b52b);
    box-shadow:
      inset 0 1px 15px #ad7eff24,
      0 0 15px #8a54ec12;
  }
  body.browser-app .desktop-sidebar button.active > span:first-child {
    color: #b2edcb;
  }
  body.browser-app .desktop-sidebar button[data-go="tariffs"] {
    border-top: 1px solid var(--line);
    border-radius: 0;
    margin-top: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  body.browser-app .desktop-sidebar .desktop-account {
    border-top: 1px solid var(--line);
    padding-top: 10px;
    margin-top: auto;
  }
  body.browser-app .desktop-account a {
    padding: 16px 18px 0;
    color: #959ca8;
    font-size: 13px;
  }
  body.browser-app .desktop-sidebar button[data-uniquify-open] {
    gap: 10px;
    padding-right: 5px;
    font-size: 13px;
  }
  body.browser-app .desktop-sidebar button .exclusive-badge {
    width: auto;
    font-size: 9px;
    padding: 5px 6px;
    color: #c8ff8c;
  }
  body.browser-app .topbar {
    height: 72px;
    margin: 0 -36px 40px;
    padding: 0 36px;
    gap: 16px;
    border: 1px solid #8291b43d;
    border-top: 0;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(110deg, #0b1219ed, #29344ee0 70%, #101820ed);
  }
  body.browser-app .topbar .brand {
    display: none;
  }
  body.browser-app .web-mode-bar {
    gap: 12px;
    min-width: 0;
    border: 0;
    padding: 0;
    background: none;
  }
  body.browser-app .web-mode-bar button {
    min-height: 48px;
    padding: 10px 19px;
    border-radius: 18px;
    font-size: 14px;
    color: #f3f4f7;
    background: linear-gradient(135deg, #ffffff06, #ffffff02);
    border: 1px solid #ffffff2b;
    white-space: nowrap;
  }
  body.browser-app
    .web-mode-bar
    button[data-web-mode="studio"][aria-pressed="true"] {
    color: #b7ffcb;
    border-color: #3dba9455;
    background: linear-gradient(135deg, #0e443b70, #09262450);
  }
  body.browser-app .web-mode-bar .gaming-mode-switch {
    border-color: #bd72f575;
    background: linear-gradient(110deg, #7042a45e, #25173570);
  }
  body.browser-app .credit-pill {
    margin-left: auto;
    border: 1px solid #cd953e55;
    background: #0c121bc9;
    padding: 12px 18px;
  }
  body.browser-app #homeView {
    padding-top: 0;
  }
  body.browser-app .hello-row {
    margin: 0 0 20px;
    padding: 0 1px;
    align-items: flex-start;
  }
  body.browser-app .hello-row .eyebrow {
    font-size: 11px;
    font-weight: 800;
    color: #91ff61;
    letter-spacing: 0.14em;
  }
  body.browser-app .hello-row h1 {
    margin: 5px 0 2px;
    font-size: 40px;
    letter-spacing: -0.035em;
    line-height: 1.15;
  }
  body.browser-app .hello-row p {
    font-size: 16px;
    color: #a7acb6;
  }
  body.browser-app .hello-row .avatar {
    width: 54px;
    height: 54px;
    border: 1px solid #a1b4bd55;
    border-radius: 15px;
    background: #0b1219;
    color: #96ff62;
  }
  body.browser-app .similar-hero {
    min-height: 228px;
    padding: 26px 32px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #d7a5ff;
    border-radius: 25px;
    background:
      linear-gradient(90deg, #6529aeea, #4837afc0 48%, #236a9140),
      url("/app/studio-ribbons.svg") right center / auto 125% no-repeat,
      #4927a1;
    box-shadow:
      inset 0 1px 0 #ffffff1c,
      0 15px 50px #824ad544;
  }
  body.browser-app .similar-hero > span:first-child {
    position: relative;
    z-index: 1;
  }
  body.browser-app .similar-hero small {
    color: #f0d6ff;
    font-size: 11px;
    letter-spacing: 0.16em;
  }
  body.browser-app .similar-hero strong {
    margin: 14px 0 10px;
    font-size: 44px;
    letter-spacing: -0.025em;
  }
  body.browser-app .similar-hero p {
    max-width: 650px;
    font-size: 16px;
    line-height: 1.45;
    color: #c4bfd5;
  }
  body.browser-app .similar-badge {
    display: block;
    margin-top: 15px;
    color: #c8ff8a;
    font-size: 14px;
    font-weight: 600;
  }
  body.browser-app .similar-hero-mark {
    flex-shrink: 0;
    font-size: 68px;
    color: #e5ffc2;
  }
  body.browser-app .spark-it-card {
    padding: 24px 34px 20px;
    margin: 0 0 14px;
    border-radius: 22px;
    border-color: #73d9a566;
    background:
      linear-gradient(90deg, #0c231df5, #0b151dd9 65%, #0c251e50),
      url("/app/studio-ribbons.svg") right top / auto 180% no-repeat,
      #10241d;
  }
  body.browser-app .spark-it-kicker {
    font-size: 15px;
    color: #71ff8e;
    margin-bottom: 14px;
  }
  body.browser-app .spark-it-kicker i {
    font-size: 11px;
    padding: 4px 9px;
  }
  body.browser-app .spark-it-card h2 {
    max-width: 720px;
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -0.02em;
  }
  body.browser-app .spark-it-card > p {
    margin: 6px 0 12px;
    font-size: 14px;
    color: #b2bdb9;
  }
  body.browser-app .spark-it-actions {
    margin-top: 0;
    gap: 12px;
  }
  body.browser-app .spark-it-actions button {
    position: relative;
    min-height: 76px;
    padding: 12px 30px 12px 58px;
    border-color: #ffffff19;
    background: linear-gradient(120deg, #ffffff06, #ffffff03);
  }
  body.browser-app .spark-it-actions button:hover {
    background: #ffffff0c;
    border-color: #97e5b05c;
  }
  body.browser-app .spark-it-actions button::after {
    content: "›";
    position: absolute;
    right: 15px;
    top: 22px;
    font-size: 26px;
    color: #a4afb1;
  }
  body.browser-app .spark-it-actions button::before {
    position: absolute;
    left: 17px;
    top: 22px;
    font-size: 26px;
    line-height: 1;
  }
  body.browser-app [data-spark-it="trend"]::before {
    content: "🔥";
  }
  body.browser-app [data-spark-it="video"]::before {
    content: "▶";
  }
  body.browser-app [data-spark-it="photo"]::before {
    content: "▧";
  }
  body.browser-app [data-spark-it="uniquify"]::before {
    content: "✦";
  }
  body.browser-app .spark-it-actions b {
    font-size: 14px;
    line-height: 1.1;
  }
  body.browser-app .spark-it-actions small {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.2;
    color: #aeb8bc;
  }
  body.browser-app .spark-it-actions .exclusive-badge {
    display: inline-block;
    margin-top: 3px;
    padding: 2px 6px;
    line-height: 1.1;
  }
  body.browser-app .spark-savings-card {
    position: relative;
    min-height: 114px;
    margin: 0 0 22px;
    padding: 15px 20px 12px 84px;
    border-radius: 20px;
    border-color: #87c9bb40;
    background:
      linear-gradient(90deg, #0b181bf5, #0b1d25d9 65%, #13233490),
      url("/app/studio-ribbons.svg") right 55% / auto 280% no-repeat;
  }
  body.browser-app .spark-savings-head > span {
    position: absolute;
    left: 17px;
    top: 16px;
    width: 50px;
    height: 50px;
    background: #12413488;
    border-radius: 13px;
    font-size: 26px;
  }
  body.browser-app .spark-savings-head small {
    color: #c5cdd2;
    font-size: 10px;
  }
  body.browser-app .spark-savings-head b {
    color: #a3f6a0;
    font-size: 21px;
  }
  body.browser-app .spark-savings-card p {
    margin: 5px 0 8px;
    font-size: 12px;
    color: #c2ccd0;
  }
  body.browser-app .spark-savings-meta {
    font-size: 12px;
    color: #94a5a9;
  }
  body.browser-app .spark-assistant-launcher {
    background: linear-gradient(125deg, #6040bb, #31216e);
    border-color: #b581ff;
    box-shadow:
      inset 0 1px 10px #bd93ff44,
      0 8px 30px #0006;
    padding: 17px 22px;
  }
}
@media (min-width: 1000px) and (max-width: 1250px) {
  body.browser-app .app-shell {
    margin-left: 240px;
    padding-right: 24px;
    padding-left: 24px;
  }
  body.browser-app .desktop-sidebar {
    width: 240px;
  }
  body.browser-app .desktop-brand {
    gap: 10px;
    padding: 10px 6px;
  }
  body.browser-app .desktop-brand b {
    font-size: 20px;
  }
  body.browser-app .topbar {
    margin-left: -24px;
    margin-right: -24px;
    padding: 0 24px;
  }
  body.browser-app .web-mode-bar {
    gap: 6px;
  }
  body.browser-app .web-mode-bar button {
    padding: 9px 12px;
    font-size: 12px;
  }
  body.browser-app .spark-it-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.browser-app .similar-hero p {
    max-width: 500px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.browser-app .desktop-sidebar button {
    transition: none;
  }
}
