/**
 * sitebirdy_login: login page for Site.eu Webmail (Roundcube, elastic skin)
 *
 * Loaded on the login page only. Turns the stock login into a split view:
 * the Webmail sign-in on the left, a SiteBirdy showcase on the right.
 * The Roundcube login form itself is untouched; this file only restyles it.
 */

/* ------------------------------------------------------------------ fonts */

@font-face {
  font-family: "IBM Plex Sans Variable";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../../fonts/ibm-plex-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans Variable";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../../fonts/ibm-plex-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;
}

/* ----------------------------------------------------------------- tokens */

body.task-login {
  --sbl-font: "IBM Plex Sans Variable", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sbl-login-w: clamp(400px, 32vw, 520px);

  /* brand */
  --sbl-navy: #1e1e37;
  --sbl-coral: #ff7d81;
  --sbl-blue: #1d4ed8;
  --sbl-blue-hover: #1840b4;

  /* surfaces + text (SiteBirdy "Business" palette) */
  --sbl-accent-fg: #1b43b5;
  --sbl-blue-soft: #e4eafb;
  --sbl-blue-softer: #f1f4fe;
  --sbl-blue-line: #c9d5f6;
  --sbl-bg: #f3f4f6;
  --sbl-surface: #ffffff;
  --sbl-surface-2: #f8f9fb;
  --sbl-border: #e2e5ea;
  --sbl-border-strong: #cdd2da;
  --sbl-text: #111827;
  --sbl-muted: #4b5563;
  --sbl-faint: #666f7f;
  --sbl-ink: #17151f;

  /* Webmail button: Site.eu navy */
  --sbl-btn-bg: #1e1e37;
  --sbl-btn-fg: #ffffff;
  --sbl-btn-hover: #2e2e55;

  --sbl-focus: rgba(29, 78, 216, .25);
  --sbl-shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
  --sbl-shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 6px 20px rgba(17, 24, 39, .10);
  --sbl-shadow-lg: 0 2px 6px rgba(17, 24, 39, .06), 0 28px 60px -18px rgba(30, 30, 55, .35);

  .sbl-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--sbl-text);
}

.sbl-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

#sbl-showcase .sbl-perks .sbl-i {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
  color: var(--sbl-success);
}

/* product mock */
  --sbl-mb-violet: #6d5bd0;
  --sbl-mb-teal: #0f766e;
  --sbl-mb-coral: #c2410c;
  --sbl-av-1: #3b5fa8;
  --sbl-av-2: #2f7a72;
  --sbl-av-3: #946a35;
  --sbl-av-4: #6a5aa6;
  --sbl-av-5: #9e4b5d;
  --sbl-amber-soft: #fef3c7;
  --sbl-amber-ink: #92400e;
  --sbl-success: #15803d;
}

html.dark-mode body.task-login {
  --sbl-blue-hover: #2b5cf0;
  --sbl-accent-fg: #8eabff;
  --sbl-blue-soft: #1f2a4a;
  --sbl-blue-softer: #171d2e;
  --sbl-blue-line: #2c3c6b;
  --sbl-bg: #0e1015;
  --sbl-surface: #161920;
  --sbl-surface-2: #1b1f27;
  --sbl-border: #2a2f3a;
  --sbl-border-strong: #3a414f;
  --sbl-text: #e7e9ee;
  --sbl-muted: #a5acba;
  --sbl-faint: #828b9b;
  --sbl-ink: #262b36;

  --sbl-btn-bg: #e7e9ee;
  --sbl-btn-fg: #14142a;
  --sbl-btn-hover: #ffffff;

  --sbl-focus: rgba(142, 171, 255, .32);
  --sbl-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --sbl-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px rgba(0, 0, 0, .5);
  --sbl-shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 30px 70px -20px rgba(0, 0, 0, .8);

  --sbl-mb-violet: #8b7cf0;
  --sbl-mb-teal: #2db3a6;
  --sbl-mb-coral: #f2774a;
  --sbl-av-1: #4a72c4;
  --sbl-av-2: #2f8f86;
  --sbl-av-3: #a97b3f;
  --sbl-av-4: #7c6bc2;
  --sbl-av-5: #b35a6e;
  --sbl-amber-soft: #3a2a0a;
  --sbl-amber-ink: #fcd34d;
  --sbl-success: #4ade80;
}

