/* > **CLAUDE-AUTHORED** — written by Claude (`collapse-rebuild`), 2026-09-18 (v2: history out of the sheet). */
/* PORTAL HOME - THE FACE. The eleven variation switches are collapsed; every rule hangs off body.ag-face. */
/* ⛔ Why each rule is here, what it replaced and every derivation: shipping/collapse/COLLAPSE.md, prose in SHEET_PROSE.md. */
/* Brand tiers: ground #060709 · depth-1 #0C0E12 · depth-2 #14171C · depth-3 #1C2027 · hairline #2A2E36 · ink #EEF4F5 · gold #FFC000. */
/* ⛔ Declare custom properties on body.ag-face, never on :root. Separation is bought with edges and shadow, never by lightening a fill. */
/* ⛔ The two width branches are spelled (min-width: 1026px) and not all and (min-width: 1026px) so they tile at a fractional viewport. Do not respell either as max-width. */

/* S - THE SHARED PART: MOVED OUT, then DELETED HERE. Nothing of the notices mark is left in this sheet. */
/* The mark's two states live in antigravity-tools-register-icons/style.css - the plugin that EMITS .ag-notice-mark - since 2026-09-18. Its enqueue is UNGATED (wp_enqueue_scripts, no route conditional; the only branch is an is_readable canary), so it loads on every front-end page, not just portal routes. Core prints enqueued styles at wp_head 8 - wp_print_styles, wp-includes/default-filters.php - i.e. before this sheet's 999. Measured present in the rendered head on portal-home, course-space, lesson and post. The binding rule (two states, no count; .notification-read-status.unread, never .notification-unread-count) travelled with them and is documented there. */
/* ⛔ The identical-valued !important duplicate that sat here was DELETED 2026-09-30, after measurement rather than after reasoning: with the duplicate present and with it deleted, BOTH states reproduce - unread = fill #FFC000 / stroke none, default = fill none / stroke currentColor. --agf-gold resolves to #FFC000, so the var() and its fallback agreed. */
/* ⛔ DO NOT RE-ADD IT HERE. A screen's sheet is the wrong home for chrome the register emits, and this sheet is gated to the portal HOME (is_portal_home()) - re-adding it rebuilds the defect ADR-004 closed. */



@media (min-width: 1026px) {

/* tokens, on the face's own body class, never :root */
body.ag-face {
  --agf-ground:      #060709;                 /* Foundation Black */
  --agf-rail:        #030406;                 /* deviation 1 - below the canvas */
  --agf-rail-hover:  #0A0C10;                 /* rail + one step, still under depth-1 */
  --agf-card:        #0C0E12;                 /* depth-1 */
  --agf-raised:      #14171C;                 /* depth-2 */
  --agf-hover:       #1C2027;                 /* depth-3 */
  --agf-hairline:    #2A2E36;
  --agf-gap:         #010203;                 /* the seam's dark line */

  /* one family, four lightnesses - Oracle Silver carried toward the ground */
  --agf-ink:         #EEF4F5;                 /* Oracle Silver, untouched */
  --agf-ink-70:      #A8ADAE;
  --agf-ink-55:      #86898B;
  --agf-ink-50:      #7A7E7F;

  --agf-gold:        #FFC000;                 /* Sovereignty Gold - marks only */
  /* Magma-stone Gray #8F8687 is deliberately absent: it is a brand token this face does not use. */

  --agf-lit:         rgba(238, 244, 245, .07); /* interior dividers */
  /* the seam's lit line is its own value, one step above an interior divider */
  --agf-seam-lit:    rgba(238, 244, 245, .12);
  --agf-frame:       rgba(238, 244, 245, .05);

  --agf-ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --agf-pointer:     160ms;                   /* deviation 2 - the rail */
  /* the card's own timing, separate from the rail's: 160ms, not the brand's 500ms default */
  --agf-turn:        240ms;

  /* THE LIP - the card's top edge, and the brightest thing on the object */
  --agf-lip:         #2A2E36;                 /* L* 18.85 - brand hairline */
  --agf-lip-hover:   #3B404C;                 /* L* 27.14 - same hue line, one up */

  --agf-sans:        'Assistant', 'Arial Hebrew', system-ui, sans-serif;
  --agf-serif:       'Frank Ruhl Libre', 'David Libre', 'Times New Roman', serif;

  /* the one tuned number on this sheet: the wallet's line box, dropped so its baseline sits right */
  --agf-wallet-top:  38px;   /* measured: at 35px the wallet baseline sat 3px high */

  /* ⛔ THE SIDEBAR'S WIDTH: one token, read by the sidebar (§ 1) and by the notices panel (§ 6a), so the two cannot drift. */
  --agf-sidebar-w:   232px;
}

/* 0 - THE GROUND */
body.ag-face {
  background-color: #060709 !important;       /* Foundation Black, literally */
}
body.ag-face .portal-application-content-wrapper {
  background-color: var(--agf-ground) !important;
  border: 0 !important;
  border-radius: 0 !important;
  /* THE APPLICATION-LAYOUT CLIP, closed rather than overridden */
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}
body.ag-face .portal-content-section {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow-y: auto !important;
  /* ⛔ The horizontal axis is closed, not left on `auto`. */
  overflow-x: hidden !important;
  margin: 0 !important;
  /* the vertical thumb is revealed by the pointer, not painted at rest */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
body.ag-face .portal-content-section:hover,
body.ag-face .portal-content-section:focus-within {
  scrollbar-color: #1C2027 transparent;
}
/* ⛔ Do not draw a frame round the screen. */
body.ag-face .wp-block-columns:has(> .portal-sidebar) {
  border: 0 !important;
  background: transparent !important;
}

/* 1 - THE RAIL */
/* ⛔ The sidebar's width is the token --agf-sidebar-w, not a number in two places. */
body.ag-face .wp-block-columns:has(> .portal-sidebar) > .portal-sidebar {
  flex-basis: var(--agf-sidebar-w, 232px) !important;
  width: var(--agf-sidebar-w, 232px) !important;
  background: var(--agf-rail) !important;
  /* the seam, line one: a dark gap, on the rail's side of it */
  border-inline-end: 1px solid var(--agf-gap) !important;
  padding: 22px 16px !important;
}
/* the seam, line two: a lit edge, and it belongs to the wall */
body.ag-face .wp-block-columns:has(> .portal-sidebar) > .wp-block-column:not(.portal-sidebar) {
  border-inline-start: 1px solid var(--agf-seam-lit) !important;
}

/* ⚠️ SCOPE: every selector in this section is anchored on .portal-sidebar. Keep it. */
/* --- rows --- */
body.ag-face .portal-sidebar .portal-aside-group-link {
  position: relative !important;
  display: block !important;
  font-family: var(--agf-sans) !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  color: var(--agf-ink-70) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 2px !important;
  text-decoration: none !important;
  padding-block: 8px !important;
  padding-inline: 12px 10px !important;
  transition:
    background-color var(--agf-pointer) var(--agf-ease),
    color var(--agf-pointer) var(--agf-ease) !important;
}
body.ag-face .portal-sidebar .portal-aside-group-link::before {
  content: none !important;
}
/* nesting: indent only. Same size, same weight, same ink as a top-level row. */
body.ag-face .portal-sidebar .portal-aside-group:not(.pinned-group) .portal-aside-group-link {
  font-size: 14px !important;
  line-height: 20px !important;
  color: var(--agf-ink-70) !important;
  padding-inline-start: 28px !important;
}
/* the hover the rail did not have. A tone, never a hue. */
body.ag-face .portal-sidebar .portal-aside-group-link:hover,
body.ag-face .portal-sidebar .portal-aside-group:not(.pinned-group) .portal-aside-group-link:hover {
  background: var(--agf-rail-hover) !important;
  color: var(--agf-ink) !important;
}
body.ag-face .portal-sidebar .portal-aside-group-link:hover * {
  color: var(--agf-ink) !important;
}
/* the current space - the one place gold marks in the rail */
body.ag-face .portal-sidebar .portal-aside-group-link.active,
body.ag-face .portal-sidebar .portal-aside-group-link.active * {
  color: var(--agf-ink) !important;
  background: var(--agf-rail-hover) !important;
  font-weight: 500 !important;
}
body.ag-face .portal-sidebar .portal-aside-group-link.active::before {
  content: "" !important;
  position: absolute !important;
  inset-inline-start: 0 !important;
  top: 6px !important;
  bottom: 6px !important;
  width: 2px !important;
  background: var(--agf-gold) !important;
}
body.ag-face .portal-sidebar .portal-aside-group-link:focus-visible {
  outline: 1px solid var(--agf-gold) !important;
  outline-offset: -1px !important;
}

/* --- group rubrics in the rail --- */
body.ag-face .portal-sidebar .portal-aside-group-title {
  font-family: var(--agf-sans) !important;
  font-size: 11px !important;
  line-height: 16px !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;     /* never positive tracking on Hebrew */
  text-transform: none !important;
  color: var(--agf-ink-55) !important;
  margin: 0 0 6px !important;
  padding-inline-start: 12px !important;
}
body.ag-face .portal-sidebar .portal-aside-group:not(.pinned-group) {
  border-top: 0 !important;
  margin-top: 26px !important;
  padding-top: 0 !important;
}

/* --- tools register --- */
body.ag-face .portal-tools-register {
  border-top: 1px solid var(--agf-frame) !important;
  border-bottom: 1px solid var(--agf-frame) !important;
  margin-block-end: 16px !important;
}
/* ⛔ No gold on hover anywhere in the register. Gold marks the current space's spine and the focus ring, nothing else. */
/* ⛔ Keep `.portal-sidebar` / `.portal-sticky-header` in these four selectors: without them these rules lose to wp_posts 22 outright. */
/* ⛔ The tiebreak is this sheet's wp_head priority, not anything in this file. Do not enqueue it normally. See elements/notices-mark/TRAPS.md § 5. */
/* ✅ The only check that sees the broken state: hover the trigger and read the svg's computed stroke against the resolved tokens, never against hard-coded values. */
body.ag-face .portal-sidebar .only-search-icon-wrap:hover svg,
body.ag-face .portal-sidebar .portal-notification-trigger:hover svg,
body.ag-face .portal-sticky-header .only-search-icon-wrap:hover svg,
body.ag-face .portal-sticky-header .portal-notification-trigger:hover svg {
  stroke: var(--agf-ink) !important;
}
body.ag-face .portal-sidebar .portal-header-avatar-wrap:hover,
body.ag-face .portal-sidebar .portal-header-avatar-wrap:focus-visible,
body.ag-face .portal-sticky-header .portal-header-avatar-wrap:hover,
body.ag-face .portal-sticky-header .portal-header-avatar-wrap:focus-visible {
  color: var(--agf-ink) !important;
}

/* 2 - THE HEAD: greeting, wallet, one divider */
body.ag-face .wp-block-columns:has(> * > h1.wp-block-suredash-title) {
  padding: 18px 20px 18px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--agf-lit) !important;
  border-radius: 0 !important;
  flex-wrap: nowrap !important;
  row-gap: 0 !important;
}
/* the head's live anchor. ⛔ Keep both anchors: the rule above is the count-1 case. */
body.ag-face .wp-block-group:has(> h1.wp-block-suredash-title) {
  padding-inline: 20px !important;
}

body.ag-face h1.wp-block-suredash-title {
  display: block !important;
  font-family: var(--agf-serif) !important;
  font-weight: 500 !important;
  font-size: 34px !important;
  line-height: 1.24 !important;
  letter-spacing: normal !important;
  text-align: right !important;              /* RTL start - the screen's spine */
  color: var(--agf-ink) !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* the two values. One family, one size, one weight - lightness alone. */
body.ag-face h1.wp-block-suredash-title .ag-greet-lead {
  color: var(--agf-ink-50) !important;       /* 4.91:1 on the ground */
}
body.ag-face h1.wp-block-suredash-title .ag-greet-name {
  color: var(--agf-ink) !important;          /* 18.19:1 */
}

/* the wallet, onto the greeting's line, at its left */
body.ag-face .ag-wallet-strip {
  position: relative !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  z-index: 2 !important;
}
body.ag-face .ag-wallet-strip .ag-wallet {
  position: absolute !important;
  top: var(--agf-wallet-top) !important;
  left: 20px !important;                     /* physical: RTL far side, on the head's own 20px */
  right: auto !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
}
/* the coin's heart is cut OUT of the face: it must read as the ground, not as a fill */
body.ag-face .icon-coin path {
  fill: var(--agf-ground) !important;
}
body.ag-face .icon-coin circle:nth-child(2) {
  stroke: var(--agf-ground) !important;
}

/* 3 - THE GRID: one spine, two up */
body.ag-face .portal-content-section > .wp-block-group__inner-container {
  max-width: none !important;
  padding-inline: 0 !important;
}
/* the platform's flat 32px content padding, left in place on one axis and taken off the other */
body.ag-face .wp-block-suredash-content {
  max-width: none !important;
  padding: 0 !important;
}
body.ag-face .portal-content-area.portal-home-grid {
  align-items: flex-start !important;        /* RTL: the right spine */
  padding-inline: 20px !important;
  padding-block: 34px 40px !important;
  gap: 40px !important;
  max-width: none !important;
}
/* ⛔ Do not leave margin-inline on auto here: it centred the group instead of holding the spine. */
body.ag-face .narrow-grid-row {
  width: 100% !important;
  /* ⛔ No max-width cap here: each group sets its own row. */
  max-width: none !important;
  margin-inline: 0 !important;
  gap: 0 !important;
}
/* Three columns per row. Keep explicit columns rather than the platform's flex-wrap, so a group of two keeps a group of three's card width. */
body.ag-face .portal-home-grid .portal-grid-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  justify-content: stretch !important;
}
/* the grid ITEM, not the card: the platform's own cap comes off here */
body.ag-face .portal-home-grid .portal-grid-row-container {
  min-height: 0 !important;
  height: auto !important;
  width: 100% !important;
  max-width: none !important;
}

/* --- the group rubric --- */
body.ag-face .portal-home-post-title {
  font-family: var(--agf-sans) !important;
  font-size: 17px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  color: var(--agf-ink-55) !important;
  margin: 0 0 14px !important;
  text-align: start !important;
}

/* 4 - THE CARD. Fill is § 4a's --agf-fill / --agf-fill-hover; edges, hover light and shadow are § 4b's. */
body.ag-face .portal-home-grid .portal-home-grid-item-content {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 240px !important;
  padding: 0 !important;
  /* keep this 1px transparent border: § 4b colours its sides. */
  border: 1px solid transparent !important;
  border-radius: 0 !important;                /* ADR-017: radius 0 */
  background-color: var(--agf-card) !important;
  background-image: var(--agf-fill) !important;
  background-origin: border-box !important;
  text-decoration: none !important;
  translate: 0 0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .60), 0 12px 32px rgba(0, 0, 0, .55) !important;
  transition:
    background-image var(--agf-turn) var(--agf-ease),
    box-shadow var(--agf-turn) var(--agf-ease),
    border-color var(--agf-turn) var(--agf-ease) !important;
}
body.ag-face .portal-home-grid .portal-home-grid-item-content::before {
  content: none !important;
}
/* THE HOVER. Hold the card still - translate/transform oppose the platform's lift. Only the light changes. */
body.ag-face .portal-home-grid .portal-home-grid-item-content:hover,
body.ag-face .portal-home-grid .portal-home-grid-item-content:focus-visible {
  translate: 0 0 !important;
  transform: none !important;
  background-image: var(--agf-fill-hover) !important;
}
body.ag-face .portal-home-grid .portal-home-grid-item-content:focus-visible {
  outline: 1px solid var(--agf-gold) !important;
  outline-offset: 2px !important;             /* deviation 3 */
}

