/* SurveyAhoy's look on the Suite's pages it has under /new/ (Http/NewSite.cs adds this to them, after their own styles,
   with data-product="new" on the body), as drawn in the mock-ups Peter liked (6 Dec 2026). new/app.js draws the menu
   and Home these style. Palette colours only. */

/* ---- The logo (new/new.js puts it in the header, new/app.js at the top of the menu): Inter 800, "Hey" in Blue ---- */
[data-product="new"] .brand,
[data-product="new"] .new-rail-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; color: var(--agg-ink); text-decoration: none; }
[data-product="new"] .brand svg,
[data-product="new"] .new-rail-logo svg { width: 34px; height: 30px; }
[data-product="new"] .brand .new-hey,
[data-product="new"] .new-rail-logo .new-hey { color: var(--agg-blue); }
/* The logo only ever on Navy for now (Peter, 7 Dec 2026): Gold bubble, Navy "ahoy", White lines and Survey, Gold Ahoy;
   a Navy band across the top of the menu on a computer, and a Navy header on a phone. */
[data-product="new"] .new-rail-logo { font-size: 19px; margin: -20px -14px 16px; padding: 20px 22px; background: var(--agg-navy); }
[data-product="new"] .new-rail-logo,
[data-product="new"] .dash-header .brand { color: var(--agg-white); }
[data-product="new"] .new-rail-logo .new-hey,
[data-product="new"] .dash-header .brand .new-hey { color: var(--agg-gold); }
[data-product="new"] .new-rail-logo .sh-bubble,
[data-product="new"] .dash-header .brand .sh-bubble { fill: var(--agg-gold); }
[data-product="new"] .new-rail-logo .sh-word,
[data-product="new"] .dash-header .brand .sh-word { fill: var(--agg-navy); }
[data-product="new"] .new-rail-logo .sh-shout,
[data-product="new"] .dash-header .brand .sh-shout { stroke: var(--agg-white); }
[data-product="new"] .dash-header { background: var(--agg-navy); border-bottom-color: var(--agg-navy); }
[data-product="new"] .dash-header .menu-button { background: transparent; border-color: color-mix(in srgb, var(--agg-white) 40%, transparent); }
[data-product="new"] .dash-header .menu-button:hover,
[data-product="new"] .dash-header .menu-button[aria-expanded="true"] { background: color-mix(in srgb, var(--agg-white) 12%, transparent); }
[data-product="new"] .dash-header .menu-bars,
[data-product="new"] .dash-header .menu-bars::before,
[data-product="new"] .dash-header .menu-bars::after { background: var(--agg-white); }

/* ---- No Agglestone Rock behind the pages: the soft wash of SurveyAhoy's home page ---- */
[data-product="new"] .ground::before {
  background:
    radial-gradient(circle at 85% 10%, var(--agg-blue-soft) 0, transparent 45%),
    radial-gradient(circle at 5% 90%, var(--agg-warning-soft) 0, transparent 35%),
    var(--agg-tint);
}

/* ---- The menu ---- */

/* Only SurveyAhoy's items: the Suite's own (which new/app.js's click) are hidden, and so are its Insights parts. Who's
   signed in, Sign in and the plan stay, at the end. */
[data-product="new"] #dashboard-nav > a[data-view],
[data-product="new"] #dashboard-nav > .rail-group { display: none !important; }

[data-product="new"] .new-nav { display: flex; flex-direction: column; gap: 4px; }
[data-product="new"] .rail nav .new-create {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-bottom: 14px; padding: 0 18px;
  border-radius: 12px; background: var(--agg-blue); color: var(--agg-white); font-weight: 700; font-size: 15px; white-space: nowrap;
}
[data-product="new"] .rail nav .new-create:hover { background: var(--agg-blue-dark); }
[data-product="new"] .rail nav .new-nav-item {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  font-weight: 600; font-size: 15px; color: var(--agg-body);
}
[data-product="new"] .rail nav .new-nav-item:hover { background: var(--agg-tint); }
[data-product="new"] .rail nav .new-nav-item[aria-current="page"] { background: var(--agg-blue-soft); color: var(--agg-blue-dark); }
[data-product="new"] .new-nav-sep { margin: 14px 12px 6px; font-size: 12px; font-weight: 700; color: var(--agg-faint); text-transform: uppercase; letter-spacing: 0.04em; }
[data-product="new"] #dashboard-nav > .rail-account,
[data-product="new"] #dashboard-nav > .rail-sign-in-box { margin-top: auto; }

