.catalog-search {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.catalog-search input {
  border: 1px solid var(--line, #c9c7bc);
  border-radius: 24px;
  background: transparent;
  padding: 10px 14px;
  color: inherit;
  font: inherit;
  min-width: 220px;
}
.account-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10%;
  padding-top: 76px;
  padding-bottom: 90px;
  min-height: 75dvh;
}
.account-story h1,
.library h1 {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 20px 0 24px;
}
.account-story em,
.library h1 em {
  font-family: Instrument, Georgia, serif;
  font-weight: 400;
}
.account-eyebrow {
  font-size: 13px;
  color: var(--muted);
}
.account-story > p:not(.account-eyebrow) {
  font-size: 16px;
  line-height: 1.7;
  max-width: 460px;
  color: var(--muted);
}
.account-story ul {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}
.account-story li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  max-width: 420px;
}
.account-story > a {
  font-size: 13px;
  text-underline-offset: 5px;
}
.login-panel {
  background: #faf8f2;
  padding: 32px;
  border-radius: 5px;
  align-self: start;
}
.login-panel h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.login-panel > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.google-login {
  width: 100%;
  margin-top: 16px;
  justify-content: center;
}
.login-panel button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
.login-panel form {
  display: grid;
  gap: 12px;
}
.login-panel label {
  font-size: 13px;
  font-weight: 500;
}
.login-panel input {
  width: 100%;
  border: 1px solid #96998a;
  border-radius: 4px;
  background: transparent;
  font: inherit;
  padding: 13px;
  color: inherit;
}
.login-panel [hidden] {
  display: none !important;
}
.login-panel .button {
  border: 0;
  font: inherit;
  justify-content: center;
  cursor: pointer;
}
.login-divider {
  border-top: 1px solid var(--line);
  position: relative;
  text-align: center;
  margin: 32px 0 24px;
}
.login-divider span {
  position: relative;
  top: -12px;
  background: #faf8f2;
  padding: 0 12px;
  font-size: 12px;
  color: var(--muted);
}
.provider-note {
  font-size: 12px !important;
}
.login-fineprint {
  font-size: 12px !important;
  margin-top: 24px;
}
.local-preview {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.local-preview p {
  line-height: 1.6;
}
.local-preview button {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.local-preview strong {
  font-weight: 600;
}
.login-panel .text-action {
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
  justify-self: center;
}
#account-message {
  font-size: 14px;
  line-height: 1.6;
  margin: 18px 0;
  min-height: 22px;
}
#account-message.error {
  color: #a03224;
}
#account-message.success {
  color: #435623;
}

