@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700;800&display=swap");
:root {
  --ink: #111827;
  --muted: #697386;
  --line: #e4e7ec;
  --paper: #f7f8fa;
  --white: #fff;
  --lime: #d2f25b;
  --orange: #ff714b;
  --navy: #101827;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(17, 24, 39, 0.07);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

.logo{
    width: 50px;

    display: block;
    max-width: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.55 "DM Sans",
    system-ui,
    -apple-system,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}
.site-header {
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.7px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--lime);
  border-radius: 9px;
  font-weight: 900;
}
.brand-light {
  font-weight: 500;
  color: #838b98;
  margin-left: 1px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 600;
}
.main-nav a {
  color: #5d6674;
}
.main-nav a:hover {
  color: var(--ink);
}
.main-nav .nav-login {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 15px;
  color: var(--ink);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 23px;
}
.hero {
  min-height: 385px;
  background: var(--navy);
  color: #fff;
  margin: 28px 0 24px;
  border-radius: 21px;
  position: relative;
  overflow: hidden;
  padding: 62px 7% 58px;
  display: flex;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 510px;
}
.eyebrow {
  font:
    500 10px/1.5 "DM Mono",
    monospace;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #929bab;
  margin: 0 0 13px;
}
.hero .eyebrow {
  color: var(--lime);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.99;
  letter-spacing: -3px;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero h1 span {
  color: var(--lime);
}
.hero-lede {
  max-width: 390px;
  color: #aeb6c4;
  margin-bottom: 25px;
  font-size: 15px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  padding: 12px 17px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.15s;
}
.button:hover {
  transform: translateY(-1px);
}
.button-primary {
  background: var(--lime);
  color: #15200a;
}
.button-primary:hover {
  background: #ddf77a;
}
.button-dark {
  background: var(--ink);
  color: #fff;
}
.button-outline {
  background: transparent;
  border: 1px solid #d7dbe2;
  color: var(--ink);
}
.hero-art {
  position: absolute;
  right: 5%;
  top: 0;
  width: 42%;
  height: 100%;
  overflow: hidden;
}
.hero-ring {
  position: absolute;
  border: 1px solid rgba(210, 242, 91, 0.25);
  border-radius: 50%;
  width: 380px;
  height: 380px;
  right: 5%;
  top: 9px;
}
.ring-two {
  width: 270px;
  height: 270px;
  right: 19%;
  top: 63px;
  border-color: rgba(255, 255, 255, 0.11);
}
.hero-stat {
  position: absolute;
  right: 32%;
  top: 40%;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.hero-stat strong {
  font-size: 54px;
  line-height: 1;
  color: var(--lime);
  letter-spacing: -2px;
}
.hero-stat span {
  font:
    10px "DM Mono",
    monospace;
  color: #bbc3d0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 7px;
}
.hero-bar {
  position: absolute;
  height: 9px;
  background: var(--lime);
  width: 120px;
  right: -6px;
  top: 25%;
  transform: rotate(-36deg);
}
.bar-two {
  width: 75px;
  right: 2%;
  top: 73%;
  background: var(--orange);
  transform: rotate(38deg);
}
.hero-caption {
  position: absolute;
  bottom: 20px;
  right: 25px;
  font:
    9px "DM Mono",
    monospace;
  letter-spacing: 1.5px;
  color: #70798a;
}
.section-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 68px;
}
.section-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px 18px;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 700;
  transition: 0.18s;
}
.section-tile:hover,
.section-tile.selected {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.section-index {
  font:
    10px "DM Mono",
    monospace;
  color: #a2a9b4;
}
.tile-arrow {
  margin-left: auto;
  color: #959daa;
}
.library-section {
  padding-bottom: 70px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: 32px;
  letter-spacing: -1.1px;
  margin: 0;
}
.result-count {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 5px;
}
.filter-panel {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 22px;
}
.filter-panel select,
.search-field input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.filter-panel select {
  padding: 10px 25px 10px 11px;
  max-width: 200px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 180px;
  border-right: 1px solid var(--line);
  padding: 0 14px 0 6px;
  color: #8992a1;
  font-size: 25px;
}
.search-field input {
  width: 100%;
  font-size: 13px;
}
.filter-panel .button {
  padding: 11px 17px;
}
.clear-link {
  padding: 0 7px;
  color: var(--muted);
  font-size: 12px;
}
.workout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.workout-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 19px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.workout-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-top,
.detail-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font:
    500 10px "DM Mono",
    monospace;
  letter-spacing: 0.2px;
  background: #eef0f3;
  color: #596170;
}
.tag-open {
  background: #e8efff;
  color: #3158a6;
}
.tag-girls {
  background: #ffede7;
  color: #a94a2d;
}
.tag-hero {
  background: #ede9ff;
  color: #5d4caa;
}
.tag-standard {
  background: #eff6da;
  color: #596a24;
}
.workout-id {
  font:
    10px "DM Mono",
    monospace;
  color: #a1a7b1;
}
.workout-card h3 {
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 19px 0 3px;
}
.workout-card h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}
.program-label {
  font-size: 11px;
  color: #8a92a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 15px;
}
.wod-preview {
  font-size: 12px;
  color: #424b59;
  line-height: 1.65;
  max-height: 104px;
  overflow: hidden;
  mask-image: linear-gradient(#000 75%, transparent);
  white-space: normal;
}
.card-bottom {
  border-top: 1px solid #eef0f2;
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 25px;
}
.card-bottom > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card-bottom small,
.detail-meta small {
  font:
    9px "DM Mono",
    monospace;
  letter-spacing: 0.8px;
  color: #9299a5;
}
.card-bottom strong {
  font-size: 12px;
}
.card-link {
  margin-left: auto;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.card-link:hover {
  background: var(--lime);
  border-color: var(--lime);
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 30px 0;
}
.pagination a {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  font-size: 13px;
}
.pagination .current {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.empty-state {
  text-align: center;
  background: #fff;
  border: 1px dashed #d7dce4;
  border-radius: 16px;
  padding: 55px 20px;
  margin: 30px 0;
}
.empty-state h3,
.empty-state h1 {
  margin-bottom: 6px;
}
.empty-state p {
  color: var(--muted);
}
.empty-icon {
  font-size: 30px;
  color: #9ba3af;
  margin-bottom: 12px;
}
.site-footer {
  height: 78px;
  border-top: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  color: #8992a0;
  font:
    10px "DM Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.detail-card {
  max-width: 780px;
  margin: 30px auto 80px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 6vw, 54px);
  box-shadow: var(--shadow);
}
.detail-kicker {
  margin-bottom: 40px;
}
.detail-card h1 {
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1;
  letter-spacing: -2.5px;
  margin: 0 0 28px;
}
.detail-meta {
  display: flex;
  gap: 44px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 27px;
}
.detail-meta div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.detail-meta strong {
  font-size: 15px;
}
.detail-wod {
  font-size: 17px;
  line-height: 1.95;
  margin-bottom: 28px;
  white-space: normal;
}
.back-link {
  display: inline-block;
  color: #747d8a;
  font-size: 13px;
  margin: 24px 0 0;
}
.back-link:hover {
  color: var(--ink);
}
.notice {
  padding: 13px 16px;
  border-radius: 10px;
  margin: 18px 0;
  font-size: 13px;
}
.notice.success {
  background: #edf7da;
  color: #3f5716;
}
.notice.error {
  background: #fff0ec;
  color: #9c3f26;
}
.notice ul {
  margin: 0;
  padding-left: 19px;
}
.auth-card {
  max-width: 440px;
  margin: 70px auto 100px;
  background: #fff;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
  margin-bottom: 4px;
}
.auth-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}
.stack-form {
  display: grid;
  gap: 16px;
  margin-top: 25px;
}
.stack-form label,
.editor-form label,
.import-card label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}
.stack-form input,
.editor-form input,
.editor-form select,
.editor-form textarea,
.import-card input[type="file"] {
  width: 100%;
  border: 1px solid #dce0e6;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.stack-form input:focus,
.editor-form input:focus,
.editor-form select:focus,
.editor-form textarea:focus {
  border-color: #858e9d;
  box-shadow: 0 0 0 3px #eef0f3;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 44px 0 24px;
}
.admin-heading h1 {
  font-size: 36px;
  letter-spacing: -1.3px;
  margin: 0 0 5px;
}
.admin-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.admin-actions {
  display: flex;
  gap: 9px;
}
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 75px;
}
.admin-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  text-align: left;
}
.admin-table th {
  background: #f4f5f7;
  color: #77808e;
  font:
    10px "DM Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f3;
  font-size: 12px;
}
.admin-table td:nth-child(1) {
  font-family: "DM Mono", monospace;
  color: #697386;
}
.admin-table tr:last-child td {
  border-bottom: 0;
}
.row-actions {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 13px;
}
.row-actions a {
  font-weight: 700;
}
.row-actions form {
  display: inline;
}
.row-actions button {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.text-danger {
  color: #c14631;
}
.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 35px !important;
}
.editor-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 75px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.editor-form small {
  font-size: 10px;
  color: #858d9a;
  font-weight: 400;
}
.editor-form textarea {
  resize: vertical;
  line-height: 1.6;
}
.wide-field {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  gap: 9px;
  margin-top: 23px;
}
.import-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 25px 0;
}
.import-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 23px;
  border-radius: 14px;
}
.import-card h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.import-card p,
.callout p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.import-card form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-top: 16px;
}
.import-card code,
.callout code {
  background: #f0f2f5;
  padding: 2px 5px;
  border-radius: 4px;
}
.callout {
  border-left: 3px solid var(--lime);
  background: #fff;
  padding: 16px 18px;
  margin-bottom: 25px;
}
.callout strong {
  font-size: 13px;
}
.callout p {
  margin: 5px 0 0;
}
.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;
}
@media (max-width: 850px) {
  .hero-art {
    right: -10%;
    width: 50%;
    opacity: 0.78;
  }
  .workout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-panel {
    flex-wrap: wrap;
  }
  .search-field {
    flex-basis: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 2px 10px 10px;
  }
  .filter-panel select {
    flex: 1;
    max-width: none;
  }
  .section-picker {
    margin-bottom: 52px;
  }
  .main-nav {
    gap: 19px;
  }
}
@media (max-width: 600px) {
  .container {
    width: min(100% - 30px, 1160px);
  }
  .site-header {
    height: 66px;
    padding: 0 16px;
  }
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 20px #11182712;
    align-items: stretch;
    gap: 0;
    flex-direction: column;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid #f0f1f3;
  }
  .main-nav .nav-login {
    border: 0;
    padding: 12px 4px;
  }
  .hero {
    margin: 15px 0 15px;
    min-height: 385px;
    padding: 45px 25px 52px;
    border-radius: 15px;
  }
  .hero h1 {
    font-size: 45px;
    letter-spacing: -2.5px;
  }
  .hero-lede {
    max-width: 290px;
    font-size: 13px;
  }
  .hero-art {
    right: -44%;
    width: 100%;
    opacity: 0.4;
  }
  .hero-stat {
    right: 35%;
    top: 47%;
  }
  .hero-stat strong {
    font-size: 42px;
  }
  .hero-caption {
    right: 14px;
    font-size: 8px;
  }
  .section-picker {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 45px;
  }
  .section-tile {
    min-height: 63px;
    padding: 13px 12px;
    font-size: 13px;
    gap: 8px;
  }
  .section-heading h2 {
    font-size: 27px;
  }
  .workout-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .workout-card {
    padding: 17px;
  }
  .workout-card h3 {
    margin-top: 15px;
  }
  .filter-panel {
    gap: 5px;
    padding: 9px;
  }
  .filter-panel select {
    font-size: 11px;
    padding: 9px 5px;
    min-width: 0;
  }
  .filter-panel .button {
    font-size: 11px;
    padding: 10px;
  }
  .clear-link {
    font-size: 11px;
  }
  .detail-card {
    margin: 18px auto 55px;
    padding: 23px;
  }
  .detail-kicker {
    margin-bottom: 30px;
  }
  .detail-card h1 {
    font-size: 45px;
  }
  .detail-wod {
    font-size: 15px;
  }
  .admin-heading {
    display: block;
    margin: 32px 0 20px;
  }
  .admin-heading h1 {
    font-size: 30px;
  }
  .admin-actions {
    margin-top: 16px;
    flex-wrap: wrap;
  }
  .form-grid,
  .import-grid {
    grid-template-columns: 1fr;
  }
  .wide-field {
    grid-column: auto;
  }
  .editor-form {
    padding: 17px;
  }
  .auth-card {
    margin: 45px auto 70px;
    padding: 25px;
  }
  .site-footer {
    padding: 0 16px;
  }
  .table-wrap {
    margin-bottom: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.random-workout-section {
    margin: 0 0 64px;
}

.random-workout-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 16px;
}

.random-workout-card {
    max-width: 520px;
}

.random-empty {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 600px) {
    .random-workout-section {
        margin-bottom: 45px;
    }

    .random-workout-buttons .button {
        flex: 1 1 calc(50% - 9px);
    }
}
