:root {
  --sw-ink: #171b29;
  --sw-muted: #646b7b;
  --sw-line: #e2e4ec;
  --sw-surface: #fffdf9;
  --sw-surface-2: #f6f3ed;
  --sw-dark: #11131b;
  --sw-dark-2: #1a1d29;
  --sw-blue: #4b6ff3;
  --sw-blue-dark: #3454cd;
  --sw-violet: #7658dd;
  --sw-warm: #f4e6d2;
  --sw-success: #147a52;
  --sw-danger: #b33243;
  --sw-radius-sm: 12px;
  --sw-radius: 20px;
  --sw-radius-lg: 30px;
  --sw-shadow: 0 18px 50px rgba(24, 28, 43, .1);
  --sw-shadow-sm: 0 8px 24px rgba(24, 28, 43, .08);
  --sw-max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--sw-ink);
  background: var(--sw-surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  background: white;
  color: #111;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.sw-header {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  color: white;
  background: rgba(17, 19, 27, .96);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.sw-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  max-width: var(--sw-max);
  margin: 0 auto;
  padding: 0 24px;
  gap: 28px;
}

.sw-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.03em;
}

.sw-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 11px;
  background: white;
}

.sw-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.sw-primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.sw-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 13px;
  color: #d9dce7;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.sw-nav-link:hover, .sw-nav-link:focus-visible, .sw-nav-link.is-active {
  color: white;
  background: rgba(255,255,255,.08);
}

.sw-nav-link svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sw-nav-group { position: relative; }

.sw-mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  display: none;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  width: min(760px, calc(100vw - 40px));
  padding: 18px;
  color: var(--sw-ink);
  border: 1px solid var(--sw-line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 22px 60px rgba(0,0,0,.2);
}

