/* Returning-user dashboard (Figma 18003:5059 and empty library 18003:4841). COPIED from 04-onboarding/nuf-v3/css/dashboard.css and prototype.css so the two prototypes stay identical. Layout only; looks come from the DS. */
/* NUF-V3 dashboards (frames 10 and 11). Owner: dashboard executor.
   Layout is relative to main.nuf-content (x160 y32, 1280 wide). Figma wins on pixels,
   DS-WINS where a binding rule beats Figma. Accent text colour: --nuf-accent-text (flow.css), fallback --brand-300. */

html { font-synthesis-weight: none; } /* 1267 - 32 */
.dash img { display: block; }
:where(.dash) :where(p, h1, h2, h3) { margin: 0; }

/* ── Top nav (DS .ds-topnav) ───────────────────────────────────────── */
.dash-nav { width: 1280px; box-sizing: border-box; } /* R5 (DS-MAP C1.13): the DS 1px stroke-tertiary bottom border is back */
/* Top nav: DS .ds-topnav / .ds-tab / .ds-menu as is (DS batch 2); the local tab height, active, chevron and width rules are gone. */
.dash .ds-navicon img { width: 16px; height: 16px; object-fit: contain; } /* STATIC-ONLY */

/* ── Header ────────────────────────────────────────────────────────── */
.dash-body { padding: 32px 40px 0; } /* DS .lnk-wp (text xs) as is; position only */

/* ── Toolbar ───────────────────────────────────────────────────────── */ /* DS-WINS: figma #F06100 text */ /* DS-GAP: figma 10/1.3 R badge, ds .chip is uppercase 10.5 M */ /* DS-WINS: figma #F06100 */ /* STATIC-ONLY */

/* ── Table card ────────────────────────────────────────────────────── */
/* DS-GAP: D-G6 (table head + rows, through .dash-meta / .dash-tags below) */
.dash-card { background: var(--surface-screen); border-radius: var(--radius-12, 12px); overflow: visible; } /* visible so the rows-per-page menu is never clipped */
.dash-card > .dash-thead, .dash-card > div > .dash-thead { border-radius: var(--radius-12, 12px) var(--radius-12, 12px) 0 0; }
.dash-thead { display: flex; gap: 32px; height: 43px; box-sizing: border-box; padding: 12px 20px; background: var(--surface-overlay-0); border-top: 1px solid var(--stroke-tertiary); border-bottom: 1px solid var(--stroke-tertiary); align-items: center; }
.dash-half { display: flex; align-items: center; width: 564px; min-width: 0; }
.dash-half.r { gap: 16px; }
.dash-thead .dash-half { gap: 12px; }
.dash-thead .dash-half.r { gap: 16px; }
.dash-th { font: var(--btn-sm); color: var(--type-tertiary); white-space: nowrap; flex: 1; } /* 12/1.6 M */
.dash-th.w260 { flex: 0 0 260px; }
.dash-th.w160 { flex: 0 0 160px; }
.dash-spacer { flex: 0 0 80px; } /* figma header spacer is 80 on 10 */
body.nuf[data-frame="11"] .dash-spacer { flex-basis: 120px; } /* figma 11 header lines up with the 120 action column */
/* STATIC-ONLY (frozen frames 10/11, no .sm class): the prototype uses DS .ds-check.sm */
body:not(.proto) .dash .ds-check { margin: 0; width: 16px; height: 16px; border-width: 1px; }
body:not(.proto) .dash .ds-check:checked:after { width: 9px; height: 9px; }

/* ── Empty state (10) ──────────────────────────────────────────────── */
/* DS-GAP: D-G8 (empty state block) */
.dash-pad { padding: 20px; }
.dash-empty { display: flex; flex-direction: column; align-items: center; box-sizing: border-box; padding: 60px 33px 32px; background: var(--surface-overlay-1); border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-md); }
.dash-empty-ico { margin-bottom: 16px; }
.dash-empty-t { font: var(--heading-sm); color: var(--type-primary); margin-bottom: 5px; } /* DS-GAP: no 16/M heading token */
.dash-empty-p { width: 372px; text-align: center; font: var(--body-md); color: var(--type-secondary); margin-bottom: 31px; }
.dash-routes { display: flex; gap: 12px; width: 100%; position: relative; left: -1px; }
.dash-route { flex: 1 1 0; min-width: 0; height: 226px; box-sizing: border-box; padding: 20px 16px; } /* R5 (DS-MAP A7.3): border, radius and shadow come from DS .card */
.dash-route > img { margin-bottom: 24px; } /* DS .lnk-wp (text xs) as is */