.library {
  padding-top: 50px;
  padding-bottom: 90px;
  min-height: 75dvh;
}
.library-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 44px;
}
.library-heading p {
  color: var(--muted);
}
.library-heading h1 {
  margin: 16px 0 20px;
}
.library-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.library-section-heading h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.library-section-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.library-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.library-item {
  padding: 28px 0;
}
.library-item .category {
  font-size: 12px;
  color: var(--muted);
}
.library-item h3 {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 500;
  margin: 12px 0;
}
.library-item > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.library-item .text-action {
  margin-top: 14px;
}
.library-empty {
  padding: 40px 0;
}
.library-empty h2,
.library-empty h3 {
  font-size: 25px;
  font-weight: 500;
  margin: 0 0 16px;
}
.library-empty p {
  font-size: 14px;
  color: var(--muted);
}
.library-empty .button {
  margin-top: 20px;
}
.benefits {
  margin-top: 40px;
}
.coupon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.coupon h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
}
.coupon p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 560px;
}
.coupon code {
  font:
    14px Inter,
    sans-serif;
  letter-spacing: 0.08em;
}
.coupon button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px 20px;
  background: none;
  color: inherit;
  font: inherit;
}
.library nav button {
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}
.library [hidden] {
  display: none !important;
}
#coupon-input {
  padding: 12px;
  border: 1px solid var(--line);
  background: transparent;
  font: inherit;
}
.purchase-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.catalog-toolbar {
  flex-wrap: wrap;
  gap: 18px;
}
.account-layout a:focus-visible,
.account-layout button:focus-visible,
.library a:focus-visible,
.library button:focus-visible,
input:focus-visible {
  outline: 3px solid #687b26;
  outline-offset: 4px;
}
@media (max-width: 850px) {
  .account-layout {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 48px;
  }
  .login-panel {
    padding: 24px;
  }
  .account-story h1 {
    font-size: 48px;
  }
  .library-items {
    grid-template-columns: 1fr 1fr;
  }
  .library-heading {
    align-items: flex-start;
  }
  .library-heading > .button {
    font-size: 13px;
  }
  .catalog-search {
    order: 3;
    width: 100%;
  }
  .catalog-search input {
    flex: 1;
  }
}
@media (max-width: 600px) {
  .account-layout {
    grid-template-columns: 1fr;
    padding-top: 30px;
    gap: 24px;
  }
  .account-story h1 {
    font-size: 46px;
  }
  .account-story ul,
  .account-story > a {
    display: none;
  }
  .account-story > p:not(.account-eyebrow) {
    font-size: 14px;
  }
  .login-panel {
    padding: 24px 20px;
  }
  .library {
    padding-top: 32px;
  }
  .library-heading {
    display: block;
    margin-bottom: 28px;
  }
  .library-heading > .button {
    margin-top: 20px;
  }
  .library h1 {
    font-size: 42px;
  }
  .library-items {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .library-item {
    border-bottom: 1px solid var(--line);
  }
  .library-section-heading {
    gap: 12px;
  }
  .library-section-heading > span {
    max-width: 150px;
    text-align: right;
  }
  .coupon {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .coupon h3 {
    font-size: 21px;
  }
  body[data-page] .site-header nav {
    display: flex;
  }
  .site-header {
    gap: 12px;
  }
  .site-header .header-link {
    font-size: 12px;
    padding: 10px;
  }
  .catalog-search {
    display: block;
  }
  .catalog-search input {
    display: block;
    min-width: 0;
    width: 100%;
    margin-top: 7px;
  }
}
.admin-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}
.admin-product {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #faf8f2;
}
.admin-product h2 {
  font-size: 20px;
  font-weight: 500;
}
.admin-product label {
  display: grid;
  gap: 7px;
  font-size: 13px;
}
.admin-product input,
.admin-product textarea,
.admin-product select {
  padding: 12px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}
.admin-product textarea {
  min-height: 90px;
}
.admin-product button {
  border: 0;
  cursor: pointer;
}
.admin-product p {
  font-size: 13px;
}
.purchase-state .button {
  border: 0;
  cursor: pointer;
}
@media (max-width: 700px) {
  .admin-products {
    grid-template-columns: 1fr;
  }
}

.coupon > div:last-child {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
body[data-page] .site-header button {
  background: transparent;
  border: 1px solid var(--line);
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.otp-group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.otp-group legend {
  font-size: 13px;
  font-weight: 500;
  padding: 0;
  margin-bottom: 12px;
}
.otp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.login-panel .otp-digit {
  font-size: 28px;
  letter-spacing: 0;
  text-align: center;
  padding: 12px 0;
  min-width: 0;
  height: 64px;
  caret-color: #687b26;
  border-radius: 8px;
  background: #fffdf8;
}
.login-panel .otp-digit:focus {
  border-color: #687b26;
  outline: 2px solid #687b26;
  outline-offset: 2px;
}
.login-panel .otp-digit:invalid:not(:focus) {
  box-shadow: none;
}
@media (max-width: 600px) {
  .otp-grid {
    gap: 7px;
  }
  .login-panel .otp-digit {
    height: 55px;
    font-size: 25px;
  }
}
