/* theme-light.css
 *
 * The light theme. Every rule in this file is scoped to :root[data-theme="light"],
 * so nothing here can reach the dark theme - dark is exactly what it always was,
 * and this file only ever adds on top of it.
 *
 * Load it after the page's own stylesheet. Pages that do not link it stay dark
 * whatever the setting says, which is why the editor is unaffected.
 */

:root[data-theme="light"]{
  color-scheme:light;

  /* main.css */
  --bg:#ffffff;
  --panel:#f7f8fa;
  --panel-2:#f1f3f6;
  --panel-3:#e9edf2;
  --text:#14181d;
  --muted:#5f6873;
  --muted-2:#79828d;
  --accent:#1f6ee5;
  --accent-2:#1558c4;
  --border:#e4e8ed;
  --border-strong:#ccd3db;
  --success:#2e9c66;
  --shadow:0 18px 48px rgba(15,23,42,.12);

  /* dashboard.css and pricing.css */
  --surface:#f7f8fa;
  --surface-2:#f1f3f6;
  --accent-hover:#1558c4;
  --danger:#c0453f;

  /* helpcenter.css */
  --hc-bg:#ffffff;
  --hc-surface:#f7f8fa;
  --hc-surface-2:#f1f3f6;
  --hc-text:#14181d;
  --hc-muted:#5f6873;
  --hc-muted-2:#79828d;
  --hc-border:#e4e8ed;
  --hc-border-strong:#ccd3db;
  --hc-accent:#1f6ee5;
  --hc-accent-hover:#1558c4;
  --hc-danger:#c0453f;

  /* guide.css */
  --guide-bg:#ffffff;
  --guide-surface:#f7f8fa;
  --guide-text:#14181d;
  --guide-muted:#5f6873;
  --guide-muted-2:#79828d;
  --guide-border:#e4e8ed;
  --guide-border-strong:#ccd3db;
  --guide-accent:#1f6ee5;
  --guide-link:#1f6ee5;

  /* myaccount.css */
  --account-bg:#ffffff;
  --account-text:#14181d;
  --account-muted:#5f6873;
  --account-border:#e4e8ed;
  --account-border-strong:#ccd3db;
  --account-accent:#1f6ee5;
  --account-accent-hover:#1558c4;

  /* login.css and signup.css */
  --auth-bg:#ffffff;
  --auth-text:#14181d;
  --auth-muted:#5f6873;
  --auth-border:#e4e8ed;
  --auth-border-strong:#ccd3db;
  --auth-accent:#1f6ee5;
  --auth-accent-hover:#1558c4;

  /* policy.css */
  --policy-bg:#ffffff;
  --policy-surface:#f7f8fa;
  --policy-text:#14181d;
  --policy-body:#3d444d;
  --policy-muted:#5f6873;
  --policy-border:#e4e8ed;
  --policy-border-strong:#ccd3db;
  --policy-accent:#1f6ee5;

  /* what-vidnexia-is.css */
  --about-bg:#ffffff;
  --about-surface:#f7f8fa;
  --about-text:#14181d;
  --about-body:#3d444d;
  --about-muted:#5f6873;
  --about-border:#e4e8ed;
  --about-border-strong:#ccd3db;
  --about-accent:#1f6ee5;
  --about-accent-hover:#1558c4;

  /* settings.css and admin.css */
  --glass-soft:linear-gradient(180deg,#ffffff,#fbfcfd);
  --ring:0 0 0 2px rgba(31,110,229,.22);

  /* Shadow-DOM components (profile menu, inbox, cookie notice). Custom
     properties inherit past a shadow boundary, so this is how they follow the
     theme; each component keeps the dark value as its fallback. */
  --cr-pop-bg:#ffffff;
  --cr-pop-chip-bg:#ffffff;
  --cr-pop-border:#d7dde4;
  --cr-pop-border-strong:#b6bfc9;
  --cr-pop-divider:#e4e8ed;
  --cr-pop-ink:#14181d;
  --cr-pop-ink-soft:#3d444d;
  --cr-pop-ink-faint:#79828d;
  --cr-pop-page-bg:#ffffff;
  --cr-pop-hover:#f1f3f6;
  --cr-pop-link:#1f6ee5;
  --cr-pop-link-hover:#14539c;
  --cr-pop-shadow:0 16px 40px rgba(15,23,42,.14);
  --cr-pop-accent-bg:#e8f0fd;
  --cr-pop-accent-bg-hover:#dbe8fb;
  --cr-pop-accent-border:#9dbdf0;
  --cr-pop-accent-border-hover:#7ea8ea;
  --cr-pop-accent-ink:#14539c;
  --cr-pop-danger:#b4544f;
  --cr-pop-danger-bg:#fdf0f0;
  --cr-pop-danger-hover:#a8403b;
  --cr-pop-plan-bg:#eef1f5;
  --cr-pop-plan-ink:#2b323b;
  --cr-pop-plan-max-bg:#f6eedb;
  --cr-pop-plan-max-ink:#8a6516;
}

/* ---------------------------------------------------------------- shared chrome */
:root[data-theme="light"] body{background:var(--bg);color:var(--text)}

:root[data-theme="light"] .navbar{
  background:rgba(255,255,255,.92);
  border-bottom:1px solid var(--border);
}
:root[data-theme="light"] .nav-link{color:#4b545f}
:root[data-theme="light"] .nav-link:hover{color:#14181d;background:#f1f3f6}

/* logo-dark is the dark-coloured logo, so it is the one for the light theme. */
:root[data-theme="light"] .logo-img.logo-light{display:none}
:root[data-theme="light"] .logo-img.logo-dark{display:block}

:root[data-theme="light"] .btn-outline{background:#ffffff;color:#39414b;border-color:var(--border-strong)}
:root[data-theme="light"] .btn-outline:hover{background:#f4f6f8;border-color:#b6bfc9;color:#14181d}
:root[data-theme="light"] .btn-ghost{background:#f4f6f8;color:#39414b;border-color:var(--border)}
:root[data-theme="light"] .btn-ghost:hover{background:#eaeef2;color:#14181d}
:root[data-theme="light"] .btn-subtle{background:#f4f6f8;color:#39414b;border-color:var(--border-strong)}
:root[data-theme="light"] .btn-subtle:hover{background:#eaeef2;border-color:#b6bfc9;color:#14181d}
:root[data-theme="light"] .btn-primary{color:#fff}

:root[data-theme="light"] .site-footer{
  background:#f7f8fa;color:#69717b;border-top:1px solid var(--border);
}

/* ---------------------------------------------------------------- type */
/* The pages set their ink colours per rule rather than through the tokens, so
   the light theme restates them once here by role. */
:root[data-theme="light"] h1,
:root[data-theme="light"] h2,
:root[data-theme="light"] h3,
:root[data-theme="light"] h4,
:root[data-theme="light"] h5,
:root[data-theme="light"] strong,
:root[data-theme="light"] b,
:root[data-theme="light"] summary{color:#14181d}

:root[data-theme="light"] p,
:root[data-theme="light"] li,
:root[data-theme="light"] dd,
:root[data-theme="light"] td,
:root[data-theme="light"] label,
:root[data-theme="light"] small,
:root[data-theme="light"] em,
:root[data-theme="light"] figcaption{color:#3d444d}

:root[data-theme="light"] .muted,
:root[data-theme="light"] .hint,
:root[data-theme="light"] th{color:#5f6873}

:root[data-theme="light"] a:not([class]){color:#1f6ee5}
/* After the rule above, which has the same weight: footer links stay quiet. */
:root[data-theme="light"] .site-footer a{color:#4b545f}
:root[data-theme="light"] .site-footer a:hover{color:#14181d}
:root[data-theme="light"] .home-link,
:root[data-theme="light"] .product-more-link,
:root[data-theme="light"] .forgot,
:root[data-theme="light"] .hc-chip{color:#4b545f}
:root[data-theme="light"] .home-link:hover,
:root[data-theme="light"] .product-more-link:hover,
:root[data-theme="light"] .forgot:hover,
:root[data-theme="light"] .hc-chip:hover{color:#14181d}

/* ---------------------------------------------------------------- fields */
:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea{
  background:#ffffff;color:#14181d;border-color:var(--border-strong);
}
:root[data-theme="light"] input:hover,
:root[data-theme="light"] select:hover,
:root[data-theme="light"] textarea:hover{border-color:#b6bfc9}
:root[data-theme="light"] input:focus,
:root[data-theme="light"] select:focus,
:root[data-theme="light"] textarea:focus{border-color:#1f6ee5;background:#ffffff}
:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder{color:#8b939d}

/* Landing page copy. The product mock-up below it stays dark on purpose: it is a
   picture of the editor, and the editor is dark. */
:root[data-theme="light"] .section-label{color:#6b7480}
:root[data-theme="light"] .tagline{color:#4b545f}
:root[data-theme="light"] .features{background:#f7f8fa;border-top:1px solid var(--border)}
:root[data-theme="light"] .feature-heading h2{color:#14181d}
:root[data-theme="light"] .feature-heading>p:last-child{color:#4b545f}
:root[data-theme="light"] .fact-name{color:#6b7480}
:root[data-theme="light"] .fact-row strong{color:#14181d}
:root[data-theme="light"] .fact-row p{color:#4b545f}
:root[data-theme="light"] .landing-band{background:#ffffff;border-top:1px solid var(--border)}
:root[data-theme="light"] .landing-cta h2{color:#14181d}
:root[data-theme="light"] .landing-cta-inner p{color:#4b545f}
:root[data-theme="light"] .tour-steps li>span:first-child{color:#2b323b}
:root[data-theme="light"] .tour-steps li.is-current>span:first-child{color:#14181d}
:root[data-theme="light"] .tour-steps li>span:last-child{color:#5f6873}
:root[data-theme="light"] .tour-also{color:#4b545f}

/* The dark mock-up keeps its own text colours. */
:root[data-theme="light"] .product-window h1,
:root[data-theme="light"] .product-window h2,
:root[data-theme="light"] .product-window h3,
:root[data-theme="light"] .product-window strong{color:#e2e6eb}
:root[data-theme="light"] .product-window b{color:#707986}
:root[data-theme="light"] .product-window p,
:root[data-theme="light"] .product-window li,
:root[data-theme="light"] .product-window label,
:root[data-theme="light"] .product-window small{color:#b2bac4}

/* ---------------------------------------------------------------- pricing */
:root[data-theme="light"] .plan-card{background:#ffffff}
:root[data-theme="light"] .plan-card.plan-pro{background:#f7f8fa;border-color:#ccd3db}
:root[data-theme="light"] .amount{color:#14181d}
:root[data-theme="light"] .currency,
:root[data-theme="light"] .period{color:#4b545f}

/* ---------------------------------------------------------------- guide */
:root[data-theme="light"] .guide-toc a:hover{background:#f3f5f8;color:#14181d}
:root[data-theme="light"] .guide-toc a.is-active{background:#eef1f5;border-color:#d7dde4;color:#14181d}
:root[data-theme="light"] .guide-note{background:#f7f8fa;border-left-color:#1f6ee5;color:#3d444d}
:root[data-theme="light"] .guide-note b{color:#14181d}
:root[data-theme="light"] kbd{background:#f1f3f6;border-color:#ccd3db;color:#39414b}
:root[data-theme="light"] .guide-steps li::before{background:#f7f8fa;border-color:#ccd3db;color:#1f6ee5}
:root[data-theme="light"] .guide-list li::before{background:#b6bfc9}
:root[data-theme="light"] .guide-figure img{background:#f7f8fa}
:root[data-theme="light"] .image-zoom-backdrop{background:rgba(22,27,34,.72)}

/* ---------------------------------------------------------------- help center */
:root[data-theme="light"] .hc-search input{background:#ffffff}
:root[data-theme="light"] .hc-accordion details>div{color:#3d444d}
:root[data-theme="light"] .hc-accordion summary:hover{color:#1f6ee5}

/* ---------------------------------------------------------------- dashboard */
:root[data-theme="light"] .search,
:root[data-theme="light"] .select{background:#ffffff;color:#14181d}
:root[data-theme="light"] .p-title,
:root[data-theme="light"] .stat-v{color:#14181d}
:root[data-theme="light"] .open-with{background:#f7f8fa}
:root[data-theme="light"] .open-link{color:#4b545f}
:root[data-theme="light"] .badge-ready{background:#e7f5ed;border-color:#b6dfc8;color:#1f7a4d}

/* ---------------------------------------------------------------- my account */
:root[data-theme="light"] .acct-tab:hover{background:#f3f5f8;color:#14181d}
:root[data-theme="light"] .acct-tab.is-active{background:#eef1f5;border-color:#d7dde4;color:#14181d}
:root[data-theme="light"] .acct-tab.danger.is-active{background:#fdf0f0;border-color:#efcfcf;color:#a8403b}
:root[data-theme="light"] .acct-tab svg{color:#79828d}
:root[data-theme="light"] .meter{background:#e9edf2}
:root[data-theme="light"] .ai-block,
:root[data-theme="light"] .ai-stat,
:root[data-theme="light"] .seg{background:#f7f8fa}
:root[data-theme="light"] .seg-btn{color:#5f6873}
:root[data-theme="light"] .seg-btn:hover{background:#eef1f5;color:#14181d}
:root[data-theme="light"] .seg-btn.is-active{background:#e4e9f0;color:#14181d}
:root[data-theme="light"] .ai-bar.is-zero{background:#e4e8ed}
:root[data-theme="light"] .ai-row{color:#3d444d}
:root[data-theme="light"] .ai-stat-value,
:root[data-theme="light"] .ai-table td{color:#14181d}
:root[data-theme="light"] .switch .switch-ui{background:#d3d9e0}
:root[data-theme="light"] .switch .switch-ui::after{background:#ffffff}

/* ---------------------------------------------------------------- settings */
/* The panels are white-on-white overlays in dark, so they need real surfaces. */
:root[data-theme="light"] .st-sidebar,
:root[data-theme="light"] .panel{background:#ffffff;border-color:var(--border)}
:root[data-theme="light"] .card{background:#f9fafb;border-color:var(--border)}
:root[data-theme="light"] .st-tab{color:#4b545f}
:root[data-theme="light"] .st-tab:hover{background:#f1f3f6}
:root[data-theme="light"] .st-tab.is-active{background:#eef1f5;border-color:#d7dde4;color:#14181d}
:root[data-theme="light"] .st-tab.danger{color:#b4544f}
:root[data-theme="light"] .theme-option{background:#ffffff;color:#14181d;border-color:var(--border)}
:root[data-theme="light"] .theme-option:hover{background:#f7f8fa;border-color:var(--border-strong)}
:root[data-theme="light"] .theme-option.is-active{background:#eef4fd;border-color:#9dbdf0}
:root[data-theme="light"] .theme-option-name{color:#14181d}
:root[data-theme="light"] .theme-option-note{color:#5f6873}
:root[data-theme="light"] .btn-danger{background:#fdf0f0;border-color:#efcfcf;color:#a8403b}
:root[data-theme="light"] .btn-danger:hover{background:#f9e2e2;border-color:#e3b4b4;color:#8f332f}
:root[data-theme="light"] .danger-card{border-color:#eccccc}
:root[data-theme="light"] .danger-card h3{color:#a8403b}

/* ---------------------------------------------------------------- lists, menus, hovers */
/* Rows and menu items that darken on hover have to lighten instead. */
:root[data-theme="light"] .project-row:hover,
:root[data-theme="light"] .open-link:hover,
:root[data-theme="light"] .btn-more:hover,
:root[data-theme="light"] .icon-btn:hover,
:root[data-theme="light"] .menu-item:hover,
:root[data-theme="light"] .choice:hover,
:root[data-theme="light"] .toc a:hover{background:#f1f3f6;color:#14181d}

:root[data-theme="light"] .menu-pop,
:root[data-theme="light"] .modal-card,
:root[data-theme="light"] .toast,
:root[data-theme="light"] .choice,
:root[data-theme="light"] .toc a,
:root[data-theme="light"] .msg,
:root[data-theme="light"] .msg.agent,
:root[data-theme="light"] .attach span,
:root[data-theme="light"] .sub-success-box{background:#f7f8fa}

:root[data-theme="light"] .menu-item,
:root[data-theme="light"] .empty-title,
:root[data-theme="light"] .c-title,
:root[data-theme="light"] .toast,
:root[data-theme="light"] .ticket-item .title,
:root[data-theme="light"] .msg .text,
:root[data-theme="light"] .attach span,
:root[data-theme="light"] .online-title{color:#3d444d}

:root[data-theme="light"] .choice.primary,
:root[data-theme="light"] .choice-icon,
:root[data-theme="light"] .choice.primary .choice-icon,
:root[data-theme="light"] .msg.user,
:root[data-theme="light"] .success-icon{background:#e8f0fd;color:#14539c}
:root[data-theme="light"] .choice.primary:hover{background:#dbe8fb}

:root[data-theme="light"] .modal-backdrop,
:root[data-theme="light"] .sub-success-overlay,
:root[data-theme="light"] #loadingOverlay{background:rgba(22,27,34,.45)}

/* Native dropdown lists render the option colours, so they need answering too. */
:root[data-theme="light"] .form-row select option,
:root[data-theme="light"] select option{background:#ffffff;color:#14181d}

/* Link hovers that brighten towards white. */
:root[data-theme="light"] .hc-accordion a:hover,
:root[data-theme="light"] .hc-contact a:hover,
:root[data-theme="light"] .fine-print a:hover,
:root[data-theme="light"] .policy-content a:hover,
:root[data-theme="light"] .swap-link a,
:root[data-theme="light"] .login-link a,
:root[data-theme="light"] .guide-hero-links a:hover{color:#14539c}

/* Staff roles: the dark-theme neons are unreadable on white. */
:root[data-theme="light"] .role-moderator{color:#8a6a00}
:root[data-theme="light"] .role-executive{color:#0f7a54}
:root[data-theme="light"] .ticket-detail .muted{color:#5f6873}
:root[data-theme="light"] .debug{background:rgba(22,27,34,.06)}

/* ---------------------------------------------------------------- misc */
:root[data-theme="light"] .status-code{color:#5f6873}
