/* Arabic base font: Zain (Ibrahim 2026-10-11; OFL, bundled) */@font-face{font-family:Zain;src:url('/static/assets/Zain-Light.ttf') format('truetype');font-style:normal;font-weight:300;font-display:swap}@font-face{font-family:Zain;src:url('/static/assets/Zain-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}@font-face{font-family:Zain;src:url('/static/assets/Zain-Bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}@font-face{font-family:Zain;src:url('/static/assets/Zain-ExtraBold.ttf') format('truetype');font-style:normal;font-weight:800;font-display:swap}
:root{
  color-scheme:light;
  --sage:oklch(82.4% .043 138);
  --sage-deep:oklch(74.5% .036 139);
  --sage-soft:oklch(90.7% .024 138);
  --coral:oklch(64.5% .156 32);
  --coral-hover:oklch(59.5% .15 32);
  --brown:oklch(27.5% .058 40);
  --brown-soft:oklch(39% .045 40);
  --paper:oklch(96.9% .012 75);
  --surface:oklch(98.4% .009 75);
  --line:oklch(87.4% .012 62);
  --muted:oklch(53% .018 50);
  --success:oklch(48% .075 145);
  --danger:oklch(50% .13 28);
  --shadow:0 22px 65px oklch(27.5% .058 40 / .12);
  --font-arabic:Zain,"Geeza Pro",Tahoma,serif;
  --font-english:"Proxima Nova","Avenir Next",Avenir,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--sage-soft)}
body{min-height:100vh;min-height:100dvh;margin:0;background:var(--sage-soft);color:var(--brown);font-family:var(--font-arabic);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html[lang="en"] body,html[lang="en"] button,html[lang="en"] textarea{font-family:var(--font-english)}
button,textarea{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}
.app-shell{position:relative;width:min(100%,480px);min-height:100vh;min-height:100dvh;margin-inline:auto;overflow:hidden;background:var(--paper)}
.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}
.brand-pattern{position:relative;isolation:isolate}
.brand-pattern:before{position:absolute;inset:0;z-index:0;background:url('/static/assets/thalath-pattern.png') center/cover no-repeat;opacity:.065;mix-blend-mode:multiply;content:"";pointer-events:none}
.brand-pattern>*{position:relative;z-index:1}

/* Welcome */
.welcome-screen{display:flex;min-height:100vh;min-height:100dvh;flex-direction:column;background:var(--sage)}
.welcome-top{display:flex;min-height:62px;align-items:center;justify-content:flex-end;gap:12px;padding:max(12px,env(safe-area-inset-top)) 22px 0}
.language-button{min-width:44px;min-height:44px;border:0;background:transparent;color:var(--brown);font-size:15px;font-weight:600}
.welcome-main{display:flex;min-height:calc(100dvh - 62px);flex:1;flex-direction:column;padding:5px 24px max(24px,env(safe-area-inset-bottom))}
.brand-signature{width:max-content;max-width:100%;margin:4px 0 46px auto;text-align:right}
.brand-mark{display:block;width:min(210px,56vw);height:auto;aspect-ratio:1144/348;object-fit:contain;object-position:right center}
.brand-signature p{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin:12px 0 0;color:var(--brown);font-size:19px;font-weight:600;line-height:1.25;letter-spacing:.01em}.brand-signature p:before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--coral)}
.welcome-copy{max-width:405px;margin-bottom:36px}
.kicker{display:flex;align-items:center;gap:9px;margin:0 0 14px;font-size:18px;font-weight:600}
.kicker span[aria-hidden]{flex:none;width:9px;height:9px;border-radius:50%;background:var(--coral)}
.welcome-copy h1{margin:0 0 16px;font-size:clamp(46px,13vw,59px);font-weight:500;line-height:1.16;letter-spacing:0}
/* welcome headline in Ruqaa (Ibrahim 2026-10-11: headline only; Aref Ruqaa, SIL OFL official) */@font-face{font-family:Ruqaa;src:url('/static/assets/ArefRuqaa-Regular.ttf') format('truetype');font-weight:400;font-display:swap}html:not([lang="en"]) .welcome-copy h1{margin-bottom:26px;font-family:Ruqaa,var(--font-arabic);font-weight:400;font-synthesis:none;color:var(--brown);line-height:1.3}
.welcome-copy>p:last-child{max-width:390px;margin:0;color:var(--brown-soft);font-size:18px;line-height:1.6}
.start-card{margin-top:auto;padding:18px;border:1px solid oklch(27.5% .058 40 / .13);border-radius:25px;background:var(--surface)}
.start-card>p{margin:0 0 13px;font-size:18px;line-height:1.55}
.start-button{display:flex;width:100%;min-height:58px;align-items:center;justify-content:space-between;padding:0 18px;border:0;border-radius:17px;background:var(--coral);color:var(--surface);font-size:20px;font-weight:650;box-shadow:0 10px 24px oklch(64.5% .156 32 / .2);transition:background .18s cubic-bezier(.22,1,.36,1),transform .18s cubic-bezier(.22,1,.36,1)}
.start-button:hover{background:var(--coral-hover)}.start-button:active{transform:translateY(1px)}
.welcome-steps{display:flex;align-items:center;justify-content:center;gap:0;margin:17px 0 0;color:var(--brown-soft);font-size:14px}
.welcome-steps span:not(:last-child):after{display:inline-block;width:4px;height:4px;margin:0 12px;border-radius:50%;background:var(--coral);vertical-align:middle;content:""}

