:root{--bg: #f7f1e9;--surface: rgba(0, 0, 0, .05);--surface-strong: rgba(0, 0, 0, .12);--text: #2b241d;--muted: #7a6f64;--primary: #b97b36;--primary-strong: #8f5a1e;--success: #2ed47a;--danger: #ff6b6b;--shadow: 0 10px 30px rgba(0, 0, 0, .4);--radius: 14px}@keyframes gradientShift{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes floaty{0%{transform:translateY(0)}50%{transform:translateY(-6px)}to{transform:translateY(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes cardEnter{0%{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes pop{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}@keyframes glowPulse{0%{box-shadow:0 0 #fff0}50%{box-shadow:0 0 24px #ffffff26}to{box-shadow:0 0 #fff0}}@keyframes borderSpin{to{transform:rotate(360deg)}}html,body,#root{height:100%}body{margin:0;color:var(--text);background:radial-gradient(1200px 600px at -10% -20%,rgba(255,255,255,.45),transparent 60%),radial-gradient(1000px 500px at 110% 120%,rgba(216,161,95,.18),transparent 60%),radial-gradient(900px 500px at 20% 120%,rgba(185,123,54,.22),transparent 65%),var(--bg);background-attachment:fixed}[data-theme=dark]{--bg: #12100e;--surface: rgba(255, 255, 255, .04);--surface-strong: rgba(255, 255, 255, .18);--text: #f8efe4;--muted: #c4b7aa;--primary: #d8a15f;--primary-strong: #b97b36;--shadow: 0 10px 30px rgba(0, 0, 0, .7)}.mobile-only{display:none}.desktop-only{display:block}.page-grid{display:grid;grid-template-columns:260px 1fr;gap:16px;align-items:start}.library-panel{position:sticky;top:12px;align-self:start;max-height:calc(100vh - 24px);overflow-y:auto;-webkit-overflow-scrolling:touch}.page-main{min-width:0}.library-toggle{border:1px solid var(--surface-strong)}@keyframes stripesDrift{0%{background-position:0 0,0 0}to{background-position:400px 0,-300px 0}}.dashboard{position:relative}.dashboard-hero{position:relative;padding:18px 18px 10px;border-radius:var(--radius);background:radial-gradient(1200px 500px at -10% -40%,rgba(185,123,54,.12),transparent 60%),radial-gradient(900px 400px at 110% -30%,rgba(216,161,95,.1),transparent 60%),#ffffffb3;border:1px solid var(--surface-strong);box-shadow:0 8px 20px #0000001f;overflow:hidden}.bg-stripes{position:fixed;top:0;right:0;bottom:0;left:0;z-index:0;pointer-events:none;opacity:.12;background:repeating-linear-gradient(115deg,#b97b361f,#b97b361f 18px,#0000 18px,#0000 40px),repeating-linear-gradient(-115deg,#d8a15f1a,#d8a15f1a 14px,#0000 14px,#0000 36px);animation:stripesDrift 60s linear infinite}.bg-gold-strips{position:fixed;top:0;right:0;bottom:0;left:0;z-index:0;pointer-events:none;overflow:hidden}.header-bg-stripes{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;z-index:0;pointer-events:none;overflow:hidden}@keyframes stripMove{0%{transform:translate(-40%) rotate(var(--angle, 24deg))}to{transform:translate(140%) rotate(var(--angle, 24deg))}}.gold-strip{position:absolute;left:-50%;width:200%;height:14px;background:linear-gradient(to right,#ffe0aa00,#d8a15f2e 28%,#d8a15f73,#b97b3647 72%,#ffe0aa00);filter:saturate(1.1);box-shadow:0 0 24px #d8a15f2e,0 0 46px #b97b361f;opacity:.55;animation:stripMove var(--dur, 30s) linear infinite;animation-delay:var(--delay, 0s)}.gold-strip--1{top:22%;--angle: 22deg;--dur: 28s;--delay: -8s}.gold-strip--2{top:52%;--angle: -20deg;--dur: 36s;--delay: -14s;opacity:.5}.gold-strip--3{top:78%;--angle: 24deg;--dur: 42s;--delay: -4s;opacity:.45}.bg-letters{position:fixed;top:0;right:0;bottom:0;left:0;z-index:0;pointer-events:none}.header-bg-letters{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;z-index:1;pointer-events:none}@keyframes letterFloat{0%{transform:translateZ(0) rotate(0);opacity:0}12%{opacity:.18}40%{transform:translate3d(18px,-22px,0) rotate(8deg);opacity:.32}70%{transform:translate3d(-14px,18px,0) rotate(-6deg);opacity:.26}92%{opacity:.12}to{transform:translateZ(0) rotate(0);opacity:0}}.letter{position:absolute;font-weight:700;font-size:34px;line-height:1;color:#b97b368c;text-shadow:0 0 14px rgba(216,161,95,.25),0 0 28px rgba(216,161,95,.18);filter:saturate(1.1);animation:letterFloat var(--dur, 30s) ease-in-out infinite;animation-delay:var(--delay, 0s)}.letter.ta{font-family:"Noto Serif Tamil",Latha,Nirmala UI,serif}.letter.en{font-family:Playfair Display,Georgia,serif}.header-letter{position:absolute;font-weight:700;font-size:22px;line-height:1;color:#b97b36cc;text-shadow:0 0 12px rgba(216,161,95,.5),0 0 26px rgba(216,161,95,.3);pointer-events:none;animation:headerLetterDrift var(--dur, 10s) ease-in-out infinite;animation-delay:var(--delay, 0s);opacity:0}.header-letter.ta{font-family:"Noto Serif Tamil",Latha,Nirmala UI,serif}.header-letter.en{font-family:Playfair Display,Georgia,serif}.header-letter--1{top:-10px;left:-14px;--dur: 9s;--delay: -2s}.header-letter--2{bottom:-12px;left:0;--dur: 11s;--delay: -5s}.header-letter--3{top:-14px;right:0;--dur: 10s;--delay: -7s}.header-letter--4{bottom:-10px;right:-10px;--dur: 12s;--delay: -9s}@keyframes headerLetterDrift{0%{transform:translateZ(0) scale(1) rotate(0);opacity:0}10%{opacity:.5}35%{transform:translate3d(14px,-14px,0) scale(1.06) rotate(10deg);opacity:.9}65%{transform:translate3d(-10px,10px,0) scale(1.03) rotate(-8deg);opacity:.75}90%{opacity:.4}to{transform:translateZ(0) scale(1) rotate(0);opacity:0}}.app-root{position:relative;z-index:1}.glass-shell{border-radius:24px;padding:18px 18px 22px;background:linear-gradient(135deg,#ffffff38,#ffffff0f);border:1px solid rgba(255,255,255,.28);box-shadow:0 18px 50px #0000008c,0 0 0 1px #ffffff0f inset;-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4)}[data-theme=dark] .glass-shell{background:linear-gradient(135deg,#12100eeb,#12100ec7);border-color:#ffffff24;box-shadow:0 24px 70px #000000d9,0 0 0 1px #ffffff0a inset}.site-header{position:sticky;top:0;z-index:50;border-radius:18px;padding:14px 16px;background:radial-gradient(900px 400px at -10% -40%,rgba(216,161,95,.18),transparent 60%),radial-gradient(900px 400px at 110% -30%,rgba(185,123,54,.16),transparent 60%),linear-gradient(120deg,#ffffffd9,#ffffffb8);border:1px solid rgba(255,255,255,.6);box-shadow:0 18px 40px #00000073,0 0 0 1px #ffffff1f inset;-webkit-backdrop-filter:blur(16px) saturate(1.3);backdrop-filter:blur(16px) saturate(1.3);transform:translateZ(0)}[data-theme=dark] .site-header{background:radial-gradient(900px 400px at -10% -40%,rgba(40,26,18,.95),transparent 60%),radial-gradient(900px 400px at 110% -30%,rgba(26,18,14,.92),transparent 60%),linear-gradient(120deg,#100c0af7,#100c0aeb);border-color:#ffffff29;box-shadow:0 24px 60px #000000e6,0 0 0 1px #ffffff0a inset}.site-header--bright{background:radial-gradient(1400px 560px at -25% -70%,rgba(255,219,171,.5),transparent 60%),radial-gradient(1000px 480px at 125% -45%,rgba(216,161,95,.42),transparent 58%),linear-gradient(135deg,#fff,#fff8ecfa);box-shadow:0 26px 65px #000000a6,0 0 0 1px #ffffff42 inset;border-color:#d8a15ff2}[data-theme=dark] .site-header--bright{background:radial-gradient(1400px 560px at -25% -70%,rgba(216,161,95,.4),transparent 60%),radial-gradient(1000px 480px at 125% -45%,rgba(92,61,38,.8),transparent 58%),linear-gradient(135deg,#100c0afc,#0c0806f7);box-shadow:0 30px 80px #000000fa,0 0 0 1px #ffffff14 inset;border-color:#d8a15f}.site-header:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;border:1px solid rgba(255,255,255,.5);opacity:.6;pointer-events:none;mix-blend-mode:screen}.site-header__top{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;position:relative;z-index:2}.brand-wrap{display:flex;align-items:center;position:relative}.site-brand{display:inline-flex;align-items:center;gap:10px;font-family:Playfair Display,Georgia,serif;font-weight:700;font-size:1.25rem;letter-spacing:.5px;color:#2f271f}[data-theme=dark] .site-brand{color:var(--text)}.site-brand__mark{width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,#b97b36e6,#d8a15fe6);box-shadow:inset 0 1px #fff9,0 6px 14px #00000026}.site-brand__glyph{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;font-weight:800;font-size:18px;letter-spacing:.5px;font-family:"Noto Serif Tamil",Latha,Nirmala UI,serif;color:#2f271f;background:radial-gradient(120% 120% at 30% 20%,#ffffffd9,#ffffff59),linear-gradient(135deg,#d8a15ff2,#b97b36e6);border:1px solid rgba(0,0,0,.08);box-shadow:inset 0 1px #ffffffb3,0 8px 16px #00000029;margin-right:2px;transform:translateZ(0);transition:transform .18s ease,box-shadow .18s ease}.site-brand__glyph:hover{transform:translateY(-1px) scale(1.02);box-shadow:inset 0 1px #fffc,0 10px 24px #0003}.site-nav{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap}.site-link{color:#3a3128;text-decoration:none;font-weight:600;padding:6px 12px;border-radius:999px;position:relative;background:#ffffff1a;border:1px solid rgba(255,255,255,.4);box-shadow:0 6px 14px #00000026,inset 0 1px #ffffffb3;transition:color .2s ease,background .2s ease,transform .15s ease,box-shadow .2s ease,border-color .2s ease}.site-link:hover{background:#fff3;border-color:#d8a15fb3;box-shadow:0 10px 22px #00000040,inset 0 1px #ffffffd9;transform:translateY(-1px)}[data-theme=dark] .site-link{color:#f8efe4;background:#00000059;border-color:#ffffff40}[data-theme=dark] .site-link:hover{background:#ffffff2e;border-color:#d8a15fd9}.site-actions{display:inline-flex;align-items:center;gap:8px}.site-header__bottom{margin-top:8px;display:flex;justify-content:space-between;align-items:center;gap:12px;position:relative;z-index:2}.site-tagline{color:var(--muted);font-size:.9rem;font-weight:600;text-transform:uppercase;letter-spacing:.16em}.site-footer{margin-top:24px;padding:14px 0;border-top:1px solid rgba(0,0,0,.08);background:#ffffff59}.site-footer__inner{max-width:900px;margin:0 auto;padding:0 16px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.dashboard-hero h1{margin:0 0 4px;letter-spacing:.3px}.dashboard-hero p{margin:0;color:var(--muted)}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0 6px}.select-modern{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--surface);color:var(--text);border:1px solid var(--surface-strong);border-radius:10px;padding:10px 12px;box-shadow:var(--shadow);box-sizing:border-box}.filter-bar{border-top:1px solid rgba(0,0,0,.06);border-bottom:1px solid rgba(0,0,0,.06);background:linear-gradient(180deg,#fff9,#ffffff4d);padding:8px 10px;border-radius:0 0 12px 12px;box-sizing:border-box}.filter-toggle{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;border:1px solid var(--surface-strong);background:#ffffffd9;color:var(--text);font-size:12px;cursor:pointer}[data-theme=dark] .filter-toggle{background:#00000059}.filter-toggle__icon{font-size:14px}.filter-row{display:grid;grid-template-columns:1fr;gap:8px;align-items:end;width:100%}.field{display:grid;gap:6px;width:100%}.field__label{font-size:11px;color:var(--muted)}.input-with-icon{position:relative}.input-with-icon .icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);pointer-events:none;opacity:.7}.input-with-icon .input{padding-left:32px;box-sizing:border-box}.btn-clear{white-space:nowrap;border:1px solid var(--surface-strong)}.segment{display:inline-flex;background:var(--surface);border:1px solid var(--surface-strong);border-radius:10px;padding:4px;gap:4px}.segment__btn{border:none;background:transparent;color:var(--text);padding:6px 10px;border-radius:8px;cursor:pointer;font-weight:600;transition:background .15s ease,color .15s ease,transform .1s ease}.segment__btn:hover{background:#ffffff1a}.segment__btn.is-active{background:#d8a15f38;border:1px solid rgba(216,161,95,.45);color:#fff3e0;box-shadow:0 6px 16px #00000026,inset 0 1px #ffffff1a}.library .filter-row{grid-template-columns:1fr}.library .btn-clear{width:100%;justify-self:start}.library .filter-bar{margin:2px 0 6px;padding:10px;border-radius:10px;border:1px solid var(--surface-strong);background:#fff9;box-shadow:var(--shadow);overflow:hidden}.library .filter-row input[type=date]{width:100%;max-width:180px}@media (max-width: 420px){.library .filter-row input[type=date]{max-width:150px}}.btn{border:none;border-radius:12px;padding:10px 14px;font-weight:600;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,background .2s ease,color .2s ease;will-change:transform}.btn:active{transform:translateY(1px) scale(.98)}.btn-primary{background:linear-gradient(135deg,var(--primary) 0%,var(--primary-strong) 100%);color:#fff;box-shadow:0 10px 24px #3e79ff59}.btn-primary:hover{filter:brightness(1.05)}.btn-ghost{background:var(--surface);color:var(--text);border:1px solid var(--surface-strong)}.btn-ghost:hover{background:#ffffff1a}.btn--sm{padding:6px 10px;border-radius:10px;font-size:.9rem}.btn-latest-pulse{position:relative;animation:latestBtnPulse 1.6s ease-in-out infinite;box-shadow:0 0 #d8a15f8c,0 10px 24px #00000059}.btn-latest-pulse:after{content:"";position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;border-radius:inherit;border:2px solid rgba(255,255,255,.85);opacity:0;pointer-events:none;animation:latestBtnRing 1.6s ease-out infinite}@keyframes latestBtnPulse{0%{transform:translateY(0) scale(1);box-shadow:0 0 #d8a15f8c,0 10px 24px #00000059}50%{transform:translateY(-1px) scale(1.03);box-shadow:0 0 0 6px #d8a15f00,0 16px 32px #00000073}to{transform:translateY(0) scale(1);box-shadow:0 0 #d8a15f8c,0 10px 24px #00000059}}@keyframes latestBtnRing{0%{opacity:.7;transform:scale(1)}70%{opacity:0;transform:scale(1.15)}to{opacity:0;transform:scale(1.18)}}.panel{border:1px solid rgba(255,255,255,.22);background:linear-gradient(135deg,#ffffff2e,#ffffff0a);border-radius:var(--radius);padding:14px;box-shadow:0 10px 26px #00000047,0 0 0 1px #ffffff0a inset;-webkit-backdrop-filter:blur(10px) saturate(1.15);backdrop-filter:blur(10px) saturate(1.15);animation:fadeInUp .35s ease both}.card{border:1px solid var(--surface-strong);background:linear-gradient(180deg,#ffffff0f,#ffffff0a);border-radius:var(--radius);padding:14px;box-shadow:var(--shadow);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;animation:fadeInUp .35s ease both}.card:hover{transform:translateY(-4px);box-shadow:0 18px 40px #00000080;border-color:#ffffff2e}.poem-card{position:relative;border-radius:20px;padding:2px;background:linear-gradient(135deg,#b97b3647,#d8a15f38,#f0cda542);box-shadow:0 12px 28px #0000002e;transition:transform .25s ease,box-shadow .25s ease;overflow:hidden;animation:cardEnter .5s cubic-bezier(.2,.7,.2,1) both}.poem-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px #0003}.poem-card:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:18px;background:linear-gradient(160deg,#ffffffd9,#ffffff59);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:.9}.poem-card:after{content:"";position:absolute;top:-40%;right:-40%;bottom:-40%;left:-40%;background:radial-gradient(circle at top right,rgba(216,161,95,.22),transparent 62%),radial-gradient(circle at bottom left,rgba(173,118,83,.18),transparent 65%),radial-gradient(circle at 20% 30%,rgba(214,162,80,.15),transparent 70%);opacity:.5;z-index:0}.poem-card__body{position:relative;z-index:3;border-radius:18px;padding:20px;background:linear-gradient(175deg,#fffffffa,#ffffffeb);border:1px solid rgba(0,0,0,.08);box-shadow:inset 0 1px #ffffffe6;display:flex;flex-direction:column;gap:12px}.poem-card__stripe{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:20px;z-index:2;pointer-events:none}.poem-card__stripe:before{content:"";position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;padding:3px;border-radius:inherit;background:conic-gradient(from 0deg,#b97b3626,#b97b36a6 40deg,#d8a15fe6,#ffe6c8f2,#d8a15fe6 220deg,#b97b36a6 300deg,#b97b3626 360deg);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:borderSpin 6s linear infinite;filter:saturate(1.2);box-shadow:0 0 18px #d8a15f59,0 0 36px #b97b3647}.poem-card__header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.poem-card__title{margin:0;font-size:1.5rem;font-family:Playfair Display,Georgia,Times New Roman,serif;color:#2f271f;letter-spacing:.4px;text-shadow:0 1px 0 rgba(255,255,255,.6)}.poem-card__meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;color:#463c32cc;font-size:.9rem}.poem-card__badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:.75rem;background:#0000000a;border:1px solid rgba(0,0,0,.12);color:#3a3128;box-shadow:inset 0 1px #ffffffd9,0 6px 16px #0000000f}.poem-card__badge--lang-ta{background:#ba68c824;border-color:#9575cd66}.poem-card__badge--lang-en{background:#64b5f629;border-color:#42a5f566}.poem-card__badge--mood{background:#81c78429;border-color:#66bb6a66}.poem-card__badge--form{background:#ce93d829;border-color:#ab47bc66}.poem-card__badge--draft{background:#ffe0b22e;border-color:#ffb74d80}.poem-card__toggle{border:1px solid rgba(0,0,0,.14);background:#0000000a;color:#3a3128;padding:8px 12px;border-radius:12px;cursor:pointer;transition:transform .2s ease,background .2s ease,border .2s ease}.poem-card__toggle:hover{background:#0000000f;transform:translateY(-1px)}.poem-card__preview{margin:0;color:#3c342dc7;font-size:.95rem;line-height:1.6}.poem-card__collapsible{overflow:hidden;transition:height .28s ease}.poem-card__collapsible-inner{display:flex;flex-direction:column;gap:16px;padding-top:4px;animation:fadeInUp .25s ease both}.poem-card__nav{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:4px}.poem-card__nav-left,.poem-card__nav-right{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center}.poem-card__nav .btn{padding:4px 8px;font-size:.8rem}.poem-card__nav .btn[disabled]{opacity:.4;cursor:default;box-shadow:none}.poem-card__content{background:linear-gradient(180deg,#fff9f2,#fff4e8fa),repeating-linear-gradient(0deg,#00000004,#00000004 2px,#00000008 2px,#00000008 4px);border:1px solid rgba(40,32,24,.08);border-radius:14px;padding:16px;box-shadow:inset 0 1px #fffc,0 8px 18px #00000014}.poem-card__poem{margin:0;white-space:pre-wrap;font-family:Georgia,Times New Roman,serif;color:#2e261f;letter-spacing:.2px;line-height:1.7}.poem-card__book{margin-top:4px}.poem-share-footer{margin-top:8px;text-align:center;font-size:.75rem;color:#463c32bf}.poem-share-footer__link{text-decoration:underline}.poem-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;pointer-events:none}.poem-modal__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#000000a6;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);pointer-events:auto}.poem-modal__panel{position:relative;max-width:760px;width:calc(100% - 32px);max-height:90vh;padding:18px 18px 20px;border-radius:18px;background:radial-gradient(900px 400px at -10% -40%,rgba(216,161,95,.16),transparent 60%),radial-gradient(900px 400px at 110% -30%,rgba(185,123,54,.14),transparent 60%),#fffffff5;box-shadow:0 24px 70px #000000e6,0 0 0 1px #ffffff80 inset;overflow-y:auto;pointer-events:auto}[data-theme=dark] .poem-modal__panel{background:radial-gradient(900px 400px at -10% -40%,rgba(40,26,18,.95),transparent 60%),radial-gradient(900px 400px at 110% -30%,rgba(26,18,14,.92),transparent 60%),linear-gradient(120deg,#100c0af7,#100c0aeb);box-shadow:0 30px 80px #000000f2,0 0 0 1px #ffffff24 inset}.poem-modal__close{position:absolute;top:4px;right:4px;border:none;border-radius:999px;background:#e53935;color:#fff;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;box-shadow:0 2px 6px #0006;transition:background .15s ease,transform .1s ease,box-shadow .15s ease}.poem-modal__close:hover{background:#c62828;transform:translateY(-1px);box-shadow:0 4px 10px #00000080}.poem-modal__close:active{transform:translateY(0)}.book{position:relative;border-radius:14px;background:linear-gradient(180deg,#fffefa,#fff8ee);border:1px solid rgba(0,0,0,.08);box-shadow:0 10px 28px #00000014,inset 0 1px #ffffffe6;overflow:hidden}.book:before{content:"";position:absolute;top:0;bottom:0;left:50%;width:2px;transform:translate(-1px);background:linear-gradient(180deg,#0000000f,#00000005);box-shadow:0 0 14px #00000014;pointer-events:none}.book--single:before{display:none}.book__spread{display:block}.book__page{padding:18px 20px;min-height:240px;background:repeating-linear-gradient(0deg,#00000005,#00000005 2px,#0000 2px,#0000 28px),linear-gradient(180deg,#ffffffd9,#ffffffb3)}.book__page--left,.book__page--right{border:none;box-shadow:none}.book__title{margin:0 0 8px;font-family:Playfair Display,Georgia,serif;font-weight:700;font-size:1.1rem;color:#2f271f}.book__poem{margin:0;white-space:pre-wrap;font-family:Georgia,Times New Roman,serif;color:#2b241d;line-height:1.9;letter-spacing:.12px;text-align:left}.book__footer{margin-top:14px;display:flex;justify-content:space-between;align-items:center;color:#463c32cc;font-size:.92rem}.book__meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;color:#463c32cc;font-size:.9rem}.book__badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:#0000000a;border:1px solid rgba(0,0,0,.12);color:#3a3128}.poem-card__reactions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.poem-card__reaction{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.16);background:#0000000a;color:#3a3128;font-weight:600;cursor:pointer;transition:transform .2s ease,border .2s ease,background .2s ease;font-size:.95rem}.poem-card__reaction:active{animation:pop .18s ease}.poem-card__reaction:hover{transform:translateY(-1px);background:#0000000f}.poem-card__reaction[data-active=true][data-type=like]{background:#b97b362e;border-color:#b97b3673;box-shadow:0 8px 18px #b97b3640;animation:glowPulse 2.2s ease-in-out infinite}.poem-card__reaction[data-active=true][data-type=dislike]{background:#9c6a3c2e;border-color:#9c6a3c73;box-shadow:0 8px 18px #9c6a3c40;animation:glowPulse 2.2s ease-in-out infinite}.poem-card__status{font-size:.85rem;color:#e2e7ffb3}.poem-card__panel{background:#ffffffeb;border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:16px;box-shadow:inset 0 1px #fffc}.poem-card__panel h4{margin:0 0 10px;color:#3a2e22;font-weight:600}.poem-card__comment-list{display:grid;gap:10px}.poem-card__comment{background:#ffffffe6;border:1px solid rgba(0,0,0,.08);border-radius:10px;padding:10px 12px;box-shadow:inset 0 1px #fffc;animation:fadeInUp .3s ease both}.poem-card__comment-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:.82rem;color:#55483ce6}.poem-card__comment-text{margin-top:6px;color:#372e26f2;white-space:pre-wrap;font-size:.95rem}.poem-card__comment-delete{border:none;background:none;color:#b97b36e6;cursor:pointer;font-size:.8rem;transition:color .2s ease}.poem-card__comment-delete:hover{color:#9c6a3c}.poem-card__actions{display:flex;gap:10px;margin-top:6px;flex-wrap:wrap}.poem-card__action{border:1px solid rgba(255,255,255,.2);background:#ffffff14;color:#f5f8ff;padding:8px 14px;border-radius:999px;cursor:pointer;transition:transform .2s ease,background .2s ease}.poem-card__action:hover{background:#ffffff24;transform:translateY(-1px)}.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;font-size:12px;border:1px solid var(--surface-strong);background:#ffffff0f;color:var(--text)}.stack{display:grid;gap:12px}.chips{display:inline-flex;gap:8px;background:#ffffff0f;border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:4px}.chip{padding:6px 12px;border-radius:999px;border:1px solid transparent;background:transparent;color:var(--text);cursor:pointer;transition:background .2s ease,color .2s ease,border .2s ease,transform .15s ease}.chip:hover{background:#ffffff1a;transform:translateY(-1px)}.chip.active{background:#d8a15f38;border-color:#d8a15f73;color:#2f271f;box-shadow:0 6px 16px #00000040,inset 0 1px #ffffff1a}.library{background:linear-gradient(180deg,#fdf7ec,#f8ecda);border-radius:16px;border:1px solid rgba(185,123,54,.25);box-shadow:0 12px 28px #78552d40}[data-theme=dark] .library{background:linear-gradient(180deg,#1c130d,#120d09);border-color:#ffffff1f}.library-header{padding:10px 12px;border-bottom:1px solid rgba(0,0,0,.05);font-weight:700;color:#2f271f;background:linear-gradient(90deg,#b97b362e,#d8a15f14);border-top-left-radius:16px;border-top-right-radius:16px}[data-theme=dark] .library-header{color:#f8efe4;border-bottom-color:#ffffff1f;background:linear-gradient(90deg,#5c3d26b3,#1a120e4d)}.library-list{max-height:none;overflow-y:auto;padding:8px;background:repeating-linear-gradient(0deg,rgba(140,98,57,.08),rgba(140,98,57,.08) 1px,transparent 1px,transparent 28px)}.library-item{display:block;width:100%;text-align:left;padding:10px 12px;margin:4px 0;border-radius:10px;border:1px solid rgba(0,0,0,.04);background:linear-gradient(180deg,#fffdf7,#fff7e7);box-shadow:0 2px 6px #0f0a0514;position:relative;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,border-color .15s ease,background .15s ease}.library-item:before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:999px;background:linear-gradient(180deg,#916236e6,#d8a15fb3)}.library-item:hover{transform:translateY(-1px);box-shadow:0 8px 18px #0f0a052e;border-color:#d8a15f73}.library-item.selected{background:linear-gradient(135deg,#d8a15f29,#fff3e0f5);border-color:#b97b368c;box-shadow:0 10px 22px #00000026}.library-item .title{font-weight:700;color:#2f271f}.library-item .meta{font-size:12px;color:#463c32cc}.library-item .meta--lang-ta{color:#9575cdf2}.library-item .meta--lang-en{color:#1976d2f2}.library-item .meta--mood{color:#2e7d32f2}.library-item .meta--form{color:#7b1fa2f2}[data-theme=dark] .library-item{background:#14100efa;border-color:#ffffff1f;box-shadow:0 2px 8px #0009}[data-theme=dark] .library-item .title{color:#f8efe4}[data-theme=dark] .library-item .meta{color:#e8dfd4c7}.pagination-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px 10px;border-top:1px solid rgba(0,0,0,.06);background:#ffffffb3}[data-theme=dark] .pagination-bar{background:#0c0a08e6;border-top-color:#ffffff14}.pagination-bar .btn[disabled]{opacity:.5;cursor:default;box-shadow:none}.settings-drawer{position:fixed;top:50%;right:12px;transform:translateY(-50%);z-index:200;display:flex;align-items:center;gap:0}.settings-drawer__toggle{writing-mode:vertical-rl;text-orientation:mixed;padding:10px 6px;border-radius:10px 0 0 10px;border:1px solid rgba(0,0,0,.08);background:#ffffffe6;color:var(--text);cursor:pointer;box-shadow:0 4px 10px #00000040;font-weight:600;letter-spacing:.08em}[data-theme=dark] .settings-drawer__toggle{background:#100c0af2;border-color:#ffffff1f}.settings-drawer__panel{width:260px;max-width:72vw;padding:12px 14px 14px;border-radius:12px 0 0 12px;border:1px solid rgba(0,0,0,.08);background:#fffffff5;box-shadow:0 12px 30px #00000073;opacity:0;pointer-events:none;display:none;transform:translate(0);transition:opacity .16s ease-out}[data-theme=dark] .settings-drawer__panel{background:#100c0afa;border-color:#ffffff1a}.settings-drawer--open .settings-drawer__panel{opacity:1;pointer-events:auto;display:block}.settings-drawer__title{margin:0 0 8px;font-size:.95rem}.settings-drawer__section{margin-top:8px;display:grid;gap:6px}.settings-drawer__label{font-size:.8rem;text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}.settings-icon-btn{width:40px;height:40px;border-radius:999px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:18px}@media (max-width: 768px){.settings-drawer{position:fixed;top:auto;bottom:12px;right:12px;transform:none}.settings-drawer__toggle{writing-mode:horizontal-tb;border-radius:999px;padding:6px 10px}.settings-drawer__panel{border-radius:12px}}.library-item__top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.library-item__meta{display:flex;gap:8px;align-items:center;margin-top:6px}.library-date{font-size:12px;color:#463c32cc;white-space:nowrap;padding:2px 8px;border-radius:999px;background:#fff9;border:1px solid rgba(0,0,0,.06);box-shadow:inset 0 1px #fffc}@media (max-width: 768px){.mobile-only{display:block}.desktop-only{display:none}.site-header__top{grid-template-columns:1fr;justify-items:center}.brand-wrap{justify-self:center}.site-actions{justify-content:center;flex-wrap:wrap}.page-grid,.filter-row{grid-template-columns:1fr}.btn-clear{justify-self:start}.library-panel{position:static;order:2;display:none}.library-panel.open{display:block}.page-main{order:1}.library-list{max-height:none}.site-header{position:sticky;top:0}.site-header__top{gap:8px;flex-wrap:wrap}.auth-card{padding:16px}.poem-form__preview{padding:10px}.form-toolbar{gap:6px}}.shelf-badge{display:inline-block;margin-top:4px;margin-right:6px;padding:2px 8px;font-size:11px;border-radius:999px;color:#3a3128;background:#fff3e0e6;border:1px solid rgba(185,123,54,.35);box-shadow:inset 0 1px #fffc}.library-item:nth-child(3n+1):before{background:linear-gradient(180deg,#ad765373,#9c6a3c59)}.library-item:nth-child(3n+2):before{background:linear-gradient(180deg,#b97b3673,#d8a15f59)}.library-item:nth-child(3n+3):before{background:linear-gradient(180deg,#6d4c4173,#9c6a3c59)}.poem-actions{display:flex;gap:10px;margin-top:10px}.latest-poem{margin-bottom:16px;padding:12px 14px;border-radius:16px;background:radial-gradient(circle at top left,rgba(216,161,95,.18),transparent 60%),radial-gradient(circle at bottom right,rgba(185,123,54,.16),transparent 55%),linear-gradient(135deg,#fffcf4f5,#fff4e3f0);position:relative;border:1px solid rgba(216,161,95,.7);box-shadow:0 12px 32px #00000073,0 0 0 1px #ffffff1a inset;-webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2);overflow:hidden;animation:latestPoemGlow 3.2s ease-in-out infinite}[data-theme=dark] .latest-poem{background:radial-gradient(circle at top left,rgba(216,161,95,.32),transparent 60%),radial-gradient(circle at bottom right,rgba(92,61,38,.65),transparent 55%),linear-gradient(135deg,#14100ef7,#100c0aed);border-color:#d8a15fbf}.latest-poem:before{content:"";position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;border-radius:inherit;padding:2px;background:conic-gradient(from 0deg,#b97b361a,#d8a15fb3,#ffe4c4f2,#d8a15fb3,#b97b361a);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.9;pointer-events:none;animation:latestPoemBorderSpin 14s linear infinite}[data-theme=dark] .latest-poem:before{opacity:1}@keyframes latestPoemBorderSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes latestPoemGlow{0%{transform:translateY(0) scale(1);box-shadow:0 12px 32px #00000073,0 0 0 1px #ffffff1a inset}50%{transform:translateY(-1px) scale(1.01);box-shadow:0 16px 40px #0000008c,0 0 0 1px #ffffff2e inset}to{transform:translateY(0) scale(1);box-shadow:0 12px 32px #00000073,0 0 0 1px #ffffff1a inset}}.latest-poem__header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.latest-poem__badge{background:#d8a15f33;border-color:#d8a15f8c}.latest-poem__meta{flex:1;min-width:0}.latest-poem__title{margin:0;font-size:1.05rem;font-family:Playfair Display,Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.latest-poem__info{display:block;margin-top:2px;font-size:.8rem;color:var(--muted)}.latest-poem__excerpt{margin:8px 0 0;font-size:.9rem;color:var(--text);opacity:.9}.muted{color:var(--muted)}.input,.textarea{width:100%;background:var(--surface);color:var(--text);border:1px solid var(--surface-strong);border-radius:10px;padding:10px 12px;box-sizing:border-box}.textarea{min-height:150px}.floaty{animation:floaty 6s ease-in-out infinite}.auth-container{display:flex;justify-content:center;align-items:flex-start;min-height:60vh;padding:12px 0 24px}.auth-card{width:100%;max-width:420px;padding:18px;background:radial-gradient(900px 400px at -10% -40%,rgba(216,161,95,.1),transparent 60%),radial-gradient(900px 400px at 110% -30%,rgba(185,123,54,.08),transparent 60%),#ffffffb3;border:1px solid rgba(0,0,0,.1);box-shadow:0 14px 36px #0000002e;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.auth-header{margin-bottom:8px}.auth-title{margin:0 0 4px;font-family:Playfair Display,Georgia,serif;font-weight:700;letter-spacing:.3px;color:#2f271f}.auth-subtitle{margin:0}.form-field .field-label{margin-bottom:6px;font-weight:600;color:#3a3128}.error-text{padding:10px 12px;border-radius:10px;background:#ff6b6b14;border:1px solid rgba(255,107,107,.35);color:#7a1f1f}.success-text{padding:10px 12px;border-radius:10px;background:#2ed47a14;border:1px solid rgba(46,212,122,.35);color:#175c39}.auth-footer{margin-top:12px;display:flex;gap:6px;align-items:center}.poem-form{display:grid;gap:8px}.form-toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.form-toolbar__group{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}.form-toolbar__actions{display:inline-flex;gap:8px;align-items:center}.poem-form__preview{padding:12px}.poem-form__actions{margin-top:10px;display:flex;justify-content:flex-end;gap:8px}.ta-kb{display:grid;gap:6px}.ta-kb__row{display:flex;flex-wrap:wrap;gap:6px}.ta-kb__key{min-width:36px;padding:8px 10px;border-radius:10px;border:1px solid var(--surface-strong);background:var(--surface);color:var(--text);font-weight:700;font-size:1rem;cursor:pointer;transition:transform .1s ease,background .15s ease}.ta-kb__key:hover{transform:translateY(-1px)}.ta-kb__key:active{transform:translateY(0)}.ta-kb__hint{font-size:12px}