/* ── Rows (11) ─────────────────────────────────────────────────────── */
.dash-rows { list-style: none; margin: 0; padding: 20px 20px 0; }
.dash-row { position: relative; display: flex; gap: 32px; height: 84px; box-sizing: border-box; align-items: flex-start; }
.dash-row::after { content: ""; position: absolute; left: 0; right: 0; top: 64px; height: 1px; background: var(--stroke-tertiary); }
.dash-row .dash-half { height: 44px; gap: 12px; }
.dash-row .dash-half.r { gap: 16px; align-items: flex-start; } /* figma: chips/buttons sit on the top 30px of the 44px row */
.dash-row .dash-half.r > * { height: 30px; display: flex; align-items: center; }
.dash-avatar { flex: 0 0 44px; margin-right: -2px; } /* 12 gap + (-2) = 10 before the text column */
.dash-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dash-quote { /* truncation is CSS-only (text-overflow: ellipsis); full text stays in the DOM */ width: calc(100% + 3px); font: var(--body-md); color: var(--type-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-meta { display: flex; align-items: center; gap: 6px; font: var(--body-sm); color: var(--type-tertiary); white-space: nowrap; }
.dash-meta b { font: var(--btn-sm); color: var(--type-primary); }
.dash-meta > i { width: 4px; height: 4px; border-radius: var(--radius-full); background: var(--stroke-secondary); flex: 0 0 4px; }
.dash-tags { flex: 1; display: flex; gap: 4px; align-items: center; min-width: 0; }
.dash-tag { display: inline-flex; padding: 2px 7.4px; border: 1px solid var(--stroke-secondary); border-radius: var(--radius-full); font: var(--btn-sm); color: var(--type-secondary); white-space: nowrap; } /* DS-GAP: no outline tag chip */ /* STATIC-ONLY */
.dash-add.lnk-wp { margin-left: 0; } /* DS .lnk-wp (text xs) as is */
.dash-status { flex: 0 0 160px; } /* STATIC-ONLY: the prototype uses the DS component (D-M14 landed) */
.dash-actions { flex: 0 0 120px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
/* Review / Resend are plain DS .btn-wp.sm / .btn-wpo.sm (29.2px, DS batch 1). */ /* STATIC-ONLY: the prototype uses the DS component (D-M24 landed) */ /* DS-WINS: figma #FEF7F2 / #F06100 */ /* STATIC-ONLY */

/* ---- from nuf-v3/css/prototype.css ---- */
/* Template rows: DS .stepnum.sm .done / .skipped; the done marks tick in one by one (motion only). */
/* Pagination row placement in the table card (layout). */
.proto .p-pager { box-sizing: border-box; margin-top: 4px; padding: 0 20px 20px; }
/* Shared context menu: fixed under the clicked kebab (layout; js sets left/top). */

   sidebar folds to icons below 960, hides behind the admin-bar toggle below 782 (admin bar 46px). */
body.proto { min-width: 0; overflow-x: hidden; }
.proto .nuf-wp-bar { min-width: 0; }
.proto .p-wp-toggle { display: none; }

/* ---- 1024-1439: the split layout stays; columns become fluid ---- */
@media (max-width: 1439px) {
  .proto .dash-nav { width: auto; }
  .proto .dash-half { width: auto; flex: 1 1 0; }
  .proto .dash-status { flex: 0 0 auto; }
  .proto .dash-tags { overflow: hidden; }
  .proto .dash-routes { flex-wrap: wrap; }
  .proto .dash-route { flex: 1 1 180px; height: auto; }
}

/* ---- below 1024: one column; the illustration moves above the content at a smaller size ---- */
@media (max-width: 1023px) {
  .proto .dash-body { padding: 24px 16px 0; }
  .proto .p-seg { max-width: 100%; overflow-x: auto; }
  .proto .p-seg > label { flex: none; }
  .proto .p-seg .seg-in { white-space: nowrap; }
  .proto .dash-empty { padding: 32px 16px; }
  .proto .dash-empty-p { width: auto; max-width: 372px; }
}

/* ---- below 960: WP sidebar folds to icons ---- */
@media (max-width: 959px) {
  .proto .nuf-wp-side { width: 36px; }
  .proto .nuf-wp-side .nuf-wp-lbl { display: none; }
  .proto .nuf-wp-active { width: 36px; }
}

/* ---- below 782: WP mobile admin (46px bar, sidebar behind the toggle); dashboard rows become stacked cards ---- */
@media (max-width: 782px) { /* WordPress mobile admin breakpoint (782 inclusive) */
  .proto .nuf-wp-bar { height: 46px; }
  .proto .nuf-wp-bar .nuf-wp-ico, .proto .nuf-wp-bar .nuf-wp-lbl { margin-top: 7px; }
  .proto .p-wp-toggle { display: grid; place-items: center; position: absolute; right: 8px; top: 7px; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--neutral-white); cursor: pointer; }
  .proto .p-wp-toggle:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 0; }
  .proto .nuf-wp-side { top: 46px; width: 190px; transform: translateX(-100%); transition: transform 200ms ease-out; }
  .proto .nuf-wp-side .nuf-wp-lbl { display: block; }
  .proto .nuf-wp-active { width: 190px; }
  .proto.p-wpmenu-open .nuf-wp-side { transform: none; }
  .proto .tplmodal { padding: 16px; }
  .proto .tpldialog, .proto .tpldialog.lg, .proto .tpldialog.sm { width: 100%; max-width: none; max-height: calc(100vh - 32px); }
  .proto .tpl-body { padding: 20px 16px; }
  .proto .tpl-head, .proto .tpl-foot { padding-inline: 16px; }
  .proto .tpl-foot { flex-wrap: wrap; }
  .proto .tpl-foot > * { flex: 1 1 100%; }
  .proto .dash-thead .dash-half.r { display: none; }
  .proto .dash-row { flex-direction: column; height: auto; gap: 8px; padding: 12px 0 16px; }
  .proto .dash-row::after { top: auto; bottom: 0; }
  .proto .dash-row .dash-half { height: auto; flex: none; width: 100%; }
  .proto .dash-row .dash-half.r { flex-wrap: wrap; gap: 8px; padding-left: 28px; }
  .proto .dash-row .dash-tags { flex: 0 0 auto; }
  .proto .dash-actions { flex: 1 1 auto; justify-content: flex-start; }
  .proto .dash-rows { padding-top: 8px; }
  .proto .dash-meta { flex-wrap: wrap; white-space: normal; }
  .proto .p-pager { flex-wrap: wrap; gap: 12px; }
  .proto .p-search { width: 100%; }
}
/* N2: header buttons and toolbar match reskin #testimonials (same classes; rules copied from 10-reskin/css/reskin.css, layout only) */

.proto .rs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.proto .rs-h1 { font: var(--heading-xl); color: var(--type-primary); margin: 0; }
.proto .rs-sub { font: var(--body-md); color: var(--type-secondary); margin: 4px 0 0; }
.proto .rs-head__acts { display: flex; align-items: center; gap: 12px; }
.proto .rs-tut { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin-inline-end: 4px; }
.proto .rs-tut svg { width: 11px; height: 13px; }
.proto .rs-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; min-height: 48px; padding: 6px; background: var(--surface-screen); border-radius: var(--radius-md); margin-bottom: 12px; } /* DS-GAP: toolbar shell */
.proto .rs-tools { flex: 0 1 350px; min-width: 272px; margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.proto .rs-tools .ds-filter { flex: none; }
.proto .rs-tools .ds-filter-btn { width: 152px; height: 36px; }
.proto .rs-toolbar > .ds-seg { flex: none; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.proto .rs-toolbar .ds-seg > label { flex: none; }
.proto .rs-toolbar .seg-in { white-space: nowrap; }
.proto .rs-search { position: relative; display: block; flex: 1 1 110px; min-width: 110px; max-width: 190px; }
.proto .rs-search .fa { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--type-tertiary); pointer-events: none; font-size: 14px; }
.proto .rs-search .inp { padding-left: 36px; }
.proto .ds-filter-btn .fa { font-size: 14px; }
@media (max-width: 1100px) {
  .proto .dash-body { padding-inline: 16px; }
  .proto .rs-toolbar > .ds-seg .seg-in { padding-inline: 10px; gap: 6px; }
}

/* N3: the Settings view is the settings-v1 page itself (markup, css and js loaded from ../settings-v1); only the host layout lives here */
.proto .ds-navicon.on, .proto .ds-navicon.on:hover { color: var(--brand-100); } /* DS-GAP: active gear (Figma: orange gear, no DS .on state on .ds-navicon) */


/* Settings host: the settings-v1 page fills the dashboard column */
.proto .set-embed { display: flex; flex-direction: column; min-height: calc(100vh - 92px); }
.proto .set-embed .set-body { flex: 1; }
.proto .set-embed .set-foot { position: sticky; bottom: 0; }

/* Dashboard table without the tags column (tags arrive with the AI features): status takes the freed width. */
.proto .dash-empty-ico { font-size: 24px; color: var(--type-primary); }
.proto .dash-route .set-tile__blk { gap: 24px; }
.proto .dash-route { height: auto; min-height: 226px; padding: 19px 15px; }
.proto .rs-tut { gap: 5px; }
@media (max-width: 1100px) { .proto .dash-routes { flex-wrap: wrap; } .proto .dash-route { flex: 1 1 200px; } }
.proto .rs-tools .ds-filter-btn .lbl { flex: 1; text-align: left; }
.proto .rs-head { align-items: center; min-height: 60px; }

/* Figma QA 2026-10-30 */
.proto .rs-toolbar { flex-wrap: nowrap; }
.proto .rs-toolbar > .ds-seg { flex: 0 1 auto; min-width: 0; }
.proto .rs-tools { flex: none; min-width: 0; margin-inline-start: 8px; }
.proto .rs-search { flex: 0 1 150px; min-width: 110px; }
.proto .rs-filter { display: flex; align-items: center; gap: 8px; width: 152px; padding: 0 10px; text-align: left; cursor: pointer; color: var(--type-tertiary); }
.proto .rs-filter .lbl { flex: 1; font: var(--body-md); }
.proto .rs-filter .fa:first-child { font-size: 16px; color: var(--stroke-primary); } .proto .rs-filter .fa.solid { font-size: 14px; }
@media (max-width: 1279px) { .proto .rs-toolbar > .ds-seg { overflow-x: auto; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); } }
.proto .dash-nav { position: sticky; top: 32px; z-index: 30; }
@media (max-width: 782px) { .proto .dash-nav { top: 46px; } }
.proto .dash-row .ds-kebab { color: var(--type-secondary); }