/* --- the title, bottom-anchored --- */
body.ag-face .portal-home-grid .sd-card-main-container {
  position: absolute !important;
  inset: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 26px 30px !important;
}
body.ag-face .portal-home-grid .sd-card-content-container {
  gap: 0 !important;
}
body.ag-face .portal-home-grid .sd-card-content-container > .sd-flex {
  display: block !important;
}
body.ag-face .portal-home-grid .sd-card-content-container .sd-font-16 {
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  font-family: var(--agf-sans) !important;
  /* 22px/400: a label, not a heading. Do not raise its size or weight toward the greeting's. */
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.012em !important;        /* negative only - Hebrew */
  color: var(--agf-ink) !important;
  max-width: 19ch !important;
  text-wrap: balance !important;
  text-align: start !important;
}
body.ag-face .portal-home-grid .sd-card-content-container .sd-font-16 .sd-flex-1 {
  display: inline !important;
}
/* no counts, no meta, no flavour text, and no icon standing in for one */
body.ag-face .portal-home-grid div.sd-thumbnail-image,
body.ag-face .portal-home-grid .grid-card-arrow {
  display: none !important;
}

/* THE COVER IMAGE, and the title getting out of its way */
body.ag-face .portal-home-grid .portal-home-grid-item-content:has(img.portal-item-featured-image)
  .sd-card-main-container {
  display: none !important;
}

/* ⚠️ The cover has to be shown back: something outside this sheet hides it. */
body.ag-face .portal-home-grid .portal-home-grid-item-content img.portal-item-featured-image {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;      /* ⛔ Not the platform's default object-fit: it crops. */
  border-radius: 0 !important;       /* ADR-017 */
}

/* THE CARD'S RATIO: 16:9 by aspect-ratio, never a fixed height. ⛔ Keep this rule after the base card rule. */
body.ag-face .portal-home-grid .portal-home-grid-item-content {
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
}

/* 4a - THE FILL. Declare --agf-fill and --agf-fill-hover and nothing else. ⛔ M0 copies both values; change them in both places. */