/* ------------------------------------------------------------ page layout */

body.task-login {
  display: flex;
  background: var(--sbl-bg);
  color: var(--sbl-text);
  font-family: var(--sbl-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.task-login #layout {
  display: block;
  flex: 0 0 var(--sbl-login-w);
  width: var(--sbl-login-w);
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  z-index: 2;
  background: var(--sbl-surface);
  border-right: 1px solid var(--sbl-border);
  box-shadow: 16px 0 48px -32px rgba(17, 24, 39, .25);
}

body.task-login #layout-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  width: 100%;
  padding: 40px clamp(32px, 3.6vw, 56px) 28px;
  text-align: left;
  background: transparent;
}

/* Site.eu logo (the <img> is kept up to date by the branding cron job) */
body.task-login #site-login-logo-link {
  display: flex;
  align-self: flex-start;
  border-radius: 6px;
}

body.task-login #logo {
  position: static;
  top: auto;
  display: block;
  width: auto !important;
  height: 38px !important;
  max-width: 100% !important;
  max-height: none;
  opacity: 1;
}

html.dark-mode body.task-login #logo {
  content: url("../../images/site-logo-dark.svg");
  opacity: 1;
}

/* ------------------------------------------------------------- login form */

body.task-login #login-form {
  position: static;
  top: auto;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 352px;
  margin: 0;
  padding: 40px 0 0;
}

body.task-login .sbl-head {
  margin: auto 0 28px;
}

body.task-login .sbl-head h2 {
  margin: 0 0 6px;
  font-family: var(--sbl-font);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--sbl-text);
}

body.task-login .sbl-head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sbl-muted);
}

body.task-login #login-form table,
body.task-login #login-form tbody {
  display: block;
  width: 100%;
}

body.task-login #login-form tr,
body.task-login #login-form tr.form-group {
  display: block;
  margin: 0 0 16px;
}

body.task-login #login-form td {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
}

/* Visible labels instead of placeholder-only fields */
body.task-login #login-form td.title {
  display: block !important;
  margin: 0 0 6px;
  text-align: left;
}

body.task-login #login-form td.title label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--sbl-text);
}

body.task-login #login-form .input-group {
  display: block;
  width: 100%;
}

body.task-login #login-form .input-group-prepend {
  display: none;
}

body.task-login #login-form .form-control {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-family: var(--sbl-font);
  font-size: 16px;
  color: var(--sbl-text);
  background: var(--sbl-surface);
  border: 1px solid var(--sbl-border-strong);
  border-radius: 8px !important;
  box-shadow: var(--sbl-shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}

body.task-login #login-form .form-control::placeholder {
  color: transparent;
}

body.task-login #login-form .form-control:hover {
  border-color: var(--sbl-faint);
}

body.task-login #login-form .form-control:focus {
  outline: 0;
  border-color: var(--sbl-blue);
  box-shadow: 0 0 0 4px var(--sbl-focus);
}

body.task-login #login-form .form-control:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px var(--sbl-surface) inset, var(--sbl-shadow-sm);
  -webkit-text-fill-color: var(--sbl-text);
}

body.task-login #login-form .formbuttons {
  margin: 8px 0 0;
  padding: 0;
  text-align: left;
}

body.task-login #login-form #rcmloginsubmit {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 16px;
  font-family: var(--sbl-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none !important;
  color: var(--sbl-btn-fg);
  background: var(--sbl-btn-bg);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .14), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: background-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

body.task-login #login-form #rcmloginsubmit:hover {
  background: var(--sbl-btn-hover);
}

body.task-login #login-form #rcmloginsubmit:active {
  transform: translateY(1px);
}

body.task-login #login-form #rcmloginsubmit:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--sbl-focus);
}

/* "or" + the SiteBirdy option */

