:root {
  --paper: #f7f0e4;
  --paper-strong: #f3e7d3;
  --ink: #24302b;
  --ink-soft: #5f675f;
  --wood: #7b5234;
  --wood-deep: #52321f;
  --moss: #6d8b66;
  --moss-deep: #40543d;
  --rose: #c66a61;
  --gold: #c49d5c;
  --sky: #8aa7b0;
  --white: #fffdf8;
  --shadow: 0 18px 48px rgba(66, 36, 18, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 32%),
    linear-gradient(180deg, #f8f2e8 0%, #efe3d4 42%, #f6efe4 100%);
  position: relative;
  overflow-x: hidden;
}

.site-nav,
.site-shell,
.app-shell {
  position: relative;
  z-index: 1;
}

.site-nav {
  padding: 1rem 0 0;
}

.site-nav-inner,
.landing-hero,
.landing-panel,
.landing-section,
.landing-auth-card {
  background: rgba(255, 252, 246, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(111, 78, 53, 0.08);
  box-shadow: var(--shadow);
}

.site-nav-inner,
.site-shell {
  width: min(1200px, calc(100vw - 2rem));
  margin: 0 auto;
}

.site-nav-inner {
  border-radius: 999px;
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
}

.site-brand-logo {
  display: block;
  width: min(100%, 230px);
  height: auto;
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.site-shell {
  padding: 1rem 0 0;
}

.landing-hero {
  border-radius: 34px;
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.landing-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.landing-copy h1 {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  max-width: 10ch;
  color: var(--ink);
}

.landing-lead {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.landing-proof-grid,
.feature-grid,
.waitlist-grid,
.section-heading {
  display: grid;
  gap: 1rem;
}

.landing-proof-grid {
  grid-template-columns: 1fr;
}

.landing-panel,
.landing-auth-card {
  border-radius: 24px;
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.landing-panel h2,
.landing-panel h3,
.section-heading h2 {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  color: var(--ink);
}

.landing-panel p,
.section-heading p,
.landing-list li,
.landing-auth-card p {
  color: var(--ink-soft);
  margin: 0;
}

.landing-list {
  margin: 0;
  padding-left: 1.1rem;
}

.landing-auth-slot {
  min-height: 124px;
}

.landing-section {
  margin-top: 1rem;
  border-radius: 28px;
  padding: 1.25rem;
}

.section-heading p {
  max-width: 68ch;
}

.feature-grid {
  margin-top: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.waitlist-grid {
  margin-top: 1rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.waitlist-form {
  display: grid;
  gap: 0.9rem;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.preview-heading-section {
  margin-bottom: 1rem;
}

.button-link {
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.ambient {
  position: fixed;
  border-radius: 999px;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  width: 24rem;
  height: 24rem;
  right: -8rem;
  top: 4rem;
  background: radial-gradient(circle, rgba(196, 157, 92, 0.6), transparent 68%);
}

.ambient-two {
  width: 18rem;
  height: 18rem;
  left: -4rem;
  top: 26rem;
  background: radial-gradient(circle, rgba(109, 139, 102, 0.35), transparent 68%);
}

.ambient-three {
  width: 28rem;
  height: 28rem;
  left: 30%;
  bottom: -10rem;
  background: radial-gradient(circle, rgba(138, 167, 176, 0.25), transparent 70%);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.2rem;
  padding: 1.4rem;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 236, 223, 0.88)),
    linear-gradient(120deg, rgba(196, 157, 92, 0.08), rgba(109, 139, 102, 0.08));
  box-shadow: var(--shadow);
  border: 1px solid rgba(122, 86, 57, 0.08);
}

.brand-row,
.button-row,
.panel-header,
.hero-actions,
.summary-strip,
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.brand-chip,
.brand-tag,
.eyebrow,
.pill,
.source-chip,
.priority-chip,
.filter,
.tab,
.mini-link {
  letter-spacing: 0.04em;
}

.brand-chip {
  display: inline-flex;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: min(100%, 340px);
  height: auto;
}

.brand-tag,
.eyebrow {
  color: var(--ink-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.hero h1,
.panel h2,
.modal h2 {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 1.05;
}

.hero h1 {
  margin-top: 0.85rem;
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  max-width: 12ch;
}

.hero-text,
.panel-copy,
.subdued {
  color: var(--ink-soft);
}

.hero-text {
  max-width: 60ch;
  margin-bottom: 1.3rem;
}

.hero-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.summary-card,
.panel,
.modal-shell,
.book-card,
.feed-card,
.app-card,
.listing-card,
.stat-card,
.decor-tile {
  background: rgba(255, 252, 246, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(111, 78, 53, 0.08);
  box-shadow: var(--shadow);
}

.summary-card {
  border-radius: 24px;
  padding: 1rem;
  min-height: 7.25rem;
}

.summary-card strong {
  display: block;
  margin: 0.3rem 0 0.4rem;
  font-size: 1.05rem;
}

.tab-bar {
  position: sticky;
  top: 0.6rem;
  z-index: 4;
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  margin: 1rem 0;
  padding: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 26px rgba(66, 36, 18, 0.08);
}

.tab,
.filter,
.button,
.mini-link,
.icon-button {
  border: 0;
  cursor: pointer;
}

.tab {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  white-space: nowrap;
}

.tab.is-active,
.filter.is-active {
  background: var(--ink);
  color: var(--white);
}

.views {
  display: grid;
}

.view {
  display: none;
  animation: rise 320ms ease;
}

.view.is-active {
  display: block;
}

.section-grid {
  display: grid;
  gap: 1rem;
}

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

.library-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.5fr);
  align-items: start;
}

.inventory-panel {
  grid-column: 1 / -1;
}

.discover-grid,
.community-grid,
.booktok-grid,
.profile-grid,
.author-grid,
.sell-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 1.15rem;
  border-radius: var(--radius-xl);
}

.panel-header {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.86rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.mini-link:hover,
.tab:hover,
.filter:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-secondary {
  background: rgba(109, 139, 102, 0.16);
  color: var(--moss-deep);
}

.landing-auth-card .button-row {
  margin-top: 0.2rem;
}

.button-ghost,
.mini-link,
.icon-button {
  background: rgba(36, 48, 43, 0.06);
  color: var(--ink);
}

.mini-link {
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  font-weight: 700;
}

.filter {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(36, 48, 43, 0.08);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: 1rem;
  min-height: 7rem;
}

.stat-card strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.6rem;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.stacked-list,
.feed-list,
.inventory-list {
  display: grid;
  gap: 0.85rem;
}

.app-card,
.feed-card,
.book-card,
.listing-card {
  border-radius: var(--radius-lg);
  padding: 0.95rem;
}

.app-card,
.feed-card {
  display: grid;
  gap: 0.6rem;
}

.creator-card {
  gap: 0.8rem;
}

.spotlight-card {
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(245, 235, 220, 0.92));
}

.creator-head,
.creator-identity {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.creator-head {
  justify-content: space-between;
  flex-wrap: wrap;
}

.creator-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d7a765, #6d8b66);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(40, 25, 17, 0.14);
}

.creator-avatar-large {
  width: 72px;
  height: 72px;
  font-size: 1.1rem;
}

.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-meta p,
.creator-card p {
  margin: 0;
  color: var(--ink-soft);
}

.creator-link {
  text-decoration: none;
}

.creator-status {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.creator-status.is-featured {
  background: rgba(196, 157, 92, 0.22);
  color: #7b5b28;
}

.creator-status.is-approved {
  background: rgba(109, 139, 102, 0.18);
  color: var(--moss-deep);
}

.creator-status.is-reviewing {
  background: rgba(138, 167, 176, 0.18);
  color: #2e5561;
}

.creator-status.is-demo {
  background: rgba(36, 48, 43, 0.08);
  color: var(--ink-soft);
}

.book-card,
.listing-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
}

.book-cover,
.recommendation-cover {
  width: 88px;
  min-width: 88px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(40, 25, 17, 0.18);
  position: relative;
}

.book-cover img,
.recommendation-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-meta,
.listing-meta {
  display: grid;
  gap: 0.45rem;
}

.book-title-row,
.listing-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem;
}

.book-title {
  margin: 0;
  font-size: 1.08rem;
}

.book-author {
  margin: 0;
  color: var(--ink-soft);
}

.chip-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill,
.source-chip,
.priority-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.pill {
  background: rgba(138, 167, 176, 0.18);
  color: #2e5561;
}

.source-chip {
  background: rgba(196, 157, 92, 0.2);
  color: #7b5b28;
}

.priority-chip {
  background: rgba(198, 106, 97, 0.14);
  color: #96463f;
}

.summary-strip {
  margin-bottom: 1rem;
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(36, 48, 43, 0.08);
}

.discover-form,
.profile-form,
.manual-book-form,
.author-form {
  display: grid;
  gap: 0.9rem;
}

.discover-helper {
  margin: -0.1rem 0 0;
}

.discover-form label,
.profile-form label,
.manual-book-form label,
.author-form label,
.modal-card label,
.upload-field {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(97, 70, 50, 0.18);
  border-radius: 16px;
  padding: 0.9rem 0.95rem;
  background: rgba(255, 253, 248, 0.86);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.toggle-field {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.profile-wide-panel {
  grid-column: 1 / -1;
}

.compact-stack {
  margin-top: 0.95rem;
}

.content-mode-strip {
  margin-bottom: 1rem;
}

.content-suggestion-row {
  margin-top: -0.2rem;
}

.pill-button {
  border: 0;
  cursor: pointer;
  background: rgba(138, 167, 176, 0.18);
  color: #2e5561;
}

.recommendation-card {
  display: grid;
  gap: 0.9rem;
}

.recommendation-card .recommendation-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

.match-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--ink-soft);
}

.warning-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(198, 106, 97, 0.14);
  color: #96463f;
}

.content-warning {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(198, 106, 97, 0.08);
  border: 1px solid rgba(198, 106, 97, 0.12);
}

.content-warning strong,
.boundary-summary-card strong {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.content-warning p,
.boundary-summary-card p {
  margin: 0;
  color: var(--ink-soft);
}

.boundary-card p {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
}

.auth-helper {
  margin: 0;
}

.shelf-stage {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.9), rgba(246, 236, 223, 0.96)),
    repeating-linear-gradient(
      180deg,
      transparent 0 29%,
      rgba(93, 62, 40, 0.13) 29% 31%,
      transparent 31% 62%,
      rgba(93, 62, 40, 0.13) 62% 64%,
      transparent 64% 100%
    );
}

.shelf-slot {
  min-height: 170px;
  border-radius: 18px;
  padding: 0.55rem;
  border: 1px dashed rgba(93, 62, 40, 0.18);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  transition: background 140ms ease, transform 140ms ease;
}

.shelf-slot::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(82, 50, 31, 0.14);
  filter: blur(10px);
  opacity: 0.3;
}

.shelf-slot.is-over {
  background: rgba(109, 139, 102, 0.16);
  transform: translateY(-1px);
}

.shelf-book {
  width: 88%;
  height: 138px;
  border-radius: 12px 12px 8px 8px;
  overflow: hidden;
  cursor: grab;
}

.shelf-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.decor-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.decor-tile {
  border-radius: 24px;
  padding: 0.85rem;
  text-align: center;
  cursor: grab;
}

.decor-name {
  display: block;
  margin-top: 0.65rem;
  font-weight: 700;
}

.decor-piece {
  width: 78px;
  height: 96px;
  margin: 0 auto;
  position: relative;
}

.decor-piece span {
  position: absolute;
  display: block;
}

.decor-piece .label {
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.decor-piece.fern .pot {
  bottom: 12px;
  left: 22px;
  width: 34px;
  height: 18px;
  border-radius: 0 0 14px 14px;
  background: #b97d59;
}

.decor-piece.fern .leaf-one,
.decor-piece.fern .leaf-two,
.decor-piece.fern .leaf-three {
  background: linear-gradient(180deg, #9bbf8a, #54704d);
  border-radius: 100px 100px 0 100px;
}

.decor-piece.fern .leaf-one {
  width: 16px;
  height: 46px;
  bottom: 27px;
  left: 25px;
  transform: rotate(-18deg);
}

.decor-piece.fern .leaf-two {
  width: 16px;
  height: 52px;
  bottom: 28px;
  left: 36px;
  transform: rotate(10deg);
}

.decor-piece.fern .leaf-three {
  width: 14px;
  height: 40px;
  bottom: 30px;
  left: 15px;
  transform: rotate(-38deg);
}

.decor-piece.candle .wax {
  bottom: 18px;
  left: 28px;
  width: 22px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff7db, #efdca8);
}

.decor-piece.candle .flame {
  width: 12px;
  height: 18px;
  left: 33px;
  bottom: 62px;
  background: linear-gradient(180deg, #ffd56b, #d16737);
  border-radius: 100px 100px 100px 0;
  transform: rotate(40deg);
}

.decor-piece.vase .body {
  bottom: 14px;
  left: 24px;
  width: 32px;
  height: 52px;
  border-radius: 18px 18px 12px 12px;
  background: linear-gradient(180deg, #d9c0ab, #b88d74);
}

.decor-piece.vase .stem-one,
.decor-piece.vase .stem-two {
  width: 4px;
  height: 32px;
  background: #6d8b66;
  bottom: 54px;
}

.decor-piece.vase .stem-one {
  left: 34px;
  transform: rotate(-12deg);
}

.decor-piece.vase .stem-two {
  left: 42px;
  transform: rotate(12deg);
}

.decor-piece.frame .frame-body {
  width: 38px;
  height: 50px;
  bottom: 20px;
  left: 20px;
  border: 4px solid #c49d5c;
  border-radius: 8px;
  background: linear-gradient(180deg, #d8e7ea, #f8f0e3);
}

.decor-piece.frame .stand {
  width: 24px;
  height: 10px;
  bottom: 10px;
  left: 27px;
  border-radius: 999px;
  background: #8a6548;
}

.decor-piece.stack .book-one,
.decor-piece.stack .book-two,
.decor-piece.stack .book-three {
  height: 14px;
  border-radius: 6px;
}

.decor-piece.stack .book-one {
  width: 46px;
  bottom: 20px;
  left: 16px;
  background: #6d8b66;
}

.decor-piece.stack .book-two {
  width: 38px;
  bottom: 36px;
  left: 20px;
  background: #c66a61;
}

.decor-piece.stack .book-three {
  width: 44px;
  bottom: 52px;
  left: 17px;
  background: #8aa7b0;
}

.decor-piece.teacup .rim {
  width: 28px;
  height: 8px;
  bottom: 40px;
  left: 22px;
  border-radius: 999px;
  background: #f6ead6;
}

.decor-piece.teacup .cup-body {
  width: 28px;
  height: 20px;
  bottom: 24px;
  left: 22px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #fbf4e8, #dcc0a4);
}

.decor-piece.teacup .handle {
  width: 12px;
  height: 14px;
  bottom: 28px;
  left: 48px;
  border: 3px solid #d8b08e;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: transparent;
}

.decor-piece.teacup .saucer {
  width: 40px;
  height: 7px;
  bottom: 18px;
  left: 17px;
  border-radius: 999px;
  background: #cda183;
}

.decor-piece.hourglass .top-bar,
.decor-piece.hourglass .bottom-bar {
  width: 32px;
  height: 6px;
  left: 23px;
  border-radius: 999px;
  background: #8a6548;
}

.decor-piece.hourglass .top-bar {
  bottom: 62px;
}

.decor-piece.hourglass .bottom-bar {
  bottom: 18px;
}

.decor-piece.hourglass .frame-left,
.decor-piece.hourglass .frame-right {
  width: 4px;
  height: 42px;
  bottom: 22px;
  border-radius: 999px;
  background: #8a6548;
}

.decor-piece.hourglass .frame-left {
  left: 27px;
  transform: rotate(16deg);
}

.decor-piece.hourglass .frame-right {
  left: 47px;
  transform: rotate(-16deg);
}

.decor-piece.hourglass .glass {
  width: 24px;
  height: 34px;
  bottom: 26px;
  left: 27px;
  opacity: 0.55;
  background: linear-gradient(180deg, rgba(244, 236, 220, 0.95), rgba(206, 178, 156, 0.55));
  clip-path: polygon(0 0, 100% 0, 62% 50%, 100% 100%, 0 100%, 38% 50%);
}

.decor-piece.hourglass .sand-top,
.decor-piece.hourglass .sand-bottom {
  width: 16px;
  left: 31px;
  background: #d6ae63;
}

.decor-piece.hourglass .sand-top {
  height: 10px;
  bottom: 45px;
  clip-path: polygon(0 0, 100% 0, 62% 100%, 38% 100%);
}

.decor-piece.hourglass .sand-bottom {
  height: 12px;
  bottom: 28px;
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
}

.decor-piece.globe .sphere {
  width: 34px;
  height: 34px;
  bottom: 34px;
  left: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b6d3da, #698894 72%);
}

.decor-piece.globe .axis {
  width: 42px;
  height: 42px;
  bottom: 31px;
  left: 18px;
  border: 2px solid #8a6548;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.decor-piece.globe .globe-stand {
  width: 4px;
  height: 22px;
  bottom: 15px;
  left: 37px;
  border-radius: 999px;
  background: #8a6548;
}

.decor-piece.globe .globe-base {
  width: 24px;
  height: 8px;
  bottom: 10px;
  left: 27px;
  border-radius: 999px;
  background: #b48761;
}

.decor-piece.lamp .glow {
  width: 54px;
  height: 18px;
  bottom: 50px;
  left: 12px;
  border-radius: 999px;
  background: rgba(255, 220, 156, 0.34);
  filter: blur(3px);
}

.decor-piece.lamp .shade {
  width: 38px;
  height: 22px;
  bottom: 46px;
  left: 20px;
  border-radius: 8px 8px 16px 16px;
  background: linear-gradient(180deg, #f4d9a8, #d9a165);
}

.decor-piece.lamp .lamp-stem {
  width: 4px;
  height: 24px;
  bottom: 22px;
  left: 37px;
  border-radius: 999px;
  background: #8a6548;
}

.decor-piece.lamp .lamp-base {
  width: 24px;
  height: 8px;
  bottom: 16px;
  left: 27px;
  border-radius: 999px;
  background: #8a6548;
}

.decor-piece.cat .head {
  width: 18px;
  height: 18px;
  bottom: 52px;
  left: 30px;
  border-radius: 50%;
  background: #81726a;
}

.decor-piece.cat .ear-one,
.decor-piece.cat .ear-two {
  width: 10px;
  height: 10px;
  bottom: 66px;
  background: #81726a;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.decor-piece.cat .ear-one {
  left: 28px;
}

.decor-piece.cat .ear-two {
  left: 40px;
}

.decor-piece.cat .body {
  width: 24px;
  height: 28px;
  bottom: 24px;
  left: 27px;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg, #93847b, #6d615a);
}

.decor-piece.cat .tail {
  width: 16px;
  height: 24px;
  bottom: 28px;
  left: 46px;
  border: 4px solid #756860;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 999px;
  background: transparent;
  transform: rotate(18deg);
}

.decor-piece.cat .pedestal {
  width: 28px;
  height: 8px;
  bottom: 16px;
  left: 25px;
  border-radius: 999px;
  background: #b69375;
}

.decor-piece.monstera .pot {
  width: 34px;
  height: 18px;
  bottom: 12px;
  left: 22px;
  border-radius: 0 0 14px 14px;
  background: #a66f4f;
}

.decor-piece.monstera .monstera-stem {
  width: 4px;
  height: 32px;
  bottom: 28px;
  left: 37px;
  border-radius: 999px;
  background: #638658;
}

.decor-piece.monstera .leaf-a,
.decor-piece.monstera .leaf-b,
.decor-piece.monstera .leaf-c {
  background: linear-gradient(180deg, #87b26d, #3e6340);
  border-radius: 100px 100px 20px 100px;
}

.decor-piece.monstera .leaf-a {
  width: 20px;
  height: 28px;
  bottom: 44px;
  left: 19px;
  transform: rotate(-26deg);
}

.decor-piece.monstera .leaf-b {
  width: 22px;
  height: 32px;
  bottom: 46px;
  left: 36px;
  transform: rotate(18deg);
}

.decor-piece.monstera .leaf-c {
  width: 18px;
  height: 24px;
  bottom: 36px;
  left: 28px;
  transform: rotate(-2deg);
}

.decor-piece.succulent .pot {
  width: 30px;
  height: 16px;
  bottom: 14px;
  left: 24px;
  border-radius: 0 0 12px 12px;
  background: #c98662;
}

.decor-piece.succulent .leaf-back,
.decor-piece.succulent .leaf-left,
.decor-piece.succulent .leaf-right,
.decor-piece.succulent .leaf-center {
  background: linear-gradient(180deg, #b9d59f, #5c8560);
  border-radius: 100px 100px 20px 100px;
}

.decor-piece.succulent .leaf-back {
  width: 16px;
  height: 22px;
  bottom: 26px;
  left: 31px;
  transform: rotate(4deg);
}

.decor-piece.succulent .leaf-left {
  width: 14px;
  height: 24px;
  bottom: 24px;
  left: 21px;
  transform: rotate(-38deg);
}

.decor-piece.succulent .leaf-right {
  width: 14px;
  height: 24px;
  bottom: 24px;
  left: 42px;
  transform: rotate(34deg);
}

.decor-piece.succulent .leaf-center {
  width: 14px;
  height: 28px;
  bottom: 28px;
  left: 32px;
}

.decor-piece.ivy .hanger {
  width: 28px;
  height: 16px;
  bottom: 58px;
  left: 24px;
  border: 3px solid #8a6548;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: transparent;
}

.decor-piece.ivy .pot {
  width: 28px;
  height: 14px;
  bottom: 42px;
  left: 24px;
  border-radius: 0 0 12px 12px;
  background: #b27756;
}

.decor-piece.ivy .vine-one,
.decor-piece.ivy .vine-two {
  width: 4px;
  background: #648055;
  border-radius: 999px;
}

.decor-piece.ivy .vine-one {
  height: 26px;
  bottom: 18px;
  left: 30px;
  transform: rotate(8deg);
}

.decor-piece.ivy .vine-two {
  height: 32px;
  bottom: 12px;
  left: 43px;
  transform: rotate(-10deg);
}

.decor-piece.ivy .leaf-one,
.decor-piece.ivy .leaf-two,
.decor-piece.ivy .leaf-three,
.decor-piece.ivy .leaf-four {
  width: 10px;
  height: 12px;
  background: linear-gradient(180deg, #8ebb73, #456544);
  border-radius: 100px 100px 20px 100px;
}

.decor-piece.ivy .leaf-one {
  bottom: 28px;
  left: 23px;
  transform: rotate(-26deg);
}

.decor-piece.ivy .leaf-two {
  bottom: 18px;
  left: 28px;
  transform: rotate(24deg);
}

.decor-piece.ivy .leaf-three {
  bottom: 24px;
  left: 46px;
  transform: rotate(-16deg);
}

.decor-piece.ivy .leaf-four {
  bottom: 12px;
  left: 39px;
  transform: rotate(28deg);
}

.decor-piece.bonsai .pot {
  width: 34px;
  height: 14px;
  bottom: 14px;
  left: 22px;
  border-radius: 4px 4px 10px 10px;
  background: #7a5a46;
}

.decor-piece.bonsai .trunk {
  width: 6px;
  height: 28px;
  bottom: 26px;
  left: 34px;
  border-radius: 999px;
  background: #7d5f46;
  transform: rotate(-12deg);
}

.decor-piece.bonsai .canopy-one,
.decor-piece.bonsai .canopy-two {
  background: radial-gradient(circle at 35% 35%, #9fc784, #4f6f48 72%);
  border-radius: 50%;
}

.decor-piece.bonsai .canopy-one {
  width: 24px;
  height: 18px;
  bottom: 50px;
  left: 20px;
}

.decor-piece.bonsai .canopy-two {
  width: 22px;
  height: 16px;
  bottom: 44px;
  left: 36px;
}

.decor-piece.rose .rose-bloom {
  width: 16px;
  height: 16px;
  bottom: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f6b2ba, #bb5468 72%);
}

.decor-piece.rose .rose-left {
  left: 22px;
}

.decor-piece.rose .rose-right {
  left: 38px;
}

.decor-piece.rose .rose-stem {
  width: 4px;
  height: 24px;
  bottom: 26px;
  border-radius: 999px;
  background: #5d8455;
}

.decor-piece.rose .stem-left {
  left: 30px;
  transform: rotate(8deg);
}

.decor-piece.rose .stem-right {
  left: 42px;
  transform: rotate(-8deg);
}

.decor-piece.rose .rose-wrap {
  width: 30px;
  height: 24px;
  bottom: 16px;
  left: 25px;
  background: linear-gradient(180deg, #ead9c8, #caa889);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}

.decor-piece.dragon-egg .egg-glow {
  width: 42px;
  height: 42px;
  bottom: 28px;
  left: 18px;
  border-radius: 50%;
  background: rgba(198, 164, 89, 0.22);
  filter: blur(4px);
}

.decor-piece.dragon-egg .egg-shell {
  width: 28px;
  height: 38px;
  bottom: 28px;
  left: 25px;
  border-radius: 50% 50% 44% 44%;
  background: radial-gradient(circle at 30% 30%, #f2d7a2, #8b6a3d 75%);
}

.decor-piece.dragon-egg .egg-stand {
  width: 30px;
  height: 8px;
  bottom: 18px;
  left: 24px;
  border-radius: 999px;
  background: #6d4d34;
}

.decor-piece.potion .potion-cork {
  width: 12px;
  height: 10px;
  bottom: 60px;
  left: 33px;
  border-radius: 3px;
  background: #9a6e46;
}

.decor-piece.potion .potion-neck {
  width: 10px;
  height: 10px;
  bottom: 52px;
  left: 34px;
  border-radius: 4px;
  background: #d9d4cb;
}

.decor-piece.potion .potion-body {
  width: 28px;
  height: 32px;
  bottom: 22px;
  left: 25px;
  border-radius: 10px 10px 14px 14px;
  background: linear-gradient(180deg, rgba(242, 240, 235, 0.9), rgba(178, 160, 145, 0.7));
}

.decor-piece.potion .potion-liquid {
  width: 22px;
  height: 14px;
  bottom: 26px;
  left: 28px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #8f7de0, #4c4c9a);
}

.decor-piece.typewriter .paper {
  width: 24px;
  height: 18px;
  bottom: 52px;
  left: 27px;
  border-radius: 4px 4px 0 0;
  background: #f5ede0;
}

.decor-piece.typewriter .carriage {
  width: 38px;
  height: 8px;
  bottom: 46px;
  left: 20px;
  border-radius: 999px;
  background: #444a53;
}

.decor-piece.typewriter .machine {
  width: 42px;
  height: 24px;
  bottom: 22px;
  left: 18px;
  border-radius: 8px 8px 14px 14px;
  background: linear-gradient(180deg, #56606b, #2c3138);
}

.decor-piece.typewriter .keys {
  width: 28px;
  height: 8px;
  bottom: 28px;
  left: 25px;
  border-radius: 999px;
  background: radial-gradient(circle, #ecdfcf 24%, transparent 25%) 0 0 / 8px 8px, #2e333a;
}

.decor-piece.pocket-watch .watch-ring {
  width: 12px;
  height: 12px;
  bottom: 64px;
  left: 33px;
  border: 3px solid #c7a260;
  border-radius: 50%;
}

.decor-piece.pocket-watch .watch-chain {
  width: 4px;
  height: 12px;
  bottom: 54px;
  left: 37px;
  border-radius: 999px;
  background: #c7a260;
}

.decor-piece.pocket-watch .watch-body {
  width: 30px;
  height: 30px;
  bottom: 24px;
  left: 24px;
  border-radius: 50%;
  background: #c7a260;
}

.decor-piece.pocket-watch .watch-face {
  width: 22px;
  height: 22px;
  bottom: 28px;
  left: 28px;
  border-radius: 50%;
  background: #f5ecd9;
  box-shadow: inset 0 0 0 2px rgba(73, 62, 46, 0.18);
}

.decor-piece.magnifier .magnifier-glass {
  width: 26px;
  height: 26px;
  bottom: 36px;
  left: 21px;
  border-radius: 50%;
  background: rgba(202, 225, 232, 0.42);
}

.decor-piece.magnifier .magnifier-rim {
  width: 32px;
  height: 32px;
  bottom: 33px;
  left: 18px;
  border: 4px solid #8a6548;
  border-radius: 50%;
}

.decor-piece.magnifier .magnifier-handle {
  width: 8px;
  height: 26px;
  bottom: 18px;
  left: 45px;
  border-radius: 999px;
  background: #8a6548;
  transform: rotate(-32deg);
}

.decor-piece.candelabra .arm-left,
.decor-piece.candelabra .arm-center,
.decor-piece.candelabra .arm-right {
  width: 4px;
  border-radius: 999px;
  background: #9d794f;
}

.decor-piece.candelabra .arm-left {
  height: 24px;
  bottom: 26px;
  left: 24px;
  transform: rotate(24deg);
}

.decor-piece.candelabra .arm-center {
  height: 30px;
  bottom: 24px;
  left: 37px;
}

.decor-piece.candelabra .arm-right {
  height: 24px;
  bottom: 26px;
  left: 50px;
  transform: rotate(-24deg);
}

.decor-piece.candelabra .flame {
  width: 10px;
  height: 14px;
  background: linear-gradient(180deg, #ffd56b, #d16737);
  border-radius: 100px 100px 100px 0;
}

.decor-piece.candelabra .candle-left {
  bottom: 46px;
  left: 19px;
  transform: rotate(32deg);
}

.decor-piece.candelabra .candle-center {
  bottom: 52px;
  left: 34px;
  transform: rotate(38deg);
}

.decor-piece.candelabra .candle-right {
  bottom: 46px;
  left: 49px;
  transform: rotate(34deg);
}

.decor-piece.candelabra .base {
  width: 28px;
  height: 8px;
  bottom: 18px;
  left: 25px;
  border-radius: 999px;
  background: #9d794f;
}

.decor-piece.planets .orbit {
  width: 30px;
  height: 2px;
  left: 24px;
  background: #8a6548;
  border-radius: 999px;
}

.decor-piece.planets .orbit-top {
  bottom: 58px;
}

.decor-piece.planets .orbit-mid {
  bottom: 44px;
}

.decor-piece.planets .orbit-low {
  bottom: 30px;
}

.decor-piece.planets .planet {
  border-radius: 50%;
}

.decor-piece.planets .planet-one {
  width: 10px;
  height: 10px;
  bottom: 54px;
  left: 20px;
  background: #d6a86b;
}

.decor-piece.planets .planet-two {
  width: 14px;
  height: 14px;
  bottom: 38px;
  left: 41px;
  background: #7592c1;
}

.decor-piece.planets .planet-three {
  width: 8px;
  height: 8px;
  bottom: 26px;
  left: 28px;
  background: #89bc9b;
}

.decor-piece.planets .planet-stand {
  width: 4px;
  height: 20px;
  bottom: 10px;
  left: 37px;
  border-radius: 999px;
  background: #8a6548;
}

.recommendation-empty,
.empty-state,
.author-locked {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(36, 48, 43, 0.06);
  color: var(--ink-soft);
}

.modal {
  border: 0;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(21, 23, 23, 0.4);
  backdrop-filter: blur(8px);
}

.modal-shell {
  width: min(880px, calc(100vw - 1.5rem));
  border-radius: 28px;
  padding: 1.2rem;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.modal-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(245, 238, 228, 0.68);
}

.barcode-preview {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 18px;
}

.status-box {
  min-height: 4.5rem;
  border-radius: 18px;
  padding: 0.9rem;
  background: rgba(36, 48, 43, 0.06);
  color: var(--ink-soft);
}

.inventory-list .button,
.stacked-list .button,
.feed-list .button,
.seller-inline .button {
  padding: 0.6rem 0.8rem;
  font-size: 0.88rem;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(198, 106, 97, 0.18), rgba(109, 139, 102, 0.2));
  font-weight: 700;
}

.feed-header-line {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.feed-card p {
  margin: 0;
}

.seller-price {
  width: 110px;
}

.seller-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.drop-hint {
  color: rgba(95, 103, 95, 0.7);
  font-size: 0.82rem;
  text-align: center;
}

.is-dragging {
  opacity: 0.45;
}

code {
  font-family: "Consolas", "Courier New", monospace;
  background: rgba(36, 48, 43, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 7px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .landing-hero,
  .hero,
  .dashboard-grid,
  .library-grid,
  .discover-grid,
  .community-grid,
  .booktok-grid,
  .profile-grid,
  .author-grid,
  .sell-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .waitlist-grid {
    grid-template-columns: 1fr;
  }

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

  .shelf-stage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-nav-inner,
  .site-shell,
  .app-shell {
    width: min(100vw - 1rem, 1200px);
  }

  .site-nav-inner {
    border-radius: 28px;
    padding: 0.8rem;
    display: grid;
    justify-content: stretch;
  }

  .site-nav-actions {
    flex-wrap: wrap;
  }

  .site-shell,
  .app-shell {
    padding-top: 0.75rem;
  }

  .landing-hero,
  .hero {
    padding: 1rem;
    border-radius: 28px;
  }

  .site-brand-logo,
  .brand-logo {
    width: min(100%, 270px);
  }

  .landing-copy h1,
  .hero h1 {
    font-size: 2.6rem;
  }

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

  .book-card,
  .listing-card,
  .recommendation-card .recommendation-main {
    grid-template-columns: 1fr;
  }

  .book-cover,
  .recommendation-cover {
    width: 100%;
    max-width: 150px;
  }

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

  .decor-picker {
    grid-template-columns: 1fr 1fr;
  }
}