/* On a computer the menu runs the page's full height, the logo at its top, as in the mock-ups: no header. */
@media (min-width: 721px) {
  [data-product="new"] { --header-height: 0px; }
  [data-product="new"] .dash-header { display: none; }
  [data-product="new"] .rail { width: 248px; padding: 20px 14px; border-right-color: var(--agg-line); }
}
@media (max-width: 720px) {
  [data-product="new"] .new-rail-logo { display: none; }
}

/* ---- The pages: headings, tabs and cards as in the mock-ups ---- */

[data-product="new"] main h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
[data-product="new"] .item-tabs { gap: 4px; border-bottom: 1px solid var(--agg-line); }
[data-product="new"] .item-tabs button,
[data-product="new"] .link-tabs a { padding: 0 14px; min-height: 46px; font-weight: 700; font-size: 15px; color: var(--agg-muted); border-bottom: 3px solid transparent; }
[data-product="new"] .item-tabs button[aria-selected="true"],
[data-product="new"] .link-tabs a[aria-current="page"] { color: var(--agg-ink); border-bottom-color: var(--agg-blue); }
[data-product="new"] .item-card,
[data-product="new"] .panel,
[data-product="new"] .table-scroll,
[data-product="new"] .data-table { border-radius: 18px; border-color: var(--agg-line); }
[data-product="new"] .primary,
[data-product="new"] .secondary { border-radius: 12px; }
[data-product="new"] .status-badge.on { background: var(--agg-blue-soft); color: var(--agg-blue-dark); }

/* No Link or QR pages: a survey's short link and QR code are on the survey (new/app.js shows the link under its name),
   so not its "Connected" short link and QR code. Nor any link to a dashboard page SurveyAhoy hasn't (the Share tab's
   "Details", "Create a QR code" and so on): new/new.js marks them. */
[data-product="new"] #connected,
[data-product="new"] a[data-new-elsewhere] { display: none !important; }

/* ---- Home (new/app.js): in place of the Suite's ---- */