body.task-login .sbl-alt {
  margin: 28px 0 0;
}

body.task-login .sbl-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sbl-faint);
}

body.task-login .sbl-or::before,
body.task-login .sbl-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sbl-border);
}

body.task-login .sbl-alt-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px 11px 11px;
  border-radius: 10px;
  border: 1px solid var(--sbl-blue-line);
  background: var(--sbl-blue-softer);
  color: var(--sbl-text);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

body.task-login .sbl-alt-btn:hover {
  border-color: var(--sbl-blue);
  background: var(--sbl-blue-soft);
  color: var(--sbl-text);
  text-decoration: none;
  box-shadow: var(--sbl-shadow);
}

body.task-login .sbl-alt-btn:focus-visible {
  outline: 0;
  border-color: var(--sbl-blue);
  box-shadow: 0 0 0 4px var(--sbl-focus);
}

body.task-login .sbl-alt-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--sbl-navy);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

body.task-login .sbl-alt-icon .sbl-bird {
  width: 32px;
  height: 32px;
  --sbl-bird-eye: var(--sbl-navy);
}

body.task-login .sbl-alt-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

body.task-login .sbl-alt-text strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

body.task-login .sbl-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--sbl-blue);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .05em;
  text-transform: uppercase;
  vertical-align: 2px;
}

body.task-login .sbl-alt-text small {
  font-size: 13px;
  line-height: 1.35;
  color: var(--sbl-muted);
}

body.task-login .sbl-alt-arrow {
  flex: none;
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: var(--sbl-accent-fg);
  transition: transform .2s ease;
}

body.task-login .sbl-alt-btn:hover .sbl-alt-arrow {
  transform: translateX(3px);
}

/* Footer: "Webmail • Get support" */
body.task-login #login-footer {
  flex: none;
  margin: auto 0 0;
  padding: 32px 0 0;
  font-size: 13px;
  color: var(--sbl-faint);
}

body.task-login #login-footer a {
  color: var(--sbl-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.task-login #login-footer a:hover {
  color: var(--sbl-text);
}

/* Login errors ("Login failed") show up under the form, not over the showcase */
body.task-login #messagestack {
  position: fixed;
  font-family: var(--sbl-font);
}

@media (min-width: 960px) {
  body.task-login #messagestack {
    left: 24px;
    right: auto;
    bottom: 20px;
    width: calc(var(--sbl-login-w) - 48px);
  }
}

body.task-login #messagestack div {
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--sbl-shadow-lg);
}

/* ------------------------------------------------------- the SiteBirdy bird */

.sbl-bird .b-legs {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sbl-bird .b-tail {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linejoin: round;
}

.sbl-bird .b-body {
  fill: currentColor;
}

.sbl-bird .b-beak,
.sbl-bird .b-wing {
  fill: var(--sbl-bird-accent, #1d4ed8);
}

.sbl-bird .b-eye {
  fill: var(--sbl-bird-eye, #ffffff);
}

/* ------------------------------------------------------ SiteBirdy showcase */

#sbl-showcase {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  isolation: isolate;
  color: var(--sbl-text);
  font-family: var(--sbl-font);
  font-size: 15px;
  line-height: 1.5;
  background:
    radial-gradient(900px 560px at 88% -12%, rgba(29, 78, 216, .16), transparent 62%),
    radial-gradient(760px 520px at -8% 108%, rgba(255, 125, 129, .16), transparent 60%),
    radial-gradient(640px 420px at 45% 48%, rgba(109, 91, 208, .07), transparent 70%),
    var(--sbl-bg);
}

html.dark-mode #sbl-showcase {
  background:
    radial-gradient(900px 560px at 88% -12%, rgba(59, 108, 240, .26), transparent 62%),
    radial-gradient(760px 520px at -8% 108%, rgba(255, 125, 129, .12), transparent 60%),
    radial-gradient(640px 420px at 45% 48%, rgba(139, 124, 240, .08), transparent 70%),
    var(--sbl-bg);
}

/* Faint dot grid + a giant bird watermark, like on sitebirdy.com */
.sbl-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.sbl-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(17, 24, 39, .09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
}

html.dark-mode .sbl-backdrop::before {
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px);
}


