:root {
  --ssh-ink: #0b1220;
  --ssh-navy: #16213b;
  --ssh-blue: #2f5eff;
  --ssh-blue-hover: #2349d8;
  --ssh-teal: #17c3b2;
  --ssh-canvas: #f6f8fc;
  --ssh-field: #f0f2ff;
  --ssh-pale: #e8eeff;
  --ssh-line: #dde4f0;
  --ssh-text: #141b2d;
  --ssh-muted: #5b6479;
  --ssh-shadow: 0 18px 50px rgba(11, 18, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ssh-library-page,
body.ssh-template-preview-page {
  margin: 0;
  color: var(--ssh-text);
  background: var(--ssh-canvas);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.ssh-template-preview-page {
  overflow: hidden;
  background: var(--ssh-ink);
}

.ssh-library-page h1,
.ssh-library-page h2,
.ssh-library-page h3,
.ssh-template-preview-page h1 {
  margin: 0;
  color: var(--ssh-ink);
  font-family: "Sora", Arial, sans-serif;
}

.ssh-library-page p,
.ssh-template-preview-page p {
  margin: 0;
}

.ssh-library-page a,
.ssh-template-preview-page a {
  color: inherit;
  text-decoration: none;
}

.ssh-library-page a:focus-visible,
.ssh-library-page button:focus-visible,
.ssh-template-preview-page a:focus-visible,
.ssh-template-preview-page button:focus-visible {
  outline: 3px solid rgba(47, 94, 255, 0.35);
  outline-offset: 3px;
}

.ssh-icon {
  flex: 0 0 auto;
  width: 1.2em;
  height: 1.2em;
}

.ssh-library-container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.ssh-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 11px 16px;
  border-radius: 10px;
  color: #fff !important;
  background: var(--ssh-ink);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.ssh-skip-link:focus {
  transform: translateY(0);
}

.ssh-library-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--ssh-line);
  background: rgba(246, 248, 252, 0.95);
  backdrop-filter: blur(10px);
}

.ssh-library-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 28px;
}

.ssh-library-brand {
  color: var(--ssh-ink) !important;
  font-family: "Sora", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ssh-library-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  color: var(--ssh-muted);
  font-size: 14px;
  font-weight: 600;
}

.ssh-library-nav a {
  transition: color 0.18s ease;
}

.ssh-library-nav a:hover,
.ssh-library-nav a.is-current {
  color: var(--ssh-blue);
}

.ssh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.ssh-button:hover {
  transform: translateY(-2px);
}

.ssh-button--primary {
  color: #fff !important;
  background: var(--ssh-blue);
  box-shadow: 0 10px 24px rgba(47, 94, 255, 0.2);
}

.ssh-button--primary:hover {
  background: var(--ssh-blue-hover);
}

.ssh-button--dark {
  color: #fff !important;
  background: var(--ssh-ink);
}

.ssh-button--outline {
  color: var(--ssh-blue) !important;
  border-color: var(--ssh-blue);
  background: #fff;
}

.ssh-button--outline:hover {
  background: var(--ssh-pale);
}

.ssh-library-header__cta {
  min-height: 44px;
  padding-inline: 18px;
}

.ssh-library-hero {
  padding: 88px 0 82px;
  border-bottom: 1px solid var(--ssh-line);
  background: var(--ssh-field);
}

.ssh-library-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 70px;
}

.ssh-eyebrow {
  margin-bottom: 18px !important;
  color: var(--ssh-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ssh-library-hero h1 {
  max-width: 830px;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.ssh-library-hero__intro {
  padding-left: 24px;
  border-left: 2px solid var(--ssh-blue);
  color: var(--ssh-muted);
  font-size: 17px;
  line-height: 1.7;
}

.ssh-library-list {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}

.ssh-library-list::before {
  position: absolute;
  top: -100px;
  left: 12%;
  width: 76%;
  height: 330px;
  background: radial-gradient(circle, rgba(47, 94, 255, 0.08), rgba(47, 94, 255, 0) 68%);
  content: "";
  pointer-events: none;
}

.ssh-library-list > .ssh-library-container {
  position: relative;
}

.ssh-library-list__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}

.ssh-library-list__head .ssh-eyebrow {
  margin-bottom: 8px !important;
}

.ssh-library-list h2 {
  font-size: 32px;
  letter-spacing: -0.04em;
}

.ssh-library-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--ssh-line);
  border-radius: 999px;
  color: var(--ssh-muted);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.ssh-library-status .ssh-icon {
  color: var(--ssh-teal);
}

.ssh-template-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  padding: 22px;
  border: 1px solid var(--ssh-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(11, 18, 32, 0.06);
}

.ssh-filter-field {
  min-width: 0;
}

.ssh-filter-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ssh-ink);
  font-size: 12px;
  font-weight: 700;
}