[data-product="new"] #home { display: none; }
.new-home { max-width: 1040px; margin: 0 auto; padding-top: 12px; color: var(--agg-ink); }
.new-home[aria-busy="true"] { min-height: 40vh; }
.new-home :where(h1, h2, p) { margin: 0; }
.new-home a { text-decoration: none; color: inherit; }
.new-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.new-h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.new-muted { color: var(--agg-muted); margin-top: 6px; }
.new-tiny { font-size: 12px; color: var(--agg-muted); }
.new-home .new-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.new-home .new-btn-go { background: var(--agg-blue); color: var(--agg-white); }
.new-home .new-btn-go:hover { background: var(--agg-blue-dark); }
.new-card { background: var(--agg-white); border: 1px solid var(--agg-line); border-radius: 18px; }
.new-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.new-kpi { padding: 18px 20px; }
.new-kpi b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 6px; }
.new-up { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--agg-blue-dark); background: var(--agg-blue-soft); border-radius: 999px; padding: 2px 8px; }
.new-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-top: 24px; align-items: start; }
.new-sec-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--agg-line); }
.new-sec-h h2 { font-size: 17px; font-weight: 800; color: var(--agg-ink); text-transform: none; letter-spacing: -0.01em; }
.new-home .new-link { color: var(--agg-blue); font-weight: 700; font-size: 14px; }
.new-srow { display: grid; grid-template-columns: minmax(0, 1fr) 90px 90px 110px; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--agg-fill); }
.new-srow:last-child { border-bottom: 0; border-radius: 0 0 18px 18px; }
.new-srow:hover { background: var(--agg-tint); }
.new-sname { font-weight: 700; min-width: 0; }
.new-sname span { display: block; font-weight: 500; font-size: 13px; color: var(--agg-muted); margin-top: 2px; }
.new-pill { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.new-pill.live { background: var(--agg-blue-soft); color: var(--agg-blue-dark); }
.new-pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--agg-blue); }
.new-pill.closed { background: var(--agg-warning-soft); color: var(--agg-ink); }
.new-spark { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.new-spark i { width: 8px; border-radius: 2px; background: var(--agg-blue); opacity: 0.85; }
.new-num { font-weight: 800; font-size: 17px; text-align: right; }
.new-num span { display: block; font-size: 12px; font-weight: 500; color: var(--agg-muted); }
.new-feed-wait { padding: 18px 20px; }
.new-fi { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--agg-fill); }
.new-fi:last-child { border-bottom: 0; }
.new-fi-icon { color: var(--agg-blue); flex: none; margin-top: 1px; }
.new-fi p { font-size: 14px; line-height: 1.45; }
.new-fi p.new-tiny { font-size: 12px; margin-top: 4px; }
.new-empty { margin-top: 24px; padding: 40px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.new-empty h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

@media (max-width: 720px) {
  .new-h1, [data-product="new"] main h1 { font-size: 26px; }
  .new-head .new-btn-go { display: none; }
  .new-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .new-kpis .new-kpi:first-child { grid-column: 1 / -1; }
  .new-kpi { padding: 14px; }
  .new-kpi b { font-size: 24px; }
  .new-cols { grid-template-columns: 1fr; }
  .new-srow { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .new-srow .new-spark { display: none; }
  .new-srow .new-pill { grid-row: 2; }
}

/* ---- Room around the pages, as in the mock-ups ---- */
@media (min-width: 721px) {
  [data-product="new"] .ground > main { padding: 32px 40px 64px; }
  [data-product="new"] #workspace,
  [data-product="new"] main > section { max-width: 1040px; margin-left: auto; margin-right: auto; }
}

/* The way back is the page above, as "‹ Surveys" (new/app.js names it); the list pages have none. */
[data-product="new"] .crumbs li { display: none; }
[data-product="new"] .crumbs li:nth-last-child(2):not(:first-child) { display: block; }
[data-product="new"] .crumbs li + li::before { content: none; }
[data-product="new"] .crumbs a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--agg-muted); text-decoration: none; }
[data-product="new"] .crumbs a::before { content: "\2039"; font-size: 20px; line-height: 1; }
[data-product="new"] .crumbs a:hover { color: var(--agg-ink); }

/* ---- A survey's results: cards on the page, not a card of cards ---- */
[data-product="new"] #results-panel.panel { background: none; border: 0; box-shadow: none; padding: 0; }
[data-product="new"] .resp-head { margin-top: 20px; }
[data-product="new"] .counts { gap: 16px; }
[data-product="new"] .count,
[data-product="new"] .timeline { padding: 18px 20px; background: var(--agg-white); border: 1px solid var(--agg-line); border-radius: 18px; }
[data-product="new"] .count b { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
[data-product="new"] .q-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
[data-product="new"] .q-grid .panel { padding: 24px; background: var(--agg-white); border-color: var(--agg-line); border-radius: 18px; }
[data-product="new"] .q-kind { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 6px; background: var(--agg-blue-soft); color: var(--agg-blue-dark); font-size: 12px; font-weight: 800; letter-spacing: 0; }
[data-product="new"] .q h3 { font-size: 18px; font-weight: 800; line-height: 1.35; }
[data-product="new"] .q .bars { display: grid; gap: 12px; margin-top: 16px; }
[data-product="new"] .q .bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 92px; gap: 14px; align-items: center; margin: 0; font-size: 14px; }
[data-product="new"] .q .bar-row > :first-child { order: 1; }
[data-product="new"] .q .bar-row .track { order: 2; grid-column: auto; height: 14px; border-radius: 7px; background: var(--agg-fill); margin: 0; }
[data-product="new"] .q .bar-row .track i { height: 14px; border-radius: 7px; background: var(--agg-blue); }
[data-product="new"] .q .bar-row .v { order: 3; text-align: right; font-weight: 700; }
[data-product="new"] .q .bar-row .v small { margin-left: 6px; font-weight: 500; color: var(--agg-muted); }
@media (max-width: 720px) {
  [data-product="new"] .q .bar-row { grid-template-columns: minmax(0, 1fr) 70px; gap: 6px 10px; }
  [data-product="new"] .q .bar-row .track { grid-column: 1 / -1; order: 3; }
  [data-product="new"] .q .bar-row .v { order: 2; }
}