body.ag-face .portal-home-grid .portal-home-grid-item-content {
  --agf-fill:       linear-gradient(196deg, #161A20 0%, var(--agf-card) 50%, #07080B 100%);
  /* the hover fill holds its mean: the differential rises, the face does not get lighter */
  --agf-fill-hover: linear-gradient(196deg, #181C23 0%, var(--agf-card) 50%, #06070A 100%);
}

/* 4b - THE CARD FORM: THE LIT EDGE. ⛔ Keep radius 0 (ADR-017). ⛔ M4 copies these declarations; change both together. */

/* Draw each side from where the light is: a lit head band, dimmer flanks, a foot darker than the ground. ⛔ Never one colour round all four sides. */
body.ag-face .portal-home-grid .portal-home-grid-item-content {
  border-top-color: transparent !important;         /* the band below IS the head */
  border-inline-start-color: #12151A !important;    /* L* 6.68 - under the lit head */
  border-inline-end-color:   #12151A !important;
  border-bottom-color: #050608 !important;          /* L* 1.63 - under the ground's own value */
  background-image:
    linear-gradient(90deg,
      rgba(42, 46, 54, 0) 0%,
      var(--agf-lip) 15%,
      var(--agf-lip) 85%,
      rgba(42, 46, 54, 0) 100%),
    var(--agf-fill) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 100% 1px, auto !important;
  background-position: 0 0, 0 0 !important;
}
body.ag-face .portal-home-grid .portal-home-grid-item-content:hover,
body.ag-face .portal-home-grid .portal-home-grid-item-content:focus-visible {
  border-inline-start-color: #1B1F26 !important;
  border-inline-end-color:   #1B1F26 !important;
  background-image:
    linear-gradient(90deg,
      rgba(42, 46, 54, 0) 0%,
      var(--agf-lip-hover) 8%,
      var(--agf-lip-hover) 92%,
      rgba(42, 46, 54, 0) 100%),
    var(--agf-fill-hover) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .65), 0 18px 44px rgba(0, 0, 0, .60) !important;
}

/* the greeting's two values, in the serif */
body.ag-face h1.wp-block-suredash-title .ag-greet-lead,
body.ag-face h1.wp-block-suredash-title .ag-greet-name {
  font-family: var(--agf-serif) !important;
  font-weight: inherit !important;
  font-size: inherit !important;
  letter-spacing: inherit !important;
}


/* 1b - THE SIDEBAR */
/* ⛔ Keep .ag-rail-1 in these selectors and keep portal-home.php printing it: every sidebar rule's weight includes it, here and in the course-space sheet. */
/* ⛔ Rows wrap, never truncate. Sidebar stays at --agf-sidebar-w. Gold only on the current space's spine and the focus ring. Hebrew tracking is zero or negative. */

/* Zero the platform's own sidebar spacing, so the rules below set the rhythm from nothing. */
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group {
  padding: 0 !important;
}
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group-header {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group-title {
  margin: 0 !important;
  text-transform: none !important;
}
/* ⚠️ The row pitch lives here, not where it looks like it does. */
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group-body {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group-list {
  display: flex !important;
  flex-direction: column !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group-list > li {
  margin: 0 !important;
  padding: 0 !important;
}
/* ⛔ Rows wrap instead of truncating: these undo the platform's nowrap, ellipsis, overflow and fixed line box. */
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-item-title {
  display: block !important;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  line-height: inherit !important;
  text-wrap: balance !important;
}
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group-link {
  height: auto !important;
  min-height: 0 !important;
}
/* Pull the register's marks in, so their strokes line up with the rows' text start. */
body.ag-face.ag-rail-1 .portal-tools-register {
  padding-inline-start: 8px !important;
}

/* THE REGISTER'S ICON-ONLY SEARCH: show the icon, hide the input. ⛔ Keep their weight - they must beat the platform's viewport rules by specificity, not by order. */
/* ⛔ Home only: keep :has(.portal-home-grid) on body. Desktop only: below 1026px the drawer uses .ag-drawer-tool-search, a different element. */
body.ag-face.ag-rail-1:has(.portal-home-grid) .portal-sidebar #portal-placeholder-search-wrap {
  display: none !important;
}
body.ag-face.ag-rail-1:has(.portal-home-grid) .portal-sidebar .only-search-icon-wrap,
body.ag-face.ag-rail-1:has(.portal-home-grid) .portal-sidebar .portal-notification-trigger {
  /* the 32px touch target that sets the register's pitch */
  width: 32px !important;
  height: 32px !important;
  border: 0 !important;
  align-items: center !important;
  justify-content: center !important;
}
body.ag-face.ag-rail-1:has(.portal-home-grid) .portal-sidebar .only-search-icon-wrap {
  display: inline-flex !important;   /* ⛔ Not `flex`: the parent is not a flex container here. */
}
body.ag-face.ag-rail-1:has(.portal-home-grid) .portal-tools-register {
  /* the band's own air, also post 22's. (0,4,1) against its (0,2,1). */
  padding-block: 10px !important;
}

/* THE THREE MARKS. ⛔ They are drawn by three different mechanisms; normalise the painted extent and the stroke, not the source. */
body.ag-face.ag-rail-1 .portal-sidebar .only-search-icon-wrap svg,
body.ag-face.ag-rail-1 .portal-sticky-header .only-search-icon-wrap svg {
  width: 21.94px !important;
  height: 21.94px !important;
  stroke-width: 1.367 !important;
}
body.ag-face.ag-rail-1 .portal-sidebar .only-search-icon-wrap svg *,
body.ag-face.ag-rail-1 .portal-sticky-header .only-search-icon-wrap svg * {
  stroke-width: 1.367 !important;
}
body.ag-face.ag-rail-1 .portal-sidebar .portal-notification-trigger svg,
body.ag-face.ag-rail-1 .portal-sticky-header .portal-notification-trigger svg {
  width: 18.9px !important;
  height: 18.9px !important;
  stroke-width: 1.587 !important;
}
body.ag-face.ag-rail-1 .portal-sidebar .portal-notification-trigger svg *,
body.ag-face.ag-rail-1 .portal-sticky-header .portal-notification-trigger svg * {
  stroke-width: 1.587 !important;
}
/* ⛔ The profile mark gets no rule here: it is the reference the other two are normalised against. */

/* THE SIDEBAR'S TYPE, INDENT AND LINES. */
/* ⛔ THE SIZE STEP: item 26px/500 in --agf-ink, subitem 16px/400 in #BFC3C4. Do not shrink it - Hebrew has no ascenders, so size carries the hierarchy and weight only reinforces it. */
/* THE INDENT: items 4px from the column edge, every subitem 16px. THE LINES: one device only, the underline under each group's item. */
/* ⛔ No rule above or below the register: the head divider already crosses at that height. Do not re-add either. */
body.ag-face.ag-rail-1 .portal-tools-register {
  border-top: 0 !important;
  border-bottom: 0 !important;
  margin-block-end: 26px !important;
}
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group.pinned-group {
  margin: 0 !important;
}
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group:not(.pinned-group) {
  margin: 48px 0 0 !important;
  border-top: 0 !important;
  padding-top: 0 !important;
}
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group-header {
  /* the rule sits INSIDE the header (its ::after), 8px under the item */
  margin-block-end: 5px !important;
}
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group-title {
  font-family: var(--agf-sans) !important;
  font-size: 26px !important;                  /* THE ITEM - see THE SIZE STEP above */
  line-height: 34px !important;
  font-weight: 500 !important;                 /* demoted from 600: reinforcement, not the engine */
  letter-spacing: -0.015em !important;         /* negative only - Hebrew */
  color: var(--agf-ink) !important;            /* 18.42:1 - a primary rung */
  padding-inline-start: 4px !important;        /* TOP LEVEL - see THE INDENT above */
}
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group-list {
  gap: 3px !important;
}
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group-link {
  font-size: 16px !important;                  /* THE SUBITEM - see THE SIZE STEP above */
  line-height: 22px !important;
  font-weight: 400 !important;
  letter-spacing: -0.012em !important;
  color: #BFC3C4 !important;                   /* 11.55:1 */
  border-radius: 0 !important;                 /* a structure has no chips */
  padding-block: 9px !important;
  /* ⛔ Not 4px here: the subitem's indent is its own, not the item's. */
  padding-inline: 16px 8px !important;
}
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group:not(.pinned-group) .portal-aside-group-link {
  font-size: 16px !important;
  /* ⛔ Restate line-height here: § 1's nested row rule sets 20px and outranks the row rule above. */
  line-height: 22px !important;
  color: #BFC3C4 !important;
  padding-inline-start: 16px !important;
}
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group-link:hover,
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group:not(.pinned-group) .portal-aside-group-link:hover {
  background: var(--agf-rail-hover) !important;
  color: var(--agf-ink) !important;
}
/* THE UNDERLINE: the one line device in the rail, under each group's item. */
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group:not(.pinned-group) .portal-aside-group-header::after {
  content: "" !important;
  display: block !important;
  height: 1px !important;
  margin-block-start: 8px !important;
  margin-inline-start: 4px !important;          /* begins at the item's own first letter */
  margin-inline-end: 0 !important;
  background: rgba(238, 244, 245, .09) !important;
}

/* THE CURRENT SPACE: full ink, weight 500, the --agf-rail-hover ground, plus § 1's gold spine. ⚠️ No space is active on portal home. */
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group-body .portal-aside-group-list .portal-aside-group-link.active,
body.ag-face.ag-rail-1 .portal-sidebar .portal-aside-group-body .portal-aside-group-list .portal-aside-group-link.active * {
  color: var(--agf-ink) !important;
  font-weight: 500 !important;
  background: var(--agf-rail-hover) !important;
}

/* ⛔ No foot rule - see THE UNDERLINE above. The shipped sidebar draws no rule at the foot of its list. */

/* 6 - THE NOTICES PANEL, .portal-notification-drawer. § 6a sets geometry and motion; this sets plane, head, filter row, list, rows and unread mark. */
/* ⛔ Let the panel take its content's height. Remove the platform's 360px cap on .notification-content. Keep the list's scrollbar thumb visible. */

/* the panel's stacking context, lifted only while it is open. ⛔ A z-index on the panel itself cannot do this - it sits inside the sticky sidebar's context. */
body.ag-face .portal-sidebar:has(.portal-notification-drawer.notifications-opened),
body.ag-face .portal-sticky-header:has(.portal-notification-drawer.notifications-opened) {
  z-index: 40 !important;
}

/* the plane: depth-1, the cards' tier. Separate it with § 6a's edge and shadow, not with a lighter fill. */
body.ag-face .portal-notification-drawer {
  height: auto !important;
  background: var(--agf-card) !important;
  border: 0 !important;
  transition: transform 260ms var(--agf-ease),
              opacity 200ms var(--agf-ease) !important;
  pointer-events: none !important;
}
body.ag-face .portal-notification-drawer.notifications-opened {
  pointer-events: auto !important;
}

/* ⛔ Every rule below is anchored on the drawer shell. Keep it. */

/* ---------- the head: one rubric, one dismissal ---------- */
body.ag-face .portal-notification-drawer .portal-notification-drawer-header {
  flex: 0 0 auto !important;
  padding: 16px 20px 10px !important;
  border-bottom: 1px solid var(--agf-lit) !important;
}
body.ag-face .portal-notification-header-title {
  font-family: var(--agf-sans) !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 600 !important;
  color: var(--agf-ink) !important;
  letter-spacing: normal !important;      /* Hebrew takes no positive tracking */
}
body.ag-face .portal-notification-drawer .portal-notification-drawer-close {
  color: var(--agf-ink-55) !important;
  background: none !important;
}
body.ag-face .portal-notification-drawer .portal-notification-drawer-close svg {
  width: 12px !important;
  height: 12px !important;
  stroke-width: 1.5 !important;
  stroke-linecap: butt !important;
}
body.ag-face .portal-notification-drawer .portal-notification-drawer-close:hover,
body.ag-face .portal-notification-drawer .portal-notification-drawer-close:focus-visible {
  color: var(--agf-ink) !important;       /* brightens; gold is not a hover here */
}

/* ---------- the filter row ---------- */
body.ag-face .portal-notification-drawer .portal-notification-drawer-content-type {
  flex: 0 0 auto !important;
  padding: 8px 20px 0 !important;
}
body.ag-face .portal-notification-drawer .notification-title-wrap {
  border-bottom: 0 !important;
  gap: 10px !important;
}
body.ag-face .portal-notification-drawer .notification-subtitle {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: var(--agf-ink-55) !important;
  padding: 2px 0 !important;
  margin-inline-end: 14px !important;
  letter-spacing: normal !important;
}
body.ag-face .portal-notification-drawer .notification-subtitle.active,
body.ag-face .portal-notification-drawer .notification-subtitle:hover {
  color: var(--agf-ink) !important;
  font-weight: 400 !important;            /* the platform bolds it; ink carries it */
}
body.ag-face .portal-notification-drawer .notification-subtitle::after {
  background-color: var(--agf-ink) !important;
  height: 1px !important;
  bottom: -3px !important;
}
body.ag-face .portal-notification-drawer .notification-mark-all-read,
body.ag-face .portal-notification-drawer .notification-settings {
  color: var(--agf-ink-55) !important;
  font-size: 12px !important;
}
body.ag-face .portal-notification-drawer .notification-mark-all-read svg,
body.ag-face .portal-notification-drawer .notification-settings svg {
  width: 14px !important;
  height: 14px !important;
}
body.ag-face .portal-notification-drawer .notification-mark-all-read:hover,
body.ag-face .portal-notification-drawer .notification-mark-all-read:hover .notification-mark-all-read-icon svg,
body.ag-face .portal-notification-drawer .notification-settings:hover {
  color: var(--agf-ink) !important;
  stroke: var(--agf-ink) !important;
  background: none !important;
}

/* the list: the one region that scrolls */
body.ag-face .portal-notification-drawer .portal-notification-drawer-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 2px 20px 16px !important;
}
/* the platform keeps the thumb hidden until the box is hovered; this shows it */
body.ag-face .portal-notification-drawer.sd-notification-list .portal-notification-drawer-content::-webkit-scrollbar {
  width: 5px !important;
}
/* ⚠️ SPECIFICITY IS LOAD-BEARING HERE: written at (0,4,1) out of the panel's own classes so no page-wide scrollbar correction can outrank it. This selector is owned by § 6. */
body.ag-face .portal-notification-drawer.sd-notification-list .portal-notification-drawer-content::-webkit-scrollbar-thumb {
  visibility: visible !important;
  /* one step above the brand hairline */
  background: var(--agf-lip-hover) !important;
  border-radius: 0 !important;            /* ADR-017 */
}

/* the rows */
body.ag-face .portal-notification-drawer .notification-avatar-wrap {
  display: none !important;
}
body.ag-face .portal-notification-drawer .portal-notification-item {
  padding: 0 !important;
}
body.ag-face .portal-notification-drawer .portal-notification-item-wrap {
  padding-block: 10px !important;
  padding-inline: 14px 4px !important;    /* 14 leaves the unread mark its column */
  gap: 0 !important;
}
body.ag-face .portal-notification-drawer .portal-notification-item-description-wrap {
  gap: 0 !important;
}
body.ag-face .portal-notification-drawer .notification-content {
  max-width: none !important;             /* removes the platform's 360px cap */
  font-size: 13px !important;
  line-height: 18px !important;
  color: var(--agf-ink) !important;
}
body.ag-face .portal-notification-drawer .notification-content a,
body.ag-face .portal-notification-drawer .notification-content strong {
  font-weight: 600 !important;
  color: var(--agf-ink) !important;
}
body.ag-face .portal-notification-drawer .portal-notification-item-timestamp {
  font-size: 11px !important;
  line-height: 16px !important;
  color: var(--agf-ink-55) !important;
  margin-top: 2px !important;
}
/* one hairline, not five: the other four come off */
body.ag-face .portal-notification-drawer [class*="notification-item"] {
  border-top: 0 !important;
}
body.ag-face .portal-notification-drawer .portal-notification-item:not(:last-child)::after {
  background-color: var(--agf-lit) !important;
}
body.ag-face .portal-notification-drawer .portal-notification-item:hover,
body.ag-face .portal-notification-drawer .portal-notification-item:focus-within {
  background-color: var(--agf-raised) !important;   /* ⛔ Not the platform's hover ground. */
}

/* the unread mark */
body.ag-face .portal-notification-drawer .notification-read-status {
  position: absolute !important;
  inset-inline-start: 0 !important;
  top: 11px !important;
  width: 14px !important;
  height: 14px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.ag-face .portal-notification-drawer .notification-read-status.unread::before {
  content: "" !important;
  position: absolute !important;
  inset-inline-start: 0 !important;
  top: 3px !important;
  width: 5px !important;
  height: 7px !important;
  background: var(--agf-gold) !important;
}
body.ag-face .portal-notification-drawer .notification-read-status.unread:hover,
body.ag-face .portal-notification-drawer .portal-notification-item:hover .notification-read-status.unread {
  outline: 0 !important;                  /* the platform rings it in Oracle Silver */
}
/* the platform writes outline-width:none on :focus, which removes the ring; this puts it back */
body.ag-face .portal-notification-drawer .notification-read-status:focus-visible {
  outline: 1px solid var(--agf-ink) !important;
  outline-offset: 2px !important;
}

/* ---------- the empty case ---------- */
body.ag-face .portal-notification-drawer .no-notification {
  padding: 28px 20px !important;
  color: var(--agf-ink-55) !important;
}
body.ag-face .portal-notification-drawer .no-notification svg {
  width: 18px !important;
  height: 18px !important;
  stroke: var(--agf-ink-55) !important;
}
body.ag-face .portal-notification-drawer .no-notification-text {
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 400 !important;
  color: var(--agf-ink-55) !important;
}

/* the mark that opened it */
body.ag-face .wp-block-suredash-notification .portal-notification-trigger:has(~ .portal-notification-drawer.notifications-opened) svg {
  stroke: var(--agf-ink) !important;
}


/* 6a - THE NOTICES PANEL COVERS THE SIDEBAR: the sidebar's own column, its width, full height, entering from its side. Nothing spills into the grid. */
/* ⛔ Use position: fixed - no ancestor is a containing block, so it escapes the sidebar's overflow clip. ⛔ Do not make .portal-tools-register static: the profile popover anchors on it. */

/* the panel's geometry. The inline-start offset is the frame's own centring expression, so it lands on the frame's edge at any viewport. */
body.ag-face .portal-notification-drawer {
  position: fixed !important;
  inset-block: 0 !important;
  /* ⚠️ the sidebar is at the INLINE-START edge: the portal is RTL */
  inset-inline-end: auto !important;
  /* the sidebar's own inline-start edge, as an expression rather than a number */
  inset-inline-start: calc(max(0px, (100vw - 1304px) / 2) + 10px) !important;
  height: auto !important;
  max-height: none !important;
  margin-inline: 0 !important;
  border: 0 !important;
  border-inline-end: 1px solid var(--agf-lip) !important;
  box-shadow: -20px 0 46px -18px rgba(0, 0, 0, .92) !important;
  transform: translateX(100%) !important;   /* enters from the sidebar's own side */
  transform-origin: center right !important;
}
body.ag-face .portal-notification-drawer.notifications-opened {
  transform: translateX(0) !important;
}

/* ⛔ The width is --agf-sidebar-w, the token that also sizes the sidebar. Keep the 232px fallback: an undefined token makes width compute to auto. */
body.ag-face .portal-notification-drawer {
  width: var(--agf-sidebar-w, 232px) !important;
  max-width: none !important;
}

/* the list gets the whole column, so the rows breathe at 242px */
body.ag-face .portal-notification-drawer .portal-notification-drawer-content {
  padding-inline: 16px !important;
}
body.ag-face .portal-notification-drawer .portal-notification-drawer-header {
  padding-inline: 16px !important;
}
body.ag-face .portal-notification-drawer .portal-notification-drawer-content-type {
  padding-inline: 16px !important;
}
/* at the narrower width the filter row does not fit its own label - measured */
body.ag-face .portal-notification-drawer .notification-mark-all-read-text {
  display: none !important;
}
body.ag-face .portal-notification-drawer .notification-title-wrap {
  flex-wrap: nowrap !important;
  gap: 6px !important;
}


/* 8 - THE SCROLLBAR, IN THE DARK PALETTE */
/* ⚠️ THREE SELECTORS, NOT ONE: `body.ag-face *` does not match <body> itself, and the body's overflow propagates to the viewport. <html> is included for browsers that style the viewport bar from the root. */
html:has(body.ag-face)::-webkit-scrollbar,
body.ag-face::-webkit-scrollbar,
body.ag-face ::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
html:has(body.ag-face)::-webkit-scrollbar-track,
html:has(body.ag-face)::-webkit-scrollbar-corner,
body.ag-face::-webkit-scrollbar-track,
body.ag-face::-webkit-scrollbar-corner,
body.ag-face ::-webkit-scrollbar-track,
body.ag-face ::-webkit-scrollbar-corner {
  background: transparent;
}
html:has(body.ag-face)::-webkit-scrollbar-thumb,
body.ag-face::-webkit-scrollbar-thumb,
body.ag-face ::-webkit-scrollbar-thumb {
  background: #1C2027;                  /* depth-3, the same value § 0 gives */
  border-radius: 0;                     /* ADR-017 - the platform ships 3px */
}


} /* end @media (min-width: 1026px) */


/* M - THE MOBILE FACE, below 1026px. */
/* ⛔ The desktop tokens are declared inside (min-width: 1026px), so below it every --agf-* is empty unless M0 declares it. A var() on an undeclared token kills its declaration silently. */
/* ⛔ Declare every token a rule below uses in M0, from the same literals as the desktop block, and change both together. */
/* At this width: .portal-sidebar is hidden; nav is the platform's drawer; notices are #portal-mobile-notification, which no § 6 or § 6a rule reaches. */

@media not all and (min-width: 1026px) {

/* ---------- M0 - the tokens, copied. See the header. ---------- */
body.ag-face {
  --agf-ground:      #060709;
  --agf-rail:        #030406;
  --agf-card:        #0C0E12;
  --agf-raised:      #14171C;
  --agf-hover:       #1C2027;
  --agf-hairline:    #2A2E36;

  --agf-ink:         #EEF4F5;
  --agf-ink-70:      #A8ADAE;
  --agf-ink-55:      #86898B;
  --agf-ink-50:      #7A7E7F;

  --agf-gold:        #FFC000;

  --agf-lit:         rgba(238, 244, 245, .07);
  --agf-frame:       rgba(238, 244, 245, .05);
  --agf-lip:         #2A2E36;
  --agf-lip-hover:   #3B404C;
  --agf-rail-hover:  #0A0C10;   /* added with § M9b - the drawer's row */

  --agf-ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --agf-turn:        240ms;
  --agf-pointer:     160ms;

  --agf-sans:        'Assistant', 'Arial Hebrew', system-ui, sans-serif;
  --agf-serif:       'Frank Ruhl Libre', 'David Libre', 'Times New Roman', serif;

  /* the card's fill: the same values as § 4a. Change both together. */
  --agf-fill:        linear-gradient(196deg, #161A20 0%, var(--agf-card) 50%, #07080B 100%);
  --agf-fill-hover:  linear-gradient(196deg, #181C23 0%, var(--agf-card) 50%, #06070A 100%);
}

/* M1 - the ground */
html:has(body.ag-face .portal-home-grid),
body.ag-face:has(.portal-home-grid) {
  background-color: var(--agf-ground) !important;
}

/* M2 - the 296px cap, released */
body.ag-face:has(.portal-home-grid) .portal-home-grid .portal-grid-row-container {
  min-height: 0 !important;
  height: auto !important;
  width: 100% !important;
  max-width: none !important;
}

/* M3 - the wall */
body.ag-face:has(.portal-home-grid) .narrow-grid-row {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  gap: 0 !important;
}
/* ⛔ Measured defect: a 104px hole between two rules that each looked complete. */
body.ag-face:has(.portal-home-grid) .wp-block-suredash-content {
  padding: 0 !important;
}
/* ⛔ Measured defect: the greeting and the wall did not share a start edge. */
body.ag-face:has(.portal-home-grid) .portal-content-area.portal-home-grid {
  align-items: flex-start !important;
}
/* ⚠️ The track is driven by the column, not by the viewport. */
/* ⛔ A floor with no ceiling is the defect: the card doubles across the band. The wall-2 track below takes variant 1's floor under variant 0's ceiling. */
body.ag-face:has(.portal-home-grid) .portal-home-grid .portal-grid-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)) !important;
  gap: 24px !important;
  justify-content: start !important;
}


/* ⛔ This track replaces M3's: its count floor is 228px, the desktop wall's narrowest card, so two columns arrive at a 523px viewport. */
/* ⛔ Keep the floor in the track and the 360px ceiling on the card (M4), and keep BOTH !important tokens here and on M3's track - removing the 228 one alone drops the grid to one column at 528-551px. */
/* ⛔ Keep .ag-face doubled in the selector: the second class keeps this rule one class above M3's track, so it wins by weight, not by source order. */
body.ag-face.ag-face:has(.portal-home-grid) .portal-home-grid .portal-grid-row {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)) !important;
}

