/* The layout switch keeps the original console and its saved preferences available. */
.nt-new-only { display:none !important; }

html[data-nt-layout="current"][data-nt-edition="console"][data-nt-refresh]:has(#root) {
  --canvas:#17191b;
  --rail:#131517;
  --surface:#202326;
  --raised:#292d30;
  --field:#191c1e;
  --hair:#33373a;
  --edge:#474b4d;
  --paper-ink:#f7f3eb;
  --secondary:#cfcbc4;
  --dim:#a8aba9;
  --accent:#ffbd70;
  --link-ink:#ffd092;
  --selected-ink:#ffdaaa;
  --selected-surface:#392f24;
  --ui-face:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  scrollbar-color:#575a5b var(--rail);

  & body:has(#root) #root {
    font-family:var(--ui-face);
    & .nt-app .nt-sidebar {
      background:var(--rail);
      border-color:var(--hair);
    }
    & .nt-sidebar .nt-brand { gap:10px; font-size:24px; font-weight:690; letter-spacing:-.065em; }
    & .nt-brand .nt-reg { display:none; }
    & :is(.nt-sidebar .nt-brand,.login .logo) .nt-mark {
      background:#eebe82; color:#201d19; border-radius:9px;
      box-shadow:inset 0 1px 0 #ffdeb3;
    }
    & .nt-mark i { background:#23201b; }
    & .nt-app .nt-sidebar nav > a,
    & .nt-app .nt-sidebar .nt-task-navigation > summary {
      min-height:41px; gap:12px; font-weight:570; font-size:14px; letter-spacing:0;
    }
    & .nt-app .nt-sidebar :is(nav a svg,nav summary svg) {
      width:18px; height:18px; flex:0 0 18px; stroke-width:1.65; color:#b9bab5;
    }
    & .nt-app .nt-sidebar :is(nav a[aria-current="page"],.nt-workspace[aria-current="page"]) {
      background:var(--selected-surface); color:var(--selected-ink);
      box-shadow:inset 2px 0 var(--accent);
    }
    & .nt-app .nt-sidebar :is(nav a[aria-current="page"] svg,nav a:hover svg) { color:var(--accent); }
    & .nt-app .nt-sidebar .nt-workspace[aria-current]::before { background:var(--selected-ink); }
    & .nt-app .nt-sidebar .nt-sidebar-profile { align-items:center; gap:10px; }
    & .nt-sidebar-profile > span:nth-child(2), & .nt-workspace > span:nth-child(2) { min-width:0; }
    & .nt-sidebar-profile > span :is(b,small), & .nt-workspace small {
      display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    }
    & .nt-content .nt-topbar { background:var(--canvas); border-bottom:1px solid var(--hair); }
    & .nt-content .nt-topbar .nt-breadcrumb { font-size:13px; font-weight:550; }
    & .nt-topbar :is(.nt-design-toggle,.ux-search-open) {
      min-height:34px; border-radius:7px; font-weight:550;
    }
    & .nt-topbar .nt-design-toggle:hover { color:var(--paper-ink); border-color:#807969; }
    & .nt-access-note {
      padding:11px 15px; color:#f3e6cf; background:#26231e; border-color:#514433; border-radius:9px;
    }
    & .nt-access-note :is(a,svg) { color:var(--link-ink); }
    & .nt-mobile-nav { background:var(--rail); border-color:var(--hair); }
    & .nt-mobile-nav a { font-size:11px; }
    & .nt-mobile-nav a[aria-current] { background:var(--selected-surface); color:var(--selected-ink); }
    & .nt-content #content {
      --secondary:#cfcbc4;
      & .nt-studio-heading {
        gap:14px; margin:0 0 22px; padding:0 0 18px; border-bottom:1px solid var(--hair);
        grid-template-columns:minmax(0,1fr) clamp(78px,11vw,142px);
      }
      & .head :is(h1,h2) {
        font:650 clamp(31px,3.1vw,46px)/1.06 var(--ui-face);
        letter-spacing:-.042em; text-wrap:balance;
      }
      & .nt-studio-heading > .head { gap:12px; }
      & .nt-studio-heading > .nt-studio-art { height:84px; }
      & .nt-studio-art::before { display:none; }
      & .nt-studio-art::after { inset:4%; }
      & .head .sub { margin-top:8px; color:var(--secondary); }
      & :is(.card,.box,.nt-account-drop,.nt-material-drop,.task-picker-group,.nt-help-topic) {
        border-color:var(--hair); border-radius:10px; box-shadow:none;
      }
      & :is(h3,h4,.card strong,.nt-section-heading h3) { letter-spacing:-.018em; }
      & .card .num { font-variant-numeric:tabular-nums lining-nums; }
      & :is(.btn,.btn.lg,.head .btn:not(.quiet,.line,.danger),#material-text-form #material-save) {
        border-radius:7px; background:var(--accent); color:#261b0e;
      }
      & :is(.btn.line,.btn.quiet,.head .btn.line,.head .btn.quiet,.nt-task-table .btn) {
        background:transparent!important; color:var(--secondary)!important; border-color:var(--edge);
      }
      & .btn.danger { background:#35272b; color:#ffc8c5; border-color:#725054; }
      & .btn:disabled { cursor:not-allowed; }
      & :is(input.inp,select.inp,textarea.inp) { border-color:#555956; border-radius:6px; }
      & :is(.inp:focus,select:focus,textarea:focus) { border-color:var(--accent); }
      & :is(.nt-material-tabs,.nt-profile-tabs,.ui-task-tabs,.nt-task-status-filters) {
        gap:5px; padding-bottom:8px; border-color:var(--hair);
      }
      & th { background:#25282a; color:#d6d3cc; }
      & :is(.traffic-track,.ux-progress,.nt-campaign-progress-track,.nt-account-progress-track) {
        background:#3d4141; border-radius:4px;
      }
      & .nt-account-stat-icon { color:#dfbe8f; }
      & .task-picker-group { padding-inline:18px; }
      & .nt-studio-group-head { border-color:var(--hair); }
      & .task-picker-group .nt-more-grid > a.card.nt-more-link { border-radius:4px!important; }
      & .task-picker-group .nt-more-grid > a:hover strong { color:var(--link-ink); }
      & .nt-help-topic:hover { background:var(--raised); border-color:#8c7350; }
      & :focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

      /* This image has a dark, empty left side reserved for live text and controls. */
      & .nt-home-heading {
        display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:12px;
        isolation:isolate; position:relative; overflow:hidden; min-height:196px;
        margin:0 0 16px; padding:24px clamp(20px,2.6vw,40px);
        border:1px solid #49413a; border-radius:14px; background-color:#202020;
        background-image:linear-gradient(90deg,rgba(20,21,22,.94),rgba(20,21,22,.60) 40%,transparent 74%),url("/nt-cover-brass-v1.webp");
        background-size:cover; background-position:center;
      }
      & .nt-home-heading > .nt-studio-art, & .nt-home-heading .head .sub { display:none; }
      & .nt-home-heading .nt-home-date {
        display:block!important; color:#e2caaa; font-size:13px; line-height:1.25; font-weight:600;
      }
      & .nt-home-date::first-letter { text-transform:uppercase; }
      & .nt-home-heading > .head { display:flex; flex-direction:column; align-items:flex-start; gap:18px; margin:0; }
      & .nt-home-heading .head h2 { color:#fff7eb; font-size:clamp(34px,3.4vw,51px); letter-spacing:-.052em; }
      & .nt-home-heading .head .stack { display:flex; flex-wrap:wrap; gap:8px; }
      & .nt-home-heading .head .stack .btn { min-height:38px; padding:8px 14px; font-size:13px; line-height:1.35; }
      & .nt-home-heading .head .stack .btn.line { color:#f3e8d8!important; border-color:#776a58; background:rgba(25,25,24,.85)!important; }
      & .nt-overview .nt-menu-layout {
        display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:14px 0; align-items:stretch;
      }
      & .nt-overview .nt-menu-column { display:contents; }
      & .nt-overview .nt-menu-column > h3 {
        position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%);
      }
      & .nt-overview .nt-menu-column > .card { min-width:0; margin:0; }
      & .nt-overview .nt-menu-column > .card.stat {
        display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:6px;
        position:relative; grid-row:1; grid-column:span 3; padding:19px clamp(12px,1.35vw,22px);
        min-height:121px; border:1px solid var(--hair); border-radius:0!important;
        background:var(--surface); box-shadow:none;
      }
      & .nt-overview .nt-menu-column > .card.stat:first-of-type { grid-column:1/span 3; border-radius:11px 0 0 11px!important; }
      & .nt-overview .nt-menu-column > .card.stat + .card.stat { border-inline-start:0!important; }
      & .nt-overview .nt-menu-column > .card.stat[data-home-item="conversion"] { border-radius:0 11px 11px 0!important; }
      & .nt-overview .nt-menu-column > .card.stat > small {
        order:0; margin:0; padding:0 22px 0 0; font-size:13px; line-height:1.35; font-weight:600; color:#d7d5ce;
      }
      & .nt-overview .nt-menu-column > .card.stat > .num {
        order:1; margin:2px 0 0; color:var(--paper-ink); font:610 clamp(26px,2.05vw,34px)/1.13 var(--ui-face);
        font-variant-numeric:tabular-nums; letter-spacing:-.045em;
      }
      & .nt-overview .nt-menu-column > .card.stat:first-of-type > .num { color:#ffdcaa; }
      & .nt-overview .nt-menu-column > .card.stat .num[data-no-metric] {
        font:570 clamp(17px,1.4vw,22px)/1.18 var(--ui-face); letter-spacing:-.024em;
      }
      & .nt-overview .nt-menu-column > .card.stat > span { order:2; color:var(--secondary); font-size:12px; line-height:1.45; }
      & .nt-overview .nt-menu-column > .card.stat .traffic-track {
        order:3; height:3px; margin:2px 0 0; width:100%; mask:none; border-radius:4px;
      }
      & .nt-overview .nt-menu-column > .card.stat .metric-help {
        position:absolute; inset:12px 10px auto auto; margin:0; z-index:2;
      }
      & .nt-overview .nt-menu-column .metric-help summary {
        width:25px; height:25px; border:0; border-radius:50%; color:var(--dim); background:transparent;
      }
      & .nt-overview .nt-menu-column .metric-help summary:hover { color:var(--link-ink); background:var(--raised); }
      & .nt-overview .card.stat:has(.metric-help[open]) { z-index:3; }
      & .nt-overview .nt-menu-column > .nt-menu-tile {
        display:flex; grid-row:2; grid-column:span 4; margin:0 6px; border-color:var(--hair); background:#1b1e20;
        border-radius:9px; min-height:68px; align-items:stretch;
      }
      & .nt-overview .nt-menu-column > [data-home-item="accounts"] { margin-inline:0 9px; }
      & .nt-overview .nt-menu-column > [data-home-item="videos"] { display:flex!important; margin-inline:9px 0; }
      & .nt-overview .nt-menu-tile .nt-menu-tile-link {
        display:flex; align-items:center; gap:12px; min-height:68px; width:100%; padding:11px 14px;
        border-radius:8px; background:transparent; color:var(--paper-ink);
      }
      & .nt-overview .nt-menu-tile .nt-menu-tile-icon { flex:0 0 24px; width:24px; height:26px; color:#dcbb91; padding:0; }
      & .nt-overview .nt-menu-tile .nt-menu-tile-icon svg { width:22px; height:22px; stroke-width:1.65; }
      & .nt-overview .nt-menu-tile .nt-menu-arrow { margin-left:auto; color:var(--dim); }
      & .nt-overview .nt-menu-tile:has(.metric-help) .nt-menu-tile-link { padding-right:36px; }
      & .nt-overview .nt-menu-tile .nt-menu-tile-link :is(small,strong) { display:block; line-height:1.4; }
      & .nt-overview .nt-menu-tile .nt-menu-tile-link small { font-size:12px; margin-top:2px; }
      & .nt-overview .nt-menu-tile:has(a:hover) { background:var(--raised); border-color:#65594a; }
      & .nt-overview .nt-menu-column > [data-home-item="recent"],
      & .nt-overview .nt-menu-column > [data-home-item="chart"] {
        grid-row:3; padding:20px; border-radius:11px; background:var(--surface); align-self:stretch; min-width:0;
      }
      & .nt-overview .nt-menu-column > [data-home-item="recent"] { grid-column:1/span 7; margin-right:7px; }
      & .nt-overview .nt-menu-column > [data-home-item="chart"] { grid-column:8/-1; margin-left:7px; }
      & .nt-overview :is([data-home-item="recent"],[data-home-item="chart"]) > .stack { gap:8px 12px; flex-wrap:wrap; }
      & .nt-overview :is([data-home-item="recent"],[data-home-item="chart"]) h3 { margin:0; font-size:19px; line-height:1.25; }
      & .nt-overview .nt-home-empty {
        display:grid; justify-items:start; text-align:left; gap:4px; align-content:center; padding:18px 0;
        color:var(--secondary); font-size:13px; line-height:1.5;
      }
      & .nt-overview .nt-home-empty b { margin:0; color:var(--paper-ink); font-size:15px; }
      & .nt-overview .nt-empty-icon { display:inline-flex!important; align-items:center; margin-bottom:3px; color:#bda584; }
      & .nt-overview .nt-empty-icon svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.5; }
      & .nt-overview .bars { height:156px; }
      & .nt-overview .bars .b .p { background:var(--accent); }
      & .nt-overview .bars .b i:not(.p) { background:#616769; }
      & .nt-overview .list .item { min-height:49px; padding-block:9px; }
      & .nt-overview .list .item > div { min-width:0; overflow-wrap:anywhere; }
    }
  }
}

@media(min-width:761px) {
  html[data-nt-layout="current"][data-nt-edition="console"][data-nt-refresh]:has(#root) body:has(#root) #root .nt-app {
    grid-template-columns:clamp(208px,15.9vw,244px) minmax(0,1fr);
    & .nt-sidebar { padding:23px 14px 12px; }
    & .nt-content :is(.nt-topbar,#content,.nt-footer) { padding-inline:clamp(22px,2.6vw,44px); }
    & .nt-sidebar .nt-brand { margin:0 7px 25px; }
    & .nt-sidebar .nt-workspace { padding:9px 11px; gap:10px; }
    & .nt-sidebar .nt-task-navigation[open] > div { margin-left:7px; }
    & .nt-topbar { height:56px; }
    & #content { padding-top:20px; }
  }
}
@media(max-width:1049px) {
  html[data-nt-layout="current"][data-nt-edition="console"][data-nt-refresh]:has(#root) body:has(#root) #root .nt-content #content .nt-overview {
    & .nt-menu-layout { grid-template-columns:repeat(6,minmax(0,1fr)); }
    & .nt-menu-column > .card.stat { grid-row:auto; grid-column:span 3; padding:15px; min-height:99px; }
    & .nt-menu-column > .card.stat:first-of-type { grid-column:1/span 3; border-radius:9px 0 0 9px!important; }
    & .nt-menu-column > .card.stat[data-home-item="today"], & .nt-menu-column > .card.stat[data-home-item="conversion"] { border-radius:0 9px 9px 0!important; }
    & .nt-menu-column > .card.stat[data-home-item="published"] { border-inline-start:1px solid var(--hair)!important; border-radius:9px 0 0 9px!important; }
    & .nt-menu-column > :is([data-home-item="traffic"],[data-home-item="today"]) { grid-row:1!important; }
    & .nt-menu-column > :is([data-home-item="published"],[data-home-item="conversion"]) { grid-row:2!important; }
    & .nt-menu-column > .nt-menu-tile { grid-column:span 2; grid-row:3; }
    & .nt-menu-column > [data-home-item="recent"], & .nt-menu-column > [data-home-item="chart"] { grid-column:1/-1; grid-row:auto; margin:0; }
  }
}
@media(max-width:760px) {
  html[data-nt-layout="current"][data-nt-edition="console"][data-nt-refresh]:has(#root) body:has(#root) #root .nt-content #content {
    & .nt-studio-heading { grid-template-columns:minmax(0,1fr) 65px; gap:10px; }
    & .nt-studio-heading > .nt-studio-art { height:63px; }
    & .nt-studio-heading > .head { display:contents; }
    & .nt-home-heading { padding:16px; min-height:154px; background-position:64% center; }
    & .nt-home-heading > .head { display:flex; align-items:flex-start; gap:14px; }
    & .nt-home-heading .head h2 { font-size:clamp(32px,7vw,39px); }
    & .nt-home-heading .head .stack .btn { min-height:35px; padding:7px 10px; font-size:12px; }
    & .nt-home-heading .nt-home-date { font-size:12px; }
    & .nt-overview .nt-menu-layout { gap:9px 0; }
    & .nt-overview .nt-menu-column > .card.stat { padding:12px; min-height:96px; }
    & .nt-overview .nt-menu-column > .card.stat > small { font-size:12px; }
    & .nt-overview .nt-menu-column > .card.stat > span { font-size:11.5px; }
    & .nt-overview .nt-menu-column > .card.stat .metric-help { inset:7px 4px auto auto; }
    & .nt-overview .nt-menu-column > .nt-menu-tile { margin:0 2px; min-height:52px; }
    & .nt-overview .nt-menu-column > [data-home-item="accounts"] { margin-inline:0 4px; }
    & .nt-overview .nt-menu-column > [data-home-item="videos"] { margin-inline:4px 0; }
    & .nt-overview .nt-menu-tile .nt-menu-tile-link { flex-direction:column; justify-content:center; gap:4px; min-height:55px; padding:8px 4px; text-align:center; }
    & .nt-overview .nt-menu-tile:has(.metric-help) .nt-menu-tile-link { padding-right:4px; }
    & .nt-overview .nt-menu-tile .nt-menu-tile-link .nt-menu-tile-icon { flex:0 0 18px; width:18px; height:18px; }
    & .nt-overview .nt-menu-tile .nt-menu-tile-icon svg { width:17px; height:17px; }
    & .nt-overview .nt-menu-tile .nt-menu-tile-link strong { font-size:13px; }
    & .nt-overview .nt-menu-tile :is(.nt-menu-arrow,.nt-menu-tile-link small) { display:none; }
    & .nt-overview .nt-menu-tile .metric-help { position:absolute; top:3px; right:2px; }
    & .nt-overview .nt-menu-tile .metric-help summary { width:22px; height:22px; }
    & .nt-overview .nt-menu-column > [data-home-item="recent"], & .nt-overview .nt-menu-column > [data-home-item="chart"] { padding:15px; }
  }
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  html[data-nt-layout="current"] #root :is(.btn,.nt-help-topic,.nt-menu-tile,.nt-more-link) {
    transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
  }
  html[data-nt-layout="current"] #root :is(.nt-menu-tile,.nt-help-topic):hover { transform:translateY(-2px); }
  html[data-nt-layout="current"] #root .btn:active:not(:disabled) { transform:translateY(1px); }
}