.ssh-filter-field input,
.ssh-filter-field select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--ssh-line);
  border-radius: 11px;
  color: var(--ssh-text);
  background: var(--ssh-canvas);
  font: 500 14px/1.2 "Inter", Arial, sans-serif;
}

.ssh-filter-field input:hover,
.ssh-filter-field select:hover {
  border-color: #bdc8dc;
}

.ssh-filter-field input:focus,
.ssh-filter-field select:focus {
  border-color: var(--ssh-blue);
  outline: 3px solid rgba(47, 94, 255, 0.16);
  outline-offset: 1px;
}

.ssh-template-filters__footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 20px;
  padding-top: 4px;
}

.ssh-template-results {
  color: var(--ssh-muted);
  font-size: 14px;
  font-weight: 700;
}

.ssh-template-filters__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ssh-template-filters__actions > a {
  color: var(--ssh-blue);
  font-size: 14px;
  font-weight: 700;
}

.ssh-library-enhanced .ssh-template-filters__actions .ssh-button {
  display: none;
}

.ssh-library-empty {
  padding: 58px 24px;
  border: 1px dashed #bdc8dc;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.ssh-library-empty h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.ssh-library-empty p {
  margin-bottom: 22px !important;
  color: var(--ssh-muted);
}

[hidden] {
  display: none !important;
}

.ssh-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.ssh-template-card {
  overflow: hidden;
  border: 1px solid var(--ssh-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(11, 18, 32, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ssh-template-card[data-template-demo-card] {
  cursor: pointer;
}

.ssh-template-card[data-template-demo-card]:hover {
  box-shadow: 0 18px 42px rgba(16, 31, 64, .12);
}

.ssh-template-card[data-template-demo-card]:focus-visible {
  outline: 3px solid #2f5bff;
  outline-offset: 4px;
}

.ssh-template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(11, 18, 32, 0.11);
}

.ssh-template-card__media {
  padding: 16px;
  border-bottom: 1px solid var(--ssh-line);
  background: var(--ssh-pale);
}

.ssh-template-card:nth-child(2) .ssh-template-card__media {
  background: var(--ssh-field);
}

.ssh-browser-frame {
  overflow: hidden;
  border: 1px solid var(--ssh-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.08);
}

.ssh-browser-frame__bar {
  display: flex;
  align-items: center;
  height: 36px;
  gap: 7px;
  padding: 0 13px;
  border-bottom: 1px solid var(--ssh-line);
  background: var(--ssh-canvas);
}

.ssh-browser-frame__bar i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfd6e3;
}

.ssh-browser-frame__bar b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36%;
  min-width: 128px;
  height: 20px;
  margin-inline: auto;
  border: 1px solid var(--ssh-line);
  border-radius: 999px;
  color: var(--ssh-muted);
  background: #fff;
  font-size: 10px;
  font-weight: 600;
}

.ssh-template-card .ssh-browser-frame__bar b {
  width: 112px;
  min-width: 0;
  margin-left: 7px;
  margin-right: auto;
  border: 0;
  background: var(--ssh-field);
  font-size: 0;
}

.ssh-browser-frame__shot {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.ssh-browser-frame__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.45s ease;
}

.ssh-template-card:hover .ssh-browser-frame__shot img {
  transform: translateY(-1.5%);
}

.ssh-template-card__body {
  padding: 28px;
}

