/*
 * SalafiMate design system (Task 53), from the owner's approved mockups and
 * claude/Task53_DesignTokens_FromApprovedMockups_2026-10-27.md.
 * Loaded on every frontend page after the vendor theme, so these rules win.
 * The admin area is not restyled.
 */

/* 1. Font: Plus Jakarta Sans, self-hosted (variable, weights 200-800; OFL-1.1, see
      ../fonts/plus-jakarta-sans/OFL.txt). No Google Fonts request: that would send
      visitors' IP addresses to Google before cookie consent. */
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-display:swap;font-weight:200 800;
  src:url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2-variations'),url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-display:swap;font-weight:200 800;
  src:url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations'),url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* 2. Tokens. The colour names (--sm-primary and the rest) are defined once, in sm-tokens.css ("Legacy names"),
      pointing at the guide's tokens. This block keeps the font, radius and size names, and maps the vendor theme's
      own variables (--primary, --secondary..., which come from admin settings) onto the guide's tokens. */
:root{
  --sm-font:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --sm-mono:ui-monospace,Menlo,Consolas,monospace;
  --sm-radius-field:10px; --sm-radius-btn:12px; --sm-radius-card:16px; --sm-radius-pill:999px;
  --sm-h-btn:52px; --sm-h-btn-sm:48px; --sm-h-field:48px; --sm-h-header:60px;
  --primary:var(--brand-700) !important; /* beats aiz-core.css, which forces the vendor pink with !important (Run 2 item 3) */ --hov-primary:var(--brand-800); --soft-primary:rgba(47,93,80,.12);
  --secondary:var(--ink-700); --soft-secondary:rgba(79,87,79,.12); /* R-265: ink-700 */
}
@media (min-width:768px){:root{--sm-h-header:68px}}

/* 3. Base typography and colours. */
body{font-family:var(--sm-font);font-weight:400;color:var(--sm-ink);background-color:var(--sm-page);line-height:1.5}
/* R-265 (owner 12 Nov): the cream page (surface-50) behind every member, sign-in and sign-up page. The member layout's wrapper
   and some old full-width sections carried Bootstrap's .bg-white (!important), so the page behind the cards was white. White
   (surface-0) stays for the header, cards, fields, dialogs and dropdowns; the footer band is surface-50. */
body .aiz-main-wrapper,body .aiz-main-wrapper.bg-white{background-color:var(--surface-50)!important}
body .aiz-main-wrapper section.bg-white,body .aiz-main-wrapper main.bg-white{background-color:transparent!important}
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:var(--sm-font);color:var(--sm-ink)}
input,select,textarea,button,.btn{font-family:var(--sm-font)}
a{color:var(--sm-primary)}
a:hover,a:focus{color:var(--sm-primary-hover)}
code,kbd,samp,.sm-mono{font-family:var(--sm-mono)}
.text-muted{color:var(--sm-muted)!important}
.text-primary{color:var(--sm-primary)!important}
.bg-primary{background-color:var(--sm-primary)!important}
::placeholder{color:var(--sm-placeholder);opacity:1}
:focus-visible{outline:2px solid var(--sm-primary);outline-offset:2px}

/* 4. Buttons (signup artboard: 52 px primary, 48 px small, 12 px radius, 16 px / 700). */
.btn{border-radius:var(--sm-radius-btn);font-weight:700;font-size:16px;line-height:1.25;min-height:44px;padding:.7rem 1.25rem}
.btn-lg{min-height:var(--sm-h-btn);font-size:16px;padding:.85rem 1.5rem}
.btn-sm{min-height:40px;font-size:14px;padding:.5rem .9rem;border-radius:10px}
.btn-primary,.btn-primary:not(:disabled):not(.disabled),.bg-primary-grad{background:var(--sm-primary)!important;border:1px solid var(--sm-primary);color:var(--surface-0)}
.btn-primary:hover,.btn-primary:focus,.btn-primary:not(:disabled):not(.disabled):active{background:var(--sm-primary-hover)!important;border-color:var(--sm-primary-hover);color:var(--surface-0)}
.btn-outline-primary,.btn-outline-secondary{background:var(--surface-0);color:var(--sm-primary);border:1.5px solid var(--sm-primary)}
.btn-outline-primary:hover,.btn-outline-primary:focus,.btn-outline-secondary:hover,.btn-outline-secondary:focus{background:var(--brand-200);color:var(--brand-700);border-color:var(--brand-700)} /* R-267: the secondary button's hover (design system: brand-200) */
.btn-soft-primary{background:var(--sm-tint);color:var(--sm-primary)}
.btn-soft-primary:hover,.btn-soft-primary:focus{background:var(--sm-primary);color:var(--surface-0)}
.btn-success{background:var(--sm-success);border-color:var(--sm-success);color:var(--surface-0)}
.btn-danger{background:var(--sm-error);border-color:var(--sm-error);color:var(--surface-0)}
.btn-link{color:var(--sm-primary);font-weight:600;text-decoration:underline}
.btn:disabled,.btn.disabled{background:var(--sm-neutral)!important;color:var(--sm-disabled-ink)!important;border:1px solid var(--sm-disabled-line)!important;opacity:1}
.btn:focus-visible{outline:2px solid var(--sm-primary);outline-offset:2px;box-shadow:none}
.text-primary-grad{background:none!important;-webkit-background-clip:border-box!important;-webkit-text-fill-color:currentColor!important;color:var(--sm-primary)!important}

/* 5. Form fields (48 px, 1 px field border, 10 px radius, 16 px text; error = 2 px red). */
.form-control{height:var(--sm-h-field);border:1px solid var(--sm-field-border);border-radius:var(--sm-radius-field);padding:0 16px;font-size:16px;color:var(--sm-ink);background-color:var(--surface-0)}
textarea.form-control{height:auto;min-height:96px;padding:12px 16px;line-height:1.5}
select.form-control[multiple],select.form-control[size]{height:auto;padding:8px 16px}
.form-control:focus{border-color:var(--sm-primary);box-shadow:0 0 0 3px rgba(47,93,80,.25);color:var(--sm-ink)}
.form-control:disabled,.form-control[readonly]{background-color:var(--sm-neutral);color:var(--sm-ink-2)}
.form-control-sm{height:40px;font-size:15px}
.form-control.is-invalid,.was-validated .form-control:invalid{border:2px solid var(--sm-error)}
.invalid-feedback,.text-danger{color:var(--sm-error)!important}
.invalid-feedback{font-size:14px;font-weight:600}
.form-label,.col-form-label,.form-group>label{font-size:15px;font-weight:600;color:var(--sm-ink)}
.form-text,small.form-text{color:var(--sm-muted)}
.input-group-text{border:1px solid var(--sm-field-border);background:var(--sm-neutral);color:var(--sm-ink-2);border-radius:var(--sm-radius-field)}
input[type=checkbox],input[type=radio]{accent-color:var(--sm-primary)}
.bootstrap-select>.dropdown-toggle,.bootstrap-select>.dropdown-toggle.btn-light{height:var(--sm-h-field);min-height:var(--sm-h-field);border:1px solid var(--sm-field-border)!important;border-radius:var(--sm-radius-field);background:var(--surface-0)!important;color:var(--sm-ink)!important;font-weight:400;font-size:16px}

/* 6. Cards (member pages: white, 1 px line border, 16 px radius, 16-18 px padding, no drop shadow).
   Border colour and width stay overridable by the utility classes (.border-2, .border-primary). */
.card{background-color:var(--sm-surface);border:1px solid var(--line-300);border-radius:var(--sm-radius-card)!important;box-shadow:none}
.card .card-header{background-color:transparent;border-bottom:1px solid var(--sm-line-soft);border-radius:var(--sm-radius-card) var(--sm-radius-card) 0 0;padding:16px 20px}
.card .card-body{padding:20px}
.card .card-footer{background-color:transparent;border-top:1px solid var(--sm-line-soft);border-radius:0 0 var(--sm-radius-card) var(--sm-radius-card);padding:16px 20px}
.card .card-header h5,.card .card-header .h5,.card .card-header h6,.card .card-header .h6,.card-title{font-size:17px;font-weight:700;color:var(--sm-ink)}

/* 7. Badges (pill, 12 px / 700; blue, green, amber, red, grey). Text badges only: the vendor's
   dot and circle badges (notification counts, online dots) keep their fixed size. */
.badge:not(.badge-dot):not(.badge-circle){width:auto;height:auto;min-height:22px;padding:4px 12px;border-radius:var(--sm-radius-pill);font-size:12px;font-weight:700;line-height:1.35}
.badge:not(.badge-dot):not(.badge-circle).badge-primary,.badge:not(.badge-dot):not(.badge-circle).badge-info,.badge:not(.badge-dot):not(.badge-circle).badge-soft-primary,.badge:not(.badge-dot):not(.badge-circle).badge-soft-info{background-color:var(--sm-tint)!important;color:var(--sm-primary)}
.badge:not(.badge-dot):not(.badge-circle).badge-success,.badge:not(.badge-dot):not(.badge-circle).badge-soft-success{background-color:var(--sm-success-tint)!important;color:var(--sm-success)}
.badge:not(.badge-dot):not(.badge-circle).badge-warning,.badge:not(.badge-dot):not(.badge-circle).badge-soft-warning{background-color:var(--sm-warn-tint)!important;color:var(--sm-warn-ink)!important}
.badge:not(.badge-dot):not(.badge-circle).badge-danger,.badge:not(.badge-dot):not(.badge-circle).badge-soft-danger{background-color:var(--sm-error-tint)!important;color:var(--sm-error)}
.badge:not(.badge-dot):not(.badge-circle).badge-secondary,.badge:not(.badge-dot):not(.badge-circle).badge-light,.badge:not(.badge-dot):not(.badge-circle).badge-dark,.badge:not(.badge-dot):not(.badge-circle).badge-gray,.badge:not(.badge-dot):not(.badge-circle).badge-soft-secondary{background-color:var(--sm-line-soft)!important;color:var(--sm-ink-2)}
.badge-dot.badge-primary,.badge-circle.badge-primary{background-color:var(--sm-primary)!important;color:var(--surface-0)}

/* 8. Header (artboards Main, BrowseDesktop, DashLiveFree: white, 1 px line under it, no shadow;
   nav links 15 px / 600 in ink-2, the current page a tint pill with primary text, 10 px radius). */
.top-navbar{border-bottom:1px solid var(--sm-line)!important}
.top-navbar .opacity-60{opacity:1!important;color:var(--sm-muted)!important;font-size:14px}
.top-navbar a.opacity-60:hover{color:var(--sm-primary)!important}
.aiz-header{box-shadow:none!important;border-bottom:1px solid var(--sm-line)!important;background-color:var(--sm-surface)!important}
.aiz-header .aiz-navbar li{padding-bottom:0!important;background:transparent!important;border:0!important;margin:2px 4px}
.aiz-header .aiz-navbar .nav-link{text-transform:none!important;font-size:15px!important;font-weight:600!important;color:var(--sm-ink-2);background-color:transparent!important;border-radius:10px;padding:12px 16px!important;min-height:44px}
.aiz-header .aiz-navbar .nav-link .text-primary-grad{color:inherit!important}
@media (min-width:992px){.aiz-header .aiz-navbar li{align-items:center}}
.aiz-header .aiz-navbar .nav-link:hover{color:var(--sm-primary)}
.aiz-header .aiz-navbar li.bg-primary-grad .nav-link{background-color:var(--sm-tint)!important;color:var(--sm-primary)}
.aiz-header>.border-top{border-top:1px solid var(--sm-line-soft)!important}
.aiz-header>.border-top .list-inline-item>a{border-radius:10px;padding:12px 16px!important;margin:8px 0;font-size:15px;font-weight:600;color:var(--sm-ink-2)!important;opacity:1!important}
.aiz-header>.border-top .list-inline-item>a.text-primary-grad{background:var(--sm-tint)!important;color:var(--sm-primary)!important}

/* Mobile bottom navigation (68 px, white, top border; 22 px icon over a 12 px / 600 label; muted, active primary). */
.aiz-mobile-bottom-nav{border-top:1px solid var(--line-300)!important;border-radius:0!important}
.aiz-mobile-bottom-nav a{min-height:56px;color:var(--sm-muted)!important}
.aiz-mobile-bottom-nav .opacity-60{opacity:1!important}
.aiz-mobile-bottom-nav .fs-10{font-size:12px!important;font-weight:600!important}
.aiz-mobile-bottom-nav .fs-18{font-size:22px!important}
.aiz-mobile-bottom-nav .opacity-100{color:var(--sm-primary)!important}

/* 9. Footer. No artboard shows one: it keeps a dark background (the uploaded footer logo is made
   for one) in the palette's dark blue, brand-800 (the admin sidebar's old blue is retired). White headings 13.81:1,
   links brand-200 10.97:1 (were primary-on-dark headings at 1.91:1). */
.aiz-footer{background-color:var(--brand-800)!important;color:var(--surface-0)}
.aiz-footer h4,.aiz-footer .text-primary{color:var(--surface-0)!important}
.aiz-footer .border-primary{border-color:rgba(221,233,226,.25)!important} /* R-265: brand-200 */
.aiz-footer .opacity-60{opacity:1!important;color:var(--brand-200)!important}
.aiz-footer a.text-reset:hover,.aiz-footer a.text-reset:focus{color:var(--surface-0)!important;text-decoration:underline}

/* 10. Public pages (home, /before-you-start, /register, /login, /packages, /help).
   Page titles: 26 px / 800 in ink on mobile, 32 px on desktop (the hero keeps its own white title). */
.aiz-main-wrapper h1:not(.sm-hero-title):not(.sm-h1-compact){font-size:26px!important;line-height:1.25;font-weight:800!important;letter-spacing:-.3px;color:var(--sm-ink)!important}
@media (min-width:768px){.aiz-main-wrapper h1:not(.sm-hero-title):not(.sm-h1-compact){font-size:32px!important;line-height:1.2;letter-spacing:-.5px}}
@media (max-width:767.98px){.aiz-main-wrapper .container{padding-left:20px;padding-right:20px}}
.aiz-main-wrapper{background-color:var(--sm-page)}

/* Sign-up "I'm a sister / I'm a brother" tiles: option tiles (1 px field border; chosen = 2 px primary on tint). */
.seeking-card .seeking-option{border:1px solid var(--sm-field-border)!important;border-radius:12px!important;background:var(--sm-surface);min-height:56px}
.seeking-card .seeking-option:hover{border-color:var(--sm-primary)!important}
.seeking-card .seeking-radio:checked+.seeking-option{border:2px solid var(--sm-primary)!important;background:var(--sm-tint)!important;color:var(--sm-primary)}

/* /packages: plan cards (Upgrade artboard: white, 1 px line, 16 px radius; price 30 px / 800). */
.sm-plan{background:var(--sm-surface);border:1px solid var(--sm-line);border-radius:var(--sm-radius-card);margin:0 8px;height:100%}
.sm-plan h5{font-size:18px!important;font-weight:700!important;color:var(--sm-ink)}
.sm-plan .display-4{font-size:30px!important;font-weight:800!important;letter-spacing:-.5px;color:var(--sm-ink)}
.sm-plan .text-success{color:var(--sm-success)!important}
.aiz-carousel .slick-dots li button{background:var(--sm-track)!important}
.aiz-carousel .slick-dots li.slick-active button{background:var(--sm-primary)!important}

/* /help (HelpDesktop artboard): questions as white boxes, the open one with a 2 px primary border;
   section names 13 px uppercase in muted; "Still need help?" a primary card with a white button. */
.help-article{background:var(--sm-surface);border:1px solid var(--line-300)!important;border-radius:12px!important;padding:0!important}
.help-article>summary{display:flex;align-items:center;min-height:52px;padding:12px 16px;font-size:16px;font-weight:600;color:var(--sm-ink)}
.help-article>div{padding:0 16px 16px!important;color:var(--sm-ink)!important}
.help-article[open]{border-color:var(--sm-primary)!important;box-shadow:inset 0 0 0 1px var(--sm-primary)} /* T-824: same 1px border open and closed, so nothing moves; the extra weight is an inset shadow */
.sm-cta p a:not(.btn){color:var(--surface-0)!important;text-decoration:underline!important} /* T-824: links in the blue "Still need help?" box */
/* T-826b: the "Liked ✓" status (profile and Browse cards), the "Walee verified" badge green; a status, not a button */
.sm-liked-status{display:flex;align-items:center;justify-content:center;width:100%;height:44px;margin:0;background:var(--success-100);border:0;border-radius:12px;color:var(--success-700);font-size:15px;font-weight:600;cursor:default}
.sm-liked-status.sm-ntf-status{background:var(--sm-neutral);border:1px solid var(--sm-line);color:var(--sm-ink-2)} /* R-242: Not taken further is neutral grey, never green */
/* T-826b: the open question's highlight fades in and out (200 ms); instant with reduced motion (R-80) */
.help-article{transition:border-color .2s ease,box-shadow .2s ease}
@media (prefers-reduced-motion: reduce){.help-article{transition:none}}
.sm-help-back-link{text-decoration:none!important}.sm-help-back-link:hover,.sm-help-back-link:focus-visible{text-decoration:underline!important} /* T-824: "Topics" at the end of each section, like the topic links */
.sm-help-cat{font-size:13px!important;letter-spacing:.06em;text-transform:uppercase;font-weight:800!important;color:var(--sm-muted)}
.sm-cta{background:var(--sm-primary)!important;border:0!important;border-radius:14px!important;color:var(--surface-0)}
.sm-cta h2,.sm-cta .text-muted{color:var(--surface-0)!important}
.sm-cta .btn-primary,.sm-cta .btn-primary:not(:disabled):not(.disabled){background:var(--surface-0)!important;color:var(--sm-primary)!important;border-color:var(--surface-0)}
.sm-cta .btn-primary:not(:disabled):not(.disabled):hover,.sm-cta .btn-primary:not(:disabled):not(.disabled):focus{background:var(--sm-tint)!important;color:var(--sm-primary-hover)!important}

/* 11. Member area (dashboard, browse, profile, My Likes, settings; artboards DashLiveFree, BrowseDesktop,
   ProfileDesktop, HeartsFree, Settings). The vendor member panel keeps its layout; it takes the design's
   surfaces: white cards on the page background, the side menu as a white card with tint "on" pills. */
.aiz-user-sidenav{background:var(--sm-surface);border:1px solid var(--sm-line);border-radius:var(--sm-radius-card)!important}
.aiz-user-sidenav .aiz-side-nav-list .aiz-side-nav-link{border-radius:10px;margin:2px 12px;padding:12px 16px;min-height:44px;align-items:center;font-size:15px;font-weight:600;color:var(--sm-ink-2)}
.aiz-user-sidenav .aiz-side-nav-list .level-2 .aiz-side-nav-link{padding-left:40px;font-size:14px}
.aiz-user-sidenav .aiz-side-nav-list .aiz-side-nav-link .aiz-side-nav-icon,.aiz-user-sidenav .aiz-side-nav-list .aiz-side-nav-link:hover .aiz-side-nav-icon{color:inherit}
.aiz-user-sidenav .aiz-side-nav-list .aiz-side-nav-link:hover{background:var(--sm-page);color:var(--sm-primary)}
.aiz-user-sidenav .aiz-side-nav-list .aiz-side-nav-link.active{background:var(--sm-tint);color:var(--sm-primary)}

/* Tables (My Likes, payment history, tickets): muted 13 px headings, rows split by the soft line. */
.aiz-main-wrapper .table th{color:var(--sm-muted);font-size:13px;font-weight:700;border-top:0;border-bottom:1px solid var(--sm-line)}
.aiz-main-wrapper .table td{color:var(--sm-ink);border-top:1px solid var(--sm-line-soft);vertical-align:middle}
.list-group-item{border-color:var(--sm-line-soft)}

/* Quiet and danger buttons; pill-shaped vendor buttons take the design radius. */
.btn-light{background:var(--sm-surface);color:var(--sm-ink-2);border:1px solid var(--sm-disabled-line)}
.btn-light:hover,.btn-light:focus{background:var(--sm-neutral);color:var(--sm-ink)}
.btn-soft-danger{background:var(--sm-error-tint)!important;color:var(--sm-error)!important}
/* A8 (dry run #22): red only on a real mouse hover or keyboard focus, never a stuck touch hover or a click focus left on the next row */
@media (hover:hover){.btn-soft-danger:hover{background:var(--sm-error)!important;color:var(--surface-0)!important}}
.btn-soft-danger:focus-visible{background:var(--sm-error)!important;color:var(--surface-0)!important}
.btn-warning{background:var(--sm-primary);border-color:var(--sm-primary);color:var(--surface-0)}
.btn-warning:hover,.btn-warning:focus{background:var(--sm-primary-hover);border-color:var(--sm-primary-hover);color:var(--surface-0)}
.round-btn{border-radius:var(--sm-radius-btn)!important}

/* Messages: tinted boxes, all 5.5:1 or better. "Needs attention" (warning) is the amber card. */
.alert{border-radius:12px;font-size:15px;padding:16px 16px}
.alert-warning{background:var(--sm-attention-fill);border:2px solid var(--sm-attention-line);color:var(--sm-ink)}
.alert-info{background:var(--sm-tint);border:1px solid var(--line-200);color:var(--sm-primary-hover)}
.alert-success{background:var(--sm-success-tint);border:0;color:var(--sm-success)}
.alert-danger{background:var(--sm-error-tint);border:0;color:var(--danger-700)}
.alert-light,.alert-secondary{background:var(--sm-line-soft);border:1px solid var(--sm-line);color:var(--sm-ink-2)}

/* Dialogs. */
.modal-content{border:0;border-radius:var(--sm-radius-card)}
.modal-header{border-bottom:1px solid var(--sm-line-soft)}
.modal-footer{border-top:1px solid var(--sm-line-soft)}
.modal-title{color:var(--sm-ink);font-weight:700}

/* 12. Sign-up wizard, kept light (the 5-step rebuild restyles it fully; Task 14 build step 6).
   Steps 1-5 artboards: progress in primary on the line-200 track; option tiles (48 px, 1 px field border,
   chosen = 2 px primary on tint); follow-up questions under a line-200 rule; on desktop one white card,
   20 px radius, 36 px padding. */