.sbl-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.6vh, 44px);
  max-width: 1080px;
  min-height: 100%;
  margin: 0 auto;
  padding: 28px clamp(28px, 4.6vw, 72px) 26px;
}

#sbl-showcase a {
  color: inherit;
}

#sbl-showcase a:focus-visible {
  outline: 2px solid var(--sbl-blue);
  outline-offset: 3px;
  border-radius: 8px;
}

#sbl-showcase svg.sbl-i {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* top bar */

.sbl-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.sbl-logo {
  display: inline-flex;
  color: var(--sbl-navy);
}

html.dark-mode .sbl-logo {
  color: #ffffff;
}

html.dark-mode .sbl-logo .sb-eye {
  fill: var(--sbl-navy);
}

.sbl-logo svg {
  display: block;
  height: 32px;
  width: auto;
}

.sbl-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--sbl-border);
  background: var(--sbl-surface);
  box-shadow: var(--sbl-shadow-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--sbl-muted);
  white-space: nowrap;
}

.sbl-badge-new {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sbl-blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sbl-badge .sbl-sitelogo {
  height: 15px;
  width: auto;
  margin: 0 -2px 0 -1px;
  color: var(--sbl-navy);
}

html.dark-mode .sbl-badge .sbl-sitelogo {
  color: #ffffff;
}

/* hero */

.sbl-hero {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.sbl-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sbl-accent-fg);
}

.sbl-title {
  margin: 0 0 16px;
  font-family: var(--sbl-font);
  font-size: clamp(34px, 3.1vw, 50px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.028em;
  color: var(--sbl-text);
  text-wrap: balance;
}

.sbl-title em {
  display: block;
  font-style: normal;
  color: var(--sbl-blue);
}

html.dark-mode .sbl-title em {
  color: var(--sbl-accent-fg);
}

.sbl-lead {
  max-width: 34em;
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--sbl-muted);
  text-wrap: pretty;
}

.sbl-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sbl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

#sbl-showcase .sbl-btn-primary {
  background: var(--sbl-blue);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(29, 78, 216, .3), 0 10px 24px -10px rgba(29, 78, 216, .7);
}

#sbl-showcase .sbl-btn-primary:hover {
  background: var(--sbl-blue-hover);
  transform: translateY(-1px);
}

#sbl-showcase .sbl-btn-primary .sbl-i {
  transition: transform .2s ease;
}

#sbl-showcase .sbl-btn-primary:hover .sbl-i {
  transform: translateX(3px);
}

#sbl-showcase .sbl-btn-ghost {
  background: var(--sbl-surface);
  color: var(--sbl-text);
  border: 1px solid var(--sbl-border);
  box-shadow: var(--sbl-shadow-sm);
}

#sbl-showcase .sbl-btn-ghost:hover {
  border-color: var(--sbl-border-strong);
  box-shadow: var(--sbl-shadow);
}

/* product mock */

.sbl-visual {
  position: relative;
  padding: 24px 10px 30px 14px;
  font-size: 12.5px;
  line-height: 1.35;
  user-select: none;
}

.sbl-app {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--sbl-border);
  background: var(--sbl-surface);
  box-shadow: var(--sbl-shadow-lg);
}

.sbl-app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--sbl-border);
  background: var(--sbl-surface-2);
}

.sbl-app-bar > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}

.sbl-app-bar > i:nth-child(2) { background: #febc2e; }
.sbl-app-bar > i:nth-child(3) { background: #28c840; }

.sbl-app-url {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 0 10px;
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid var(--sbl-border);
  background: var(--sbl-surface);
  font-size: 11px;
  color: var(--sbl-faint);
}

#sbl-showcase .sbl-app-url .sbl-i {
  width: 10px;
  height: 10px;
  stroke-width: 2.4;
}

.sbl-app-body {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
}

.sbl-app-side {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 8px 12px;
  border-right: 1px solid var(--sbl-border);
  background: var(--sbl-surface-2);
  min-width: 0;
}

.sbl-app-side > span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  font-size: 12px;
  border-radius: 6px;
  color: var(--sbl-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}

#sbl-showcase .sbl-app-side .sbl-i {
  width: 14px;
  height: 14px;
}