/* Header and chat */
.chat-screen{display:flex;min-height:100vh;min-height:100dvh;flex-direction:column;background:var(--paper)}
.app-header{display:grid;min-height:78px;grid-template-columns:1fr auto 1fr;align-items:center;padding:max(10px,env(safe-area-inset-top)) 20px 8px;border-bottom:1px solid var(--line);background:var(--paper)}
.header-action{min-width:52px;min-height:44px;padding:0;border:0;background:transparent;color:var(--brown);font-size:16px;font-weight:600;text-align:right}
.header-center{display:grid;justify-items:center;justify-self:center;gap:2px;min-width:0}.header-brand{display:flex;align-items:center;justify-content:center;gap:10px}.header-brand img,.detail-brand img{height:auto;object-fit:contain}.host-mark{width:56px;aspect-ratio:2652/1442}.detail-brand{display:flex;align-items:center;justify-content:center;gap:9px;justify-self:center}.model-status{max-width:240px;margin-top:2px;padding:2px 8px;border-radius:999px;background:var(--accent-soft);color:var(--danger);font-size:11px;font-weight:650;line-height:1.35;text-align:center}.header-language{justify-self:end}
.chat-log{display:flex;flex:1;flex-direction:column;gap:14px;padding:24px 20px 14px}
.msg{max-width:86%;animation:message-in .22s cubic-bezier(.22,1,.36,1) both}
@keyframes message-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.msg-text{margin:0;padding:13px 15px;font-size:18px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.msg-user{align-self:flex-start}.msg-user .msg-text{border-radius:18px 18px 7px 18px;background:var(--brown);color:var(--surface)}
.msg-bot{align-self:flex-end;width:100%;max-width:100%}.msg-bot .msg-text{position:relative;width:max-content;max-width:88%;margin-right:0;margin-left:auto;border:1px solid oklch(27.5% .058 40 / .13);border-radius:18px 18px 18px 7px;background:var(--surface);color:var(--brown)}
.msg-bot .msg-text:after{position:absolute;width:7px;height:7px;right:-4px;top:16px;border-radius:50%;background:var(--coral);content:""}
.msg-error .msg-text{border-color:oklch(50% .13 28 / .3);background:oklch(94% .025 28);color:var(--danger)}
.chat-books{display:grid;gap:11px;margin-top:11px}
.typing{display:inline-flex;align-self:flex-end;width:auto;gap:5px;padding:14px 16px;border:1px solid oklch(27.5% .058 40 / .13);border-radius:18px 18px 18px 7px;background:var(--surface)}
.typing span{width:7px;height:7px;border-radius:50%;background:var(--sage-deep);animation:dot 1s infinite ease-in-out}.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}
@keyframes dot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.chip{min-height:44px;padding:8px 14px;border:1px solid oklch(27.5% .058 40 / .18);border-radius:15px;background:var(--surface);color:var(--brown);font-size:16px;font-weight:550;transition:background .18s cubic-bezier(.22,1,.36,1),border-color .18s cubic-bezier(.22,1,.36,1)}
.chip:hover{border-color:var(--sage-deep);background:var(--sage)}.chip:disabled{cursor:not-allowed;opacity:.55}
.composer-area{position:sticky;bottom:0;z-index:5;margin-top:auto;padding:10px 16px max(10px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}
.composer{display:flex;align-items:flex-end;gap:8px;padding:7px 7px 7px 13px;border:1px solid oklch(27.5% .058 40 / .17);border-radius:20px;background:var(--surface);transition:border-color .18s cubic-bezier(.22,1,.36,1),box-shadow .18s cubic-bezier(.22,1,.36,1)}
.composer:focus-within{border-color:var(--sage-deep);box-shadow:0 0 0 4px oklch(82.4% .043 138 / .35)}
.composer textarea{display:block;min-width:0;min-height:46px;max-height:140px;flex:1;padding:9px 7px;resize:none;border:0;outline:0;background:transparent;color:var(--brown);font-size:18px;line-height:1.55}.composer textarea::placeholder{color:oklch(66% .015 50)}
.send-button{display:grid;width:48px;height:48px;flex:0 0 auto;place-items:center;border:0;border-radius:15px;background:var(--coral);color:var(--surface);transition:background .18s cubic-bezier(.22,1,.36,1)}.send-button:hover{background:var(--coral-hover)}.send-button:disabled{cursor:not-allowed;opacity:.64}
.button-spinner{width:18px;height:18px;border:2px solid oklch(98.4% .009 75 / .4);border-top-color:var(--surface);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.trust-note{margin:9px 0 0;color:var(--muted);font-size:12px;text-align:center}.notice{margin:12px 16px 0;padding:11px 13px;border:1px solid oklch(64.5% .156 32 / .25);border-radius:13px;background:oklch(92% .045 45);font-size:13px;line-height:1.55}.test-banner{margin-bottom:0}

/* Recommendation slips */
.book-card{display:grid;width:100%;min-height:132px;grid-template-columns:minmax(0,1fr) 76px;gap:14px;align-items:center;padding:14px;border:1px solid oklch(27.5% .058 40 / .13);border-radius:21px;background:var(--surface);color:var(--brown);text-align:start;box-shadow:0 2px 12px oklch(27.5% .058 40 / .035);transition:border-color .18s cubic-bezier(.22,1,.36,1),transform .18s cubic-bezier(.22,1,.36,1),box-shadow .18s cubic-bezier(.22,1,.36,1)}
.book-card:hover{border-color:var(--sage-deep);box-shadow:0 12px 26px oklch(27.5% .058 40 / .08);transform:translateY(-1px)}.book-card:active{transform:translateY(0)}
.book-token{position:relative;display:grid;width:76px;height:103px;place-items:center;overflow:hidden;border-radius:14px;background:var(--sage);color:var(--brown);font-size:31px;font-weight:650}.book-token:before{position:absolute;width:43px;height:43px;right:-9px;top:-12px;border-radius:50%;background:var(--coral);content:""}.book-token:after{position:absolute;width:50px;height:50px;left:-25px;bottom:-22px;border-radius:5px;background:oklch(74.5% .036 139 / .75);transform:rotate(20deg);content:""}.book-token>span{position:relative;z-index:1}
.book-title{display:block;margin-bottom:1px;font-size:21px;font-weight:650;line-height:1.28}.book-author{display:block;margin-bottom:7px;color:var(--muted);font-size:14px}.book-reason{display:block;margin-bottom:9px;font-size:15px;line-height:1.45}.book-meta{display:flex;flex-wrap:wrap;gap:6px}.meta-chip{display:inline-flex;min-height:27px;align-items:center;padding:3px 8px;border-radius:9px;background:oklch(93% .01 70);color:var(--brown-soft);font-family:var(--font-arabic);font-size:12px}.stock-chip{gap:5px;background:var(--sage);color:var(--brown)}.stock-chip:before{width:6px;height:6px;border-radius:50%;background:var(--success);content:""}

/* Book detail */
.detail-screen{min-height:100vh;min-height:100dvh;background:var(--paper)}
.detail-head{min-height:318px;padding:max(10px,env(safe-area-inset-top)) 22px 24px;background:var(--sage)}
.detail-header{display:grid;min-height:55px;grid-template-columns:60px 1fr 60px;align-items:center}.detail-back{min-width:52px;min-height:44px;border:0;background:transparent;color:var(--brown);font-size:16px;font-weight:600;text-align:right}
.detail-cover{position:relative;display:grid;width:150px;height:190px;margin:3px auto 0;place-items:center;overflow:hidden;border:1px solid oklch(27.5% .058 40 / .12);border-radius:20px;background:var(--surface);box-shadow:0 17px 33px oklch(27.5% .058 40 / .1)}
.detail-cover:before{position:absolute;width:86px;height:86px;right:31px;top:27px;border-radius:50%;background:var(--coral);content:""}.detail-cover:after{position:absolute;right:-17px;bottom:-54px;width:187px;height:120px;border-radius:50%;background:var(--sage-deep);box-shadow:-58px -10px 0 oklch(27.5% .058 40 / .13);content:""}.detail-cover span{position:relative;z-index:2;margin-top:112px;color:var(--surface);font-size:24px;font-weight:650}
.detail-body{padding:25px 22px max(26px,env(safe-area-inset-bottom))}.detail-body h2{margin:0 0 1px;font-size:34px;font-weight:650;line-height:1.2}.detail-author{margin:0 0 20px;color:var(--muted);font-size:18px}.trait-line{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 0;border-top:1px solid var(--line);font-size:15px}.trait-line strong{max-width:65%;font-size:16px;font-weight:650;text-align:end}.detail-reason{margin:15px 0 17px;color:var(--brown-soft);font-size:17px;line-height:1.55}.shelf-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:14px 15px;border-radius:18px;background:var(--sage)}.shelf-card span:first-child{font-size:14px}.shelf-card strong{display:block;font-size:23px;line-height:1.2}.location-mark{display:grid;width:44px;height:44px;place-items:center;border-radius:14px;background:var(--brown);color:var(--surface)}
.want-button{display:flex;width:100%;min-height:58px;align-items:center;justify-content:center;border:0;border-radius:17px;background:var(--coral);color:var(--surface);font-size:20px;font-weight:650;transition:background .18s cubic-bezier(.22,1,.36,1)}.want-button:hover{background:var(--coral-hover)}
.stock-note{display:flex;align-items:center;justify-content:center;gap:8px;margin:11px 0 0;color:var(--muted);font-size:13px}.stock-note>span:first-child{width:7px;height:7px;border-radius:50%;background:var(--success)}.stock-note strong{color:var(--success);font-weight:600}.stock-note strong:after{margin-right:8px;color:var(--line);content:"•"}

/* Feedback */
.feedback-screen{display:flex;min-height:100vh;min-height:100dvh;flex-direction:column;align-items:center;justify-content:center;padding:34px 22px;background:var(--sage)}.feedback-language{position:absolute;top:max(12px,env(safe-area-inset-top));inset-inline-end:22px}.feedback-back{position:absolute;top:max(12px,env(safe-area-inset-top));inset-inline-start:22px}.feedback-brand{display:flex;flex-direction:column;align-items:center;margin-bottom:30px}.feedback-host{width:110px;height:auto;aspect-ratio:2652/1442;object-fit:contain}.feedback-card{width:100%;padding:30px 22px;border:1px solid oklch(27.5% .058 40 / .13);border-radius:27px;background:var(--surface);text-align:center;box-shadow:var(--shadow)}.success-mark{display:grid;width:64px;height:64px;margin:0 auto 17px;place-items:center;border-radius:50%;background:var(--sage);color:var(--success)}.feedback-card h2{margin:0 0 7px;font-size:31px;font-weight:650}.feedback-card>p{margin:0 auto 24px;color:var(--muted);font-size:16px;line-height:1.55}.feedback-question{margin-bottom:11px!important;color:var(--brown)!important;font-weight:600}.feedback-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.feedback-button{min-height:47px;padding:8px;border:1px solid var(--line);border-radius:13px;background:var(--paper);font-size:14px;font-weight:600}.feedback-button:hover{border-color:var(--sage-deep);background:var(--sage)}
.toast{position:fixed;right:20px;bottom:max(20px,env(safe-area-inset-bottom));left:20px;z-index:20;width:min(calc(100% - 40px),440px);margin-inline:auto;padding:13px 16px;border-radius:14px;background:var(--brown);color:var(--surface);box-shadow:var(--shadow);font-size:15px;text-align:center;animation:message-in .22s cubic-bezier(.22,1,.36,1)}

:focus-visible{outline:3px solid oklch(64.5% .156 32 / .55);outline-offset:3px}
html[lang="en"] .brand-signature{margin-right:auto;margin-left:0;text-align:left}
html[lang="en"] .brand-mark{object-position:left center}
html[lang="en"] .welcome-copy h1{font-size:clamp(42px,11.5vw,54px);font-weight:600;line-height:1.04;letter-spacing:-.035em}
html[lang="en"] .welcome-copy>p:last-child{font-size:18px;line-height:1.55}
html[lang="en"] .kicker{font-size:16px;font-weight:600}
html[lang="en"] .start-card>p{font-size:16px}
html[lang="en"] .start-button{font-size:17px;font-weight:600}
html[lang="en"] .start-button svg,html[lang="en"] .send-button svg{transform:scaleX(-1)}
html[lang="en"] .msg-user{align-self:flex-end}
html[lang="en"] .msg-user .msg-text{border-radius:18px 18px 18px 7px}
html[lang="en"] .msg-bot{align-self:flex-start}
html[lang="en"] .msg-bot .msg-text{margin-right:auto;margin-left:0;border-radius:18px 18px 7px 18px}
html[lang="en"] .msg-bot .msg-text:after{right:auto;left:-4px}
html[lang="en"] .typing{align-self:flex-start;border-radius:18px 18px 7px 18px}
html[lang="en"] .book-card{grid-template-columns:76px minmax(0,1fr)}
html[lang="en"] .book-token{grid-column:1;grid-row:1}
html[lang="en"] .book-card-copy{grid-column:2;grid-row:1}
html[lang="en"] .meta-chip{font-family:var(--font-english)}
html[lang="en"] .feedback-language{right:auto;left:22px}
html[lang="en"] .stock-note strong:after{margin-right:0;margin-left:8px}
@media(max-width:360px){.welcome-main{padding-inline:18px}.brand-signature{margin-top:0;margin-bottom:38px}.welcome-copy h1{font-size:45px}.feedback-actions{grid-template-columns:1fr}.book-card{grid-template-columns:minmax(0,1fr) 68px;padding:12px}.book-token{width:68px;height:95px}}
@media(min-width:600px){body{padding:28px}.app-shell{min-height:calc(100vh - 56px);border:1px solid oklch(27.5% .058 40 / .12);border-radius:34px;box-shadow:var(--shadow)}.welcome-screen,.chat-screen,.detail-screen,.feedback-screen{min-height:calc(100vh - 56px)}.welcome-main{min-height:calc(100dvh - 118px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Real cover images (2026-09-27): replace the abstract token when a cover exists */
.book-token.has-cover{background:var(--line)}.book-token.has-cover:before,.book-token.has-cover:after{display:none}.book-token.has-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.detail-cover.has-cover{background:var(--line)}.detail-cover.has-cover:before,.detail-cover.has-cover:after,.detail-cover.has-cover span{display:none}.detail-cover img{position:absolute;inset:0;z-index:3;width:100%;height:100%;object-fit:cover}
.detail-summary{margin:14px 0 4px;color:var(--brown);font-size:17px;line-height:1.75}
.shelf-card>div{flex:1 1 auto;min-width:0}.location-mark{flex:none}

/* Guide lockup: the Thalath logo with the guide label beneath it (the old product mark was removed on 2026-10-05, a new name is not chosen yet); fixed bilingual artwork, same in both UI languages */
.guide-lockup{display:grid;direction:rtl;justify-items:end;gap:8px}
/* «منار» logo (2026-10-11, Ibrahim's design v5: assets/manar-logo.svg, traced from his PNG, 2652×1442; v4 (1910×657) kept as manar-logo-v4.svg, v3 as manar-logo-v3.svg). Before: «ثلاث الذكي» lockup (2026-10-05): one SVG (assets/thalath-smart.svg) — the Thalath logo with the «الذكي» tag under its left end, the tag drawn as outlines so size and position never change; Arabic artwork in both UI languages until an English form is chosen */
.guide-lockup .brand-mark{width:min(150px,40vw);aspect-ratio:2652/1442;flex:none}
/* Thalath logo in coral under the left end of the «منار» logo (Ibrahim 2026-10-10): the brown PNG used as a mask so the colour follows --coral. */
.guide-lockup .host-under{display:block;width:min(76px,20vw);aspect-ratio:1144/348;transform:translateX(-32px);background:var(--coral);-webkit-mask:url("/static/assets/thalath-logo-brown.png") center/contain no-repeat;mask:url("/static/assets/thalath-logo-brown.png") center/contain no-repeat}
html[lang="en"] .guide-lockup .brand-mark{object-position:right center}
/* AUDFIX 2026-10-23 (Codex audit P2): in English the lockup starts at the left edge of the page, so the Thalath logo's -32px shift above put its left end off-screen on phones (320/390). Leave room for the shift; Arabic is unchanged. */
html[lang="en"] .guide-lockup{margin-left:32px}

/* Report a mistake / send a suggestion (2026-10-03): quiet text buttons + one bottom sheet */
.composer-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 6px;margin-top:3px}
.composer-foot .trust-note{margin:0}
.text-button{min-height:44px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:var(--brown);font-size:14px;font-weight:600;text-decoration:underline;text-decoration-color:oklch(27.5% .058 40 / .35);text-underline-offset:4px}
.text-button:hover{text-decoration-color:var(--coral)}
.report-button{display:block;margin:8px auto 0;color:var(--brown-soft)}
.note-backdrop{position:fixed;inset:0;z-index:29;background:oklch(27.5% .058 40 / .42);animation:note-fade .2s ease both}
.note-sheet{position:fixed;right:0;bottom:0;left:0;z-index:30;width:min(100%,480px);max-height:92dvh;margin-inline:auto;overflow-y:auto;padding:22px 20px max(18px,env(safe-area-inset-bottom));border-radius:26px 26px 0 0;background:var(--surface);box-shadow:0 -18px 50px oklch(27.5% .058 40 / .18);animation:note-up .26s cubic-bezier(.22,1,.36,1) both}
@keyframes note-up{from{transform:translateY(24px);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes note-fade{from{opacity:0}to{opacity:1}}
.note-sheet h2{margin:0 0 4px;font-size:25px;font-weight:650;line-height:1.25}
.note-lead{margin:0 0 14px;color:var(--muted);font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.note-reasons{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.note-reason{min-height:44px;padding:8px 14px;border:1px solid oklch(27.5% .058 40 / .18);border-radius:15px;background:var(--paper);color:var(--brown);font-size:16px;font-weight:550}
.note-reason[aria-pressed="true"]{border-color:var(--brown);background:var(--brown);color:var(--surface)}
.note-label{display:block;margin:0 0 6px;font-size:15px;font-weight:600}
.note-sheet textarea{display:block;width:100%;min-height:92px;padding:11px 13px;resize:vertical;border:1px solid oklch(27.5% .058 40 / .2);border-radius:15px;outline:0;background:var(--paper);color:var(--brown);font-size:17px;line-height:1.55}
.note-sheet textarea:focus{border-color:var(--sage-deep);box-shadow:0 0 0 4px oklch(82.4% .043 138 / .35)}
.note-error{min-height:20px;margin:6px 0 8px;color:var(--danger);font-size:14px}
.note-actions{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}
.note-actions .want-button{min-height:52px;font-size:18px}.note-actions .want-button:disabled{cursor:not-allowed;opacity:.64}
.note-cancel{min-width:76px;min-height:52px;padding:0 14px;border:1px solid var(--line);border-radius:17px;background:transparent;color:var(--brown);font-size:16px;font-weight:600}
@media(min-width:600px){.note-sheet{bottom:28px;border-radius:26px}}

/* Tablet layout (2026-10-05): from 700px the app fills the screen instead of sitting in a phone-sized card.
   One reading column (820px) for the chat, two book cards per row, larger welcome type; phones are unchanged. */
@media(min-width:700px){
body{padding:0}
.app-shell{width:100%;min-height:100vh;min-height:100dvh;border:0;border-radius:0;box-shadow:none}
.welcome-screen,.chat-screen,.detail-screen,.feedback-screen{min-height:100vh;min-height:100dvh}
.welcome-top{width:min(100%,780px);margin-inline:auto;padding-inline:40px}
.welcome-main{width:min(100%,780px);min-height:calc(100dvh - 62px);margin-inline:auto;padding:5px 40px max(40px,env(safe-area-inset-bottom))}
.brand-signature{margin:8px 0 56px auto}
.guide-lockup .brand-mark{width:175px}
.welcome-copy{max-width:640px;margin-bottom:48px}.welcome-copy h1{font-size:78px}html:not([lang="en"]) .welcome-copy h1{margin-bottom:34px}.welcome-copy>p:last-child{max-width:580px;font-size:21px}
html[lang="en"] .welcome-copy h1{font-size:68px}html[lang="en"] .welcome-copy>p:last-child{font-size:22px}
.start-card{padding:24px}.start-card>p{font-size:20px}.start-button{min-height:66px;padding:0 24px;font-size:22px}
html[lang="en"] .start-card>p{font-size:18px}html[lang="en"] .start-button{font-size:20px}
.welcome-steps{margin-top:22px;font-size:16px}
.app-header{min-height:84px;padding-inline:max(28px,calc((100% - 820px)/2))}
.host-mark{width:68px}
.header-action,.detail-back,.language-button{font-size:17px}
.chat-log{gap:16px;padding:30px max(28px,calc((100% - 820px)/2)) 18px}
.msg{max-width:72%}.msg-bot{max-width:100%}.msg-bot .msg-text{max-width:72%}.msg-text{font-size:19px}
.chat-books{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.chip{font-size:17px}
.composer-area{padding:12px max(28px,calc((100% - 820px)/2)) max(14px,env(safe-area-inset-bottom))}
.composer textarea{font-size:19px}
.trust-note{font-size:13px}
.notice{margin-inline:max(28px,calc((100% - 820px)/2))}
.detail-head{min-height:340px;padding-inline:max(28px,calc((100% - 820px)/2))}
.detail-body{width:min(100%,820px);margin-inline:auto;padding:32px 28px max(36px,env(safe-area-inset-bottom))}
.detail-body h2{font-size:40px}.detail-author{font-size:20px}.detail-summary,.detail-reason{font-size:19px}.trait-line{font-size:17px}.trait-line strong{font-size:18px}
.feedback-card{width:min(100%,540px);padding:38px 34px}.feedback-host{width:130px}
.note-sheet{width:min(100%,580px);bottom:40px;border-radius:26px}
}

.header-back{justify-self:start;text-align:start}.header-end{display:flex;justify-self:end;align-items:center;gap:6px}.header-end .header-action{min-width:0;padding-inline:4px}

/* Library social accounts on the welcome screen (2026-10-08): four tappable icons under the steps, open the account in a new tab */
.social-links{display:grid;justify-items:center;gap:8px;margin-top:16px}
.social-label{margin:0;color:var(--brown-soft);font-size:14px}.social-label bdi{font-family:var(--font-english);font-size:13px;font-weight:600;color:var(--brown)}
.social-row{display:flex;justify-content:center;gap:10px}
.social-link{display:grid;width:44px;height:44px;place-items:center;border:1px solid oklch(27.5% .058 40 / .16);border-radius:50%;background:oklch(98.4% .009 75 / .55);color:var(--brown);transition:background .18s cubic-bezier(.22,1,.36,1),color .18s cubic-bezier(.22,1,.36,1),border-color .18s cubic-bezier(.22,1,.36,1)}
.social-link:hover,.social-link:focus-visible{border-color:var(--coral);background:var(--coral);color:var(--surface)}
.social-link:focus-visible{outline:2px solid var(--brown);outline-offset:3px}
@media(min-width:700px){.social-links{margin-top:22px}.social-label{font-size:15px}.social-link{width:50px;height:50px}.social-link svg{width:22px;height:22px}}

/* «نبحث عن: رواية ✕ · قصيرة ✕» above the suggestions: every condition the search applies, each removable (2026-10-08) */
.context-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 9px}
.context-bar[hidden]{display:none}
.context-title{color:var(--brown-soft,var(--brown));font-size:13px;font-weight:600}
.context-chips{display:flex;flex-wrap:wrap;gap:12px 6px}
.context-chip{display:inline-flex;align-items:center;gap:4px;padding-block:3px;padding-inline:11px 4px;border:1px solid oklch(27.5% .058 40 / .14);border-radius:999px;background:var(--sage);color:var(--brown);font-size:13px;font-weight:600}
/* ✕: the button itself is a 44×44 touch target (project rule); only the 26px circle drawn by ::before is
   visible (the button stays square: a rounded button is not hit in its corners). Negative margins keep the pill at its old height and the circle 4px from its end; rows of
   pills are 12px apart so the targets of two rows touch but never overlap (audit 2026-10-08). */
.context-clear{position:relative;isolation:isolate;display:grid;flex:none;width:44px;height:44px;margin-block:-9px;margin-inline:-9px -5px;place-items:center;border:0;border-radius:0;background:transparent;color:var(--brown);font-size:12px;line-height:1;-webkit-tap-highlight-color:transparent}
.context-clear:before{content:"";position:absolute;z-index:-1;inset:9px;border-radius:50%;background:oklch(98.4% .009 75 / .7)}
.context-clear:hover,.context-clear:focus-visible{color:var(--surface)}
.context-clear:hover:before,.context-clear:focus-visible:before{background:var(--coral)}
.context-clear:focus-visible{outline:0}
.context-clear:focus-visible:before{outline:3px solid oklch(64.5% .156 32 / .55);outline-offset:3px}

/* no price recorded: no separator after the stock (2026-10-08) */
.stock-note.no-price strong:after{content:none}

/* «اختياراتنا هذا الشهر» (2026-10-14): five covers in a row that scrolls sideways */
.picks-box{margin-top:22px}
.picks-row{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.pick-card{display:grid;flex:0 0 142px;align-content:start;gap:9px;padding:8px 8px 12px;border:1px solid oklch(27.5% .058 40 / .13);border-radius:18px;background:var(--surface);color:var(--brown);text-align:start;scroll-snap-align:start;box-shadow:0 8px 20px oklch(27.5% .058 40 / .06);font:inherit;cursor:pointer}
.pick-cover{display:grid;place-items:center;width:100%;aspect-ratio:2/3;overflow:hidden;border-radius:12px;background:var(--sage)}
.pick-cover img{width:100%;height:100%;object-fit:cover}
.pick-cover-mark{color:var(--brown);font-size:40px;font-weight:700;opacity:.55}
.pick-text{display:grid;gap:3px;min-width:0;padding:0 2px}
.pick-text strong{overflow:hidden;font-size:15px;font-weight:650;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pick-author{overflow:hidden;color:var(--muted);font-size:13px;white-space:nowrap;text-overflow:ellipsis}
.pick-line{overflow:hidden;color:var(--brown);font-size:13px;line-height:1.45;opacity:.85;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.pick-card:hover,.pick-card:focus-visible{border-color:var(--coral)}
@media(min-width:700px){.pick-card{flex-basis:160px}}
/* «فعالياتنا» on the start page and the event page (2026-10-08) */
.events-box{margin-top:22px}
.events-title{margin:0 0 10px;color:var(--brown);font-size:18px;font-weight:650}
.events-row{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.event-card{display:flex;flex:0 0 min(78%,300px);align-items:center;gap:12px;padding:10px;border:1px solid oklch(27.5% .058 40 / .13);border-radius:18px;background:var(--surface);color:var(--brown);text-align:start;scroll-snap-align:start;box-shadow:0 8px 20px oklch(27.5% .058 40 / .06)}
.event-card img,.event-card-mark{flex:0 0 64px;width:64px;height:64px;border-radius:13px;object-fit:cover;background:var(--sage)}
.event-card-text{display:grid;gap:3px;min-width:0}.event-card-text strong{overflow:hidden;font-size:16px;font-weight:650;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.event-card-text span{color:var(--muted);font-size:13px}
.event-card:hover,.event-card:focus-visible{border-color:var(--coral)}
.event-head{min-height:0;padding-bottom:22px}
.event-image{width:min(100%,520px);margin:6px auto 0;overflow:hidden;border-radius:20px;box-shadow:0 17px 33px oklch(27.5% .058 40 / .1)}
.event-image img{display:block;width:100%;max-height:340px;object-fit:cover}
.event-kicker{margin:0 0 6px;color:var(--coral);font-size:14px;font-weight:650}
.event-when{margin:6px 0 18px;color:var(--brown);font-size:17px;font-weight:600}
.event-desc{white-space:pre-line}
.event-calendar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:-6px 0 18px}
.event-calendar-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border:1.5px solid var(--brown);border-radius:999px;color:var(--brown);font-weight:650;text-decoration:none;background:var(--surface,#fff)}
.event-calendar-btn::before{content:"";width:16px;height:16px;border:2px solid currentColor;border-top-width:5px;border-radius:4px;box-sizing:border-box}
.event-calendar-btn:hover,.event-calendar-btn:focus-visible{border-color:var(--coral);color:var(--coral)}
.event-calendar-alt{color:var(--muted);font-size:14px;text-underline-offset:4px}
.event-calendar-alt:hover,.event-calendar-alt:focus-visible{color:var(--coral)}
.event-book-label{margin:22px 0 8px;color:var(--muted);font-size:14px;font-weight:600}

/* author / publisher on the book page open the other books by them (2026-10-08) */
.link-button{padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-decoration-color:oklch(27.5% .058 40 / .35);text-underline-offset:5px;cursor:pointer}
.link-button:hover,.link-button:focus-visible{color:var(--coral);text-decoration-color:currentColor}
.detail-author{margin-bottom:6px}.detail-publisher{margin:0 0 20px;color:var(--muted);font-size:15px}
.more-sheet{padding-bottom:max(22px,env(safe-area-inset-bottom))}
.more-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.more-close{flex:none;min-height:40px}
.more-list{display:grid;gap:10px;margin-top:10px}

/* «منار» logo in the headers is a button back to the start page (2026-10-11, Ibrahim) */
.brand-home{appearance:none;-webkit-appearance:none;background:none;border:0;margin:0;padding:4px 6px;border-radius:12px;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}.brand-home:active{opacity:.7}
/* suggested books above Manar's text; price on the chat card instead of the copy count (2026-10-11) */
.msg-bot .chat-books.books-first{margin-top:0;margin-bottom:11px}
.price-chip{color:var(--brown);font-weight:650}
@media(min-width:700px){.msg-bot .chat-books.books-first{margin-top:0;margin-bottom:14px}}
/* The app's slogan under the logo (Ibrahim 2026-10-23): Arabic for the Arabic page, English for the English page */
.brand-slogan{max-width:405px;margin:-28px 0 32px;color:var(--brown-soft);font-size:16px;font-weight:600;line-height:1.5}
@media(min-width:700px){.brand-slogan{max-width:640px;margin:-38px 0 42px;font-size:18px}}

/* «ماذا تقرأ الآن؟» (Ibrahim 2026-10-27): a second start button in another colour, the review page, the readers' reviews on the book page */
.start-card .reading-button{margin-top:10px;background:var(--brown);box-shadow:0 10px 24px oklch(27.5% .058 40 / .18)}
.start-card .reading-button:hover{background:var(--brown-soft)}
/* Ibrahim 2026-10-29: «اقترح كتابًا لرفوف مكتبة ثلاث» — a third start button, outlined so the two main ones stay first */
.start-card .shelf-start-button{margin-top:10px;background:transparent;color:var(--brown);border:1.5px solid oklch(27.5% .058 40 / .35);box-shadow:none}
.start-card .shelf-start-button:hover{background:oklch(27.5% .058 40 / .06)}
.reading-body{padding:22px 20px max(26px,env(safe-area-inset-bottom))}
.reading-body h2{margin:0 0 6px;font-size:30px;font-weight:650;line-height:1.25}
.field{display:block;width:100%;min-height:50px;margin:0 0 12px;padding:11px 13px;border:1px solid oklch(27.5% .058 40 / .2);border-radius:15px;outline:0;background:var(--surface);color:var(--brown);font:inherit;font-size:17px;line-height:1.5}
textarea.field{min-height:92px;resize:vertical}
.field:focus{border-color:var(--sage-deep);box-shadow:0 0 0 4px oklch(82.4% .043 138 / .35)}
.find-state{min-height:22px;margin-bottom:8px}
.r-result{display:block;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:start;cursor:pointer}
.r-mini{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid oklch(27.5% .058 40 / .13);border-radius:16px;background:var(--surface)}
.r-result:hover .r-mini,.r-result:focus-visible .r-mini{border-color:var(--coral)}
.r-mini-cover{display:grid;flex:0 0 46px;width:46px;height:64px;place-items:center;overflow:hidden;border-radius:9px;background:var(--sage);color:var(--brown);font-size:20px;font-weight:700}
.r-mini-cover img{width:100%;height:100%;object-fit:cover}
.r-mini-text{display:grid;gap:2px;min-width:0}
.r-mini-text strong{font-size:17px;font-weight:650;line-height:1.3}
.r-mini-text span{color:var(--muted);font-size:14px}
.r-mini-text em{color:var(--success);font-size:13px;font-style:normal;font-weight:600}
.r-book{margin:8px 0 16px}
.shelf-cta{margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}
.shelf-cta .note-lead{margin-bottom:8px}
.shelf-button{justify-content:center;min-height:54px;padding-block:10px;line-height:1.4;text-align:center;background:var(--sage);color:var(--brown);font-size:17px;box-shadow:none}
.shelf-button:hover{background:var(--sage-deep)}
.stars{display:flex;gap:6px;margin:0 0 16px}
.star{display:grid;width:48px;height:48px;place-items:center;border:1px solid oklch(27.5% .058 40 / .18);border-radius:14px;background:var(--surface);color:oklch(80% .02 70);font-size:26px;line-height:1}
.star.on{border-color:oklch(70% .13 75);background:oklch(95% .05 85);color:oklch(68% .15 75)}
.s-result{margin-top:14px}
.s-say{margin:0 0 10px;font-size:17px;font-weight:600;line-height:1.5}
.s-candidate{display:grid;gap:4px;margin:0 0 12px;padding:14px;border:1px solid oklch(27.5% .058 40 / .15);border-radius:16px;background:var(--surface)}
.s-candidate strong{font-size:19px;font-weight:650}
.s-candidate span{color:var(--muted);font-size:14px}
.s-candidate p{margin:6px 0 0;font-size:15px;line-height:1.6}
.s-candidate em{margin-top:4px;color:var(--muted);font-size:12px;font-style:normal}
.s-result .r-mini{margin-bottom:12px}
.r-done{padding:20px 0;text-align:center}
.r-done p{margin:0 0 18px;font-size:18px;line-height:1.6}
.reader-reviews{margin:18px 0 6px;padding:14px 15px;border:1px solid oklch(27.5% .058 40 / .13);border-radius:18px;background:var(--surface)}
.reader-reviews h3{margin:0 0 4px;font-size:18px;font-weight:650}
.reviews-sum{margin:0 0 8px;color:oklch(60% .14 75);font-size:16px;font-weight:650}
.reviews-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.review-item{margin:10px 0 0;padding:10px 0 0;border-top:1px solid var(--line)}
.review-item p{margin:0 0 4px;font-size:16px;line-height:1.6;white-space:pre-line}
.review-item footer{color:oklch(60% .14 75);font-size:13px}.review-item footer span{color:var(--muted)}
.review-button{display:block;margin:12px auto 0}
.goodreads-link{display:block;width:max-content;margin:14px auto 0;color:var(--brown-soft);text-decoration:underline;text-underline-offset:3px}
html[lang="en"] .start-card .reading-button svg{transform:none}
@media(min-width:700px){.reading-body{width:min(100%,820px);margin-inline:auto;padding:32px 28px}.start-card .reading-button{margin-top:12px}}

/* HOMELINKS (Ibrahim 2026-10-30, proposal أ): «سولف معي» is the one big button; reviewing and suggesting are two quiet links */
.start-card .start-more{display:flex;flex-direction:column;align-items:center;gap:2px;margin:12px 0 0;font-size:15px}
.start-card .start-link{width:auto;min-height:0;box-shadow:none;padding:5px 2px;border:0;background:none;color:var(--brown-soft);font:inherit;font-weight:500;text-decoration:underline;text-underline-offset:4px;text-decoration-color:oklch(27.5% .058 40 / .3);cursor:pointer}
.start-card .start-link:hover{color:var(--brown);text-decoration-color:currentColor}
.start-card .start-more-sep{display:none}
html[lang="en"] .start-card .start-more{font-size:14px}

/* HOMEFOLD (Ibrahim 2026-10-30 22:4x, review of the start page P1): «سولف معي» whole in the first view on short screens, Arabic and English;
   reviewing / suggesting links get 44px touch targets but stay quiet text. Only spacing and headline size change; logo, fonts, colours and copy do not. */
.start-card .start-more{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:4px 18px;margin-top:8px}
.start-card .start-link{display:inline-flex;align-items:center;min-height:44px;padding:0 10px}
@media(max-height:760px){
  .welcome-top{min-height:52px}
  .welcome-main{min-height:calc(100dvh - 52px)}
  .brand-signature{margin-bottom:38px}
  .brand-slogan{margin-bottom:18px}
  .welcome-copy{margin-bottom:20px}
  .welcome-copy h1{font-size:clamp(38px,min(13vw,8vh),59px)}
  html:not([lang="en"]) .welcome-copy h1{margin-bottom:14px}
  html[lang="en"] .welcome-copy h1{font-size:clamp(34px,min(11vw,6.6vh),54px)}
  html[lang="en"] .welcome-copy>p:last-child{font-size:17px;line-height:1.45}
  .start-card{padding:14px}
}
@media(max-height:600px){
  .brand-signature{margin-bottom:34px}
  .brand-slogan{margin-bottom:12px}
  .welcome-copy{margin-bottom:14px}
  html:not([lang="en"]) .welcome-copy h1{margin-bottom:10px}
}

/* HOMEFOLD part 2 (Ibrahim 2026-10-30 22:5x): identity colours only. The start button text is bold (Zain 700 / English 700),
   and the English label 19px, so it is large text: 3:1 is required and surface on coral gives 3.37 (hover 4.12) — no new colour.
   Focus ring on the start card in the identity brown (the coral ring at 55% was 1.91:1 against the card). */
.start-card .start-button{font-weight:700}
html[lang="en"] .start-card .start-button{font-size:19px;font-weight:700}
@media(min-width:700px){html[lang="en"] .start-card .start-button{font-size:20px}}
.start-card .start-button:focus-visible,.start-card .start-link:focus-visible{outline:3px solid var(--brown);outline-offset:3px}
/* «اسحب لباقي الاختيارات» beside «اختياراتنا هذا الشهر», shown only when the row scrolls; the arrow points where the row continues */
.picks-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 10px}
.picks-head .events-title{margin:0}
.picks-hint{flex:none;color:var(--brown-soft);font-size:13px;white-space:nowrap}
.picks-hint:after{content:" ←";content:" ←" / ""}
html[lang="en"] .picks-hint:after{content:" →";content:" →" / ""}

/* CHATFIX (Ibrahim 2026-10-30, chat review). The composer area was sticky but never stuck: `.app-shell{overflow:hidden}` makes the
   shell the sticky element's scroll box. `clip` cuts the same way without being a scroll box (browsers without `clip` keep `hidden`). */
.app-shell{overflow:clip}
/* only the field, send and «عندك اقتراح؟» stay on screen; the search badges and suggestions are the end of the chat */
.chat-tail{margin-top:auto;padding:6px 16px 0}
.composer-area{margin-top:0}
@media(min-width:700px){.chat-tail{padding-inline:max(28px,calc((100% - 820px)/2))}}
.composer textarea::placeholder{color:var(--muted)}
.start-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.slow-note{display:flex;align-items:center;gap:4px;color:var(--muted);font-size:15px}
.slow-note .text-button{color:var(--brown)}
.new-reply{display:block;margin:0 auto 6px}
.see-cards{display:block;margin-top:4px;padding-inline:4px}
.toast{display:flex;align-items:center;justify-content:center;gap:12px}
.toast-action{flex:none;min-height:44px;padding:0 10px;border:0;background:transparent;color:var(--surface);font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.toast-action:focus-visible{outline:2px solid var(--surface);outline-offset:2px}

/* «محادثة جديدة» in the chat header (Ibrahim 2026-10-31): on phones the two words wrapped and touched the «منار» logo;
   an icon there (44px target, identity brown, the words kept for screen readers), icon + words from 700px */
.header-end .new-chat-button{display:inline-flex;min-width:44px;align-items:center;justify-content:center;gap:6px;padding-inline:4px}
.new-chat-button svg{flex:none}
@media(max-width:699px){.new-chat-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}}
@media(min-width:700px){.new-chat-label{white-space:nowrap}}
/* CHATFIX31 (2), Ibrahim 2026-11-01: the Goodreads line on a book card («★ ٤٫٢ · Goodreads» / «آراء القرّاء على Goodreads»), a link
   of its own laid over the card's foot (a link is never put inside the card's button); a 44px target, the identity colours */
.book-item,.pick-item{position:relative;min-width:0}
.book-item.has-gr>.book-card{padding-bottom:62px}
.gr-badge{position:absolute;z-index:1;display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;gap:5px;padding:4px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--brown);font-size:13px;font-weight:600;line-height:1.25;text-decoration:none;-webkit-tap-highlight-color:transparent}
.gr-star{color:var(--coral);font-size:14px}
.gr-badge:hover,.gr-badge:focus-visible{border-color:var(--coral);color:var(--coral-hover)}
.book-item>.gr-badge{bottom:12px;inset-inline-start:14px;max-width:calc(100% - 118px)}
html[lang="en"] .book-item>.gr-badge{inset-inline-start:104px;font-family:var(--font-english)}
.pick-item{display:flex;flex:0 0 142px;scroll-snap-align:start}
.pick-item>.pick-card{flex:1 1 auto;min-width:0}
.pick-item.has-gr>.pick-card{padding-bottom:60px}
.pick-item>.gr-badge{bottom:8px;inset-inline:8px;padding:4px 6px;font-size:12px;text-align:center}
html[lang="en"] .pick-item>.gr-badge{font-family:var(--font-english)}
@media(min-width:700px){.pick-item{flex-basis:160px}}
@media(max-width:360px){.book-item>.gr-badge{inset-inline-start:12px;max-width:calc(100% - 104px)}html[lang="en"] .book-item>.gr-badge{inset-inline-start:94px}}