/* M4 - the card. ⛔ A copy of § 4's card, § 4a's fill and § 4b's edges, because those are inside the desktop gate. Change both together. */
body.ag-face:has(.portal-home-grid) .portal-home-grid .portal-home-grid-item-content {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  width: 100% !important;
  min-width: 0 !important;
  /* ⛔ No height: 240px - the card is 16:9 at every width, as on desktop. */
  /* the ceiling */
  max-width: 360px !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  padding: 0 !important;
  padding-bottom: 0 !important;            /* post 22 holds the door open; this closes it */
  border: 1px solid transparent !important;
  border-radius: 0 !important;
  border-top-color: transparent !important;
  border-inline-start-color: #12151A !important;
  border-inline-end-color:   #12151A !important;
  border-bottom-color: #050608 !important;
  border-bottom-width: 1px !important;     /* post 22 sets 2px here */
  background-color: var(--agf-card) !important;
  background-image:
    linear-gradient(90deg,
      rgba(42, 46, 54, 0) 0%,
      var(--agf-lip) 15%,
      var(--agf-lip) 85%,
      rgba(42, 46, 54, 0) 100%),
    var(--agf-fill) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 100% 1px, auto !important;
  background-position: 0 0, 0 0 !important;
  background-origin: border-box !important;
  text-decoration: none !important;
  translate: 0 0 !important;
  transform: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .60), 0 12px 32px rgba(0, 0, 0, .55) !important;
  transition:
    background-image var(--agf-turn) var(--agf-ease),
    box-shadow var(--agf-turn) var(--agf-ease),
    border-color var(--agf-turn) var(--agf-ease) !important;
}
/* suppress post 22's door-seam ::before: this face has no door */
body.ag-face:has(.portal-home-grid) .portal-home-grid .portal-home-grid-item-content::before {
  content: none !important;
}
/* ⚠️ :hover is kept although a phone has no pointer: it is live on a tablet with a mouse and after a tap. */
body.ag-face:has(.portal-home-grid) .portal-home-grid .portal-home-grid-item-content:hover,
body.ag-face:has(.portal-home-grid) .portal-home-grid .portal-home-grid-item-content:focus-visible {
  translate: 0 0 !important;
  transform: none !important;
  border-inline-start-color: #1B1F26 !important;
  border-inline-end-color:   #1B1F26 !important;
  background-image:
    linear-gradient(90deg,
      rgba(42, 46, 54, 0) 0%,
      var(--agf-lip-hover) 8%,
      var(--agf-lip-hover) 92%,
      rgba(42, 46, 54, 0) 100%),
    var(--agf-fill-hover) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .65), 0 18px 44px rgba(0, 0, 0, .60) !important;
}
body.ag-face:has(.portal-home-grid) .portal-home-grid .portal-home-grid-item-content:focus-visible {
  outline: 1px solid var(--agf-gold) !important;
  outline-offset: 2px !important;
}

/* M5 - the title, inside the card. ⛔ A copy of § 4's title rules, which are inside the desktop gate. Change both together. */
body.ag-face:has(.portal-home-grid) .portal-home-grid .sd-card-main-container {
  position: absolute !important;
  inset: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 26px 30px !important;
}
body.ag-face:has(.portal-home-grid) .portal-home-grid .sd-card-content-container {
  gap: 0 !important;
}
body.ag-face:has(.portal-home-grid) .portal-home-grid .sd-card-content-container > .sd-flex {
  display: block !important;
}
body.ag-face:has(.portal-home-grid) .portal-home-grid .sd-card-content-container .sd-font-16 {
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  font-family: var(--agf-sans) !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.012em !important;     /* negative only - Hebrew */
  color: var(--agf-ink) !important;
  max-width: 19ch !important;
  text-wrap: balance !important;
  text-align: start !important;
}
body.ag-face:has(.portal-home-grid) .portal-home-grid .sd-card-content-container .sd-font-16 .sd-flex-1 {
  display: inline !important;
}
/* ⛔ `div.`, not the bare class: SureDash puts sd-thumbnail-image on both the wrapper and the image. */
body.ag-face:has(.portal-home-grid) .portal-home-grid div.sd-thumbnail-image,
body.ag-face:has(.portal-home-grid) .portal-home-grid .grid-card-arrow {
  display: none !important;
}
/* Keep the door's two elements hidden, so nothing paints over the card if a cached door script ever builds them. */
body.ag-face:has(.portal-home-grid) .portal-home-grid .ag-door-frame,
body.ag-face:has(.portal-home-grid) .portal-home-grid .ag-door-caption {
  display: none !important;
}

/* M5b - the cover */
body.ag-face:has(.portal-home-grid) .portal-home-grid .portal-home-grid-item-content img.portal-item-featured-image {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
/* the title block stands down when a cover is present - § 4's rule. */
body.ag-face:has(.portal-home-grid) .portal-home-grid .portal-home-grid-item-content:has(img.portal-item-featured-image) .sd-card-main-container {
  display: none !important;
}

/* ---------- M6 - the group rubric ---------- */
body.ag-face:has(.portal-home-grid) .portal-home-post-title {
  font-family: var(--agf-sans) !important;
  font-size: 17px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  color: var(--agf-ink-55) !important;
  margin: 0 0 14px !important;
  text-align: start !important;
}

/* M7 - the greeting, in the serif */
body.ag-face:has(.portal-home-grid) h1.wp-block-suredash-title {
  display: block !important;
  font-family: var(--agf-serif) !important;
  font-weight: 500 !important;
  font-size: 34px !important;
  line-height: 1.24 !important;
  letter-spacing: normal !important;
  text-align: start !important;
  color: var(--agf-ink) !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.ag-face:has(.portal-home-grid) h1.wp-block-suredash-title .ag-greet-lead,
body.ag-face:has(.portal-home-grid) h1.wp-block-suredash-title .ag-greet-name {
  font-family: var(--agf-serif) !important;
  font-weight: inherit !important;
  font-size: inherit !important;
  letter-spacing: inherit !important;
}
body.ag-face:has(.portal-home-grid) h1.wp-block-suredash-title .ag-greet-lead {
  color: var(--agf-ink-50) !important;
}
body.ag-face:has(.portal-home-grid) h1.wp-block-suredash-title .ag-greet-name {
  color: var(--agf-ink) !important;
}
/* the head's own band and its one divider, from § 2 */
body.ag-face:has(.portal-home-grid) .wp-block-columns:has(> * > h1.wp-block-suredash-title) {
  padding: 18px 20px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--agf-lit) !important;
  border-radius: 0 !important;
}

/* M8 - the top bar */
body.ag-face:has(.portal-home-grid) .wp-block-group.portal-hide-on-desktop.hidden-on-lessons {
  background: var(--agf-ground) !important;
  border-bottom-color: var(--agf-lit) !important;
}

/* M8b - the currency, to the opposite corner, on tablet */
@media (min-width: 546px) {
body.ag-face:has(.portal-home-grid) .wp-block-group.portal-hide-on-desktop.hidden-on-lessons > *:has(.ag-wallet) {
  margin-inline-start: auto !important;
}
}

/* M9 - the navigation drawer. ⛔ These rules reach every portal route, not just home. */
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) > .portal-aside-list-wrapper {
  margin-block-end: auto !important;
}
/* 296px is 92.5% of a 320px screen - a 24px sliver of page left behind */
body.ag-face .portal-aside-list-wrapper.portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) {
  width: min(296px, calc(100% - 48px)) !important;
  min-width: 0 !important;
}
/* home only: :where() keeps the un-scoped rule's weight. */
body.ag-face:where(:has(.portal-home-grid)) .portal-aside-list-wrapper.portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) {
  background: var(--agf-rail) !important;
}
/* ⛔ THE 20px INSET, ON EVERY ROUTE. § M9d2's offsets are derived from it. */
body.ag-face .portal-aside-list-wrapper.portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) {
  padding: 20px !important;
}
/* The drawer IS the sidebar at this width, so it takes the sidebar's own type, indent and line devices. */

/* the three line devices come off */
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group {
  padding-top: 0 !important;
  margin: 48px 0 0 !important;
}
/* home only: :where() keeps the un-scoped rule's weight. */
body.ag-face:where(:has(.portal-home-grid)) .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group {
  border-top: 0 !important;
}
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group.pinned-group {
  margin: 0 !important;
}
/* ⛔ The row separators go too - the owner named them twice. */
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group-link {
  border-top: 0 !important;
  border-bottom: 0 !important;
}
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group-link::before {
  content: none !important;
}
/* ⛔ The subitem icons go, on every route. */
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group-link .portal-svg-icon {
  display: none !important;
}

/* the item */
/* ⛔ The outer edge carries items only: the list wrapper's own 16px is what floats both levels inward, so dropping it puts the item back on the edge. */
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) > .portal-aside-list-wrapper {
  padding-inline-start: 0 !important;
}

/* ⚠️ The header is a flex ROW here and a BLOCK on desktop, so the underline needs its own flex line or its ::after shrinks to 0px. */
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group-header {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  margin-block-end: 5px !important;
  padding-inline-start: 0 !important;
}
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group-title {
  font-family: var(--agf-sans) !important;
  /* ⛔ 26/500 over 16/400 in the drawer too: the size step is the hierarchy. */
  font-size: 26px !important;
  line-height: 34px !important;
  font-weight: 500 !important;
  letter-spacing: -0.015em !important;      /* negative only - Hebrew */
  text-transform: none !important;
  color: var(--agf-ink) !important;
  margin: 0 !important;
  padding-inline-start: 4px !important;
}

/* ⭐ The one line the design draws, and its geometry is the point. */
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group:not(.pinned-group) .portal-aside-group-header::after {
  content: "" !important;
  display: block !important;
  height: 1px !important;
  margin-block-start: 8px !important;
  margin-inline-start: 4px !important;
  margin-inline-end: 0 !important;
  background: rgba(238, 244, 245, .09) !important;
  flex: 0 0 calc(100% - 4px) !important;
}

