:root {
  --paper: #f4efe4;
  --paper-soft: #fbf8f1;
  --ink: #172138;
  --ink-soft: #5f6470;
  --red: #e4483f;
  --red-dark: #c93631;
  --mint: #cce6d5;
  --line: rgba(23, 33, 56, 0.14);
  --shadow: 0 22px 70px rgba(23, 33, 56, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.drawer-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.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; }
[hidden] { display: none !important; }

.prototype-bar { height: 30px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.prototype-dot { width: 6px; height: 6px; border-radius: 50%; background: #f2c96d; box-shadow: 0 0 0 4px rgba(242,201,109,.13); }
.site-header { width: min(calc(100% - 48px), var(--max)); height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; position: relative; font-family: "Manrope", sans-serif; font-size: 11px; letter-spacing: -.04em; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--red); border-radius: 50%; }
.brand-mark::before { width: 8px; height: 8px; top: -2px; right: 2px; }
.brand-mark::after { width: 4px; height: 4px; bottom: 2px; left: -1px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand-copy strong { font-family: "Manrope", sans-serif; font-size: 16px; letter-spacing: -.035em; }
.brand-copy small { color: var(--ink-soft); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.desktop-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 600; }
.desktop-nav a { text-decoration: none; position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--red); transition: right .2s ease; }
.desktop-nav a:hover::after { right: 0; }
.nav-import { border: 0; background: transparent; padding: 0; cursor: pointer; font-weight: 600; }
.nav-import:hover { color: var(--red); }
.request-pill { border: 1px solid var(--ink); border-radius: 999px; background: transparent; display: flex; gap: 12px; align-items: center; padding: 7px 8px 7px 16px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.request-pill:hover { background: var(--ink); color: #fff; }
.request-count { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; transition: transform .2s ease; }
.request-count.has-items { animation: pop .25s ease; }
@keyframes pop { 50% { transform: scale(1.25); } }

.section-shell { width: min(calc(100% - 48px), var(--max)); margin-left: auto; margin-right: auto; }
.hero { min-height: 610px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 72px; padding-top: 64px; padding-bottom: 76px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--red); text-transform: uppercase; letter-spacing: .15em; font-size: 10px; font-weight: 800; }
.eyebrow span { width: 24px; height: 2px; background: currentColor; }
.hero h1, .section-heading h2, .how-intro h2, .callout-copy h2 { font-family: "Manrope", sans-serif; letter-spacing: -.055em; margin: 16px 0 22px; line-height: .98; }
.hero h1 { font-size: clamp(48px, 5.3vw, 76px); }
.hero h1 em, .how-intro h2 em { color: var(--red); font-style: normal; }
.hero-copy > p { max-width: 580px; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 31px; }
.button { min-height: 48px; border-radius: 999px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; border: 1px solid transparent; font-weight: 700; font-size: 13px; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(228,72,63,.24); }
.button-primary:hover { background: var(--red-dark); }
.button-primary:disabled { opacity: .45; pointer-events: none; }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.35); }
.button-ghost:hover { background: #fff; border-color: rgba(23,33,56,.3); }
.button-dark { background: var(--ink); color: #fff; }
.button-full { width: 100%; }
.hero-note { margin-top: 38px; display: flex; gap: 11px; align-items: center; color: var(--ink-soft); font-size: 11px; }
.note-icon { flex: none; width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--ink-soft); display: grid; place-items: center; font-family: serif; font-style: italic; font-weight: 700; }

.hero-visual { min-height: 440px; position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%; background: var(--mint); z-index: -3; }
.hero-visual::after { content: ""; position: absolute; width: 320px; height: 320px; border: 1px solid rgba(23,33,56,.18); border-radius: 50%; z-index: -2; }
.orbit { position: absolute; border: 1px dashed rgba(23,33,56,.16); border-radius: 50%; z-index: -1; }
.orbit-one { width: 510px; height: 270px; transform: rotate(-12deg); }
.orbit-two { width: 270px; height: 500px; transform: rotate(37deg); }
.mini-card { width: 190px; height: 284px; padding: 9px; border-radius: 7px; background: #fff; box-shadow: 0 30px 60px rgba(23,33,56,.2); position: absolute; transition: transform .35s ease; }
.hero-card-a { transform: translate(-120px, 20px) rotate(-13deg); z-index: 1; }
.hero-card-b { transform: translate(6px, -25px) rotate(2deg); z-index: 3; }
.hero-card-c { transform: translate(125px, 27px) rotate(14deg); z-index: 2; }
.hero-visual:hover .hero-card-a { transform: translate(-135px, 12px) rotate(-16deg); }
.hero-visual:hover .hero-card-c { transform: translate(140px, 18px) rotate(17deg); }
.cover-art, .generated-cover { width: 100%; height: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden; color: white; padding: 22px 16px; }
.cover-art::before, .generated-cover::before { content: ""; position: absolute; inset: auto -35% -30% auto; width: 150px; height: 150px; border-radius: 45% 55% 52% 48%; background: rgba(255,255,255,.17); transform: rotate(24deg); }
.cover-art::after, .generated-cover::after { content: ""; position: absolute; width: 70px; height: 170px; border: 2px solid rgba(255,255,255,.38); border-radius: 50%; top: 40px; right: -10px; transform: rotate(35deg); }
.cover-art strong { margin-top: auto; margin-bottom: auto; font-family: "Manrope", sans-serif; text-transform: uppercase; font-size: 27px; line-height: .91; letter-spacing: -.06em; position: relative; z-index: 1; }
.cover-art small, .cover-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 7px; font-weight: 700; position: relative; z-index: 1; }
.cover-art small { margin-top: auto; }
.cover-kitsune, .kitsune { background: linear-gradient(145deg,#d53d35,#8d1e2d 63%,#20192c); }
.cover-sora, .sora { background: linear-gradient(150deg,#16263e,#356b75 56%,#e6ad70); }
.cover-sillage, .sillage { background: linear-gradient(150deg,#d49d42,#597959 58%,#173947); }
.bento { background: linear-gradient(150deg,#f08b68,#f4c46d 52%,#668b6a); }
.obsidienne { background: linear-gradient(145deg,#191e2b,#4c3c65 60%,#b55b76); }
.orion { background: linear-gradient(150deg,#343d75,#7668a5 55%,#e9ae94); }
.ronin { background: linear-gradient(150deg,#1d293a,#d14538 52%,#f3d291); }
.sanctuaire { background: linear-gradient(150deg,#132b27,#426c5b 55%,#d6b179); }
.floating-stock { position: absolute; z-index: 5; right: 10px; bottom: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.65); box-shadow: 0 14px 35px rgba(23,33,56,.15); padding: 12px 18px 12px 38px; border-radius: 14px; display: flex; flex-direction: column; gap: 2px; font-size: 11px; }
.floating-stock small { color: var(--ink-soft); font-size: 9px; }
.pulse { position: absolute; left: 17px; top: 19px; width: 9px; height: 9px; background: #49a36b; border-radius: 50%; box-shadow: 0 0 0 5px rgba(73,163,107,.14); }
.stamp { position: absolute; z-index: 6; top: 8px; right: 16px; width: 65px; height: 65px; border-radius: 50%; border: 1.5px solid var(--red); color: var(--red); display: grid; place-content: center; text-align: center; font: 800 16px/1 "Manrope", sans-serif; transform: rotate(10deg); text-transform: uppercase; }
.stamp span { font-size: 8px; letter-spacing: .15em; margin-top: 3px; }

.assurance-strip { width: 100%; min-height: 104px; background: #e8e0d3; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 max(24px, calc((100vw - var(--max)) / 2)); }
.assurance-strip > div { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: 1fr 1fr; align-content: center; column-gap: 13px; padding: 25px 34px; border-right: 1px solid var(--line); }
.assurance-strip > div:first-child { padding-left: 0; }
.assurance-strip > div:last-child { border: 0; }
.assurance-strip > div > span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 22px; }
.assurance-strip strong { align-self: end; font-size: 12px; }
.assurance-strip small { color: var(--ink-soft); font-size: 10px; }

.catalogue { padding-top: 105px; padding-bottom: 110px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; }
.section-heading h2 { font-size: 58px; margin-bottom: 0; }
.data-mode { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.5); border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; color: var(--ink-soft); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.data-mode span { width: 7px; height: 7px; border-radius: 50%; background: #e2a844; }
.data-mode.imported span { background: #4e9d68; }
.catalogue-toolbar { display: grid; grid-template-columns: 1fr 220px; gap: 12px; margin-top: 40px; }
.search-box, .select-wrap { height: 54px; background: rgba(255,255,255,.48); border: 1px solid var(--line); border-radius: 15px; display: flex; align-items: center; }
.search-box { padding: 0 16px; gap: 12px; }
.search-box > span:first-child { font-size: 24px; transform: rotate(-18deg); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: #8a8d94; }
.search-box kbd { color: #8a8d94; border: 1px solid var(--line); background: #fff; border-radius: 6px; font: 600 10px "DM Sans", sans-serif; padding: 4px 7px; }
.select-wrap select { width: 100%; height: 100%; padding: 0 18px; border: 0; background: transparent; outline: 0; color: var(--ink); font-size: 12px; font-weight: 600; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.filter-chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 14px; font-size: 11px; cursor: pointer; color: var(--ink-soft); transition: .18s ease; }
.filter-chip:hover, .filter-chip.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.catalogue-meta { margin: 26px 0 18px; display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 11px; }
.stock-toggle { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.stock-toggle input { position: absolute; opacity: 0; }
.stock-toggle span { width: 31px; height: 18px; background: #c8c4bb; border-radius: 999px; position: relative; transition: background .2s ease; }
.stock-toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: white; transition: transform .2s ease; }
.stock-toggle input:checked + span { background: var(--red); }
.stock-toggle input:checked + span::after { transform: translateX(13px); }
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 34px 20px; }
.book-card { min-width: 0; }
.book-visual { width: 100%; aspect-ratio: .72; display: block; padding: 10px; background: #e8e1d5; border: 0; border-radius: 18px; overflow: hidden; position: relative; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.book-card:hover .book-visual { transform: translateY(-6px); box-shadow: 0 20px 35px rgba(23,33,56,.13); }
.book-cover-art { display: block; width: 100%; height: 100%; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 20px rgba(23,33,56,.17); }
.book-cover-art > img { width: 100%; height: 100%; object-fit: cover; }
.book-badge { position: absolute; z-index: 4; top: 19px; left: 19px; background: rgba(255,255,255,.9); color: var(--ink); border-radius: 999px; padding: 6px 9px; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.generated-cover { padding: 24px 19px; text-align: left; }
.generated-cover small { position: relative; z-index: 1; font-size: 7px; text-transform: uppercase; letter-spacing: .16em; }
.generated-cover strong { margin: auto 0; position: relative; z-index: 1; font: 800 clamp(18px, 2vw, 28px)/.95 "Manrope", sans-serif; letter-spacing: -.055em; text-transform: uppercase; }
.generated-cover b { position: relative; z-index: 1; font-size: 8px; letter-spacing: .1em; }
.imported-0 { background: linear-gradient(150deg,#293d4b,#5a7e7c,#e3b477); }
.imported-1 { background: linear-gradient(150deg,#663b4e,#a4555f,#efb26e); }
.imported-2 { background: linear-gradient(150deg,#27365e,#536da0,#d7b8a0); }
.imported-3 { background: linear-gradient(150deg,#2b4d3c,#649061,#d9bf6e); }
.imported-4 { background: linear-gradient(150deg,#3b2c53,#7d5b94,#df9f8e); }
.imported-5 { background: linear-gradient(150deg,#452d2d,#9b5541,#e8c477); }
.imported-6 { background: linear-gradient(150deg,#24484d,#4d8a89,#b5d49c); }
.imported-7 { background: linear-gradient(150deg,#28334a,#5b6284,#e0a36f); }
.imported-8 { background: linear-gradient(150deg,#563545,#a14d67,#e5aa87); }
.imported-9 { background: linear-gradient(150deg,#233e33,#5a7963,#d6c47e); }
.book-info { padding: 14px 3px 0; }
.book-topline { min-height: 17px; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.book-category { color: var(--red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-stock { color: #388256; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.book-stock::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.book-stock.low { color: #c77b29; }
.book-stock.out { color: #96999f; }
.book-title { margin: 7px 0 2px; font: 700 16px/1.25 "Manrope", sans-serif; letter-spacing: -.03em; }
.book-author { margin: 0; color: var(--ink-soft); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-bottom { display: flex; justify-content: space-between; align-items: end; margin-top: 14px; }
.book-price { font: 700 14px "Manrope", sans-serif; }
.add-button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 20px; display: grid; place-items: center; transition: .18s ease; }
.add-button:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.add-button:disabled { opacity: .3; cursor: not-allowed; }
.catalogue-footer { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 10px; }
.text-link { border: 0; padding: 0; background: transparent; cursor: pointer; color: var(--ink); font-weight: 700; font-size: 11px; }
.text-link span { color: var(--red); margin-left: 7px; }
.empty-state { background: rgba(255,255,255,.38); border: 1px dashed var(--line); border-radius: var(--radius-lg); text-align: center; padding: 60px 24px; }
.empty-mark { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; background: var(--mint); font-size: 24px; }
.empty-state h3 { margin: 0; font: 700 22px "Manrope", sans-serif; }
.empty-state p { color: var(--ink-soft); max-width: 510px; margin: 10px auto 22px; line-height: 1.6; }

.how-it-works { background: var(--ink); color: #fff; padding: 100px 0; position: relative; overflow: hidden; }
.how-it-works::before { content: "読"; position: absolute; right: 4%; top: -90px; color: rgba(255,255,255,.025); font: 800 420px "Manrope", sans-serif; }
.how-it-works .section-shell { display: grid; grid-template-columns: .78fr 1.22fr; gap: 100px; position: relative; z-index: 1; }
.eyebrow.light { color: #f2b4af; }
.how-intro h2 { font-size: 48px; margin-top: 18px; }
.how-intro > p { color: rgba(255,255,255,.58); line-height: 1.65; font-size: 14px; max-width: 390px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.steps li { padding: 0 27px; border-left: 1px solid rgba(255,255,255,.14); min-height: 280px; position: relative; }
.step-number { font: 700 10px "Manrope", sans-serif; color: rgba(255,255,255,.38); letter-spacing: .1em; }
.step-icon { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: grid; place-items: center; margin: 52px 0 26px; font-size: 21px; }
.steps h3 { margin: 0 0 12px; font: 700 18px "Manrope", sans-serif; }
.steps p { color: rgba(255,255,255,.5); margin: 0; font-size: 12px; line-height: 1.6; }

.librisoft-callout { margin-top: 90px; margin-bottom: 90px; background: var(--mint); border-radius: var(--radius-lg); min-height: 355px; padding: 52px 58px; display: grid; grid-template-columns: 1fr .9fr; gap: 72px; align-items: center; position: relative; overflow: hidden; }
.librisoft-callout::before { content: ""; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(23,33,56,.12); border-radius: 50%; right: -60px; top: -80px; }
.callout-copy h2 { font-size: 43px; margin-bottom: 16px; }
.callout-copy p { color: rgba(23,33,56,.68); line-height: 1.65; max-width: 550px; font-size: 14px; }
.callout-copy .button { margin-top: 13px; }
.parser-map { display: grid; grid-template-columns: 145px 32px 1fr; align-items: center; gap: 12px; }
.parser-file { aspect-ratio: .82; border-radius: 17px; background: #fff; box-shadow: 0 18px 45px rgba(23,33,56,.11); padding: 22px 16px; display: flex; flex-direction: column; align-items: flex-start; justify-content: end; transform: rotate(-3deg); }
.parser-file > span { margin-bottom: auto; background: var(--red); color: #fff; border-radius: 6px; padding: 5px 7px; font: 700 9px "Manrope", sans-serif; }
.parser-file strong { font: 800 18px "Manrope", sans-serif; }
.parser-file small { color: var(--ink-soft); font-size: 8px; margin-top: 4px; }
.parser-arrow { color: var(--red); font-size: 24px; }
.parser-rules { display: grid; gap: 9px; }
.parser-rules span { background: rgba(255,255,255,.53); border: 1px solid rgba(23,33,56,.1); border-radius: 11px; padding: 11px 12px; font-size: 9px; display: flex; align-items: center; gap: 8px; }
.parser-rules b { font-size: 11px; }

.site-footer { min-height: 135px; background: #e7dfd2; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 30px max(24px, calc((100vw - var(--max)) / 2)); }
.site-footer p { text-align: center; color: var(--ink-soft); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer > a { justify-self: end; text-decoration: none; font-size: 10px; font-weight: 700; }
.footer-brand .brand-mark { width: 36px; height: 36px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(12,17,29,.5); backdrop-filter: blur(4px); }
.request-drawer { position: fixed; right: 0; top: 0; bottom: 0; z-index: 51; width: min(100%, 450px); background: var(--paper-soft); box-shadow: -20px 0 70px rgba(23,33,56,.18); padding: 28px; transform: translateX(105%); transition: transform .32s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; overflow-y: auto; }
.request-drawer.open { transform: translateX(0); }
.drawer-head, .dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.drawer-head h2, .dialog-head h2 { margin: 4px 0 0; font: 800 31px "Manrope", sans-serif; letter-spacing: -.05em; }
.drawer-kicker { color: var(--red); font-size: 9px; text-transform: uppercase; font-weight: 800; letter-spacing: .13em; }
.icon-button { width: 38px; height: 38px; flex: none; border: 1px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; font-size: 23px; display: grid; place-items: center; line-height: 1; }
.icon-button:hover { background: var(--ink); color: #fff; }
.drawer-notice, .import-warning { margin: 24px 0; border-radius: 13px; background: #f1e5cc; border: 1px solid rgba(164,119,42,.16); color: #7e673f; padding: 12px; display: flex; gap: 10px; font-size: 10px; line-height: 1.5; }
.drawer-notice > span, .import-warning > span { width: 20px; height: 20px; flex: none; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.drawer-notice p, .import-warning p { margin: 1px 0 0; }
.request-items { display: grid; gap: 11px; }
.request-item { display: grid; grid-template-columns: 60px 1fr 26px; gap: 13px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 9px; }
.request-thumb { width: 60px; height: 82px; overflow: hidden; border-radius: 6px; }
.request-thumb .generated-cover { padding: 7px; }
.request-thumb .generated-cover small { display: none; }
.request-thumb .generated-cover strong { font-size: 8px; }
.request-thumb .generated-cover b { font-size: 5px; }
.request-thumb > img, .request-thumb .generated-cover { width: 100%; height: 100%; object-fit: cover; }
.request-item > div:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.request-item strong { font: 700 12px "Manrope", sans-serif; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.request-item small { color: var(--ink-soft); font-size: 9px; }
.request-item b { font-size: 11px; margin-top: 7px; }
.request-item > button { border: 0; background: transparent; color: #92949a; cursor: pointer; font-size: 18px; }
.request-summary { margin-top: auto; border-top: 1px solid var(--line); padding-top: 22px; }
.request-summary > div { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 12px; }
.request-summary > p { color: var(--ink-soft); font-size: 9px; line-height: 1.5; margin: 16px 0; }
.request-empty { margin: auto 0; text-align: center; padding: 35px 25px; }
.request-empty > div { margin: 0 auto 18px; width: 65px; height: 65px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-size: 24px; }
.request-empty h3 { margin: 0; font: 700 18px "Manrope", sans-serif; }
.request-empty p { color: var(--ink-soft); line-height: 1.6; font-size: 11px; margin: 9px 0 20px; }
.confirmation { margin: auto 0; text-align: center; }
.confirmation-icon { margin: 0 auto 17px; width: 66px; height: 66px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: #32764b; font-size: 28px; }
.confirmation > span { color: var(--red); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.confirmation h3 { font: 800 25px/1.1 "Manrope", sans-serif; letter-spacing: -.04em; }
.confirmation p { color: var(--ink-soft); font-size: 11px; }
.fake-reference { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; margin: 22px 0; font-size: 9px; display: flex; justify-content: space-between; align-items: center; }
.fake-reference strong { font-size: 12px; }

dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(12,17,29,.58); backdrop-filter: blur(6px); }
.import-dialog { width: min(calc(100% - 32px), 690px); max-height: min(92vh, 850px); border-radius: 22px; background: var(--paper-soft); box-shadow: var(--shadow); }
.dialog-shell { padding: 30px; }
.drop-zone { min-height: 190px; border: 1.5px dashed rgba(23,33,56,.25); border-radius: 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; cursor: pointer; background: rgba(255,255,255,.36); transition: .2s ease; }
.drop-zone:hover, .drop-zone.dragging { background: rgba(204,230,213,.45); border-color: #619675; }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 20px; }
.drop-zone h3 { font: 700 16px "Manrope", sans-serif; margin: 14px 0 3px; }
.drop-zone p { margin: 0 0 12px; color: var(--ink-soft); font-size: 11px; }
.drop-zone > span { font-size: 8px; color: #999a9e; text-transform: uppercase; letter-spacing: .08em; }
.selected-file { display: grid; grid-template-columns: 40px 1fr 32px; gap: 12px; align-items: center; padding: 11px; margin-top: 10px; border: 1px solid var(--line); background: #fff; border-radius: 12px; }
.selected-file > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--mint); font-size: 9px; font-weight: 800; }
.selected-file > div { display: flex; flex-direction: column; min-width: 0; }
.selected-file strong { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selected-file small { font-size: 9px; color: var(--ink-soft); }
.selected-file button { border: 0; background: transparent; cursor: pointer; font-size: 18px; color: var(--ink-soft); }
.optional-import { border-bottom: 1px solid var(--line); padding: 18px 0; }
.optional-import summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; }
.optional-import summary::-webkit-details-marker { display: none; }
.optional-import[open] summary span { transform: rotate(45deg); }
.optional-import > p { color: var(--ink-soft); font-size: 9px; line-height: 1.6; }
.file-row { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-top: 7px; font-size: 10px; overflow: hidden; }
.file-row input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-row span { max-width: 54%; color: var(--red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.parser-contract { margin-top: 18px; padding: 15px; border-radius: 13px; background: #ede7dc; }
.parser-contract h3 { margin: 0 0 10px; font: 700 11px "Manrope", sans-serif; }
.parser-contract > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 5px 0; font-size: 8px; border-top: 1px solid rgba(23,33,56,.08); }
.parser-contract span { color: var(--ink-soft); }
.parser-contract strong { font-weight: 700; }
.import-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.import-result { margin-top: 14px; border-radius: 12px; background: rgba(204,230,213,.52); padding: 12px; display: flex; gap: 10px; color: #2f6443; }
.import-result.error { background: #f2d8d5; color: #8f302c; }
.result-icon { width: 22px; height: 22px; flex: none; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.import-result strong { font-size: 11px; }
.import-result p { margin: 3px 0 0; font-size: 9px; line-height: 1.5; }

.detail-dialog { width: min(calc(100% - 32px), 820px); max-height: 90vh; background: var(--paper-soft); border-radius: 22px; overflow: visible; }
.detail-shell { padding: 32px; display: grid; grid-template-columns: 250px 1fr; gap: 38px; position: relative; }
.detail-close { position: absolute; right: 18px; top: 18px; z-index: 3; background: var(--paper-soft); }
.detail-cover { height: 350px; padding: 9px; background: #e8e1d5; border-radius: 14px; }
.detail-cover > img, .detail-cover .generated-cover { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.detail-copy { padding: 18px 0; }
.detail-copy h2 { margin: 9px 45px 6px 0; font: 800 34px/1.05 "Manrope", sans-serif; letter-spacing: -.05em; }
.detail-author { color: var(--ink-soft); font-size: 11px; }
.detail-summary { font-size: 12px; line-height: 1.7; margin: 24px 0; }
.detail-copy dl { margin: 0; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.detail-copy dl > div { display: flex; flex-direction: column; gap: 3px; }
.detail-copy dt { color: var(--ink-soft); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.detail-copy dd { margin: 0; font-size: 10px; font-weight: 700; }
.detail-price-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 20px 0 9px; }
.detail-price-row > strong { font: 800 20px "Manrope", sans-serif; }
.detail-copy > small { display: block; color: var(--ink-soft); font-size: 8px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 18px; box-shadow: var(--shadow); font-size: 11px; font-weight: 600; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .hero { gap: 20px; }
  .hero-visual { transform: scale(.86); }
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .how-it-works .section-shell { gap: 45px; }
  .librisoft-callout { grid-template-columns: 1fr 1fr; padding: 42px; gap: 36px; }
}

@media (max-width: 760px) {
  .prototype-bar { height: 34px; padding: 0 14px; text-align: center; font-size: 8px; }
  .site-header, .section-shell { width: min(calc(100% - 32px), var(--max)); }
  .site-header { height: 76px; }
  .brand-copy small { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .request-pill > span:first-child { display: none; }
  .request-pill { padding: 5px; border: 0; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 55px 0 45px; }
  .hero h1 { font-size: 48px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-note { line-height: 1.5; }
  .hero-visual { min-height: 360px; transform: scale(.78); margin: -25px 0; }
  .assurance-strip { grid-template-columns: 1fr; padding: 12px 16px; }
  .assurance-strip > div, .assurance-strip > div:first-child { padding: 16px 2px; border-right: 0; border-bottom: 1px solid var(--line); }
  .assurance-strip > div:last-child { border-bottom: 0; }
  .catalogue { padding-top: 75px; padding-bottom: 75px; }
  .section-heading { align-items: flex-start; gap: 20px; }
  .section-heading h2 { font-size: 45px; }
  .data-mode { margin-top: 24px; max-width: 150px; line-height: 1.4; }
  .catalogue-toolbar { grid-template-columns: 1fr; }
  .search-box kbd { display: none; }
  .catalogue-meta { align-items: flex-start; gap: 16px; }
  .stock-toggle { text-align: right; }
  .book-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px 12px; }
  .book-visual { padding: 7px; border-radius: 13px; }
  .book-badge { top: 13px; left: 13px; }
  .generated-cover { padding: 17px 12px; }
  .book-title { font-size: 14px; }
  .book-topline { align-items: flex-start; flex-direction: column; }
  .book-stock { font-size: 7px; }
  .catalogue-footer { align-items: flex-start; flex-direction: column; gap: 18px; }
  .how-it-works { padding: 75px 0; }
  .how-it-works .section-shell { grid-template-columns: 1fr; }
  .how-intro h2 { font-size: 41px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps li { min-height: 0; padding: 0 0 0 25px; }
  .step-icon { margin: 20px 0 16px; }
  .librisoft-callout { margin: 55px 16px; width: auto; grid-template-columns: 1fr; padding: 34px 24px; }
  .callout-copy h2 { font-size: 36px; }
  .parser-map { grid-template-columns: 110px 20px 1fr; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer .brand { justify-self: center; }
  .site-footer > a { justify-self: center; }
  .dialog-shell { padding: 22px; }
  .dialog-head h2 { font-size: 25px; }
  .parser-contract > div { grid-template-columns: 1fr; gap: 3px; }
  .import-actions { flex-direction: column-reverse; }
  .import-actions .button { width: 100%; }
  .detail-shell { grid-template-columns: 1fr; gap: 17px; padding: 22px; }
  .detail-cover { width: 190px; height: 270px; margin: 0 auto; }
  .detail-copy { padding-top: 0; }
  .detail-copy h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