.sm-wizard .progress{background-color:var(--sm-track);height:6px;border-radius:3px}
.sm-wizard .progress-bar{background:var(--sm-primary)!important}
.sm-wizard .text-center>.text-muted.small{font-size:14px;font-weight:600;color:var(--sm-muted)!important}
.sm-wizard .card{border-radius:20px!important;overflow:hidden}
.sm-wizard .card>.card-header.bg-primary{border-radius:0;padding:16px 20px;border-bottom:0}
.sm-wizard .card>.card-header h5{color:var(--surface-0);font-size:19px;font-weight:700}
@media (min-width:768px){.sm-wizard .card>.card-body{padding:36px}}
.sm-wizard .form-check-inline{display:inline-flex;align-items:center;gap:12px;min-height:48px;padding:12px 16px;margin:0 8px 8px 0;border:1px solid var(--sm-field-border);border-radius:var(--sm-radius-field);background:var(--sm-surface)}
.sm-wizard .form-check-inline .form-check-input{width:20px;height:20px;margin:0;flex:none}
.sm-wizard .form-check-inline .form-check-label{font-size:15px;color:var(--sm-ink);cursor:pointer}
.sm-wizard .form-check-inline:has(.form-check-input:checked){border:2px solid var(--sm-primary);background:var(--sm-tint);padding:12px 12px}
.sm-wizard .sub-question{border:1px solid var(--line-200);border-radius:var(--radius-md);padding:12px 16px} /* R-482: a pale edge all round for a follow-up question, not a left line */

/* 13. Task 9 mobile pass (360, 390 and 414 px on the public pages).
   Body text 15 px (was 13 px; the design's body is 15-16 px), so "small" text is 12 px, not 10.4 px. */
body{font-size:15px}
/* Stand-alone text links get a 44 px tap height. */
.sm-trust-link,a.link-muted,.aiz-main-wrapper .text-center>a:not(.btn){display:inline-flex;align-items:center;min-height:44px}
/* Carousel dots: 32 px tap area round a 10 px dot. */
.aiz-carousel .slick-dots li button{width:32px!important;height:32px!important;padding:12px!important;background-clip:content-box!important}
/* Sign-up and login checkboxes: 20 px, with a border that meets 3:1 (was 16 px, line-200 at 1.4:1). */
.aiz-checkbox{padding-left:32px;min-height:24px}
.aiz-checkbox .aiz-square-check{width:20px;height:20px;top:0;border:1px solid var(--sm-field-border);border-radius:4px}
.aiz-checkbox input:checked~.aiz-square-check{background-color:var(--sm-primary);border-color:var(--sm-primary)}
.aiz-checkbox input:checked~.aiz-square-check:after{border-color:var(--surface-0)!important}
.aiz-main-wrapper input.form-check-input[type=checkbox],.aiz-main-wrapper input.form-check-input[type=radio]{width:20px;height:20px}
.aiz-main-wrapper .form-check:not(.form-check-inline){padding-left:32px;min-height:24px}
.aiz-main-wrapper .form-check:not(.form-check-inline)>.form-check-input{margin-left:-32px;margin-top:2px}
/* Owner 9 Nov (Safari, Log in): Safari drew the native tick box at its own small size, above the label. Member tick boxes are drawn by the
   site: 20 px, the field border, the brand fill and a white tick when chosen, centred on a 24 px label line, the same in Safari and Chrome. */
.aiz-main-wrapper input.form-check-input[type=checkbox],.sm-report-choice input[type=checkbox]{-webkit-appearance:none;appearance:none;display:inline-grid;place-content:center;width:20px;height:20px;min-width:20px;border:1px solid var(--sm-field-border);border-radius:4px;background:var(--surface-0);cursor:pointer;vertical-align:middle}
.aiz-main-wrapper input.form-check-input[type=checkbox]::before,.sm-report-choice input[type=checkbox]::before{content:"";width:6px;height:11px;border:solid var(--surface-0);border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg);opacity:0}
.aiz-main-wrapper input.form-check-input[type=checkbox]:checked,.sm-report-choice input[type=checkbox]:checked{background:var(--sm-primary);border-color:var(--sm-primary)}
.aiz-main-wrapper input.form-check-input[type=checkbox]:checked::before,.sm-report-choice input[type=checkbox]:checked::before{opacity:1}
.aiz-main-wrapper input.form-check-input[type=checkbox]:focus-visible,.sm-report-choice input[type=checkbox]:focus-visible{outline:0;box-shadow:var(--focus-ring)}
.sm-remember-row .form-check-label{line-height:24px}
/* Mobile header: a "Log in" link for guests (the Main artboard's top bar; the vendor top bar is desktop-only). */
.aiz-navbar>.container{position:relative}
.sm-mobile-login{position:absolute;top:8px;right:20px;display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font-size:15px;font-weight:600;color:var(--sm-primary)}

/* 15. Text wordmark (owner decision 27 Oct; mockups: "SalafiMate" in 800, primary, 20 px mobile / 22 px desktop).
   Replaces the uploaded pink logo image in the header, footer and wizard header. */
.sm-wordmark{display:inline-block;font-family:var(--sm-font);font-weight:800;font-size:20px;line-height:1.2;letter-spacing:-.3px;color:var(--sm-primary);white-space:nowrap;text-decoration:none}
@media (min-width:768px){.sm-wordmark{font-size:22px}}
.sm-wordmark-light{color:var(--logo-cream)} /* R-265: "Salafi" on dark is logo-cream (palette prompt section 4) */
/* R-259 (owner 11 Nov): the two-tone logo. "Mate" is honey-500 on light backgrounds (24px+, decorative) and honey-300 on dark ones */
.sm-wordmark-mate{color:var(--honey-600)} /* R-337 9 */
.sm-wordmark-light .sm-wordmark-mate{color:var(--honey-300)}
a:hover>.sm-wordmark,a:focus>.sm-wordmark{color:var(--sm-primary-hover)}
a:hover>.sm-wordmark .sm-wordmark-mate,a:focus>.sm-wordmark .sm-wordmark-mate{color:var(--honey-600)}
a:hover>.sm-wordmark-light,a:focus>.sm-wordmark-light{color:var(--brand-200)}

/* 14. Initials avatars (owner decision 27 Oct; mockups: initials in a brand-100 circle, primary text, 800). */
.sm-avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border-radius:50%;background:var(--brand-700);color:var(--surface-0);font-family:var(--sm-font);font-weight:800;font-size:15px;line-height:1;letter-spacing:.02em;-webkit-user-select:none;user-select:none;vertical-align:middle}

/* 16. Browse (T-602; Browse and BrowseDesktop mockups). */
.sm-browse-head{min-width:0}
.sm-browse-title{font-family:var(--sm-font);font-weight:800;font-size:24px;line-height:1.25;letter-spacing:-.3px;color:var(--sm-ink);margin:0}
.sm-browse-count{font-size:14px;color:var(--sm-muted);margin:4px 0 0}
.sm-browse-sort select{min-height:44px;border-radius:var(--sm-radius-field,10px);border:1px solid var(--sm-field-border);font-size:15px;min-width:170px}
.sm-browse-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media (min-width:768px){.sm-browse-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-browse-title{font-size:30px;letter-spacing:-.5px}}
@media (min-width:1200px){.sm-browse-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.sm-browse-card{background:var(--sm-surface);border:1px solid var(--line-300);border-radius:var(--sm-radius-card,16px);padding:20px;display:flex;flex-direction:column;gap:12px;min-width:0}
.sm-browse-card-head{display:flex;align-items:center;gap:16px;min-width:0}
.sm-browse-card-who{min-width:0}
.sm-browse-card-name{font-family:var(--sm-font);font-weight:800;font-size:18px;line-height:1.3;margin:0;color:var(--sm-ink)}
.sm-browse-card-name a{color:inherit;text-decoration:none}
.sm-browse-card-name a:hover,.sm-browse-card-name a:focus{color:var(--sm-primary);text-decoration:underline}
.sm-browse-card-place{font-size:14px;color:var(--sm-muted);margin:2px 0 0}
.sm-browse-card-line{font-size:15px;color:var(--sm-ink);margin:0}
.sm-like-btn{margin-top:auto;min-height:44px;width:100%;border-radius:10px;border:1.5px solid var(--sm-primary);background:var(--surface-0);color:var(--sm-primary);font-weight:700;font-size:15px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.sm-like-btn:hover,.sm-like-btn:focus{background:var(--sm-tint);color:var(--sm-primary)}
.sm-like-btn.sm-like-on{background:var(--sm-primary);color:var(--surface-0)}
.sm-like-btn.sm-like-on:hover,.sm-like-btn.sm-like-on:focus{background:var(--sm-primary-hover);color:var(--surface-0)}
.sm-like-btn.sm-like-received,.sm-like-btn.sm-like-received:disabled{background:var(--sm-neutral);border-color:var(--sm-line);color:var(--sm-ink-2);opacity:1}

/* 17. Browse header row and filters (T-602; Browse and BrowseFiltersStd mockups). */
@media (max-width:767.98px){.sm-browse-bar .sm-browse-head{flex:0 0 100%}.sm-browse-bar .sm-browse-sort{margin-left:0!important;padding-left:0!important}}
.sm-filter-btn{min-height:44px;border-radius:999px;border:1px solid var(--sm-field-border);background:var(--surface-0);color:var(--sm-ink);font-weight:600;font-size:14px;padding:0 16px;display:inline-flex;align-items:center;gap:8px;margin-left:8px}
.sm-filter-btn:hover,.sm-filter-btn:focus{border-color:var(--sm-primary);color:var(--sm-primary)}
.sm-filters-title{font-family:var(--sm-font);font-weight:800;font-size:18px;color:var(--sm-ink)}

/* 18. Browse filter chips and bottom sheet (T-612; Browse, "Browse search with filters", BrowseFiltersStd mockups).
   Below 1200 px the filter card becomes a sheet from the bottom; at 1200 px and above it stays the left column. */
/* B6 (board Browse): the chips wrap onto more rows instead of running off the right edge */
.sm-chips-row{display:flex;flex-wrap:wrap;flex:0 0 100%;max-width:100%;gap:8px;padding:2px 0 8px}
.sm-chips-row::-webkit-scrollbar{display:none}
.sm-chip{flex:0 0 auto;min-height:44px;border-radius:999px;border:1px solid var(--sm-field-border);background:var(--surface-0);color:var(--sm-ink);font-weight:600;font-size:14px;line-height:1.2;padding:0 16px;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.sm-chip.sm-filter-btn{margin-left:0}
.sm-chip:hover,.sm-chip:focus{border-color:var(--sm-primary);color:var(--sm-primary)}
.sm-chip.sm-chip-on{background:var(--sm-primary);border-color:var(--sm-primary);color:var(--surface-0)}
.sm-chip.sm-chip-on:hover,.sm-chip.sm-chip-on:focus{background:var(--sm-primary-hover);border-color:var(--sm-primary-hover);color:var(--surface-0)}
.sm-sheet-close{min-height:44px;font-weight:600;color:var(--sm-primary)}
.sm-sheet-actions{display:flex;gap:8px;align-items:center;margin-top:24px}
.sm-sheet-actions .btn{margin-top:0!important;min-height:44px}
.sm-sheet-actions #sm_show_btn{flex:1 1 auto}
.sm-sheet-actions #sm_clear_btn{flex:0 0 auto;white-space:nowrap}
.sm-marital-filter legend{font-size:inherit;margin-bottom:.5rem}
@media (max-width:1199.98px){
.aiz-filter-sidebar.sidebar-xl.active{z-index:1090!important} /* open sheet sits above the page and the bottom bar */
.aiz-filter-sidebar.sidebar-xl .collapse-sidebar{top:auto;bottom:0;left:0;right:0;width:100%;max-width:100%;height:auto;max-height:90vh;border-radius:16px 16px 0 0;-webkit-transform:translateY(100%);transform:translateY(100%)}
.aiz-filter-sidebar.collapse-sidebar-wrap.active .collapse-sidebar{-webkit-transform:translateY(0);transform:translateY(0)}
.aiz-filter-sidebar .card-header{position:sticky;top:0;z-index:2;background:var(--surface-0);border-radius:16px 16px 0 0}
.aiz-filter-sidebar .sm-sheet-actions{position:sticky;bottom:0;z-index:2;background:var(--surface-0);margin:0 -1.25rem;padding:12px 1.25rem calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--sm-line)}
body.sm-sheet-open{overflow:hidden}
}

/* 19. Walee / referee confirmation page (Task 14 stage 4, R-55; no artboard yet: design tokens). */
.sm-confirm{background:var(--sm-page)}
.sm-confirm-card{max-width:560px;background:var(--sm-surface);border:1px solid var(--line-300);border-radius:var(--sm-radius-card);padding:24px 20px}
@media (min-width:768px){.sm-confirm-card{padding:36px}}
.sm-confirm-kicker{font-size:14px;font-weight:600;color:var(--sm-muted)}
.sm-confirm-title{font-size:22px;font-weight:800;color:var(--sm-ink);margin-bottom:16px}
.sm-confirm-h2{font-size:16px;font-weight:700;color:var(--sm-ink);margin-bottom:8px}
.sm-confirm-notice{background:var(--sm-tint);border-radius:var(--sm-radius-field);padding:16px;margin:16px 0 20px;color:var(--sm-ink-2);font-size:15px}
.sm-confirm-ok{background:var(--sm-success-tint);color:var(--sm-success);border-radius:var(--sm-radius-field);padding:12px 16px;font-weight:600}
.sm-confirm-info{background:var(--sm-tint);color:var(--sm-primary);border-radius:var(--sm-radius-field);padding:12px 16px}
.sm-confirm-error{background:var(--sm-error-tint);color:var(--sm-error-ink);border-radius:var(--sm-radius-field);padding:12px 16px;font-weight:600}
.sm-confirm-label{display:block;font-weight:600;color:var(--sm-ink);margin-bottom:12px}
.sm-confirm-code{height:var(--sm-h-field);max-width:220px;font-size:20px;letter-spacing:.2em;border-color:var(--sm-field-border)}
.sm-confirm-boxes{margin-bottom:4px}
.sm-confirm .otp-boxes{flex-wrap:nowrap;gap:8px}
.sm-confirm .otp-box{width:auto;flex:1 1 0;min-width:0;max-width:48px;height:52px}
.sm-confirm-btn{display:block;width:100%;min-height:var(--sm-h-btn);margin-top:16px;border-radius:var(--sm-radius-btn);background:var(--sm-primary)!important;border-color:var(--sm-primary)!important;font-weight:700}
@media (min-width:768px){.sm-confirm-btn{width:auto;padding-left:32px;padding-right:32px}}
.sm-confirm-link{min-height:44px;color:var(--sm-primary);font-weight:600;text-decoration:underline}
.sm-confirm-small{font-size:14px;color:var(--sm-muted)}
.sm-confirm-small a{color:var(--sm-primary);text-decoration:underline}
.sm-confirm-icon{font-size:48px;line-height:1;color:var(--sm-muted);margin-bottom:12px}
.sm-confirm-icon-ok{color:var(--sm-success)}

/* 20. Upgrade, plan active and /packages (Task 33; artboards "Upgrade — 3 or 6 months", "Upgrade — desktop"). */
.sm-upgrade{background:var(--sm-page)}
.sm-upgrade-wrap{max-width:720px}
.sm-upgrade-title{font-size:24px;font-weight:800;color:var(--sm-ink);margin-bottom:16px}
.sm-upgrade-h2{font-size:17px;font-weight:700;color:var(--sm-ink);margin-bottom:12px}
.sm-upgrade-note{background:var(--sm-tint);color:var(--sm-primary);border-radius:var(--sm-radius-field);padding:12px 16px}
.sm-upgrade-compare{display:grid;grid-template-columns:1fr;gap:12px;margin:16px 0 20px}
@media (min-width:768px){.sm-upgrade-compare{grid-template-columns:1fr 1fr}}
.sm-upgrade-card{background:var(--sm-surface);border:1px solid var(--line-300);border-radius:var(--sm-radius-card);padding:20px 20px}
.sm-upgrade-card ul{margin:0;padding-left:20px;color:var(--sm-ink-2)}
.sm-upgrade-card-paid{border:2px solid var(--sm-primary)}
.sm-upgrade-plans{border:0;padding:0;margin:0 0 20px;display:grid;grid-template-columns:1fr;gap:12px}
@media (min-width:768px){.sm-upgrade-plans{grid-template-columns:1fr 1fr}}
.sm-upgrade-plans legend{grid-column:1/-1}
.sm-plan-option{display:flex;gap:12px;align-items:flex-start;background:var(--sm-surface);border:1px solid var(--sm-field-border);border-radius:var(--sm-radius-card);padding:16px;cursor:pointer;margin:0}
.sm-plan-option input{width:20px;height:20px;margin-top:4px;flex:none}
.sm-plan-option:has(input:checked){border:2px solid var(--sm-primary);background:var(--sm-tint);padding:16px}
.sm-plan-option-body{display:flex;flex-direction:column}
.sm-plan-option-name{font-weight:700;color:var(--sm-ink);font-size:16px}
.sm-plan-option-price{font-weight:800;color:var(--sm-ink);font-size:22px}
.sm-plan-option-small{font-size:14px;color:var(--sm-muted)}
.sm-plan-option-save{align-self:flex-start;margin-top:8px;background:var(--sm-success-tint);color:var(--sm-success);border-radius:var(--sm-radius-pill);padding:2px 12px;font-size:13px;font-weight:700}
.sm-upgrade-terms{background:var(--sm-surface);border:1px solid var(--sm-line);border-radius:var(--sm-radius-card);padding:16px 20px;margin-bottom:16px;color:var(--sm-ink-2)}
.sm-upgrade-ticks{border:0;padding:0;margin:0 0 12px}
.sm-tick{display:flex;gap:12px;align-items:flex-start;min-height:44px;margin-bottom:8px;color:var(--sm-ink);cursor:pointer}
.sm-tick input{width:20px;height:20px;margin-top:2px;flex:none}
.sm-upgrade-error{background:var(--sm-error-tint);color:var(--sm-error-ink);border-radius:var(--sm-radius-field);padding:12px 16px;font-weight:600;margin:8px 0 0}
.sm-upgrade-pay{display:inline-block;min-height:var(--sm-h-btn);padding:16px 28px;border-radius:var(--sm-radius-btn);font-weight:700}
#upgrade-pay{width:100%;background:var(--sm-primary)!important;border-color:var(--sm-primary)!important}
@media (min-width:768px){#upgrade-pay{width:auto}}

/* 21. Wizard v2 buttons on phones (Run 2 item 3): stacked full width, Continue first. */
@media (max-width:575.98px){.sm-wizard-actions{flex-direction:column-reverse;align-items:stretch!important}.sm-wizard-actions>span:empty{display:none}.sm-wizard-actions-main{flex-direction:column-reverse}.sm-wizard-actions .btn{width:100%}}

/* 22. Question groups as fieldset + legend (Run 2 item 6): the legend looks like the other labels,
   sits inside a bordered box (float: no gap in the border), and the group keeps its spacing. */
fieldset.sm-fieldset{border:0;padding:0;min-width:0}
fieldset.sm-fieldset>legend,fieldset.form-group>legend.form-label{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:15px;font-weight:600;line-height:1.5;color:var(--sm-ink)}
fieldset.sm-fieldset>legend+*,fieldset.form-group>legend.form-label+*{clear:both}
.seeking-radio:focus-visible+.seeking-option{outline:3px solid var(--primary,var(--brand-700));outline-offset:2px} /* sign-up gender cards: the radio is sr-only now (was display:none) */
:focus-visible{outline:2px solid var(--sm-primary)!important;outline-offset:2px!important} /* keyboard focus on every link and button: aiz-core.css sets outline:none on a:focus and button:focus, which beat the plain :focus-visible rule above (no visible focus at all) */
.bootstrap-select .dropdown-toggle:focus-visible,.bootstrap-select>select.mobile-device:focus-visible+.dropdown-toggle{outline:2px solid var(--sm-primary)!important;outline-offset:2px!important} /* the vendor select boxes (Browse filters, wizard) had outline:none !important */

/* 23. Mobile pass at 360/390/414 px (Run 4 item 2, T-730): every tap target at least 32 px high and no text under 12 px. */
.sm-wizard .form-check-inline{position:relative}
.sm-wizard .form-check-inline .form-check-label::before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit} /* the whole option box is tappable, not only the 20 px circle and the word */
.d-flex.flex-wrap>.form-check>.form-check-label{display:inline-block;padding:4px 0} /* profile settings: language tick-boxes */
#wizard-minimal-footer a{display:inline-flex;align-items:center;min-height:32px;padding:0 4px}
#footer-legal-links{font-size:13px}
#footer-legal-links a{display:inline-flex;align-items:center;min-height:32px}
ul.list-unstyled>li.my-3>a.text-reset.opacity-60{display:inline-block;padding:8px 0}
ul.list-unstyled>li.my-3:has(>a.text-reset.opacity-60){margin-top:4px!important;margin-bottom:4px!important}
.sm-browse-card-name a{display:inline-block;padding:4px 0;margin:-4px 0}
.aiz-mobile-bottom-nav>.row{margin-left:0;margin-right:0} /* the bar's row was 10 px wider than the screen */
.aiz-main-wrapper .form-check-inline:not(.sm-wizard .form-check-inline)>.form-check-label{display:inline-block;padding:4px 0} /* profile settings: Walee and referee "connection" choices */
.aiz-main-wrapper .text-white h1:not(.sm-hero-title){color:var(--surface-0)!important} /* a profile name on the dark blue banner was ink on blue (1.9:1) */

/* 24. Accessibility check of the member pages with axe (Run 4 item 4, AX-3, T-733). */
.aiz-main-wrapper p a:not(.btn),.aiz-main-wrapper .text-muted a:not(.btn),.aiz-main-wrapper .form-text a:not(.btn){text-decoration:underline} /* links in running text are not told apart by colour alone */
.aiz-main-wrapper .bg-primary-grad h1,.aiz-main-wrapper .bg-primary-grad h2,.aiz-main-wrapper .bg-primary-grad .h5,.aiz-main-wrapper .bg-primary-grad td{color:var(--surface-0)!important}
.aiz-main-wrapper .bg-primary-grad .opacity-60{opacity:1!important;color:var(--brand-200)!important} /* 7.3:1 on brand-700 */
/* 24b. The profile's side card sits over the dark banner on wide screens: white card (T-733, live axe re-check). */
.aiz-main-wrapper .aiz-profile-sidebar > .border{background-color:var(--surface-0)}
/* 24c. Toasts and the side card label (T-733, live axe re-check): success 5.7:1, danger 7.9:1, label 6.5:1. */
.aiz-notify.alert.alert-success,.aiz-notify.alert.alert-success [data-notify]{background-color:var(--success-100)!important;color:var(--success-700)!important;border-color:var(--success-700)!important}
.aiz-notify.alert.alert-danger,.aiz-notify.alert.alert-danger [data-notify]{background-color:var(--danger-100)!important;color:var(--danger-700)!important;border-color:var(--danger-700)!important}
.aiz-notify.alert.alert-success [data-notify=message],.aiz-notify.alert.alert-danger [data-notify=message]{background-color:transparent!important}
.aiz-main-wrapper .aiz-profile-sidebar .opacity-60{opacity:1!important;color:var(--ink-500)!important}

/* 25. Native selects on the sign-up steps and profile settings (T-740, row 59): the browser's own control. */
select.sm-native-select{appearance:auto;-webkit-appearance:auto;cursor:pointer}
select.sm-native-select[multiple]{height:auto;min-height:168px;padding:8px 12px}
select.sm-native-select[multiple] option{padding:8px 4px}

/* T-771 (30 Oct): waiting-for-verification dashboard and verification card, boards DashPendingFemale / DashPendingMale */
.sm-dash{max-width:720px}
.sm-dash-title{font-size:28px;font-weight:800;margin:0 0 16px;color:var(--sm-ink)}
.sm-dash-card,.sm-verify-card{border-radius:var(--sm-radius-card);border:1px solid var(--sm-line);box-shadow:none}
.sm-dash-card .card-body,.sm-verify-card .card-body{padding:20px}
.sm-verify-card{border:1.5px solid var(--sm-attention-line);background:var(--sm-attention-fill)}
.sm-verify-head{gap:8px;margin-bottom:12px}
.sm-verify-lead{font-size:17px;color:var(--sm-ink)}
.sm-pill{display:inline-block;border-radius:var(--sm-radius-pill);padding:4px 12px;font-size:14px;font-weight:700;line-height:1.4}
.sm-pill-wait{background:var(--sm-warn-tint);color:var(--sm-warn-ink)}
.sm-verify-party{padding-top:12px;margin-top:12px;border-top:1px solid var(--sm-line)}
.sm-verify-party:first-of-type{border-top:0;margin-top:4px;padding-top:4px}
.sm-verify-name{font-size:17px;margin-bottom:4px}
.sm-verify-state{margin-bottom:4px}
.sm-verify-rows{margin-top:8px}
.sm-verify-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-top:1px solid var(--sm-line-soft)}
.sm-verify-row dt{font-weight:400;margin:0}
.sm-verify-row dd{margin:0}
.sm-verify-actions,.sm-dash-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.sm-verify-actions .btn,.sm-dash-actions .btn{min-height:48px;display:flex;align-items:center;justify-content:center;width:100%;padding:.5rem .75rem;white-space:nowrap}
.sm-verify-actions form{margin:0}
.sm-verify-actions > :only-child,.sm-dash-actions > :only-child{grid-column:1 / -1}
@media (max-width:359px){.sm-verify-actions,.sm-dash-actions{grid-template-columns:1fr}}

/* T-774: phone header (boards Main, DashPending*): Help at the right; Log in to its right for guests */
.sm-mobile-help{position:absolute;top:8px;right:20px;display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font-size:15px;font-weight:600;color:var(--sm-primary);z-index:2}
.sm-mobile-help--guest{right:84px}

/* T-777: profile page as the Profile / ProfileDesktop boards (open fact cards) */
.sm-profile-head{background:var(--sm-page);padding-bottom:4px}
.sm-profile-wrap,.sm-profile .sm-profile-main{max-width:760px;margin-left:auto;margin-right:auto}
.sm-profile{background:var(--sm-page)}
.sm-profile .sm-profile-main{flex:0 0 100%}
.sm-back-link{display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--sm-primary)}
.sm-profile-id{display:flex;gap:var(--space-3);align-items:flex-start;margin:var(--space-2) 0 var(--space-4)} /* R-133 group 4: back link 8 above the name; name -> buttons 16 */
/* R-680 (owner, option B): the trust pill has its own row. Phones and tablets (below the computer layout, 992 px): full width under the name block, so it stays on one line. Computers: under the name, in the name's column (R-677: two centred lines there). */
.sm-profile-id.sm-has-pill-row{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:var(--space-3);row-gap:0;align-items:start}
.sm-profile-id.sm-has-pill-row>.sm-pill-row{grid-column:1/-1;margin-top:var(--space-2)}
.sm-profile-id.sm-has-pill-row>.sm-pill-row:not(:has(.sm-trust-pill)){display:none}
@media (min-width:992px){.sm-profile-id.sm-has-pill-row>.sm-pill-row{grid-column:2;margin-top:4px}}
.aiz-main-wrapper h1.sm-profile-name:not(.sm-hero-title):not(.sm-h1-compact){font-size:22px!important;line-height:28px;font-weight:800!important;margin:0 0 4px} /* R-133 group 4: name-title 22/28 phone, 24/30 desktop */
@media (min-width:1024px){.aiz-main-wrapper h1.sm-profile-name:not(.sm-hero-title):not(.sm-h1-compact){font-size:24px!important;line-height:30px}}
.sm-profile-meta{color:var(--sm-ink-2);font-size:16px}
.sm-profile-actions .sm-like-btn{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;min-height:52px}
.sm-profile-actions-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.sm-profile-actions-row .btn{min-height:48px;display:flex;align-items:center;justify-content:center}
.sm-profile .accordion-item{background:var(--surface-0);border:1px solid var(--sm-line);border-radius:var(--sm-radius-card);padding:16px 20px!important;margin-bottom:12px}
.sm-profile .accordion-item:before,.sm-profile .accordion-item:after,.sm-profile .aiz-timeline-accordion:before{display:none!important}
.sm-profile .accordion-head{pointer-events:none;cursor:default;margin-bottom:8px!important}
.sm-profile .accordion-head > .size-50px{display:none!important}
.sm-profile .accordion-head .ml-4{margin-left:0!important}
.sm-profile .accordion-head .fs-18{font-size:18px!important;font-weight:700!important}
.sm-profile .accordion-body{margin-left:0!important;padding-left:0!important}
.sm-profile .accordion-body > .border{border:0!important;padding:0!important}
.sm-profile .accordion-body table{width:100%}
.sm-profile .accordion-body td{padding:12px 0;border-top:1px solid var(--sm-line-soft);vertical-align:top}
.sm-profile .accordion-body tr:first-child td{border-top:0}
.sm-profile .accordion-body td + td{text-align:right;font-weight:600;color:var(--sm-ink);padding-left:12px}
.sm-profile .accordion-body .border,.sm-profile .accordion-body .table-bordered,.sm-profile .accordion-body .table-bordered td{border:0!important}
.sm-profile .accordion-body table{width:100%!important}