/* the subitem: the hanging indent is the 16px */
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group-link {
  position: relative !important;
  display: block !important;
  font-family: var(--agf-sans) !important;
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 400 !important;
  letter-spacing: -0.012em !important;
  color: #BFC3C4 !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding-block: 9px !important;
  padding-inline: 16px 8px !important;
}
/* ⛔ ZERO TRUNCATION is a named property of the accepted rail: undo the platform's nowrap/ellipsis and let the row wrap. */
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group-link .portal-aside-item-title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
}
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group-list {
  gap: 3px !important;
}
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group-link:hover,
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group-link:hover * {
  background: var(--agf-rail-hover) !important;
  color: var(--agf-ink) !important;
}
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group-link.active,
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group-link.active * {
  color: var(--agf-ink) !important;
  font-weight: 500 !important;
  background: var(--agf-rail-hover) !important;
}
/* the ONE place a 1px vertical bar is correct: the current row, in gold */
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group-link.active::before {
  content: "" !important;
  position: absolute !important;
  inset-inline-start: 0 !important;
  top: 6px !important;
  bottom: 6px !important;
  width: 2px !important;
  background: var(--agf-gold) !important;
}
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-aside-group-link:focus-visible {
  outline: 1px solid var(--agf-gold) !important;
  outline-offset: -1px !important;
}

/* M9c - the register: its rules, its marks, its third one */
/* ⚠️ One border, not two and not none: the top sits at the very top of the drawer. */
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .ag-drawer-tools-register {
  border-top: 0 !important;
  border-bottom: 1px solid var(--agf-frame) !important;
  margin-block-end: 26px !important;
}

/* ⭐ One painted extent, one stroke, across all three marks. */
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .ag-drawer-tool-search svg {
  width: 21.94px !important;
  height: 21.94px !important;
  stroke-width: 1.367 !important;
}
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .ag-drawer-tool-search svg * {
  stroke-width: 1.367 !important;
}
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .ag-drawer-tool-notification svg {
  width: 18.9px !important;
  height: 18.9px !important;
  stroke-width: 1.587 !important;
}
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .ag-drawer-tool-notification svg * {
  stroke-width: 1.587 !important;
}
/* ⛔ The drawer's bell is the platform's one definition, asked for by name. Do not re-draw a copy of it here or in the drawer's script. */
/* ⭐ The notices mark's two states live in § S, the shared part of this sheet. */

/* M9d - the profile mark is NOT in the top bar */

/* M9d2 - the profile mark, in the drawer */
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .wp-block-suredash-profile {
  display: block !important;
  position: absolute !important;
  inset-block-start: 30px !important;
  inset-inline-start: 96px !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 2 !important;
  /* ⛔ No `font-size: 0` here, and the omission is the point. */
}
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-header-avatar-wrap {
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  color: var(--agf-ink) !important;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22butt%22%20stroke-linejoin%3D%22miter%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%228.5%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%229.5%22%20r%3D%222.6%22%2F%3E%3Cpath%20d%3D%22M7%2018.2%20C8.4%2015.4%2015.6%2015.4%2017%2018.2%22%2F%3E%3C%2Fsvg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22butt%22%20stroke-linejoin%3D%22miter%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%228.5%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%229.5%22%20r%3D%222.6%22%2F%3E%3Cpath%20d%3D%22M7%2018.2%20C8.4%2015.4%2015.6%2015.4%2017%2018.2%22%2F%3E%3C%2Fsvg%3E");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: 20px 20px;   mask-size: 20px 20px;
  transition: color var(--agf-pointer) var(--agf-ease);
}
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-user-avatar,
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-avatar-initials-text,
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-user-gravatar {
  display: none !important;
}
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-header-avatar-wrap:hover,
body.ag-face .portal-footer-resp-nav:not(:has(.portal-aside-endpoint-navigation)) .portal-header-avatar-wrap:focus-visible {
  color: var(--agf-gold) !important;
}

/* M9f - the popover, held inside the frame */
/* ⚠️ SPLIT 2026-10-02: the horizontal half below is scoped to .portal-footer-resp-nav,
the drawer - the ONE host that renders this menu at 390/768/1024, and the only host it was
ever measured in. The other two hosts, .portal-hide-on-desktop (mobile topbar) and
.portal-tools-register (desktop rail), are HIDDEN at those widths, so the unscoped form was
asserting over hosts no measurement covers. Removing the horizontal half outright is NOT
the answer and was tested: it shifts the menu +148.0px in all 12 cells and hangs it past
the right edge, clipping the links. The vertical half keeps the unscoped selector on
purpose - its scope was not what was measured. */
body.ag-face .portal-avatar-menu {
  inset-block-start: calc(100% + 8px) !important;
  inset-block-end: auto !important;
  max-width: calc(100vw - 40px) !important;
  max-height: calc(100vh - 120px) !important;
  overflow-y: auto !important;
}
/* ⛔ The bare host is deliberate - do not "correct" it to match the 35 guarded selectors
around it. The M9 section guard `:not(:has(.portal-aside-endpoint-navigation))` (see the
section head, line 1222) was considered and NOT used here: it would withdraw this fix from
the aside-endpoint drawer variant - the same host on a different route, never measured -
reintroducing the +148.0px shift there. Bare withdraws the rule from the two hidden hosts
and from nothing else, so it changes no route's behaviour. Keep it bare, at (0,3,1). */
body.ag-face .portal-footer-resp-nav .portal-avatar-menu {
  inset-inline-start: 0 !important;
  inset-inline-end: auto !important;
  /* ⛔ BOTH `left: auto` and `right: auto` stay. Reducing this to the `inset-inline-*`
     pair alone is NOT an equivalent simplification - someone will propose it as though it
     obviously were. It moves the work onto a different declaration. These two are what
     beat the platform's `left: 0 !important` (suredash single-rtl.min.css, the sheet this
     install actually enqueues) and its `right: 0 !important` (single.min.css, enqueued on
     no route here), so the rule holds in EITHER text direction. Ours is (0,3,1)
     !important against their (0,2,0) !important - specificity decides this, not source
     order, which was proven irrelevant. */
  left: auto !important;
  right: auto !important;
}

/* M9e - the toggle's mark. ⛔ Do not un-hide the toggle's span.portal-svg-icon: the ring-and-dot is the button's own ::before/::after. */

/* M10 - the notifications popup */
/* ⛔ REMOVED 2026-10-01: the avatar hide that stood here -
   `#portal-mobile-notification .notification-avatar-wrap { display: none }`.
   It was part of the 2026-09-13 wall2-mobile1 APPROVED state, so this SUPERSEDES an
   approved state - it is not a defect fix. Owner's review 2026-10-01: the notification
   list shows avatars and type icons.
   ⭐ Its stated rationale was void: the clone-duplication problem the records describe
   (`elements/notices-sheet/NATIVES.md`: the mobile drawer is a runtime clone "so the
   sidebar's marks exist twice") covers the SEARCH and BELL glyphs only -
   `drawer-tools-register.js` builds those two buttons and copies no list rows (no
   cloneNode anywhere). The avatar is emitted once by the platform, in
   `suredash/core/notifier/base.php:219`, for whichever surface renders the list.
   ⚠️ The desktop hide at the top of this sheet (inside @media (min-width:1026px))
   is UNTOUCHED: the desktop panel is a separate surface and keeps its approved behaviour.
   ⚠️ OWED: the row rhythm. `padding-inline: 14px 4px` ("14 leaves the unread mark its
   column") was tuned for a row with no avatar; re-tune in a living render on A.
   ✅ PART-DISCHARGED 2026-10-02: the mobile re-tune is now WRITTEN as
   `padding-inline-start: 14px` on this host's `.portal-notification-item-wrap` (see "THE
   MARK'S COLUMN, RE-TUNED" in the mobile notifications section below, which carries the
   derivation). Still owed: the living render that measures it. The value is derived and
   unproven until then. The DRAWER's own 14px 4px is untouched - it still hides avatars. */

} /* end @media (max-width: 1025px) - THE MOBILE FACE */

/* Portal-home design, declared here directly rather than in wp_posts 22. */
/* Keep body.ag-face and :has(.portal-home-grid) on every selector below, and keep each selector's specificity. */