/* ---- The foot of the menu: a card with who's signed in (new/app.js), Sign out under it ---- */
[data-product="new"] .rail-account-email,
[data-product="new"] .rail-plus.on-plus { display: none !important; }
[data-product="new"] .rail-account { padding-top: 12px; border-top: 1px solid var(--agg-line); }
[data-product="new"] .new-me { display: flex; align-items: center; gap: 10px; padding: 0 4px 8px; }
[data-product="new"] .new-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--agg-gold); color: var(--agg-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
[data-product="new"] .new-me-text { flex: 1; min-width: 0; font-size: 14px; }
[data-product="new"] .new-me-text b,
[data-product="new"] .new-me-text span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-product="new"] .new-me-text span { font-size: 12px; color: var(--agg-muted); }
[data-product="new"] .new-plan { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--agg-gold); color: var(--agg-ink); font-size: 11px; font-weight: 800; }
[data-product="new"] .rail-sign-out { margin-left: 50px; padding: 0; border: 0; background: none; color: var(--agg-muted); font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }
[data-product="new"] .new-legal { margin: 14px 4px 0; font-size: 12px; color: var(--agg-faint); }
[data-product="new"] .rail nav .new-legal a { display: inline; padding: 0; color: var(--agg-muted); }

/* No Suite footer: its pages are under the menu (new/app.js). */
[data-product="new"] .site-footer { display: none; }

/* ---- Surveys: the list as rows (new/app.js adds who can answer and Live or Closed) ---- */
[data-product="new"] #product-lead { color: var(--agg-muted); }
[data-product="new"] .list-search input,
[data-product="new"] .list-filter,
[data-product="new"] .table-rows select { min-height: 40px; border-radius: 10px; border: 1px solid var(--agg-border); background-color: var(--agg-white); font-size: 14px; font-weight: 600; }
[data-product="new"] .section-new { min-height: 44px; border-radius: 12px; font-weight: 700; }
[data-product="new"] .data-card { background: var(--agg-white); border: 1px solid var(--agg-line); border-radius: 18px; overflow: hidden; }
[data-product="new"] .new-row-sub { display: block; margin-top: 2px; font-weight: 500; font-size: 13px; color: var(--agg-muted); }
@media (min-width: 721px) {
  [data-product="new"] .survey-list,
  [data-product="new"] .survey-list tbody { display: block; }
  [data-product="new"] .survey-list thead,
  [data-product="new"] .survey-list colgroup,
  [data-product="new"] .survey-list td[data-label="Who can answer"] { display: none; }
  [data-product="new"] .survey-list tr.row-link {
    display: grid; grid-template-columns: minmax(0, 1fr) 90px 120px 110px 72px; grid-template-rows: auto auto; column-gap: 16px;
    align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--agg-fill);
  }
  [data-product="new"] .survey-list tr.row-link:hover { background: var(--agg-tint); }
  [data-product="new"] .survey-list tr.row-link > td { padding: 0; border: 0; background: none; }
  [data-product="new"] .survey-list tr.row-link > td:first-child { grid-column: 1; grid-row: 1 / 3; font-weight: 700; font-size: 15px; }
  [data-product="new"] .survey-list td.new-row-status { grid-column: 2; grid-row: 1 / 3; }
  [data-product="new"] .survey-list td[data-label="Last 14 days"] { grid-column: 3; grid-row: 1 / 3; }
  [data-product="new"] .survey-list td[data-label="Responses"] { grid-column: 4; grid-row: 1; text-align: right; font-weight: 800; font-size: 17px; }
  [data-product="new"] .survey-list td[data-label="Last answer"] { grid-column: 4; grid-row: 2; text-align: right; font-size: 12px; color: var(--agg-muted); }
  [data-product="new"] .survey-list td.actions-cell { grid-column: 5; grid-row: 1 / 3; }
  [data-product="new"] #product .survey-list tr.row-link > td > a { display: block; padding: 0; color: inherit; text-decoration: none; }
}