/* T-778: one header and a slim member footer (owner 30 Oct 14:45) */
.sm-topbar{position:sticky;top:0;z-index:1030;background:var(--surface-0);border-bottom:1px solid var(--line-300)}
.sm-topbar-in{display:flex;align-items:center;gap:20px;min-height:var(--sm-h-header)}
.sm-topbar-logo{display:inline-flex;align-items:center;min-height:44px}
.sm-topnav{gap:4px;margin-left:12px}
.sm-topnav a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:10px;font-weight:600;color:var(--sm-ink-2)}
.sm-topnav a:hover{background:var(--sm-tint);color:var(--sm-primary)}
.sm-topnav a.is-active{background:var(--sm-tint);color:var(--sm-primary);box-shadow:inset 0 0 0 .0625rem var(--brand-700);font-weight:700} /* R-482 (R-337 6 undone): a 1px brand-green edge all round, like the status pills, not a left bar */
.sm-topbar-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.sm-toplink{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;font-weight:600;color:var(--sm-primary)}
.sm-toplink-strong{font-weight:700}
.sm-avatar-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;background:transparent;border:0;padding:0;border-radius:999px}
.sm-dot{position:absolute;top:6px;right:4px;width:10px;height:10px;border-radius:999px;background:var(--sm-error);border:2px solid var(--surface-0)}
.sm-account-menu{min-width:240px;border-radius:12px;border:1px solid var(--sm-line);padding:8px 0}
.sm-account-menu .dropdown-item{padding:12px 16px;font-size:15px;color:var(--sm-ink)}
.sm-footer-slim{background:var(--sm-page);border-top:1px solid var(--sm-line);padding:20px 0 calc(84px + env(safe-area-inset-bottom,0px));font-size:13px;color:var(--sm-muted)}
.sm-footer-slim a{color:var(--sm-ink-2);text-decoration:underline}
@media (min-width:1200px){.sm-footer-slim{padding-bottom:20px}}
.sm-member-main{max-width:760px;margin:0 auto;width:100%}

/* T-779 (owner 30 Oct 14:45): tick rows and consent rows never look disabled */
.aiz-checkbox > span.opacity-80,.aiz-checkbox > span.opacity-60,.aiz-checkbox > span.opacity-70{opacity:1!important;color:var(--sm-ink)}
.sm-wizard .alert.alert-light,.alert.alert-light.border:has(.aiz-checkbox){background:var(--surface-0)!important;border-color:var(--sm-line)!important;color:var(--sm-ink)}

/* T-780 (owner 30 Oct 14:45): wizard as the boards: the step name is the heading, Back is a text link on phones */
.sm-wizard .sm-wizard-title{font-size:22px;font-weight:800;color:var(--sm-ink)}
@media (max-width:767.98px){
 .sm-wizard .sm-wizard-actions{flex-direction:column-reverse;align-items:stretch}
 .sm-wizard .sm-wizard-actions-main{flex-direction:column-reverse;align-items:stretch;width:100%}
 .sm-wizard .sm-wizard-actions-main .btn{width:100%}
 .sm-wizard .sm-back-btn{border:0!important;background:none!important;color:var(--sm-primary)!important;text-decoration:underline;min-height:44px;align-self:center}
}

/* T-785: Likes on phones (HeartsPaid board): each liked profile is its own card below 600px; nothing cut off at 390px */
@media (max-width:599.98px){
#shortlist-table thead{display:none}
#shortlist-table,#shortlist-table tbody{display:block;width:100%}
#shortlist-table tr{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;border:1px solid var(--sm-line,var(--line-200));border-radius:12px;padding:12px;margin:0 12px 12px;background:var(--surface-0)}
#shortlist-table td{display:block;border:0!important;padding:0!important}
#shortlist-table td.drag-handle,#shortlist-table td.sm-like-lang,#shortlist-table td.sm-like-age{display:none}
#shortlist-table td.position-number{font-weight:700;min-width:1.4em;text-align:center}
#shortlist-table td.sm-like-name{flex:1 1 0;min-width:0;font-weight:700;overflow-wrap:anywhere}
#shortlist-table td.sm-like-loc{order:5;flex:1 1 100%;font-size:.875rem;color:var(--sm-muted,var(--ink-500));padding-left:2.4em!important}
#shortlist-table td.sm-like-contact{order:3}
#shortlist-table td.sm-like-actions{order:6;flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:flex-start;text-align:left!important}
#shortlist-table td.sm-like-actions .sm-pick{flex:1 1 100%}
#shortlist-table td.sm-like-actions .sm-pick summary{width:100%}
#shortlist-table td.sm-like-actions .btn-circle{width:44px;height:44px}
.sm-likes-head small{flex:1 1 100%;margin-top:4px}
}
.sm-likes-head h1{white-space:nowrap;margin-right:12px}
#shortlist-table .sm-like-lang{display:none}
@media (min-width:600px){#shortlist-table td.sm-like-actions{white-space:nowrap}}

/* T-786: profile rows with no value are hidden by the page script */
.sm-profile-main .sm-row-empty,.sm-profile .sm-row-empty{display:none!important}
.sm-like-btn .sm-like-text{display:inline}

/* T-788: Contact history on phones: each person is a card below 600px (T-785 pattern); nothing cut off at 390px */
@media (max-width:599.98px){
#contact-history-table thead{display:none}
#contact-history-table,#contact-history-table tbody{display:block;width:100%}
#contact-history-table tr{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;border:1px solid var(--sm-line,var(--line-200));border-radius:12px;padding:12px;margin:0 12px 12px;background:var(--surface-0)}
#contact-history-table td{display:block;border:0!important;padding:0!important}
#contact-history-table td.sm-ch-member{flex:1 1 0;min-width:0;font-weight:700;overflow-wrap:anywhere}
#contact-history-table td.sm-ch-actions{text-align:right}
#contact-history-table td.sm-ch-date{order:3;flex:1 1 100%;font-size:.875rem;color:var(--sm-muted,var(--ink-500))}
#contact-history-table td.sm-ch-next{order:4;flex:1 1 100%;overflow-wrap:anywhere}
#contact-history-table td.sm-ch-rating{order:5;flex:1 1 100%}
}
/* T-814 (owner 31 Oct): no empty space before the footer. The page wrapper is at least the screen height and the footer
   used margin-top:auto, which left a gap on short pages. Now the content comes first, then the footer, which fills
   whatever is left of the screen. */
.aiz-main-wrapper > footer{margin-top:0!important;flex-grow:1}

/* A6 (dry run #18, #23): Dashboard "What to do now" card; plan as a quiet line */
.sm-now-card .sm-now-browse{display:flex;align-items:center;justify-content:center;min-height:44px}
.sm-now-card .sm-label-verified{display:inline-block;margin-bottom:16px!important}
.sm-now-line{margin-top:16px;font-weight:600}
.sm-now-line a{display:inline-block;min-height:44px;line-height:44px}
.sm-now-note{margin-top:8px;color:var(--sm-muted,var(--ink-500));font-size:.9375rem}
.sm-plan-line{margin:16px 0 0;color:var(--sm-muted,var(--ink-500));font-size:.9375rem}

/* A11 (dry run #11): the register tick boxes are the real, visible checkboxes (not an invisible input under a drawn square) */
#reg-form .aiz-checkbox{padding-left:32px}
#reg-form .aiz-checkbox > input{position:absolute;top:2px;left:0;z-index:1;opacity:1;width:20px;height:20px;margin:0;accent-color:var(--primary,var(--brand-700));cursor:pointer}
#reg-form .aiz-checkbox > .aiz-square-check{display:none}

/* A13 (dry run #35): app-like on phones without blocking pinch-zoom. No double-tap zoom, no
   auto-zoom on focus (iOS zooms below 16 px), no sideways scrolling. The viewport meta stays
   width=device-width, initial-scale=1 (never maximum-scale or user-scalable=no). */
html{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body{max-width:100%;overflow-x:clip}
@media (max-width:991.98px),(hover:none){
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]):not(.otp-box),select,textarea,.form-control:not(.otp-box){font-size:16px}
}

/* B (owner 31 Oct): sign-in error, one box above the form */
.sm-login-error{margin:0 0 16px;padding:12px 16px;border:0;border-radius:12px;background:var(--surface-50);color:var(--danger-800);font-size:15px;line-height:1.45}
.sm-login-error a{color:inherit;text-decoration:underline}

/* B14 (dry run #5): a verified-in-progress email / mobile stays visible, read-only */
#reg-form .sm-locked{background-color:var(--surface-50);color:var(--sm-ink,var(--ink-900))}

/* U24 (owner 31 Oct): back-to-top above the tab bar and safe area. R-328: the badge rules are gone. */
.sm-to-top{bottom:calc(16px + var(--sm-to-top-lift,0px) + env(safe-area-inset-bottom,0px))}

/* U35 (owner 31 Oct): account drawer, plain 48 px rows, close button inside at 44 px */
.sm-account-drawer .sm-drawer-head{padding:4px 8px 12px 20px;border-bottom:1px solid var(--sm-line,var(--line-200))}
.sm-account-drawer .min-w-0{min-width:0}
.sm-drawer-close{width:44px;height:44px;border:0;background:transparent;font-size:28px;line-height:1;color:var(--sm-ink,var(--ink-900));border-radius:12px}
.sm-drawer-close:focus-visible{outline:3px solid var(--sm-ink,var(--ink-900));outline-offset:2px}
.sm-drawer-list a,.sm-drawer-logout{display:flex;align-items:center;width:100%;min-height:48px;padding:0 20px;border:0;border-bottom:1px solid var(--sm-line,var(--line-200));background:transparent;color:var(--sm-ink,var(--ink-900));font-size:16px;text-align:left;text-decoration:none}
.sm-drawer-list a:hover,.sm-drawer-logout:hover{background:var(--surface-50)}
.sm-drawer-list a:focus-visible,.sm-drawer-logout:focus-visible{outline:2px solid var(--sm-primary)!important;outline-offset:-4px!important} /* R-483: the keyboard outline sits inside the row, so the drawer's edges no longer cut off its left and right sides */

/* U36 (owner 31 Oct): a form's main button: 48 px, full width on phones */
.sm-btn-main{min-height:48px;padding:0 24px;border-radius:12px;font-size:16px;font-weight:700}
@media (max-width:575.98px){.sm-btn-main{display:block;width:100%}}

/* U48 (owner, 31 Oct): file inputs on member pages. The native input is visually hidden but focusable;
   its label is the U17 ghost button (48 px, 12 px radius, 16 px bold). */
.sm-file{position:relative}
.sm-file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sm-file-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:0;padding:0 16px;border:1px solid var(--line-200);border-radius:12px;background:transparent;color:var(--brand-700);font-size:16px;font-weight:700;line-height:1.25;text-align:center;cursor:pointer}
@media (hover:hover){.sm-file-btn:hover{background:var(--brand-100);border-color:var(--brand-700)}}
.sm-file-input:focus-visible + .sm-file-btn{outline:3px solid var(--brand-700);outline-offset:2px}
.sm-file-btn[hidden],.sm-file-chosen[hidden]{display:none!important}
.sm-file-chosen{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 4px 0 16px;border:1px solid var(--ink-400);border-radius:12px;background:var(--surface-0)}
.sm-file-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;color:var(--sm-ink,var(--ink-900))}
.sm-file-remove{flex:none;min-height:44px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:var(--brand-700);font-size:16px;font-weight:700;text-decoration:underline;cursor:pointer}
.sm-file-remove:focus-visible{outline:3px solid var(--brand-700);outline-offset:2px}
.sm-file-hint{margin-top:8px;font-size:13px;color:var(--ink-500)}

/* Contact us (owner, 31 Oct): one column of 48 px tappable choice rows; the page H1 above the card (U19). */
.sm-choice-list{display:block}
.sm-choice{display:flex;align-items:center;gap:12px;min-height:48px;margin:0;padding:12px 16px;border:1px solid var(--ink-400);border-radius:10px;background:var(--surface-0);font-size:16px;font-weight:400;line-height:1.3;color:var(--sm-ink,var(--ink-900));cursor:pointer}
.sm-choice + .sm-choice{margin-top:8px}
.sm-choice-input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--brand-700);cursor:pointer}
.sm-choice:has(.sm-choice-input:checked){border:2px solid var(--brand-700);background:var(--brand-100);padding:8px 12px}
.sm-choice:has(.sm-choice-input:focus-visible){outline:3px solid var(--brand-700);outline-offset:2px}
.form-group > .sm-choice,.sm-fieldset > .sm-choice{font-weight:400}
.sm-page-h1{margin:0 0 16px}

/* U17 (owner, 31 Oct): one button system on member and public pages. Buttons are 48 px tall with a 12 px
   radius and 16 px / 700 text; compact buttons (.btn-sm, .btn-xs) are 44 px. Icon and circle buttons keep
   their own sizes, and select boxes (.dropdown-toggle) stay fields. Admin pages don't load this file. */
:root{--sm-h-btn:48px;--sm-h-btn-sm:44px}
.btn:not(.btn-icon):not(.btn-circle):not(.dropdown-toggle){min-height:48px;border-radius:12px;font-size:16px;font-weight:700;line-height:1.25;padding:12px 20px}
.btn-lg:not(.btn-icon):not(.btn-circle):not(.dropdown-toggle){min-height:48px;font-size:16px;padding:12px 24px}
.btn-sm:not(.btn-icon):not(.btn-circle):not(.dropdown-toggle),.btn-xs:not(.btn-icon):not(.btn-circle):not(.dropdown-toggle){min-height:44px;border-radius:12px;font-size:16px;padding:12px 16px}
.btn-link:not(.btn-icon):not(.btn-circle):not(.dropdown-toggle){font-weight:600}
/* U17: in the 280 px desktop filter column, "Show N profiles" wrapped beside "Clear all": stack them,
   primary first, full width. */
@media (min-width:768px){.sm-sheet-actions{flex-direction:column-reverse;align-items:stretch;gap:8px}.sm-sheet-actions > .btn{width:100%;margin:0!important}}

/* U18 (owner, before Round 1): one form rhythm on member and public pages (Task 53 tokens). Labels are
   15 px / 600 with 8 px to their field; legends 8 px; 22 px between groups (owner's U18 values, 31 Oct); fields 48 px with a 10 px
   radius, including the vendor picker's select boxes (they were 4 px). */
.form-group:not(.row){margin-bottom:24px}
.form-group:not(.row) > label:not(.sm-choice):not(.sm-file-btn):not(.custom-control-label),.form-group:not(.row) > .form-label{display:block;font-size:15px;font-weight:600;line-height:1.35;margin-bottom:8px!important}
fieldset > legend,.sm-fieldset > legend{font-size:15px;font-weight:600;line-height:1.35;margin-bottom:8px!important}
.bootstrap-select > .dropdown-toggle,.bootstrap-select > .dropdown-toggle.btn-light{border-radius:var(--sm-radius-field,10px)!important}
.form-group.mb-2:not(.row),.form-group.mb-3:not(.row){margin-bottom:24px!important}
.form-label{font-size:15px;font-weight:600;line-height:1.35;margin-bottom:8px}
.form-group > .d-flex > .form-label{margin-bottom:0!important}
.form-group > .d-flex:has(> .form-label){margin-bottom:8px!important}
/* U18: on sign-up the trust card sat flush on "Choose one" (0 px). */
.sm-trust.compact + form{margin-top:24px}
/* U18: in the 280 px desktop filter column the Age "From" and "To" boxes were 94 px and cut "Select one"
   to "Se…": they stack full width, as they already do on phones. */