.ssh-template-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ssh-template-card__category {
  margin-bottom: 7px !important;
  color: var(--ssh-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ssh-template-card h3 {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.038em;
}

.ssh-template-card__badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ssh-blue);
  background: var(--ssh-pale);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ssh-template-card__badges {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.ssh-template-card__badge--popular {
  color: #086b63;
  background: #dcf8f4;
}

.ssh-template-card__badge--new {
  color: var(--ssh-ink);
  background: #eef1f7;
}

.ssh-template-card__description {
  min-height: 52px;
  margin-bottom: 20px !important;
  color: var(--ssh-muted);
  font-size: 15px;
  line-height: 1.65;
}

.ssh-template-card__capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: -4px 0 20px;
  padding: 0;
  color: var(--ssh-ink);
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.ssh-template-card__capabilities li {
  position: relative;
  padding-left: 15px;
}

.ssh-template-card__capabilities li::before {
  position: absolute;
  left: 0;
  color: var(--ssh-teal);
  content: "✓";
}

.ssh-category-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: -8px 0 30px;
}

.ssh-category-picker a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 86px;
  padding: 15px 16px;
  border: 1px solid var(--ssh-line);
  border-radius: 14px;
  color: var(--ssh-ink);
  background: #fff;
  box-shadow: 0 7px 18px rgba(11, 18, 32, 0.035);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ssh-category-picker a:hover {
  transform: translateY(-2px);
  border-color: #bdc8dc;
  box-shadow: 0 12px 26px rgba(11, 18, 32, 0.08);
}

.ssh-category-picker a {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.ssh-category-picker span {
  margin-top: 5px;
  color: var(--ssh-muted);
  font-size: 12px;
  font-weight: 600;
}

.ssh-category-picker a[aria-current="page"] {
  border-color: var(--ssh-blue);
  color: #fff;
  background: var(--ssh-blue);
}

.ssh-category-picker a[aria-current="page"] span {
  color: rgba(255, 255, 255, 0.78);
}

.ssh-template-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.ssh-template-card__tags span {
  padding: 6px 11px;
  border: 1px solid var(--ssh-line);
  border-radius: 999px;
  color: var(--ssh-muted);
  background: var(--ssh-canvas);
  font-size: 12px;
  font-weight: 600;
}

.ssh-template-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ssh-library-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
  padding: 22px 24px;
  border: 1px solid var(--ssh-line);
  border-radius: 20px;
  background: #fff;
}

.ssh-library-note__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: var(--ssh-blue);
  background: var(--ssh-pale);
}

.ssh-library-note__icon .ssh-icon {
  width: 23px;
  height: 23px;
}

