@import url("https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Literata:opsz,wght@7..72,400;7..72,500;7..72,600&family=Noto+Nastaliq+Urdu:wght@400;500&family=Scheherazade+New:wght@400;700&display=swap");
@font-face{font-family:Ravi;src:url("assets/fonts/Ravi-VF.ttf") format("truetype");font-weight:100 900;font-display:block}
@font-face{font-family:Yekan;src:url("assets/fonts/Yekan.woff2") format("woff2");font-weight:100 900;font-display:block}
@font-face{font-family:IranNastaliq;src:url("assets/fonts/IranNastaliq.ttf") format("truetype");font-weight:400;font-display:block}
@font-face{font-family:ShekastehNastaliq;src:url("assets/fonts/ShekastehNastaliq.ttf") format("truetype");font-weight:400;font-display:block}
@font-face{font-family:MirEmad;src:url("assets/fonts/MirEmad.ttf") format("truetype");font-weight:400;font-display:block}
:root{--bg:#f6f6f3;--panel:#ffffffdf;--solid:#fff;--ink:#20231f;--muted:#747a73;--faint:#a5aaa2;--line:#dfe2dc;--soft:#eceee9;--gold:#b78a2d;--green:#477766;--red:#bd5861;--orange:#c8752d;--focus:#20231f;--shadow:0 18px 55px #20231f0d;--font:Ravi;--scale:1;--ui-scale:1}
html.theme-light-mode{--bg:#f8fafc;--panel:#ffffff;--solid:#fff;--ink:#111827;--muted:#475569;--faint:#64748b;--line:#cbd5e1;--soft:#e2e8f0;--gold:#9a6700;--green:#146c54;--red:#b42336;--orange:#b45309;--focus:#0f172a;--shadow:0 18px 55px #0f172a1a}
html.theme-paper{--bg:#f3eee6;--panel:#fffaf2e8;--solid:#fffaf2;--ink:#302b26;--muted:#6e655b;--faint:#70665b;--line:#e4d9cc;--soft:#eee5da;--gold:#a97828;--green:#5d7969;--red:#bd5861;--orange:#b96f37}
html.theme-dark{--bg:#151715;--panel:#20231fe8;--solid:#20231f;--ink:#f1f2ed;--muted:#9ca29a;--faint:#747b73;--line:#363b35;--soft:#292d28;--gold:#d4ad55;--green:#8fc2ae;--red:#d1646d;--orange:#d58a42;--focus:#fff;--shadow:0 18px 55px #0004}
html.theme-dark-mode{--bg:#070a10;--panel:#111925f2;--solid:#0d121b;--ink:#f8fbff;--muted:#b7c2d2;--faint:#718096;--line:#334155;--soft:#1a2637;--gold:#ffd166;--green:#6ff0c1;--red:#ff6b7a;--orange:#ff9f43;--focus:#fff;--shadow:0 22px 70px #0009}
html.theme-system{--bg:#f8fafc;--panel:#ffffff;--solid:#fff;--ink:#111827;--muted:#475569;--faint:#64748b;--line:#cbd5e1;--soft:#e2e8f0;--gold:#9a6700;--green:#146c54;--red:#b42336;--orange:#b45309;--focus:#0f172a;--shadow:0 18px 55px #0f172a1a}
@media(prefers-color-scheme:dark){html.theme-system{--bg:#070a10;--panel:#111925f2;--solid:#0d121b;--ink:#f8fbff;--muted:#b7c2d2;--faint:#718096;--line:#334155;--soft:#1a2637;--gold:#ffd166;--green:#6ff0c1;--red:#ff6b7a;--orange:#ff9f43;--focus:#fff;--shadow:0 22px 70px #0009}}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font),Tahoma,sans-serif;font-size:16px;direction:rtl;transition:background .2s,color .2s}#app{zoom:var(--ui-scale)}
html[data-app-font=ravi]{--font:Ravi}html[data-app-font=yekan]{--font:Yekan}html[data-lang=en][data-app-font=english]{--font:"DM Sans",ui-sans-serif,system-ui,sans-serif}html[data-lang=en][data-app-font=english-serif]{--font:Literata,Georgia,serif}html[data-lang=en][data-app-font=english-mono]{--font:"IBM Plex Mono","SFMono-Regular",monospace}html[data-poem-font=ravi]{--poem-font:Ravi}html[data-poem-font=iran-nastaliq]{--poem-font:IranNastaliq,serif}html[data-poem-font=shekasteh]{--poem-font:ShekastehNastaliq,serif}html[data-poem-font=mir-emad]{--poem-font:MirEmad,serif}.poem-copy,.poem-heading h1{font-family:var(--poem-font,var(--font)),var(--font),serif}html[data-poem-font=iran-nastaliq] .couplet-text,html[data-poem-font=shekasteh] .couplet-text,html[data-poem-font=mir-emad] .couplet-text{line-height:2.45}
button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.app{min-height:100vh}
.glass{background:var(--panel);border:1px solid var(--line);backdrop-filter:blur(18px) saturate(115%);-webkit-backdrop-filter:blur(18px) saturate(115%);box-shadow:var(--shadow)}
.topbar{height:72px;max-width:1280px;margin:auto;padding:0 24px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;font-weight:900}.brand-mark{width:36px;height:36px;border-radius:12px;background:var(--ink);color:var(--bg);display:grid;place-items:center}.brand-mark svg{width:21px}.brand-name{font-size:20px;letter-spacing:-.8px}.nav{display:flex;justify-content:center;gap:3px}.nav button,.top-button{border:0;background:transparent;color:var(--muted);padding:9px 12px;border-radius:10px;font-size:11px}.nav button:hover,.nav button.active{background:var(--soft);color:var(--ink)}.top-actions{display:flex;gap:6px}.top-button{border:1px solid var(--line);color:var(--ink);display:grid;place-items:center;width:36px;height:36px;padding:0}.top-button svg{width:17px;height:17px}
.landing{max-width:1280px;margin:auto;padding:64px 24px 80px}.hero{text-align:center;max-width:860px;margin:auto;animation:rise .55s ease both}.eyebrow,.kicker{font-size:10px;color:var(--muted);margin:0 0 16px;letter-spacing:.1px}.eyebrow:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--gold);margin-left:7px;vertical-align:1px}.hero h1{font-size:clamp(36px,5vw,72px);line-height:1.22;letter-spacing:-4px;margin:0}.hero h1 span{display:inline-block;color:var(--muted);font-size:.76em;margin-top:7px}.hero-copy{font-size:13px;line-height:1.9;color:var(--muted);margin:18px 0 24px}
.search-line,.archive-search{display:flex;align-items:center;gap:11px;max-width:650px;margin:auto;border:1px solid var(--line);background:var(--panel);border-radius:14px;padding:13px 15px;text-align:right;box-shadow:var(--shadow)}.search-line:focus-within,.archive-search:focus-within,.field:focus-within,.select:focus{border-color:var(--focus);box-shadow:0 0 0 3px var(--soft)}.search-line svg,.archive-search svg{width:18px;flex:none}.search-line input,.archive-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:16px}.search-line input::placeholder,.archive-search input::placeholder{color:var(--muted)}.key{font-size:9px;color:var(--muted);border:1px solid var(--line);padding:3px 6px;border-radius:6px;direction:ltr;white-space:nowrap}
.metrics{display:flex;justify-content:center;gap:0;margin:30px auto 0;max-width:550px;border:1px solid var(--line);border-radius:14px;overflow:hidden}.metric{flex:1;padding:13px 10px;border-left:1px solid var(--line)}.metric:last-child{border-left:0}.metric strong{font-size:19px;display:block}.metric span{font-size:9px;color:var(--muted)}.hero-actions,.page-actions{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.hero-actions{margin-top:17px}.button{border:1px solid var(--ink);background:var(--ink);color:var(--bg);padding:10px 14px;border-radius:9px;font-size:10px;display:inline-flex;align-items:center;justify-content:center;gap:7px}.button:hover{opacity:.84}.button.secondary{border-color:var(--line);background:var(--panel);color:var(--ink)}.button svg{width:15px}.button:active,.tab:active,.icon-button:active{transform:scale(.97)}
.section-wrap{max-width:1120px;margin:70px auto 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:16px}.section-head h2{font-size:23px;margin:0;letter-spacing:-1px}.section-head p{font-size:10px;color:var(--muted);margin:5px 0 0}.text-link{border:0;background:transparent;color:var(--muted);font-size:10px}.text-link:hover{color:var(--ink)}
.poet-grid,.book-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.poet-card,.collection-card{position:relative;overflow:hidden;cursor:pointer;transition:.22s;border-radius:18px;animation:rise .5s ease both}.poet-card{height:168px;padding:17px 18px}.poet-card:hover,.collection-card:hover{transform:translateY(-4px);border-color:var(--ink)}.poet-card:after,.collection-card:after{content:"";position:absolute;inset:auto -30px -68px;height:135px;background:var(--soft);border-radius:50%;opacity:.72}.poet-index{font-size:9px;direction:ltr;color:var(--muted)}.poet-card h3,.collection-card h3{position:relative;z-index:2;font-size:23px;letter-spacing:-1px;margin:19px 0 2px}.poet-card p{position:relative;z-index:2;font-size:10px;color:var(--muted);margin:0}.poet-count,.book-count{position:absolute;right:18px;bottom:16px;color:var(--muted);font-size:9px;z-index:2}.poet-card-actions{position:absolute;left:14px;top:13px;z-index:4;display:flex;gap:5px}.icon-button{border:1px solid var(--line);background:var(--panel);color:var(--muted);width:29px;height:29px;border-radius:9px;display:grid;place-items:center;padding:0}.icon-button:hover{color:var(--ink);border-color:var(--ink)}.icon-button svg{width:14px}.poet-sketch{position:absolute;left:20px;bottom:18px;width:76px;height:76px;z-index:1;opacity:.72;transition:.3s}.poet-card:hover .poet-sketch{transform:translate(-3px,-5px) rotate(-3deg);opacity:1}
.page{max-width:1120px;margin:auto;padding:46px 24px 110px}.page-hero{text-align:center;max-width:800px;margin:0 auto 34px}.back-link{border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:9px;padding:8px 12px;font-size:10px;margin-bottom:17px}.back-link:hover{color:var(--ink);border-color:var(--ink)}.breadcrumbs{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;color:var(--muted);font-size:10px;margin-bottom:18px}.breadcrumbs button{border:0;background:transparent;color:inherit;padding:0}.breadcrumbs button:hover{color:var(--ink)}.page-hero h1{font-size:47px;letter-spacing:-3px;margin:0 0 9px}.page-hero p{font-size:12px;line-height:2;color:var(--muted);margin:0 auto;max-width:660px}.info-row{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:12px}.page-actions{margin-top:19px}
.collection-grid{gap:10px}.collection-card{height:168px;min-height:168px;padding:17px 18px}.collection-card h3{max-width:72%;margin-top:24px;font-size:19px;line-height:1.7}.collection-info{position:absolute;left:17px;top:15px;z-index:4}.collection-sketch{position:absolute;left:20px;bottom:15px;width:88px;height:74px;z-index:1;color:var(--gold);opacity:.78}.collection-sketch svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.context-card{padding:16px 18px;border-radius:14px;color:var(--muted);font-size:11px;line-height:2;margin:20px auto;max-width:760px}.context-card strong{color:var(--ink)}.tabs,.setting-options{display:flex;gap:6px;overflow:auto;padding:3px 0 8px;scrollbar-width:none}.tabs::-webkit-scrollbar,.setting-options::-webkit-scrollbar{display:none}.tab,.setting-options button{border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:999px;padding:8px 12px;font-size:10px;white-space:nowrap}.tab.active,.setting-options button.active{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.archive-search{max-width:760px;margin-bottom:16px}.archive-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0 20px}.select,.field{min-width:0;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:10px;padding:10px 11px;outline:0;font-size:16px}.result-summary{color:var(--muted);font-size:10px;margin:20px 0 10px}.quick-grid,.result-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.quick-grid{margin-bottom:12px}.quick-card,.result-card,.section-card,.stat-card,.favorite-poet,.favorite-couplet,.history-item,.setting-card{border-radius:14px}.quick-card{display:flex;align-items:center;gap:11px;padding:13px 15px;cursor:pointer}.quick-card>svg{width:19px;flex:none;color:var(--gold)}.quick-card div{min-width:0;display:grid;gap:4px}.quick-card strong{font-size:12px}.quick-card small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quick-card>span{margin-right:auto;color:var(--muted)}.result-card{position:relative;padding:15px;cursor:pointer;display:grid;grid-template-columns:1fr auto;gap:8px;transition:.2s}.result-card:hover,.section-card:hover,.history-item:hover,.favorite-poet:hover,.favorite-couplet:hover{border-color:var(--ink)}.result-meta{display:flex;gap:6px;align-items:center;color:var(--muted);font-size:9px}.result-meta i{width:3px;height:3px;border-radius:50%;background:var(--gold)}.result-card h3{font-size:15px;margin:8px 0 3px}.result-book{font-size:9px;color:var(--muted)}.result-excerpt{grid-column:1/-1;color:var(--muted);font-size:10px;line-height:1.9;margin:0;padding-top:5px;border-top:1px solid var(--line)}.save-btn{border:0;background:transparent;color:var(--muted);font-size:22px;height:30px}.save-btn.saved{color:var(--gold)}.empty,.loading{display:grid;place-items:center;min-height:150px;color:var(--muted);font-size:12px}.more-button{display:block;margin:17px auto 0;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:999px;padding:9px 16px;font-size:10px}
.section-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.section-card{position:relative;padding:15px 44px 15px 36px;min-height:68px;cursor:pointer}.section-card h3{font-size:12px;line-height:1.8;margin:0}.section-no{position:absolute;right:15px;top:16px;color:var(--gold);font-size:10px}.section-card .go{position:absolute;left:14px;top:21px;color:var(--muted)}
.poem-shell{max-width:820px;margin:auto;padding:43px 24px 115px}.poem-heading{text-align:center;margin-bottom:28px}.poem-heading h1{font-size:40px;letter-spacing:-2px;margin:12px 0 4px}.poem-heading p{font-size:10px;color:var(--muted);margin:0}.poem-tools{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:18px 0 24px}.poem-copy{direction:rtl;text-align:right}.couplet{position:relative;min-width:0;padding:24px 76px 39px;border-top:1px solid var(--line);overflow:hidden}.couplet:last-child{border-bottom:1px solid var(--line)}.couplet-text{min-width:0;text-align:center;font-size:clamp(16px,calc(1.125rem * var(--scale)),72px);line-height:1.95;overflow-wrap:anywhere}.couplet-text p{margin:0;white-space:normal}.couplet-text p+p:not(.verse-note){color:var(--muted)}.verse-note{color:var(--green)!important;opacity:.7;font-size:.58em!important;line-height:1.8!important;margin-top:10px!important;text-align:right!important;border-right:2px solid var(--green);padding-right:9px}.couplet-no{position:absolute;right:19px;top:24px;color:var(--gold);font-size:10px;direction:ltr}.couplet-heart{position:absolute;right:12px;top:51px;border:0;background:transparent;color:var(--muted);font-family:Arial,sans-serif;font-size:21px;line-height:1;padding:4px}.couplet-heart:hover{color:var(--ink)}.couplet-heart.saved{color:#bd5861}.couplet-actions{position:absolute;left:15px;bottom:12px;display:flex;gap:8px;opacity:.58}.couplet-actions button{border:0;background:transparent;color:var(--muted);font-family:Arial,sans-serif;font-size:18px;line-height:1;padding:3px;width:24px;height:24px}.couplet-actions button:hover{color:var(--ink);opacity:1}.poem-nav{display:flex;justify-content:space-between;gap:10px;margin-top:24px}.poem-nav button{max-width:48%;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:10px;padding:10px 12px;font-size:10px;text-align:right}
.account-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:28px}.stat-card{padding:17px}.stat-card strong{display:block;font-size:26px}.stat-card span{color:var(--muted);font-size:9px}.profile-field{max-width:520px;margin:0 auto 28px;display:flex;gap:7px}.profile-field .field{flex:1}.history-list{display:grid;gap:7px}.history-item,.favorite-poet,.favorite-couplet{padding:12px 14px;display:flex;justify-content:space-between;gap:12px;cursor:pointer}.history-item h3,.favorite-poet h3,.favorite-couplet h3{font-size:12px;margin:0 0 2px}.history-item small,.favorite-poet small,.favorite-couplet small{color:var(--muted);font-size:9px}.account-items{margin-top:15px}.account-history-heading{margin-top:40px}
.settings-grid{display:grid;gap:10px;max-width:800px;margin:auto}.setting-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px}.setting-card h3{font-size:13px;margin:0 0 5px}.setting-card p{font-size:10px;color:var(--muted);margin:0;line-height:1.8}.setting-options{justify-content:flex-end;flex-wrap:wrap;overflow:visible}.range-wrap{flex:1;min-width:260px;display:grid;grid-template-columns:minmax(130px,1fr) auto auto;align-items:center;gap:9px}.range{width:100%;accent-color:var(--gold);direction:ltr}.range-value{min-width:45px;text-align:center;color:var(--gold);font-size:10px}.default-size{border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:999px;padding:7px 10px;font-size:9px;white-space:nowrap}
.modal-backdrop{position:fixed;z-index:60;inset:0;background:#20231f55;display:grid;place-items:center;padding:20px;opacity:0;pointer-events:none;transition:.2s}.modal-backdrop.open{opacity:1;pointer-events:auto}.modal{position:relative;width:min(560px,100%);padding:27px;border-radius:18px}.modal .modal-close{position:absolute;top:15px;left:15px}.modal h2{font-size:20px;margin:0 0 14px}.modal p{font-size:12px;line-height:2;color:var(--muted);margin:0}.modal textarea{width:100%;min-height:130px;resize:vertical;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:10px;padding:10px;outline:0;font-size:16px;margin-top:12px}.modal-actions{display:flex;gap:7px;margin-top:12px}.modal-actions .button{flex:1}.footer{max-width:1280px;margin:auto;padding:0 24px 28px;color:var(--faint);font-size:9px;text-align:center}#toast{position:fixed;z-index:80;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--ink);color:var(--bg);border-radius:999px;padding:9px 15px;font-size:10px;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}
.mobile-nav{display:none}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:900px){.topbar{padding:0 18px}.nav{display:none}.landing{padding:53px 18px 65px}.page{padding:42px 18px 105px}.book-grid,.poet-grid,.section-list,.quick-grid,.result-list{grid-template-columns:repeat(2,minmax(0,1fr))}.archive-controls{grid-template-columns:1fr 1fr}.poem-shell{padding:40px 18px 110px}}
@media(max-width:600px){.topbar{height:66px;grid-template-columns:1fr auto;gap:12px}.top-actions{justify-content:flex-end}.brand-name{font-size:18px}.brand-mark{width:34px;height:34px}.landing{padding-top:45px}.hero h1{font-size:clamp(32px,10vw,43px);letter-spacing:-1.5px}.hero-copy{font-size:12px}.key{display:none}.metrics{margin-top:25px}.metric{padding:11px 5px}.metric strong{font-size:17px}.section-head{align-items:start;flex-direction:column}.page-hero h1{font-size:37px}.page-hero p{font-size:11px}.poet-card,.collection-card{height:145px;min-height:145px;padding:14px}.poet-card h3,.collection-card h3{font-size:19px;margin-top:18px}.poet-sketch{width:68px;height:68px;left:12px;bottom:12px}.poet-card-actions{left:11px;top:10px}.collection-sketch{width:68px;height:60px;left:12px;bottom:10px}.collection-info{left:11px;top:10px}.collection-card h3{max-width:76%;font-size:17px}.poet-count,.book-count{right:14px;bottom:14px}.book-grid,.poet-grid,.section-list,.quick-grid,.result-list{grid-template-columns:1fr}.archive-controls{grid-template-columns:1fr}.archive-search input,.select,.field,.modal textarea{font-size:16px}.account-grid{grid-template-columns:1fr 1fr}.account-grid .stat-card:last-child{grid-column:1/-1}.setting-card{display:block}.setting-options{justify-content:flex-start;margin-top:14px}.range-wrap{width:100%;min-width:0;margin-top:14px;grid-template-columns:minmax(0,1fr) auto}.range-wrap .default-size{grid-column:1/-1;justify-self:start}.couplet{padding:20px 38px 39px}.couplet-no{right:9px;top:21px}.couplet-heart{right:4px;top:49px}.couplet-actions{left:7px;bottom:10px}.poem-heading h1{font-size:31px}.poem-nav button{font-size:9px}.mobile-nav{display:flex;position:fixed;z-index:30;bottom:0;left:0;right:0;height:75px;padding:6px 8px env(safe-area-inset-bottom);background:var(--solid);border-top:1px solid var(--line);justify-content:space-around;box-shadow:0 -12px 35px #0001}.mobile-nav button{flex:1;min-width:60px;border:0;background:transparent;color:var(--muted);font-size:9px;border-radius:12px}.mobile-nav button svg{display:block;width:19px;height:19px;margin:0 auto 3px}.mobile-nav button.active{background:var(--soft);color:var(--ink);font-weight:800}.profile-field{align-items:stretch}.profile-field .button{padding-inline:12px}.footer{padding-bottom:95px}}
 :root{--green:#477766;--red:#bd5861;--orange:#c47d38;--nav-index:0}
 .hero-title{display:grid;gap:5px;font-size:clamp(32px,5vw,66px);line-height:1.25;letter-spacing:-3px;margin:0}
 .hero-title span{display:block;color:var(--ink);font-size:1em;margin:0}
 .hero-title span:nth-child(2){color:var(--green)}
 .hero-title span:nth-child(3){color:var(--muted);font-size:.34em;letter-spacing:-.4px;line-height:1.7;max-width:720px;margin:7px auto 0}
 .hero-actions{margin-top:26px}.shine-button{position:relative;overflow:hidden}.shine-button:after{content:"";position:absolute;inset:-20% auto -20% -70%;width:35%;background:#fff7;transform:skewX(-18deg);animation:shine 3.4s ease-in-out infinite}.shine-button>*{position:relative;z-index:1}
 @keyframes shine{0%,55%{left:-70%}75%,100%{left:135%}}
 .metrics{margin-top:37px}.metric strong{font-variant-numeric:tabular-nums;transition:color .2s}.metric:nth-child(1) strong{color:var(--green)}.metric:nth-child(2) strong{color:var(--orange)}.metric:nth-child(3) strong{color:var(--red)}
 .poet-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.poet-card{height:142px;padding:14px 16px}.poet-card h3{font-size:20px;margin:14px 0 1px}.poet-sketch{width:80px;height:80px;left:16px;bottom:10px;opacity:.68}.poet-card-actions{left:12px;top:11px}.poet-card-actions .icon-button{width:25px;height:25px}
 .search-filters{grid-template-columns:repeat(2,minmax(0,1fr));max-width:620px;margin:10px auto 28px}.search-filters .select:disabled{opacity:.48;cursor:not-allowed}.search-result-list{display:grid;gap:10px;max-width:820px;margin:auto}.search-result{padding:0;border-radius:15px;overflow:hidden;cursor:pointer}.search-hit{padding:16px 18px;border-bottom:1px solid var(--line);transition:background .2s}.search-hit:last-child{border-bottom:0}.search-hit:hover{background:var(--soft)}.search-hit-couplet{display:grid;gap:4px;text-align:right;font-size:clamp(16px,2vw,21px);line-height:1.8}.search-hit-couplet span{white-space:nowrap;overflow-x:auto;scrollbar-width:none}.search-hit-couplet span::-webkit-scrollbar{display:none}.search-hit-couplet mark{background:#e8bb64aa;color:inherit;border-radius:4px;padding:0 2px}.search-hit-address{margin-top:9px;color:var(--muted);font-size:10px}.search-wait{min-height:140px;display:grid;place-items:center;color:var(--muted);font-size:11px}
 .poem-topline{display:flex;direction:ltr;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:29px}.poem-topline .back-link{margin:0}.poem-topline .breadcrumbs{direction:rtl;justify-content:flex-end;margin:0}.poem-heading{margin-bottom:31px}.poem-heading h1{margin-top:9px}.poem-tools .button svg{width:15px;height:15px}.copy-button{position:relative}.copy-icon{display:grid;transition:opacity .18s,transform .18s}.copy-icon-success{position:absolute;right:14px;opacity:0;transform:scale(.7);color:var(--green)}.copy-button.copied .copy-icon-default{opacity:0;transform:scale(.7)}.copy-button.copied .copy-icon-success{opacity:1;transform:scale(1)}.copy-button.copied .copy-label{color:var(--green)}
 .couplet{padding:24px 72px 34px 54px}.couplet-text{font-size:clamp(16px,calc(1.125rem * var(--scale)),72px)}.couplet-text p{color:var(--ink)!important;white-space:nowrap;overflow-x:auto;scrollbar-width:none}.couplet-text p::-webkit-scrollbar{display:none}.couplet-actions{left:13px;top:23px;bottom:auto;display:flex;flex-direction:column;gap:15px}.couplet-actions button{display:grid;place-items:center;width:25px;height:25px;padding:2px}.couplet-actions svg,.couplet-heart svg{width:18px;height:18px}.couplet-heart{right:11px;top:22px;color:var(--muted);width:28px;height:28px;padding:5px}.couplet-heart.saved{color:var(--red)}
 .poem-fab{position:fixed;z-index:45;left:22px;bottom:92px;direction:ltr}.poem-fab-toggle{width:52px;height:52px;border:1px solid var(--ink);border-radius:50%;background:var(--ink);color:var(--bg);display:grid;place-items:center;box-shadow:0 12px 28px #20231f25;transition:.28s}.poem-fab-toggle svg{width:22px;transition:.28s}.poem-fab.open .poem-fab-toggle{border-radius:18px;transform:rotate(45deg)}.poem-fab-menu{position:absolute;left:0;bottom:62px;width:192px;padding:10px;border:1px solid var(--line);border-radius:18px;background:var(--panel);backdrop-filter:blur(18px);box-shadow:var(--shadow);display:grid;gap:4px;opacity:0;pointer-events:none;transform:translateY(10px) scale(.94);transform-origin:bottom left;transition:.25s}.poem-fab.open .poem-fab-menu{opacity:1;pointer-events:auto;transform:none}.poem-fab-menu>button,.poem-size-control button{border:0;background:transparent;color:var(--ink);display:flex;align-items:center;gap:9px;padding:8px;border-radius:9px;font-size:10px;text-align:left}.poem-fab-menu>button:hover,.poem-size-control button:hover{background:var(--soft)}.poem-fab-menu svg{width:17px;height:17px}.poem-size-control{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:4px;padding-top:5px;color:var(--muted);font-size:9px}.poem-size-control button{padding:5px}.poem-size-control button svg{width:15px}.focus-mode .topbar,.focus-mode .footer,.focus-mode .mobile-nav{display:none}.focus-mode .poem-shell{max-width:1080px;padding-top:35px}
 .account-gate{max-width:470px;margin:34px auto;padding:34px;text-align:center;border-radius:22px}.account-glyph{width:56px;height:56px;margin:0 auto 16px;border-radius:18px;background:var(--soft);display:grid;place-items:center;color:var(--green)}.account-glyph svg{width:26px}.account-gate h1{font-size:31px;margin:0 0 9px}.account-gate>p:not(.eyebrow){font-size:12px;color:var(--muted);line-height:2;margin:0 auto 21px}.account-gate small{display:block;color:var(--faint);font-size:9px;margin-top:15px}.register-field{width:100%;margin-top:17px}.footer{display:flex;justify-content:center;gap:13px;flex-wrap:wrap}.footer-links{display:inline-flex;gap:10px}.footer a{color:var(--green)}.setting-card h3{font-size:15px}.setting-card p{font-size:11px}.setting-options button{font-size:11px}
 .mobile-nav{position:relative}.nav-slider{position:absolute;z-index:0;right:calc(var(--nav-index) * 25% + 7px);width:calc(25% - 14px);height:3px;top:0;background:var(--green);border-radius:0 0 5px 5px;transition:right .3s ease}.mobile-nav button{position:relative;z-index:1}
@media(max-width:600px){.hero-title{font-size:clamp(28px,8.6vw,40px);letter-spacing:-1.3px;gap:3px}.hero-title span:nth-child(3){font-size:.4em;line-height:1.8}.poet-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.poet-card{height:132px;min-height:132px;padding:12px 11px}.poet-card h3{font-size:16px;margin-top:13px}.poet-card p{font-size:9px}.poet-sketch{width:62px;height:62px;left:7px;bottom:7px}.poet-count{right:10px;bottom:10px}.poet-card-actions{left:7px;top:7px}.poet-card-actions .icon-button{width:22px;height:22px}.poet-card-actions .icon-button svg{width:12px}.search-filters{grid-template-columns:1fr}.search-hit{padding:13px 12px}.search-hit-couplet{font-size:15px}.search-hit-address{font-size:9px}.poem-topline{gap:8px}.poem-topline .breadcrumbs{font-size:9px;text-align:right}.poem-shell{padding-left:14px;padding-right:14px}.couplet{padding:20px 39px 34px 43px}.couplet-actions{left:5px;top:19px;gap:12px}.couplet-heart{right:3px;top:18px}.poem-fab{left:14px;bottom:87px}.poem-fab-menu{width:175px}.footer{padding-left:14px;padding-right:14px}.setting-help{display:flex}.setting-help .button{margin-top:13px}}

 /* 0.1.0b3 refinements */
.metrics .metric strong{color:var(--green)!important}
.page-hero:has(> .back-link)> .back-link{inset-inline-start:auto;inset-inline-end:0}
.page-hero:has(> .back-link)> .breadcrumbs{inset-inline-start:0;inset-inline-end:auto;justify-content:flex-start;text-align:end}
.poem-fab-menu{background:#20231f;color:#f6f6f3;border-color:#20231f;opacity:0;visibility:hidden;transition:opacity 220ms cubic-bezier(.22,1,.36,1),visibility 220ms,border-radius 220ms cubic-bezier(.22,1,.36,1)}
.poem-fab.open .poem-fab-menu{opacity:1;visibility:visible}
.poem-fab-toggle{background:#20231f;color:#f6f6f3;border-color:#20231f}
.poem-fab-menu>button,.poem-size-control button{color:#f6f6f3}
.poem-fab-menu>button:hover,.poem-size-control button:hover{background:#ffffff18;color:#fff}
.poem-size-control{color:#f6f6f3aa;border-top-color:#ffffff26}
.mobile-nav .nav-slider{top:6px;bottom:6px;height:auto;background:var(--soft);border:1px solid var(--line);border-radius:14px;box-shadow:none}
.mobile-nav button.active{color:var(--ink)}
.footer{display:grid;justify-items:center;gap:8px;border-top:1px solid var(--line);padding-top:16px}
.footer a{display:none}
.couplet-no{top:23px}
.couplet-heart{top:66px}
.couplet-actions{top:22px;bottom:auto;display:flex;flex-direction:column;gap:15px}
.focus-mode,.focus-mode body{background:var(--bg);overflow-x:hidden}
.focus-mode #main{min-height:100svh}
.focus-mode .topbar,.focus-mode .footer,.focus-mode .mobile-nav,.focus-mode .poem-topline,.focus-mode .poem-heading,.focus-mode .context-card,.focus-mode .poem-nav,.focus-mode .poem-fab{display:none}
.focus-mode .poem-shell{max-width:none;min-height:100svh;padding:7vh clamp(18px,8vw,120px) 120px;display:flex;flex-direction:column}
.focus-mode .poem-copy{width:min(900px,100%);margin:auto;display:flex;flex-direction:column;gap:2px}
.focus-mode .couplet{display:block;min-height:66px;padding:16px 64px;border-top-color:transparent;border-bottom:0;opacity:.14;filter:blur(.2px);transform:scale(.985);transition:opacity 300ms ease,filter 300ms ease,transform 300ms ease,background 300ms ease}
.focus-mode .couplet.is-focus-active{min-height:calc(100svh - 250px);display:grid;align-items:center;padding-block:32px;border-top-color:var(--line);border-bottom:1px solid var(--line);opacity:1;filter:none;transform:none;background:var(--panel)}
.focus-mode .couplet.is-focus-muted .couplet-actions,.focus-mode .couplet.is-focus-muted .couplet-heart{opacity:.25}
.focus-controls{position:fixed;z-index:80;left:50%;bottom:max(20px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:8px;border:1px solid var(--line);border-radius:16px;background:var(--panel);box-shadow:var(--shadow);direction:rtl}
.focus-controls button{border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:9px;padding:8px 11px;font-size:10px;white-space:nowrap}
.focus-controls button:hover:not(:disabled){background:var(--soft)}
.focus-controls button:disabled{opacity:.35;cursor:not-allowed}
.focus-controls span{min-width:58px;text-align:center;color:var(--muted);font-size:10px;direction:ltr}
.focus-controls .focus-exit{color:var(--muted)}
@media(max-width:600px){.page-hero:has(> .back-link)> .back-link{inset-inline-end:0}.page-hero:has(> .back-link)> .breadcrumbs{inset-inline-start:0}.couplet-heart{top:60px}.focus-mode .poem-shell{padding:5vh 12px 112px}.focus-mode .couplet{padding-inline:43px}.focus-mode .couplet.is-focus-active{min-height:calc(100svh - 220px)}.focus-controls{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));transform:none;justify-content:space-between}.focus-controls button{padding-inline:8px}.focus-controls span{min-width:42px}}
@media(prefers-reduced-motion:reduce){.focus-mode .couplet,.focus-mode .couplet.is-focus-active,.focus-controls{transition-duration:1ms!important}}

/* Fab Morph: the anchor grows around its bottom-end trigger. */
.poem-fab{--fab-open-width:214px;--fab-open-height:204px;--fab-sx:12px;position:fixed;z-index:45;inset:auto;inset-inline-end:22px;inset-inline-start:auto;inset-block-end:76px;width:44px;height:44px;direction:rtl;transition:width 220ms cubic-bezier(.22,1,.36,1),height 220ms cubic-bezier(.22,1,.36,1)}
html[dir=rtl] .poem-fab{--fab-sx:-12px}
.poem-fab.open{width:var(--fab-open-width);height:var(--fab-open-height);transition-timing-function:cubic-bezier(.34,1.3,.64,1);transition-duration:300ms}
.poem-fab-menu{position:absolute;inset:auto;inset-inline-end:0;inset-inline-start:auto;inset-block-end:0;width:100%;height:100%;padding:12px 12px 54px;border-radius:22px;overflow:hidden;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);display:grid;gap:4px;opacity:1;transform:none;pointer-events:none;transition:border-radius 220ms cubic-bezier(.22,1,.36,1)}
.poem-fab.open .poem-fab-menu{border-radius:16px;pointer-events:auto;transition-duration:300ms;transition-timing-function:cubic-bezier(.34,1.3,.64,1)}
.poem-fab-menu>button,.poem-size-control{opacity:0;transform:translateX(var(--fab-sx));filter:blur(2px);pointer-events:none;transition:opacity 220ms cubic-bezier(.22,1,.36,1),transform 220ms cubic-bezier(.22,1,.36,1),filter 220ms cubic-bezier(.22,1,.36,1);transition-delay:0ms}
.poem-fab.open .poem-fab-menu>button,.poem-fab.open .poem-size-control{opacity:1;transform:translateX(0);filter:blur(0);pointer-events:auto;transition-duration:300ms;transition-timing-function:cubic-bezier(.34,1.3,.64,1);transition-delay:calc(var(--fab-index,0) * 40ms)}
.poem-fab-menu>button,.poem-size-control button{font-family:var(--font),Tahoma,sans-serif;text-align:start}
.poem-fab-toggle{position:absolute;z-index:2;inset:auto;inset-inline-end:0;inset-inline-start:auto;inset-block-end:0;width:44px;height:44px;border-radius:22px;display:grid;place-items:center;outline:0;transform:rotate(0deg);transition:transform 220ms cubic-bezier(.22,1,.36,1),border-radius 220ms cubic-bezier(.22,1,.36,1)}
.poem-fab.open .poem-fab-toggle{transform:rotate(135deg);border-radius:16px;transition-duration:300ms;transition-timing-function:cubic-bezier(.34,1.3,.64,1)}
.poem-fab-toggle:focus-visible,.poem-fab-menu button:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
article[data-poet]:focus-visible,article[data-book]:focus-visible,article[data-poem]:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
@media(max-width:600px){.poem-fab{inset-inline-end:14px;inset-block-end:76px;--fab-open-width:208px}}
@media(prefers-reduced-motion:reduce){.poem-fab,.poem-fab.open,.poem-fab-menu,.poem-fab.open .poem-fab-menu,.poem-fab-menu>button,.poem-size-control,.poem-fab.open .poem-fab-menu>button,.poem-fab.open .poem-size-control,.poem-fab-toggle,.poem-fab.open .poem-fab-toggle{transition-duration:1ms!important;transition-delay:0ms!important}}

/* Keep the page address and back control on one high utility row. */
.page:has(> .page-hero > .back-link){padding-block-start:28px}
.page-hero:has(> .back-link){position:relative;padding-block-start:32px}
.page-hero:has(> .back-link)> .back-link{position:absolute;inset-block-start:0;inset-inline-start:0;margin:0;z-index:2}
.page-hero:has(> .back-link)> .breadcrumbs{position:absolute;inset-block-start:0;inset-inline-end:0;margin:0;justify-content:flex-start;text-align:start}
.poem-shell{padding-block-start:25px}
 @media(max-width:600px){.page:has(> .page-hero > .back-link){padding-block-start:24px}.page-hero:has(> .back-link){padding-block-start:34px}.poem-shell{padding-block-start:25px}}

/* Final precedence fixes for RTL utility rows and the dark morph surface. */
.page-hero:has(> .back-link)> .back-link{inset-inline-start:auto;inset-inline-end:0}
.page-hero:has(> .back-link)> .breadcrumbs{inset-inline-start:0;inset-inline-end:auto;justify-content:flex-start;text-align:end}
.poem-fab-menu{background:#20231f;color:#f6f6f3;border-color:#20231f;opacity:0;visibility:hidden;transition:opacity 220ms cubic-bezier(.22,1,.36,1),visibility 220ms,border-radius 220ms cubic-bezier(.22,1,.36,1)}
.poem-fab.open .poem-fab-menu{opacity:1;visibility:visible}
.poem-fab-menu>button,.poem-size-control button{color:#f6f6f3}
.poem-fab-menu>button:hover,.poem-size-control button:hover{background:#ffffff18;color:#fff}
.poem-size-control{color:#f6f6f3aa;border-top-color:#ffffff26}
@media(max-width:600px){.couplet-heart{top:60px}.focus-mode .poem-shell{padding-block-start:5vh}}

 /* 0.1.0b3 interaction and focus refinements. */
#app{min-height:100svh;display:flex;flex-direction:column}
#app>main{flex:1}
.poem-topline .back-link{transform:translateY(-4px)}
.poem-tools [data-fav].saved{background:var(--red);border-color:var(--red);color:#fff}
.copy-button.copied{border-color:var(--green);color:var(--green);background:transparent}
.copy-button.copied .copy-label{color:var(--green)}
.poem-fab-menu{right:0;left:auto;background:var(--ink);color:var(--bg);border-color:var(--ink)}
.poem-fab-toggle{right:0!important;left:auto!important;bottom:0!important;background:var(--ink);color:var(--bg);border-color:var(--ink)}
.poem-fab-menu>button,.poem-size-control button{color:var(--bg)}
.poem-fab-menu>button:hover,.poem-size-control button:hover{background:var(--soft);color:var(--ink)}
.poem-size-control{color:var(--muted);border-top-color:var(--line)}
.footer{padding-bottom:12px}
.focus-mode .couplet-actions{display:none}
.focus-mode .poem-copy{min-height:calc(100svh - 190px);justify-content:center}
.focus-mode .couplet{min-height:54px;padding:12px 56px;border-top-color:transparent;background:transparent;filter:none}
.focus-mode .couplet.is-focus-active{min-height:0;padding:44px 56px;background:transparent!important;border:0;box-shadow:none}
.focus-mode .couplet.is-focus-active .couplet-no{right:8px;top:50%;transform:translateY(-50%)}
.focus-mode .couplet.is-focus-active .couplet-heart{right:auto;left:8px;top:50%;transform:translateY(-50%)}
@media(max-width:600px){.poem-topline .back-link{transform:translateY(-3px)}.footer{padding-bottom:calc(8px + env(safe-area-inset-bottom))}.focus-mode .poem-copy{min-height:calc(100svh - 170px)}.focus-mode .couplet{padding-inline:43px}.focus-mode .couplet.is-focus-active{padding:34px 43px}.focus-mode .couplet.is-focus-active .couplet-no{right:4px}.focus-mode .couplet.is-focus-active .couplet-heart{left:4px}}

.poem-fab-toggle,.poem-fab.open .poem-fab-toggle{transform:none!important}
 .poem-fab-toggle svg{transform:rotate(0);transition:transform 220ms cubic-bezier(.22,1,.36,1)}
 .poem-fab.open .poem-fab-toggle svg{transform:rotate(135deg)}

 /* 0.1.0b3 layout and interaction refinements. */
 #app{width:100%;min-height:100svh;display:flex;flex-direction:column}
 #app>.topbar,#app>main,#app>.footer{width:100%;flex:0 0 auto}
 #app>main{flex:1 0 auto;min-width:0}
 .topbar{width:100%;flex-shrink:0}
 .footer{width:100%;flex-shrink:0}
 .landing{padding-top:42px}
 .hero-actions{margin-top:20px;gap:10px}
 .hero-actions .button{min-height:48px;padding:13px 21px;font-size:12px;border-radius:12px}
 .hero-actions .button svg{width:18px;height:18px}
 .hero-actions .search-action{border-color:var(--orange);color:var(--orange);background:transparent}
  .hero-actions .search-action:hover{background:color-mix(in srgb,var(--orange) 10%,transparent)}
  .metrics{margin-top:28px}
 .section-wrap{margin-top:52px}
 .page{padding-top:24px}
 .page-hero:not(:has(> .back-link)){margin-bottom:26px}
 .page-hero:not(:has(> .back-link)) h1{margin-top:0}
 .page-hero:has(> .back-link){padding-top:28px}
 .title-tools{position:absolute;inset-block-start:28px;inset-inline-start:0}
 .page-hero:has(> .back-link) h1{margin-top:0}
 .poet-save-button.saved{background:var(--red);border-color:var(--red);color:#fff}
 .focus-button{position:relative;isolation:isolate}
 .focus-button svg{color:var(--gold);animation:focusGlow 2.2s ease-in-out infinite}
 @keyframes focusGlow{0%,100%{filter:drop-shadow(0 0 0 transparent)}50%{filter:drop-shadow(0 0 6px var(--gold))}}
 .poem-fab-menu{left:0!important;right:auto!important;background:var(--panel)!important;color:var(--ink)!important;border-color:var(--line)!important;backdrop-filter:blur(20px) saturate(125%);-webkit-backdrop-filter:blur(20px) saturate(125%)}
 .poem-fab-toggle{left:0!important;right:auto!important;background:var(--ink);color:var(--bg);border-color:var(--ink)}
 .poem-fab-menu>button,.poem-size-control button{color:var(--ink);font-size:12px;padding:10px}
 .poem-fab-menu>button:hover,.poem-size-control button:hover{background:var(--soft);color:var(--ink)}
 .poem-size-control{color:var(--muted);gap:8px}
 .poem-size-control button{width:36px;height:36px;border:1px solid var(--line);justify-content:center;font-size:16px}
 .poem-size-control button svg{width:18px;height:18px}
 .focus-controls button{min-width:112px;padding:11px 14px;font-size:12px}
  .focus-controls span{min-width:72px;font-size:11px}
  @media(max-width:600px){.landing{padding-top:34px}.hero-actions .button{min-height:46px;padding-inline:16px}.section-wrap{margin-top:42px}.page{padding-top:18px}.page-hero:has(> .back-link){padding-top:30px}.title-tools{inset-block-start:30px}.poem-fab-menu>button,.poem-size-control button{font-size:11px}.focus-controls button{min-width:0;flex:1;padding-inline:8px}.focus-controls span{min-width:50px}}

 /* 0.1.0b4 reading controls and metadata actions. */
 .poem-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:8px}
 .poem-tools .button{width:100%;min-width:0;padding-inline:7px;font-size:10px;white-space:nowrap}
 .poem-tools .button svg{width:15px;height:15px;flex:none}
 .poet-save-button.saved,.book-save-button.saved{background:var(--red);border-color:var(--red);color:#fff}
 .title-tools{display:none}
 .page:has(> .page-hero > .back-link){padding-block-start:14px}
 .page-hero:has(> .back-link){padding-block-start:32px}
 .page-hero:has(> .back-link)> .back-link,.page-hero:has(> .back-link)> .breadcrumbs{inset-block-start:-4px}
 .page-hero:has(> .back-link)> .back-link{height:36px;display:inline-flex;align-items:center;margin:0}
 .page-hero:has(> .back-link)> .breadcrumbs{height:36px;align-items:center;margin:0}
 .poem-shell{padding-block-start:12px}
 .poem-topline{min-height:36px;align-items:center;margin-bottom:22px}
 .poem-topline .back-link{height:36px;display:inline-flex;align-items:center;transform:none}
 .poem-topline .breadcrumbs{min-height:36px;align-items:center;margin:0}
 .focus-controls .focus-exit{width:40px;min-width:40px;height:40px;padding:0;display:grid;place-items:center}
 .focus-controls .focus-exit svg{width:18px;height:18px}
 .focus-controls [data-focus-prev],.focus-controls [data-focus-next]{min-width:148px}
 .focus-mode .couplet.is-focus-active .couplet-text{font-size:clamp(20px,calc(1.42rem * var(--scale)),82px);line-height:2.1}
 .poem-fab-toggle,.poem-fab.open .poem-fab-toggle{background:var(--panel)!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:var(--shadow)}
 .poem-fab-menu>button+button{border-top:1px solid var(--line);border-radius:0;padding-top:11px}
 .poem-size-control button{width:48px;min-width:48px;height:38px;border:1px solid var(--line);justify-content:center}
  @media(max-width:600px){.poem-tools{gap:5px}.poem-tools .button{padding-inline:3px;font-size:9px;gap:4px}.poem-tools .button svg{width:14px;height:14px}.page:has(> .page-hero > .back-link){padding-block-start:12px}.page-hero:has(> .back-link){padding-block-start:32px}.poem-shell{padding-block-start:10px}.focus-controls .focus-exit{width:38px;min-width:38px;flex:0 0 38px}.focus-controls [data-focus-prev],.focus-controls [data-focus-next]{min-width:0;flex:1}.focus-mode .couplet.is-focus-active .couplet-text{font-size:clamp(19px,calc(1.32rem * var(--scale)),72px)}}

/* 0.1.0b5 reading scale, language and account refinements. */
html[data-lang=en] body{direction:ltr;text-align:left}
html[data-lang=en] .poem-copy{direction:ltr;text-align:left}
html[data-lang=en] .poem-heading,html[data-lang=en] .page-hero{text-align:left}
.couplet-text{max-width:100%;overflow-wrap:anywhere}
.couplet-text p{white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere;word-break:normal}
.book-page .page-hero h1{margin-top:12px}
.account-grid{gap:8px;margin-bottom:22px}
.stat-card{min-height:72px;padding:11px 14px;display:flex;flex-direction:column;justify-content:center}
.stat-card strong{font-size:20px;line-height:1.1}
.stat-card span{font-size:10px;margin-top:6px}
.register-label{display:block;color:var(--muted);font-size:10px;text-align:start;margin-top:10px}
.register-field{margin-top:5px}
.scale-options{gap:7px}
.poem-size-control{font-size:12px}
.poem-fab.open .poem-fab-toggle{border-color:transparent!important}
.theme-dark-mode .poem-fab-toggle{border-color:#ffffff66}
.poem-fab-menu{border-color:var(--line)!important}
@media(max-width:600px){.mobile-nav{position:fixed!important;z-index:90;left:0;right:0;bottom:0;height:60px!important;padding:3px 8px env(safe-area-inset-bottom)}.page{padding-bottom:92px}.poem-fab{inset-block-end:64px}.account-grid{margin-bottom:18px}.stat-card{min-height:64px;padding:9px 10px}}

/* 0.1.0b7 search stability, typography and account refinements. */
.font-sections{display:grid;gap:13px;min-width:min(100%,560px)}
.font-section{display:grid;gap:7px;padding-top:10px;border-top:1px solid var(--line)}
.font-section:first-child{padding-top:0;border-top:0}
.font-section h4{margin:0;color:var(--muted);font-size:10px;font-weight:700}
.account-title-spacer{height:25px}
.consent-line{display:flex;align-items:flex-start;gap:8px;margin-top:14px;color:var(--muted);font-size:10px;line-height:1.8;text-align:start}
.consent-line input{width:16px;height:16px;accent-color:var(--green);flex:none;margin:1px 0 0}
.feedback-field{width:100%;margin-top:5px}
.footer-feedback{border:0;background:transparent;color:var(--green);font:inherit;font-size:9px;padding:0;cursor:pointer}
html.theme-dark-mode .glass{border-color:#3d5068;background:var(--panel)}
html.theme-dark-mode .button{box-shadow:0 7px 22px #0005}
html.theme-dark-mode .top-button,html.theme-dark-mode .back-link,html.theme-dark-mode .mobile-nav{border-color:#465a73}
body>.mobile-nav{position:fixed;z-index:90;inset-inline:0;inset-block-end:0}
@media(max-width:600px){body>.mobile-nav{height:60px!important;position:fixed!important}.font-sections{min-width:0}.account-title-spacer{height:20px}}

/* 0.1.0b7 themes, shine actions, clearable inputs and admin controls. */
button[data-random].button{position:relative;overflow:hidden;isolation:isolate}
button[data-random].button::after{content:"";position:absolute;z-index:1;inset:-80% auto -80% -35%;width:28%;background:linear-gradient(100deg,transparent,#ffffff99,transparent);transform:translateX(-190%) rotate(18deg);animation:buttonShine 3.8s ease-in-out infinite;pointer-events:none}
button[data-random].button>svg,button[data-random].button>span{position:relative;z-index:2}
button[data-random].icon-button{color:var(--gold);box-shadow:0 0 0 0 color-mix(in srgb,var(--gold) 0%,transparent);transition:color .2s,box-shadow .2s,transform .2s}
button[data-random].icon-button:hover{color:var(--gold);box-shadow:0 0 0 4px color-mix(in srgb,var(--gold) 14%,transparent);transform:translateY(-1px)}
button[data-random].icon-button svg{animation:shinePulse 2.8s ease-in-out infinite}
@keyframes buttonShine{0%,35%{transform:translateX(-190%) rotate(18deg)}65%,100%{transform:translateX(520%) rotate(18deg)}}
@keyframes shinePulse{0%,100%{filter:drop-shadow(0 0 0 transparent)}50%{filter:drop-shadow(0 0 5px var(--gold))}}
.archive-search,.input-with-clear{position:relative}
.input-with-clear{display:flex;align-items:center;width:100%}
.input-with-clear .field{width:100%;padding-inline-end:40px}
.input-with-clear textarea{padding-inline-end:40px}
.archive-search input{padding-inline-end:34px}
.input-clear{position:absolute;inset-inline-end:8px;top:50%;width:26px;height:26px;display:grid;place-items:center;transform:translateY(-50%);border:0;border-radius:50%;background:transparent;color:var(--muted);padding:0;opacity:.78}
.input-clear:hover{background:var(--soft);color:var(--ink);opacity:1}
.input-clear svg{width:14px;height:14px}
.textarea-with-clear{align-items:flex-start}
.textarea-with-clear .input-clear{top:20px}
.profile-field .input-with-clear{flex:1}
.admin-panel{max-width:800px;margin:34px auto 0;padding:20px;border-radius:18px}
.admin-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.admin-panel-head h2{font-size:21px;margin:4px 0 0}
.admin-panel-head .kicker{margin:0;color:var(--green)}
.admin-badge{border:1px solid var(--green);border-radius:999px;color:var(--green);font:700 9px/1 ui-monospace,monospace;letter-spacing:.12em;padding:7px 9px;direction:ltr}
.admin-copy{font-size:11px;line-height:1.9;color:var(--muted);margin:12px 0 16px}
.admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.admin-stat{border:1px solid var(--line);border-radius:12px;padding:13px 12px;background:color-mix(in srgb,var(--panel) 70%,transparent)}
.admin-stat strong{display:block;font-size:22px;line-height:1.1}
.admin-stat span{display:block;color:var(--muted);font-size:9px;margin-top:6px}
.admin-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.admin-actions .button{font-size:10px}
@media(prefers-reduced-motion:reduce){button[data-random].button::after,button[data-random].icon-button svg{animation:none}}
@media(max-width:600px){.admin-panel{padding:16px;margin-top:26px}.admin-grid{grid-template-columns:1fr 1fr}.admin-grid .admin-stat:last-child{grid-column:1/-1}.admin-actions{display:grid}.admin-actions .button{width:100%}}

/* Account authentication, user dashboard and admin workspace. */
.account-route.admin-route{color:var(--green)!important}
.auth-card{width:min(560px,100%);margin:0 auto;padding:22px;border-radius:22px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;border:1px solid var(--line);border-radius:13px;background:var(--soft);margin-bottom:22px}
.auth-tab{border:0;background:transparent;color:var(--muted);border-radius:9px;padding:11px 10px;font-size:11px}
.auth-tab.active{background:var(--ink);color:var(--bg);box-shadow:var(--shadow)}
.auth-form{display:grid;gap:8px}
.auth-form .field{width:100%}
.auth-submit{width:100%;margin-top:8px;min-height:44px}
.remember-line{display:flex;align-items:flex-start;gap:8px;color:var(--muted);font-size:10px;line-height:1.8;text-align:start;margin-top:5px}
.remember-line input{width:16px;height:16px;accent-color:var(--green);flex:none;margin:1px 0 0}
.sms-login{margin-top:24px;padding-top:18px;border-top:1px solid var(--line);opacity:.55}
.sms-login-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px}
.sms-login-head span{color:var(--orange);font-size:9px;border:1px solid color-mix(in srgb,var(--orange) 45%,var(--line));border-radius:999px;padding:4px 8px}
.sms-login-row{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:10px}
.sms-login-row .button{white-space:nowrap}
.sms-login p{color:var(--faint);font-size:9px;line-height:1.8;margin:8px 0 0}
.account-dashboard-hero .account-identity{display:inline-flex;margin-top:12px;border:1px solid var(--line);border-radius:999px;padding:6px 11px;color:var(--green);font:600 10px/1 ui-monospace,monospace;direction:ltr}
.account-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:980px;margin:0 auto 18px}
.account-card{padding:19px;border-radius:18px;display:flex;flex-direction:column;gap:15px}
.account-card .section-head{margin:0}
.account-card h2{font-size:17px;margin:0}
.account-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.account-form-grid label,.admin-user-fields label{display:grid;gap:6px;color:var(--muted);font-size:10px;text-align:start}
.account-form-grid .field{width:100%}
.card-copy{color:var(--muted);font-size:10px;line-height:1.9;margin:0}
.account-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:980px;margin:0 auto 10px}
.reading-card{max-width:980px;margin:0 auto 28px;padding:18px;border-radius:18px}
.reading-card .section-head{margin-bottom:14px}
.reading-card h2{font-size:18px;margin:0}
.reading-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:8px;height:150px;padding-top:8px}
.chart-day{display:grid;grid-template-rows:18px 1fr 18px;align-items:end;gap:5px;min-width:0;text-align:center}
.chart-value{font-size:9px;color:var(--green);font-variant-numeric:tabular-nums}
.chart-track{height:100%;display:flex;align-items:end;justify-content:center;background:var(--soft);border-radius:8px 8px 4px 4px;overflow:hidden}
.chart-track span{display:block;width:100%;min-height:8px;background:linear-gradient(180deg,var(--green),color-mix(in srgb,var(--green) 55%,var(--gold)));border-radius:8px 8px 3px 3px;transition:height .3s ease}
.chart-day small{color:var(--muted);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.saved-section,.history-section{max-width:980px;margin:0 auto}
.saved-section .section-head,.history-section .section-head{margin-bottom:13px}
.saved-section h2,.history-section h2{font-size:19px;margin:0}
.account-actions{max-width:980px;margin:24px auto 0;display:flex;justify-content:flex-end}
.admin-hero h1,.admin-hero .eyebrow{color:var(--green)}
.admin-dashboard{max-width:980px;margin:0 auto}
.admin-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:20px}
.admin-overview .admin-stat{padding:17px;border-radius:16px}
.admin-overview .admin-stat strong{font-size:28px;color:var(--green)}
.admin-section{margin-top:24px}
.admin-section>.section-head{margin-bottom:12px}
.admin-section h2{font-size:19px;margin:0}
.admin-users,.admin-feedback-list{display:grid;gap:8px}
.admin-user-row{padding:15px;border-radius:15px}
.admin-user-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.admin-user-heading strong{font-size:13px;direction:ltr;text-align:left}
.admin-user-heading small{color:var(--muted);font-size:9px}
.admin-user-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.admin-user-fields .field{width:100%;font-size:14px;padding:9px}
.admin-save-user{margin-top:12px;align-self:flex-start}
.admin-feedback-item{position:relative;padding:15px;border-radius:15px}
.admin-feedback-item>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.admin-feedback-item strong{color:var(--green);font-size:10px}
.admin-feedback-item small{color:var(--muted);font-size:9px}
.admin-feedback-item p{font-size:11px;line-height:1.9;margin:10px 0 2px;white-space:pre-wrap}
.feedback-status{color:var(--green);font-size:9px}
.feedback-status.queued{color:var(--orange)}
.admin-dashboard>.admin-actions{justify-content:flex-start;margin:26px 0 0}
button:disabled,.button:disabled{cursor:not-allowed;opacity:.6}
@media(max-width:700px){.account-dashboard-grid{grid-template-columns:1fr}.account-form-grid{grid-template-columns:1fr}.account-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-stats-grid .stat-card:last-child{grid-column:1/-1}.admin-overview{grid-template-columns:1fr 1fr}.admin-overview .admin-stat:last-child{grid-column:1/-1}.admin-user-fields{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.auth-card{padding:16px}.sms-login-row{grid-template-columns:1fr}.account-card{padding:15px}.admin-user-fields{grid-template-columns:1fr}.admin-user-heading{align-items:flex-start;flex-direction:column;gap:5px}.reading-chart{gap:4px}.chart-day small{font-size:8px}}
@media(prefers-reduced-motion:reduce){.chart-track span{transition:none}}

/* 0.3.1 admin control room. */
.admin-workspace{max-width:1180px;margin:0 auto;padding-bottom:32px}
.admin-workspace-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:10px 0 28px;border-bottom:1px solid var(--line)}
.admin-title-row{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.admin-title-row .eyebrow{margin:0;color:var(--green)}
.admin-live-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px color-mix(in srgb,var(--green) 12%,transparent)}
.admin-workspace-head h1{font-size:clamp(28px,4vw,46px);letter-spacing:-.045em;margin:0;color:var(--ink)}
.admin-workspace-head>div>p:last-child{max-width:580px;color:var(--muted);font-size:11px;line-height:1.9;margin:10px 0 0}
.admin-badge{white-space:nowrap}
.admin-head-actions{display:flex;align-items:center;gap:8px;flex:none}
.admin-head-actions .button{white-space:nowrap}
.admin-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:18px 0}
.admin-kpi{position:relative;overflow:hidden;padding:17px 16px 15px;border-radius:18px;background:linear-gradient(145deg,color-mix(in srgb,var(--panel) 92%,var(--green) 8%),var(--panel))}
.admin-kpi::after{content:"";position:absolute;inset:auto -16px -22px auto;width:72px;height:72px;border:1px solid color-mix(in srgb,var(--green) 22%,transparent);border-radius:50%}
.admin-kpi strong{display:block;color:var(--green);font-size:29px;line-height:1;font-variant-numeric:tabular-nums}
.admin-kpi span{display:block;margin-top:10px;font-size:11px;font-weight:700}
.admin-kpi small{display:block;margin-top:5px;color:var(--muted);font-size:9px}
.admin-workspace-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.7fr);gap:12px;align-items:start}
.admin-panel-section{min-width:0;padding:18px;border:1px solid var(--line);border-radius:20px;background:color-mix(in srgb,var(--panel) 88%,transparent);box-shadow:var(--shadow)}
.admin-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.admin-section-head .eyebrow{margin:0 0 4px;color:var(--green)}
.admin-section-head h2{font-size:18px;letter-spacing:-.02em;margin:0}
.admin-count{display:grid;place-items:center;min-width:34px;height:34px;border-radius:11px;background:var(--soft);color:var(--green);font-weight:700;font-size:12px}
.admin-user-list{display:grid;gap:10px}
.admin-user-card{padding:15px;border-radius:16px;background:var(--soft)}
.admin-user-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.admin-user-identity{display:flex;align-items:center;gap:10px;min-width:0}
.admin-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--green);color:var(--bg);font-size:15px;font-weight:800}
.admin-user-identity strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.admin-user-identity small{display:block;margin-top:3px;color:var(--muted);font:10px/1.2 ui-monospace,monospace}
.admin-status{display:inline-flex;align-items:center;gap:6px;flex:none;color:var(--muted);font-size:9px}
.admin-status i{width:6px;height:6px;border-radius:50%;background:var(--faint)}
.admin-status.is-online{color:var(--green)}
.admin-status.is-online i{background:var(--green);box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 14%,transparent)}
.admin-user-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin:13px 0;color:var(--muted);font-size:9px}
.admin-user-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.admin-user-fields label{display:grid;gap:6px;color:var(--muted);font-size:9px;text-align:start}
.admin-user-fields .field{width:100%;min-width:0;padding:9px 10px;font-size:12px;background:var(--panel)}
.admin-user-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.admin-user-card-foot>span{color:var(--faint);font-size:9px}
.admin-save-user{padding:8px 12px;font-size:10px}
.admin-side-stack{display:grid;gap:12px}
.admin-inbox .admin-section-head{align-items:flex-start}
.text-button{border:0;background:transparent;color:var(--green);font:inherit;font-size:9px;cursor:pointer;padding:4px 0}
.admin-feedback-list{display:grid;gap:8px}
.admin-feedback-card{padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
.admin-feedback-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}
.admin-feedback-meta time{color:var(--muted);font-size:9px}
.admin-feedback-card p{margin:9px 0 6px;font-size:11px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}
.admin-feedback-card small{color:var(--muted);font-size:9px}
.admin-queue-button{width:100%;margin-top:12px;font-size:10px}
.admin-note{background:linear-gradient(145deg,color-mix(in srgb,var(--green) 9%,var(--panel)),var(--panel))}
.admin-note .eyebrow{margin:0 0 5px;color:var(--green)}
.admin-note h2{font-size:16px;margin:0}
.admin-note p{color:var(--muted);font-size:10px;line-height:1.9;margin:8px 0 0}
.admin-empty{padding:22px 10px}
@media(max-width:900px){.admin-workspace-grid{grid-template-columns:1fr}.admin-side-stack{grid-template-columns:1fr 1fr}.admin-user-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.admin-workspace-head{align-items:stretch;flex-direction:column;padding-bottom:20px}.admin-head-actions{display:grid;grid-template-columns:1fr 1fr}.admin-head-actions .button{width:100%}.admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-kpi{padding:14px}.admin-kpi strong{font-size:24px}.admin-side-stack{grid-template-columns:1fr}.admin-panel-section{padding:14px}.admin-user-card-head{align-items:flex-start;flex-direction:column}.admin-status{margin-inline-start:46px}.admin-user-fields{grid-template-columns:1fr}.admin-user-card-foot{align-items:flex-start;flex-direction:column}.admin-save-user{width:100%}}

/* 0.3.1 app-like shell, content hierarchy and system-aware splash. */
html,body,#app,button,a,input,textarea,select{touch-action:manipulation}
html{-webkit-tap-highlight-color:transparent}
 .splash-screen{position:fixed;z-index:200;inset:0;display:grid;place-items:center;background:var(--bg);color:var(--ink);padding:env(safe-area-inset-top) 24px env(safe-area-inset-bottom);opacity:1;visibility:visible;transition:opacity 360ms cubic-bezier(.22,1,.36,1),visibility 360ms,transform 360ms cubic-bezier(.22,1,.36,1)}
.splash-screen.is-leaving{opacity:0;visibility:hidden;transform:scale(1.035);pointer-events:none}
.splash-lockup{display:grid;justify-items:center;gap:13px;animation:splash-arrive 650ms cubic-bezier(.22,1,.36,1) both}
.splash-lockup img{width:82px;height:82px;border-radius:23px;box-shadow:0 18px 50px color-mix(in srgb,var(--ink) 18%,transparent)}
.splash-lockup strong{font-size:26px;letter-spacing:-1px}
@keyframes splash-arrive{from{opacity:0;transform:translateY(10px) scale(.94)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important;transition-delay:0ms!important}}
.hero-title span:nth-child(2){color:var(--muted);font-size:.34em;letter-spacing:-.4px;line-height:1.7;max-width:720px;margin:7px auto 0}
.hero-title span:nth-child(n+3){display:none}
.poet-card h3{font-size:23px}
.result-card{padding:12px;gap:6px}
.result-card h3{font-size:14px;margin:6px 0 2px}
.result-excerpt{font-size:9px;line-height:1.7;padding-top:4px}
.section-card{min-height:60px;padding:12px 40px 12px 32px}
.section-card .go{top:18px}
@media(max-width:600px){.hero-title span:nth-child(2){font-size:.4em;line-height:1.8}.poet-card h3{font-size:18px}.result-card{padding:10px}.result-card h3{font-size:13px}.section-card{min-height:58px;padding-block:11px}}
@media(prefers-reduced-motion:reduce){.splash-screen,.splash-lockup{transition-duration:1ms;animation:none}}

/* 0.4.1 visual refresh. */
html,body{overflow-x:hidden}
#app{overflow-x:clip}
.landing{padding-top:58px}
.hero{max-width:760px}
.hero-lead{max-width:520px;margin:0 auto;color:var(--muted);font-size:16px;line-height:1.8;font-weight:500}
.hero-actions{margin-top:28px;gap:11px}
.hero-actions .button{min-height:54px;padding:15px 25px;border-radius:14px;font-size:13px}
.hero-actions .button svg{width:19px;height:19px}
.hero-actions .search-action{border-color:var(--orange);color:var(--orange);background:transparent}
.metrics.metrics-compact{width:min(390px,100%);margin-top:25px;border:0;border-radius:16px;gap:8px;overflow:visible}
.metrics-compact .metric{padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:var(--shadow)}
.metrics-compact .metric:last-child{border-left:1px solid var(--line)}
.metrics-compact .metric strong{font-size:21px;line-height:1.1}
.metrics-compact .metric span{font-size:10px;margin-top:5px;display:block}
.section-wrap{margin-top:64px}
.section-head h2{font-size:25px}
.poet-grid{gap:14px}
.poet-card{height:148px;min-height:148px;padding:18px 20px;border-radius:18px}
.poet-card:after{display:none}
.poet-card h3{font-size:23px;margin:16px 0 0;max-width:60%;line-height:1.45}
.poet-card .poet-count{position:absolute;right:20px;bottom:20px;font-size:10px;color:var(--muted)}
.poet-card-actions{left:16px;top:15px}
.poet-card-actions .icon-button{width:32px;height:32px;border-radius:10px;color:var(--gold)}
.poet-sketch{left:auto;right:18px;bottom:14px;width:86px;height:86px;color:var(--green);opacity:.7}
.poet-card:hover .poet-sketch{transform:translate(3px,-4px) rotate(2deg)}
.collection-grid{gap:12px}
.collection-card{height:132px;min-height:132px;padding:16px 18px;border-radius:15px}
.collection-card:after{display:none}
.collection-card h3{max-width:78%;margin:20px 0 0;font-size:17px;line-height:1.55}
.collection-card .book-count{right:18px;bottom:17px;font-size:9px}
.collection-info{left:auto;right:16px;top:14px;width:28px;height:28px}
.collection-sketch{left:16px;bottom:13px;width:70px;height:60px;opacity:.55}
.poet-about,.book-about{max-width:860px;text-align:start;font-size:12px;line-height:2.1;margin-top:20px}
.book-about{margin-bottom:32px}
.poem-nav button{direction:inherit}
#toast{top:max(16px,env(safe-area-inset-top));bottom:auto;padding:9px 14px;border:1px solid color-mix(in srgb,var(--ink) 18%,transparent);box-shadow:0 12px 28px #20231f18;font-size:11px;z-index:120}
.account-hero{display:flex;align-items:end;justify-content:space-between;gap:20px;text-align:start;max-width:980px}
.account-hero>div{min-width:0}
.account-hero .account-identity{margin:0 0 6px;flex:none}
.account-hero p:not(.eyebrow){font-size:11px;line-height:1.8}
.account-dashboard-grid{margin-top:10px}
.account-card{padding:22px;border-radius:20px;box-shadow:var(--shadow)}
.account-card .section-head{align-items:center}
.account-card-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--soft);color:var(--green)}
.account-card-mark svg{width:19px;height:19px}
.account-card .button{align-self:flex-start;min-width:130px}
.account-actions{padding-top:4px}
.security-card{background:color-mix(in srgb,var(--panel) 82%,var(--soft))}
.share-choice-grid,.share-format-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}
.share-choice,.share-format-option{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:14px;padding:14px;text-align:start;display:grid;gap:5px;transition:.2s}
.share-choice:hover,.share-format-option:hover,.share-choice.selected,.share-format-option.selected{border-color:var(--green);background:color-mix(in srgb,var(--soft) 75%,var(--green) 8%)}
.share-choice>span{color:var(--green);display:grid;place-items:start}.share-choice svg{width:20px;height:20px}
.share-choice strong,.share-format-option strong{font-size:12px}.share-choice small,.share-format-option small{color:var(--muted);font-size:9px;line-height:1.6}
.share-step-label{font-size:10px!important;color:var(--ink)!important;font-weight:700;margin:20px 0 8px!important}
.share-couplet-picker{max-height:250px;overflow:auto;border:1px solid var(--line);border-radius:13px;padding:5px}
.share-couplet-option{width:100%;display:grid;grid-template-columns:28px 1fr 18px;gap:8px;align-items:start;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);padding:10px;text-align:start;font-size:11px;line-height:1.7}
.share-couplet-option:last-child{border-bottom:0}.share-couplet-option>span:first-child{color:var(--gold);font-size:10px}.share-couplet-option>svg{width:16px;color:var(--green)}
.share-couplet-option.selected{background:var(--soft)}
html[data-lang=en] body{text-align:left;direction:ltr}
html[data-lang=en] .hero,html[data-lang=en] .section-head,html[data-lang=en] .page-hero{text-align:left}
html[data-lang=en] .hero-lead{margin-left:0;margin-right:0}
html[data-lang=en] .hero-actions,html[data-lang=en] .metrics-compact{justify-content:flex-start;margin-left:0;margin-right:0}
html[data-lang=en] .metrics-compact .metric:last-child{border-left:1px solid var(--line)}
html[data-lang=en] .poet-card-actions{left:auto;right:16px}
html[data-lang=en] .poet-card .poet-count{right:auto;left:20px}
html[data-lang=en] .poet-sketch{left:auto;right:18px}
html[data-lang=en] .collection-info{left:16px;right:auto}
html[data-lang=en] .collection-card .book-count{right:auto;left:18px}
html[data-lang=en] .collection-sketch{left:auto;right:16px}
html[data-lang=en] .page:has(> .page-hero > .back-link) .page-hero>.back-link{left:0;right:auto}
html[data-lang=en] .page:has(> .page-hero > .back-link) .page-hero>.breadcrumbs{left:auto;right:0;text-align:right}
html[data-lang=en] .poem-copy{direction:rtl;text-align:right}
html[data-lang=en] .couplet-text{direction:rtl;text-align:center}
html[data-lang=en] .search-hit-couplet{direction:rtl;text-align:right}
html[data-lang=en] .search-hit-address,html[data-lang=en] .result-meta,html[data-lang=en] .result-book{direction:ltr;text-align:left}
html[data-lang=en] .section-card{padding-left:44px;padding-right:36px}
html[data-lang=en] .section-no{right:auto;left:15px}
html[data-lang=en] .section-card .go{left:auto;right:14px}
html[data-lang=en] .poem-topline .breadcrumbs{direction:ltr}
html[data-lang=en] .poem-fab{inset-inline-end:22px;inset-inline-start:auto;direction:ltr}
html[data-lang=en] .poem-fab-menu{left:auto!important;right:0!important;transform-origin:bottom right}
html[data-lang=en] .poem-fab-toggle{left:auto!important;right:0!important}
html[data-lang=en] .mobile-nav .nav-slider{right:auto;left:calc(var(--nav-index) * 25% + 7px)}
html[data-lang=en] .mobile-nav{direction:ltr}
html[data-lang=en] .share-couplet-option{direction:ltr;text-align:left}
html[data-lang=en] .share-couplet-option>span:nth-child(2){direction:rtl;text-align:right}
@media(max-width:700px){.account-hero{display:block}.account-hero .account-identity{margin-top:14px}.share-choice-grid,.share-format-grid{grid-template-columns:1fr}.poet-card{height:138px;min-height:138px}.poet-card h3{font-size:19px}.poet-sketch{width:76px;height:76px}.collection-card{height:122px;min-height:122px}}
@media(max-width:600px){.landing{padding-top:42px}.hero-lead{font-size:14px}.hero-actions .button{min-height:52px;padding-inline:18px}.metrics.metrics-compact{max-width:100%;margin-top:21px}.metrics-compact .metric strong{font-size:18px}.section-wrap{margin-top:48px}.poet-card{padding:14px 13px}.poet-card-actions{left:10px;top:10px}.poet-card-actions .icon-button{width:27px;height:27px}.poet-card .poet-count{right:13px;bottom:13px}.poet-sketch{right:9px;bottom:8px;width:66px;height:66px}.collection-info{right:11px;top:10px}.collection-sketch{left:10px;bottom:9px;width:61px;height:52px}.collection-card h3{font-size:15px}.collection-card .book-count{right:12px;bottom:12px}.poet-about,.book-about{font-size:11px;line-height:1.9}.modal{padding:23px 17px}.share-couplet-picker{max-height:210px}}

/* 0.4.2 UI/UX audit fixes. */
.topbar{position:sticky;top:0;z-index:40;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.hero-title{display:block;margin:0 0 10px;font-size:clamp(32px,5vw,58px);line-height:1.2;letter-spacing:-2.5px}
.hero-title span{display:block;color:var(--ink);font-size:1em;margin:0}
.search-empty-state{min-height:190px;margin-top:18px;border:1px dashed var(--line);border-radius:16px;background:color-mix(in srgb,var(--panel) 72%,transparent);padding:24px;line-height:1.9}
:where(button,a,input,textarea,select,[tabindex]):focus-visible{outline:3px solid color-mix(in srgb,var(--focus) 72%,var(--gold));outline-offset:3px}
.top-button{min-width:40px;min-height:40px}
.icon-button{min-width:36px;min-height:36px}
@media(max-width:600px){.hero-title{font-size:clamp(30px,8.8vw,42px);letter-spacing:-1.4px}.poet-card-actions .icon-button{width:32px;height:32px}.mobile-nav button{min-height:48px}}

/* 0.5.0 product polish. */
#app{zoom:1}
.section-divider{height:1px;margin:0 0 22px;background:linear-gradient(90deg,transparent,var(--line),transparent);opacity:.72}
.poets-section .section-head{align-items:center;margin-bottom:13px}
.poets-section .text-link{padding:5px 0;color:var(--green)}
.poet-card h3{max-width:62%;text-align:start}
html[dir=rtl] .poet-card .poet-sketch{left:18px;right:auto}
html[dir=rtl] .poet-card-actions{left:16px;right:auto}
html[dir=ltr] .poet-card .poet-sketch{right:18px;left:auto}
.poet-count{right:20px}
html[dir=ltr] .poet-card .poet-count{right:auto;left:20px}
.search-empty-state{display:grid;place-items:center;gap:9px;text-align:center}
.search-empty-state p{margin:0;font-size:14px;color:var(--muted)}
.search-empty-glyph{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:14px;color:var(--gold);background:var(--panel)}
.search-empty-glyph svg{width:20px;height:20px}
.setting-card,.account-setting-card{padding:13px 15px;gap:14px}
.setting-card h3,.account-setting-card h3{font-size:12px;margin-bottom:3px}
.setting-card p,.account-setting-card p{font-size:9px}
.setting-help p{color:var(--muted)}
.version-slogan{color:var(--green);font-weight:700}
.collection-card{height:116px;min-height:116px}
.collection-card h3{margin-top:14px}
html[dir=rtl] .collection-info{left:16px;right:auto}
html[dir=ltr] .collection-info{right:16px;left:auto}
.section-card{min-height:52px;padding-block:10px}
.poet-about,.book-about,.poem-shell>.context-card{display:none}
.modal{width:min(480px,100%);padding:20px}
.modal h2{font-size:18px;margin-bottom:10px}
.share-choice-grid,.share-format-grid{margin-top:11px;gap:6px}
.share-choice,.share-format-option{padding:10px;border-radius:11px;gap:3px}
.share-choice strong,.share-format-option strong{font-size:11px}
.share-step-label{margin:13px 0 6px!important}
.share-couplet-picker{max-height:180px}
.share-couplet-option{padding:7px 8px;font-size:10px}
.account-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;max-width:980px;margin:0 auto 18px;padding:4px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
.account-tab{border:0;border-radius:10px;padding:10px 8px;background:transparent;color:var(--muted);font-size:10px;white-space:nowrap}
.account-tab.active{background:var(--ink);color:var(--bg);box-shadow:var(--shadow)}
.account-tab-panel{max-width:980px;margin:auto}
.dashboard-columns,.library-v5-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 auto 22px}
.dashboard-columns>section,.library-v5-grid>section{min-width:0}
.dashboard-list{display:grid;gap:7px}
.dashboard-list-item,.offline-item,.note-item{padding:11px 13px;border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.dashboard-list-item strong,.offline-item strong,.note-item strong{display:block;font-size:11px}
.dashboard-list-item small,.offline-item small,.note-item small{display:block;color:var(--muted);font-size:9px;margin-top:4px}
.dashboard-list-item>span:last-child,.activity-item small{color:var(--muted)}
.activity-card{padding:16px;border-radius:16px;margin-bottom:20px}
.activity-list{display:grid;gap:8px}
.activity-item{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:10px}
.activity-item:last-child{border-bottom:0}
.library-v5-grid{margin-top:16px}
.library-v5-grid .section-head{margin-bottom:10px}
.note-list,.offline-list{display:grid;gap:7px}
.note-item{display:grid;justify-content:stretch;gap:3px}
.note-item strong{line-height:1.8;color:var(--ink)}
.offline-item .button{padding:7px 9px;font-size:9px;white-space:nowrap}
.offline-candidates{margin-top:15px;padding-top:12px;border-top:1px solid var(--line)}
.offline-candidates>p{font-size:10px;color:var(--muted);margin:0 0 7px}
.offline-empty{min-height:80px}
.account-settings-grid{display:grid;gap:9px}
.account-setting-card{display:flex;align-items:center;justify-content:space-between;border-radius:14px}
.account-setting-card .font-sections{min-width:min(100%,520px)}
html[data-text-scale=smaller] .account-tab,html[data-text-scale=smaller] .setting-options button{font-size:9px}
html[data-text-scale=larger] .account-tab,html[data-text-scale=larger] .setting-options button{font-size:12px}
@media(max-width:700px){.account-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-columns,.library-v5-grid{grid-template-columns:1fr}.account-setting-card{display:block}.account-setting-card .setting-options,.account-setting-card .font-sections{margin-top:10px}.collection-card{height:108px;min-height:108px}}
@media(max-width:600px){.metrics.metrics-compact{width:min(320px,calc(100% - 28px));margin-inline:auto}.section-divider{margin-bottom:17px}.poet-card h3{max-width:61%}.poet-card .poet-count{right:13px}.collection-info{top:9px}.collection-card h3{margin-top:11px}.section-card{min-height:50px}.modal{padding:18px 15px}.share-couplet-picker{max-height:160px}.account-tab{font-size:9px;padding-inline:5px}.dashboard-list-item,.offline-item,.note-item{padding:10px}.account-setting-card{padding:12px}}
html[data-lang=en] .version-slogan{color:var(--gold)}

/* 0.5.1 home cards and share modal. */
.landing{padding-top:22px}
.hero-title{margin-bottom:2px}
.hero-lead{line-height:1.45}
.hero-actions{margin-top:20px}
.metrics.metrics-compact{width:min(360px,100%);margin-top:17px;gap:7px}
.metrics-compact .metric{height:54px;min-height:54px;padding:8px 11px;display:flex;align-items:center;justify-content:center;gap:6px}
.metrics-compact .metric strong{font-size:18px;line-height:1}
.metrics-compact .metric span{font-size:9px;margin:0;line-height:1.2}
.poets-section .section-head{justify-content:flex-start}
.poets-section .section-head>div{flex:1}
.poets-section .section-head h2{text-align:right}
html[data-lang=en] .poets-section .section-head h2{text-align:left}

.poet-card{height:126px;min-height:126px;padding:15px 17px;background:linear-gradient(145deg,var(--panel),color-mix(in srgb,var(--panel) 78%,var(--soft)))}
.poet-card:after,.poet-sketch{display:none}
.poet-card-top{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between}
.poet-card-index{color:var(--gold);font:600 10px/1 ui-monospace,monospace;direction:ltr}
.poet-random-button{width:28px;height:28px;min-width:28px;min-height:28px;padding:0;border-radius:9px;color:var(--gold)}
.poet-random-button svg{width:14px;height:14px}
.poet-card-copy{position:relative;z-index:2;margin-top:15px;text-align:right}
.poet-card h3{max-width:75%;margin:0;font-size:21px;line-height:1.35;text-align:right}
.poet-card .poet-count{position:static;display:block;margin-top:7px;font-size:9px}
.poet-mark{position:absolute;z-index:1;left:18px;bottom:15px;display:grid;place-items:center;width:46px;height:46px;border:1px solid color-mix(in srgb,var(--green) 45%,var(--line));border-radius:16px 16px 16px 5px;background:color-mix(in srgb,var(--green) 9%,var(--panel));color:var(--green);font-size:24px;line-height:1;transform:rotate(-8deg)}
.poet-mark:after{content:"";position:absolute;inset:6px;border:1px solid color-mix(in srgb,var(--green) 25%,transparent);border-radius:11px 11px 11px 3px}
html[data-lang=en] .poet-card-copy{text-align:left}
html[data-lang=en] .poet-card h3{text-align:left}
html[data-lang=en] .poet-card .poet-count{right:auto;left:auto}
html[data-lang=en] .poet-mark{left:auto;right:18px;transform:rotate(8deg)}

.collection-card{height:108px;min-height:108px;padding:14px 16px;background:linear-gradient(145deg,var(--panel),color-mix(in srgb,var(--panel) 78%,var(--soft)))}
.collection-card:after,.collection-sketch{display:none}
.collection-card-top{position:relative;z-index:2;display:flex;align-items:center;gap:7px;color:var(--muted)}
.collection-card-index{color:var(--gold);font:600 9px/1 ui-monospace,monospace;direction:ltr}
.collection-type{font-size:9px}
.collection-card h3{max-width:76%;margin:11px 0 0;font-size:16px;line-height:1.45}
.collection-card .book-count{right:16px;bottom:14px;font-size:9px}
.collection-info{z-index:4;top:11px;width:28px;height:28px;min-width:28px;min-height:28px;border-radius:9px}
.collection-info svg{width:13px;height:13px}
.collection-mark{position:absolute;z-index:1;left:15px;bottom:13px;display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:color-mix(in srgb,var(--gold) 12%,var(--panel));color:var(--gold)}
.collection-mark svg{width:18px;height:18px}
html[data-lang=en] .collection-card .book-count{right:auto;left:16px}
html[data-lang=en] .collection-mark{left:auto;right:15px}

html.modal-open,html.modal-open body{overflow:hidden}
.modal-backdrop{z-index:200;overflow:hidden;isolation:isolate;overscroll-behavior:contain;padding:14px}
.modal{width:min(520px,calc(100vw - 28px));max-height:calc(100svh - 28px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.share-modal{display:grid;gap:0}
.share-modal h2{padding-inline-end:26px;margin-bottom:6px}
.share-modal>p:not(.eyebrow){font-size:11px;line-height:1.65}
.share-modal .share-choice-grid,.share-modal .share-format-grid{gap:7px;margin-top:9px}
.share-modal .share-choice{min-height:68px;grid-template-columns:25px 1fr;align-items:center;padding:9px 10px;border-radius:11px}
.share-modal .share-choice>span{grid-column:1;grid-row:1 / span 2;align-self:center}
.share-modal .share-choice>span svg{width:17px;height:17px}
.share-modal .share-choice strong{grid-column:2;grid-row:1;font-size:11px}
.share-modal .share-choice small{grid-column:2;grid-row:2;font-size:8px;line-height:1.45}
.share-modal .share-step-label{margin:11px 0 5px!important;font-size:9px!important}
.share-modal .share-couplet-picker{max-height:min(250px,35svh);min-height:0;padding:3px;border-radius:11px;overscroll-behavior:contain}
.share-modal .share-couplet-option{grid-template-columns:25px minmax(0,1fr) 16px;gap:6px;padding:7px 8px;font-size:9px;line-height:1.5}
.share-modal .share-couplet-option>span:nth-child(2){min-width:0;max-height:2.9em;overflow:hidden;overflow-wrap:anywhere}
.share-modal .share-format-option{min-height:45px;padding:8px 10px;border-radius:10px}
.share-modal .share-format-option strong{font-size:10px}
.share-modal .share-format-option small{font-size:8px}
.share-modal .modal-actions{position:sticky;bottom:0;margin:10px 0 0;padding-top:9px;background:var(--panel);border-top:1px solid var(--line)}
html[data-lang=en] .collection-info{left:auto;right:16px}
html[data-lang=en] .poet-card-top{direction:ltr}
@media(max-width:600px){.landing{padding-top:20px}.hero-lead{line-height:1.4}.hero-actions{margin-top:16px}.metrics.metrics-compact{width:min(330px,calc(100% - 24px));margin-top:14px}.metrics-compact .metric{height:50px;min-height:50px}.poet-card{height:116px;min-height:116px;padding:13px 12px}.poet-card-copy{margin-top:12px}.poet-card h3{font-size:17px}.poet-card .poet-count{margin-top:5px}.poet-random-button{width:26px;height:26px;min-width:26px;min-height:26px}.poet-mark{left:12px;bottom:12px;width:40px;height:40px;font-size:20px}.poet-mark:after{inset:5px}.poet-card .poet-card-index{font-size:9px}.collection-card{height:98px;min-height:98px;padding:12px}.collection-card h3{font-size:14px;margin-top:8px}.collection-card .book-count{right:12px;bottom:11px}.collection-info{top:9px}.collection-mark{left:11px;bottom:10px;width:30px;height:30px}.collection-mark svg{width:15px;height:15px}.modal-backdrop{padding:10px}.modal{width:min(520px,calc(100vw - 20px));max-height:calc(100svh - 20px);padding:16px 14px}.share-modal .share-choice-grid{grid-template-columns:1fr 1fr}.share-modal .share-choice{min-height:62px;padding:8px}.share-modal .share-couplet-picker{max-height:32svh}}

/* 0.5.1 reference alignment. */
.hero .hero-title{font-size:clamp(16px,2vw,22px);line-height:1.8;letter-spacing:-.2px;margin:0 auto;color:var(--muted);font-weight:500;max-width:560px}
.hero-actions{margin-top:18px}
.metrics.metrics-compact{width:min(390px,calc(100% - 28px));margin-top:18px}
.metrics-compact .metric{height:54px;min-height:54px;padding:8px 12px}
.metrics-compact .metric strong{font-size:18px}
.metrics-compact .metric span{font-size:9px}
.poet-card{height:148px;min-height:148px;padding:17px 19px}
.poet-card-top{position:relative;z-index:3;display:block;height:0}
.poet-random-button{position:absolute;left:0;top:0;width:32px;height:32px;min-width:32px;min-height:32px;color:var(--gold)}
.poet-card-copy{margin-top:14px}
.poet-card h3{max-width:82%;margin:0;font-size:22px;line-height:1.4}
.poet-card .poet-count{position:absolute;right:19px;bottom:16px;margin:0;font-size:9px}
.collection-card{height:108px;min-height:108px;padding:14px 16px}
.collection-card-top{height:18px}
.collection-card h3{margin-top:8px}
.collection-mark,.collection-card-index{display:none}
html[data-lang=en] .poet-random-button{left:auto;right:0}
html[data-lang=en] .poet-card h3{max-width:82%}
@media(max-width:600px){
  .landing{padding-top:24px}
  .hero .hero-title{font-size:16px;letter-spacing:0;line-height:1.8}
  .hero-actions{margin-top:15px}
  .metrics.metrics-compact{width:min(390px,calc(100% - 28px));margin-top:14px}
  .metrics-compact .metric{height:50px;min-height:50px}
  .poet-card{height:138px;min-height:138px;padding:14px 14px}
  .poet-random-button{left:0;top:0;width:29px;height:29px;min-width:29px;min-height:29px}
  .poet-card-copy{margin-top:11px}
  .poet-card h3{font-size:18px;max-width:82%}
  .poet-card .poet-count{right:13px;bottom:13px;margin:0;font-size:8px}
  .collection-card{height:98px;min-height:98px;padding:12px}
  .collection-card h3{margin-top:5px;font-size:14px}
  .collection-card .book-count{right:12px;bottom:11px}
}

/* Keep the counters in the same compact column as the action buttons. */
.hero-actions{width:fit-content;max-width:100%;margin-inline:auto;gap:7px}
.hero-actions .button{width:119px;min-width:119px}
.metrics.metrics-compact{width:fit-content;max-width:100%;margin-inline:auto;gap:7px}
.metrics-compact .metric{flex:0 0 119px;width:119px;height:50px;min-height:50px;padding:8px 9px}
.metrics-compact .metric strong{font-size:17px}
.metrics-compact .metric span{font-size:9px}
html[data-lang=en] .poet-card .poet-count{right:auto;left:19px}
@media(min-width:601px){
  .hero-actions .button{min-width:150px}
  .metrics-compact .metric{flex-basis:150px;width:150px}
}

/* Final home density and first-paint type corrections. */
.hero .hero-title{margin:0 auto 10px}
.hero-actions{margin-top:0}
.poet-card{height:132px;min-height:132px;padding:15px 17px}
.poet-card-copy{margin-top:16px}
.poet-card h3{font-size:23px}
.poet-card .poet-count{bottom:14px;font-size:10px}
@media(max-width:600px){
  .hero .hero-title{margin-bottom:8px}
  .poet-card{height:122px;min-height:122px;padding:13px 13px}
  .poet-card-copy{margin-top:14px}
  .poet-card h3{font-size:19px}
  .poet-card .poet-count{right:12px;bottom:11px;font-size:9px}
}

/* Final proportion pass for the compact home controls and poet cards. */
.hero .hero-title{margin-bottom:18px}
.hero-actions .button{width:140px;min-width:140px;height:50px;min-height:50px;padding-inline:9px;font-size:12px}
.metrics.metrics-compact{margin-top:10px!important}
.metrics-compact .metric{flex-basis:140px;width:140px;height:46px;min-height:46px;padding:6px 8px}
.metrics-compact .metric strong{font-size:15px}
.metrics-compact .metric span{font-size:8px}
.poet-card{height:104px!important;min-height:104px!important;padding:12px 16px;display:flex!important;align-items:center!important}
.poet-card-top{position:absolute!important;inset:0!important;z-index:3;height:0!important}
.poet-card-copy{position:relative!important;top:auto!important;right:auto!important;left:auto!important;z-index:2;width:100%;margin:0;text-align:right;transform:none!important}
.poet-card h3{max-width:100%;font-size:21px;line-height:1.3}
.poet-card .poet-count{position:static!important;display:block;margin-top:4px;font-size:11px}
html[data-lang=en] .poet-card-copy{text-align:left}
@media(max-width:600px){
  .hero .hero-title{margin-bottom:16px}
  .hero-actions .button{width:111px;min-width:111px;height:48px;min-height:48px;font-size:11px}
  .metrics.metrics-compact{margin-top:10px!important}
  .metrics-compact .metric{flex-basis:111px;width:111px;height:46px;min-height:46px}
  .poet-card{height:94px!important;min-height:94px!important;padding:10px 13px}
  .poet-card-copy{right:auto;left:auto}
  .poet-card h3{font-size:19px}
  .poet-card .poet-count{margin-top:3px;font-size:10px}
}

/* Restore the reference poet-card composition. */
.hero-actions{margin-top:28px!important}
.metrics.metrics-compact{margin-top:18px!important}
.poet-grid{gap:14px}
.poet-card{height:auto!important;min-height:0!important;aspect-ratio:1.32;display:block!important;padding:0!important;border-radius:24px;background:linear-gradient(145deg,var(--panel),color-mix(in srgb,var(--panel) 78%,var(--soft)));}
.poet-card:after{display:block;z-index:0;inset:auto -10% -35%;height:74%;background:color-mix(in srgb,var(--soft) 78%,transparent);border-radius:50% 50% 0 0;opacity:.8}
.poet-card-top{position:absolute!important;inset:0!important;z-index:4;height:auto!important}
.poet-random-button{position:absolute!important;left:7%!important;top:7%!important;width:clamp(42px,5.8vw,66px)!important;height:clamp(42px,5.8vw,66px)!important;min-width:0!important;min-height:0!important;border-radius:24px;color:var(--gold)}
.poet-random-button svg{width:52%;height:52%}
.poet-card-index{position:absolute;right:7%;top:10%;color:var(--muted);font:500 clamp(13px,1.8vw,21px)/1 ui-monospace,monospace;direction:ltr}
.poet-card-copy{position:absolute!important;top:50%!important;right:8%!important;left:auto!important;width:52%;z-index:2;margin:0!important;text-align:right;transform:translateY(-50%)!important}
.poet-card h3{max-width:none;margin:0;font-size:clamp(20px,2.8vw,34px);line-height:1.3;letter-spacing:-1px;text-align:right}
.poet-card .poet-blurb{position:relative;z-index:2;margin:8px 0 0;color:var(--muted);font-size:clamp(12px,1.4vw,18px);line-height:1.5}
.poet-card .poet-count{position:absolute!important;right:8%!important;bottom:9%!important;z-index:2;margin:0;color:var(--muted);font-size:clamp(10px,1.2vw,15px)}
.poet-sketch{display:block!important;position:absolute;left:7%;right:auto;bottom:6%;width:38%;height:48%;z-index:1;color:var(--muted);opacity:.9}
.poet-sketch-svg{display:block;width:100%;height:100%;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
html[data-lang=en] .poet-card-copy{right:auto;left:8%!important;text-align:left}
html[data-lang=en] .poet-card h3{text-align:left}
html[data-lang=en] .poet-card .poet-count{right:auto!important;left:8%!important}
.footer{font-size:8px!important;gap:6px!important;padding-top:12px!important;padding-bottom:18px!important}
.footer>span,.footer-links,.footer-links>span,.footer-feedback{font-size:8px!important;line-height:1.45!important}
.footer-feedback{padding:0!important}
@media(max-width:600px){
  .hero-actions{margin-top:24px!important}
  .metrics.metrics-compact{margin-top:16px!important}
  .poet-grid{gap:10px}
  .poet-card{border-radius:19px}
  .poet-random-button{width:42px!important;height:42px!important}
  .poet-card-index{top:10%;font-size:14px}
  .poet-card-copy{right:8%;width:55%}
  .poet-card h3{font-size:20px;letter-spacing:-.5px}
  .poet-card .poet-blurb{margin-top:5px;font-size:12px}
  .poet-card .poet-count{bottom:8%;font-size:10px}
  .poet-sketch{width:38%;height:48%;bottom:6%}
}

/* 0.3.1 poet cards: fixed compact cards with the original portrait layout. */
.poet-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.poet-card{height:142px!important;min-height:142px!important;aspect-ratio:auto!important;padding:14px 16px!important;border-radius:18px}
.poet-card:after{display:block;z-index:auto;inset:auto -30px -68px;height:135px;background:var(--soft);border-radius:50%;opacity:.72}
.poet-card h3{position:relative;z-index:2;max-width:62%;margin:14px 0 1px;font-size:20px;line-height:1.35;letter-spacing:-1px;text-align:start}
.poet-card p{position:relative;z-index:2;margin:0;color:var(--muted);font-size:10px;line-height:1.5;text-align:start}
.poet-card-actions{position:absolute;left:12px;top:11px;z-index:4;display:flex;gap:5px}
.poet-card-actions .icon-button{width:25px;height:25px;border-radius:9px;color:var(--gold)}
.poet-card-actions .icon-button svg{width:12px;height:12px}
.poet-sketch{display:block!important;position:absolute!important;left:16px!important;right:auto!important;bottom:10px!important;width:80px!important;height:80px!important;z-index:1;opacity:.68;transition:.3s}
.poet-card:hover .poet-sketch{transform:translate(-3px,-5px) rotate(-3deg);opacity:1}
.poet-card .poet-count{position:absolute!important;right:16px!important;bottom:14px!important;z-index:2;margin:0;color:var(--muted);font-size:9px}
html[data-lang=en] .poet-card h3,html[data-lang=en] .poet-card p{text-align:start}
html[data-lang=en] .poet-card .poet-count{right:auto!important;left:16px!important}
@media(max-width:600px){
  .poet-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .poet-card{height:132px!important;min-height:132px!important;padding:12px 11px!important}
  .poet-card h3{max-width:61%;font-size:16px;margin:13px 0 1px}
  .poet-card p{font-size:9px}
  .poet-sketch{width:62px!important;height:62px!important;left:7px!important;bottom:7px!important}
  .poet-card-actions{left:7px;top:7px}
  .poet-card-actions .icon-button{width:22px;height:22px}
  .poet-card-actions .icon-button svg{width:12px;height:12px}
  .poet-card .poet-count{right:10px!important;bottom:10px!important}
}

/* 0.5.7 poet card refinements. */
.poet-card-actions{left:14px!important;top:13px!important}
.poet-card-actions .icon-button{width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important;border-radius:50%!important;padding:0!important}
.poet-card-actions .icon-button svg{width:12px!important;height:12px!important}
.poet-card{height:136px!important;min-height:136px!important}
.poet-card h3{margin-top:30px!important;font-size:22px!important}
.poet-card h3.poet-name{white-space:nowrap}
.poet-card h3.poet-name-long{font-size:20px!important;letter-spacing:-1.2px}
.poet-card p{margin-top:4px!important}
.poet-sketch{left:14px!important;bottom:13px!important;width:66px!important;height:66px!important}
.poet-more-button{min-width:110px;margin:18px auto 0!important;border-radius:999px!important}
@media(max-width:600px){
  .poet-card-actions{left:9px!important;top:9px!important}
  .poet-card-actions .icon-button{width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important}
  .poet-card-actions .icon-button svg{width:11px!important;height:11px!important}
  .poet-card{height:126px!important;min-height:126px!important}
  .poet-card h3{margin-top:27px!important;font-size:18px!important}
  .poet-card h3.poet-name-long{font-size:16px!important;letter-spacing:-.6px}
  .poet-sketch{left:8px!important;bottom:10px!important;width:52px!important;height:52px!important}
  .poet-more-button{margin-top:14px!important}
}

/* 0.5.8 flow page. */
.flow-page{display:grid;place-items:center;min-height:calc(100svh - 240px)}
.flow-construction{width:min(560px,100%);padding:48px 28px;border-radius:24px;text-align:center}
.flow-mark{width:72px;height:72px;margin:0 auto 20px;border-radius:22px;background:var(--ink);color:var(--bg);display:grid;place-items:center}
.flow-mark svg{width:42px;height:42px}
.flow-construction .eyebrow{margin-bottom:10px}
.flow-construction h1{margin:0;font-size:clamp(28px,5vw,48px);letter-spacing:-2px}
.flow-construction>p:last-child{margin:12px 0 0;color:var(--muted);font-size:12px}
@media(max-width:600px){
  .flow-page{min-height:calc(100svh - 190px);padding-inline:14px}
  .flow-construction{padding:38px 20px}
}

/* Account workspace foundations. */
.account-page-v6{max-width:980px}
.account-page-v6 .account-hero{margin-bottom:22px}
.account-page-v6 .account-hero h1{font-size:clamp(32px,5vw,52px);letter-spacing:-2.5px}
.daily-fortune{position:relative;display:flex;align-items:center;gap:20px;min-height:142px;margin:0 auto 18px;padding:24px 26px;border:1px solid color-mix(in srgb,var(--gold) 36%,var(--line));border-radius:24px;background:linear-gradient(120deg,color-mix(in srgb,var(--gold) 13%,var(--panel)),var(--panel) 58%,color-mix(in srgb,var(--green) 10%,var(--panel)));cursor:pointer;overflow:hidden;transition:transform .2s,border-color .2s}
.daily-fortune:hover{transform:translateY(-3px);border-color:var(--gold)}
.daily-fortune:after{content:"";position:absolute;inset:auto -5% -76px;height:140px;border-radius:50%;background:color-mix(in srgb,var(--gold) 12%,transparent);pointer-events:none}
.daily-fortune-art{position:relative;z-index:1;display:grid;place-items:center;flex:0 0 100px;height:100px;border-radius:30px;background:var(--ink);color:var(--bg);transform:rotate(-6deg);box-shadow:12px 14px 0 color-mix(in srgb,var(--gold) 24%,transparent)}
.daily-fortune-art span{display:block;width:54px;height:2px;background:currentColor;border-radius:99px;transform:skewY(-12deg)}
.daily-fortune-art span+span{margin-top:-11px;transform:skewY(12deg)}
.daily-fortune-copy{position:relative;z-index:1;min-width:0;flex:1}
.daily-fortune-copy .eyebrow{margin-bottom:8px;color:var(--gold)}
.daily-fortune-copy .eyebrow span{color:var(--muted)}
.daily-fortune-copy h2{margin:0;font-size:clamp(19px,3vw,30px);letter-spacing:-1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.daily-fortune-copy p:last-child{margin:7px 0 0;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.daily-fortune-action{position:relative;z-index:1;display:flex;align-items:center;gap:7px;color:var(--green);font-size:9px;white-space:nowrap}
.daily-fortune-action svg{width:20px;height:20px;color:var(--gold)}
.daily-fortune-action b{font-size:17px;font-weight:400}
.account-section-v6{padding:22px;border:1px solid var(--line);border-radius:20px;background:color-mix(in srgb,var(--panel) 88%,var(--soft));box-shadow:var(--shadow)}
.account-section-v6>.section-head{align-items:center;margin-bottom:18px}
.account-section-v6>.section-head h2{font-size:22px}
.section-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;color:var(--green);background:color-mix(in srgb,var(--green) 12%,var(--panel))}
.section-icon svg{width:20px;height:20px}
.favorite-icon{color:var(--red);background:color-mix(in srgb,var(--red) 10%,var(--panel))}
.stats-icon{color:var(--orange);background:color-mix(in srgb,var(--orange) 11%,var(--panel))}
.update-icon{color:var(--gold);background:color-mix(in srgb,var(--gold) 13%,var(--panel))}
.update-icon.is-spinning svg{animation:account-spin 1s linear infinite}
@keyframes account-spin{to{transform:rotate(360deg)}}
.account-empty{min-height:130px;border:1px dashed var(--line);border-radius:14px;background:color-mix(in srgb,var(--panel) 72%,transparent)}
.account-profile-v6{display:grid;gap:12px}
.profile-v6-card{background:var(--panel)}
.account-form-grid-v6{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}
.readonly-field{color:var(--muted);background:var(--soft);cursor:not-allowed}
.field-hint{color:var(--faint);font-size:8px;margin-top:-2px}
.account-save-button{min-width:130px}
.account-security-v6{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border-radius:18px}
.account-security-v6 h2{font-size:15px;margin:0 0 5px}
.account-security-v6 p:last-child{margin:0;color:var(--muted);font-size:10px}
.account-security-actions{display:flex;gap:7px;flex-wrap:wrap;flex:none}
.danger-button{border-color:color-mix(in srgb,var(--red) 50%,var(--line));color:var(--red);background:transparent}
.favorite-v6-list,.account-recent-v6{display:grid;gap:7px}
.favorite-v6-item{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:13px;cursor:pointer;transition:border-color .2s,transform .2s}
.favorite-v6-item:hover{border-color:var(--green);transform:translateX(-2px)}
.favorite-v6-item>span:nth-child(2){min-width:0;flex:1}
.favorite-v6-item strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.favorite-v6-item small{display:block;color:var(--muted);font-size:9px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.favorite-v6-item>b{color:var(--muted);font-size:15px;font-weight:400}
.favorite-v6-mark{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;color:var(--green);background:var(--soft)}
.favorite-v6-mark svg{width:16px;height:16px}
.account-stats-v6{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}
.account-stats-v6 .stat-card{padding:14px;border-radius:15px;background:var(--panel)}
.account-stats-v6 .stat-card strong{font-size:24px;color:var(--green)}
.reading-card{padding:17px;border-radius:16px;margin-bottom:12px}
.reading-card .section-head{margin-bottom:8px}
.account-recent-v6 .history-item{align-items:center;padding:12px 14px}
.account-recent-v6 .history-item strong{display:block;font-size:11px}
.account-recent-v6 .history-item small{display:block;color:var(--muted);font-size:9px;margin-top:4px}
.update-section-v6>.section-head p:last-child{max-width:520px}
.update-status-v6{display:grid;gap:0;border:1px solid var(--line);border-radius:15px;overflow:hidden;background:var(--panel)}
.update-status-v6.available{border-color:color-mix(in srgb,var(--green) 60%,var(--line))}
.update-status-v6.error{border-color:color-mix(in srgb,var(--red) 50%,var(--line))}
.update-version-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 15px;border-bottom:1px solid var(--line);font-size:10px}
.update-version-row:last-child{border-bottom:0}
.update-version-row span{color:var(--muted)}
.update-version-row strong{font-size:11px;color:var(--green)}
.update-actions-v6{display:flex;justify-content:flex-start;margin-top:14px}
.update-actions-v6 .button{min-width:150px}
.flow-construction{min-height:260px;display:grid;place-items:center;align-content:center;gap:25px}
.flow-construction .flow-mark{margin:0}
.flow-signal{display:flex;align-items:center;gap:8px;opacity:.65}
.flow-signal i{display:block;width:34px;height:4px;border-radius:99px;background:var(--gold);transform:skewX(-24deg);animation:flow-pulse 1.8s ease-in-out infinite}
.flow-signal i:nth-child(2){width:52px;background:var(--green);animation-delay:.18s}
.flow-signal i:nth-child(3){width:24px;background:var(--orange);animation-delay:.36s}
@keyframes flow-pulse{0%,100%{opacity:.35;transform:translateY(3px) skewX(-24deg)}50%{opacity:1;transform:translateY(-3px) skewX(-24deg)}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){
   .daily-fortune{gap:14px;padding:18px;min-height:112px;border-radius:20px}
  .daily-fortune-art{flex-basis:68px;width:68px;height:68px;border-radius:22px;box-shadow:8px 9px 0 color-mix(in srgb,var(--gold) 24%,transparent)}
  .daily-fortune-art span{width:38px}.daily-fortune-action{display:grid;gap:2px;justify-items:center;font-size:0}.daily-fortune-action svg{width:22px;height:22px}.daily-fortune-action b{font-size:20px}
  .account-section-v6{padding:16px;border-radius:17px}
  .account-form-grid-v6{grid-template-columns:1fr}
  .account-security-v6{display:block;padding:16px}
  .account-security-actions{margin-top:14px}
   .account-stats-v6{grid-template-columns:repeat(2,minmax(0,1fr))}
 }

 /* Account navigation and favorites library. */
.daily-fortune-art{flex:0 0 100px;width:100px;height:100px;transform:none;border:1px solid color-mix(in srgb,var(--green) 30%,var(--line));border-radius:24px;background:color-mix(in srgb,var(--green) 12%,var(--panel));color:var(--green);box-shadow:none}
.daily-fortune-art .fortune-vector{width:72px;height:72px;display:block}
.daily-fortune-action{gap:5px;color:var(--muted);font-size:10px}
.daily-fortune-action b{color:var(--green);font-size:17px}
.account-section-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:980px;margin:0 auto}
.account-section-card{min-width:0;min-height:156px;position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--panel);color:var(--ink);text-align:start;cursor:pointer;transition:border-color .2s,transform .2s,background .2s}
.account-section-card:hover{border-color:color-mix(in srgb,var(--green) 55%,var(--line));background:color-mix(in srgb,var(--panel) 94%,var(--green) 6%);transform:translateY(-2px)}
.account-section-card:active{transform:translateY(0)}
.account-section-card:last-child{grid-column:1/-1;min-height:112px;flex-direction:row;align-items:center;gap:16px}
.account-section-card-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--soft);color:var(--green)}
.account-section-card-icon svg{width:20px;height:20px}
.account-section-card strong{font-size:16px;letter-spacing:-.3px}
.account-section-card-arrow{margin-inline-start:auto;color:var(--muted);font-size:20px;font-weight:400}
.account-detail-v6{max-width:980px;margin:0 auto}
.account-back-button{display:inline-flex;align-items:center;gap:7px;margin:0 0 14px;padding:7px 0;border:0;background:transparent;color:var(--muted);font-size:10px;cursor:pointer}
.account-back-button:hover{color:var(--ink)}
.account-section-heading h2{direction:rtl;flex-direction:row}
html[data-lang=en] .account-section-heading h2{direction:ltr}
.account-page-v6 .field:focus,.account-page-v6 .field:focus-visible{border-color:color-mix(in srgb,var(--line) 78%,var(--ink) 22%);background:color-mix(in srgb,var(--panel) 94%,#fff 6%);box-shadow:none;outline:1px solid color-mix(in srgb,var(--line) 70%,var(--ink) 30%);outline-offset:0}
.favorite-total{color:var(--green);font-size:22px;font-variant-numeric:tabular-nums}
.favorite-library-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 4px}
.favorite-library-summary>div{min-width:0;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.favorite-library-summary strong{display:block;color:var(--green);font-size:20px;font-variant-numeric:tabular-nums}
.favorite-library-summary span{display:block;margin-top:4px;color:var(--muted);font-size:9px}
.favorite-shelf{min-width:0;margin-top:24px}
.favorite-shelf-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.favorite-shelf-head h3{display:flex;align-items:center;gap:8px;min-width:0;margin:0;font-size:15px}
.favorite-shelf-head h3 span:last-child{min-width:0;overflow-wrap:anywhere}
.favorite-shelf-head>small{flex:none;color:var(--muted);font-size:10px}
.shelf-icon{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:9px;background:var(--soft);color:var(--green)}
.shelf-icon svg{width:15px;height:15px}
.favorite-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.favorite-library-card{min-width:0;min-height:168px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:15px;border-radius:16px;cursor:pointer;overflow:hidden;transition:border-color .2s,transform .2s}
.favorite-library-card:hover,.favorite-library-row:hover{border-color:color-mix(in srgb,var(--green) 55%,var(--line));transform:translateY(-2px)}
.favorite-library-card-top{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px}
.favorite-library-card-top small{color:var(--muted);font-size:9px}
.favorite-library-mark{display:grid;place-items:center;flex:none;width:31px;height:31px;border-radius:10px;background:var(--soft);color:var(--green)}
.favorite-library-mark svg{width:16px;height:16px}
.favorite-library-card strong{display:-webkit-box;width:100%;overflow:hidden;overflow-wrap:anywhere;font-size:14px;line-height:1.65;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.favorite-library-card>span:not(.favorite-library-mark){display:block;width:100%;overflow:hidden;overflow-wrap:anywhere;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.favorite-library-card>small{display:block;width:100%;overflow:hidden;overflow-wrap:anywhere;color:var(--faint);font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.favorite-library-card>b{margin-top:auto;color:var(--green);font-size:17px;font-weight:400}
.favorite-library-list{display:grid;gap:8px}
.favorite-library-row{min-width:0;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;cursor:pointer;transition:border-color .2s,transform .2s}
.favorite-library-row>span:nth-child(2){min-width:0;flex:1}
.favorite-library-row strong{display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;font-size:12px;line-height:1.7;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.favorite-library-row small{display:block;overflow:hidden;margin-top:3px;color:var(--muted);font-size:9px;overflow-wrap:anywhere;text-overflow:ellipsis;white-space:nowrap}
.favorite-library-row>b{flex:none;color:var(--muted);font-size:16px;font-weight:400}
@media(max-width:700px){
  .daily-fortune{gap:12px;padding:16px}
  .daily-fortune-art{flex-basis:76px;width:76px;height:76px;border-radius:20px}
  .daily-fortune-art .fortune-vector{width:57px;height:57px}
  .daily-fortune-copy h2{font-size:18px}
  .daily-fortune-copy p:last-child{font-size:9px}
  .account-section-cards{gap:9px}
  .account-section-card{min-height:138px;padding:16px;border-radius:16px}
  .account-section-card:last-child{min-height:96px}
  .account-section-card-icon{width:36px;height:36px;border-radius:11px}
  .account-section-card-icon svg{width:18px;height:18px}
  .account-section-card strong{font-size:13px}
  .favorite-library-grid{grid-template-columns:1fr}
  .favorite-library-summary{gap:6px}
  .favorite-library-summary>div{padding:11px 10px}
  .favorite-library-summary strong{font-size:17px}
}

@media(min-width:601px) and (max-width:900px){
  .topbar{grid-template-columns:auto minmax(0,1fr) auto;gap:12px}
  .topbar .nav{display:flex;min-width:0;justify-content:flex-end;gap:0;overflow-x:auto;scrollbar-width:none}
  .topbar .nav::-webkit-scrollbar{display:none}
  .topbar .nav button{flex:0 0 auto;padding:8px 7px;font-size:10px;white-space:nowrap}
}
.jalali-date{direction:ltr;text-align:left}
.admin-device-details{margin-top:13px;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}
.admin-device-details summary{cursor:pointer;color:var(--ink);font-weight:700}
.admin-device-details ul,.admin-view-list{display:grid;gap:8px;margin:10px 0 0;padding-inline-start:20px}
.admin-device-details li,.admin-view-list li{font-size:10px;line-height:1.8;overflow-wrap:anywhere}
.admin-device-details code{font-size:10px}
.admin-device-details small{color:var(--muted);font-size:9px}
.admin-view-list li{display:flex;justify-content:space-between;gap:12px}
.offline-poem-action{white-space:nowrap}
@media(max-width:600px){
  .admin-device-details{font-size:9px}
}
@media(max-width:420px){
  .daily-fortune{align-items:flex-start}
  .daily-fortune-action{display:grid;gap:2px;justify-items:center;font-size:0}
  .daily-fortune-action b{font-size:19px}
  .favorite-library-summary span{font-size:8px}
}
@media(max-width:480px){
  .daily-fortune-copy h2{font-size:17px}
  .daily-fortune-copy p:last-child{font-size:8px}
}

/* Account header and navigation refinement. */
.account-page-v6 .account-hero{display:block;margin-bottom:21px;text-align:right}
.account-page-v6 .account-hero h1{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:0;line-height:1.35}
.account-display-name{font-weight:900}
.account-greeting{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:.34em;font-weight:400;letter-spacing:0;white-space:nowrap;direction:rtl}
.account-greeting>span:first-child{display:inline-block;max-width:0;overflow:hidden;border-left:1px solid var(--gold);animation:greeting-type 2.2s steps(18,end) .25s both}
.greeting-smile{display:grid;place-items:center;color:var(--gold);opacity:0;animation:greeting-smile-in .35s ease 2.2s both}
.greeting-smile svg{width:1.45em;height:1.45em}
.account-page-v6 .account-identity{display:block;width:max-content;margin:8px 0 0;padding:0;border:0;border-radius:0;color:var(--green);font:600 11px/1.2 ui-monospace,monospace;direction:ltr}
@keyframes greeting-type{from{max-width:0}to{max-width:14em}}
@keyframes greeting-smile-in{from{opacity:0;transform:translateY(3px) scale(.8)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.account-greeting>span:first-child{max-width:none;animation:none;border-left:0}.greeting-smile{opacity:1;animation:none}}
.daily-fortune-label{margin:0 0 8px;color:var(--gold);font-size:10px;font-weight:700}
.daily-fortune-label span{color:var(--muted);font-weight:400}
.account-section-heading h2{display:flex;align-items:center;gap:8px}
.account-section-heading .section-icon{width:32px;height:32px;flex:none;border-radius:10px}
.account-section-heading .section-icon svg{width:17px;height:17px}
.account-page-v6 .account-section-v6 .eyebrow:before{display:none}
.account-section-v6>.section-head{align-items:flex-start}
.account-section-v6>.section-head .account-section-heading{min-width:0}
.account-security-v6 .account-section-heading h2{margin:0 0 6px;font-size:15px}
.account-security-v6 .section-icon{width:30px;height:30px}
.account-page-v6 .account-actions{display:none}
.account-page-v6 :where(button,a,input,textarea,select,[tabindex]):focus-visible{outline:1px solid var(--green);outline-offset:1px;box-shadow:0 0 0 2px color-mix(in srgb,var(--green) 14%,transparent)}
.account-page-v6 .field:focus{border-color:var(--green);box-shadow:0 0 0 2px color-mix(in srgb,var(--green) 12%,transparent);outline:0}
@media(max-width:700px){
  .account-page-v6 .account-hero h1{display:block}
  .account-greeting{margin-inline-start:5px;font-size:.38em}
  .account-page-v6 .account-identity{margin-top:7px}
}

/* Final account overrides keep the current surface above legacy rules. */
.daily-fortune-art{flex:0 0 100px;width:100px;height:100px;transform:none;border:1px solid color-mix(in srgb,var(--green) 30%,var(--line));border-radius:24px;background:color-mix(in srgb,var(--green) 12%,var(--panel));color:var(--green);box-shadow:none}
.daily-fortune-art .fortune-vector{width:72px;height:72px;display:block}
.account-page-v6 .field:focus,.account-page-v6 .field:focus-visible{border-color:color-mix(in srgb,var(--line) 78%,var(--ink) 22%);background:color-mix(in srgb,var(--panel) 94%,#fff 6%);box-shadow:none;outline:1px solid color-mix(in srgb,var(--line) 70%,var(--ink) 30%);outline-offset:0}
.account-section-heading h2{direction:rtl;flex-direction:row}
html[data-lang=en] .account-section-heading h2{direction:ltr}
@media(max-width:700px){
  .daily-fortune-art{flex-basis:76px;width:76px;height:76px;border-radius:20px;box-shadow:none}
  .daily-fortune-art .fortune-vector{width:57px;height:57px}
}

/* 0.6.4 compact account details. */
.daily-fortune{min-height:112px;padding:18px 22px;gap:16px;border-radius:20px}
.daily-fortune-art{display:none}
.daily-fortune-copy h2{font-size:clamp(18px,2.5vw,26px)}
.daily-fortune-action{flex:none;display:flex;align-items:center;gap:6px;color:var(--muted);font-size:9px}
.daily-fortune-action .daily-fortune-shine{display:grid;place-items:center;color:var(--green);flex:none}
.daily-fortune-action .daily-fortune-shine svg{width:16px;height:16px;color:var(--green)}
.account-section-page{min-width:0;animation:account-page-in .24s ease both}
@keyframes account-page-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.favorite-library-card{min-height:124px;padding:12px;gap:4px;border-radius:14px}
.favorite-library-mark{width:28px;height:28px;border-radius:9px}
.favorite-library-mark svg{width:14px;height:14px}
.favorite-library-card strong{font-size:12px;line-height:1.5}
.favorite-library-card>b{font-size:15px}
.favorite-more-button{display:inline-flex;align-items:center;justify-content:center;margin-top:11px;padding:7px 11px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--muted);font-size:9px;cursor:pointer}
.favorite-more-button:hover{border-color:var(--green);color:var(--ink)}
.reading-line-chart{height:132px;min-width:0;padding:3px 0 0}
.reading-line-chart svg{display:block;width:100%;height:132px;overflow:visible}
.reading-line-grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 5}
.reading-line-area{fill:color-mix(in srgb,var(--green) 10%,transparent)}
.reading-line-path{fill:none;stroke:var(--green);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.reading-line-point circle{fill:var(--panel);stroke:var(--green);stroke-width:2}
.reading-line-point text{fill:var(--muted);font-family:inherit;font-size:11px}
.reading-line-point .reading-line-day{fill:var(--faint);font-size:10px}
.recent-views-v6{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.recent-views-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:11px}
.recent-views-head .account-section-heading h2{font-size:16px}
.recent-views-head .account-section-heading p{margin:5px 0 0;color:var(--muted);font-size:9px}
.recent-icon{color:var(--green);background:color-mix(in srgb,var(--green) 10%,var(--panel))}
@media(max-width:700px){
  .daily-fortune{min-height:96px;padding:14px 16px;gap:12px}
  .daily-fortune-action{font-size:8px}
  .daily-fortune-action .daily-fortune-shine svg{width:15px;height:15px}
  .daily-fortune-copy h2{font-size:17px}
  .reading-line-chart,.reading-line-chart svg{height:112px}
  .recent-views-head{gap:8px}
}

/* Flow review layout. */
.flow-page{display:block;min-height:0;max-width:1180px;margin-inline:auto;padding:28px clamp(14px,3vw,32px) 112px}
.flow-page-head{margin:0 auto 30px;text-align:center}
.flow-verse-banner{position:relative;display:block;appearance:none;box-sizing:border-box;width:min(720px,100%);margin-inline:auto;padding:12px 18px;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:color-mix(in srgb,var(--soft) 52%,var(--bg));box-shadow:inset 0 1px 4px color-mix(in srgb,#000 5%,transparent);color:var(--ink);font:inherit;text-align:center;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;transition:border-color .2s,background .2s}
.flow-verse-banner:hover{border-color:color-mix(in srgb,var(--green) 38%,var(--line))}
.flow-verse-banner:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.flow-verse-quote{display:grid;gap:4px;margin:0;padding-inline:15px;font-size:clamp(14px,1.35vw,17px);font-weight:600;line-height:1.75}
.flow-verse-couplet{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(8px,2vw,24px)}
.flow-verse-couplet span:first-child{color:var(--ink)}
.flow-verse-couplet span:last-child{color:var(--muted)}
.flow-verse-attribution{display:block;margin-top:5px;color:var(--faint);font-size:8px}
.flow-verse-loading{display:grid;place-items:center;min-height:48px;color:var(--muted);font-size:10px}
.flow-sections{display:grid;gap:30px}
.flow-section{min-width:0}
.flow-section-head{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}
.flow-section-head>span{color:var(--gold);font:600 10px/1 ui-monospace,monospace;direction:ltr}
.flow-section-head h2{margin:0;font-size:20px;letter-spacing:-.4px}
.flow-slider{--flow-card-width:clamp(104px,calc(37.5vw - 17.25px),416px);display:grid;grid-auto-flow:column;grid-auto-columns:var(--flow-card-width);gap:10px;min-width:0;overflow-x:auto;overflow-y:hidden;padding:2px 2px 10px;direction:rtl;scroll-snap-type:x mandatory;scroll-padding-inline:2px;overscroll-behavior-inline:contain;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.flow-slider::-webkit-scrollbar{height:4px}
.flow-slider::-webkit-scrollbar-thumb{border-radius:8px;background:var(--line)}
.flow-card{position:relative;box-sizing:border-box;display:block;width:var(--flow-card-width);height:102px;min-width:0;overflow:hidden;padding:12px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,var(--panel),color-mix(in srgb,var(--panel) 78%,var(--soft)));color:var(--ink);font:inherit;text-align:inherit;text-decoration:none;cursor:pointer;scroll-snap-align:start;transition:transform .2s,border-color .2s,box-shadow .2s}
.flow-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--green) 46%,var(--line));box-shadow:0 10px 24px color-mix(in srgb,var(--ink) 8%,transparent)}
.flow-card:focus-visible,.flow-slider:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.flow-card-rank{position:absolute;top:11px;right:12px;color:var(--gold);font:600 9px/1 ui-monospace,monospace}
.flow-card-mark{position:absolute;top:10px;left:11px;display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--line);border-radius:50%;background:color-mix(in srgb,var(--panel) 82%,transparent);color:var(--green)}
.flow-card-mark svg{width:13px;height:13px}
.flow-card-copy{position:absolute;right:12px;bottom:11px;left:12px;min-width:0;text-align:right}
.flow-card-copy p{overflow:hidden;margin:0 0 3px;color:var(--muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.flow-card-copy h3,.flow-card-copy strong{display:-webkit-box;overflow:hidden;margin:0;color:var(--ink);font-size:13px;font-weight:700;line-height:1.45;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:1}
.flow-card-copy>span,.flow-card-copy small{display:block;overflow:hidden;margin-top:3px;color:var(--muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.flow-card-metric{position:absolute;bottom:12px;left:11px;max-width:40%;overflow:hidden;color:var(--green);font-size:7px;text-overflow:ellipsis;white-space:nowrap}
.flow-person-card .flow-card-copy,.flow-poem-card .flow-card-copy{right:43px}
.flow-poem-card .flow-card-copy p{margin-bottom:2px}
.flow-couplet-card .flow-card-copy{top:30px;bottom:23px;display:grid;align-content:start;gap:2px}
.flow-couplet-card .flow-card-copy blockquote{display:-webkit-box;overflow:hidden;margin:0;color:var(--ink);font-size:9px;font-weight:500;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.flow-couplet-card .flow-card-copy blockquote span+span:before{content:" · "}
.flow-couplet-card .flow-card-copy h3{color:var(--muted);font-size:8px;font-weight:500}
.flow-fortune-card,.flow-fortune-card:hover{padding:0;border-radius:15px;background:var(--panel);box-shadow:none;transform:none}
.flow-fortune-card:hover{border-color:color-mix(in srgb,var(--green) 38%,var(--line))}
.flow-fortune-art{position:absolute;bottom:3px;left:11px;display:block;width:69px;height:88px;color:var(--green)}
.flow-fortune-art svg,.flow-fortune-vector{display:block;width:100%;height:100%;overflow:visible}
.flow-fortune-vector{background-color:currentColor;mask-position:center;-webkit-mask-position:center;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-size:contain;-webkit-mask-size:contain}
.flow-fortune-vector-hafez{mask-image:url("assets/fortune-hafez.svg");-webkit-mask-image:url("assets/fortune-hafez.svg")}
.flow-fortune-vector-moulana{mask-image:url("assets/fortune-moulana.svg");-webkit-mask-image:url("assets/fortune-moulana.svg")}
.flow-fortune-copy{position:absolute;top:50%;right:16px;left:83px;display:grid;gap:5px;transform:translateY(-50%);text-align:right}
.flow-fortune-copy strong{overflow:hidden;color:var(--ink);font-size:16px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.flow-fortune-copy small{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.flow-disabled-card,.flow-disabled-card:hover{border-style:dashed;background:color-mix(in srgb,var(--soft) 72%,var(--bg));color:var(--muted);cursor:not-allowed;opacity:.62;transform:none;box-shadow:none}
.flow-disabled-card .flow-fortune-art{color:var(--muted)}
  .flow-recent-card,.flow-recent-card:hover{border:1px solid var(--line);background:linear-gradient(145deg,var(--panel),color-mix(in srgb,var(--soft) 42%,var(--panel)));box-shadow:0 7px 18px color-mix(in srgb,var(--ink) 8%,transparent);transform:none;transition:none}
.flow-recent-card .flow-card-copy{top:50%;right:15px;bottom:auto;left:12px;display:grid;gap:8px;transform:translateY(-50%)}
.flow-recent-card .flow-card-copy h3{font-size:18px;line-height:1.5;text-align:right}
.flow-recent-card .flow-card-copy small{width:max-content;max-width:100%;margin:0;padding:3px 8px;border-radius:999px;background:var(--soft);color:var(--green);font-size:8px;text-align:right}
.flow-empty-card{display:grid;place-items:center;box-sizing:border-box;width:var(--flow-card-width);height:102px;padding:14px;border:1px dashed var(--line);border-radius:16px;color:var(--muted);background:color-mix(in srgb,var(--soft) 48%,var(--bg));font-size:9px;line-height:1.8;text-align:center;scroll-snap-align:start}
html[data-lang=en] .flow-card-copy,html[data-lang=en] .flow-recent-card .flow-card-copy{text-align:left}
html[data-lang=en] .flow-card-rank{right:auto;left:12px}
html[data-lang=en] .flow-card-mark{left:auto;right:11px}
html[data-lang=en] .flow-card-metric{left:auto;right:11px}
html[data-lang=en] .flow-person-card .flow-card-copy,html[data-lang=en] .flow-poem-card .flow-card-copy{right:12px;left:43px}
html[data-lang=en] .flow-couplet-card .flow-card-copy{right:12px;left:12px}
html[data-lang=en] .flow-fortune-art{right:11px;left:auto}
html[data-lang=en] .flow-fortune-copy{right:83px;left:16px;text-align:left}
html[data-lang=en] .flow-recent-card .flow-card-copy h3,html[data-lang=en] .flow-recent-card .flow-card-copy small{text-align:left}
html[data-lang=en] .flow-verse-couplet{direction:ltr}
@media(max-width:600px){
  .flow-page{padding:20px 18px 104px}
  .flow-page-head{margin-bottom:24px}
  .flow-verse-banner{padding:10px 11px;border-radius:14px}
  .flow-verse-quote{gap:6px;padding-inline:4px;font-size:12px;line-height:1.7}
  .flow-verse-couplet{gap:7px}
  .flow-verse-attribution{font-size:7px}
  .flow-sections{gap:24px}
  .flow-section-head h2{font-size:17px}
  .flow-slider{gap:8px;padding-bottom:9px;touch-action:pan-x pan-y pinch-zoom}
  .flow-card,.flow-empty-card{height:94.5px;padding:10px;border-radius:14px}
  .flow-card-rank{top:9px;right:10px;font-size:8px}
  .flow-card-mark{top:8px;left:9px;width:22px;height:22px}
  .flow-card-copy{right:10px;bottom:9px;left:10px}
  .flow-card-copy h3{font-size:11px}
  .flow-card-copy p,.flow-card-copy>span,.flow-card-copy small{font-size:7px}
  .flow-card-metric{bottom:10px;left:9px;font-size:6.5px}
  .flow-person-card .flow-card-copy,.flow-poem-card .flow-card-copy{right:35px}
  .flow-couplet-card .flow-card-copy{top:27px;bottom:20px}
  .flow-couplet-card .flow-card-copy blockquote{font-size:8px}
  .flow-fortune-art{bottom:3px;left:5px;width:45px;height:63px}
  .flow-fortune-copy{right:8px;left:53px;gap:4px}
  .flow-fortune-copy strong{font-size:10px}
  .flow-fortune-copy small{font-size:7px}
  .flow-recent-card .flow-card-copy{right:10px;left:8px;gap:7px}
  .flow-recent-card .flow-card-copy h3{font-size:14px}
  .flow-recent-card .flow-card-copy small{padding:2px 6px;font-size:7px}
  html[data-lang=en] .flow-card-rank{left:10px}
  html[data-lang=en] .flow-card-mark{right:9px}
  html[data-lang=en] .flow-card-metric{right:9px}
  html[data-lang=en] .flow-person-card .flow-card-copy,html[data-lang=en] .flow-poem-card .flow-card-copy{right:10px;left:35px}
  html[data-lang=en] .flow-fortune-art{right:5px}
   html[data-lang=en] .flow-fortune-copy{right:53px;left:8px}
 }

.poet-card h3{font-size:24px!important}
.poet-card h3.poet-name-long{font-size:22px!important}
.flow-fortune-card[data-random-poet] .flow-fortune-art{bottom:8px}
@media(max-width:600px){.poet-card h3{font-size:20px!important}.poet-card h3.poet-name-long{font-size:18px!important}.flow-fortune-card[data-random-poet] .flow-fortune-art{bottom:7px}}

/* 0.7.0 account and sign-in review sample. */
.auth-page{max-width:1040px;padding-top:30px}
.auth-layout{display:grid;grid-template-columns:minmax(0,.86fr) minmax(360px,1fr);align-items:stretch;gap:18px;max-width:900px;margin:0 auto}
.auth-story{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:470px;overflow:hidden;padding:clamp(24px,4vw,42px);border:1px solid color-mix(in srgb,var(--green) 22%,var(--line));border-radius:26px;background:radial-gradient(circle at 18% 16%,color-mix(in srgb,var(--green) 24%,transparent),transparent 40%),linear-gradient(150deg,color-mix(in srgb,var(--ink) 94%,var(--green)),var(--ink));color:var(--bg);isolation:isolate}
.auth-story:before,.auth-story:after{position:absolute;z-index:-1;content:"";border:1px solid color-mix(in srgb,var(--bg) 18%,transparent);border-radius:50%;pointer-events:none}
.auth-story:before{width:250px;height:250px;inset:34px -100px auto auto}
.auth-story:after{width:174px;height:174px;inset:72px -62px auto auto}
.auth-mark{display:grid;place-items:center;width:52px;height:52px;margin-bottom:auto;border:1px solid color-mix(in srgb,var(--bg) 24%,transparent);border-radius:17px;background:color-mix(in srgb,var(--bg) 8%,transparent);color:var(--green)}
.auth-mark svg{width:27px;height:27px}
.auth-kicker{margin:30px 0 9px;color:color-mix(in srgb,var(--green) 72%,white);font-size:10px;font-weight:700;letter-spacing:.04em}
.auth-story h1{max-width:12ch;margin:0;font-size:clamp(30px,4vw,48px);line-height:1.25;letter-spacing:-1.5px}
.auth-story>p:last-of-type{max-width:32ch;margin:15px 0 0;color:color-mix(in srgb,var(--bg) 72%,transparent);font-size:12px;line-height:2}
.auth-story-rule{width:74px;height:3px;margin-top:22px;border-radius:99px;background:var(--green)}
.auth-card{box-sizing:border-box;width:100%;min-width:0;margin:0;padding:clamp(19px,3vw,30px);border-radius:24px;background:color-mix(in srgb,var(--panel) 94%,var(--soft));box-shadow:0 18px 54px color-mix(in srgb,var(--ink) 9%,transparent)}
.auth-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.auth-card-heading>span{color:var(--muted);font-size:11px;font-weight:700}
.auth-card-heading p{margin:0;color:var(--green);font-size:10px;font-weight:700}
.auth-tabs{margin-bottom:20px;border:0;border-radius:12px;background:var(--soft)}
.auth-tab{min-height:42px;font-size:11px;font-weight:650}
.auth-tab.active{background:var(--panel);color:var(--ink);box-shadow:0 4px 14px color-mix(in srgb,var(--ink) 8%,transparent)}
.auth-form{gap:12px}
.floating-field{position:relative;display:block;min-width:0}
.floating-field>.field{box-sizing:border-box;width:100%;height:54px;padding:21px 13px 7px;border-radius:13px;font-size:15px;transition:border-color .18s,box-shadow .18s,background .18s}
.floating-field>span{position:absolute;top:50%;inset-inline-start:13px;max-width:calc(100% - 26px);overflow:hidden;color:var(--muted);font-size:11px;pointer-events:none;text-overflow:ellipsis;transform:translateY(-50%);transform-origin:top left;transition:top .16s,font-size .16s,color .16s}
.floating-field:focus-within>span,.floating-field>.field:not(:placeholder-shown)+span{top:8px;color:var(--green);font-size:8px;transform:none}
.floating-field>.readonly-field:not(:placeholder-shown)+span{color:var(--muted)}
.remember-line{align-items:center;margin:0 2px;color:var(--muted);font-size:9px}
.remember-line input{border-radius:5px}
.auth-submit{min-height:50px;margin-top:1px;border:1px solid color-mix(in srgb,var(--green) 24%,transparent);border-radius:13px;background:var(--green);color:var(--ink);font-size:13px;font-weight:800;box-shadow:0 8px 22px color-mix(in srgb,var(--green) 24%,transparent);transition:transform .18s,filter .18s}
.auth-submit:hover{filter:brightness(1.04);transform:translateY(-1px)}
.auth-local-note{margin:0;color:var(--muted);font-size:9px;line-height:1.8}
.sms-login{margin-top:18px;padding-top:14px;opacity:.58}
.sms-login-head{font-size:10px}
.sms-login-row{margin-top:9px}
.sms-login-row .field{min-width:0;font-size:14px}
.sms-login-row .button{min-height:42px;border-radius:11px;font-size:10px}
.settings-update{max-width:800px;margin:12px auto 0}
.settings-update .account-section-v6{background:color-mix(in srgb,var(--panel) 94%,var(--soft))}
.account-section-cards{gap:10px}
.account-section-card,.account-section-card:last-child{display:grid;grid-column:auto;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;justify-content:initial;gap:13px;min-height:76px;padding:14px 16px;border-radius:16px;background:linear-gradient(120deg,color-mix(in srgb,var(--panel) 93%,var(--green) 7%),var(--panel));box-shadow:0 6px 18px color-mix(in srgb,var(--ink) 5%,transparent);text-align:start}
.account-section-card:hover{transform:translateY(-2px);box-shadow:0 11px 24px color-mix(in srgb,var(--ink) 9%,transparent)}
.account-section-card-icon{width:38px;height:38px;border:1px solid color-mix(in srgb,var(--green) 16%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--green) 11%,var(--panel))}
.account-section-card strong{font-size:12px;font-weight:750}
.account-section-card-arrow{grid-column:3;grid-row:1;font-size:18px}
.account-back-button{min-height:38px;margin-bottom:12px;padding:0 13px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--green);font-size:10px;font-weight:700;transition:border-color .18s,background .18s}
.account-back-button:hover{border-color:var(--green);background:color-mix(in srgb,var(--green) 8%,var(--panel))}
.account-profile-v6{gap:12px}
.profile-fold-card{display:block;overflow:visible;padding:0!important;border-radius:18px}
.profile-fold-summary{display:flex;align-items:center;gap:12px;min-height:70px;padding:15px 18px;list-style:none;cursor:pointer}
.profile-fold-summary::-webkit-details-marker{display:none}
.profile-fold-summary::marker{content:""}
.profile-fold-summary>span:nth-child(2){display:grid;min-width:0;flex:1;gap:4px}
.profile-fold-summary strong{font-size:13px}
.profile-fold-summary small{color:var(--muted);font-size:9px;line-height:1.7}
.profile-fold-summary:after{content:"+";display:grid;place-items:center;width:27px;height:27px;border:1px solid var(--line);border-radius:50%;color:var(--green);font-size:18px;line-height:1;transition:transform .18s}
.profile-fold-card[open]>.profile-fold-summary:after{content:"−";transform:rotate(180deg)}
.profile-fold-card[open]>.profile-fold-summary{border-bottom:1px solid var(--line)}
.profile-fold-body{padding:18px}
.account-form-grid-v6{gap:13px;margin-bottom:12px}
.account-form-grid-v6 .field{height:54px}
.profile-readonly-field{display:grid;gap:3px;min-width:0}
.profile-readonly-field .field-hint{margin:0 3px;font-size:8px}
.profile-consent-context{margin:0 1px 12px;color:var(--muted);font-size:9px;line-height:1.8}
.profile-fold-body>.consent-line{margin:0 0 14px}
.account-security-v6.profile-fold-card{display:block;padding:0!important}
.account-security-v6.profile-fold-card>.profile-fold-summary{justify-content:initial}
.account-security-v6.profile-fold-card .account-security-actions{margin:12px 0 0}
.date-field-wrap{position:relative;min-width:0}
.date-field-wrap .floating-field>.field{padding-inline-end:48px}
.jalali-date{direction:ltr;text-align:left}
.jalali-calendar-trigger{position:absolute;z-index:1;top:7px;inset-inline-end:7px;display:grid;place-items:center;width:39px;height:39px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--green);cursor:pointer}
.jalali-calendar-trigger svg{width:18px;height:18px}
.jalali-calendar{position:absolute;z-index:20;top:calc(100% + 8px);inset-inline:0;min-width:272px;padding:12px;border:1px solid var(--line);border-radius:15px;background:var(--panel);box-shadow:0 16px 42px color-mix(in srgb,var(--ink) 20%,transparent)}
.jalali-calendar[hidden]{display:none}
.jalali-calendar-head{display:grid;grid-template-columns:36px 1fr 36px;align-items:center;gap:6px;margin-bottom:10px}
.jalali-calendar-head button{height:34px;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:var(--ink);font-size:20px;cursor:pointer}
.jalali-calendar-head strong{text-align:center;font-size:11px}
.jalali-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.jalali-calendar-grid+.jalali-calendar-grid{margin-top:4px}
.jalali-weekdays span{display:grid;place-items:center;height:28px;color:var(--muted);font-size:8px}
.jalali-calendar-empty{height:34px}
.jalali-calendar-day{display:grid;place-items:center;min-width:0;height:34px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--ink);font:inherit;font-size:10px;cursor:pointer}
.jalali-calendar-day:hover{border-color:var(--green);background:color-mix(in srgb,var(--green) 8%,var(--panel))}
.jalali-calendar-day.selected{background:var(--green);color:var(--ink);font-weight:800}
@media(max-width:760px){
  .auth-page{padding-top:18px}
  .auth-layout{grid-template-columns:1fr;gap:11px;max-width:560px}
  .auth-story{min-height:0;padding:21px 22px;border-radius:20px}
  .auth-mark{width:39px;height:39px;margin:0 0 14px;border-radius:13px}
  .auth-mark svg{width:22px;height:22px}
  .auth-kicker{margin:0 0 5px;font-size:9px}
  .auth-story h1{font-size:29px;letter-spacing:-.8px}
  .auth-story>p:last-of-type{margin-top:7px;font-size:10px}
  .auth-story-rule{width:46px;margin-top:12px}
  .auth-card{padding:20px;border-radius:20px}
  .account-section-cards{grid-template-columns:1fr 1fr}
  .profile-fold-body{padding:15px}
}
@media(max-width:420px){
  .account-section-cards{grid-template-columns:1fr}
  .account-section-card,.account-section-card:last-child{min-height:67px;padding:12px 14px}
  .jalali-calendar{min-width:0}
}

/* Compact, theme-safe sign-in banner and account tile grid. */
.auth-layout{align-items:center}
.auth-story{justify-content:center;min-height:0;padding:24px;border-color:color-mix(in srgb,var(--green) 24%,var(--line));background:radial-gradient(circle at 88% 14%,color-mix(in srgb,var(--green) 14%,transparent),transparent 43%),linear-gradient(145deg,var(--panel),color-mix(in srgb,var(--green) 7%,var(--panel)));color:var(--ink)}
.auth-story:before,.auth-story:after{border-color:color-mix(in srgb,var(--green) 22%,transparent)}
.auth-story:before{width:190px;height:190px;inset:20px -76px auto auto}
.auth-story:after{width:126px;height:126px;inset:52px -43px auto auto}
.auth-mark{width:44px;height:44px;margin-bottom:17px;border-color:var(--line);background:var(--soft)}
.auth-mark svg{width:23px;height:23px}
.auth-kicker{margin:0 0 7px;color:var(--muted)}
.auth-story h1{font-size:clamp(26px,3.2vw,36px);letter-spacing:-.8px}
.auth-story>p:last-of-type{margin:9px 0 0;color:var(--muted);font-size:11px;line-height:1.8}
.auth-story-rule{width:48px;height:2px;margin-top:15px}
.auth-tab.active{background:var(--ink);color:var(--bg);box-shadow:0 5px 14px color-mix(in srgb,var(--ink) 16%,transparent)}
.auth-submit{border-color:var(--ink);background:var(--ink);color:var(--bg);box-shadow:0 8px 20px color-mix(in srgb,var(--ink) 18%,transparent)}
.auth-submit:hover{filter:brightness(1.08)}
.account-section-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.account-section-card,.account-section-card:last-child{grid-column:auto;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:1fr auto;grid-template-areas:"icon arrow" "label label";align-items:stretch;gap:12px;min-height:126px;padding:17px;border-radius:18px;background:linear-gradient(145deg,color-mix(in srgb,var(--panel) 93%,var(--green) 7%),var(--panel));text-align:start}
.account-section-card-icon{grid-area:icon;align-self:start;width:40px;height:40px;border-radius:13px}
.account-section-card strong{grid-area:label;align-self:end;font-size:13px;line-height:1.55}
.account-section-card-arrow{grid-area:arrow;display:grid;place-items:center;width:28px;height:28px;margin:0;border:1px solid var(--line);border-radius:50%;background:var(--panel);font-size:14px}
@media(max-width:760px){
  .auth-story{padding:17px 18px;border-radius:18px}
  .auth-mark{margin-bottom:11px}
  .auth-kicker{margin-bottom:5px}
  .auth-story h1{font-size:24px}
  .auth-story>p:last-of-type{margin-top:5px;font-size:10px}
  .auth-story-rule{margin-top:10px}
  .account-section-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .account-section-card,.account-section-card:last-child{min-height:108px;padding:14px;border-radius:16px}
}
@media(max-width:420px){
  .auth-story{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto auto;align-items:center;column-gap:12px;row-gap:1px;padding:14px 15px}
  .auth-mark{grid-column:1;grid-row:1/4;width:38px;height:38px;margin:0;border-radius:12px}
  .auth-kicker{grid-column:2;grid-row:1;margin:0}
  .auth-story h1{grid-column:2;grid-row:2;margin:0;font-size:21px}
  .auth-story>p:last-of-type{grid-column:2;grid-row:3;margin:2px 0 0;font-size:9px}
  .auth-story-rule{display:none}
  .account-section-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .account-section-card,.account-section-card:last-child{min-height:102px;padding:12px}
  .account-section-card strong{font-size:11px}
  .account-section-card-icon{width:34px;height:34px}
}
@media(max-width:340px){.account-section-cards{grid-template-columns:1fr}}
.auth-card-heading{margin-bottom:11px}
.auth-card-heading p{display:none}

/* Auth banner copy and account overview tile refinements. */
.auth-mark,.auth-kicker,.auth-story-rule,.auth-card-heading{display:none!important}
.auth-story{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;min-height:0;padding:26px 30px}
.auth-story h1{max-width:none;margin:0;font-size:clamp(26px,3.2vw,36px);line-height:1.35}
.auth-story .auth-story-lead{margin:0;color:var(--ink);font-size:15px;font-weight:750;line-height:1.8}
.auth-story .auth-story-copy{margin:0;color:var(--muted);font-size:10px;line-height:1.9}
#toast.error{top:82px;bottom:auto;border-color:var(--red);background:var(--red);color:#fff}
.account-section-card,.account-section-card:last-child{grid-template-columns:minmax(0,1fr) 22px;grid-template-rows:1fr auto;grid-template-areas:"icon ." "label arrow"}
.account-section-card-icon{width:32px;height:32px;border-radius:10px}
.account-section-card-icon svg{width:16px;height:16px}
.account-section-card strong{font-size:15px}
.account-section-card-arrow{grid-area:arrow;display:grid;place-items:center;width:22px;height:22px;margin:0;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:18px;line-height:1}
@media(max-width:760px){
  #toast.error{top:auto;bottom:74px}
  .auth-story{padding:17px 18px;gap:6px}
  .auth-story h1{font-size:24px}
  .auth-story .auth-story-lead{font-size:13px}
  .auth-story .auth-story-copy{font-size:10px}
  .account-section-card-icon{width:30px;height:30px}
  .account-section-card-icon svg{width:15px;height:15px}
  .account-section-card strong{font-size:14px}
}
@media(max-width:420px){
  .auth-story{padding:14px 15px;gap:5px}
  .auth-story h1{font-size:22px}
  .account-section-card-icon{width:28px;height:28px}
  .account-section-card-icon svg{width:14px;height:14px}
  .account-section-card strong{font-size:13px}
}

/* Registration flow, stable dock, and collapsible settings update panel. */
.auth-story .auth-story-lead{width:100%}
.auth-story>p.auth-story-copy{width:100%;max-width:none;white-space:nowrap;font-size:clamp(8px,.72vw,10px);letter-spacing:-.15px}
.auth-story-copy strong{color:var(--ink);font-weight:850}
.auth-page .field:focus,.auth-page .field:focus-visible{border-color:color-mix(in srgb,var(--green) 52%,var(--line));outline:1px solid color-mix(in srgb,var(--green) 38%,var(--line));outline-offset:0;box-shadow:0 0 0 1px color-mix(in srgb,var(--green) 9%,transparent)}
.auth-username-field{position:relative;display:grid;gap:4px;min-width:0}
.auth-username-field.is-register .field{padding-inline-end:42px}
.auth-username-status{position:absolute;top:16px;right:12px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-size:16px;font-weight:800;line-height:1;pointer-events:none}
.auth-username-status.available{color:var(--green);background:color-mix(in srgb,var(--green) 11%,var(--panel))}
.auth-username-status.taken{color:var(--red);background:color-mix(in srgb,var(--red) 10%,var(--panel))}
.auth-field-hint{margin-inline-start:12px;color:var(--muted);font-size:8px;line-height:1.5}
.auth-password-wrap{position:relative;min-width:0}
.auth-password-wrap .field{padding-inline-end:45px}
.auth-password-toggle{position:absolute;z-index:1;inset-inline-end:8px;top:11px;display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:9px;background:transparent;color:var(--muted);cursor:pointer}
.auth-password-toggle:hover{background:var(--soft);color:var(--ink)}
.auth-password-toggle svg{width:18px;height:18px}
.auth-password-toggle.is-visible:after{position:absolute;width:19px;height:1.5px;border-radius:9px;background:currentColor;content:"";transform:rotate(-42deg)}
.auth-captcha-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0}
.auth-captcha-equation{display:grid;place-items:center;min-width:86px;height:40px;padding:0 10px;border:1px solid var(--line);border-radius:11px;background:var(--soft);color:var(--ink);direction:ltr;font-size:13px;font-weight:750}
.welcome-overlay{position:fixed;z-index:260;inset:0;display:grid;place-items:center;padding:24px;background:color-mix(in srgb,var(--ink) 24%,transparent);backdrop-filter:blur(10px);pointer-events:none;animation:welcome-fade 2s ease both}
.welcome-glass{display:grid;justify-items:center;gap:15px;width:min(520px,100%);padding:42px 28px;border:1px solid color-mix(in srgb,var(--line) 60%,var(--bg));border-radius:28px;background:color-mix(in srgb,var(--panel) 82%,transparent);box-shadow:0 24px 90px color-mix(in srgb,var(--ink) 24%,transparent);backdrop-filter:blur(28px);color:var(--ink);text-align:center}
.welcome-glass>span{display:grid;place-items:center;width:58px;height:58px;border:1px solid var(--line);border-radius:18px;background:var(--soft);color:var(--green)}
.welcome-glass svg{width:30px;height:30px}
.welcome-glass h1{margin:0;font-size:clamp(25px,5vw,42px);letter-spacing:-.7px}
@keyframes welcome-fade{0%{opacity:0;transform:scale(.985)}12%{opacity:1;transform:scale(1)}78%{opacity:1}100%{opacity:0;transform:scale(1.012)}}
.flow-fortune-card .flow-fortune-art{bottom:10px}
.flow-fortune-card[data-random-poet] .flow-fortune-art{bottom:12px}
.settings-update-disclosure{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--panel) 92%,var(--soft));box-shadow:var(--shadow)}
.settings-update-toggle{display:flex;align-items:center;gap:11px;min-height:64px;padding:10px 16px;list-style:none;cursor:pointer}
.settings-update-toggle::-webkit-details-marker{display:none}
.settings-update-toggle::marker{content:""}
.settings-update-toggle::after{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line);border-radius:50%;color:var(--green);content:"⌄";font-size:19px;line-height:1;transition:transform .2s}
.settings-update-disclosure[open]>.settings-update-toggle::after{transform:rotate(180deg)}
.settings-update-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--soft);color:var(--green)}
.settings-update-icon svg{width:18px;height:18px}
.settings-update-toggle strong{font-size:13px}
.settings-update-hint{margin-inline-start:auto;color:var(--muted);font-size:9px}
.settings-update-content{padding:0 12px 12px}
.settings-update-content .account-section-v6{margin:0;padding:14px}
.settings-update-content .account-section-v6>.section-head{display:none}
body>.mobile-nav{position:fixed!important;z-index:100!important;inset-inline:0!important;inset-block-end:0!important;box-sizing:border-box;width:100%;transform:translate3d(0,0,0);will-change:transform}
@media(max-width:760px){
  .auth-story>p.auth-story-copy{font-size:clamp(7px,2vw,8px)}
}
@media(max-width:600px){
  .flow-fortune-card .flow-fortune-art{bottom:8px}
  .flow-fortune-card[data-random-poet] .flow-fortune-art{bottom:10px}
  body>.mobile-nav{height:calc(60px + env(safe-area-inset-bottom))!important;padding:3px 8px env(safe-area-inset-bottom)!important;contain:layout paint}
  .page{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
}

/* Aryan: only style the new subtitle; preserve all legacy card/layout rules. */
.hero .hero-copy{max-width:640px;margin:8px auto 18px;color:var(--muted);font-size:13px;line-height:1.9;padding-inline:12px}
html[data-lang=en] .hero .hero-copy{line-height:1.65}

/* Web Push controls are isolated from existing mobile card/layout styles. */
.push-notification-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end;max-width:100%;min-width:0}
.push-notification-controls select{width:auto;min-width:96px;max-width:120px}
.push-notification-controls button{min-height:44px;white-space:normal;line-height:1.6}
.push-notification-controls small{flex-basis:100%;font-size:11px;color:var(--muted);line-height:1.7;text-align:start}
@media(max-width:600px){.push-setting{align-items:stretch;flex-direction:column}.push-notification-controls{justify-content:flex-start}.push-notification-controls button{flex:1;min-width:0}}

/* Oryaan mobile QA: dock is a single flat row, never a raised active card. */
@media(max-width:600px){
 body>.mobile-nav{
   display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));
   align-items:stretch;gap:5px;
   height:calc(66px + env(safe-area-inset-bottom))!important;
   min-height:0!important;padding:5px 10px calc(5px + env(safe-area-inset-bottom))!important;
   overflow:hidden!important;contain:layout paint;
 }
 body>.mobile-nav .nav-slider{display:none!important}
 body>.mobile-nav>button,body>.mobile-nav>button.active{
   position:relative!important;inset:auto!important;flex:none!important;
   box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
   justify-content:center!important;align-items:center!important;gap:3px!important;
   width:100%!important;height:54px!important;min-height:0!important;max-height:54px!important;
   margin:0!important;padding:5px 2px!important;
   border-radius:13px!important;transform:none!important;translate:none!important;
   box-shadow:none!important;overflow:hidden!important;
 }
 body>.mobile-nav>button.active{background:var(--soft)!important;color:var(--ink)!important}
 body>.mobile-nav>button svg{flex:none!important;width:20px!important;height:20px!important;margin:0!important}
 body>.mobile-nav>button span{display:block;max-width:100%;font-size:11px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body>.mobile-nav>button::before,body>.mobile-nav>button::after{display:none!important}
 .page{padding-bottom:calc(104px + env(safe-area-inset-bottom))}
 .poem-fab{inset-block-end:calc(94px + env(safe-area-inset-bottom))!important}
}

/* iOS standalone: make the bottom dock reach the physical screen edge. */
@media(max-width:600px){
 html,body{min-height:100%;min-height:100dvh}
 body>.mobile-nav{
   position:fixed!important;bottom:0!important;inset-block-end:0!important;
   top:auto!important;inset-block-start:auto!important;
   transform:none!important;translate:none!important;
   height:calc(66px + env(safe-area-inset-bottom,0px))!important;
   padding:5px 10px calc(5px + env(safe-area-inset-bottom,0px))!important;
   background:var(--panel)!important;
   overflow:visible!important;contain:none!important;
   box-shadow:0 0 0 1px var(--line),0 50px 0 50px var(--panel)!important;
 }
 body>.mobile-nav::after{
   content:"";display:block!important;position:absolute;z-index:-1;
   left:0;right:0;top:100%;height:100px;background:var(--panel);
   pointer-events:none;
 }
}

/* iOS PWA dock: remove artificial bottom spacer; let safe-area be part of the dock. */
@media(max-width:600px){
  html{height:100%;height:100dvh}
  body{min-height:100%;min-height:100dvh}
  body>.mobile-nav{
    position:fixed!important;
    left:0!important;right:0!important;bottom:0!important;
    inset-block-end:0!important;inset-block-start:auto!important;
    width:100%!important;max-width:none!important;
    margin:0!important;
    height:calc(62px + env(safe-area-inset-bottom,0px))!important;
    min-height:calc(62px + env(safe-area-inset-bottom,0px))!important;
    padding:4px 10px calc(4px + env(safe-area-inset-bottom,0px))!important;
    border-radius:0!important;
    background:var(--solid)!important;
    overflow:visible!important;contain:none!important;
    transform:none!important;translate:none!important;
    box-shadow:0 -1px 0 var(--line),0 120px 0 120px var(--solid)!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  }
  body>.mobile-nav::after{
    content:""!important;position:absolute!important;display:block!important;
    top:100%!important;bottom:auto!important;left:0!important;right:0!important;
    height:120px!important;background:var(--solid)!important;
    pointer-events:none!important;z-index:-1!important;
  }
  body>.mobile-nav>button,body>.mobile-nav>button.active{
    height:54px!important;max-height:54px!important;min-height:54px!important;
    margin:0!important;transform:none!important;
  }
}

/* Final iPhone layout: fixed-height dock, no doubled safe-area spacing. */
@media(max-width:600px){
  body>.mobile-nav{
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
    align-items:end!important;gap:5px!important;
    position:fixed!important;left:0!important;right:0!important;
    top:auto!important;bottom:0!important;inset-block-end:0!important;
    width:100%!important;height:72px!important;min-height:72px!important;max-height:72px!important;
    margin:0!important;padding:5px 10px 6px!important;
    background:var(--solid)!important;box-sizing:border-box!important;
    transform:none!important;translate:none!important;contain:none!important;
    overflow:visible!important;
    box-shadow:0 -1px 0 var(--line)!important;
  }
  body>.mobile-nav::after{display:none!important;content:none!important}
  body>.mobile-nav>button,body>.mobile-nav>button.active{
    width:100%!important;height:60px!important;min-height:60px!important;max-height:60px!important;
    margin:0!important;padding:5px 2px!important;
    align-self:end!important;transform:none!important;translate:none!important;
  }
  .page{padding-bottom:calc(94px + env(safe-area-inset-bottom,0px))!important}
  .poem-fab{inset-block-end:calc(88px + env(safe-area-inset-bottom,0px))!important}
}

/* 0.8.5: compact home cards and quiet Flow cards; controls retain their design. */
.landing .poet-grid,.flow-page .flow-sections{
  background-image:none;
}
html #app .landing .poet-card,
html #app .flow-page :is(.flow-card,.flow-empty-card,.flow-verse-banner){
  background:linear-gradient(145deg,color-mix(in srgb,var(--solid) 70%,transparent),color-mix(in srgb,var(--solid) 43%,transparent));
  border:1px solid color-mix(in srgb,var(--solid) 55%,var(--line));
  -webkit-backdrop-filter:blur(22px) saturate(155%);
  backdrop-filter:blur(22px) saturate(155%);
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ink) 10%,transparent),0 7px 22px color-mix(in srgb,var(--ink) 5%,transparent);
}
.landing .poet-card{height:110px;min-height:110px;padding:15px 16px;border-radius:17px}
html #app .landing .poet-card h3.poet-name{font-size:20px!important;line-height:1.55;max-width:76%;margin:28px 0 0}
html #app .landing .poet-card h3.poet-name-long{font-size:18px!important}
.landing .poet-card-actions{top:11px;left:11px}
html #app .flow-page .flow-card{height:100px;padding:15px;border-radius:18px}
html #app .flow-page :is(.flow-person-card,.flow-poem-card,.flow-recent-card) .flow-card-copy{
  position:relative;inset:auto;transform:none;display:flex;flex-direction:column;justify-content:center;gap:8px;height:100%;text-align:start;
}
html #app .flow-page .flow-card-copy h3{font-size:15px;line-height:1.6;margin:0;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:start}
html #app .flow-page .flow-card-copy p{font-size:12px;line-height:1.5;margin:0;color:var(--muted)}
html #app .flow-page .flow-recent-card .flow-card-copy h3{font-size:17px}
html #app .flow-page .flow-fortune-copy{max-width:62%}
@media(max-width:600px){
  .landing .poet-card{height:98px;min-height:98px;padding:12px 13px}
  html #app .landing .poet-card h3.poet-name{font-size:18px!important;margin-top:25px}
  html #app .landing .poet-card h3.poet-name-long{font-size:16px!important}
  html #app .flow-page .flow-card{height:94px;padding:12px}
  html #app .flow-page .flow-card-copy h3{font-size:14px}
  html #app .flow-page .flow-card-copy p{font-size:11px}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html #app .landing .poet-card,html #app .flow-page :is(.flow-card,.flow-empty-card,.flow-verse-banner){background:var(--solid)}
}
@media(prefers-reduced-transparency:reduce){
  html #app .landing .poet-card,html #app .flow-page :is(.flow-card,.flow-empty-card,.flow-verse-banner){background:var(--solid);-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* 0.8.6: neutral canvas, compact glass tiles, and only verse + fortunes. */
html #app .landing .poet-grid,html #app .flow-page .flow-sections{background:none!important}
html #app .landing .poet-card{
  height:88px!important;min-height:88px!important;aspect-ratio:auto!important;
  padding:12px 14px!important;border-radius:16px;
  display:flex;align-items:center;
}
html #app .landing .poet-card::before,
html #app .landing .poet-card::after{display:none!important;content:none!important}
html #app .landing .poet-card h3.poet-name{
  font-size:19px!important;margin:0!important;line-height:1.5;max-width:calc(100% - 38px);
  white-space:normal;overflow-wrap:normal;
}
html #app .landing .poet-card h3.poet-name-long{font-size:17px!important}
html #app .landing .poet-card-actions{top:50%!important;transform:translateY(-50%);left:12px;right:auto}
html[dir=ltr] #app .landing .poet-card-actions{right:12px;left:auto}
html #app .flow-page .flow-fortune-slider{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;
  grid-auto-columns:auto;gap:12px;overflow:visible;padding:2px 2px 12px;
}
html #app .flow-page .flow-fortune-card{width:100%;min-width:0;height:98px}
html #app .flow-page .flow-fortune-card::before,
html #app .flow-page .flow-fortune-card::after{display:none!important;content:none!important}
@media(max-width:600px){
  html #app .landing .poet-grid{gap:9px}
  html #app .landing .poet-card{height:76px!important;min-height:76px!important;padding:10px 12px!important}
  html #app .landing .poet-card h3.poet-name{font-size:17px!important}
  html #app .landing .poet-card h3.poet-name-long{font-size:15px!important}
  html #app .landing .poet-card-actions{left:9px}
  html[dir=ltr] #app .landing .poet-card-actions{right:9px;left:auto}
  html #app .flow-page .flow-fortune-card{height:90px;padding:12px}
}

/* 0.8.7: names sit on the card's vertical centre, aligned with the reading edge. */
html #app .landing .poet-card h3.poet-name{
  position:absolute!important;top:50%!important;right:14px;left:auto;
  transform:translateY(-50%)!important;margin:0!important;
  width:calc(100% - 55px);max-width:calc(100% - 55px);text-align:right;
}
html[dir=ltr] #app .landing .poet-card h3.poet-name{right:auto;left:14px;text-align:left}
html #app .flow-page [data-flow-verse-card]{touch-action:pan-y!important;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
@media(max-width:600px){
  html #app .landing .poet-card h3.poet-name{right:12px}
  html[dir=ltr] #app .landing .poet-card h3.poet-name{right:auto;left:12px}
}

/* 0.8.8: a quiet, persistent cue for the verse swipe interaction. */
.flow-page .flow-swipe-hint{display:flex;flex-direction:column;align-items:center;gap:7px;margin-top:12px;color:var(--muted);font-size:11px;line-height:1.6}
.flow-page .flow-swipe-dots{display:flex;align-items:center;justify-content:center;gap:5px;direction:ltr;height:6px}
.flow-page .flow-swipe-dot{display:block;width:5px;height:5px;border-radius:99px;background:color-mix(in srgb,var(--ink) 22%,transparent);transition:width .2s,background .2s}
.flow-page .flow-swipe-dot.is-current{width:14px;background:var(--green)}
@media(prefers-reduced-motion:reduce){.flow-page .flow-swipe-dot{transition:none}}

/* 0.8.11: brief attributed text in the existing poem modal. */
.commentary-modal .commentary-poem-title{margin-bottom:20px;color:var(--muted)}
.commentary-modal .commentary-short-text{margin:0;padding:0;color:var(--ink);font-size:16px;line-height:2.1;text-align:start;white-space:normal}
.commentary-modal .commentary-credit{font-size:11px;color:var(--muted);margin-top:18px}
.commentary-modal .commentary-credit a{text-decoration:underline;text-underline-offset:3px}

/* Compact poet and work cards, with one disclosure per verse. */
html #app .landing .poet-card{justify-content:center}
html #app .landing .poet-card h3.poet-name,
html[dir=ltr] #app .landing .poet-card h3.poet-name{
  position:static!important;inset:auto!important;transform:none!important;
  width:100%;max-width:100%;text-align:center;
}
.poet-works-page .collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.poet-works-page .collection-card{height:auto;min-height:80px;padding:12px 14px;display:flex;flex-direction:column;justify-content:center;gap:5px}
.poet-works-page .collection-card-top{height:auto;min-height:0}
.poet-works-page .collection-card h3{max-width:100%;margin:0;font-size:16px;line-height:1.65;overflow-wrap:anywhere}
.couplet-menu{position:absolute;left:10px;top:20px;z-index:2}
.couplet-menu summary{list-style:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:var(--muted);cursor:pointer}
.couplet-menu summary::-webkit-details-marker{display:none}
.couplet-menu summary svg{width:22px;height:22px}
.couplet-menu summary:hover,.couplet-menu[open] summary{background:var(--soft);color:var(--ink)}
.couplet-menu summary:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.couplet-menu-items{position:absolute;top:40px;left:0;min-width:155px;padding:5px;border:1px solid var(--line);border-radius:14px;background:var(--solid);box-shadow:0 8px 25px #0002;direction:inherit}
.couplet-menu-items button,.couplet-menu-items .couplet-heart{position:static;transform:none;display:flex;align-items:center;gap:10px;width:100%;height:auto;min-height:44px;padding:9px 11px;border:0;border-radius:9px;background:transparent;color:var(--ink);font:inherit;font-size:13px;text-align:start;white-space:nowrap}
.couplet-menu-items button:hover{background:var(--soft)}
.couplet-menu-items svg{width:18px;height:18px;flex-shrink:0}
.couplet-menu-items .couplet-heart.saved{color:var(--red)}
.couplet:has(.couplet-menu[open]){overflow:visible;z-index:10}
.focus-mode .couplet-menu{display:none}
@media(max-width:700px){.poet-works-page .collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.poet-works-page .collection-card{min-height:76px;padding:10px 12px}.poet-works-page .collection-card h3{font-size:14px}.couplet-menu{left:4px;top:16px}}

/* Keep the poet's name at the exact horizontal and vertical card centre. */
html #app .landing .poet-card{display:grid!important;place-items:center!important}
html #app .landing .poet-card h3.poet-name,
html[dir=ltr] #app .landing .poet-card h3.poet-name{
  position:absolute!important;inset:0!important;top:0!important;right:0!important;bottom:0!important;left:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box;width:100%!important;max-width:100%!important;height:100%!important;
  margin:0!important;padding:8px 12px;transform:none!important;text-align:center!important;
}