@media (min-width:992px){.row:has(> .col-lg-6 #age_from) > .col-lg-6{flex:0 0 100%;max-width:100%}}

/* U19 (owner, before Round 1): every member page has its H1 above its card, in the one page-title style
   (26 px phone / 32 px desktop, 800), as on Contact us; a card header left with nothing in it is hidden. */
.sm-page-h1{margin:0 0 16px}
.card-header:not(:has(*)){display:none}

/* U22 (owner, before Round 1): no card in a card. Boxes inside a card lose their border: Contact us's
   "We'll include these automatically" is a tinted panel (as the SDNewTicket board); Sensitive information's
   three consent boxes become rows with a divider; on a phone the Likes rows are the cards, so the outer
   card's frame goes. */
.card .alert-secondary{border:0!important}
.card .alert.alert-light{border:0!important;border-radius:0;background:transparent;padding:16px 0;margin:0!important}
.card .alert.alert-light + .alert.alert-light{border-top:1px solid var(--sm-line-soft,var(--line-100))!important}
@media (max-width:767.98px){.card:has(#shortlist-table){border:0;background:transparent;box-shadow:none}.card:has(#shortlist-table) > .card-header,.card:has(#shortlist-table) > .card-body{padding-left:0;padding-right:0;background:transparent;border:0}}

/* U26 (owner, before Round 1): one content width. The page container is 1120 px on desktop (header,
   content and footer line up); single-column member pages use a 640 px column. */
@media (min-width:1200px){.container{max-width:1120px}}
.sm-member-main{max-width:640px}
.sm-dash{max-width:640px}

/* U27 (owner, before Round 1): 44 px tap targets. Browse's marital-status rows, the Likes up / down /
   remove buttons on desktop (were 34 x 40) and Sensitive information's tick boxes (were 13 px). */
.sm-marital-filter .custom-control{min-height:44px;display:flex;align-items:center;margin:0}
.sm-marital-filter .custom-control-label{min-height:44px;display:flex;align-items:center;width:100%;cursor:pointer}
.sm-marital-filter .custom-control-label::before,.sm-marital-filter .custom-control-label::after{top:50%;transform:translateY(-50%)}
@media (min-width:768px){#shortlist-table td.sm-like-actions .btn-circle{width:44px;height:44px;min-width:44px;min-height:44px}}
.alert-light .aiz-checkbox{min-height:44px;align-items:center!important;cursor:pointer}
.alert-light .aiz-checkbox > input[type=checkbox]{flex:none;width:20px;height:20px;margin:0;accent-color:var(--sm-primary,var(--brand-700))}

/* P1.4 (owner, 1 Nov): a form's single Save is the full-width primary on a phone (U17). */
@media (max-width:767.98px){.sm-btn-phone-block{display:block;width:100%}}

/* Pilot rehearsal fixes (1 Nov, fix and tell): the wizard header at 390 px fits on one line (Save and exit was a
   44 px / 16 px outlined button after U17 and Log out wrapped); the wizard's two buttons get a 12 px gap
   (Bootstrap 4 has no gap-2, so they touched). */
#wizard-minimal-header .btn{min-height:44px;padding:8px 8px;font-size:15px;white-space:nowrap}
#wizard-minimal-header .container{padding-left:16px;padding-right:16px}
.sm-wizard-actions-main{gap:12px}

/* U45 (owner, R-117): one status pill on member and public pages, replacing the vendor badges. 28 px tall,
   fully rounded, 0 12 px, 13.5 px semibold. Tones: green (done / verified), amber (waiting / pending / open),
   red (expired / refused), indigo (information), grey (neutral, e.g. "Account closed"). Use .sm-pill with
   .sm-pill-green / -amber / -red / -indigo / -grey; the vendor .badge and our older .sm-badge follow. */
body .sm-pill,body .sm-badge,.badge:not(.badge-dot):not(.badge-circle){display:inline-flex!important;align-items:center;height:28px;min-height:28px!important;padding:0 12px!important;border-radius:999px!important;font-size:13.5px!important;font-weight:600!important;line-height:1!important;white-space:nowrap;border:0!important;width:auto!important;vertical-align:middle;background-color:var(--line-100)!important;color:var(--ink-700)!important}
body .sm-pill-green,body .sm-badge.sm-badge-ok,.badge:not(.badge-dot):not(.badge-circle).badge-success,.badge:not(.badge-dot):not(.badge-circle).badge-soft-success{background-color:var(--success-100)!important;color:var(--success-700)!important}
/* R-259 pill set B (owner 11 Nov): a success pill always carries a tick, so "done" never depends on colour alone (leaf green and sage
   are close). Pills that already have an icon keep it. The tick is decoration: screen readers hear only the words. */
body .sm-pill-green:not(:has(> i, > svg))::before,body .sm-badge.sm-badge-ok:not(:has(> i, > svg))::before,.badge:not(.badge-dot):not(.badge-circle).badge-success:not(:has(> i, > svg))::before,.badge:not(.badge-dot):not(.badge-circle).badge-soft-success:not(:has(> i, > svg))::before{content:"\2713";content:"\2713" / "";margin-right:var(--space-1);font-weight:700}
body .sm-pill-amber,body .sm-badge.sm-badge-wait,.badge:not(.badge-dot):not(.badge-circle).badge-warning,.badge:not(.badge-dot):not(.badge-circle).badge-soft-warning{background-color:var(--warning-100)!important;color:var(--warning-800)!important}
body .sm-pill-red,body .sm-badge.sm-badge-expired,.badge:not(.badge-dot):not(.badge-circle).badge-danger,.badge:not(.badge-dot):not(.badge-circle).badge-soft-danger{background-color:var(--danger-100)!important;color:var(--danger-700)!important}
body .sm-pill-indigo,.badge:not(.badge-dot):not(.badge-circle).badge-primary,.badge:not(.badge-dot):not(.badge-circle).badge-info,.badge:not(.badge-dot):not(.badge-circle).badge-soft-primary,.badge:not(.badge-dot):not(.badge-circle).badge-soft-info{background-color:var(--info-100)!important;color:var(--info-700)!important} /* R-259 pill set B: information is slate teal */
body .sm-pill-grey,.badge:not(.badge-dot):not(.badge-circle).badge-secondary,.badge:not(.badge-dot):not(.badge-circle).badge-light{background-color:var(--surface-50)!important;color:var(--ink-700)!important} /* R-259: the stone pill */

/* U16 (owner, before Round 1): symmetric insets. A select's chevron (12 x 8, ink-900) sits P = 16 px from the
   right edge, the same inset as its text on the left; the text stops at P + 24 px; disabled selects are filled.
   Native selects and the vendor picker's boxes look the same. */
select.form-control:not([multiple]):not([size]),select.sm-native-select:not([multiple]){appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2316211D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 16px center!important;background-size:12px 8px!important;padding-left:16px;padding-right:40px!important}
select.form-control:disabled,select.sm-native-select:disabled{background-color:var(--sm-neutral)!important;cursor:not-allowed}
.bootstrap-select>.dropdown-toggle{padding-left:16px!important;padding-right:40px!important;position:relative}
.bootstrap-select>.dropdown-toggle::after{content:""!important;border:0!important;width:12px;height:8px;margin:0!important;position:absolute;right:16px;top:50%;transform:translateY(-50%);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2316211D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/12px 8px}
.bootstrap-select.disabled>.dropdown-toggle,.bootstrap-select>.dropdown-toggle.disabled{background-color:var(--sm-neutral)!important}

/* U3 (owner, before Round 1): one code-entry pattern everywhere a code is typed (sign-up, Confirm your mobile
   number, Walee / referee confirmation, staff sign-in): six 52 x 60 boxes with an 8 px gap, left-aligned; on a
   narrow phone they shrink but the gap stays 8 px; a 480 px card and a full-width Confirm on the code pages;
   the number or email the code went to never wraps. */
.otp-boxes{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;justify-content:flex-start!important}
.otp-box{flex:0 0 52px;width:52px!important;max-width:52px!important;height:60px!important;padding:0!important;text-align:center;font-size:24px!important;font-weight:700;border-radius:10px!important}
@media (max-width:420px){.otp-box{flex:1 1 0;width:auto!important;min-width:0}}
.sm-confirm .otp-boxes{gap:8px!important}.sm-confirm .otp-box{height:60px!important;max-width:52px!important}
.input-group > .otp-boxes{flex:1 1 100%;min-width:0;max-width:100%}
.sm-confirm-card{max-width:480px}
.sm-confirm-btn{display:block;width:100%}
.bg-white.rounded:has(.otp-boxes){max-width:480px;margin-left:auto;margin-right:auto}
.sm-confirm-info strong,.sm-confirm-info b,.bg-white.rounded:has(.otp-boxes) strong{white-space:nowrap}

/* U49 (owner / Adviser 31 Oct 21:12, board SignupDesktop): the sign-up page. From 1024 px two columns inside
   the U26 container: heading, subtitle and the three trust points (no box) on the left, the form in one white
   560 px card with 36 px padding on the right. On a phone one column, the trust card as wide as the form card.
   Tick boxes 14 px apart; the contact-details warning is an amber notice (R-117 amber) above Create account. */
.sm-signup-intro,.sm-signup-card{max-width:560px;margin-left:auto;margin-right:auto}
.sm-signup-intro{margin-bottom:24px}
.sm-signup-title{text-align:left;margin:0 0 8px}
.sm-signup-sub{color:var(--sm-muted,var(--ink-500));font-size:16px;line-height:1.5;margin:0 0 16px}
.sm-signup-card{background:var(--surface-0);border:1px solid var(--line-300);border-radius:16px;padding:20px}
.sm-signup .sm-trust.compact{margin:0}
.sm-notice-amber{background:var(--warning-100);color:var(--warning-800);border-radius:12px;padding:12px 16px;font-size:14px;line-height:1.45}
@media (min-width:1024px){.sm-signup-grid{display:grid;grid-template-columns:minmax(0,1fr) 560px;gap:48px;align-items:start}.sm-signup-intro,.sm-signup-card{max-width:none;margin:0}.sm-signup-card{padding:24px}.sm-signup-intro .sm-trust{border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important}}
#reg-form .seeking-option{height:100%}

/* Received (owner, 1 Nov, boards Received / ReceivedDesktop): "Getting married" is the full-width secondary
   button; Block and Report sit side by side below as quiet 44 px buttons. Replaces the U17 phone re-flow. */
.sm-received-quiet{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.btn.sm-btn-quiet{background:transparent;border:1px solid var(--line-200);color:var(--ink-700)}
@media (hover:hover){.btn.sm-btn-quiet:hover{background:var(--line-100);color:var(--ink-900)}}

/* P2 item 9 (boards DashLiveFree / DashLivePaid, R-95): the dashboard "Next delivery" card */
.sm-next-card{background:var(--sm-primary);color:var(--surface-0);border-radius:var(--sm-radius-card);padding:20px;display:flex;flex-direction:column;gap:12px}
.sm-next-card .sm-next-eyebrow{font-size:14px;font-weight:600;opacity:.85;color:var(--surface-0)}
.sm-next-card .sm-next-title{font-size:22px;line-height:1.3;font-weight:700;color:var(--surface-0)}
.sm-next-card .sm-next-body{font-size:15px;opacity:.9;color:var(--surface-0)}
.sm-next-meter{display:flex;gap:8px}
.sm-next-meter i{flex:1;height:10px;border-radius:5px;background:rgba(255,255,255,.28)}
.sm-next-meter i.on{background:var(--surface-0)}
.btn.sm-next-btn{display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:8px;border-radius:var(--sm-radius-btn);background:var(--surface-0);color:var(--sm-primary);border:0;font-size:15px;font-weight:700}
.btn.sm-next-btn:hover,.btn.sm-next-btn:focus{background:var(--sm-tint);color:var(--sm-primary-hover)}
.btn.sm-next-btn:focus-visible{outline:3px solid var(--surface-0);outline-offset:2px}

/* P2 item 10 (boards HeartsFree / HeartsDesktop): Likes as one card per liked profile at every width */
.sm-likes-page .sm-likes-intro{color:var(--sm-muted);font-size:15px;margin:-4px 0 16px}
.sm-likes-page #likes-delivery-note{background:var(--sm-surface);border:1px solid var(--sm-line);border-radius:var(--sm-radius-card);padding:16px!important;margin-bottom:16px}
.sm-likes-page #likes-delivery-note:not(:has(p)){display:none}
.sm-likes-page #likes-delivery-note p:last-child{margin-bottom:0!important}
.sm-likes-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.sm-like-card{display:flex;flex-wrap:wrap;align-items:center;gap:12px 12px;background:var(--sm-surface);border:1px solid var(--line-300);border-radius:var(--sm-radius-card);padding:16px 16px}
.sm-like-card .drag-handle{color:var(--sm-muted);cursor:grab;font-size:20px}
.sm-like-card .position-number{min-width:24px;text-align:center;font-size:18px;font-weight:800;color:var(--sm-primary)}
.sm-like-card .sm-like-av{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:var(--brand-700);color:var(--surface-0);font-weight:800;font-size:17px}
.sm-like-card .sm-like-main{flex:1 1 0;min-width:0}
.sm-like-card .sm-like-name{font-size:17px;line-height:1.3;font-weight:700;margin:0;overflow-wrap:anywhere}
.sm-like-card .sm-like-name a{color:var(--sm-ink)}
.sm-like-card .sm-like-loc{font-size:14px;color:var(--sm-muted);margin:2px 0 0}
.sm-like-card .sm-like-next{margin-top:8px}
.sm-like-card .sm-like-actions{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sm-like-card .sm-like-actions .sm-pick{flex:1 1 100%;margin-right:0!important}
.sm-like-card .sm-like-actions .sm-pick summary{width:100%;min-height:44px;display:flex;align-items:center;justify-content:center}
.sm-like-card .sm-like-actions .btn-circle{width:44px;height:44px;min-width:44px;min-height:44px}
.sm-like-card .sm-like-actions .sm-like-remove{margin-left:auto}
@media (min-width:600px){
  .sm-like-card{flex-wrap:nowrap}
  .sm-like-card .sm-like-actions{flex:0 0 auto;flex-wrap:nowrap}
  .sm-like-card .sm-like-actions .sm-pick{flex:0 0 auto}
  .sm-like-card .sm-like-actions .sm-like-remove{margin-left:0}
}
@media (min-width:600px){.sm-like-card .sm-like-actions:has(.sm-pick[open]){flex:1 1 100%;flex-wrap:wrap}.sm-like-card .sm-like-actions .sm-pick[open]{flex:1 1 100%}} /* R-232: the open Ask now sheet takes the row's full width */
.sm-likes-page #likes-delivery-note p{font-size:15px}

/* P2 item 11: on a phone, Languages / County / Town in the filter sheet open as a full-screen picker */
html.sm-fs-open{overflow:hidden}
html.sm-fs-open .aiz-filter-sidebar .collapse-sidebar{-webkit-transform:none!important;transform:none!important}
.bootstrap-select .dropdown-menu.sm-fs-picker{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;-webkit-transform:none!important;transform:none!important;width:100vw!important;max-width:100vw!important;height:100vh!important;height:100dvh!important;max-height:none!important;min-height:0!important;margin:0!important;border:0!important;border-radius:0!important;padding:0 0 env(safe-area-inset-bottom,0px)!important;overflow:hidden!important;z-index:1100!important;background:var(--sm-surface)}
.bootstrap-select .dropdown-menu.sm-fs-picker.show{display:flex!important;flex-direction:column}
.sm-fs-picker .sm-fs-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--sm-line);flex:0 0 auto}
.sm-fs-picker .sm-fs-title{font-size:18px;line-height:1.3;font-weight:700;margin:0;color:var(--sm-ink)}
.sm-fs-picker .sm-fs-done{min-height:44px;padding:0 20px;border-radius:var(--sm-radius-btn)}
.sm-fs-picker .bs-searchbox{padding:12px 16px;flex:0 0 auto}
.sm-fs-picker .bs-searchbox input{min-height:48px;font-size:16px}
.sm-fs-picker > .inner{flex:1 1 auto;max-height:none!important;min-height:0!important;overflow-y:auto!important}
.sm-fs-picker .dropdown-item{display:flex;align-items:center;min-height:48px;padding:0 16px;font-size:16px;white-space:normal}
html.sm-keys .bootstrap-select .dropdown-menu .dropdown-item:focus-visible{outline:2px solid var(--surface-0)!important;outline-offset:-5px!important} /* R-488, R-489 (every select-picker on member and guest pages; html.sm-keys is set by js/sm/select_keys.js): a focused option (always the highlighted, dark-green one) gets a white ring inside its row, so the list's edges can't cut it off */

/* U32 (Browse board): the heading, then the filter chips, then the count and Sort on one row */
.sm-browse-meta{display:flex;flex:0 0 100%;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}
.sm-browse-meta .sm-browse-count{margin:0;font-size:15px;flex:1 1 auto;min-width:0}
.sm-browse-meta .sm-browse-sort{flex:0 0 auto}
.sm-browse-meta .sm-browse-sort select{min-width:0;width:auto;max-width:100%}

/* R-120: fixed values on Edit my profile (date of birth), as on the EditProfile board */
.sm-readonly{display:flex;align-items:center;min-height:48px;padding:0 16px;border-radius:var(--sm-radius-field);background:var(--sm-neutral);font-size:16px;color:var(--sm-ink-2)}

/* T-791 G-7 (boards PlanGiftActive / PlanGiftQueued): Your plan */
.sm-your-plan .sm-plan-card{border-radius:var(--sm-radius-card);margin-bottom:16px}
.sm-your-plan .sm-plan-gift{border:2px solid var(--brand-700)} /* owner 1 Nov: gift colour A, brand blue; no purple */
.sm-pill-gift,.badge.sm-pill-gift{background:var(--info-100)!important;color:var(--info-700)!important} /* the Info pill (UI guide section 7; R-259 slate teal) */
.sm-emoji{display:inline-block;margin-right:var(--space-1,4px);font-size:1em;line-height:1}/* R-134 A: approved emoji, text size, 4px before the words */
/* D list (owner 1 Nov, fix and tell): sign-up and wizard polish.
   Bootstrap 4 has no gap utilities, so boxes written with gap-1/2/3 (date of birth, wizard buttons) touched. */
.gap-1{gap:4px!important}.gap-2{gap:8px!important}.gap-3{gap:16px!important}
/* Register: every field button (Verify, Change, Show) one width, 8 px from its box, so the boxes line up. */
.sm-field-action{flex:0 0 80px;min-width:80px;height:48px;border-radius:var(--sm-radius-btn)!important}
.input-group>.form-control:has(+ .sm-field-action){border-radius:var(--sm-radius-field)!important}
/* Wizard: Walee / referee mobile, the country list above the number. */
.sm-phone-stack{display:flex;flex-direction:column;gap:8px}
/* Wizard: the step heading starts at the fields' inset (36 px on wider screens, as the card body). */
@media (min-width:768px){.sm-wizard .card>.card-header:not(.bg-primary){padding:28px 36px 0}}
/* Wizard header: Help, Save and exit and Log out on one line, text centred in the same 44 px height. */
#wizard-minimal-header nav .btn{display:inline-flex;align-items:center}

/* Plans (owner 1 Nov, layout only): one row per plan, each with its own Choose button; Terms / Privacy as plain small links. */
.sm-plan-rows{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.sm-plan-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--sm-line);border-radius:var(--sm-radius-field);padding:8px 8px 8px 16px}
.sm-plan-row-label{font-weight:700;font-size:16px}
.sm-plan-choose{min-height:44px;min-width:96px}
.sm-plan-legal{margin-top:8px;color:var(--sm-ink-2)}

/* Per-page items (owner 1 Nov). Forgot password: the standard card and blue 44 px links. 404: two buttons 8 px apart, one height, stacked on phones. */
.sm-std-card{background:var(--sm-surface);border:1px solid var(--line-300);border-radius:var(--sm-radius-card);padding:20px;box-shadow:none}
.sm-link-44{display:inline-flex;align-items:center;min-height:44px;color:var(--sm-primary)!important;font-weight:600}
.sm-404-actions{display:flex;justify-content:center;gap:8px;margin-top:16px}
.sm-404-actions .btn{height:48px;margin:0;display:inline-flex;align-items:center;justify-content:center}
@media (max-width:575.98px){.sm-404-actions{flex-direction:column}.sm-404-actions .btn{width:100%}}

/* Per-page items (owner 1 Nov), part 2. Help: question text and arrow both 20 px in; topic links 44 px targets.
   Browse filter sheet: fields 10 px radius. */
.help-article>summary{padding:12px 20px}
.help-article>div{padding:0 20px 16px!important}
#help-topics a{display:inline-flex;align-items:center;min-height:44px}
#sm_filter_sheet .form-control,#sm_filter_sheet .bootstrap-select>.dropdown-toggle,#sm_filter_sheet select{border-radius:var(--sm-radius-field)!important}

/* R-126 item 7 (owner 1 Nov): Browse cards: the Like / Liked button at the bottom of every card, so buttons line up
   across a row (cards stretch to the row in the grid); the location on one line with an ellipsis. */
.sm-browse-card>.sm-like-btn,.sm-browse-card>.sm-liked-status{margin-top:auto}
.sm-browse-card-who{flex:1 1 auto}
.sm-browse-card-place{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-browse-card>.sm-like-btn,.sm-browse-card>.sm-liked-status{height:48px;min-height:48px;box-sizing:border-box;display:flex;align-items:center;justify-content:center} /* item 7: Like and Liked the same height */

/* Item 9 (R-126): Edit my profile jump links and sections; Settings links. */
.sm-edit-jump{margin:0 0 16px}
.sm-edit-jump ul{display:flex;flex-wrap:wrap;gap:4px 16px}
.sm-edit-jump a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}
.sm-edit-section{scroll-margin-top:80px}
/* R-284 B3: at phone and tablet width the members' bottom bar (fixed, 63 px tall, below 1200 px) covered a control that
   keyboard focus had just scrolled to (Browse profiles, Block, Report, a note's date). The page now keeps 80 px clear above
   the bar when it scrolls something into view (before the Item 8 block, so it isn't held to that block's scale). */
@media (max-width:1199.98px){html{scroll-padding-bottom:80px}}
/* R-284 B3: a link styled as a button keeps its own text colour when it has focus. a:focus above turned the primary button's
   text dark green on its dark green ("Browse profiles" on Introductions read 1.4:1 while focused). */
a.sm-button-primary:focus{color:var(--surface-0)}
a.sm-button-secondary:focus{color:var(--brand-700)}
a.sm-button-destructive:focus{color:var(--danger-700)}
.sm-settings-links li a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}

/* Item 9: Settings (boards Settings / SettingsDesktop, 1 Nov). One column, 640px wide on desktop. */
.sm-set{display:flex;flex-direction:column;gap:16px;max-width:640px}
.sm-set-head{display:flex;flex-direction:column;gap:8px}
.sm-set-intro{color:var(--sm-muted);font-size:15px;line-height:1.5}
.sm-set-intro a{text-decoration:underline}
.sm-set-card{background:var(--sm-surface);border:1px solid var(--line-300);border-radius:var(--sm-radius-card);padding:20px;display:flex;flex-direction:column;gap:24px;scroll-margin-top:72px}
.sm-set-inner{display:flex;flex-direction:column;gap:24px}
.sm-set-ch{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px}
.sm-set-h2{font-size:19px;line-height:1.3;font-weight:700;margin:0;color:var(--sm-ink)}
.sm-set-h3{font-size:16px;line-height:1.3;font-weight:700;margin:0;color:var(--sm-ink)}
.sm-set-fld{display:flex;flex-direction:column}
.sm-set-lbl{display:block;font-size:15px;font-weight:600;margin:0 0 8px;padding:0;color:var(--sm-ink)}
.sm-set-hint{font-size:14px;color:var(--sm-muted);margin:8px 0 0;line-height:1.45}
.sm-set-row{display:flex;gap:8px}
.sm-set-row>.form-control{flex:1;min-width:0}
.sm-set-phone>select.form-control{flex:0 0 140px;max-width:140px}
.btn.sm-set-btn-inline{flex:none;width:auto;padding:0 20px;min-height:48px}
.btn.sm-set-btn-start{align-self:flex-start;width:auto;padding:0 20px;min-height:48px;margin-top:24px}
.btn.sm-set-save{width:100%;min-height:48px}
.sm-set-note{background:var(--sm-tint);border-radius:12px;padding:16px 16px;font-size:15px;line-height:1.5}
.sm-set-2col{display:flex;flex-direction:column;gap:24px}
.sm-set-opts{display:flex;flex-direction:column;gap:8px}
.sm-set-opt{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 16px;margin:0;border:1px solid var(--sm-field-border);border-radius:var(--sm-radius-field);background:var(--surface-0);font-size:16px;cursor:pointer;font-weight:400}
.sm-set-opt:has(input:checked){border:2px solid var(--sm-primary);background:var(--sm-tint);padding:12px 12px}
.sm-set-opt input[type=radio]{width:20px;height:20px;margin:0;accent-color:var(--sm-primary);flex:none;position:static;opacity:1}
.sm-set-opt strong{display:block;font-weight:700}
.sm-set-opt-sub{display:block;color:var(--sm-muted);font-size:15px;line-height:1.35}
.sm-set-status{display:flex;flex-direction:column;gap:12px}
.sm-set-pills,.sm-set-actions{display:flex;gap:8px;flex-wrap:wrap}
.sm-set-pills .sm-pill{display:inline-flex;align-items:center;min-height:28px}
.sm-set-links{display:flex;flex-direction:column}
.sm-set-links a{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 4px;border-top:1px solid var(--sm-line-soft);font-size:16px;font-weight:600;color:var(--sm-ink);text-decoration:none}
.sm-set-links a:first-child{border-top:0}
.sm-set-meta{display:inline-flex;align-items:center;gap:8px;color:var(--sm-muted);font-weight:500;font-size:14px}
.sm-set-chev{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (min-width:768px){
.sm-set-2col{flex-direction:row;gap:16px}
.sm-set-2col>.sm-set-fld{flex:1;min-width:0}
.sm-set-opts-3{flex-direction:row}
.sm-set-opts-3 .sm-set-opt{flex:1;justify-content:center;padding:0 8px}
.sm-set-opts-3 .sm-set-opt:has(input:checked){padding:0 8px}
.btn.sm-set-save{width:auto;align-self:flex-start;min-width:160px}
}

/* Item 9: Edit my profile (boards EditProfile / EditProfileDesktop, 1 Nov), on the Settings card styles above. */
.sm-edit-see{font-weight:700;font-size:15px;text-decoration:underline;display:inline-flex;align-items:center;min-height:44px}
.sm-edit-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0} /* owner 10 Nov: no box behind the buttons; they sit on the page, 8 px apart both ways, in line with the cards, spaced like the other blocks (the page's own gap) */
.sm-edit-chips a{display:inline-flex;align-items:center;height:40px;padding:0 16px;border-radius:var(--sm-radius-pill);border:1px solid var(--sm-disabled-line);background:var(--surface-0);font-size:14px;font-weight:600;color:var(--sm-primary);text-decoration:none;flex:none}
.sm-set-notice{background:var(--sm-attention-fill);border:1px solid var(--sm-attention-line);border-radius:12px;padding:16px 16px;font-size:15px;line-height:1.5;color:var(--sm-ink)}
.sm-edit-form{display:flex;flex-direction:column;gap:0}
.sm-edit-form>.btn.sm-set-save{margin-top:8px}
.sm-edit-section .form-group{margin-bottom:24px!important}
.sm-edit-section .row{margin-left:0;margin-right:0}
.sm-edit-section .row>[class*=col-]{padding-left:0;padding-right:0}
.sm-edit-section .form-label,.sm-edit-section legend.form-label,.sm-edit-section .form-group>label,.sm-edit-section fieldset>legend{display:block;font-size:15px;font-weight:600;margin:0 0 8px;color:var(--sm-ink)}
.sm-edit-section label>span.text-danger,.sm-edit-section legend>span.text-danger{display:none}
.sm-edit-section .form-check.form-check-inline{position:relative;display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 16px;margin:0 0 8px;border:1px solid var(--sm-field-border);border-radius:var(--sm-radius-field);background:var(--surface-0);width:100%}
.sm-edit-section .form-check.form-check-inline:has(input:checked){border:2px solid var(--sm-primary);background:var(--sm-tint);padding:12px 12px}
.sm-edit-section .form-check-input{position:static;margin:0;width:20px;height:20px;accent-color:var(--sm-primary);flex:none}
.sm-edit-section .form-check-label{flex:1;font-size:16px;cursor:pointer}
.sm-edit-section .form-check-label::after{content:"";position:absolute;inset:0}
.sm-edit-section.sm-sec-marriage-family div:has(>.form-check-inline){display:flex;gap:8px}
.sm-edit-section.sm-sec-marriage-family div:has(>.form-check-inline)>.form-check-inline{flex:1;justify-content:center;padding:0 8px;margin:0}
.sm-edit-section.sm-sec-marriage-family div:has(>.form-check-inline)>.form-check-inline:has(input:checked){padding:0 8px}
.sm-edit-section.sm-sec-marriage-family #marital-options{display:flex;flex-direction:column;gap:8px;margin:0}
.sm-edit-section.sm-sec-marriage-family #marital-options>div{max-width:100%;flex:none;width:100%;padding:0;margin:0!important}
.sm-edit-section.sm-sec-marriage-family .marital-card{position:relative;display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 16px;margin:0;border:1px solid var(--sm-field-border);border-radius:var(--sm-radius-field);background:var(--surface-0);cursor:pointer}
.sm-edit-section.sm-sec-marriage-family .marital-card:has(input:checked){border:2px solid var(--sm-primary);background:var(--sm-tint);padding:12px 12px}
.sm-edit-section.sm-sec-marriage-family .marital-card input{position:static;opacity:1;width:20px;height:20px;margin:0;accent-color:var(--sm-primary);flex:none}
.sm-edit-section.sm-sec-marriage-family .marital-option{border:0!important;padding:0!important;margin:0;background:transparent!important;box-shadow:none!important;text-align:left!important}
.sm-edit-section.sm-sec-marriage-family .marital-option .small{font-size:16px!important;font-weight:400!important}
.sm-lang-picker{display:flex;flex-direction:column;gap:8px}
.sm-lang-chips{display:flex;flex-wrap:wrap;gap:8px}
.sm-lang-chips:empty{display:none}
.sm-chip{display:inline-flex;align-items:center;gap:2px;height:40px;padding:0 4px 0 16px;border-radius:var(--sm-radius-pill);background:var(--sm-tint);font-size:15px;font-weight:600;color:var(--sm-ink)}
.sm-chip button{width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:var(--sm-primary);font:inherit;font-size:20px;line-height:1;cursor:pointer}
.sm-chip button:focus-visible{outline:2px solid var(--sm-primary);outline-offset:1px}
@media (min-width:768px){
.sm-edit-section .row{display:flex;gap:16px}
.sm-edit-section .row>.col-md-6{flex:1;max-width:none}
.sm-edit-section.sm-sec-marriage-family #marital-options{flex-direction:row}
.sm-edit-section.sm-sec-marriage-family #marital-options>div{flex:1;width:auto}
.sm-edit-section .form-check.form-check-inline{width:auto}
}

.sm-edit-section fieldset.bg-light,.sm-edit-section .sub-question.bg-light{background:none!important;border:0!important;padding:0!important;border-radius:0!important}
.sm-edit-section.sm-sec-marriage-family div:has(>.form-check-inline)>.form-check-inline{flex:1 1 0;min-width:0}
.sm-edit-section.sm-sec-marriage-family div:has(>.form-check-inline)>.form-check-inline .form-check-label{flex:0 1 auto;line-height:1.25;padding:8px 0}
.sm-edit-section.sm-sec-marriage-family div:has(>.form-check-inline)>.form-check-inline{gap:8px}
.sm-edit-section.sm-sec-marriage-family div:has(>.form-check-inline)>.form-check-inline .form-check-label{min-width:0;overflow-wrap:anywhere}
.sm-edit-section fieldset{margin-bottom:24px!important}
.sm-edit-section.sm-sec-deen .sm-edit-form>.form-group:has([name=scholar_1]){margin-bottom:8px!important}
.sm-edit-section.sm-sec-deen .sm-edit-form>.form-group:has([name=scholar_2]){margin-bottom:8px!important}
.sm-edit-form>.sm-set-note{margin:0 0 24px}
.sm-emoji{display:inline-block;margin-right:var(--space-1,4px);font-size:1em;line-height:1}/* R-134 A: approved emoji, text size, 4px before the words */

/* ── Item 17 step 4 · group 1 · Sign-up (R-133; UI guide §1 spacing contract, §3 type, §5 forms, §8 page anatomy).
   Gaps live on the parent (flex / grid gap); the children's old margins are zeroed. ── */
.sm-signup{padding-top:var(--space-8)!important;padding-bottom:var(--space-12)!important;font-size:16px;line-height:24px}
.sm-signup .sm-signup-title{font-size:26px;line-height:32px;font-weight:800;margin:0 0 var(--space-2)}
.sm-signup .sm-signup-sub{font-size:16px;line-height:24px;margin:0 0 var(--space-6)}
.sm-signup .sm-signup-intro{margin-bottom:var(--space-4)}
.sm-signup .sm-trust.compact{padding:var(--space-5);font-size:16px;line-height:24px}
.sm-signup .sm-trust.compact{display:flex;flex-direction:column;gap:var(--space-3)}
.sm-signup .sm-trust.compact > h2{font-size:18px;line-height:24px;font-weight:700}
.sm-signup .sm-trust.compact > *{margin-top:0!important;margin-bottom:0!important}
.sm-signup .sm-trust.compact .sm-trust-text{display:block;margin-top:var(--space-2);font-size:14px;line-height:20px}
.sm-signup .sm-signup-card{padding:var(--space-5)}
#reg-form{display:flex;flex-direction:column;gap:var(--space-5)}
#reg-form > *,#reg-form .form-group,#reg-form .sm-ticks > .mb-3{margin-top:0!important;margin-bottom:0!important}
#reg-form > .row{display:flex;flex-direction:column;gap:var(--space-5);margin-left:0;margin-right:0}
#reg-form > .row > [class*="col-"]{flex:0 0 auto;max-width:100%;width:100%;padding-left:0;padding-right:0}
#reg-form > .row > [class*="col-"]:empty{display:none}
#reg-form .sm-fieldset > .row{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-3);margin:0}
#reg-form .sm-fieldset > .row > .col-6{max-width:none;padding:0}
#reg-form .seeking-option{padding:var(--space-5) var(--space-3)!important;gap:var(--space-1)}
#reg-form .seeking-option .font-weight-bold{font-size:16px;line-height:24px;font-weight:700}
#reg-form .seeking-option small{font-size:14px;line-height:20px;color:var(--ink-500)}
#reg-form .form-label{display:block;font-size:16px;line-height:24px;font-weight:600;color:var(--ink-900);margin:0 0 var(--space-2)}
#reg-form .form-group > small,#reg-form .invalid-feedback{display:block;margin-top:var(--space-2);font-size:14px;line-height:20px}
#reg-form .form-group > small.text-muted{color:var(--ink-500)!important}
#reg-form .sm-ticks{display:flex;flex-direction:column;gap:var(--space-1)}
#reg-form .sm-ticks .aiz-checkbox{display:block;min-height:44px;margin:0;padding-top:calc((44px - 24px) / 2);padding-bottom:calc((44px - 24px) / 2);font-size:16px;line-height:24px}
#reg-form .sm-ticks .aiz-checkbox > input{top:var(--space-3)}
#reg-form .sm-ticks .aiz-checkbox > span.opacity-60{opacity:1;color:var(--ink-900)}
#reg-form .sm-notice-amber{padding:var(--space-4);font-size:16px;line-height:24px}
#reg-form > #contact-details-warning + div{margin-top:var(--space-1)!important}
@media (min-width:1024px){
  .sm-signup .sm-signup-title{font-size:32px;line-height:40px}
  .sm-signup .sm-signup-intro{margin-bottom:0}
  .sm-signup .sm-signup-card{padding:var(--space-6)}
}

/* ── Item 17 step 4 · group 1 · Profile wizard, all five steps (R-133; UI guide §1, §3, §5, §8). ── */
.sm-wizard{padding-top:var(--space-8)!important;padding-bottom:var(--space-12)!important;font-size:16px;line-height:24px}
.sm-wizard .sm-wiz-step{margin:0 0 var(--space-4)!important}
.sm-wizard .sm-wiz-step p,.sm-wizard .progress + div .small{font-size:14px!important;line-height:20px;margin:0}
.sm-wizard .progress + div{margin-top:var(--space-2)!important}
.sm-wizard .progress ~ .card{margin-top:var(--space-6);border:1px solid var(--line-300)!important;border-radius:var(--radius-lg)!important;box-shadow:none!important}
.sm-wizard .card > .card-header{padding:var(--space-5) var(--space-5) 0!important;border:0}
.sm-wizard .card > .card-body{padding:var(--space-6) var(--space-5) var(--space-5)!important}
.sm-wizard .sm-wizard-title{font-size:26px;line-height:32px;font-weight:800}
.sm-wizard .card-body > .alert{padding:var(--space-4);font-size:16px;line-height:24px;margin:0 0 var(--space-6)!important;border-radius:var(--radius-md)}
.sm-wizard .card-body > .alert.small{font-size:16px!important;line-height:24px}
.sm-wizard .card-body > form{display:flex;flex-direction:column;gap:var(--space-5)}
.sm-wizard .card .card-body > form > *,.sm-wizard .card .card-body > form > .form-group,.sm-wizard .card .card-body > form > fieldset.form-group,.sm-wizard .card .card-body > form .row > [class*="col-"] > .form-group{margin-top:0!important;margin-bottom:0!important}
.sm-wizard .card-body > form .row{row-gap:var(--space-5)}
.sm-wizard .card .form-label,.sm-wizard .card legend.form-label{font-size:16px!important;line-height:24px!important;font-weight:600;color:var(--ink-900);margin-bottom:var(--space-2)}
.sm-wizard .card .form-text,.sm-wizard .card small.text-muted{display:block;margin-top:var(--space-2)!important;font-size:14px!important;line-height:20px;color:var(--ink-500)!important}
.sm-wizard .card .small,.sm-wizard .card small{font-size:14px!important;line-height:20px}
.sm-wizard .card-body > form > .d-flex:last-child{margin-top:var(--space-1)!important}
.sm-wizard #marital-options{display:flex;flex-wrap:wrap;gap:var(--space-2);margin:0}
.sm-wizard #marital-options > [class*="col-"]{flex:0 0 auto;width:auto;max-width:none;padding:0;margin:0!important}
.sm-wizard .marital-card{position:relative;display:block;margin:0!important}
.sm-wizard .marital-card .marital-option{margin:0!important;border:1px solid var(--ink-400)!important;border-radius:var(--radius-md)!important}
.sm-wizard .marital-card .marital-option{display:flex;align-items:center;min-height:48px;padding:var(--space-3) var(--space-4) var(--space-3) 44px!important;text-align:left!important}
.sm-wizard .marital-card .marital-option .small{font-size:16px!important;line-height:24px;font-weight:400!important}
.sm-wizard .marital-card .marital-radio:checked + .marital-option{border-color:var(--brand-700)!important;background:var(--brand-100)!important;box-shadow:inset 0 0 0 1px var(--brand-700)}
.sm-wizard .marital-card .marital-radio{left:var(--space-3);top:50%;transform:translateY(-50%);z-index:1}
@media (min-width:1024px){
  .sm-wizard .card > .card-header{padding:var(--space-6) var(--space-6) 0!important}
  .sm-wizard .card > .card-body{padding:var(--space-6)!important}
  .sm-wizard .sm-wizard-title{font-size:32px;line-height:40px}
}

/* ── Item 17 step 4 · group 2 · Dashboard, all three states (R-133; UI guide §1, §3, §6, §8). ── */
.sm-dash{display:flex;flex-direction:column;gap:var(--space-4);font-size:16px;line-height:24px}
.sm-dash > *{margin-top:0!important;margin-bottom:0!important}
.sm-page-head{display:flex;flex-direction:column;gap:var(--space-2)}
.sm-dash > .sm-page-head{margin-bottom:var(--space-2)!important}
.sm-page-head > *{margin:0!important}
.sm-dash .sm-dash-title{font-size:26px;line-height:32px;font-weight:800;color:var(--ink-900)}
.sm-page-note{font-size:16px;line-height:24px;color:var(--ink-500)}
.sm-dash .card{border-radius:var(--radius-lg);box-shadow:none}
.sm-dash .card:not(.sm-verify-card){border:1px solid var(--line-300)}
.sm-dash .card > .card-body{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-5)}
.sm-dash .card > .card-body > *{margin-top:0!important;margin-bottom:0!important}
.sm-dash .card > .card-body > h2:first-child,.sm-dash .card > .card-body > .d-flex:first-child{padding-bottom:var(--space-3);border-bottom:1px solid var(--line-200)}
.sm-dash .card h2,.sm-dash .card .h5{font-size:18px;line-height:24px;font-weight:700}
.sm-dash .card .small,.sm-dash .card small{font-size:14px;line-height:20px}
.sm-dash .sm-pill,.sm-dash .sm-badge{font-size:13px!important;line-height:18px;font-weight:600}
.sm-dash .sm-verify-lead,.sm-dash .sm-verify-name{font-size:16px;line-height:24px}
.sm-dash .sm-verify-name{font-weight:600}
.sm-dash .sm-verify-row{padding:var(--space-3) 0}
.sm-dash .sm-verify-actions,.sm-dash .sm-dash-actions{gap:var(--space-3)}
.sm-dash .sm-dash-actions{margin-top:var(--space-1)!important}
.sm-dash .sm-verify-actions{margin-top:var(--space-4)}
.sm-dash .sm-verify-rows{margin-top:var(--space-2)}
.sm-dash .card > .card-body > .sm-label-verified,.sm-dash .card > .card-body > .sm-pill{align-self:flex-start}
.sm-dash .sm-next-card{display:flex;flex-direction:column;gap:var(--space-2)}
.sm-dash .sm-next-card > *{margin:0!important}
.sm-dash .sm-next-title{font-size:20px;line-height:26px}
.sm-dash .sm-next-title span{font-size:inherit}
.sm-dash .sm-plan-line,.sm-dash .sm-plan-line a{font-size:16px;line-height:24px}
@media (min-width:1024px){
  .sm-dash .sm-next-title{font-size:22px;line-height:28px}
  .sm-dash{gap:var(--space-6)}
  .sm-dash > .sm-page-head{margin-bottom:0!important}
  .sm-dash .sm-dash-title{font-size:32px;line-height:40px}
  .sm-dash .card > .card-body{padding:var(--space-6)}
}

/* ── Item 17 step 4 · group 3 · Browse (R-133; UI guide §1, §6 Lists of members, §8 page anatomy). ── */
.sm-browse-head{display:flex;flex-direction:column;gap:var(--space-2);margin-bottom:var(--space-6)!important}
.sm-browse-head > *{margin:0!important}
.sm-browse-title{font-size:26px;line-height:32px;font-weight:800}
.sm-browse-count{font-size:16px;line-height:24px;margin:0}
.sm-browse-card{padding:var(--space-5)!important;display:flex;flex-direction:column;gap:var(--space-3)}
.sm-browse-card > *{margin:0!important}
.sm-browse-card .sm-browse-card-head{display:flex;align-items:center;gap:var(--space-3)}
.sm-browse-card .sm-browse-card-head .sm-avatar{width:48px!important;height:48px!important;flex:0 0 48px;font-size:20px!important;line-height:48px}
.sm-browse-card-name{font-size:18px;line-height:24px;font-weight:700;margin:0}
.sm-browse-card-place{font-size:14px;line-height:20px;margin:0}
.sm-browse-card-line{font-size:16px;line-height:24px}
.sm-browse-card > .sm-browse-card-line{margin-bottom:var(--space-1)!important}
.sm-browse-card > .sm-like-btn{margin-top:auto!important}
@media (min-width:1024px){
  .sm-browse-title{font-size:32px;line-height:40px}
  .sm-browse-card{padding:var(--space-6)!important}
}

/* ── Item 17 step 4 · group 5 · Edit my profile (R-133; UI guide §1, §3, §5, §6, §8). ── */
.sm-edit{display:flex;flex-direction:column;gap:var(--space-4);font-size:16px;line-height:24px}
.sm-edit > *{margin-top:0!important;margin-bottom:0!important}
.sm-edit > .sm-set-head{display:flex;flex-direction:column;gap:var(--space-2);margin-bottom:var(--space-2)!important}
.sm-edit > .sm-set-head > *{margin:0!important}
.sm-edit .sm-set-intro,.sm-edit .sm-edit-see{font-size:16px;line-height:24px}
.sm-edit .sm-set-notice{padding:var(--space-4);font-size:16px;line-height:24px}
.sm-edit .sm-edit-section{padding:var(--space-5);display:flex;flex-direction:column;gap:var(--space-3)}
.sm-edit .sm-edit-section > *{margin-top:0!important;margin-bottom:0!important}
.sm-edit .sm-edit-section > .sm-set-ch{padding-bottom:var(--space-3);border-bottom:1px solid var(--line-200)}
.sm-edit .sm-set-h2{font-size:18px;line-height:24px;font-weight:700;margin:0}
.sm-edit .sm-edit-form{display:flex;flex-direction:column;gap:var(--space-5)}
.sm-edit .sm-edit-section .sm-edit-form > *,.sm-edit .sm-edit-section .sm-edit-form > .form-group,.sm-edit .sm-edit-section .sm-edit-form .row > [class*="col-"] > .form-group,.sm-edit .sm-edit-section .sm-edit-form .row > [class*="col-"]{margin-top:0!important;margin-bottom:0!important}
.sm-edit .sm-edit-form .row{row-gap:var(--space-5)}
.sm-edit .sm-edit-section .form-label{font-size:16px!important;line-height:24px!important;font-weight:600;color:var(--ink-900);margin-bottom:var(--space-2)}
.sm-edit .sm-edit-section .form-text,.sm-edit .sm-edit-section small.text-muted{display:block;margin-top:var(--space-2)!important;font-size:14px!important;line-height:20px;color:var(--ink-500)!important}
.sm-edit .sm-edit-section .form-text a{font-size:inherit}
.sm-edit .sm-edit-section .sm-edit-form > .sm-ip-bar,.sm-edit .sm-edit-section .sm-edit-form > .sm-set-save{margin-top:var(--space-1)!important;align-self:stretch} /* R-254: the profile card's Save / Cancel bar too */
@media (min-width:600px){.sm-edit .sm-edit-section .sm-edit-form > .sm-set-save{align-self:flex-start}}
/* Owner 10 Nov: Professional qualifications on Edit my profile and the profile's card. The rows 8 px apart and the "+ Add another"
   text about 12 px under the last row (was 24 px of row margin plus the form's 20 px gap). An
   error shows inside its own row, so room is taken only when one shows. */
.sm-edit .sm-edit-section #qualifications-wrap{display:flex;flex-direction:column;gap:var(--space-2)}
.sm-edit .sm-edit-section #qualifications-wrap > .qualification-row{margin:0!important}
.sm-edit .sm-edit-section .sm-edit-form > .sm-add-another{margin-top:calc(-1 * var(--space-5))!important} /* the button's 44 px tap height puts its text about 12 px under the row */
@media (min-width:1024px){
  .sm-edit{gap:var(--space-6)}
  .sm-edit > .sm-set-head{margin-bottom:0!important}
  .sm-edit .sm-edit-section{padding:var(--space-6)}
}

/* ── Item 17 step 4 · group 6 · Settings (R-133; UI guide §1, §3, §5, §6, §8). ── */
.sm-set:not(.sm-edit){display:flex;flex-direction:column;gap:var(--space-4);font-size:16px;line-height:24px}
.sm-set:not(.sm-edit) > *{margin-top:0!important;margin-bottom:0!important}
.sm-set:not(.sm-edit) > .sm-set-head{display:flex;flex-direction:column;gap:var(--space-2);margin-bottom:var(--space-2)!important}
.sm-set:not(.sm-edit) > .sm-set-head > *{margin:0!important}
.sm-set:not(.sm-edit) .sm-set-intro{font-size:16px;line-height:24px}
.sm-set:not(.sm-edit) .sm-set-card{padding:var(--space-5);display:flex;flex-direction:column;gap:var(--space-3)}
.sm-set:not(.sm-edit) .sm-set-card > *{margin-top:0!important;margin-bottom:0!important}
.sm-set:not(.sm-edit) .sm-set-card > .sm-set-h2:first-child,.sm-set:not(.sm-edit) .sm-set-card > .sm-set-ch:first-child{padding-bottom:var(--space-3);border-bottom:1px solid var(--line-200)}
.sm-set:not(.sm-edit) .sm-set-h2{font-size:18px;line-height:24px;font-weight:700;margin:0}
.sm-set:not(.sm-edit) .sm-set-fld{display:flex;flex-direction:column;gap:var(--space-2)}
.sm-set:not(.sm-edit) .sm-set-fld > *{margin-top:0!important;margin-bottom:0!important}
.sm-set:not(.sm-edit) .sm-set-fld > .btn{margin-top:var(--space-2)!important;align-self:flex-start}
.sm-set:not(.sm-edit) .sm-set-lbl{font-size:16px;line-height:24px;font-weight:600;color:var(--ink-900)}
.sm-set:not(.sm-edit) .sm-set-hint{font-size:14px;line-height:20px;color:var(--ink-500)}
.sm-set:not(.sm-edit) .sm-set-note{padding:var(--space-4);font-size:16px;line-height:24px}
.sm-set:not(.sm-edit) form.sm-set-inner{display:flex;flex-direction:column;gap:var(--space-5)}
.sm-set:not(.sm-edit) form.sm-set-inner > *{margin-top:0!important;margin-bottom:0!important}
.sm-set:not(.sm-edit) form.sm-set-inner > .sm-set-save{margin-top:var(--space-1)!important}
.sm-set:not(.sm-edit) .sm-pill{font-size:13px!important;line-height:18px}
@media (min-width:1024px){
  .sm-set:not(.sm-edit){gap:var(--space-6)}
  .sm-set:not(.sm-edit) > .sm-set-head{margin-bottom:0!important}
  .sm-set:not(.sm-edit) .sm-set-card{padding:var(--space-6)}
}

/* ── Item 17 step 4 · group 7 · Likes (R-133; UI guide §1, §6 Empty states, §8 page note). ── */
.sm-likes-page{display:flex;flex-direction:column;gap:var(--space-4);font-size:16px;line-height:24px}
.sm-likes-page > *{margin-top:0!important;margin-bottom:0!important}
.sm-likes-page > .sm-page-head{margin-bottom:var(--space-2)!important}
.sm-empty{display:flex;flex-direction:column;align-items:center;gap:var(--space-4);padding:var(--space-12) var(--space-5);text-align:center}
.sm-empty > p{margin:0;font-size:16px;line-height:24px;color:var(--ink-700)}
.sm-likes-page > .sm-empty{background:var(--surface-0);border:1px solid var(--line-200);border-radius:var(--radius-lg)}
@media (min-width:1024px){
  .sm-likes-page{gap:var(--space-6)}
  .sm-likes-page > .sm-page-head{margin-bottom:0!important}
}

/* ── Item 17 step 4 · group 8 · Received (R-133; UI guide §1, §6 Empty states, §8 page note). ── */
.sm-received-page{display:flex;flex-direction:column;gap:var(--space-4);font-size:16px;line-height:24px}
.sm-received-page > *{margin-top:0!important;margin-bottom:0!important}
.sm-received-page > .sm-page-head{margin-bottom:var(--space-2)!important}
#received-page{border:1px solid var(--line-200);border-radius:var(--radius-lg);box-shadow:none}
#received-page > .card-body{padding:var(--space-5)}
#received-page > .card-body > p.small{font-size:14px;line-height:20px;color:var(--ink-500);margin-top:var(--space-4)!important}
#received-page .sm-empty{padding:var(--space-8) 0}
@media (min-width:1024px){
  .sm-received-page{gap:var(--space-6)}
  .sm-received-page > .sm-page-head{margin-bottom:0!important}
  #received-page > .card-body{padding:var(--space-6)}
}

/* ── Item 17 step 4 · group 9 · Help and Contact us (R-133; UI guide §1, §3, §5, §8). ── */
.sm-help{padding-top:var(--space-8)!important;padding-bottom:var(--space-12)!important;font-size:16px;line-height:24px}
.sm-help > .container{max-width:var(--width-read)!important}
.sm-help h1{font-size:26px!important;line-height:32px;font-weight:800!important;margin:0 0 var(--space-2)!important}
.sm-help h1 + p{font-size:16px;line-height:24px;color:var(--ink-500);margin:0 0 var(--space-6)!important}
.sm-help #help-topics h2{font-size:18px!important;line-height:24px;font-weight:700!important;margin:0 0 var(--space-2)!important}
.sm-help #help-topics ul{column-gap:var(--space-3);row-gap:0}
.sm-help .sm-help-cat{font-size:20px!important;line-height:26px;letter-spacing:0;text-transform:none;color:var(--ink-900);margin:0 0 var(--space-3)!important}
.sm-help .help-category{margin-bottom:var(--space-8)!important}
#contact-title{margin-bottom:var(--space-6)!important}
#contact-title + .card{border:1px solid var(--line-300);border-radius:var(--radius-lg);box-shadow:none}
#contact-title + .card > .card-body{padding:var(--space-5)}
#contact-title + .card .fs-13{font-size:14px!important;line-height:20px}
#contact-title + .card form{display:flex;flex-direction:column;gap:var(--space-5)}
#contact-title + .card form > *{margin-top:0!important;margin-bottom:0!important}
#contact-title + .card form > .alert{padding:var(--space-4);font-size:16px;line-height:24px}
#contact-title + .card form > .btn{margin-top:var(--space-1)!important;align-self:stretch}
@media (min-width:600px){#contact-title + .card form > .btn{align-self:flex-start}}
#contact-title + .card legend,#contact-title + .card form .form-group > label.fw-600{font-size:16px;line-height:24px;font-weight:600;margin-bottom:var(--space-2)!important}
@media (min-width:1024px){
  .sm-help h1{font-size:32px!important;line-height:40px}
  .sm-help .sm-help-cat{font-size:22px!important;line-height:28px}
  #contact-title + .card > .card-body{padding:var(--space-6)}
}

/* ── Item 17 step 4 · group 10 · Legal pages (R-133; UI guide §1, §3, §7 notices, §8; reading width 720). ── */
.sm-legal{padding-top:var(--space-8)!important;padding-bottom:var(--space-12)!important;font-size:16px;line-height:24px}
.sm-legal > .container{max-width:var(--width-read)!important}
.sm-legal #legal-draft-banner{padding:var(--space-4);font-size:16px;line-height:24px;margin:0 0 var(--space-6)!important;border-radius:var(--radius-md)}
.sm-legal #legal-draft-banner .small{font-size:14px;line-height:20px}
.sm-legal h1{font-size:26px!important;line-height:32px;font-weight:800!important;margin:0 0 var(--space-2)!important}
.sm-legal #legal-version{font-size:14px;line-height:20px;color:var(--ink-500);margin:0 0 var(--space-6)!important}
.sm-legal #legal-contents{padding:var(--space-5)!important;border-radius:var(--radius-lg)!important;border-color:var(--line-200)!important;margin:0 0 var(--space-8)!important}
.sm-legal #legal-contents h2{font-size:18px!important;line-height:24px;font-weight:700!important;margin:0 0 var(--space-2)!important}
.sm-legal #legal-contents ul{font-size:16px;line-height:24px}
.sm-legal .legal-body h2{margin-top:var(--space-8)}

@media (min-width:1024px){
  .sm-legal h1{font-size:32px!important;line-height:40px}
  .sm-legal #legal-contents{padding:var(--space-6)!important}
}

/* ── Item 17 step 4 · group 1 follow-ups (owner 1 Nov): wizard header links like the member header. ── */
#wizard-minimal-header .btn-link{text-decoration:none!important}
#wizard-minimal-header .btn-link:hover,#wizard-minimal-header .btn-link:focus-visible{text-decoration:underline!important}

/* ── Item 17 step 4 · group 13 · Your plan and receipts (R-133; UI guide §6 Tables, Label/value rows, Empty states; §8 page note). ── */
.sm-pay-page{display:flex;flex-direction:column;gap:var(--space-4);font-size:16px;line-height:24px}
.sm-pay-page > *{margin-top:0!important;margin-bottom:0!important}
.sm-pay-page > .sm-page-head{margin-bottom:var(--space-2)!important}
.sm-pay-card > .sm-empty{padding:var(--space-8) 0}
.sm-pay-card{border:1px solid var(--line-300);border-radius:var(--radius-lg);box-shadow:none;padding:var(--space-5)}
.sm-pay-table{width:100%;font-size:16px;line-height:24px;font-variant-numeric:tabular-nums;color:var(--ink-900)}
.sm-pay-page .sm-pay-table th{font-size:14px;line-height:20px;font-weight:600;color:var(--ink-500);border-top:0!important;border-bottom:1px solid var(--line-200)!important;padding:0 var(--space-4) var(--space-3) 0;white-space:nowrap;vertical-align:bottom}
.sm-pay-page .sm-pay-table td{padding:var(--space-3) var(--space-4) var(--space-3) 0;border-top:1px solid var(--line-100);vertical-align:middle}
.sm-pay-table th:last-child,.sm-pay-table td:last-child{padding-right:0}
.sm-pay-table .sm-num,.sm-pay-table .sm-act{text-align:right}
.sm-pay-ref{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px;white-space:nowrap}
.sm-pay-receipt{display:inline-flex;align-items:center;min-height:44px;font-weight:600;white-space:nowrap}
.sm-pay-table td.sm-num{white-space:nowrap}
.sm-pay-plan{display:block}
.sm-pay-meta{display:block;margin-top:var(--space-1);font-size:14px;line-height:20px;color:var(--ink-500)}
@media (min-width:768px){
  .sm-pay-table .sm-pay-m{display:none}
  .sm-pay-table tbody tr:first-child td{border-top:0}
}
@media (max-width:767.98px){
  .sm-pay-list{padding:0;border:0;background:transparent}
  .sm-pay-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .sm-pay-table,.sm-pay-table tbody,.sm-pay-table tr,.sm-pay-table td{display:block;width:100%}
  .sm-pay-table tbody{display:flex;flex-direction:column;gap:var(--space-4)}
  .sm-pay-table tr{background:var(--surface-0);border:1px solid var(--line-200);border-radius:var(--radius-lg);padding:var(--space-1) var(--space-5)}
  .sm-pay-page .sm-pay-table td{display:flex;justify-content:space-between;align-items:center;gap:var(--space-4);padding:var(--space-3) 0;border-top:1px solid var(--line-100);text-align:right}
  .sm-pay-table td::before{content:attr(data-label);color:var(--ink-500);text-align:left;flex:none}
  .sm-pay-table tr td:first-child{border-top:0}
  .sm-pay-table td.sm-act{justify-content:flex-start;padding:var(--space-1) 0}
  .sm-pay-table td.sm-act::before{content:none}
  .sm-pay-meta{display:none}
}
@media (min-width:1024px){
  .sm-pay-page{gap:var(--space-6)}
  .sm-pay-page > .sm-page-head{margin-bottom:0!important}
  .sm-pay-card{padding:var(--space-6)}
}

/* ── Adviser 1 Nov · the info notice (brand-100) and the wizard's "chose not to share" line (UI guide §7 notices). ── */
.sm-notice-info{background:var(--brand-100);border:0;text-align:left}
.sm-notice-info .sm-notice-text{color:var(--ink-900)}
.sm-wiz-notice{margin:0 0 var(--space-5)!important}
hr.my-4:has(+ #consent-skipped-note){display:none} /* no extra space above the notice */

/* ── Item 14 (T-829) · Edit my profile: the kunyah prefix joined to its field, as on the board EditProfile. ── */
.sm-edit-form .input-group{gap:0;flex-wrap:nowrap}
.sm-edit-form .input-group > .input-group-prepend > .input-group-text{height:48px;padding:0 var(--space-4);border:1px solid var(--ink-400);border-right:0;border-radius:var(--radius-md) 0 0 var(--radius-md)!important;background:var(--surface-50);color:var(--ink-900);font-size:16px;font-weight:700}
.sm-edit-form .input-group > .input-group-prepend + .form-control{border-radius:0 var(--radius-md) var(--radius-md) 0!important}

/* ── Accessibility pass 1 (UI guide §11; queue fallback): nothing under 13 px, 44 px targets on phones. ── */
.aiz-mobile-bottom-nav .fs-10{font-size:13px!important;line-height:18px}
.sm-edit-form .hint.small{font-size:14px!important;line-height:20px}
.sm-help .small{font-size:14px!important;line-height:20px}
.sm-legal .legal-note{font-size:13px!important;line-height:18px}
.sm-chip > button{min-width:44px;min-height:44px;margin:0 -4px 0 -8px}
/* R-521: every pill with a remove button (lang_picker.js: Languages spoken, and Your backgrounds for Mixed heritage) uses
   .sm-chip-x: a drawn cross centred both ways in a 32px circle, with a 44px tap area. Long names wrap inside the pill
   instead of being cut off at phone width. Browse's filter chips have no remove button and are unchanged.
   The rule above stays for any other chip button; .sm-chip .sm-chip-x is more specific, so the x is not pulled off centre. */
.sm-lang-chips .sm-chip{height:auto;min-height:40px;max-width:100%;padding:4px 4px 4px 16px;gap:8px;white-space:normal;overflow-wrap:anywhere;line-height:1.3;box-sizing:border-box}
.sm-chip .sm-chip-x{position:relative;flex:0 0 32px;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--sm-primary);line-height:0;cursor:pointer}
.sm-chip .sm-chip-x::before{content:"";position:absolute;inset:-6px;border-radius:50%}
.sm-chip .sm-chip-x svg{display:block;width:14px;height:14px;flex:none}
.sm-chip .sm-chip-x:hover{background:var(--surface-0)}
.sm-chip .sm-chip-x:focus-visible{outline:2px solid var(--sm-primary);outline-offset:1px}
.aiz-mobile-bottom-nav .fs-10.opacity-60:not(.opacity-100){opacity:1!important;color:var(--ink-500)!important} /* 60% ink was 4.4:1; ink-500 is 6.4:1 */
#wizard-minimal-footer .small{font-size:14px!important;line-height:20px}

/* ── Owner 1 Nov 17:20: Browse filter chips (UI guide §5 "Filter chips"), count and Sort on phones, the phone tab bar. ── */
.sm-chips-row{gap:var(--space-2);padding:0}
.sm-chips-row > .sm-chip{display:inline-flex!important;align-items:center;justify-content:center;gap:var(--space-2);flex:0 0 auto;width:auto;height:44px;min-height:44px;padding:0 var(--space-4)!important;border-radius:999px!important;border:1px solid var(--line-200)!important;background:var(--surface-0)!important;color:var(--ink-900)!important;font-size:16px!important;line-height:20px;font-weight:500!important;white-space:nowrap;margin:0}
.sm-chips-row > .sm-chip > i{font-size:16px;line-height:16px;width:16px;height:16px;margin:0}
.sm-chips-row > .sm-chip:hover,.sm-chips-row > .sm-chip:focus-visible{border-color:var(--brand-700)!important}
.sm-chips-row > .sm-chip.sm-chip-on{background:var(--brand-100)!important;border-color:var(--brand-700)!important;color:var(--brand-700)!important}
@media (min-width:1024px){
  .sm-chips-row > .sm-chip{height:40px;min-height:40px}
}
@media (max-width:599.98px){
  .sm-browse-meta{display:flex;flex-direction:column;align-items:stretch;gap:var(--space-3)}
  .sm-browse-meta > .sm-browse-count{margin:0;white-space:normal}
  .sm-browse-meta > .sm-browse-sort{width:100%;max-width:none;margin:0}
  .sm-browse-meta > .sm-browse-sort select{width:100%}
}
.aiz-mobile-bottom-nav .col > a{display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:var(--space-1);padding:var(--space-2) 0!important}
.aiz-mobile-bottom-nav .col > a > i{display:block;width:24px;height:24px;font-size:24px!important;line-height:24px;margin:0}
.aiz-mobile-bottom-nav .col > a > .sm-tab-avatar{display:flex!important;align-items:center;justify-content:center;width:24px;height:24px;margin:0!important}
.aiz-mobile-bottom-nav .col > a > .fs-10{display:block;margin:0;line-height:18px}
/* R-139: the Hide my profile switch row lines up with the links under it */
#settings-hide.sm-set-toggle{padding-left:var(--space-1);padding-right:var(--space-1)}

/* R-142 (item 18): dashboard card "Your profile this week" and the change pills (UI guide section 7). */
.sm-pstats{display:flex;flex-direction:column;gap:var(--space-3)}
.sm-pstats .sm-pstats-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-4);padding-bottom:var(--space-3);border-bottom:1px solid var(--line-200)}
.sm-pstats .sm-pstats-title{font-size:18px;line-height:24px;font-weight:700;color:var(--ink-900);margin:0}
.sm-pstats .sm-pstats-dates{font-size:14px;line-height:20px;color:var(--ink-500);margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.sm-pstats .sm-pstats-first,.sm-pstats .sm-pstats-note p{margin:0;font-size:16px;line-height:24px;color:var(--ink-900)}
.sm-pstats .sm-pstats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-4)}
.sm-pstats .sm-pstats-item{display:flex;flex-direction:column;gap:var(--space-1);min-width:0}
.sm-pstats .sm-pstats-numrow{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-1);min-height:72px} /* phones: number 40 + 4 + pill 28, with or without the pill */
.sm-pstats .sm-pstats-num{font-size:32px;line-height:40px;font-weight:800;color:var(--ink-900);font-variant-numeric:tabular-nums}
.sm-pstats .sm-pstats-label{font-size:16px;line-height:24px;color:var(--ink-500)}
.sm-pstats .sm-pstats-note{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-4);padding:var(--space-4);border-radius:var(--radius-md);background:var(--brand-100)}
.sm-pstats .sm-pstats-note-text{display:flex;flex-direction:column;gap:var(--space-2)}
.sm-pstats .sm-pstats-note-warning{background:var(--warning-50);border:1px solid var(--warning-400)}
.sm-pstats .sm-pstats-note a{font-size:16px;line-height:24px;font-weight:700;color:var(--brand-700);text-decoration:underline}
.sm-pstats .sm-pstats-small{margin:0;font-size:14px;line-height:20px;color:var(--ink-500)}
.sm-cpill{display:inline-flex;align-items:center;height:28px;padding:0 var(--space-3);border-radius:var(--radius-pill);font-size:13px;line-height:18px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.sm-cpill-up{background:var(--success-100);color:var(--success-700)}
.sm-cpill-down{background:var(--danger-100);color:var(--danger-700)}
.sm-cpill-same{background:var(--surface-50);color:var(--ink-700)}
@media (min-width:600px){
  .sm-pstats .sm-pstats-grid{gap:var(--space-6)}
  .sm-pstats .sm-pstats-numrow{flex-direction:row;align-items:center;gap:var(--space-2);min-height:0}
}

/* Item 16 (2 Nov): Your plan pills (guide s.7): Paid is success, Free is neutral. */
.sm-pill-ok{background:var(--success-100);color:var(--success-700)}
.sm-pill-grey{background:var(--surface-50);color:var(--ink-700)}
/* R-143 (1 Nov): read-only value with a Change link (Edit my profile email and mobile), guide s.5 */
.sm-readonly-row{justify-content:space-between;gap:12px}
.sm-readonly-row .sm-readonly-value{min-width:0;overflow-wrap:anywhere}
.sm-readonly-row a{font-weight:600;white-space:nowrap;min-height:44px;display:inline-flex;align-items:center}

/* ── T-829 batch (a) · dashboard to the 1 Nov boards (DashLiveFree/Paid/PaidEnding, DashPending*; guide §12). ── */
.sm-dash-titlerow{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--space-3)}
.sm-dash .sm-dash-titlerow .sm-dash-title{margin:0}
.sm-dash-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-4);align-items:start}
.sm-dash-col{display:flex;flex-direction:column;gap:var(--space-4);min-width:0}
.sm-dash-grid > *,.sm-dash-col > *{margin-top:0!important;margin-bottom:0!important}
.sm-dash .sm-dash-head{display:flex;justify-content:space-between;align-items:baseline;gap:var(--space-3)}
.sm-dash .sm-dash-head h2{margin:0}
.sm-dash .sm-dash-count{font-size:16px;line-height:24px;font-weight:700;color:var(--ink-900);white-space:nowrap}
.sm-dash .card > .card-body > h2.sm-dash-plainhead{padding-bottom:0;border-bottom:0}
.sm-dash .sm-dash-text{font-size:16px;line-height:24px;color:var(--ink-500)}
.sm-dash .sm-dash-strong{color:var(--ink-900);font-weight:700}
.sm-recent-list{list-style:none;margin:0;padding:0}
.sm-recent-item{display:flex;align-items:center;gap:var(--space-4);padding:var(--space-4) 0;border-top:1px solid var(--line-200)}
.sm-recent-av{display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:var(--brand-700);color:var(--surface-0);font-size:16px;font-weight:700}
.sm-recent-main{min-width:0}
.sm-dash .sm-recent-name{margin:0;font-size:16px;line-height:24px;font-weight:700;color:var(--ink-900)}
.sm-dash .sm-recent-meta{margin:0;font-size:14px;line-height:20px;color:var(--ink-500)}
.sm-dash .sm-recent-all{display:inline-flex;align-items:center;align-self:flex-start;min-height:44px;font-weight:700;text-decoration:underline}
.sm-dash .sm-dash-actions .btn{min-height:48px}
@media (min-width:1024px){
  .sm-member-main:has(.sm-dash-grid){max-width:1040px}
  .sm-dash.sm-dash-live,.sm-dash#dashboard-waiting{max-width:1040px}
  .sm-dash-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--space-6)}
  .sm-dash-col{gap:var(--space-6)}
}