/* Empty-state icon: Rijul's supplied comment-quote glyph (assets/empty-comment-quote.svg, 24x22), drawn in currentColor */
.proto .dash-empty-ico--cq { display: inline-block; width: 24px; height: 22px; background-color: currentColor; -webkit-mask: url(../assets/empty-comment-quote.svg) center / contain no-repeat; mask: url(../assets/empty-comment-quote.svg) center / contain no-repeat; }


/* ---- from settings-v1/css/settings.css (.set-tile and .set-lnk, used by the empty library cards) ---- */
.set-tut { white-space: nowrap; }
.lnk-wp.set-lnk { cursor: pointer; font: var(--btn-md); gap: 5px; padding: 2px 4px; }
.lnk-wp.set-lnk .fa { width: 14px; height: 14px; }
.set-tut { gap: 4px; }
.set-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 19px 15px; }
.set-tile__blk { display: flex; flex-direction: column; gap: 24px; }
.set-tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.set-tile__ic { font-size: 31px; color: var(--type-secondary); }
.set-tile__txt { display: flex; flex-direction: column; gap: 4px; min-height: 77px; }
.set-tile__t { font: var(--heading-sm); color: var(--type-primary); }
.set-tile__d { font: var(--body-sm); color: var(--type-secondary); }
.set-tile .lnk-wp { align-self: flex-start; margin: -3px 0 -3px -4px; }
.set-tile__ic { font-size: 20px; margin: 5.5px 0; } /* 20px Regular glyph; the margin keeps Figma's 31px frame. DS .fa now sizes width by glyph */

