/* =====================================================================
   MSTeams.link — design system (2026 redesign)
   Loaded after legacy.min.css (purged Bootstrap 4 grid/forms + old theme).
   Tokens → base → layout (header/footer) → components → legacy theme
   classes restyled (header-blue, team-clean, contact-clean, ...).
   ===================================================================== */

/* Plus Jakarta Sans, self-hosted (Google Fonts v12 files, SIL Open Font License 1.1).
   One variable file per subset covers every weight used (400-800). "optional": preloaded,
   so normally ready for the first render; if not, the page keeps the fallback (no swap,
   no layout shift) and the next pages use the cached font. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: optional; src: url("/assets/fonts/plus-jakarta-sans-latin.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; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: optional; src: url("/assets/fonts/plus-jakarta-sans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Metric-matched fallback (measured in Chromium against Arial) so text does not reflow
   when the web font arrives: removes the font-swap layout shift. */
@font-face { font-family: "Jakarta Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 102%; ascent-override: 102%; descent-override: 21.5%; line-gap-override: 0%; }
:root {
  --ink: #0b1028;
  --ink-2: #1f2747;
  --text: #1c2340;
  --text-2: #4a5272;
  --muted: #6b7290;
  --line: #e4e7f1;
  --line-2: #d5d9e8;
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --bg-tint: #eef0ff;
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-700: #3730a3;
  --brand-50: #eef0ff;
  --brand-100: #dfe2ff;
  --accent: #14b8a6;
  --accent-300: #5eead4;
  --accent-50: #e7faf6;
  --warn: #b45309;
  --warn-50: #fff7e6;
  --danger: #b42318;
  --danger-50: #fff1f0;
  --ok: #067647;
  --ok-50: #ecfdf3;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 64, .06), 0 1px 3px rgba(16, 24, 64, .06);
  --shadow: 0 10px 30px -12px rgba(16, 24, 64, .18), 0 2px 6px rgba(16, 24, 64, .05);
  --shadow-lg: 0 30px 60px -24px rgba(16, 24, 64, .35);
  --font: "Plus Jakarta Sans", "Jakarta Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 64px;
  --container: 1160px;
}

/* ---------------------------------------------------------------- base */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 { font-family: var(--font); font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; }
h1, .h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2, .h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3, .h3 { font-size: 1.2rem; }
a { color: var(--brand); }
a:hover { color: var(--brand-700); }
strong, b { font-weight: 700; }
code { color: var(--brand-700); background: var(--brand-50); border-radius: 6px; padding: .1em .35em; font-size: .9em; word-break: break-word; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent-300); outline-offset: 2px; }
::selection { background: var(--brand-100); color: var(--ink); }
.container { max-width: var(--container); padding-left: 20px; padding-right: 20px; }
@media (max-width: 575px) { .container { padding-left: 16px; padding-right: 16px; } }
.sr-only-focusable:focus { position: fixed !important; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow); width: auto; height: auto; clip: auto; }
.grecaptcha-badge { visibility: hidden; }

/* ---------------------------------------------------------- buttons */
.btn { font-family: var(--font); font-weight: 650; border-radius: 12px; padding: .62rem 1.15rem; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s, color .15s; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.05rem; border-radius: 14px; }
.btn-primary, html body .cta-skyline, html body .cta-glow, html body .cta-bypass {
  background: var(--brand) !important; background-image: none !important; border-color: var(--brand) !important; color: #fff !important;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .55);
}
.btn-primary:hover, .btn-primary:focus, html body .cta-skyline:hover, html body .cta-glow:hover, html body .cta-bypass:hover {
  background: var(--brand-600) !important; border-color: var(--brand-600) !important; color: #fff !important; transform: translateY(-1px);
}
.btn-primary:active { transform: none; }
.btn-outline-primary { color: var(--brand); border-color: var(--line-2); background: #fff; }
.btn-outline-primary:hover { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.btn-light { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); }

/* ------------------------------------------------------------ forms */
.form-control { font-family: var(--font); border-radius: 12px; border: 1px solid var(--line-2); color: var(--ink); min-height: 46px; padding: .6rem .9rem; box-shadow: none; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .15); }
label { font-weight: 600; color: var(--ink-2); }