/* ── T-829 batch (d) · Received: one card per item (board Received / ReceivedDesktop). ── */
.sm-received-page .sm-received-list{background:transparent!important;border:0!important;box-shadow:none!important}
.sm-received-page .sm-received-list > .card-body{padding:0!important}
.sm-received-list .sm-received-item{background:var(--surface-0);border:1px solid var(--line-300);border-radius:var(--radius-lg);padding:var(--space-5);margin:0 0 var(--space-4)}
@media (min-width:1024px){.sm-received-list .sm-received-item{padding:var(--space-6)}}

/* ── T-829 batch (e) · Upgrade to the board (one plan per row, price on the right; pills on the cards). ── */
.sm-upgrade-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-3)}
.sm-upgrade-head .sm-upgrade-h2{margin:0}
body .sm-pill.sm-upgrade-from{background-color:var(--brand-700)!important;color:var(--surface-0)!important}
.sm-upgrade-plans,.sm-upgrade .sm-upgrade-plans{grid-template-columns:minmax(0,1fr)!important}
.sm-plan-option{align-items:center}
.sm-plan-option-body{flex:1 1 auto;min-width:0}
.sm-plan-option-price{margin-left:auto;white-space:nowrap;font-size:24px}
.sm-plan-option-name .sm-plan-option-save{display:inline-block;margin:0 0 0 var(--space-2);vertical-align:middle}
.sm-upgrade-wrap > .sm-back-link{margin-bottom:var(--space-2)}