/* Live or Closed, as on Home. */
[data-product="new"] .new-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
[data-product="new"] .new-pill.live { background: var(--agg-blue-soft); color: var(--agg-blue-dark); }
[data-product="new"] .new-pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--agg-blue); }
[data-product="new"] .new-pill.closed { background: var(--agg-warning-soft); color: var(--agg-ink); }

/* ---- A survey: Live beside the name, dates and link under it, Share at the right ---- */
[data-product="new"] .item-head { align-items: center; }
[data-product="new"] .status-badge { border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
[data-product="new"] .status-badge.on { font-size: 0; display: inline-flex; align-items: center; gap: 6px; }
[data-product="new"] .status-badge.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--agg-blue); }
[data-product="new"] .status-badge.on::after { content: "Live"; font-size: 12px; }
[data-product="new"] #survey-copy-top { display: none; }
[data-product="new"] .row-menu-button.boxed { width: 44px; height: 44px; border-radius: 12px; border-color: var(--agg-border); }
[data-product="new"] .new-share { min-height: 44px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--agg-blue); color: var(--agg-white); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
[data-product="new"] .new-share:hover { background: var(--agg-blue-dark); }
[data-product="new"] .new-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 6px 0 4px; font-size: 14px; color: var(--agg-muted); }
[data-product="new"] .new-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 6px 4px 10px; border: 1px solid var(--agg-line); border-radius: 10px; background: var(--agg-white); color: var(--agg-ink); font-weight: 700; }
[data-product="new"] .new-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
[data-product="new"] .new-chip button { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--agg-tint); color: var(--agg-body); cursor: pointer; }
[data-product="new"] .new-chip button svg { width: 16px; height: 16px; }

/* Results: Summary | Each person and Download CSV as the mock-ups' filters; figures with their label first. */
[data-product="new"] .resp-head .seg { border-radius: 10px; }
[data-product="new"] .resp-head .secondary { min-height: 40px; border-radius: 10px; border-color: var(--agg-border); font-weight: 700; }
[data-product="new"] #results-panel .counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-product="new"] #results-panel .counts .timeline { grid-column: 1 / -1; }
[data-product="new"] .count { display: flex; flex-direction: column; gap: 4px; }
[data-product="new"] .count span { order: -1; font-size: 12px; color: var(--agg-muted); }

/* Questions: "Q1" and the question on one line, its answers at the right. */
[data-product="new"] .q-grid section.q { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline; }
[data-product="new"] .q-grid section.q > * { grid-column: 1 / -1; }
[data-product="new"] .q-grid section.q > .q-kind { grid-column: 1; grid-row: 1; margin: 0; padding: 2px 7px; }
[data-product="new"] .q-grid section.q > h3 { grid-column: 2; grid-row: 1; margin: 0; }
[data-product="new"] .q-grid section.q > .q-n { grid-column: 3; grid-row: 1; margin: 0; font-size: 12px; }
[data-product="new"] .q-grid section.q > :nth-child(n + 4) { margin-top: 18px; }

/* Faces: a row each (new/app.js), in place of the one coloured bar. */
[data-product="new"] .q.new-faces .senti { display: none; }
[data-product="new"] .new-bars { display: grid; gap: 12px; }
[data-product="new"] .new-bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 92px; gap: 14px; align-items: center; font-size: 14px; }
[data-product="new"] .new-bar-label { display: flex; align-items: center; gap: 8px; }
[data-product="new"] .new-track { height: 14px; border-radius: 7px; background: var(--agg-fill); overflow: hidden; }
[data-product="new"] .new-track i { display: block; height: 14px; border-radius: 7px; background: var(--agg-blue); }
[data-product="new"] .new-bar-pc { text-align: right; font-weight: 700; }
[data-product="new"] .new-bar-pc span { font-weight: 500; color: var(--agg-muted); }

/* Written answers: soft boxes. */
[data-product="new"] .written .card,
[data-product="new"] .written article,
[data-product="new"] .written li { border: 0; border-radius: 12px; background: var(--agg-tint); }