body.ag-face:has(.portal-home-grid) .wp-block-columns:has(> .portal-sidebar) {
  align-items: stretch !important;
  max-width: 1304px !important;
  margin-inline: auto !important;
}
body.ag-face:has(.portal-home-grid) .wp-block-columns:has(> .portal-sidebar) > .wp-block-column:not(.portal-sidebar),
body.ag-face:has(.portal-home-grid) .portal-body-container,
body.ag-face:has(.portal-home-grid) .portal-home-grid {
  background-color: transparent !important;
}
@media not all and (min-width: 1026px) {
  body.ag-face:has(.portal-home-grid) .wp-block-columns:has(> .portal-sidebar) {
    border-width: 1px !important;
    border-style: solid !important;
  }
  body.ag-face:has(.portal-home-grid) .wp-block-columns:has(> .portal-sidebar) > .wp-block-column:not(.portal-sidebar) {
    border-inline-start-width: 1px !important;
    border-inline-start-style: solid !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-content-section > .wp-block-group__inner-container,
  body.ag-face:has(.portal-home-grid) .wp-block-suredash-content,
  body.ag-face:has(.portal-home-grid) .portal-home-grid {
    max-width: none !important;
  }
}
html body.ag-face:where(:has(.portal-home-grid)) *,
html body.ag-face:where(:has(.portal-home-grid)) *::before,
html body.ag-face:where(:has(.portal-home-grid)) *::after {
  border-radius: 0 !important;
}

body.ag-face:has(.portal-home-grid) .portal-sidebar .portal-aside-group-link .portal-svg-icon,
body.ag-face:has(.portal-home-grid) .portal-footer-resp-nav .portal-aside-group-link .portal-svg-icon {
  display: none !important;
}
/* ⛔ GUEST LOGIN PRESERVED - the profile selector in the group below is THE SEAT.
   ⚠️ NAME IT BY ITS SELECTOR, NOT BY A LINE. The fragment
   `.wp-block-suredash-profile:not(:where(.portal-tools-register *))` greps to exactly ONE
   selector in this sheet, and it is the one in the group immediately below this comment. The
   seat was called `portal-home.css:1531` throughout 2026-10-02 and THAT NAME IS STALE: adding
   this very comment moved the selector down the file. No line number is given here on purpose -
   within the same file the selector text IS the address.
   ⭐ THE MECHANISM, because the next person commenting above a rule will repeat it:
   A LINE-NUMBER REFERENCE IS INVALIDATED BY DOCUMENTING THE THING IT POINTS AT. That is
   perverse enough to be worth stating once.
   It hid `.wp-block-suredash-profile` everywhere except
   inside `.portal-tools-register`, at all widths, and the phone bar's instance is the GUEST's
   only login link (the platform renders it as the bar's profile block, glyph "G" to
   /portal-login/). The exception was by PLACE, the hide by ELEMENT, NEITHER BY STATE - so it
   removed the element in every state, including the one where that element IS the login path.
   ⭐ THE RULE: HIDING A LOGGED-IN CONTROL MUST NEVER REMOVE THE GUEST'S LOGIN AFFORDANCE.
   The mechanism: A HIDE SCOPED BY ELEMENT RATHER THAN BY STATE REMOVES THAT ELEMENT IN EVERY
   STATE. The other instance of this same mistake is the rail's, repaired in
   `antigravity-portal-profile-mark/style.css` beside its own hide - grep
   `[data-view="not-logged-in"]` there, one rule pair, no line number needed - THE TWO FIXES LIVE IN TWO
   FILES, so finding one does not mean the other is beside it.
   ⚠️ WHY THE GUARD IS `:not(:where(.suredash-guest-user))`, NOT `:not(.suredash-guest-user)`.
   The bare class would add a class and take this selector (0,3,1) to (0,4,1) - EXACTLY
   § M9d2's (0,4,1). Both carry !important, so a tie resolves on source order, and this group
   sits LATER in the file than M9d2. M9d2 would lose a tie it currently wins on specificity and
   THE MEMBER'S DRAWER PROFILE BLOCK WOULD DISAPPEAR - the instance course-space's § 10d
   records the owner as wanting KEPT. `:where()` contributes zero specificity and `:not()` takes
   its argument's, so this form negates identically and adds NOTHING: the selector stays
   (0,3,1) and no tie is created.
   ⭐ The sheet already proves the construct: `:not(:where(.portal-tools-register *))` in this
   same selector is why it is (0,3,1) today. If that counted, this selector would ALREADY tie
   M9d2 and the drawer would ALREADY be broken - and M9d2 is measured working. The sheet's own
   functioning state is the confirmation, not just the spec.
   ⚠️ ONLY THIS SELECTOR CHANGES. The other four in the group are untouched, and grouped
   selectors are evaluated independently, so none inherits the negation.
   ⭐ BLAST RADIUS ZERO, AND WHY. `.wp-block-suredash-profile` renders x3 (profile-mark
   NATIVES.md:12): the rail's and the phone bar's, both authored - `wp:suredash/profile` counts
   2 in the stored template row - plus the drawer's, a runtime clone of the rail's made by
   `single.min.js` from `.portal-sidebar .wp-block-suredash-profile`. 2 + 1 = 3. The rail's is
   excepted here and the drawer's is un-hidden by § M9d2 at higher weight, so THE PHONE BAR IS
   THE ONLY PLACE THIS SELECTOR STILL ACTS. Excepting guests reveals exactly one thing: the
   bar's instance.
   ⚠️ THE RESIDUAL, since that count was measured in MEMBER state on 2026-09-14 and never
   for a guest: a fourth instance somewhere this selector hides would be revealed by the
   exception. So the gate COUNTS `.wp-block-suredash-profile` at the guest render and asserts
   exactly 3, visible only in those three hosts. A fourth fails loudly instead of appearing
   where nobody looked.
   ⚠️ DERIVED AND UNPROVEN - FIRST RENDER IS ITS B-ACCEPTANCE TEST. Not renderable on A
   (qa-autologin), so it is staged HAVING NEVER BEEN RENDERED ANYWHERE. Gate: guest, 390,
   portal home, made to fail on purpose. ⛔ THE CHECK IS THE RECT AND WHAT IT OVERLAPS, NEVER
   THE LANDING URL ALONE. Assert computed declarations FIRST and geometry second; if the rule
   did not match, probe `suredash-guest-user` on `body` and `data-view="not-logged-in"` on the
   wrap SEPARATELY and report WHICH is absent.
   ⚠️ PROVENANCE: the guest chain and the bar's composition come from the POST LANE
   (`screens/post/Code/post.src.css:1323` for the hide guard, `:1450-1451` for the tap box),
   not from anything verifiable here - this lane's 2026-10-02 probes are qa-autologin sessions.
   ⚠️ The owner's words authorise the HIDE, not its reach into the guest state: "we can see
   the profile avatar on this screen, and its not needed. this is on mobile's. so on mobile:
   profile gylph is not on sidebar, and is next to currency indicator - not good" (2026-10-01,
   about the POST screen). The subject is a logged-in control throughout and nothing addresses
   guests - and the lane that owns that ruling excepted guests itself before we did. */
body.ag-face:has(.portal-home-grid) .portal-sidebar .sd-aside-group-toggle,
body.ag-face:has(.portal-home-grid):not(:where(.suredash-guest-user)) .wp-block-suredash-profile:not(:where(.portal-tools-register *)),
body.ag-face:has(.portal-home-grid) .portal-branding,
body.ag-face:has(.portal-home-grid) .wp-block-column.hidden-on-lessons:has(.wp-block-navigation),
body.ag-face:has(.portal-home-grid) .notification-unread-count {
  display: none !important;
}

/* ⭐ The guest's bar mark: 40 to 44 to tap. ⚠️ THIS IS NOT THE REPAIR - the un-hide above
   is. Our profile-mark unit's `display: none` on `.portal-user-avatar` is scoped to
   `.portal-tools-register`, so in the BAR the guest's avatar was never hidden: once the block
   is back, the link already has content and is already tappable at 40x40. This only brings it
   to the 44 touch standard. ⛔ The two seats fail DIFFERENTLY and must not be read as one
   pattern: in the rail the link measured 32x0 and the box IS the repair; here the block was
   gone and the un-hide is the repair.
   ⚠️ The form differs for a reason. In the rail the link may go absolute and own the wrap's
   box (`inset: -6px`, 32 to 44). Here it must stay IN FLOW beside the wallet, so going
   absolute would collapse the bar's layout - hence `position: relative` on the LINK plus an
   `::after` that extends the hit area without touching layout (`inset: -2px`, 40 to 44). Two
   hosts, two forms, one target size. Reused verbatim from the post lane
   (`screens/post/Code/post.src.css:1450-1451`), not re-derived.
   ⚠️ `position: relative` here is on the LINK, not the wrap, and for a different reason
   than the rail's: the `::after`'s insets must resolve against the link. The rail's
   guaranteed-escape condition does NOT apply in the bar - our rail-scoped
   `position: static !important` on `.portal-user-profiles-wrap` does not reach this host, so
   that parent keeps its `.sd-relative`. ⛔ Do not copy the rail's wrap line into this host.
   ⚠️ Host is the post lane's `.portal-hide-on-desktop`, deliberately WITHOUT
   `.hidden-on-lessons`: over-reach here can only enlarge a tap area, which is harmless,
   whereas that class is a dependency the PM already has a WATCH on. The narrow host was needed
   only for a counter-rule un-hide, and the seat edit above made that counter-rule unnecessary,
   so the dependency retires with it.
   ⚠️ DERIVED AND UNPROVEN. The gate asserts the `::after` box at 44x44 and what it
   overlaps, declarations before geometry. */
@media not all and (min-width: 1026px) {
  body.ag-face:has(.portal-home-grid).suredash-guest-user .portal-hide-on-desktop .portal-header-avatar-wrap > a {
    position: relative !important;
  }
  body.ag-face:has(.portal-home-grid).suredash-guest-user .portal-hide-on-desktop .portal-header-avatar-wrap > a::after {
    content: "" !important;
    position: absolute !important;
    inset: -2px !important;
  }
}


@media (min-width: 1026px) {
  body.ag-face:has(.portal-home-grid) .portal-sidebar {
    display: flex !important;
    flex-direction: column !important;
  }
}
@media not all and (min-width: 1026px) {
  body.ag-face:has(.portal-home-grid) .portal-sidebar .portal-aside-group-link {
    position: relative !important;
    display: block !important;
    padding-block: 9px !important;
    padding-inline: 14px 4px !important;
    border-top-width: 1px !important;
    border-top-style: solid !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-sidebar .portal-aside-group:not(.pinned-group) {
    margin-top: 20px !important;
    padding-top: 12px !important;
    border-top-width: 1px !important;
    border-top-style: solid !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-sidebar .portal-aside-group-title {
    font-size: 14px !important;
    line-height: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-sidebar .portal-aside-group:not(.pinned-group) .portal-aside-group-link {
    font-size: 13px !important;
    line-height: 18px !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-sidebar .portal-aside-group-link::before {
    content: "" !important;
    position: absolute !important;
    inset-inline-start: 0 !important;
    top: 7px !important;
    bottom: 7px !important;
    width: 1px !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-sidebar .portal-aside-group-link.active,
  body.ag-face:has(.portal-home-grid) .portal-sidebar .portal-aside-group-link.active * {
    font-weight: 600 !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-sidebar .portal-aside-group-link.active::before {
    width: 2px !important;
  }
}

@media not all and (min-width: 1026px) {
  body.ag-face:has(.portal-home-grid) .portal-sidebar #portal-placeholder-search-wrap {
    display: none !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-tools-register {
    border-top-width: 1px !important;
    border-top-style: solid !important;
    border-bottom-width: 1px !important;
    border-bottom-style: solid !important;
    padding-block: 10px !important;
    margin-block-end: 12px !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-tools-register .only-search-icon-wrap,
  body.ag-face:has(.portal-home-grid) .portal-tools-register .portal-notification-trigger {
    width: 32px !important;
    height: 32px !important;
    border: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-tools-register .only-search-icon-wrap svg,
  body.ag-face:has(.portal-home-grid) .portal-tools-register .portal-notification-trigger svg {
    width: 20px !important;
    height: 20px !important;
  }
}

body.ag-face:has(.portal-home-grid) .portal-notification-drawer {
  z-index: 40 !important;
}
body.ag-face:has(.portal-home-grid) .portal-notification-drawer-header:not(:where(.portal-notification-drawer *)) {
  border-bottom-width: 1px !important;
  border-bottom-style: solid !important;
}
body.ag-face:has(.portal-home-grid) [class*="notification-item"]:not(:where(.portal-notification-drawer *)) {
  border-top-width: 1px !important;
  border-top-style: solid !important;
}
@media not all and (min-width: 1026px) {
  body.ag-face:has(.portal-home-grid) .portal-notification-drawer {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    inset-inline: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    max-width: 1304px !important;
    margin-inline: auto !important;
    height: 236px !important;
    max-height: 236px !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-notification-header-title {
    font-size: 12px !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-notification-drawer .portal-notification-drawer-header {
    border-bottom-width: 1px !important;
    border-bottom-style: solid !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-notification-drawer [class*="notification-item"] {
    border-top-width: 1px !important;
    border-top-style: solid !important;
  }
}

body.ag-face:has(.portal-home-grid) .portal-aside-list-wrapper.portal-footer-resp-nav {
  border-inline-end-width: 1px !important;
  border-inline-end-style: solid !important;
  padding: 20px !important;
}
body.ag-face:has(.portal-home-grid) .portal-aside-list-wrapper.portal-footer-resp-nav .sd-aside-group-toggle svg {
  width: 12px !important;
  height: 12px !important;
  stroke-width: 1.5 !important;
  opacity: 0.6 !important;
}
body.ag-face:has(.portal-home-grid) .portal-bg-overlay {
  opacity: 0.7 !important;
}
@media (min-width: 1026px) {
  /* ⛔ The flyout's ground is declared here, not taken from --portal-primary-color, which another sheet re-points. */
  body.ag-face:has(.portal-home-grid) .portal-aside-list-wrapper.portal-footer-resp-nav {
    width: 296px !important;
    background: rgb(7, 8, 11) !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-footer-resp-nav .portal-aside-group-link {
    position: relative !important;
    display: block !important;
    padding-block: 9px !important;
    padding-inline: 14px 4px !important;
    border-top-width: 1px !important;
    border-top-style: solid !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-aside-list-wrapper.portal-footer-resp-nav .portal-aside-group-link {
    font-size: 14px !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-footer-resp-nav .portal-aside-group:not(.pinned-group) {
    margin-top: 20px !important;
    padding-top: 12px !important;
    border-top-width: 1px !important;
    border-top-style: solid !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-footer-resp-nav .portal-aside-group-title {
    font-size: 14px !important;
    line-height: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-footer-resp-nav .portal-aside-group:not(.pinned-group) .portal-aside-group-link {
    line-height: 18px !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-footer-resp-nav .portal-aside-group-link::before {
    content: "" !important;
    position: absolute !important;
    inset-inline-start: 0 !important;
    top: 7px !important;
    bottom: 7px !important;
    width: 1px !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-footer-resp-nav .portal-aside-group-link.active,
  body.ag-face:has(.portal-home-grid) .portal-footer-resp-nav .portal-aside-group-link.active * {
    font-weight: 600 !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-footer-resp-nav .portal-aside-group-link.active::before {
    width: 2px !important;
  }
}

@media not all and (min-width: 1026px) {
  body.ag-face:has(.portal-home-grid) .wp-block-group.portal-hide-on-desktop.hidden-on-lessons {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    justify-content: flex-start !important;
    padding-block: 14px !important;
    gap: 32px !important;
  }
  body.ag-face:has(.portal-home-grid) .wp-block-group.portal-hide-on-desktop.hidden-on-lessons .portal-hide-on-desktop {
    display: flex !important;
    align-items: center !important;
  }
  body.ag-face:has(.portal-home-grid) .sd-portal-navigation-toggle {
    padding: 0 !important;
    width: 44px !important;
    height: 44px !important;
    margin-block: -11px !important;
    margin-inline: -2px !important;
    position: relative !important;
  }
  body.ag-face:has(.portal-home-grid) .sd-portal-navigation-toggle .portal-svg-icon {
    display: none !important;
  }
  body.ag-face:has(.portal-home-grid) .sd-portal-navigation-toggle::before,
  body.ag-face:has(.portal-home-grid) .sd-portal-navigation-toggle::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: auto !important;
    border-radius: 50% !important;
    transform: translateY(-50%) !important;
  }
  body.ag-face:has(.portal-home-grid) .sd-portal-navigation-toggle::before {
    width: 18.5px !important;
    height: 18.5px !important;
    inset-inline-start: 3px !important;
    border: 1.5px solid currentColor !important;
    background: none !important;
  }
  body.ag-face:has(.portal-home-grid) .sd-portal-navigation-toggle::after {
    width: 4px !important;
    height: 4px !important;
    inset-inline-start: 10.25px !important;
    background: currentColor !important;
  }
  body.ag-face:has(.portal-home-grid) h1.wp-block-suredash-title {
    gap: 16px !important;
    flex-wrap: wrap !important;
  }
  body.ag-face:has(.portal-home-grid) .wp-block-columns:has(> * > h1.wp-block-suredash-title) {
    gap: 0 !important;
  }
  body.ag-face:has(.portal-home-grid) .wp-block-columns:has(> * > h1.wp-block-suredash-title) > .wp-block-column:not(:has(h1.wp-block-suredash-title)) {
    display: none !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-content-area.portal-home-grid {
    padding-inline: 20px !important;
    padding-top: 20px !important;
    margin-top: -4px !important;
    gap: 40px !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-content-section > .wp-block-group__inner-container.wp-block-group__inner-container {
    width: calc(100% + 1px) !important;
  }
}

/* fix pass — approved-render declarations; the token block is separate. */

/* Genuine losses: prefix weighs post 22's body:has() minus the type selector, so after this sheet (printed after post 22) it beats exactly what post 22 beat. */
:root:where(:has(body.ag-face .portal-home-grid)),
:where(body).ag-face:where(:has(.portal-home-grid)) {
  background: #030305 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) {
  color: #EEF0F3 !important;
}
@media (min-width: 1026px) {
  :where(body).ag-face:where(:has(.portal-home-grid)) .portal-sidebar {
    background: #07080B !important;
  }
}
:where(body).ag-face:where(:has(.portal-home-grid)) .wp-block-columns:has(> .portal-sidebar) {
  border: 1px solid #121417 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .wp-block-columns:has(> .portal-sidebar) > .wp-block-column:not(.portal-sidebar) {
  border-inline-start: 1px solid #121417 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-tools-register {
  border-top: 1px solid #121417 !important;
  border-bottom: 1px solid #121417 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-tools-register .only-search-icon-wrap,
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-tools-register .portal-notification-trigger {
  color: #AAACB0 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-tools-register .only-search-icon-wrap svg,
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-tools-register .portal-notification-trigger svg {
  stroke: #AAACB0 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .only-search-icon-wrap,
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-notification-trigger {
  color: #AAACB0 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-aside-group-link {
  color: #EEF0F3 !important;
  border-top: 1px solid #121417 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-aside-group-link::before {
  background: #121417 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-aside-group:not(.pinned-group) {
  border-top: 1px solid #121417 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-aside-group:not(.pinned-group) .portal-aside-group-link {
  color: #AAACB0 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-aside-group-title {
  color: #AAACB0 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .icon-coin circle:nth-child(2) {
  stroke: #030305 !important;
  stroke-opacity: 0.5 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .icon-coin path {
  fill: #030305 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) h1.wp-block-suredash-title {
  color: #EEF0F3 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-home-post-title {
  color: #AAACB0 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-home-grid-item-content {
  border: 1px solid #212326 !important;
  border-bottom-width: 2px !important;
  background: #07080B !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-home-grid-item-content::before {
  content: "" !important;
  background: linear-gradient(to bottom, #83868B 0, #3B3D40 28px, #3B3D40 100%) !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .sd-card-content-container .sd-font-16 {
  color: #EEF0F3 !important;
}
@media not all and (min-width: 1026px) {
  :where(body).ag-face:where(:has(.portal-home-grid)) .wp-block-group.portal-hide-on-desktop.hidden-on-lessons {
    background: #030305 !important;
    border-bottom: 1px solid #121417 !important;
  }
  :where(body).ag-face:where(:has(.portal-home-grid)) .wp-block-columns:has(> * > h1.wp-block-suredash-title) {
    border-bottom: 1px solid #090A0D !important;
  }
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-aside-list-wrapper.portal-footer-resp-nav {
  border-inline-end: 1px solid #121417 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-aside-list-wrapper.portal-footer-resp-nav .portal-aside-group-link {
  color: #EEF0F3 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-notification-drawer {
  max-width: 1304px !important;
  max-height: 236px !important;
  background: #07080B !important;
  border: 1px solid #121417 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-notification-drawer-header {
  border-bottom: 1px solid #121417 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-notification-header-title {
  color: #EEF0F3 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .portal-notification-drawer-close {
  color: #787A7F !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .notification-title-wrap {
  border-color: #121417 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) .notification-row,
:where(body).ag-face:where(:has(.portal-home-grid)) [class*="notification-item"] {
  border-top: 1px solid #121417 !important;
}

/* Dropped shorthand colours: the colour goes on the same selector as its width/style rule. */
@media not all and (min-width: 1026px) {
  body.ag-face:has(.portal-home-grid) .wp-block-columns:has(> .portal-sidebar) {
    border-color: #121417 !important;
  }
  body.ag-face:has(.portal-home-grid) .wp-block-columns:has(> .portal-sidebar) > .wp-block-column:not(.portal-sidebar) {
    border-inline-start-color: #121417 !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-sidebar .portal-aside-group-link {
    border-top-color: #121417 !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-sidebar .portal-aside-group:not(.pinned-group) {
    border-top-color: #121417 !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-tools-register {
    border-top-color: #121417 !important;
    border-bottom-color: #121417 !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-notification-drawer {
    border-color: #121417 !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-notification-drawer [class*="notification-item"] {
    border-top-color: #121417 !important;
  }
}
body.ag-face:has(.portal-home-grid) [class*="notification-item"]:not(:where(.portal-notification-drawer *)) {
  border-top-color: #121417 !important;
}
body.ag-face:has(.portal-home-grid) .portal-aside-list-wrapper.portal-footer-resp-nav {
  border-inline-end-color: #121417 !important;
}
@media (min-width: 1026px) {
  body.ag-face:has(.portal-home-grid) .portal-footer-resp-nav .portal-aside-group-link {
    border-top-color: #121417 !important;
  }
  body.ag-face:has(.portal-home-grid) .portal-footer-resp-nav .portal-aside-group:not(.pinned-group) {
    border-top-color: #121417 !important;
  }
}

/* Mobile notifications popup: the approved colours. */
body.ag-face:has(.portal-home-grid) #portal-mobile-notification {
  background-color: #030305 !important;
  border-color: #121417 !important;
  box-shadow: 0 0 6px 0 #121417 !important;
}
body.ag-face:has(.portal-home-grid) #portal-mobile-notification .portal-notification-item::after {
  background-color: #121417 !important;
}
body.ag-face:has(.portal-home-grid) #portal-mobile-notification .portal-notification-drawer-close {
  color: #787A7F !important;
}
/* ---------- the row's inline rhythm ---------- */
/* ⚠️ THE MARK'S COLUMN: 8 -> 14, LEADING EDGE ONLY. Lane lead's ruling 2026-10-02.
   ⛔ THIS CHAIN REPLACES AN EARLIER ONE, it does not improve on it. The first version
   argued "14 was the mobile row's value and its premise changed when the avatar arrived".
   That was WRONG: 14 was never this row's value. The replacement is below. Recording the
   replacement rather than quietly carrying a better chain is the point.
     1. The mark is 14x14 and is `position: absolute; inset-inline-start: 0`, so it is
        positioned against the row's PADDING box. The avatar is a flex item, so it begins at
        the CONTENT box. The row's inline-start padding therefore IS the mark's column.
     2. The padding is 8 and the mark is 14. 14 > 8, so the mark cannot fit in its own
        column: it spills 6px onto the avatar, and the 8px dot's far edge lands exactly on
        the avatar's leading edge at 0.00px clearance. Both remaining defects are this one
        fact, not two.
     3. WE HAVE NEVER SET THIS ROW'S RHYTHM. No § 6 / § 6a rule of ours reaches
        #portal-mobile-notification - the note at the head of this media block says so. The
        8 is the PLATFORM's default. This rule is a FIRST-TIME OVERRIDE, not the movement of
        anything we authored or the owner ratified.
     4. AND THE CONFIGURATION ITSELF IS UNAPPROVED. The only approved mobile row -
        2026-09-13 wall2-mobile1 - had the avatar HIDDEN, and the 2026-10-01 un-hide
        SUPERSEDES that approved state rather than fixing a defect (see § M10 above). So the
        row-with-an-avatar has never been in an approved state at all. There is no approved
        rhythm here to trade against, which is why this was the lane lead's to rule.
     5. 14 IS A REUSE, NOT A DERIVATION. It is the value of the approved declaration for
        this exact job on the other surface - `padding-inline: 14px 4px`, commented "14
        leaves the unread mark its column", present with that comment in BOTH approved
        anchors (2026-09-11 sidebar-and-notices, 2026-09-13 wall2-mobile1). It also equals
        the mark's own box width, so it transfers on its own terms: the mark is 14 wide on
        either surface. NOTHING IS ADDED TO IT - there is no chosen quantity in this fix and
        no invented number.
   ⭐ THE OWNER APPROVED THE OUTCOME, NOT THESE NUMBERS. Shown "round avatar, a gap to the
   dot, no overlap", he answered "ok" (2026-10-02). He ruled on no numbers. DERIVED and
   UNPROVEN until a slot render measures them.
   ⭐ WHAT 14 YIELDS: avatar 14..54, mark 0..14 ADJACENT to it - zero overlap, which is
   exactly what he asked for - and the dot 0..8 leaving 6px of clearance. Text block starts
   at 66 (14 + 40 + 12).
   ⛔ TWO EARLIER FORMS WERE WITHDRAWN. Both records matter, because "the minimal form was
   chosen" is not what happened:
     a. `padding-inline: 18px 4px` - chosen, then withdrawn by the lane lead. The trailing
        value does no work on a defect that lives entirely at the leading edge, and
        mirroring the drawer's two-value FORM fails step 5's own logic: the form was tuned
        for a row with no avatar. The magnitude 14 transfers; the shape does not.
     b. `padding-inline-start: 18px` - chosen, then withdrawn on TWO counts. First, 18 was
        14 + 4, where the 4 bought clearance between mark and avatar: an OVER-DERIVATION,
        because the owner asked for no overlap and ADJACENCY IS NO OVERLAP. The 4px was paid
        for an upgrade of his words that nobody authorised. Second, it cost the most text
        width of any candidate - see the table below.
   ⛔ ONE OF THE REASONS GIVEN FOR DROPPING THE TRAILING 4 WAS WRONG, AND IS WITHDRAWN.
   It was argued that cutting the trailing 4 would reduce the risk of a row growing. It does
   the opposite: the trailing 4 was a GIVE-BACK to the text, not decoration, so removing it
   DOUBLED the narrowing it was meant to avoid. Measured text-block width at 390:
        original                    319.64
        `18px 4px`                  316.00   (-3.64)
        `18px` leading-only         312.00   (-7.64)  <- the risk argument's own candidate
        `14px` leading-only         316.00   (-3.64)  <- taken
   At 768: original 693.95; `14px` leading-only 694.00 (+0.05), i.e. nothing. The
   row-growth risk belongs to the LEADING value, which is kept either way. The other two
   reasons for leading-only stand: the trailing value does no work on a leading-edge defect,
   and mirroring the drawer's form fails step 5. A row may still grow at 390 - the render
   check measures it rather than assuming it.
   ⭐ WHY 14 IS SAFE AT ZERO TOLERANCE - the one cost 14 appeared to carry. 18 left 4px
   between mark and avatar; 14 leaves them exactly adjacent, which looked like no margin for
   sub-pixel rounding. That margin is not needed, because NOTHING IN THIS GEOMETRY IS
   FRACTIONAL OR DERIVED: the row's padding is an authored integer (14), the mark's box is an
   authored integer (14), and the avatar is now `width: 40px` with `flex: 0 0 auto` - the
   fix above REMOVED the shrink that was producing the 42.36 / 46.05 fractions. So the
   avatar's leading edge is exactly 14 and the mark's far edge is exactly 14: ADJACENCY IS
   EXACT BY CONSTRUCTION, not lucky - the same standard the roundness fix is held to.
   ⭐ And the belt to that brace: THE 14px BOX IS INVISIBLE. It paints nothing outside the
   8px `::before`. If a fractional device-pixel ratio ever smeared the boundary, nothing
   visual happens - the only visible element is the dot, and it has 6px of clearance either
   way. The worst case of zero tolerance is an invisible hit box sharing a sub-pixel with an
   avatar edge, which nobody can see or feel.
   ⛔ 14 ASSUMES the platform's 8px sits on THIS element, not on
   `.portal-notification-item`. If it sits on the item, these 14px ADD to it and the avatar
   lands at 22 - all three defects still fixed, but loosely (mark clearance 8, dot 14, text
   at 74, text width -11.64 at 390). The render check reads the avatar's leading edge and
   will say which. The remedy, SPECIFIED AND NOT APPLIED: `padding-inline-start: 0` on
   `.portal-notification-item`. Not pre-paid, because it may not be needed and zeroing the
   item's inline padding could full-bleed the row's `::after` hairline - an unrequested
   change to something already approved.
   ⛔ No colour. Nothing here paints. */
body.ag-face:has(.portal-home-grid) #portal-mobile-notification .portal-notification-item-wrap {
  padding-inline-start: 14px !important;
}

/* ⚠️ FINDING, NOT A CHANGE - the mark's box, flagged 2026-10-02 for a ruling later.
   The mark box on THIS host went 8x8 -> 14x14 on 2026-10-01, the same day as the avatar
   un-hide, and it GREW ROW 3 BY 3px (65 -> 68). Row height is rhythm, so a rhythm change
   shipped as a side effect of a mark-geometry change.
   ✅ CORRECTION, recorded rather than silently replaced: this finding was first written up
   on the premise that the 14's rationale was "not documented anywhere" - presumably a
   hit-target intent, unrecorded. THAT PREMISE WAS WRONG. The rationale is documented three
   times over:
     - 14x14 on `.notification-read-status` is in BOTH approved anchors (2026-09-11 and
       2026-09-13), so it is an approved box - on the DRAWER.
     - `shipping/rehost-c5/REHOST_C5.md` records the control as natively "a 14x14
       `<button>`", so 14 is the element's own size, not a hit target we invented.
     - This host's 2026-10-01 rewrite states its own reason - it mirrored the drawer's
       two-half treatment, "MIRROR BOTH HALVES OR NEITHER" (see the rule below).
   ⛔ So the 14 is NOT undocumented. What is undocumented is the CONSEQUENCE: nothing
   records that mirroring the drawer's box onto this host would move a row height.
   ⛔ DO NOT NARROW IT TO 8px. It was proposed (`proof/row_rhythm_avatars_2026-10-01.txt`,
   P3) and is refused on this basis: 8px would DEVIATE FROM BOTH APPROVED ANCHORS AND FROM
   THE PLATFORM'S NATIVE BUTTON SIZE. 14 is the element's own size, so narrowing it is not
   tidying our own number - it is overriding the platform's, in a dimension two approved
   states already carry.
   ⚠️ An earlier framing of this refusal - "a touch target is worth more than the padding
   it costs" - is WITHDRAWN as misleading: it implied we had invented a 14px hit target and
   were choosing to keep it. We did not invent it. The padding rule above also makes the
   trade moot, since it meets both of the owner's criteria without touching this box. */
/* ---------- the row's avatar ---------- */
/* ⭐ ROUND BY CONSTRUCTION, not by a width that happens to look square at one size.
   THE DEFECT (measured on A, 2026-10-01, CHROMIUM figures): the frame came out 42.36x50
   at 390 and 46.05x50 at 768 - aspect 0.847 and 0.921 - while the image inside stayed
   40x40. So the ROW was compressing the FRAME: `flex-shrink: 1` doing exactly what it is
   told, plus the default cross-axis stretch giving the 50. Those two are the cause, so
   those two are what the first declarations remove. A hardcoded width tuned at 390 would
   still be a rectangle at 768 - that is the patch this is not.
   ⚠️ The WebKit pair (42.23 / 46.02) is PROVISIONAL and nothing here rests on it. A's
   pages fetch Google Fonts, and WebKit on the measuring machine fails those on a
   certificate error while still reporting the fonts as loaded, so its TEXT metrics can
   silently be fallback metrics - and that DOES reach a flex item's width, through its
   siblings. It does not reach these values: none is derived from a WebKit figure, and
   `flex: 0 0 auto` severs the coupling outright - once the frame cannot shrink, its box
   stops depending on the row's text in either engine.
   ⚠️ `aspect-ratio` is what makes it square at EVERY width rather than at one. It is the
   sheet's own doctrine for the card (§ 4b: "16:9 by aspect-ratio, never a fixed height"),
   applied here at 1/1 and paired with `height: auto` the same way - a specified height
   would make the ratio inert, which is why that pair travels together.
   ⭐ 40px is not a new number: it is the image's own intrinsic box, measured. The frame is
   being told to stop deforming it, not to resize it.
   ⛔ The radius is NOT an ADR-017 breach. ADR-017 is the brand's CARD shape - radius 0 on
   cards, chips and scrollbar thumbs - and this is a portrait frame. The sheet already
   draws its round marks round: 50% on the nav toggle's ring and dot, 9999px on the gold
   unread dot below. The owner's word here was "round avatar".
   ⛔ No colour. Nothing in this rule paints, and the dot keeps var(--agf-gold).
   ⚠️ `align-self` is the item-level counterpart of the `align-items: center` this sheet
   already uses; it is on the ITEM on purpose, because the row's own alignment is the
   approved row rhythm and is not ours to move.
   ⚠️ !important only to match this section, where every declaration carries it. The
   platform sheet is not in this release directory, so whether ITS avatar declarations are
   !important is UNVERIFIED here - if they are not, this rule would win on specificity
   alone, (1,3,1) against anything class-based. */
body.ag-face:has(.portal-home-grid) #portal-mobile-notification .notification-avatar-wrap {
  flex: 0 0 auto !important;
  align-self: center !important;
  width: 40px !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}
/* ⛔ THE PHONE'S UNREAD MARK - rewritten 2026-10-01. This rule used to read
   `background-color: #EEF0F3 !important;` and THAT was the owner's "weired empty white
   square": #EEF0F3 is rgb(238,240,243), exactly what the tester measured on the popup at
   8x8 with no radius. We were painting it. It looks like a batch recolour that swept this
   element in with the popup's ink-coloured text and dividers below, treating the unread
   mark's HOST as if it were type.
   ⭐ The drawer never had the problem because our drawer rule neutralises the platform's
   box (transparent, no border, no shadow) and draws the mark in a ::before. The popup had
   the first half missing and the second half absent - so the box showed and nothing drew.
   ⛔ MIRROR BOTH HALVES OR NEITHER: the mark alone over a painted box is a gold bar
   inside a white square, which is worse than the square. */
body.ag-face:has(.portal-home-grid) #portal-mobile-notification .notification-read-status {
  position: absolute !important;
  inset-inline-start: 0 !important;
  top: 11px !important;
  width: 14px !important;
  height: 14px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* ⭐ THE PHONE MARK IS SWITCHABLE IN ONE EDIT - the owner is choosing from a render and
   neither answer is pre-empted. The three declarations below change together.
     BAR  (as shipped on the desktop, approved):  width: 5px;  height: 7px;  no radius
     DOT  (the PM's recommendation, unanswered):  width: 8px;  height: 8px;  border-radius: 9999px
   ✅ RULED by the owner 2026-10-01 ("sure"): the PHONE list carries the GOLD DOT.
   ⛔ The DESKTOP 5x7 bar is a different rule and is NOT touched by this. */
body.ag-face:has(.portal-home-grid) #portal-mobile-notification .notification-read-status.unread::before {
  content: "" !important;
  position: absolute !important;
  inset-inline-start: 0 !important;
  top: 3px !important;
  width: 8px !important;                  /* BAR: 5px */
  height: 8px !important;                 /* BAR: 7px */
  background: var(--agf-gold) !important;
  border-radius: 9999px !important;       /* BAR: remove this line */
}
body.ag-face:has(.portal-home-grid) #portal-mobile-notification .notification-content a,
body.ag-face:has(.portal-home-grid) #portal-mobile-notification strong a {
  color: #EEF0F3 !important;
}
body.ag-face:has(.portal-home-grid) #portal-mobile-notification .notification-subtitle::after {
  background-color: #EEF0F3 !important;
}

/* Menu toggle: stays shown while the nav is open; approved rest, hover and focus colours. */
@media not all and (min-width: 1026px) {
  /* REST: #AAACB0 is an APPROVED value (see this section's heading) and is left as it is.
     ⛔ Not rewritten as a relationship: our ink over our ground lands on rgb(168,173,174)
     at 70%, which would MOVE an approved colour by a few units per channel for no gain. */
  body.ag-face:has(.portal-home-grid) .sd-portal-navigation-toggle {
    display: inline-flex !important;
    color: #AAACB0 !important;
  }
  /* ⛔ SUPERSEDED 2026-10-01. The line here read: "sealed --ph-gold (#F2B036),
     deliberately not --agf-gold (#FFC000)." The owner ruled: "just use brand gold if its
     so complicated." So the retired gold is gone and this is the brand token, which is
     also the relationship rather than a pasted hex.
     ⭐ If a DIMMED tone is wanted instead, it is one edit - the documented deeper-gold
     relationship is brand gold at 61% over the ground (the lesson's rgb(158,120,4), per
     the brand audit and the owner's 2026-09-30 crumb ruling):
       color: color-mix(in oklab, var(--agf-gold) 61%, var(--agf-ground)) !important;
     Change the percentage, never three hexes. */
  body.ag-face:has(.portal-home-grid) .sd-portal-navigation-toggle:hover,
  body.ag-face:has(.portal-home-grid) .sd-portal-navigation-toggle:focus-visible {
    color: var(--agf-gold) !important;
  }
  /* spec: mockup portal-space.html:363 (never shipped) */
  /* ✅ THE FOCUS RING - RULED BY THE OWNER 2026-10-01 ("sure"). His ruling, not a
     recommendation accepted: the lane lead's own earlier choice of this value had been
     WITHDRAWN, and it is his word that settles it. The reservation in course-space
     BUILD.md ("This is for Dor, not for a builder to quietly close") is discharged.
     ⭐ Declared as the RELATIONSHIP, not a hex: brand gold at 61% over our ground is the
     documented deeper-gold tone (the lesson's rgb(158,120,4), brand audit + his
     2026-09-30 crumb ruling). To change it, change the percentage. */
  body.ag-face:has(.portal-home-grid) .sd-portal-navigation-toggle:focus-visible {
    outline: 1px solid color-mix(in oklab, var(--agf-gold) 61%, var(--agf-ground)) !important;
    outline-offset: 2px !important;
  }
}

/* crown fill + skip-link font. */
:where(body).ag-face:where(:has(.portal-home-grid)) .icon-crown,
:where(body).ag-face:where(:has(.portal-home-grid)) .icon-crown * {
  fill: #9F7230 !important;
}
:where(body).ag-face:where(:has(.portal-home-grid)) {
  font-family: 'Assistant', 'Arial Hebrew', system-ui, -apple-system, sans-serif !important;
}
/* Portal home colour block — screen-owned (Dor: "each screen has its own color block"). Re-points SureDash palette tokens; literals, not --ph-*. */
body:has(.portal-home-grid){
  --portal-global-color-1: oklch(0.172 0.007 258);
  --portal-global-color-2: oklch(0.955 0.004 258);
  --portal-global-color-3: oklch(0.955 0.004 258);
  --portal-global-color-4: oklch(0.955 0.004 258);
  --portal-global-color-5: oklch(0.100 0.006 258);
  --portal-global-color-6: oklch(0.100 0.006 258);
  --portal-global-color-7: oklch(0.135 0.007 258);
  --portal-global-color-8: oklch(0.190 0.006 258);
  --portal-global-color-9: oklch(0.745 0.006 258);

  --portal-text-color:                 oklch(0.955 0.004 258);
  --portal-heading-color:              oklch(0.955 0.004 258);
  --portal-link-color:                 oklch(0.955 0.004 258);
  --portal-link-active-color:          oklch(0.955 0.004 258);
  --portal-primary-color:              oklch(0.100 0.006 258);
  --portal-secondary-color:            oklch(0.100 0.006 258);
  --portal-content-bg-color:           oklch(0.100 0.006 258);
  --portal-border-color:               oklch(0.190 0.006 258);
  --portal-accent-color:               oklch(0.172 0.007 258);
  --portal-placeholder-color:          oklch(0.580 0.007 258);
  --portal-text-secondary-color:       #AAACB0 !important;
  --portal-text-tertiary-color:        #787A7F !important;
  --portal-text-light-secondary-color: oklch(0.745 0.006 258);
  --portal-text-dark-secondary-color:  oklch(0.745 0.006 258);
  --portal-text-light-tertiary-color:  oklch(0.580 0.007 258);
  --portal-text-dark-tertiary-color:   oklch(0.580 0.007 258);
  --portal-secondary-foreground-color: oklch(0.955 0.004 258);
  --portal-primary-button-bg-color:    oklch(0.172 0.007 258);
  --portal-primary-button-color:       oklch(0.955 0.004 258);
  --portal-primary-button-hover-bg-color: oklch(0.172 0.007 258);
  --portal-primary-button-hover-color:    oklch(0.955 0.004 258);
  --portal-secondary-button-bg-color:  oklch(0.135 0.007 258);
  --portal-secondary-button-color:     oklch(0.955 0.004 258);
  --portal-secondary-button-hover-bg-color: oklch(0.172 0.007 258);
  --portal-secondary-button-hover-color:    oklch(0.955 0.004 258);
  --portal-notification-icon-color:    oklch(0.745 0.006 258);
}
@media (min-width: 1026px){
  body:has(.portal-home-grid){
    --portal-home-grid-width: 1005px !important;
  }
}

/* 9 - THE FAMILY, HELD AT THE LEAF
   ⛔ INVISIBLE ON THE FIXTURE. The fixture's --portal-font-family is Assistant,
   which is also ours, so nothing below shows until the token is forced to the
   owner's live value (Rubik). Verified that way, never by eye on the fixture.

   SureDash ships, at (0,1,0) and NOT important:
     .portal-container, .portal-content, .portal-content *, .portal-user-picker,
     .sd-modal-dialog { font-family: var( --portal-font-family ), sans-serif }
   ⚠️ It reaches the WRAPPERS and every descendant, so a direct platform
   declaration sits on each leaf. A direct declaration beats an inherited one
   WHATEVER ITS IMPORTANCE - so our family on a container, !important or not,
   cannot reach the text inside it. § 1b, § 2, § 3 and the M-series each name
   their own element for exactly this reason; these two rules close the rest.

   Order matters. The host first, so there is something true to inherit FROM:
   without it a bare `inherit` picks the PLATFORM's family up off the wrapper
   and is worse than the defect. Then the leaves, handed back to inheritance. */
body.ag-face {
  font-family: var(--agf-sans) !important;
}
/* ⭐ :where() holds the inner list at zero specificity, so the weight is the
   outer scope's alone: body.ag-face (0,1,1) + :not(...) (0,0,1) = (0,1,2). That
   clears the platform's (0,1,0) with no !important and no arms race.
   ⛔ DELIBERATELY NOT !important, and it is the one rule on this sheet that
   isn't. It is a blanket descendant selector; the one thing it must never do is
   outrank a declaration someone meant. Every font-family above is !important at
   (0,2,1) or higher, so all of them keep their say - the greeting stays serif.
   ⛔ The :not() list is MEASURED, not copied. code/pre/kbd/samp are the generic
   monospace elements. .jodit-source and .ace_editor are this screen's real ones:
   the post editor's source view declares monospace at (0,1,0), not important,
   which this rule would otherwise beat and silently strip. They sit inside
   :where() so guarding them costs no specificity. */
body.ag-face :where(.portal-container, .portal-content, .portal-content *, .portal-user-picker, .sd-modal-dialog):not(code, pre, kbd, samp, :where(.jodit-source, .jodit-source *, .ace_editor, .ace_editor *)) {
  font-family: inherit;
}