/* ── T-829 batch (f) · sign-up wizard to the boards: kunyah prefix inside the field's border, "Remove" and "+ Add another". ── */
.sm-wizard .input-group{flex-wrap:nowrap;gap:0!important}
.sm-wizard .input-group > .input-group-prepend > .input-group-text{border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right:0!important;background:var(--surface-50);color:var(--ink-900);font-weight:700;min-width:64px;justify-content:center}
.sm-wizard .input-group > .form-control{border-top-left-radius:0!important;border-bottom-left-radius:0!important;margin-left:0!important}
.btn.sm-remove-btn{flex:0 0 auto;min-height:48px;padding:0 var(--space-4);font-weight:700}
.btn.sm-add-another,.btn.sm-add-another:disabled{display:inline-flex!important;align-items:center;width:auto!important;min-height:44px;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;font-weight:700;text-decoration:underline;color:var(--brand-700)}
.btn.sm-add-another:disabled{color:var(--ink-500)!important;opacity:1}

/* ── T-829 batch (g) · Contact us: topics two to a row from 768px (board ContactUsDesktop). ── */
@media (min-width:768px){
  #contact-topics.sm-choice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3)}
  #contact-topics.sm-choice-list > .sm-choice{margin:0!important}
}

/* ── A11Y-3 · pages changed in T-829: nothing under the 13 px floor (guide §11). ── */
.sm-received-page .small,.sm-received-page small,.sm-received-page .sm-received-health,.sm-received-page .sm-received-health *{font-size:14px!important;line-height:20px}
.sm-upgrade .small,.sm-upgrade small,.sm-upgrade #checkout-tick-note a{font-size:14px!important;line-height:20px}