/* ---- Phones: the mock-ups' bar along the bottom (new/app.js) ---- */
[data-product="new"] .new-tabbar { display: none; }
@media (max-width: 720px) {
  [data-product="new"] .menu-plus-link { display: none; }
  [data-product="new"] .new-tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
    padding: 6px 4px calc(10px + env(safe-area-inset-bottom)); background: var(--agg-white); border-top: 1px solid var(--agg-line);
  }
  [data-product="new"] .new-tb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; font-size: 11px; font-weight: 700; color: var(--agg-muted); text-decoration: none; }
  [data-product="new"] .new-tb[aria-current="page"] { color: var(--agg-blue); }
  [data-product="new"] .new-tb-create span:first-child { width: 40px; height: 40px; border-radius: 12px; background: var(--agg-blue); color: var(--agg-white); display: grid; place-items: center; }
  [data-product="new"] .shell { padding-bottom: 76px; }
  [data-product="new"] .new-bar { grid-template-columns: minmax(0, 1fr) 70px; gap: 6px 10px; }
  [data-product="new"] .new-bar .new-track { grid-column: 1 / -1; grid-row: 2; }
  [data-product="new"] #results-panel .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-product="new"] .q-grid section.q { grid-template-columns: auto minmax(0, 1fr); }
  [data-product="new"] .q-grid section.q > .q-n { grid-column: 2; grid-row: 2; }
  [data-product="new"] .new-chip-text { max-width: 200px; }
  /* The name on its own lines, Live and the buttons under it. */
  [data-product="new"] .item-head { flex-wrap: wrap; gap: 10px; }
  [data-product="new"] .item-head h1 { flex-basis: 100%; overflow-wrap: normal; word-break: normal; }
  [data-product="new"] .item-head .item-actions { margin-left: auto; }
}

/* ---- The Share tab's QR style panel (new/app.js) ---- */
[data-product="new"] .new-qs-open,
[data-product="new"] .new-qs-plus { font-weight: 700; }
[data-product="new"] .new-qs {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  margin: 8px 0 16px;
  padding: 20px;
  border: 1px solid var(--agg-line);
  border-radius: 18px;
  background: var(--agg-white);
}
[data-product="new"] .new-qs-preview {
  display: grid;
  place-items: center;
  align-self: start;
  padding: 12px;
  border-radius: 14px;
  background: var(--agg-tint);
}
[data-product="new"] .new-qs-preview img,
[data-product="new"] .new-qs-preview svg { display: block; width: 100%; height: auto; }
[data-product="new"] .new-qs-controls { display: grid; gap: 14px; }
[data-product="new"] .new-qs-group { display: grid; gap: 6px; }
[data-product="new"] .new-qs-name { font-size: 13px; font-weight: 700; color: var(--agg-ink); }
[data-product="new"] .new-seg { display: flex; flex-wrap: wrap; gap: 6px; }
[data-product="new"] .new-seg button {
  padding: 7px 12px;
  border: 1px solid var(--agg-border);
  border-radius: 999px;
  background: var(--agg-white);
  color: var(--agg-body);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
[data-product="new"] .new-seg button[aria-pressed="true"] {
  border-color: var(--agg-blue);
  background: var(--agg-blue-soft);
  color: var(--agg-blue-dark);
  font-weight: 700;
}
[data-product="new"] .new-qs-colours { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
[data-product="new"] .new-qs-colour,
[data-product="new"] .new-qs-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
[data-product="new"] .new-qs-colour input { width: 36px; height: 28px; padding: 0; border: 1px solid var(--agg-border); border-radius: 8px; background: none; }
[data-product="new"] .new-qs-file { font-size: 13px; color: var(--agg-muted); }
[data-product="new"] .new-qs-file[hidden] { display: none; }
[data-product="new"] .new-qs-note { margin: 0; font-size: 13px; color: var(--agg-muted); }
[data-product="new"] .new-qs-error { margin: 0; font-size: 14px; color: var(--agg-ink); background: var(--agg-warning-soft); padding: 8px 12px; border-radius: 10px; }
[data-product="new"] .new-qs-error[hidden] { display: none; }
[data-product="new"] .new-qs-actions { display: flex; gap: 10px; }
@media (max-width: 760px) {
  [data-product="new"] .new-qs { grid-template-columns: 1fr; }
  [data-product="new"] .new-qs-preview { max-width: 220px; }
}