.sbl-app-side > span.is-on {
  background: var(--sbl-blue-soft);
  color: var(--sbl-accent-fg);
  font-weight: 600;
}

.sbl-app-side > span > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sbl-app-side b {
  flex: none;
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
}

.sbl-app-side small {
  margin: 10px 7px 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--sbl-faint);
}

.sbl-app-side .sbl-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin: 0 3px;
  border-radius: 3px;
  background: var(--c);
}

.sbl-app-list {
  min-width: 0;
}

.sbl-app-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px 9px;
  font-size: 13px;
  font-weight: 600;
}

.sbl-app-head small {
  font-size: 11px;
  font-weight: 500;
  color: var(--sbl-faint);
}

.sbl-msg {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 0 10px;
  align-items: center;
  padding: 7px 12px 7px 13px;
  border-top: 1px solid var(--sbl-border);
}

.sbl-msg::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--c);
}

.sbl-av {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--a);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
}

.sbl-msg-main {
  min-width: 0;
}

.sbl-msg-main b {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--sbl-text);
  white-space: nowrap;
}

.sbl-msg-main span {
  display: block;
  overflow: hidden;
  font-size: 12px;
  color: var(--sbl-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sbl-msg.is-read .sbl-msg-main b {
  font-weight: 500;
  color: var(--sbl-muted);
}

.sbl-msg time {
  align-self: start;
  padding-top: 1px;
  font-size: 11px;
  color: var(--sbl-faint);
}

#sbl-showcase .sbl-verified {
  width: 12px;
  height: 12px;
  color: var(--sbl-blue);
  stroke-width: 2.4;
}

html.dark-mode #sbl-showcase .sbl-verified {
  color: var(--sbl-accent-fg);
}

.sbl-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: var(--sbl-shadow-lg);
  animation: sbl-bob 7s ease-in-out infinite;
}

.sbl-float-toast {
  top: -6px;
  right: 0;
  padding: 9px 10px 9px 12px;
  background: var(--sbl-ink);
  color: #f3f4f6;
  font-weight: 500;
  animation-delay: -3.5s;
}

.sbl-float-toast b {
  color: #9db7ff;
  font-weight: 600;
}

.sbl-float-toast kbd {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .12);
  color: #e5e7eb;
  font: 600 11px/1.2 var(--sbl-font);
  box-shadow: none;
}

.sbl-float-screener {
  left: 0;
  bottom: 4px;
  padding: 10px 10px 10px 10px;
  background: var(--sbl-surface);
  border: 1px solid var(--sbl-border);
}

.sbl-float-screener .sbl-ftile {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--sbl-amber-soft);
  color: var(--sbl-amber-ink);
}

.sbl-float-screener .sbl-ftext {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.sbl-float-screener .sbl-ftext b {
  font-weight: 600;
}

.sbl-float-screener .sbl-ftext span {
  font-size: 11.5px;
  color: var(--sbl-muted);
}

.sbl-float-screener .sbl-fbtn {
  margin-left: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--sbl-blue);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
}

/* feature tiles */

.sbl-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sbl-features li {
  display: flex;
  margin: 0;
}

.sbl-features a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  gap: 3px 12px;
  align-content: start;
  width: 100%;
  padding: 13px 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--sbl-border);
  background: rgba(255, 255, 255, .78);
  text-decoration: none !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

html.dark-mode .sbl-features a {
  background: rgba(22, 25, 32, .78);
}

.sbl-features a:hover {
  border-color: var(--sbl-blue-line);
  box-shadow: var(--sbl-shadow);
  transform: translateY(-2px);
}

.sbl-ficon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--sbl-blue-soft);
  color: var(--sbl-accent-fg);
}

.sbl-features b {
  align-self: end;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sbl-text);
}

.sbl-features .sbl-fdesc {
  grid-column: 2 / 4;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--sbl-muted);
}