/* ── Item 22 A2 (guide s.9): an email address wraps only after "@" or "." (the <wbr> points), never mid-word. ── */
.sm-email{word-break:normal!important;overflow-wrap:normal!important;hyphens:none}
.sm-readonly-row .sm-readonly-value:has(.sm-email){overflow-wrap:normal}

/* ── Item 22 B6 (R-145): Likes "Remove" is a text button with a confirm under the row. ── */
.sm-like-card .sm-like-remove{min-height:44px;padding:0 8px;color:var(--sm-error,var(--danger-700));font-size:15px;font-weight:600;text-decoration:underline}
.sm-like-card .sm-like-remove:focus-visible{outline:3px solid var(--sm-ink,var(--ink-900));outline-offset:2px}
.sm-like-remove-btns .btn{min-height:44px}
/* desktop: the open confirm takes its own full-width line under the row (it squeezed the name at 1280) */
.sm-like-card:has(.sm-like-remove-confirm:not([hidden])){flex-wrap:wrap}
.sm-like-card .sm-like-remove-confirm{order:99}

/* ── Item 23.2 (sweep 28): sign-up email and mobile on phones. Under 480px the field takes the whole row and
      Verify / Change sit under it, full width, 8px gap (the mobile box was squeezed between +44 and Verify). ── */
@media (max-width:479.98px){
  #emailOrPhoneDiv > .input-group,#phoneDiv > .input-group{flex-wrap:wrap}
  #emailOrPhoneDiv > .input-group > .form-control,#phoneDiv > .input-group > .sm-phone{flex:1 1 100%;width:100%;min-width:0}
  #emailOrPhoneDiv > .input-group > .sm-field-action,#phoneDiv > .input-group > .sm-field-action{flex:1 1 100%;width:100%;margin:8px 0 0!important}
}

/* ── Item 23.9 (sweep 33): admin Payments fits its card or scrolls inside it. ── */
#payments-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
#payments-table th,#payments-table td{vertical-align:middle}
/* ── Item 23.12: the lone empty qualification row hides its Remove. ── */
.remove-qualification[hidden]{display:none!important}

/* ── Item 24: Contact us "Company details" block. ── */
.sm-company-details{margin-top:var(--space-6,24px);padding:var(--space-4,16px) var(--space-5,20px);border:1px solid var(--sm-line,var(--line-200));border-radius:12px;background:var(--sm-surface,var(--surface-0))}
.sm-company-h{margin:0 0 var(--space-2,8px);font-size:16px;line-height:1.4;font-weight:700;color:var(--sm-ink,var(--ink-900))}
.sm-company-line{margin:0 0 var(--space-2,8px);font-size:15px;line-height:1.5;color:var(--sm-ink,var(--ink-900))}
/* Item 23.1 follow-up: a long status line wraps inside its pill on phones (it ran off the card at 390). */
.sm-verify-state .sm-badge{white-space:normal;text-align:left;max-width:100%;line-height:1.4}

/* Item 27.A1: the pending card's Send now (full width on phones, guide s.4) and the error notice (guide s.7). */
.sm-notice-error{background:var(--danger-100);color:var(--danger-700);border-radius:var(--radius-md);padding:var(--space-4);font-size:16px;line-height:24px}
@media (max-width:575.98px){.sm-verify-send .btn{width:100%}}

/* Item 28: Contact us, the plain email line under the form (guide s.3 body). */
.sm-contact-email{margin:var(--space-6) 0 0;font-size:16px;line-height:24px;color:var(--ink-900)}

/* Item 29.2 (D7-2): the Info notice (guide s.7): brand-100, ⓘ in brand-700 8px before the text, aligned to the first line */
#wizard-contacts-info .sm-notice-text{display:flex;gap:8px;align-items:flex-start;margin:0;font-size:16px;line-height:24px}
#wizard-contacts-info{padding:var(--space-4);border-radius:12px}
#wizard-contacts-info .sm-notice-icon{color:var(--brand-700);line-height:24px;flex:none}

/* A11Y-4 (guide s.11, 2 Nov): 44px targets for the skip link (when it shows) and the wizard header logo */
.sm-skip-link:focus,.sm-skip-link:focus-visible{min-height:44px;display:inline-flex!important;align-items:center;padding:0 16px}
.sm-wiz-logo{min-height:44px}

/* A11Y-5 (3 Nov, guide s.11): 44px section chips on Edit my profile;
   a 44px tap row for single links (Find my account back link, Our story "View full size"). */
.sm-edit-chips a{height:44px}
.sm-tap44{display:inline-flex;align-items:center;min-height:44px}
.sm-story figcaption a{display:inline-flex;align-items:center;min-height:44px}

/* Item 31.6 (3 Nov, phone checks in emulation at 360 and 390):
   #26 after Remove -> Yes the next row slides up under the finger and a touch screen keeps :hover on it; the theme's
   .btn-link:hover turned that Remove blue, so it looked selected. Remove keeps its own colour on hover, focus and press
   (keyboard focus still gets the :focus-visible outline above).
   Wizard header at 360: "Log out" ran 6px past the edge; tighter link padding below 375px keeps all three in view. */
.sm-like-card .sm-like-remove:hover,.sm-like-card .sm-like-remove:focus,.sm-like-card .sm-like-remove:active{color:var(--sm-error,var(--danger-700));text-decoration:underline;box-shadow:none}
@media (max-width:374.98px){#wizard-minimal-header #wizard-help,#wizard-minimal-header #wizard-logout{padding-left:4px!important;padding-right:4px!important}#wizard-minimal-header #wizard-save-exit{margin-left:2px!important;margin-right:2px!important}}
/* Item 31.1 (rehearsal F1, seen at 390): an error under a field with a Show/Verify button sat beside the field and
   squeezed it to a few pixels; it now goes on its own line under the field. */
.input-group:has(> .invalid-feedback){flex-wrap:wrap}
.input-group > .invalid-feedback{flex:0 0 100%;width:100%}

/* Item 37 (A): Browse cards line up section by section (name block, meta line, action at the bottom); same height in a row */
.sm-browse-grid{align-items:stretch}
.sm-browse-grid>.sm-browse-card{display:flex;flex-direction:column;height:100%}
.sm-browse-grid>.sm-browse-card>.sm-browse-card-action{margin-top:auto!important}
@supports (grid-template-rows:subgrid){
.sm-browse-grid>.sm-browse-card{display:grid;grid-template-rows:subgrid;grid-row:span 3;row-gap:var(--space-3,12px);height:auto}
.sm-browse-grid>.sm-browse-card>.sm-browse-card-action{margin-top:0!important;align-self:end}
}
.sm-browse-grid .sm-browse-card .sm-browse-card-head{align-items:flex-start}
.sm-browse-card-meta{min-width:0}
.sm-browse-card-action{width:100%;min-width:0}
.sm-browse-card-action>.sm-like-btn,.sm-browse-card-action>.sm-liked-status{width:100%;height:48px;min-height:48px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;margin:0;border-radius:10px;border-width:1.5px;border-style:solid}
.sm-browse-card-action>.sm-liked-status{border:0} /* Item 42 B (owner Item 41): Liked has no border, like the guide's pills */
.sm-nowrap{white-space:nowrap}

/* Item 39 (B): the action sits 16px below the meta line (UI guide: text -> button 16 = the card's 12px row gap + 4px) */
.sm-browse-grid>.sm-browse-card>.sm-browse-card-action{padding-top:var(--space-1,4px)}

/* Item 47.1 (Adviser 4 Nov, UI guide s.8): Log in, Forgot your password, Forgot your email address and Reset password share one card: 100% wide up to 440 px, centred. */
.sm-auth-card{width:100%;max-width:440px;margin-left:auto;margin-right:auto}
/* The Remember me row: tick box and link 16 px apart; when they can't fit, the link drops under the tick box, left-aligned, 8 px below. They never touch. */
.sm-remember-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;column-gap:16px;row-gap:8px}
/* Queue 3 (4 Nov): tap targets on the pilot path at 390 and 200% zoom, at least 44 px tall without moving the text (padding with an equal negative margin) */
.sm-browse-card-name a{padding:12px 0;margin:-12px 0} /* Browse: the kunyah link on each card was 32 px */
.sm-help-back-link{display:inline-block;padding:12px 0;margin:-12px 0} /* Help: "Topics" at the end of each section was 21 px */
.sm-remember-row .form-check-label{display:inline-block;padding:12px 0;margin:-12px 0} /* Log in: "Remember me" was 23 px */
.sm-trust-link{min-width:44px} /* Home: "Log in" in the trust section was 43 px wide */
/* W-26 (i), Adviser 5 Nov: the live dashboard's Likes and Recently received cards share a row and a height from 1024px. Phones: Likes, the cards under it, then Recently received (as before). */
.sm-dash-grid-live .sm-dash-cell{display:flex;flex-direction:column;min-width:0}
.sm-dash-grid-live .sm-dash-cell > .sm-dash-card{flex:1 1 auto}
.sm-dash-empty .sm-dash-actions{align-self:stretch;width:100%}
.sm-dash-grid-live .sm-dash-cell-more{order:2}
.sm-dash-grid-live .sm-dash-cell-recent{order:3}
.sm-dash-grid-live .sm-dash-cell-more:not(:has(*)){display:none}
@media (min-width:1024px){.sm-dash-grid-live{align-items:stretch;grid-template-areas:"likes recent" "more ."}.sm-dash-grid-live .sm-dash-cell-likes{grid-area:likes}.sm-dash-grid-live .sm-dash-cell-recent{grid-area:recent}.sm-dash-grid-live .sm-dash-cell-more{grid-area:more}}
/* W-26 (h): Settings, the mobile number and its Change button on one line, as for email. */
.sm-set-row-phone{align-items:flex-start}
.sm-set-row-phone>:not(.sm-set-btn-inline){flex:1 1 auto;min-width:0}
/* W-26 (j), U17: a form's main button sits on the left under the form on a computer, full width on a phone. */
.sm-form-actions{display:flex;justify-content:flex-start}
@media (max-width:767.98px){.sm-form-actions > .btn{width:100%}}

/* Dry run 17 (5 Nov): the waiting dashboard's two cards are the same height side by side, as on the live dashboard. */
#dashboard-waiting .sm-dash-grid{align-items:stretch}
/* Queue 5 Nov 12:30 item 15 (200% zoom): a visually hidden legend must not keep its fieldset's width,
   or the page scrolls sideways into blank space (/register: "Are you a sister or a brother"). */
legend.sr-only { width: 1px !important; max-width: 1px !important; left: 0; }

/* C10 (Adviser 6 Nov): keyboard focus on the custom tick boxes and radios. The real input is invisible
   (opacity 0), so its own focus ring can't be seen: show it on the box drawn next to it. */
.aiz-checkbox > input:focus-visible ~ .aiz-square-check,
.aiz-radio > input:focus-visible ~ .aiz-rounded-check,
.aiz-megabox > input:focus-visible ~ .aiz-megabox-elem {
  outline: 2px solid var(--sm-primary);
  outline-offset: 2px;
}