/* Tags column restored (Rijul 2026-10-30, Figma 18003:5059): right half = Tags 252, Status 160, actions 120, 16px gaps. Same block in 10-reskin/css/dash.css and nuf-v3/css/dashboard.css. */
.dash-th.w252 { flex: 0 0 252px; }
.dash-tags { flex: 0 0 252px; }
.dash-status { flex: 0 0 160px; }
.dash-th.w160 { flex: 0 0 160px; }
.dash-tag { align-items: center; gap: 4px; height: 23px; box-sizing: border-box; background: transparent; }
.dash-tag__x { display: inline-grid; place-items: center; width: 0; height: 14px; padding: 0; margin: 0; border: 0; border-radius: var(--radius-full); background: none; color: var(--type-tertiary); font-size: 9px; overflow: hidden; opacity: 0; cursor: pointer; transition: width 150ms ease, opacity 150ms ease, margin 150ms ease, color 150ms ease; }
.dash-row:hover .dash-tag__x, .dash-tag:focus-within .dash-tag__x { width: 14px; opacity: 1; margin-right: -3px; }
.dash-tag__x:hover { color: var(--action-error); }
.dash-tag__x:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 0; }
.dash-add.lnk-wp .fa { font-size: 12px; }
.dash-addicon { opacity: 0; transition: opacity 150ms ease; } .dash-row:hover .dash-addicon, .dash-addicon:focus-visible { opacity: 1; }
@media (max-width: 1439px) { .proto .dash-tags { flex: 1 1 0; } .proto .dash-th.w252 { flex: 1 1 0; } .proto .dash-status { flex: 0 0 160px; } .proto .dash-th.w160 { flex: 0 0 160px; } .proto .dash-actions { flex: 0 0 120px; } }