#sbl-showcase .sbl-features .sbl-chev {
  grid-row: 1;
  grid-column: 3;
  align-self: center;
  width: 16px;
  height: 16px;
  color: var(--sbl-faint);
  transition: transform .2s ease, color .2s ease;
}

.sbl-features a:hover .sbl-chev {
  transform: translateX(2px);
  color: var(--sbl-accent-fg) !important;
}

/* credit: fully built by the Site.eu team */

.sbl-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: auto;
  padding: 12px 20px 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--sbl-border);
  background: var(--sbl-surface);
  box-shadow: var(--sbl-shadow-sm);
}

.sbl-credit-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 420px;
}

.sbl-credit-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 76px;
  height: 52px;
  border-radius: 12px;
  background: var(--sbl-bg);
  color: var(--sbl-navy);
}

html.dark-mode .sbl-credit-logo {
  background: var(--sbl-surface-2);
  color: #ffffff;
}

.sbl-credit-logo .sbl-sitelogo {
  width: 58px;
  height: auto;
}

.sbl-credit p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sbl-muted);
}

.sbl-credit p strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--sbl-text);
}

#sbl-showcase .sbl-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sbl-accent-fg);
  text-decoration: none;
  white-space: nowrap;
}

#sbl-showcase .sbl-credit-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------- animation */

@keyframes sbl-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes sbl-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.sbl-top,
.sbl-copy,
.sbl-visual,
.sbl-features li,
.sbl-credit {
  animation: sbl-rise .6s cubic-bezier(.2, .7, .2, 1) both;
}

.sbl-copy { animation-delay: .05s; }
.sbl-visual { animation-delay: .12s; }
.sbl-features li:nth-child(1) { animation-delay: .18s; }
.sbl-features li:nth-child(2) { animation-delay: .22s; }
.sbl-features li:nth-child(3) { animation-delay: .26s; }
.sbl-features li:nth-child(4) { animation-delay: .30s; }
.sbl-features li:nth-child(5) { animation-delay: .34s; }
.sbl-features li:nth-child(6) { animation-delay: .38s; }
.sbl-credit { animation-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
  .sbl-top, .sbl-copy, .sbl-visual, .sbl-features li, .sbl-credit, .sbl-float {
    animation: none;
  }
}

/* ------------------------------------------------------------ responsive */

/* Medium desktops: hero stacks, mock sits under the copy */
@media (max-width: 1279px) {
  .sbl-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .sbl-visual {
    width: 100%;
    max-width: 560px;
  }

  .sbl-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablets and phones: login on top, showcase below, one scrolling page */
@media (max-width: 959px) {
  body.task-login {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.task-login #layout {
    width: auto;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--sbl-border);
    box-shadow: none;
  }

  body.task-login #layout-content {
    min-height: 0;
    align-items: center;
    padding: 28px 24px 26px;
  }

  body.task-login #site-login-logo-link,
  body.task-login #login-form {
    align-self: center;
    width: 100%;
    max-width: 400px;
  }

  body.task-login #logo {
    height: 34px !important;
  }

  body.task-login #login-form {
    flex: none;
    padding-top: 32px;
  }

  body.task-login .sbl-head {
    margin-top: 0;
  }

  body.task-login #login-footer {
    padding-top: 24px;
  }

  #sbl-showcase {
    height: auto;
    overflow: visible;
  }

  .sbl-inner {
    padding: 32px 24px 28px;
  }
}

@media (max-width: 600px) {
  .sbl-title {
    font-size: 32px;
  }

  .sbl-lead {
    font-size: 16px;
  }

  .sbl-ctas .sbl-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .sbl-features {
    grid-template-columns: minmax(0, 1fr);
  }

  .sbl-visual {
    padding: 22px 0 30px;
  }

  .sbl-float-toast {
    right: -6px;
  }

  .sbl-float-screener {
    left: -6px;
  }

  .sbl-credit {
    padding: 16px;
  }
}

@media (max-width: 380px) {
  .sbl-app-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .sbl-app-side {
    display: none;
  }
}
