/* Detailed composition and page-specific responsive refinements. */
@layer components {
 .icon { display:inline-block; width:1.25em; height:1.25em; flex-shrink:0; vertical-align:middle; }
 .brand-mark { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:linear-gradient(130deg,#ab5bea,#7834e5); box-shadow:0 3px 18px #893fe326; }
 .brand-mark svg {width:19px;height:19px;color:white;}
 .header-inner {max-width:1440px;margin:auto;padding-inline:28px;}
 .desktop-nav a {display:inline-flex;align-items:center;gap:5px;white-space:nowrap;}
 .desktop-nav a[href='/support'],.desktop-nav a[href='/karmagramers']{color:#e8bb51;}
 .desktop-nav a svg{width:15px;}
 .mobile-auth{display:flex;gap:10px;margin-top:12px;}
 .mobile-auth>a{flex:1;justify-content:center;}
 .mobile-nav {max-height:calc(100dvh - 70px);overflow:auto;}
 .button-ghost{color:var(--purple);background:transparent;}
 .text-link{display:inline-flex;align-items:center;gap:8px;color:var(--purple);font-weight:550;}
 .text-link:hover{color:#d8c5ff;}
 .hero.home-hero{padding-block:100px 62px;}
 .home-hero h1{max-width:1070px;line-height:1.16;font-size:clamp(2.5rem,5.25vw,4.55rem);}
 .home-hero>.container>p{max-width:780px;}
 .hero-orbit{position:absolute;pointer-events:none;width:680px;height:680px;border-radius:50%;background:radial-gradient(circle,#6731a513,transparent 65%);top:-130px;left:calc(50% - 340px);}
 .hero-scroll{display:grid;place-items:center;color:#817092;width:42px;height:42px;border:1px solid #ffffff12;border-radius:50%;margin:42px auto 0;transition:color .2s,border .2s;}
 .hero-scroll:hover{color:var(--purple);border-color:#8b5cf688;}
 .section-tinted{background:linear-gradient(135deg,#121016,#141018 50%,#101014);border-block:1px solid #ffffff03;}
 .section-warm{background:radial-gradient(ellipse at 20% 50%,#8d581310,transparent 60%),#111014;}
 .feature-card{display:flex;flex-direction:column;align-items:flex-start;gap:20px;}
 .feature-card.text-center{align-items:center;}
 .feature-card>.muted{flex:1;}
 .feature-card>.card-icon{margin-bottom:4px;}
 .feature-card>.button,.feature-card>.text-link{margin-top:6px;}
 .gold,.card-icon.gold,.hero-badge.gold{color:#f4c554;background:#fbbf2410;border-color:#fbbf2429;}
 .green,.card-icon.green{color:#6cdaa8;background:#34d39910;border-color:#34d39926;}
 .pillar-card{padding:34px;display:flex;flex-direction:column;gap:22px;}
 .pillar-card>.muted{flex:1;}
 .pillar-card>.button{align-self:flex-start;}
 .pillar-card blockquote{padding-left:16px;border-left:2px solid #a78bfa66;color:#a29aaf;font-size:.9rem;font-style:italic;line-height:1.7;}
 .pillar-card .card-icon{width:58px;height:58px;margin:0;flex-shrink:0;background:linear-gradient(140deg,#8b4ace,#6424b1);color:#fff;}
 .pillar-card:last-child .card-icon{background:linear-gradient(140deg,#ffd562,#daa320);color:#2b1d03;}
 .catalog-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;}
 .category-card{position:relative;text-align:center;padding:25px 12px;font-size:.9rem;display:flex;flex-direction:column;align-items:center;min-height:140px;}
 .category-card .card-icon{width:46px;height:46px;margin:0 auto 14px;}
 .category-arrow{position:absolute;top:12px;right:12px;width:14px;opacity:0;transition:opacity .2s;}
 .category-card:hover .category-arrow{opacity:1;}
 .karma-preview{padding:38px;}
 .progress-bar.gold{background:linear-gradient(90deg,#c39339,#fbbf24);}
 .progress-bar.green{background:linear-gradient(90deg,#4f9870,#71dbab);}
 .story-preview{padding:0;overflow:hidden;}
 .story-art{display:flex;align-items:center;justify-content:center;height:185px;background:radial-gradient(ellipse at 30% 30%,#7141b344,transparent 70%),linear-gradient(145deg,#221530,#322045);position:relative;}
 .story-art::after{content:'';position:absolute;inset:18px;border:1px solid #ffffff0a;border-radius:50% 40%;transform:rotate(-18deg);}
 .story-art>.icon{width:58px;height:58px;color:#c09ced;stroke-width:1.2;}
 .story-art-1{background:radial-gradient(ellipse at 30% 30%,#35725d33,transparent 70%),linear-gradient(145deg,#152d27,#172820);}
 .story-art-1>.icon{color:#86c5a5;}
 .story-art-2{background:radial-gradient(ellipse at 30% 30%,#86613933,transparent 70%),linear-gradient(145deg,#332817,#30202f);}
 .story-art-2>.icon{color:#e4bd85;}
 .event-date{background:#a78bfa12;border:1px solid #a78bfa20;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;width:66px;height:74px;flex-shrink:0;}
 .event-date strong{font-size:1.65rem;font-weight:650;color:#c4a4f4;line-height:1.1;}.event-date span{font-size:.65rem;letter-spacing:.14em;margin-top:5px;color:#b3a5c4;}
 .memory-preview{padding:44px;position:relative;isolation:isolate;overflow:hidden;min-height:340px;display:flex;align-items:center;background:linear-gradient(135deg,#211432,#17131e);border-color:#8653bc33;}
 .memory-orbit{position:absolute;width:400px;height:400px;border:1px solid #9863db18;border-radius:50%;top:-50px;right:-150px;box-shadow:0 0 0 35px #9863db06,0 0 0 80px #9863db04;}
 .memory-symbol{color:#b28bed;margin-bottom:32px;}.memory-symbol>.icon{width:72px;height:72px;stroke-width:1.2;}
 .final-cta{background:radial-gradient(ellipse at 20% 10%,#b767ec66,transparent 70%),linear-gradient(110deg,#743cc6,#6026b8 70%,#6125ae);}
 .final-cta h2{font-size:clamp(2rem,3.8vw,3.35rem);line-height:1.2;}
 .final-cta .hero-badge{color:#ede0ff;background:#ffffff08;border-color:#ffffff20;}
 .final-cta .button-secondary{background:#fff;color:#5d299d;border-color:#fff;}
 .final-cta .button-secondary:last-child{color:#fff;background:#ffffff08;border-color:#ffffff44;}
 .author-teaser{padding:50px 24px;background:radial-gradient(ellipse at 50% 0,#6d28d91c,transparent 80%);}
 .directory-card{display:flex;flex-direction:column;}
 .directory-card a:not(.button):hover{color:var(--purple);}
 .card-metrics{display:flex;flex-wrap:wrap;gap:16px;border-top:1px solid var(--border);padding-top:16px;font-size:.875rem;}
 .card-metrics>span{display:inline-flex;align-items:center;gap:5px;}.card-metrics small{color:var(--muted);}
 .mini-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:14px 4px;border:1px solid #ffffff06;border-radius:12px;background:#09090b66;text-align:center;margin-top:auto;}
 .mini-stats>div{display:flex;flex-direction:column;gap:3px;}.mini-stats span{font-size:.7rem;color:var(--muted);}.mini-stats strong{font-size:1.15rem;font-weight:600;}
 .avatar-lg{width:56px;height:56px;font-size:1.2rem;flex-shrink:0;}
 .avatar-xl{width:104px;height:104px;font-size:2.2rem;flex-shrink:0;border:5px solid #18151f;border-radius:22px;}
 .filter-count{padding:0 6px;border-radius:6px;background:#ffffff0c;font-size:.7rem;}
 .breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:.8rem;color:var(--muted);margin-bottom:22px;}.breadcrumbs a:hover{color:var(--purple);}.breadcrumbs svg{width:14px;}
 .entity-header{padding:0;overflow:hidden;}.entity-cover{height:175px;background:radial-gradient(ellipse at 70% 60%,#a16cec33,transparent 65%),linear-gradient(120deg,#542784,#7241a5);position:relative;overflow:hidden;}
 .entity-cover>.icon{position:absolute;right:50px;top:-35px;width:250px;height:250px;opacity:.15;stroke-width:.5;}
 .entity-identity{display:flex;align-items:flex-end;gap:22px;padding:0 32px;position:relative;margin-top:-36px;}
 .entity-identity>.flex-1{padding-top:54px;}.entity-identity h1{font-size:clamp(1.7rem,2.2vw,2.5rem);}.entity-identity>.button{flex-shrink:0;}
 .auth-section{background:radial-gradient(ellipse at 50% 10%,#602bab16,transparent 55%);min-height:75vh;}
 .auth-intro{text-align:center;max-width:720px;margin:0 auto 32px;}.auth-intro h1{font-size:clamp(2rem,4vw,2.7rem);}
 .auth-symbol{width:66px;height:66px;background:linear-gradient(145deg,#a056de,#6d29bd);border:1px solid #c692f455;border-radius:22px;display:grid;place-items:center;color:white;margin:0 auto 25px;box-shadow:0 12px 50px #6a2db622;}
 .auth-symbol>.icon{width:32px;height:32px;}
 .auth-card{max-width:460px;margin-inline:auto;}
 .auth-divider{border-top:1px solid var(--border);margin:25px 0;}
 .password-field{position:relative;}.password-field>.field{padding-right:52px;}.password-field>.icon-button{position:absolute;right:3px;top:3px;min-height:42px;}
 .account-choice{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;min-height:285px;}
 .registration-steps{display:flex;align-items:center;justify-content:center;gap:14px;color:#81788e;margin:0 auto 34px;font-size:.8rem;}.registration-steps>span{display:flex;align-items:center;gap:8px;}.registration-steps b{width:26px;height:26px;border:1px solid #ffffff22;border-radius:50%;display:grid;place-items:center;}.registration-steps .is-active{color:#cbb2f5;}.registration-steps .is-active b{background:#8d56cf;color:white;border-color:#8d56cf;}.registration-steps .step-line{height:1px;width:45px;background:#ffffff18;}
 .form-status:not(:empty){padding:14px 16px;border:1px solid #a78bfa33;background:#a78bfa0c;color:#cebcf0;border-radius:12px;font-size:.875rem;line-height:1.7;margin-top:18px;}
 .modal-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;margin-bottom:22px;padding-right:30px;}.modal-heading h2{font-size:1.5rem;}
 .social-links{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px;}.social-links>a{display:inline-flex;padding:6px 9px;background:#ffffff06;border:1px solid #ffffff0a;border-radius:7px;color:#c0b7cc;font-size:.75rem;}.social-links>a:hover{background:#9c66e51a;color:#e5d7fb;}
 .footer-contact{display:flex;align-items:center;gap:9px;font-size:.75rem;color:var(--muted);margin-top:12px;overflow-wrap:anywhere;}.footer-contact:hover{color:var(--purple);}.footer-contact svg{width:16px;}
 .footer-column h2{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;line-height:1.5;margin-bottom:20px;}
 .footer-column li{margin:10px 0;}.footer-column a{font-size:.8rem;line-height:1.7;}
 .footer-legal{border-top:1px solid var(--border);margin-top:44px;padding-top:24px;display:flex;flex-direction:column;gap:20px;align-items:center;font-size:.72rem;color:#8f869c;}.footer-legal nav{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 26px;}.footer-legal a:hover{color:var(--purple);}
 .floating-tools{position:fixed;bottom:22px;left:20px;z-index:35;display:flex;gap:8px;}.floating-tool{display:flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:0 12px;background:#1d172be6;backdrop-filter:blur(12px);border:1px solid #a78bfa40;border-radius:14px;color:#c6a8f3;box-shadow:0 4px 18px #0004;font-size:.75rem;}.floating-tool:hover{background:#322044;}
 .sitemap-dialog{max-width:840px;}.sitemap-link{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:.85rem;min-height:36px;}.sitemap-link:hover{color:var(--purple);}.sitemap-link>.icon{width:14px;}
 .dialog-open{overflow:hidden;}.skip-link{position:fixed;z-index:100;top:8px;left:8px;transform:translateY(-160%);padding:10px 16px;background:#d3baff;color:#211330;border-radius:10px;}.skip-link:focus{transform:translateY(0);}
 .noscript-note{padding:16px;text-align:center;background:#21162c;}
 .dashboard-mobile-header{display:none;}
 .dashboard-sidebar>.brand{margin-bottom:30px;}.sidebar-profile{display:flex;gap:12px;align-items:center;margin:0 0 20px;}.dashboard-sidebar nav>a{display:flex;align-items:center;gap:13px;padding:12px 14px;border-radius:10px;font-size:.875rem;color:var(--muted);}.dashboard-sidebar nav>a:hover{background:#a78bfa0c;color:white;}.dashboard-sidebar nav>a.is-active{background:#a78bfa14;color:#c5a9fa;border:1px solid #a78bfa20;}.sidebar-bottom{margin-top:auto;padding-top:26px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:12px;}.sidebar-bottom a{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:.875rem;min-height:40px;}
 .dashboard-sidebar{display:flex;flex-direction:column;}
 .document-placeholder{max-width:760px;margin:auto;}.document-placeholder h2{font-size:1.4rem;margin:32px 0 16px;}
}
@media(min-width:1280px){.footer-grid{grid-template-columns:1.8fr repeat(4,minmax(0,1fr));gap:30px;}.section-heading:has(>.button){display:flex;max-width:none;align-items:end;justify-content:space-between;text-align:left;gap:24px;}.section-heading:has(>.button)>.button{flex-shrink:0;}.section-heading:has(>.button) h2{margin-bottom:12px;}}
@media(max-width:1279px){.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));}.entity-identity{flex-wrap:wrap;align-items:center;}.entity-identity>.button{margin-top:5px;}}
@media(max-width:1023px){.dashboard-mobile-header{display:flex;align-items:center;justify-content:space-between;height:64px;padding-inline:20px;background:#100d18f5;border-bottom:1px solid #ffffff12;position:sticky;top:0;z-index:45;}.dashboard-sidebar{padding-top:85px;}.dashboard-sidebar>.brand{display:none;}.sidebar-open::after{content:'';position:fixed;inset:64px 0 0;background:#0008;z-index:35;}.sidebar-open .dashboard-sidebar{transform:translateX(0);z-index:40;background:#17111f;}.entity-identity h1{font-size:2rem;}}
@media(max-width:767px){.hero.home-hero{padding-block:64px 42px;}.hero-scroll{margin-top:30px;}.home-hero h1{font-size:clamp(2.2rem,6.6vw,3.5rem);line-height:1.18;}.home-hero .hero-badge{font-size:.7rem;padding:7px 10px;gap:6px;}.home-hero .hero-badge>.icon{width:14px;}.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}.category-card{min-height:130px;padding:20px 8px;font-size:.8rem;}.category-card .card-icon{width:40px;height:40px;}.pillar-card{padding:24px;gap:18px;}.pillar-card .card-icon{width:46px;height:46px;}.pillar-card h3{font-size:1.15rem;}.pillar-card>.button{width:100%;}.memory-preview,.karma-preview{padding:28px;}.memory-preview{min-height:300px;}.section-heading:has(>.button)>.button{margin-top:22px;}.author-teaser{padding:35px 22px;}.floating-tools{bottom:max(14px,env(safe-area-inset-bottom));left:12px;gap:6px;}.floating-tool{min-width:42px;padding:0 11px;}.floating-tool>span{display:none;}.entity-cover{height:120px;}.entity-identity{padding:0 22px;gap:14px;margin-top:-30px;align-items:flex-start;}.entity-identity>.avatar-xl{width:80px;height:80px;font-size:1.8rem;}.entity-identity>.flex-1{padding-top:42px;flex-basis:calc(100% - 94px);}.entity-identity h1{font-size:1.45rem;}.entity-identity>.button{margin-top:5px;}.entity-identity .muted{font-size:.75rem;}.auth-card.card{padding:26px;}.header-inner{padding-inline:18px;}}
@media(max-width:479px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.home-hero h1{font-size:clamp(2.08rem,8.6vw,2.8rem);}.hero-actions{align-items:stretch;}.hero-actions>.button{width:100%;}.auth-card.card{padding:22px;}.auth-card .form-check{font-size:.75rem;}.registration-steps{gap:8px;font-size:.73rem;}.registration-steps .step-line{width:25px;}.card-metrics{gap:12px;font-size:.8rem;}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;}}
@layer components {
 .guide-image{width:26px;height:26px;object-fit:contain;filter:brightness(1.5);}
 button:is([data-like],[data-bookmark],[data-save],[data-share],[data-author-preset]){min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;}
 .crime-categories-grid{grid-template-columns:repeat(6,minmax(0,1fr));}
 .crime-categories-grid>.card{grid-column:span 2;}
 @media(min-width:1024px){
  .crime-categories-grid>.card:last-child:nth-child(3n + 1){grid-column:3 / span 2;}
 }
 @media(min-width:768px) and (max-width:1023px){
  .crime-categories-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
  .crime-categories-grid>.card:last-child:nth-child(odd){grid-column:2 / span 2;}
 }
 @media(max-width:767px){
  .crime-categories-grid{grid-template-columns:minmax(0,1fr);}
  .crime-categories-grid>.card,.crime-categories-grid>.card:last-child{grid-column:auto;}
 }
}