/* Wide screens (Rijul 2026-11-02): above 1440 the fixed 564px halves left empty space after the row menu.
   Columns stay fluid at every width, so the testimonial and tags columns share the full card and the menu sits at the right edge. At 1440 this equals the Figma widths. */
@media (min-width: 1440px) {
  .proto .dash-half { width: auto; flex: 1 1 0; }
  .proto .dash-tags, .proto .dash-th.w252 { flex: 1 1 0; }
  .proto .dash-status, .proto .dash-th.w160 { flex: 0 0 160px; }
  .proto .dash-actions { flex: 0 0 120px; }
}

/* r46 tags: two lines at most inside their own column; the +N chip takes the place of the first tag that does not fit and lists them all */
.dash-tags { flex-wrap: nowrap !important; align-items: center; }
.dash-tags__in { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; /* same gap between lines as between tags (Rijul) */ flex: 0 1 auto; min-width: 0; }
.dash-tag[hidden], .dash-more[hidden] { display: none; }
.dash-more { flex: none; cursor: default; display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; } /* the button is only the hit area; the look is the inner .dash-tag chip */
@media (max-width: 1024px), (pointer: coarse) { .dash-more { margin-block: -10.5px; } } /* 44px hit area, 23px layout */
.dash-more.ds-tip[data-size="lg"]:after { width: 320px; }
.dash-more.ds-tip[data-align="right"]:after { left: auto; right: -8px; transform: none; } .dash-more.ds-tip[data-align="right"]:before { left: auto; right: 8px; transform: none; }
.dash-more.ds-tip[data-align="left"]:after { left: -8px; transform: none; } .dash-more.ds-tip[data-align="left"]:before { left: 8px; transform: none; }
/* r46: the shortcode lists use the table pager as is: same top divider, padding and spacing as .wb-card > .dash-card .p-pager */
.rs-group > .p-pager { border-top: 1px solid var(--stroke-tertiary); margin-top: 0; padding: 16px 20px; }