.ssh-library-note h3 {
  margin-bottom: 5px;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.ssh-library-note p {
  color: var(--ssh-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ssh-library-note > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  color: var(--ssh-blue);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.ssh-library-footer {
  padding: 36px 0;
  border-top: 1px solid var(--ssh-line);
  background: #fff;
}

.ssh-library-footer .ssh-library-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ssh-library-footer p {
  color: var(--ssh-muted);
  font-size: 13px;
}

.ssh-library-footer > div > a:last-child {
  margin-left: auto;
  color: var(--ssh-muted);
  font-size: 13px;
  font-weight: 600;
}

.ssh-preview-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 76px;
  gap: 20px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  background: var(--ssh-navy);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.ssh-preview-toolbar__identity,
.ssh-preview-toolbar__actions {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.ssh-preview-toolbar__actions {
  justify-content: flex-end;
}

.ssh-preview-toolbar__identity > div {
  min-width: 0;
}

.ssh-preview-toolbar__actions .ssh-button {
  box-shadow: 0 10px 24px rgba(47, 94, 255, 0.28);
}

.ssh-preview-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.18s ease;
}

.ssh-preview-back:hover {
  background: rgba(255, 255, 255, 0.09);
}

.ssh-preview-toolbar__identity p {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ssh-preview-toolbar h1 {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ssh-preview-devices {
  display: inline-flex;
  justify-self: center;
  padding: 4px;
  border-radius: 12px;
  background: var(--ssh-ink);
}

.ssh-preview-devices button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.56);
  background: transparent;
  font: 700 12px/1 "Inter", Arial, sans-serif;
  cursor: pointer;
}

.ssh-preview-devices button[aria-pressed="true"] {
  color: var(--ssh-ink);
  background: #fff;
  box-shadow: 0 2px 8px rgba(11, 18, 32, 0.1);
}

.ssh-preview-device--secondary {
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.ssh-preview-toolbar__actions > p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.ssh-preview-toolbar__actions > p .ssh-icon {
  color: var(--ssh-teal);
}

.ssh-preview-boundary {
  position: relative;
  z-index: 19;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 20px;
  color: var(--ssh-navy);
  background: var(--ssh-teal);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.ssh-preview-boundary span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ssh-preview-boundary span::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.ssh-preview-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: calc(100vh - 114px);
  overflow: auto;
  padding: 26px;
  background: var(--ssh-ink);
}

.ssh-preview-frame {
  flex: 0 0 auto;
  align-self: flex-start;
  overflow: hidden;
  max-width: 100%;
  min-height: 760px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transition: width 0.28s ease, border-radius 0.28s ease;
}

.ssh-preview-frame[data-device="desktop"] {
  width: min(1440px, 100%);
}

.ssh-preview-frame[data-device="tablet"] {
  width: min(820px, 100%);
}

.ssh-preview-frame[data-device="mobile"] {
  width: min(390px, 100%);
  border-radius: 28px;
}

.ssh-preview-frame iframe {
  display: block;
  width: 100%;
  height: calc(100vh - 180px);
  min-height: 720px;
  border: 0;
  background: #fff;
}

.ssh-preview-frame[data-device="mobile"] .ssh-browser-frame__bar b {
  visibility: hidden;
}

@media (max-width: 1040px) {
  .ssh-library-nav {
    display: none;
  }

  .ssh-library-hero__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .ssh-library-hero__intro {
    max-width: 680px;
  }

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

  .ssh-category-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ssh-preview-toolbar {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .ssh-preview-devices {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ssh-preview-toolbar__actions > p {
    display: none;
  }

  .ssh-preview-stage {
    height: calc(100vh - 164px);
  }

  .ssh-preview-frame iframe {
    height: calc(100vh - 230px);
  }
}

@media (max-width: 820px) {
  .ssh-library-container {
    width: min(100% - 40px, 680px);
  }

  .ssh-library-header__inner {
    min-height: 72px;
  }

  .ssh-library-header__cta {
    min-width: 0;
    padding-inline: 14px;
    font-size: 13px;
  }

  .ssh-library-hero {
    padding: 62px 0;
  }

  .ssh-library-list {
    padding: 64px 0 72px;
  }

  .ssh-library-list__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ssh-template-grid {
    grid-template-columns: 1fr;
  }

  .ssh-library-note {
    grid-template-columns: auto 1fr;
  }

  .ssh-library-note > a {
    grid-column: 2;
  }

  .ssh-library-footer .ssh-library-container {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .ssh-library-footer > div > a:last-child {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .ssh-library-container {
    width: calc(100% - 32px);
  }

  .ssh-library-brand {
    font-size: 18px;
  }

  .ssh-library-header__cta {
    min-height: 42px;
    padding-inline: 12px;
  }

  .ssh-library-hero h1 {
    font-size: clamp(39px, 12vw, 50px);
  }

  .ssh-library-hero__intro {
    padding-left: 18px;
    font-size: 16px;
  }

  .ssh-library-status {
    align-items: flex-start;
    border-radius: 14px;
    line-height: 1.45;
  }

  .ssh-template-filters {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .ssh-category-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 24px;
  }

  .ssh-category-picker a {
    min-height: 76px;
    padding: 13px;
  }

  .ssh-template-filters__footer {
    grid-column: 1;
    align-items: flex-start;
    flex-direction: column;
  }

  .ssh-template-filters__actions {
    width: 100%;
    justify-content: space-between;
  }

  .ssh-template-card__media {
    padding: 11px;
  }

  .ssh-template-card__body {
    padding: 22px;
  }

  .ssh-template-card__description {
    min-height: 0;
  }

  .ssh-template-card__actions {
    grid-template-columns: 1fr;
  }

  .ssh-library-note {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .ssh-library-note > a {
    grid-column: 1;
    white-space: normal;
  }

  .ssh-preview-toolbar {
    display: flex;
    flex-wrap: wrap;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  }

  .ssh-preview-toolbar__identity {
    flex: 1 1 45%;
  }

  .ssh-preview-back span {
    display: none;
  }

  .ssh-preview-toolbar__identity > div p {
    margin-bottom: 3px;
    color: var(--ssh-teal);
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .ssh-preview-toolbar__actions {
    flex: 1 1 auto;
  }

  .ssh-preview-toolbar__actions .ssh-button {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .ssh-preview-devices {
    order: 3;
    width: 100%;
  }

  .ssh-preview-devices button {
    flex: 1;
  }

  .ssh-preview-devices button span {
    display: none;
  }

  .ssh-preview-stage {
    height: calc(100vh - 162px);
    padding: 12px;
  }

  .ssh-preview-frame {
    min-height: 680px;
  }

  .ssh-preview-frame iframe {
    height: calc(100vh - 228px);
    min-height: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