/* Owner, 6 Nov: on Browse the last word and age sit in an inline-block .sm-nowrap, which the link's underline doesn't reach, so only the first word was underlined on hover. Underline it too. */
.sm-browse-card-name a:hover .sm-nowrap,.sm-browse-card-name a:focus .sm-nowrap{text-decoration:underline}
/* R-186 (6 Nov): no focus ring on Remove after a mouse click or tap; keyboard users keep the :focus-visible ring above. */
.sm-like-card .sm-like-remove:focus:not(:focus-visible){outline:0;box-shadow:none}
/* R-185 follow-up (6 Nov): the date-of-birth dropdowns take the width of their longest option, so Day, Month and Year never cut their text (Year read "200" with the last digit cut off). On narrow phones Year moves to its own line instead of squeezing Month. */
.d-flex:has(> #dob_year){flex-wrap:wrap}
#dob_day,#dob_year{flex:0 0 auto;width:auto}
#dob_month{flex:1 1 auto;width:auto;min-width:max-content}
/* R-267: member icon-only buttons keep the 44 px touch size (UI guide); the rest of the style is in sm-tokens.css */
.sm-icon-btn{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
/* R-267 (owner 12 Nov): "Interested" on a request waiting for the member's answer is the soft honey "needs you" pill */
body .sm-pill.sm-pill-needs{background-color:var(--warning-100)!important;color:var(--warning-800)!important}
/* R-492 (owner 21 Nov): Dashboard "Your next steps": one row per due next step (name: step · today / overdue since),
   the line links to the introduction's notes; Done and Change date under it. Tokens only. */
.sm-ns-list{list-style:none;margin:12px 0 0;padding:0}
.sm-ns-item{padding:12px 0;border-top:1px solid var(--sm-line)}
.sm-ns-item:first-child{border-top:0;padding-top:0}
.sm-ns-link{color:var(--sm-ink);text-decoration:underline;text-underline-offset:4px}
.sm-ns-link b{font-weight:700}
.sm-ns-when{color:var(--ink-500);white-space:nowrap}
.sm-ns-when.over{color:var(--danger-700);font-weight:600}
.sm-ns-acts{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 16px;margin-top:8px}
.sm-ns-acts form{margin:0}
.sm-ns-done{min-height:48px;height:48px;padding:0 20px}
.sm-ns-sum{display:inline-flex;align-items:center;min-height:48px;color:var(--brand-700);font-weight:600;text-decoration:underline;cursor:pointer;list-style:none}
.sm-ns-sum::-webkit-details-marker{display:none}
.sm-ns-change[open] .sm-ns-sum{margin-bottom:8px}
.sm-ns-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px}
.sm-ns-label{display:block;width:100%;font-weight:600;margin:0}
.sm-ns-input{width:auto;min-height:48px}
.sm-ns-form .sm-button{min-height:48px;height:48px;padding:0 20px}
.sm-ns-status{background:var(--success-100);color:var(--success-700);border-radius:var(--sm-radius-field);padding:12px 16px;font-weight:600;margin:0 0 16px}
.sm-ns-error{color:var(--danger-700);font-weight:600;margin:8px 0 0}

/* Item 8 (4 Nov): UI guide section 12 sweep of the member pages at 390 and 1280. Spacing on the 4 px scale, 48 px buttons, 12 px radius for fields and buttons, nothing under 13 px, 16 px phone gutter (guide s.1). Colours are the branch's T2 work and are not touched here. */
:root{--sm-radius-field:12px}
@media (max-width:599.98px){.aiz-main-wrapper .container{padding-left:16px;padding-right:16px}}
@media (min-width:600px) and (max-width:767.98px){.aiz-main-wrapper .container{padding-left:24px;padding-right:24px}}
.btn-sm:not(.btn-icon):not(.btn-circle):not(.dropdown-toggle){min-height:48px}
.aiz-main-wrapper .bootstrap-select .dropdown-toggle{border-radius:var(--radius-md)!important;padding-top:12px;padding-bottom:12px}
.aiz-main-wrapper .aiz-checkbox,.aiz-main-wrapper .aiz-radio{margin-bottom:12px}
#reg-form .sm-ticks .aiz-checkbox{padding-top:12px;padding-bottom:12px}
@media (min-width:992px){.aiz-main-wrapper .aiz-user-panel{padding-left:32px}}
.aiz-main-wrapper small,.aiz-main-wrapper .small{font-size:13px}
.aiz-main-wrapper .table-sm td,.aiz-main-wrapper .table-sm th{padding:8px}
.aiz-main-wrapper .sm-hero-inner,.aiz-main-wrapper .sm-trust{gap:16px}
.aiz-main-wrapper .sm-trust-wrap{padding-top:32px}
.aiz-main-wrapper .sm-ayah-en{margin-bottom:12px}
.aiz-main-wrapper .sm-story-item{gap:12px;margin-bottom:32px}
.aiz-main-wrapper .sm-archive-fig{padding:12px}
.aiz-main-wrapper .sm-story-close{padding:20px}
@media (min-width:768px){.sm-confirm-card{padding:24px}}
#wizard-minimal-header .btn{min-height:48px}
/* Item 7: the ayah image's <picture> wrapper adds no box of its own. */
.sm-ayah-picture{display:contents}
/* Item 12 (edge cases): a long kunyah, answer or unbroken word wraps inside its card instead of running past it;
   the kunyah's last word and age still move together (37.A). Only member-written text, so labels never break mid-word. */
.sm-received-item h2,.sm-profile-id-text,.kv>span+span,.sm-browse-card-who{min-width:0;overflow-wrap:anywhere}
.sm-browse-card-name .sm-nowrap{display:inline-block;max-width:100%;white-space:normal;vertical-align:top}


/* R-174 (owner 5 Nov; boards LikesPills*): the "Next introduction" pills, the line above the list, the desktop rows */
.sm-likes-body{display:flex;flex-direction:column;gap:var(--space-4,16px)}
.sm-likes-panel{background:var(--brand-100);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:8px}
.sm-likes-panel p{margin:0;font-size:.875rem;line-height:1.5;color:var(--ink-700)}
.sm-likes-panel p.sm-likes-panel-h{font-size:16px;font-weight:700;color:var(--ink-900)}
.sm-likes-panel-link{font-size:.875rem;font-weight:700;color:var(--brand-700)}
.sm-likes-panel-dark{background:var(--brand-700)}
.sm-likes-panel-dark p,.sm-likes-panel-dark p.sm-likes-panel-h{color:var(--surface-0)}
.sm-likes-panel-dark p.sm-likes-panel-h{font-size:1.0625rem}
.sm-meter{display:flex;gap:8px}
.sm-meter i{flex:1;height:8px;border-radius:4px;background:rgba(255,255,255,.28)}
.sm-meter i.on{background:var(--surface-0)}
.sm-pill.sm-pill-next,.sm-like-card .sm-like-tags .sm-pill.sm-pill-next{background:var(--brand-700)!important;color:var(--surface-0)!important;font-size:13px;line-height:24px;padding:0 12px;white-space:nowrap}
.sm-pill.sm-pill-na,.sm-like-card .sm-like-tags .sm-pill.sm-pill-na{background:var(--line-100)!important;color:var(--ink-700)!important;font-size:13px;line-height:24px;padding:0 12px;white-space:nowrap}
.sm-pill[hidden]{display:none!important}
.sm-like-card .sm-like-tags:not(:empty){margin-top:4px}
.sm-like-card .sm-like-tags .sm-pill{margin-top:4px}
.sm-like-card[data-next="1"]{border:.125rem solid var(--brand-700)}
.sm-like-card[data-na="1"]{background:var(--surface-50)}
.sm-like-card[data-na="1"] .sm-like-name a{color:var(--ink-700)}
.sm-like-card[data-na="1"] .position-number{color:var(--ink-500)}
.sm-like-card[data-na="1"] .sm-like-av{background:var(--ink-600);color:var(--surface-0)} /* R-337 3: as the closed avatars */
.sm-like-card .sm-pick summary.sm-pick-btn{background:var(--surface-0);color:var(--brand-700);border:thin solid var(--brand-700);border-radius:12px;font-weight:700}
.sm-likes-foot a{font-weight:700}
.sm-likes-listwrap .sm-likes-who{margin-top:12px;font-size:.875rem}
@media (min-width:992px){
  .sm-likes-list{gap:0;background:var(--surface-0);border:thin solid var(--line-200);border-radius:16px;overflow:hidden}
  .sm-likes-list .sm-like-card{border:0;border-top:thin solid var(--line-100);border-radius:0;padding:12px 20px}
  .sm-likes-list .sm-like-card:first-child{border-top:0}
  .sm-likes-list .sm-like-card[data-next="1"]{border:0;border-top:thin solid var(--line-100);background:var(--brand-100);box-shadow:inset 0 0 0 .0625rem var(--brand-700)} /* R-482: the next request has a thin brand-green edge all round, not a left bar */
  .sm-likes-list .sm-like-card[data-next="1"]:first-child{border-top:0}
  .sm-likes-list .sm-like-card[data-na="1"]{background:var(--surface-50)}
  .sm-like-card{flex-wrap:wrap}
  .sm-like-card .sm-like-main{flex:1 1 14rem;display:flex;flex-wrap:wrap;align-items:center;column-gap:12px}
  .sm-like-card .sm-like-actions{margin-left:auto}
  .sm-like-card .sm-like-who{flex:1 1 10rem;min-width:0}
  .sm-like-card .sm-like-tags{flex:0 0 auto;margin-top:0}
  .sm-like-card .sm-like-tags .sm-pill{margin-top:0}
  .sm-likes-listwrap .sm-likes-foot{margin-top:12px}
}

/* C1/C8 (Adviser, 5 Nov 20:25): the grey test-site note in the Likes panel; 16 px between the last Like and the plan line on phones. */
.sm-likes-panel p.sm-likes-panel-note{font-size:.8125rem;color:var(--sm-muted)}
.sm-likes-panel-dark p.sm-likes-panel-note{color:var(--brand-200)}
.sm-likes-listwrap .sm-likes-foot{margin-top:1rem}
/* C6: while staff view as a member, toasts sit below the yellow bar, never over it. */
body.sm-viewing-as [data-notify="container"]{top:var(--sm-toast-top,8.75rem)!important}
/* C8 (A, 6 Nov): tap targets at least 24 px (WCAG 2.2, 2.5.8): the names in Likes and the See plans link under the list. */
.sm-like-name a{display:inline-block;min-height:24px;padding:4px 0}
.sm-likes-foot a{display:inline-block;min-height:24px;padding:4px 0}
/* post-pilot a11y sweep (Adviser 7 Nov, item 6; WCAG 2.2 2.5.8 Target size): links that stand on their own line are at least
   24 px tall: the skip link, the notes page's back and profile links, and Plan's "Back to dashboard" and "See plans". */
.sm-skip-link{min-height:24px}
a.ip-back,a.ip-link,a.sm-tap{display:inline-block;min-height:24px}
/* Owner 7 Nov: the Member ID. On one line "Member ID: WSVQ7S": the label muted, normal weight; the code in the text colour, semibold, slightly spaced. */
.sm-mid-label{color:var(--ink-500);font-weight:400}
.sm-mid-code{color:var(--ink-900);font-weight:600;letter-spacing:.04em}
/* post-pilot c(3), R-176 item 3 (mockup LikesReadyCount): "3 of 5 ready" on Likes and the dashboard, paid plans only */
.sm-ready [hidden]{display:none!important}
.sm-likes-panel.sm-ready{gap:12px;padding:20px}
.sm-likes-panel.sm-ready p.sm-likes-panel-h{font-size:20px;line-height:1.4}
.sm-likes-panel.sm-ready > p{font-size:1rem;line-height:1.5}
.sm-ready-meter i{box-sizing:border-box}
.sm-ready-meter i.gap{background:transparent;border:.0625rem dashed rgba(255,255,255,.75)}
.sm-ready-nudge{background:var(--warning-100);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px}
.sm-likes-panel .sm-ready-nudge p{font-size:1rem;line-height:1.5;color:var(--warning-800)}
.sm-ready-nudge b{color:var(--warning-800)}
.btn.sm-ready-browse,.btn.sm-ready-btn{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:var(--sm-radius-btn);background:var(--surface-0);color:var(--brand-700);border:.125rem solid var(--brand-700);font-size:16px;font-weight:700}
.btn.sm-ready-browse:hover,.btn.sm-ready-browse:focus,.btn.sm-ready-btn:hover,.btn.sm-ready-btn:focus{background:var(--brand-100);color:var(--brand-700)}
.sm-ready-done{display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.14);border-radius:12px;padding:12px 16px;color:var(--surface-0);font-size:1rem;font-weight:600;line-height:1.4}
.sm-ready-done i{font-size:20px}
.sm-next-card:has(> .sm-ready-head){background:var(--surface-0);color:var(--ink-900);border:.0625rem solid var(--line-200)}
.sm-next-card:has(> .sm-ready-head) .sm-next-eyebrow{color:var(--ink-500);opacity:1}
.sm-ready-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sm-next-card:has(> .sm-ready-head) .sm-ready-title{font-size:16px;line-height:1.4;font-weight:700;color:var(--ink-900)}
.sm-ready-count{font-size:16px;line-height:1.4;white-space:nowrap;font-weight:700;color:var(--brand-700)}
.sm-next-card:has(> .sm-ready-head) .sm-ready-meter i{background:var(--brand-700)}
.sm-next-card:has(> .sm-ready-head) .sm-ready-meter i.gap{background:transparent;border-color:var(--ink-400)}
.sm-next-card:has(> .sm-ready-head) .sm-ready-text{font-size:16px;line-height:24px;color:var(--ink-700)}
@media (min-width:768px){.sm-next-card:has(> .sm-ready-head) .sm-ready-title,.sm-ready-count{font-size:20px}} /* post-pilot c(3): title and count on one line at 390 */
/* Boards vs built (7 Nov): Edit my profile, "Are you willing to be a co-wife?" at 390. "Open to discussing" (R-57) broke mid-word in a 3-across row; wrap on spaces only and let the long choice take its own line. */
.sm-edit-section.sm-sec-marriage-family div:has(>.form-check-inline){flex-wrap:wrap}
.sm-edit-section.sm-sec-marriage-family div:has(>.form-check-inline)>.form-check-inline{flex:1 1 auto;min-width:max-content}
.sm-edit-section.sm-sec-marriage-family div:has(>.form-check-inline)>.form-check-inline .form-check-label{overflow-wrap:normal;word-break:normal}
/* Boards vs built (7 Nov): Settings, Mobile number at phone width. As on the Settings board, Change goes under the number so the number is not cut off. */
@media (max-width:575.98px){.sm-set-row-phone{flex-wrap:wrap}.sm-set-row-phone>:not(.sm-set-btn-inline){flex:1 1 100%}}
@media (max-width:575.98px){.sm-set-row-email{flex-wrap:wrap}.sm-set-row-email>.form-control{flex:1 1 100%}} /* Adviser 9 Nov: the email's Change goes under the field on a phone, as the mobile's does */
/* Owner 11:22 (7 Nov): the Likes drag handle (three lines) has a target of at least 24 px; the arrows stay as they are. */
.sm-like-card .drag-handle{min-width:32px;min-height:32px;align-items:center;justify-content:center;touch-action:none}
/* Boards vs built (7 Nov), board ReportProfile: the Report box's choices as 48 px tiles, full-width buttons. */
.sm-report-problems{margin-bottom:16px}
.sm-report-problems>legend{font-weight:600;margin-bottom:8px}
.sm-report-choice{position:relative;display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 16px;margin:0 0 8px;border:.0625rem solid var(--sm-field-border);border-radius:var(--sm-radius-field);background:var(--surface-0);font-weight:400;cursor:pointer}
.sm-report-choice input{width:20px;height:20px;margin:0;flex:none}
.sm-report-choice:has(input:checked){border-color:var(--sm-primary);box-shadow:inset 0 0 0 .0625rem var(--sm-primary);background:var(--sm-tint)}
.sm-report-more{display:block;font-weight:600;margin-bottom:8px}
.sm-report-optional{font-weight:400;color:var(--sm-muted)}
.sm-report-block{margin-top:16px;background:var(--sm-tint)}
.sm-report-note{color:var(--sm-muted);margin:12px 0 0}
.sm-report-footer{flex-direction:column;align-items:stretch;gap:8px}
.sm-report-footer>.btn{margin:0;min-height:48px}
/* Owner 12:44 (7 Nov), board DashLiveFree: on phones "Recent introductions" comes before "Want more each week?". */
.sm-dash-grid-live .sm-dash-cell-recent{order:2}
.sm-dash-grid-live .sm-dash-cell-more{order:3}
/* Owner 12:44 (7 Nov), board BlockConfirm: the Block box's points and its full-width buttons. */
.sm-block-points{padding-left:20px;margin:0 0 16px}
.sm-block-points>li{margin-bottom:8px}
.sm-block-footer{flex-direction:column;align-items:stretch;gap:8px}
.sm-block-footer>.btn{margin:0;min-height:48px}
/* post-pilot-2 (Adviser 13:25, board Step3Desktop): sign-up step 3 two to a row from 992 px; the rule line, notices and languages span both. */
@media (min-width:992px){.sm-wiz-pairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;align-items:start}.sm-wiz-pairs>.row{display:contents}.sm-wiz-pairs>.row>[class*="col-"]{padding-left:0;padding-right:0;max-width:none;width:auto}.sm-wiz-pairs>hr,.sm-wiz-pairs>.sm-notice,.sm-wiz-pairs>.form-group:last-child{grid-column:1 / -1}}
/* post-pilot-2 (board ConsentDesktop): a one-line consent row was centred while its tick box stayed at the top; now both start on the first line. */
.alert label.aiz-checkbox:has(> input[name^="consent_"]){align-items:flex-start !important}
.alert label.aiz-checkbox:has(> input[name^="consent_"])>.aiz-square-check{top:.125rem}
/* R-244 (owner 9 Nov): every floating and after-action message is readable, at least 4.5:1, with a visible close button.
   Toasts (AIZ.plugins.notify: success, danger, warning, info, dark, primary, secondary, light) and the inline banners
   (.alert-*). Light box with dark text for the four message types; the close cross and the progress line take the text colour. */
.aiz-notify.alert.alert-success,.aiz-notify.alert.alert-success [data-notify]{background-color:var(--success-100)!important;color:var(--success-700)!important}
.aiz-notify.alert.alert-danger,.aiz-notify.alert.alert-danger [data-notify]{background-color:var(--danger-100)!important;color:var(--danger-700)!important}
.aiz-notify.alert.alert-warning,.aiz-notify.alert.alert-warning [data-notify]{background-color:var(--warning-100)!important;color:var(--warning-800)!important}
.aiz-notify.alert.alert-info,.aiz-notify.alert.alert-info [data-notify]{background-color:var(--brand-100)!important;color:var(--brand-800)!important}
.aiz-notify.alert.alert-dark,.aiz-notify.alert.alert-dark [data-notify]{background-color:var(--ink-900)!important;color:var(--surface-0)!important}
.aiz-notify.alert.alert-primary,.aiz-notify.alert.alert-primary [data-notify]{background-color:var(--brand-700)!important;color:var(--surface-0)!important}
.aiz-notify.alert.alert-secondary,.aiz-notify.alert.alert-secondary [data-notify]{background-color:var(--line-100)!important;color:var(--ink-700)!important}
.aiz-notify.alert.alert-light,.aiz-notify.alert.alert-light [data-notify]{background-color:var(--surface-50)!important;color:var(--ink-900)!important}
.aiz-notify.alert [data-notify=message],.aiz-notify.alert [data-notify=progressbar]{background-color:transparent!important}
.aiz-notify.alert .close,.aiz-notify.alert .close:hover{color:inherit!important;opacity:1!important}
.aiz-notify.alert .progress-bar{background-color:currentColor!important;opacity:.6}
.alert.alert-success{color:var(--success-700);background-color:var(--success-100);border-color:var(--success-100)}
.alert.alert-danger{color:var(--danger-700);background-color:var(--danger-100);border-color:var(--danger-100)}
.alert.alert-warning{color:var(--warning-800);background-color:var(--warning-100);border-color:var(--warning-400)}
.alert.alert-info{color:var(--brand-800);background-color:var(--brand-100);border-color:var(--brand-200)}
.alert.alert-light{color:var(--ink-700);background-color:var(--surface-50);border-color:var(--line-200)}
.alert.alert-secondary{color:var(--ink-700);background-color:var(--line-100);border-color:var(--line-200)}
.alert.alert-primary{color:var(--brand-800);background-color:var(--brand-100);border-color:var(--brand-200)}
.alert.alert-dark{color:var(--surface-0);background-color:var(--ink-900);border-color:var(--ink-900)}
.alert .close,.alert .close:hover{color:inherit;opacity:1;text-shadow:none}
/* end R-244 messages */
/* R-224: the staff sign-in's line under the heading ("For the SalafiMate team. Members, log in here.") */
.sm-staff-members{color:var(--ink-500);font-size:16px;line-height:1.5}
.sm-staff-members a{color:var(--brand-700);font-weight:700;text-decoration:underline}
/* Pop-up text size sweep (owner 9 Nov): member pop-ups at least 16 px: the Block and Report boxes (were 15 px, the Report note 12 px)
   and every toast (were 15 px). */
.modal-body,.modal-footer,.modal-body p,.modal-body li,.modal-body span,.modal-body label,.modal-body legend,.modal-body .small,.modal-body small,.modal-body .form-control,.modal-body .btn,.modal-footer .btn,.modal .modal-body fieldset>legend{font-size:16px}
.aiz-notify.alert,.aiz-notify.alert span,.aiz-notify [data-notify="message"]{font-size:16px}
/* end pop-up text size */
/* R-214 (owner): the admin top bar on the public site: "Log out" centred in its button, level with the name beside it. */
.sm-topbar-logout{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 16px;line-height:1.2;vertical-align:middle}
/* R-229 (owner, after the pilot): the three-line handle at the top right of every Like and Shortlist row, on every screen size.
   Likes: number, initials and name on the left, the pill under the name, the handle level with the name on the right (2.75rem = 44 px square,
   drag only from it); the buttons on the line below, the up and down arrows on the left and Remove on the right. */
.sm-like-card,.sm-likes-list .sm-like-card{display:grid;grid-template-columns:24px 2.75rem minmax(0,1fr) 2.75rem;grid-template-areas:"num av main handle" "act act act act";align-items:center;gap:12px}
.sm-like-card .position-number{grid-area:num;min-width:0}
.sm-like-card .sm-like-av{grid-area:av}
.sm-like-card .sm-like-main,.sm-likes-list .sm-like-card .sm-like-main{grid-area:main;display:block;min-width:0}
.sm-like-card .sm-like-tags,.sm-likes-list .sm-like-card .sm-like-tags{margin-top:4px}
.sm-like-card .sm-like-tags .sm-pill{margin-top:0}
.sm-like-card .sm-like-tags:not(:has(.sm-pill:not([hidden]))){display:none}
.sm-like-card .drag-handle{grid-area:handle;display:inline-flex;align-items:center;justify-content:center;align-self:start;justify-self:end;width:2.75rem;height:2.75rem;min-width:2.75rem;min-height:2.75rem;margin:-4px -8px 0 0;border-radius:12px;touch-action:none;-webkit-user-select:none;user-select:none}
.sm-like-card .drag-handle:hover{background:var(--line-100);color:var(--ink-900)}
.sm-like-card .drag-handle:active{cursor:grabbing}
.sm-like-card .sm-like-actions,.sm-likes-list .sm-like-card .sm-like-actions{grid-area:act;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:0}
.sm-like-card .sm-like-actions .sm-like-remove{margin-left:auto}
@media (min-width:600px){.sm-like-card .sm-like-actions .sm-pick{order:3}.sm-like-card .sm-like-actions .sm-like-remove{order:4;margin-left:0}.sm-like-card .sm-like-actions .sm-move[data-dir="down"]{margin-right:auto}}
/* the tinted "next" row: the initials circle stays visible (white with a thin outline) */
@media (min-width:992px){.sm-likes-list .sm-like-card[data-next="1"] .sm-like-av{background:var(--surface-0);color:var(--brand-700);box-shadow:inset 0 0 0 .125rem var(--brand-700)} /* R-337 2: the next one stays white, with a brand ring */}
/* end R-229 */

/* R-279 2b (owner 12 Nov): links inside a tick-box sentence ("I agree to the Terms of use…") are underlined, so they don't rely on colour alone (WCAG 1.4.1). */
.aiz-checkbox a{text-decoration:underline}
/* SD guest form (owner 7 Nov): the passwords line and Send; side by side from 768 up, Send on the right */
.sm-guest-send{display:flex;flex-direction:column;gap:var(--space-4,16px)}
.sm-guest-send .btn{width:100%}
@media (min-width:768px){.sm-guest-send{flex-direction:row;align-items:center;justify-content:space-between}.sm-guest-send .btn{width:auto;flex:0 0 auto}}

/* ===== R-337 (owner 15 Nov, Decision R-337): colour fixes from the R-335 contrast audit. One block, so every page
   follows. Shapes that carry meaning reach 3:1 against what's around them; card edges use --line-300 (option A).
   Edges drawn inside the shape (inset shadow) keep every size and spacing as it was. */
/* 4. Status pills and badges: keep the pastel fill, a thin edge in the pill's own text colour */
body .sm-pill,body .sm-badge,.badge:not(.badge-dot):not(.badge-circle),.sm-liked-status,.sm-browse-card-action>.sm-liked-status,.sm-confirm-ok{box-shadow:inset 0 0 0 .0625rem currentColor!important}
/* 5. Notices. R-482 (owner 21 Nov, R-337 5 undone): no left bar. Keep the fill, and a thin edge all round in a mid-tone
   of the notice's own colour (brand-400, success-400, warning-400, danger-400; neutral: line-300). The text is unchanged. */
.alert-info,.alert.alert-info,.sm-notice-info,.sm-confirm-notice{border:thin solid var(--brand-400)!important}
.alert-success,.alert.alert-success{border:thin solid var(--success-400)!important}
.alert-warning,.alert.alert-warning,.sm-notice-warning,.sm-notice-amber,.sm-set-notice,.sm-legal #legal-draft-banner{border:thin solid var(--warning-400)!important}
.alert-danger,.alert.alert-danger,.sm-confirm-error,.sm-notice-error{border:thin solid var(--danger-400)!important}
.alert-secondary,.alert.alert-secondary,.alert.alert-light:not(.card .alert):not(.sm-tick-box),.alert.alert-light.border:not(.sm-tick-box),.sm-wizard .alert.alert-light.border:not(.sm-tick-box){border:thin solid var(--line-300)!important}
/* R-376 add-on (owner 16 Nov): a tick box is not a notice, so it has no bar. In a card it keeps no edge of its own, only
   the thin line between two boxes; anywhere else, the same thin edge all round. (.sm-tick-box: each consent box) */
.card .sm-tick-box.alert.alert-light{border:0!important}
.sm-tick-box.alert.alert-light:not(.card .alert){border:thin solid var(--sm-line)!important}
/* R-382 (owner 16 Nov, layout only): a notice inside a card keeps its edge (R-482: all round, no bar) and gets the same inner padding as a notice
   anywhere else, so its text doesn't touch the bar (in a card, .alert.alert-light has no side padding: right for tick boxes). */
.card .alert.alert-light.border:not(.sm-tick-box){padding-left:var(--space-4);padding-right:var(--space-4)}
/* 7. Things you press: a thin --ink-400 border (3.48:1 on white, 3.15:1 on cream) */
.sm-chips-row > .sm-chip:not(.sm-chip-on):not(:hover):not(:focus-visible),button.sm-chip:not(.sm-chip-on):not(:hover):not(:focus-visible){border-color:var(--ink-400)!important}
.pagination .page-link,.page-link{border:thin solid var(--ink-400)!important}
.btn-soft-secondary{border:thin solid var(--ink-400)!important}
.custom-control-input:not(:checked)~.custom-control-label::before{border-color:var(--ink-400)!important}
/* 8. Cards and bars on cream: --line-300, set in each card's own rule above (.card, .sm-set-card, .sm-browse-card,
   .sm-like-card, .sm-upgrade-card, .sm-confirm-card, .sm-std-card, .sm-signup-card, .sm-pay-card, .sm-received-item,
   .help-article, .sm-topbar, the phone bottom bar). Variants with their own stronger edge keep it; hairlines between
   rows inside a card stay as they are. */
#wizard-minimal-header{border-bottom-color:var(--line-300)!important}
.sm-readonly{border:thin solid var(--line-300)}
/* 10. Placeholders: our --placeholder wins over the vendor grey in every field */
.form-control::placeholder,input::placeholder,textarea::placeholder{color:var(--sm-placeholder,var(--placeholder))!important;opacity:1!important}

/* R-425: Close my account (confirm and code pages). */
.sm-close-list{margin:0 0 var(--space-4);padding-left:20px;display:flex;flex-direction:column;gap:var(--space-2)}
.sm-close-break{margin:0 0 var(--space-5)}
.sm-close-resend{margin-top:var(--space-4)}
.sm-close-sent{margin:0 0 var(--space-4)} /* R-428: a gap before "Code" */
.sm-close-list a{text-decoration:underline} /* R-428: underlined like "Hide my profile instead." */
.sm-close-code-error .otp-box{border-color:var(--danger-700)} /* R-428: the six boxes in red with the error under them */

/* R-428 (owner): every alert (toast). Long text wraps, and the close × never covers it. aiz-core.css's own right
   padding for the × is overridden by its padding shorthand, so the × sat on the end of the text. */
.aiz-notify.alert{padding-right:3rem!important;white-space:normal}
.aiz-notify.alert [data-notify="message"]{display:block;white-space:normal;overflow-wrap:break-word}
[dir="rtl"] .aiz-notify.alert{padding-right:1.25rem!important;padding-left:3rem!important}

/* R-480: after a tap or click on the avatar, focus moves into the account drawer without the outline; a key brings it back (account_drawer.js) */
#sm-account-drawer.sm-pointer-open :focus-visible,.sm-avatar-btn.sm-pointer-open:focus-visible{outline:none!important;box-shadow:none!important}