.sw-nav-group.is-open .sw-mega-menu { display: grid; }
.sw-mega-menu > div { display: grid; align-content: start; gap: 4px; padding: 8px; }
.sw-menu-label {
  margin: 0 8px 8px;
  color: #8a7184;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sw-mega-menu a {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
}
.sw-mega-menu a:hover, .sw-mega-menu a:focus-visible { background: #f3f5ff; }
.sw-mega-menu strong { font-size: .93rem; }
.sw-mega-menu small { color: var(--sw-muted); }
.sw-mega-menu .sw-menu-all { margin-top: 6px; color: var(--sw-blue-dark); font-weight: 700; }

.sw-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sw-search-button, .sw-lang-link, .sw-login-link, .sw-account-button {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 11px;
  color: #e5e7ef;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
}
.sw-search-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sw-login-link, .sw-account-button { padding-inline: 16px; color: #171b29; background: white; }
.sw-nav-toggle { display: none; }

.app-layout { display: block !important; min-height: 100vh; }
.app-layout > .main-content,
.main-content {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}
.main-content > .top-header { display: none !important; }
.main-content > .content-container,
.tools-shell,
.tool-detail-shell {
  width: min(var(--sw-max), calc(100% - 40px)) !important;
  max-width: var(--sw-max) !important;
  margin: 0 auto !important;
  padding: 54px 0 80px !important;
}

.sw-page, .sw-page * { box-sizing: border-box; }
.sw-container { width: min(var(--sw-max), calc(100% - 40px)); margin: 0 auto; }

.sw-eyebrow {
  margin: 0 0 12px;
  color: var(--sw-blue-dark);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.sw-page h1, .sw-page h2, .sw-page h3,
.main-content h1, .main-content h2, .main-content h3 {
  color: var(--sw-ink);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.sw-hero {
  overflow: hidden;
  padding: 76px 0 66px;
  background:
    radial-gradient(circle at 82% 12%, rgba(118,88,221,.16), transparent 30%),
    radial-gradient(circle at 15% 84%, rgba(244,230,210,.8), transparent 37%),
    linear-gradient(180deg, #fff 0%, #faf7f1 100%);
}

.sw-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr);
  align-items: center;
  gap: 64px;
}

.sw-hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(3rem, 6.4vw, 5.5rem);
}

.sw-hero__lead {
  max-width: 700px;
  margin: 0;
  color: var(--sw-muted);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
}

.sw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 760;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.sw-button:hover { transform: translateY(-1px); }
.sw-button--primary { color: white; background: var(--sw-blue); box-shadow: 0 10px 25px rgba(75,111,243,.25); }
.sw-button--primary:hover { background: var(--sw-blue-dark); }
.sw-button--secondary { color: var(--sw-ink); border-color: var(--sw-line); background: white; }
.sw-button--ghost { color: var(--sw-blue-dark); background: #edf0ff; }

.sw-tool-finder {
  padding: 24px;
  border: 1px solid rgba(75,111,243,.14);
  border-radius: var(--sw-radius-lg);
  background: rgba(255,255,255,.88);
  box-shadow: var(--sw-shadow);
}
.sw-tool-finder label { display: block; margin-bottom: 10px; font-weight: 780; }
.sw-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid #d7dbe9;
  border-radius: 14px;
  background: white;
}
.sw-search-field svg { width: 22px; flex: 0 0 auto; fill: none; stroke: var(--sw-muted); stroke-width: 1.8; }
.sw-search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--sw-ink); }
.sw-quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sw-quick-links a { padding: 7px 11px; border-radius: 999px; color: #3f4965; background: #f0f2f8; text-decoration: none; font-size: .84rem; }

.sw-section { padding: 76px 0; }
.sw-section--soft { background: var(--sw-surface-2); }
.sw-section--dark { color: white; background: var(--sw-dark); }
.sw-section--dark h2, .sw-section--dark h3 { color: white; }
.sw-section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 32px; }
.sw-section-head h2 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); }
.sw-section-head p { max-width: 560px; margin: 10px 0 0; color: var(--sw-muted); }
.sw-section--dark .sw-section-head p { color: #b7bbc9; }
.sw-text-link { color: var(--sw-blue-dark); text-decoration: none; font-weight: 750; }

.sw-tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sw-tool-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 245px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  background: white;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(24,28,43,.02);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sw-tool-card:hover { transform: translateY(-3px); border-color: #c9d1f6; box-shadow: var(--sw-shadow-sm); }
.sw-tool-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 14px;
  color: var(--sw-blue-dark);
  background: #edf0ff;
  font-size: .82rem;
  font-weight: 850;
}
.sw-tool-card h3 { margin: 0 0 9px; font-size: 1.25rem; }
.sw-tool-card p { margin: 0; color: var(--sw-muted); }
.sw-card-link { margin-top: 22px; color: var(--sw-blue-dark); font-weight: 750; }

.sw-category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sw-category-card {
  min-height: 178px;
  padding: 20px;
  color: inherit;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--sw-radius);
  background: var(--sw-dark-2);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.sw-category-card:hover, .sw-category-card:focus-visible { transform: translateY(-2px); background: #232739; }
.sw-category-card span { color: #aeb8ff; font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sw-category-card h3 { margin: 36px 0 8px; font-size: 1.15rem; }
.sw-category-card p { margin: 0; color: #aeb2c0; font-size: .91rem; }

.sw-trust-grid, .sw-app-grid, .sw-knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sw-trust-grid article, .sw-knowledge-card {
  padding: 24px;
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  background: white;
}
.sw-trust-grid strong { display: block; margin-bottom: 8px; font-size: 1.05rem; }
.sw-trust-grid p { margin: 0; color: var(--sw-muted); }

.sw-app-card {
  display: grid;
  min-height: 330px;
  padding: 26px;
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  background: white;
}
.sw-app-card__status { justify-self: start; padding: 5px 9px; border-radius: 999px; color: #54435c; background: #f1e9f4; font-size: .72rem; font-weight: 800; }
.sw-app-card h3 { align-self: end; margin: 48px 0 8px; font-size: 1.65rem; }
.sw-app-card p { margin: 0; color: var(--sw-muted); }
.sw-app-card a { align-self: end; margin-top: 24px; color: var(--sw-blue-dark); text-decoration: none; font-weight: 750; }

.sw-service-cta {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: center;
  gap: 50px;
  padding: 44px;
  border-radius: var(--sw-radius-lg);
  background: linear-gradient(135deg, #ecefff, #f7ead8);
}
.sw-service-cta h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.2rem); }
.sw-service-cta p { margin: 0; color: var(--sw-muted); }

.sw-page-hero { padding: 64px 0 40px; background: linear-gradient(180deg, #f7f4ef, #fffdf9); }
.sw-page-hero h1 { margin: 0 0 14px; font-size: clamp(2.6rem, 6vw, 4.5rem); }
.sw-page-hero p { max-width: 760px; margin: 0; color: var(--sw-muted); font-size: 1.15rem; }

.sw-filter-bar {
  position: sticky;
  z-index: 20;
  top: 72px;
  padding: 14px 0;
  border-block: 1px solid var(--sw-line);
  background: rgba(255,253,249,.94);
  backdrop-filter: blur(15px);
}
.sw-filter-inner { display: flex; gap: 10px; overflow-x: auto; }
.sw-filter-button { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--sw-line); border-radius: 999px; background: white; cursor: pointer; }
.sw-filter-button.is-active { color: white; border-color: var(--sw-dark); background: var(--sw-dark); }
.sw-catalog { padding: 48px 0 86px; }
.sw-catalog-group { margin-bottom: 54px; }
.sw-catalog-group h2 { margin: 0 0 20px; font-size: 2rem; }
.sw-empty { padding: 36px; text-align: center; color: var(--sw-muted); }

.sw-tool-page { background: #faf9f6; }
.sw-tool-hero { padding: 48px 0 20px; text-align: center; }
.sw-breadcrumbs { margin-bottom: 24px; color: var(--sw-muted); font-size: .88rem; }
.sw-breadcrumbs a { text-decoration: none; }
.sw-tool-hero h1 { margin: 0 0 14px; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.sw-tool-hero p { max-width: 720px; margin: 0 auto; color: var(--sw-muted); font-size: 1.15rem; }
.sw-tool-workbench {
  width: min(900px, calc(100% - 40px));
  margin: 24px auto 50px;
  padding: 28px;
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius-lg);
  background: white;
  box-shadow: var(--sw-shadow);
}
.sw-tool-workbench .media-compressor-copy { margin-bottom: 18px; }
.sw-tool-workbench .media-compressor-copy h2 { margin: 0 0 7px; font-size: 1.45rem; }
.sw-tool-workbench .media-compressor-copy p { margin: 0; color: var(--sw-muted); }
.sw-tool-workbench .media-upload-field {
  min-height: 190px;
  color: var(--sw-ink) !important;
  border: 1.5px dashed #9aa9e9 !important;
  background: #f6f7fc !important;
}
.sw-tool-workbench .media-upload-field:hover,
.sw-tool-workbench .media-upload-field:focus-within {
  border-color: var(--sw-blue) !important;
  background: #f0f2ff !important;
}
.sw-tool-workbench .media-upload-field strong { color: var(--sw-ink) !important; }
.sw-tool-workbench .media-upload-field small { color: var(--sw-muted) !important; opacity: 1 !important; }
.sw-service-state {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #2f5e4a;
  background: #eaf7f0;
  font-size: .86rem;
}
.sw-service-state[data-ready="false"] { color: #785123; background: #fff5e5; }

.sw-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 16px 0; }
.sw-preset {
  padding: 12px;
  color: var(--sw-ink);
  border: 1px solid var(--sw-line);
  border-radius: 12px;
  background: white;
  text-align: left;
  cursor: pointer;
}
.sw-preset:hover, .sw-preset[data-active="true"] { border-color: var(--sw-blue); background: #f1f3ff; }
.sw-preset strong, .sw-preset small { display: block; }
.sw-preset small { margin-top: 2px; color: var(--sw-muted); font-size: .72rem; }
.sw-preset svg { width: 19px; height: 19px; margin-bottom: 6px; fill: #5865f2; }

.sw-advanced { margin-top: 14px; border: 1px solid var(--sw-line); border-radius: 14px; }
.sw-advanced summary { padding: 14px 16px; cursor: pointer; font-weight: 750; }
.sw-advanced > div { padding: 0 16px 16px; }
.sw-tool-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 50px; }
.sw-tool-meta span { padding: 6px 10px; border-radius: 999px; color: var(--sw-muted); background: white; border: 1px solid var(--sw-line); font-size: .8rem; }
.sw-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 76px; }
.sw-info-card { padding: 28px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius); background: white; }
.sw-info-card h2 { margin: 0 0 14px; font-size: 1.45rem; }
.sw-info-card p, .sw-info-card li { color: var(--sw-muted); }
.sw-info-card ul { padding-left: 20px; }

.sw-auth-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: calc(100vh - 72px);
}
.sw-auth-aside {
  display: grid;
  align-content: center;
  padding: 8vw;
  color: white;
  background: var(--sw-dark);
}
.sw-auth-aside h1 { margin: 0 0 16px; color: white; font-size: clamp(2.3rem, 5vw, 4.3rem); }
.sw-auth-aside p { color: #bbc0cf; }
.sw-auth-main { display: grid; place-items: center; padding: 50px 24px; background: #f8f6f1; }
.sw-auth-card { width: min(470px, 100%); padding: 32px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius); background: white; box-shadow: var(--sw-shadow-sm); }
.sw-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 24px; padding: 5px; border-radius: 12px; background: #eff0f4; }
.sw-auth-tabs button { padding: 9px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.sw-auth-tabs button.is-active { background: white; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.sw-form { display: grid; gap: 15px; }
.sw-form label { display: grid; gap: 6px; font-weight: 700; }
.sw-form input, .sw-form textarea, .sw-form select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--sw-ink);
  border: 1px solid #d5d8e1;
  border-radius: 10px;
  background: white;
}
.sw-form textarea { min-height: 130px; resize: vertical; }
.sw-auth-message { min-height: 24px; margin: 6px 0 0; color: var(--sw-muted); font-size: .88rem; }
.sw-auth-message.is-error { color: var(--sw-danger); }
.sw-oauth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.sw-oauth-grid a { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--sw-line); border-radius: 10px; text-decoration: none; font-weight: 700; }
.sw-auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--sw-muted); font-size: .78rem; }
.sw-auth-divider::before, .sw-auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--sw-line); }