/* ============================================================ header */
.msl-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(16, 24, 64, .07);
}
.msl-header__inner { max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 14px; }
.msl-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.08rem; letter-spacing: -0.02em; text-decoration: none !important; white-space: nowrap; }
.msl-brand img { width: 32px; height: 32px; }
.msl-brand span em { font-style: normal; color: var(--brand); }
.msl-brand:hover { color: var(--ink); }
.msl-nav { display: flex; align-items: center; gap: 2px; margin: 0 0 0 10px; padding: 0; list-style: none; }
.msl-nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.msl-nav a:hover, .msl-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.msl-header__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.msl-header .btn { padding: .5rem .95rem; font-size: .93rem; box-shadow: none; }
.msl-menu { position: relative; }
.msl-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .93rem; user-select: none; }
.msl-menu > summary::-webkit-details-marker { display: none; }
.msl-menu > summary:hover, .msl-menu[open] > summary { background: var(--bg-soft); color: var(--ink); }
.msl-menu > summary svg { width: 16px; height: 16px; }
.msl-menu > summary img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.msl-menu__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; z-index: 5; }
.msl-menu__panel a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: .93rem; text-decoration: none; }
.msl-menu__panel a:hover { background: var(--bg-soft); color: var(--ink); }
.msl-menu__panel a[aria-current="true"] { color: var(--brand); }
.msl-menu__panel hr { margin: 6px 4px; border-color: var(--line); }
.msl-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; align-items: center; justify-content: center; color: var(--ink); }
.msl-burger svg { width: 22px; height: 22px; }
.msl-mobile { display: none; }
@media (max-width: 1139px) {
  .msl-nav, .msl-header__right { display: none; }
  .msl-burger { display: inline-flex; }
  .msl-mobile { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: 14px 16px 32px; z-index: 1029; border-top: 1px solid var(--line); }
  .msl-mobile.is-open { display: block; }
  .msl-mobile a { display: flex; align-items: center; justify-content: space-between; padding: 14px 6px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 650; font-size: 1.05rem; text-decoration: none; }
  .msl-mobile .msl-mobile__langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 6px; }
  .msl-mobile .msl-mobile__langs a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .92rem; }
  .msl-mobile .msl-mobile__langs a[aria-current="true"] { border-color: var(--brand); color: var(--brand); }
  .msl-mobile .btn { margin-top: 16px; width: 100%; }
  body.msl-menu-open { overflow: hidden; }
}
.msl-devbar { position: fixed; left: 12px; bottom: 12px; z-index: 1100; background: #ffcf33; color: #14233b; font-weight: 700; font-size: 12px; padding: 6px 10px; border-radius: 999px; box-shadow: var(--shadow); }

/* ============================================================ footer */
.msl-footer { background: var(--ink); color: #c9cde0; padding: 64px 0 28px; margin-top: 0; }
.msl-footer a { color: #c9cde0; text-decoration: none; }
.msl-footer a:hover { color: #fff; text-decoration: underline; }
.msl-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 991px) { .msl-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .msl-footer__grid { grid-template-columns: 1fr; gap: 26px; } }
.msl-footer .msl-brand { color: #fff; }
.msl-footer .msl-brand span em { color: var(--accent-300); }
.msl-footer__about p { color: #a9aec7; font-size: .95rem; margin: 14px 0 0; max-width: 420px; }
.msl-footer h2 { color: #fff; font-size: .82rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; margin: 4px 0 14px; }
.msl-footer ul { list-style: none; padding: 0; margin: 0; }
.msl-footer li { margin: 0 0 9px; font-size: .95rem; }
.msl-footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: .88rem; color: #8e94b3; }
.msl-footer__langs { display: flex; flex-wrap: wrap; gap: 8px; }
.msl-footer__langs a { border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 5px 12px; }
.msl-footer__langs a[aria-current="true"] { border-color: var(--accent-300); color: #fff; }

/* ========================================================= hero (dark) */
.header-blue, .msl-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(99, 102, 241, .55), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, rgba(20, 184, 166, .32), transparent 60%),
    linear-gradient(180deg, #0b1028 0%, #11183a 100%) !important;
  padding-bottom: 72px !important; font-family: var(--font);
}
.header-blue::before, .msl-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.header-blue > *:not(.msl-header):not(.msl-mobile):not(.msl-devbar):not(.sr-only):not(script), .msl-hero > * { position: relative; }
.header-blue .hero, .msl-hero .hero { padding-top: 64px; margin-top: 0 !important; text-align: left; }
.header-blue h1, .header-blue .h1, .msl-hero h1 { color: #fff !important; margin-bottom: 18px; }
.header-blue h2, .header-blue h3, .msl-hero h2 { color: #fff; }
.header-blue p, .msl-hero p { color: rgba(234, 236, 250, .86); font-size: 1.12rem; }
.header-blue .hero a:not(.btn), .header-blue .container a:not(.btn), .msl-hero a:not(.btn) { color: var(--accent-300); }
.header-blue .msl-header a:not(.btn) { color: var(--text-2); }
.header-blue .msl-header .msl-brand { color: var(--ink); }
.header-blue .phone-holder, .header-blue .phone-mockup { display: none !important; }
@media (max-width: 767px) { .header-blue .hero, .msl-hero .hero { padding-top: 36px; } .header-blue, .msl-hero { padding-bottom: 48px !important; } }
.msl-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #e6e8ff; font-size: .82rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 18px; }
.msl-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-300); box-shadow: 0 0 0 4px rgba(94, 234, 212, .2); }
.msl-hero__lead { max-width: 640px; }

/* ===================================================== shortener box */
.msl-shortener { margin-top: 30px; max-width: 760px; }
.msl-shortener__form { display: flex; gap: 8px; padding: 8px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08); }
.msl-shortener__field { position: relative; flex: 1; min-width: 0; }
.msl-shortener__field svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.msl-shortener input[type="url"] { width: 100%; height: 58px; border: 0; border-radius: 12px; padding: 0 14px 0 44px; font-size: 1.05rem; color: var(--ink); background: transparent; font-family: var(--font); }
.msl-shortener input[type="url"]:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand-100); }
.msl-shortener input::placeholder { color: #8b91ad; }
.msl-shortener .btn { height: 58px; padding: 0 26px; font-size: 1.05rem; white-space: nowrap; border-radius: 12px; }
@media (max-width: 575px) {
  .msl-shortener__form { flex-direction: column; padding: 8px; }
  .msl-shortener .btn { width: 100%; }
}
.msl-shortener__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: .9rem; color: rgba(234, 236, 250, .78); }
.msl-shortener__meta a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.msl-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding: 0; list-style: none; }
.msl-trust li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #e9ebff; font-size: .88rem; font-weight: 600; }
.msl-trust svg { width: 16px; height: 16px; color: var(--accent-300); }

/* hero illustration: before/after link card */
.msl-demo { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); padding: 18px; backdrop-filter: blur(6px); }
.msl-demo__row { background: rgba(10, 14, 38, .55); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 14px 16px; }
.msl-demo__label { display: block; font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: #9aa1c7; margin-bottom: 6px; }
.msl-demo__long { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; line-height: 1.5; color: #b5bad6; word-break: break-all; }
.msl-demo__arrow { display: flex; justify-content: center; padding: 10px 0; color: var(--accent-300); }
.msl-demo__short { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.msl-demo__short strong { color: #fff; font-size: 1.3rem; letter-spacing: -0.01em; }
.msl-demo__qr { width: 72px; height: 72px; border-radius: 10px; background: #fff; padding: 6px; flex: none; }
.msl-demo__stats { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: .82rem; color: #b5bad6; }
.msl-demo__stats b { color: #fff; }

/* =========================================================== sections */
.msl-section { padding: 88px 0; }
.msl-section--soft { background: var(--bg-soft); }
.msl-section--tint { background: linear-gradient(180deg, var(--bg-tint), #fff); }
@media (max-width: 767px) { .msl-section { padding: 60px 0; } }
.msl-section__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.msl-section__head p { font-size: 1.08rem; margin-bottom: 0; }
.msl-kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }

.msl-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.msl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.msl-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) { .msl-grid, .msl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .msl-grid, .msl-grid--2, .msl-grid--4 { grid-template-columns: 1fr; } }

.msl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); height: 100%; transition: box-shadow .2s, transform .2s, border-color .2s; }
.msl-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.msl-card h3 { font-size: 1.12rem; margin: 14px 0 8px; }
.msl-card p { margin: 0; font-size: .97rem; }
.msl-icon { width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand); }
.msl-icon svg { width: 22px; height: 22px; }
.msl-icon--teal { background: var(--accent-50); color: #0f9488; }
.msl-icon--amber { background: var(--warn-50); color: var(--warn); }

/* steps */
.msl-steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
@media (max-width: 767px) { .msl-steps { grid-template-columns: 1fr; } }
.msl-steps > li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px 24px; }
.msl-steps > li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 14px; }
.msl-steps h3 { font-size: 1.08rem; margin: 0 0 6px; }
.msl-steps p { margin: 0; font-size: .97rem; }

/* product cards */
.msl-product { display: flex; flex-direction: column; gap: 10px; }
.msl-product .msl-badge { align-self: flex-start; }
.msl-product a.btn { align-self: flex-start; margin-top: auto; }
.msl-product p { flex: 1; }
.msl-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-50); color: #0f766e; font-size: .76rem; font-weight: 750; letter-spacing: .02em; }
.msl-badge--brand { background: var(--brand-50); color: var(--brand-700); }

/* facts (GEO answer box) */
.msl-facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.msl-facts dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 22px; margin: 0; }
.msl-facts dt { font-weight: 700; color: var(--ink); }
.msl-facts dd { margin: 0; color: var(--text-2); }
@media (max-width: 575px) { .msl-facts dl { grid-template-columns: 1fr; gap: 2px; } .msl-facts dd { margin-bottom: 12px; } }

/* CTA band */
.msl-cta { background: linear-gradient(135deg, var(--brand) 0%, #3b2fd0 60%, #2a1f9c 100%); color: #fff; border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--shadow-lg); }
.msl-cta h2 { color: #fff; margin: 0 0 6px; }
.msl-cta p { color: rgba(255, 255, 255, .85); margin: 0; }
.msl-cta .btn { background: #fff !important; color: var(--brand-700) !important; border-color: #fff !important; }
.msl-cta .btn:hover { background: var(--brand-50) !important; }
@media (max-width: 575px) { .msl-cta { padding: 30px 22px; border-radius: 22px; } .msl-cta .btn { width: 100%; } }

/* FAQ (details) */
.msl-faq { max-width: 820px; margin: 0 auto; }
.msl-faq details, .home-faq details, .faq-box details, .faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; margin-bottom: 10px; transition: border-color .2s, box-shadow .2s; }
.msl-faq details[open], .home-faq details[open], .faq-box details[open], .faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.msl-faq summary, .home-faq summary, .faq-box summary, .faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 700; color: var(--ink); position: relative; }
.msl-faq summary::-webkit-details-marker, .home-faq summary::-webkit-details-marker, .faq-box summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.msl-faq summary::after, .home-faq summary::after, .faq-box summary::after, .faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.msl-faq details[open] summary::after, .home-faq details[open] summary::after, .faq-box details[open] summary::after, .faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.msl-faq details > *:not(summary), .home-faq details > *:not(summary), .faq-box details > *:not(summary), .faq details > *:not(summary) { padding: 0 20px 18px; margin: 0; }

/* result / alerts */
.msl-result { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 30px; color: var(--text); max-width: 760px; margin-top: 30px; }
.msl-result h2 { color: var(--ink) !important; font-size: 1.6rem; margin: 0 0 6px; }
.msl-result > p, .msl-result__next > div > p, .msl-result form > p { color: var(--text-2) !important; }
.msl-result__link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 14px; padding: 12px 14px; margin: 18px 0; }
.msl-result__link a { font-size: 1.35rem; font-weight: 800; color: var(--brand-700) !important; white-space: nowrap; text-decoration: none; }
@media (max-width: 575px) { .msl-result__link a { font-size: 1.2rem; } }
.msl-result__link .btn { margin-left: auto; }
.msl-result__grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.msl-result__qr { text-align: center; }
.msl-result__qr img { width: 150px; height: 150px; border: 1px solid var(--line); border-radius: 14px; padding: 6px; background: #fff; }
.msl-result__qr a { display: block; margin-top: 6px; font-size: .88rem; color: var(--brand) !important; }
.msl-result__next { display: grid; gap: 12px; margin-top: 18px; }
.msl-result__next > div { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.msl-result__next p { margin: 2px 0 10px; }
@media (max-width: 575px) { .msl-result { padding: 22px 18px; } .msl-result__grid { grid-template-columns: 1fr; } .msl-result__link .btn { margin-left: 0; width: 100%; } }
.msl-alert { border-radius: 14px; padding: 14px 16px; border: 1px solid; }
.msl-alert--error { background: var(--danger-50); border-color: #ffd5d0; color: var(--danger); }
.msl-alert--error p { color: var(--danger) !important; margin: 0; }

/* ================================================ legacy theme classes */
/* Generic content sections from the old Bootstrap Studio theme. */
.team-clean, .newsletter-subscribe, .contact-clean, .login-clean { font-family: var(--font); }
.team-clean { background: var(--bg-soft); padding: 72px 0; color: var(--text); }
.team-clean .intro { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.team-clean .intro h2 { margin-bottom: 12px; padding-top: 0; }
.team-clean .intro p { color: var(--text-2); margin-bottom: 0; }
.team-clean .people { padding-bottom: 0; }
.team-clean .item { text-align: left; padding-top: 20px; }
.team-clean .item .name { font-weight: 750; color: var(--ink); margin-top: 12px; font-size: 1.12rem; }
.team-clean .item .title { text-transform: none; font-weight: 700; color: var(--brand); margin-bottom: 6px; font-size: .9rem; }
.team-clean .item .description { font-size: .97rem; color: var(--text-2); margin-top: 0; }
.team-clean .item > svg { width: 46px !important; height: 46px !important; padding: 11px; border-radius: 13px; background: var(--brand-50); }
.newsletter-subscribe { background: var(--ink) !important; color: #fff; padding: 64px 0; }
.newsletter-subscribe .intro h2 { color: #fff !important; }
.contact-clean { background: var(--bg-soft) !important; padding: 72px 0; }
.contact-clean form, .contact-clean .card { background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 34px; color: var(--text); max-width: 560px; }
.contact-clean h2 { color: var(--ink); font-weight: 800; }
@media (max-width: 575px) { .contact-clean form, .contact-clean .card { padding: 24px 18px; width: 100%; } .contact-clean { padding: 40px 0; } }
.footer-dark { display: none; }
.navigation-clean-search { display: none !important; }

/* misc utilities */
.msl-muted { color: var(--muted) !important; }
.msl-center { text-align: center; }
.msl-mt-0 { margin-top: 0 !important; }
.msl-stack > * + * { margin-top: 14px; }
.msl-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 991px) { .msl-split { grid-template-columns: 1fr; gap: 32px; } }
.msl-checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.msl-checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--text-2); }
.msl-checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230f9488' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/14px no-repeat; }
.msl-shot { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* home FAQ partial (partials/home_faq_xx.php) */
.faq-section { font-family: var(--font) !important; margin: 48px auto 0 !important; padding: 0 !important; }
.faq-section .faq-lead h2, .faq-section h2.faq-title { color: var(--ink) !important; font-weight: 800 !important; }
.faq-section .faq-lead h2 { font-size: 1.45rem !important; }
.faq-section h2.faq-title { font-size: clamp(1.55rem, 3vw, 2.1rem) !important; margin: 40px 0 22px !important; }
.faq-section .faq-lead p, .faq-answer { color: var(--text-2) !important; }
.faq-item { border-color: var(--line) !important; border-radius: var(--radius) !important; box-shadow: none !important; }
.faq-item[open] { border-color: var(--brand-100) !important; box-shadow: var(--shadow-sm) !important; }
.faq-item > summary { color: var(--ink) !important; font-weight: 700 !important; }
.faq-item > summary:hover, .faq-item[open] > summary .faq-chevron, .faq-answer a { color: var(--brand) !important; }
.msl-result a:not(.btn) { color: var(--brand) !important; }
.msl-result .btn + .btn { margin-left: 6px; }
@media (max-width: 575px) { .msl-result .btn-outline-primary { width: 100%; margin: 8px 0 0 !important; } }

@media (max-width: 575px) { .msl-hero .msl-hero__lead, .header-blue .hero p { font-size: 1rem; } }

/* headings colour only inside the new components / light sections */
.msl-section h1, .msl-section h2, .msl-section h3, .msl-card h3, .msl-steps h3, .msl-facts h2, .msl-result h2 { color: var(--ink); }
.msl-section p, .msl-card p, .msl-steps p { color: var(--text-2); }

/* legacy pages whose .header-blue only wrapped the old navbar: no empty dark band */
.header-blue:not(:has(.hero)):not(:has(h1)):not(:has(.container)) { padding: 0 !important; background: none !important; min-height: 0 !important; }
.header-blue:not(:has(.hero)):not(:has(h1)):not(:has(.container))::before { display: none; }

/* legacy gradient CTAs styled per page (.extension-shell .cta-skyline ...) */
html body .btn.cta-skyline, html body .btn.cta-glow, html body .btn.cta-bypass, html body .btn.cta-soft-primary, html body .btn.oa-cta {
  background: var(--brand) !important; background-image: none !important; border-color: var(--brand) !important; color: #fff !important; box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .55) !important;
}
html body .btn.cta-skyline:hover, html body .btn.cta-glow:hover, html body .btn.oa-cta:hover { background: var(--brand-600) !important; }

/* ================================================================ blog */
html body .blog-hero, html body .blog-post-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(700px 360px at 90% -20%, rgba(99, 102, 241, .5), transparent 60%), radial-gradient(520px 300px at -5% 120%, rgba(20, 184, 166, .28), transparent 60%), linear-gradient(180deg, #0b1028, #11183a);
  padding: 56px 0 48px;
}
html body .blog-hero h1, html body .blog-post-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; max-width: 860px; }
html body .blog-hero p { color: rgba(234, 236, 250, .82); opacity: 1; font-size: 1.1rem; margin-top: 10px; }
html body .blog-post-meta { color: rgba(234, 236, 250, .78); opacity: 1; font-size: .9rem; margin-bottom: 12px; }
html body .blog-card { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
html body .blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
html body .blog-card .card-body { padding: 22px; }
html body .blog-card .card-title a { color: var(--ink) !important; font-weight: 750; }
html body .blog-card .card-text { color: var(--text-2); font-size: .97rem; }
html body .blog-meta { color: var(--muted); font-weight: 600; }
html body .blog-read { color: var(--brand); font-weight: 700; }
html body .article-shell { max-width: 760px; }
html body .blog-post-content { font-family: var(--font); font-size: 1.07rem; line-height: 1.8; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 36px; }
@media (max-width: 575px) { html body .blog-post-content { padding: 22px 18px; font-size: 1.02rem; } }
html body .blog-post-content h2, html body .blog-post-content h3 { font-family: var(--font); color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
html body .blog-post-content h2 { font-size: 1.5rem; margin-top: 36px; }
html body .blog-post-content h3 { font-size: 1.15rem; margin-top: 26px; }
html body .blog-post-content p, html body .blog-post-content li { color: var(--text-2); }
html body .blog-post-content strong { color: var(--ink); }
html body .blog-post-content .tldr { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 16px 18px; color: var(--ink-2); }
html body .blog-post-content .source-officielle { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; }
html body .blog-post-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
html body .breadcrumb a { color: var(--brand); }
html body .blog-like-btn { border-color: rgba(255, 255, 255, .5); }

/* ================================================== help guide pages */
.header-blue .guide-title { text-align: left; font-size: clamp(1.9rem, 4.2vw, 3rem) !important; max-width: 860px; }
.header-blue .guide-lead { max-width: 760px; color: rgba(234, 236, 250, .86) !important; font-size: 1.1rem; }
.msl-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.msl-toc a { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff !important; font-weight: 600; font-size: .92rem; text-decoration: none; }
.msl-toc a:hover { background: rgba(255, 255, 255, .16); }
.guide { font-family: var(--font) !important; color: var(--text) !important; max-width: 860px !important; margin-top: 56px !important; padding: 0 20px !important; }
.guide h2.guide-h { color: var(--ink) !important; font-size: clamp(1.4rem, 2.6vw, 1.85rem) !important; font-weight: 800 !important; border-bottom: 0 !important; margin: 48px 0 18px !important; padding: 0 !important; }
.guide-method { border-color: var(--line) !important; border-radius: var(--radius-lg) !important; padding: 26px !important; margin-bottom: 18px !important; box-shadow: var(--shadow-sm) !important; }
.guide-method h3 { color: var(--ink) !important; font-size: 1.15rem !important; }
.guide-method h3 .ic { color: var(--brand) !important; }
.guide-steps { color: var(--text-2) !important; font-size: 1rem !important; }
.guide-steps strong { color: var(--ink) !important; }
.guide-shot { border-radius: 14px !important; border: 1px solid var(--line); box-shadow: var(--shadow) !important; margin-top: 10px !important; }
.msl-problems { display: grid; gap: 14px; }
.msl-problem { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; }
.msl-problem h3 { font-size: 1.05rem; color: var(--ink); margin: 0 0 6px; }
.msl-problem p { margin: 0; color: var(--text-2); }
.msl-more { margin: 16px 0 0; color: var(--text-2); }
.guide-cta { background: linear-gradient(135deg, var(--brand) 0%, #3b2fd0 60%, #2a1f9c 100%) !important; border-radius: 28px !important; padding: 44px 28px !important; box-shadow: var(--shadow-lg); }
.guide-cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem) !important; font-weight: 800 !important; }
.guide-cta a.btn-shorten { border-radius: 14px !important; color: var(--brand-700) !important; }
.msl-contact-intro { text-align: center; color: var(--text-2); margin: -18px 0 24px; }

/* legacy hero titles were thin and pushed down (margin-top:190px) */
.header-blue .hero h1 { font-weight: 800 !important; margin-top: 0 !important; line-height: 1.15 !important; }
html body .contact-clean form .btn-primary { background: var(--brand) !important; text-transform: none; letter-spacing: 0; font-size: 1rem; padding: .8rem 1.5rem; border-radius: 12px; opacity: 1; }
html body .contact-clean form .btn-primary:hover { background: var(--brand-600) !important; }

/* long-form text pages (terms, legal notice, news log) */
.msl-prose { max-width: 860px; padding-top: 48px; padding-bottom: 72px; }
.msl-prose h2 { color: var(--ink); font-size: 1.6rem; font-weight: 800; margin: 8px 0 18px; }
.msl-prose h3 { color: var(--ink); font-size: 1.15rem; font-weight: 750; margin: 30px 0 10px; }
.msl-prose h4 { color: var(--ink); font-size: 1rem; font-weight: 700; margin: 22px 0 8px; }
.msl-prose p, .msl-prose li { color: var(--text-2); }
.msl-prose a { word-break: break-word; }

/* links inside running text are underlined (not colour alone) */
.msl-section p a, .msl-steps p a, .msl-card p a, .msl-facts a, .faq-answer a, .msl-problem a, .msl-more a, .msl-contact-intro a, .msl-prose p a { text-decoration: underline; text-underline-offset: 3px; }

/* My links: search form takes its own full row on phones */
@media (max-width: 575px) { html body .mylinks-searchform { flex: 1 1 100%; width: 100%; } }

/* header: never squeeze the logo or wrap the header buttons */
.msl-brand { flex-shrink: 0; }
.msl-header .btn, .msl-menu > summary { white-space: nowrap; }

/* error pages */
.msl-error__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (max-width: 575px) { .msl-error__actions .btn { width: 100%; } }
.msl-error__link { text-decoration: none !important; display: flex; align-items: center; }
.msl-error__link h3 { margin: 0; color: var(--ink); font-size: 1.02rem; }
.msl-error__link:hover h3 { color: var(--brand); }

/* Sign-in buttons following the providers' official branding (light theme). */
html body .oauth-provider {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 0 12px; background: #fff; box-shadow: none; filter: none; transform: none;
  text-decoration: none !important; transition: background-color .15s, box-shadow .15s;
}
html body .oauth-provider:hover { transform: none; filter: none; }
html body .oauth-provider__mark { width: auto; height: auto; background: none; border-radius: 0; }
html body .oauth-provider__body { display: block; flex: 0 1 auto; }
html body .oauth-provider__meta { display: none; }
/* Google: white, #747775 border, #1F1F1F Roboto Medium 14px, 18px "G", 40px high */
html body .oauth-provider--google { height: 40px; border: 1px solid #747775; border-radius: 4px; color: #1f1f1f !important; background: #fff; }
html body .oauth-provider--google:hover { background: #f8f8f8; box-shadow: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15); }
html body .oauth-provider--google .oauth-provider__mark svg { width: 18px; height: 18px; }
html body .oauth-provider--google .oauth-provider__title { font-family: Roboto, Arial, sans-serif; font-weight: 500; font-size: 14px; letter-spacing: .25px; line-height: 20px; color: #1f1f1f; }
/* Microsoft: white, #8C8C8C border, #5E5E5E Segoe UI Semibold 15px, 21px logo, 41px high */
html body .oauth-provider--microsoft { height: 41px; border: 1px solid #8c8c8c; border-radius: 0; color: #5e5e5e !important; background: #fff; }
html body .oauth-provider--microsoft:hover { background: #f3f3f3; }
html body .oauth-provider--microsoft .oauth-provider__mark svg { width: 21px; height: 21px; }
html body .oauth-provider--microsoft .oauth-provider__title { font-family: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-weight: 600; font-size: 15px; line-height: 20px; color: #5e5e5e; }
html body .oauth-provider:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; box-shadow: none; }

/* CTA band text stays light inside light sections (the generic .msl-section h2/p colours come later) */
.msl-section .msl-cta h2 { color: #fff; }
.msl-section .msl-cta p { color: rgba(255, 255, 255, .88); }

/* Extension page card subtitles: readable brand colour (were #97a5b4, contrast 2.5) */
html body .extension-benefits .item .title { color: var(--brand); }

/* Danger actions (delete link / delete account): darker red for AA contrast (Bootstrap #dc3545 was 4.4:1) */
html body .text-danger { color: #b42318 !important; }
html body .link-danger { color: #b42318; }
html body .btn-outline-danger { color: #b42318; border-color: #f0b4ae; }
html body .btn-outline-danger:hover, html body .btn-outline-danger:focus { color: #fff; background-color: #b42318; border-color: #b42318; }

/* One-time "redesign" notice for returning visitors (partials/layout/redesign_notice.php) */
.msl-notice { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(11, 16, 40, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
.msl-notice.is-open { opacity: 1; }
.msl-notice[hidden] { display: none; }
.msl-notice__card { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 24px; padding: 32px 28px 26px; text-align: center; box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.98); transition: transform .2s ease; overflow: hidden; }
.msl-notice.is-open .msl-notice__card { transform: none; }
.msl-notice__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 110px; background: radial-gradient(260px 120px at 50% 0%, rgba(99, 102, 241, .22), transparent 70%), radial-gradient(200px 100px at 85% 0%, rgba(20, 184, 166, .18), transparent 70%); pointer-events: none; }
.msl-notice__art { position: relative; display: inline-flex; padding: 10px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); margin-bottom: 14px; }
.msl-notice__card h2 { position: relative; font-size: 1.35rem; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.msl-notice__card p { color: var(--text-2); margin: 0 0 22px; }
.msl-notice__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.msl-notice__actions .btn { min-width: 150px; }
.msl-notice__close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.msl-notice__close:hover { background: var(--bg-soft); color: var(--ink); }
@media (max-width: 480px) { .msl-notice__actions .btn { width: 100%; } }

/* ===================================================== app pages: My links + Account
   Same treatment as the analytics page (partials/analytics_body.php). The pages keep
   their own <style> blocks; these rules win through specificity / !important. */
html body:has(.mylinks-wrap), html body:has(.account-wrap) { background: var(--bg-soft); color: var(--text); }
html body .mylinks-hero, html body .account-hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 28px; color: #fff; box-shadow: var(--shadow);
  background:
    radial-gradient(700px 360px at 90% -30%, rgba(99, 102, 241, .55), transparent 60%),
    radial-gradient(520px 300px at -5% 130%, rgba(20, 184, 166, .3), transparent 60%),
    linear-gradient(180deg, #0b1028, #11183a);
}
html body .mylinks-hero::before, html body .account-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 40px 40px;
}
html body .mylinks-hero > *, html body .account-hero > * { position: relative; }
html body .mylinks-hero-title, html body .account-hero h1 { color: #fff; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.4rem, 3vw, 1.8rem); }
html body .mylinks-hero small, html body .account-hero p { color: rgba(234, 236, 250, .82); font-size: .95rem; }
html body .mylinks-hero-main img { width: 44px; height: 44px; }
html body .mylinks-hero-stat { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); border-radius: 14px; }
html body .mylinks-hero-newlink { border-radius: 12px; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
html body .account-plan-badge { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }

html body .mylinks-card, html body .account-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px; }
html body .account-danger { border-color: #f6d0cc; background: #fffbfa; }
html body .mylinks-title, html body .account-card-title { color: var(--ink); font-weight: 750; font-size: 1.08rem; }
html body .mylinks-subtitle, html body .account-label { color: var(--muted); }
html body .account-value { color: var(--ink); }
html body .account-info-chip { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
html body .mylinks-toolbar, html body .mylinks-pagination { border-color: var(--line); }

/* tabs, search */
html body .mylinks-tab { border-radius: 999px; }
html body .mylinks-tab.active { background: var(--brand); color: #fff; box-shadow: none; }
html body .mylinks-tab:not(.active) { background: #fff; border-color: var(--line-2); color: var(--text-2); }
html body .mylinks-tab:not(.active):hover { background: var(--bg-soft); color: var(--ink); border-color: var(--line-2); }
html body .mylinks-search-wrap .form-control { border-radius: 12px; border-color: var(--line-2); background: #fff; }
html body .mylinks-searchform .btn { border-radius: 12px; }
html body .mylinks-searchform .btn-primary:not(:disabled):not(.disabled) { background-image: none !important; background-color: var(--brand) !important; box-shadow: none; }
html body .mylinks-searchform .btn-primary:not(:disabled):not(.disabled):hover { background-image: none !important; background-color: var(--brand-600) !important; }

/* link rows */
html body .mylinks-item { background: #fff; border-color: var(--line); border-radius: 16px; box-shadow: none; transition: box-shadow .15s, border-color .15s; }
html body .mylinks-item:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
html body .mylinks-favicon { background: var(--bg-soft); border-color: var(--line); }
html body .mylinks-short { color: var(--brand); }
html body .mylinks-short:hover { color: var(--brand-700); }
html body .mylinks-dest { color: var(--muted); }
html body .mylinks-pill { background: var(--bg-soft); color: var(--text-2); border-color: var(--line); }
html body .mylinks-source-badge.badge-ext { background: var(--brand-50); color: var(--brand-700); }
html body .mylinks-source-badge.badge-web { background: var(--accent-50); color: #0f766e; }

/* row actions: Open (neutral), Edit (outline brand), Copy (brand), Delete (red) */
html body .mylinks-actions .btn, html body .mylinks-edit .btn, html body .mylinks-pagination-links .btn { border-radius: 10px; }
html body .mylinks-actions a.btn-outline-primary:not(:disabled):not(.disabled) { background-color: #fff !important; color: var(--text-2) !important; border-color: var(--line-2) !important; }
html body .mylinks-actions a.btn-outline-primary:not(:disabled):not(.disabled):hover { background-color: var(--bg-soft) !important; color: var(--ink) !important; }
html body .mylinks-actions button.btn-outline-primary:not(:disabled):not(.disabled) { background-color: var(--brand-50) !important; color: var(--brand-700) !important; border-color: var(--brand-100) !important; }
html body .mylinks-actions button.btn-outline-primary:not(:disabled):not(.disabled):hover { background-color: var(--brand-100) !important; }
html body .mylinks-actions .btn-primary:not(:disabled):not(.disabled) { background-image: none !important; background-color: var(--brand) !important; box-shadow: none !important; }
html body .mylinks-actions .btn-primary:hover { transform: none; background-color: var(--brand-600) !important; }
html body .btn-copy.copied { background-image: none !important; background-color: #0f9488 !important; box-shadow: none !important; }
html body .mylinks-delete-confirm .btn-danger { background-image: none !important; background-color: #b42318 !important; box-shadow: none; }

/* pagination */
html body .mylinks-pagination-links .btn-outline-primary:not(:disabled):not(.disabled) { background-color: #fff !important; color: var(--text-2); border-color: var(--line-2); }
html body .mylinks-pagination-links .btn-outline-primary:not(:disabled):not(.disabled):hover { background-color: var(--bg-soft) !important; color: var(--ink); }
html body .mylinks-pagination-links .btn-primary:not(:disabled):not(.disabled) { background-image: none !important; background-color: var(--brand) !important; box-shadow: none !important; }
html body .mylinks-perpage select { border-color: var(--line-2); background: #fff; border-radius: 10px; }

/* toasts */
html body .toast-item { border-radius: 14px; box-shadow: var(--shadow); }
html body .toast-success { border-color: var(--accent); color: #0f766e; }

/* account: subscription CTA in the standard brand style (was orange) */
html body .cta-subscribe { background: var(--brand); color: #fff; border-radius: 12px; box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .55); }
html body .cta-subscribe:hover { background: var(--brand-600); color: #fff; transform: none; box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .55); }
html body .account-avatar { box-shadow: var(--shadow-sm); }

/* =========================================== Chrome extension page (xx/extension.php) */
html body .extension-shell .hero-visual { background: transparent; border: 0; box-shadow: none; padding: 0; max-width: 360px; }
html body .extension-shell .hero-visual img { width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08); }
html body .extension-shell .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #e6e8ff; font-size: .78rem; letter-spacing: .04em; }
html body .extension-benefits { background: var(--bg-soft); }
html body .extension-benefits .feature-card { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
html body .extension-benefits .feature-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-50); color: var(--brand) !important; }
html body .extension-benefits .item:nth-child(2) .feature-icon { background: var(--accent-50); color: #0f9488 !important; }
html body .extension-benefits .item:nth-child(3) .feature-icon { background: var(--warn-50); color: var(--warn) !important; }
html body .extension-benefits .feature-icon svg { width: 22px; height: 22px; }
html body .extension-benefits .item .name { color: var(--ink); font-weight: 750; font-size: 1.12rem; }
html body .extension-benefits .item .description { color: var(--text-2); }
html body .extension-benefits .quick-steps { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
html body .extension-benefits .quick-steps p { color: var(--text-2); }
html body .extension-benefits .faq-box { border: 0; background: transparent; padding: 0; margin-top: 36px; }
html body .extension-benefits .faq-box h2 { color: var(--ink); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: 18px; }
html body .extension-benefits .internal-links a, html body .oa-links a { color: var(--brand); }

/* ============================================ Outlook add-in page (partials/outlook_addin_page.php) */
html body .oa-section { --oa-primary: #4f46e5; --oa-strong: #0b1028; --oa-border: #e4e7f1; --oa-text: #1c2340; --oa-muted: #4a5272; background: var(--bg-soft); padding: 64px 0; }
html body .oa-section + .oa-section { background: #fff; }
html body .oa-section h2 { color: var(--ink); font-weight: 800; }
html body .oa-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
html body .oa-card h3 { color: var(--ink); font-weight: 750; font-size: 1.12rem; }
html body .oa-badge { background: var(--brand-50); color: var(--brand); }
html body .oa-steps li { border-radius: var(--radius); box-shadow: none; }
html body .oa-steps li::before { background: var(--ink); }
html body .oa-steps a { color: var(--brand); }
html body .oa-url code { background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); }
html body .oa-url .btn, html body .oa-url button { border-radius: 10px; }
html body .oa-admin { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); }
html body .oa-faq { border: 0; background: transparent; padding: 0; margin-top: 36px; }
html body .oa-faq h2 { color: var(--ink); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: 18px; }
html body .oa-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px !important; transition: border-color .2s, box-shadow .2s; }
html body .oa-faq details[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
html body .oa-faq summary { list-style: none; position: relative; padding: 18px 54px 18px 20px; font-weight: 700; color: var(--ink); }
html body .oa-faq summary::-webkit-details-marker { display: none; }
html body .oa-faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
html body .oa-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
html body .oa-faq details > p { padding: 0 20px 18px; margin: 0; color: var(--text-2); }

/* Links inside running text are underlined (not identified by colour alone, WCAG 1.4.1). */
main p a:not(.btn):not([class*="msl-"]), main li a:not(.btn):not([class*="msl-"]) { text-decoration: underline; text-underline-offset: 2px; }

/* "What's new" changelog (partials/pages/newslog_view.php) */
.msl-changelog { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); max-width: 760px; }
.msl-changelog li { position: relative; margin: 0 0 28px; }
.msl-changelog li::before { content: ""; position: absolute; left: -30px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.msl-changelog__meta { margin: 0 0 4px; font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.msl-changelog h2 { margin: 0 0 6px; color: var(--ink); }
.msl-changelog p:last-child { margin: 0; color: var(--text-2); }