.sw-account-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 52px 0 80px; }
.sw-account-nav, .sw-account-panel { padding: 24px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius); background: white; }
.sw-account-nav a { display: block; padding: 10px; border-radius: 9px; text-decoration: none; }
.sw-account-nav a:hover { background: #f2f3f7; }
.sw-credit-card { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 24px; border-radius: 18px; color: white; background: linear-gradient(135deg, var(--sw-blue), var(--sw-violet)); }
.sw-credit-card strong { color: white; font-size: 2.4rem; }

.sw-footer { padding: 54px max(20px, calc((100% - var(--sw-max))/2)); color: #c5c8d2; background: #10121a; }
.sw-footer__main { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 44px; }
.sw-footer__main > div { display: grid; align-content: start; gap: 8px; }
.sw-footer__main p { max-width: 360px; color: #9297a6; }
.sw-footer__main strong { margin-bottom: 8px; color: white; }
.sw-footer__main a { color: #b7bbc6; text-decoration: none; }
.sw-footer__main a:hover { color: white; }
.sw-brand--footer { color: white !important; }
.sw-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }

/* Existing learning templates adopt the new shell without changing their content contracts. */
.page-intro { border-radius: var(--sw-radius-lg) !important; background: linear-gradient(135deg, #f4f1eb, #eef1ff) !important; }
.sidebar { display: none !important; }

@media (max-width: 980px) {
  .sw-header__inner { gap: 12px; }
  .sw-nav-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 9px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: transparent;
  }
  .sw-nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 2px; background: white; }
  .sw-primary-nav {
    position: absolute;
    top: 64px;
    left: 18px;
    right: 18px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    background: #181b26;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
  }
  .sw-primary-nav.is-open { display: flex; }
  .sw-nav-link { width: 100%; justify-content: space-between; }
  .sw-mega-menu { position: static; grid-template-columns: 1fr; width: 100%; max-height: 60vh; margin-top: 6px; overflow: auto; box-shadow: none; }
  .sw-header__actions .sw-search-button { display: none; }
  .sw-hero__grid, .sw-service-cta { grid-template-columns: 1fr; }
  .sw-tool-grid, .sw-app-grid, .sw-trust-grid, .sw-knowledge-grid { grid-template-columns: repeat(2, 1fr); }
  .sw-category-grid { grid-template-columns: repeat(2, 1fr); }
  .sw-category-card:last-child { grid-column: span 2; }
  .sw-footer__main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .sw-header__inner { min-height: 64px; padding: 0 16px; }
  .sw-brand > span:last-child { font-size: .94rem; }
  .sw-brand__mark { width: 34px; height: 34px; }
  .sw-header__actions { gap: 4px; }
  .sw-lang-link { display: none; }
  .sw-login-link, .sw-account-button { height: 38px; padding-inline: 11px; font-size: .8rem; }
  .sw-hero { padding: 54px 0; }
  .sw-hero__grid { gap: 36px; }
  .sw-hero h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .sw-container, .main-content > .content-container, .tools-shell, .tool-detail-shell { width: min(100% - 28px, var(--sw-max)) !important; }
  .sw-section { padding: 58px 0; }
  .sw-section-head { display: block; }
  .sw-section-head > a { display: inline-block; margin-top: 18px; }
  .sw-tool-grid, .sw-app-grid, .sw-trust-grid, .sw-knowledge-grid, .sw-category-grid, .sw-info-grid { grid-template-columns: 1fr; }
  .sw-category-card:last-child { grid-column: auto; }
  .sw-tool-card { min-height: 220px; }
  .sw-presets { grid-template-columns: repeat(2, 1fr); }
  .sw-tool-workbench { width: calc(100% - 24px); padding: 18px; }
  .sw-tool-workbench .media-upload-field { min-height: 170px; }
  .sw-service-state { display: block; }
  .sw-service-state span { display: block; margin-top: 4px; }
  .sw-auth-layout { grid-template-columns: 1fr; }
  .sw-auth-aside { min-height: 280px; padding: 50px 24px; }
  .sw-account-grid { grid-template-columns: 1fr; }
  .sw-footer__main { grid-template-columns: 1fr; gap: 30px; }
  .sw-footer__bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-color-scheme: dark) {
  /* The public brand deliberately remains warm-light; app-specific dark preferences still apply through display-preferences.js. */
}
