/* Animora V28: Library, settings, legal, Google login and cinematic carousel */
body.v24-ui.v27-ui .v28-archive{
 max-width:1040px;margin:0 auto;padding:11px 0 35px;min-height:calc(100vh - 240px);
 font-family:Inter,system-ui,Arial,sans-serif;color:#f8edff;
}
body.v24-ui.v27-ui .v28-archive .library-head{
 position:relative;overflow:hidden;border-radius:20px;border:1px solid #8344b0;
 background:linear-gradient(115deg,#30134e,#120b25 70%,#29133e);
 box-shadow:inset 0 1px #be74db6a,0 5px 23px #030107bd;
 padding:22px 17px 19px;margin:0 0 16px!important;
}
body.v24-ui.v27-ui .v28-archive .library-head:before{
 content:'◈';position:absolute;right:-20px;top:-39px;font-size:175px;color:#e576fa18;font-weight:900;
}
body.v24-ui.v27-ui .v28-archive .library-head h1{
 font-size:clamp(26px,6.5vw,39px)!important;line-height:1.05;color:white;margin:7px 0!important;
 letter-spacing:-.5px;font-weight:900;
}
body.v24-ui.v27-ui .v28-archive .library-head p{
 color:#dbc8e8!important;font-size:12px;line-height:1.5;margin:0!important;
}
.v28-eyebrow{font-size:9px;font-weight:850;letter-spacing:2.1px;color:#db8cff}
.v28-archive-tag{display:inline-block;padding:6px 11px;border-radius:20px;border:1px solid #ae5fe6;
 color:#efbdff;background:#6f289b48;font-size:10px;font-weight:780;margin-top:13px;
 box-shadow:0 0 11px #a337df35}
body.v24-ui.v27-ui .v28-archive .library-filters{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:9px!important;margin:12px 0 16px!important;padding:0!important;
}
body.v24-ui.v27-ui .v28-archive .library-filters button{
 min-width:0!important;min-height:43px!important;padding:9px 6px!important;border-radius:13px!important;
 border:1px solid #664084!important;background:linear-gradient(140deg,#201132,#100c1d)!important;
 color:#e4c6f6!important;box-shadow:inset 0 0 8px #69308e24!important;
 font-size:clamp(10px,2.6vw,13px)!important;font-weight:760!important;
 white-space:normal!important;line-height:1.2!important;
}
body.v24-ui.v27-ui .v28-archive .library-filters button.active{
 border-color:#ed91ff!important;
 background:linear-gradient(110deg,#7c27b3,#b839c1)!important;color:#fff!important;
 box-shadow:0 0 13px #c046f56c,inset 0 1px #fff5!important;
}
body.v24-ui.v27-ui .v28-archive #libraryContent{
 border-radius:16px;color:#eee5fc;padding:0;min-height:100px;
}
body.v24-ui.v27-ui .v28-archive .library-media{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:11px!important;max-width:900px!important;
}
body.v24-ui.v27-ui .v28-archive .library-media .media-tile{
 width:100%!important;max-width:none!important;min-width:0!important;
 border-radius:15px!important;overflow:hidden;
 border:1px solid #834db6!important;background:linear-gradient(150deg,#26153b,#100c1e)!important;
 box-shadow:0 0 0 1px #b566f014,inset 0 0 20px #74319a35,0 7px 17px #000a;
 text-align:left;padding:0!important;color:white!important;
}
body.v24-ui.v27-ui .v28-archive .library-media .media-tile img{
 width:100%!important;aspect-ratio:4/5;object-fit:cover;display:block;
 border-bottom:1px solid #8c4aac;
}
body.v24-ui.v27-ui .v28-archive .library-media .media-tile .mtitle{
 font-size:14px;font-weight:850;color:#fff;display:block;margin:8px 9px 3px;
}
body.v24-ui.v27-ui .v28-archive .library-media .media-tile small{
 font-size:10px;color:#cab6dc;display:block;margin:0 9px 12px;
}
body.v24-ui.v27-ui .v28-archive .empty-state{
 border-radius:17px;border:1px dashed #634086;background:linear-gradient(135deg,#1c122b,#110b1b);
 padding:45px 15px!important;text-align:center;color:#bfadd0;
}
body.v24-ui.v27-ui .v28-archive .empty-state .big{font-size:37px}
body.v24-ui.v27-ui #v27Profile .v28-settings{margin-top:24px}
.v28-heading{
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 font-size:17px;font-weight:850;color:#f9e9ff;margin:22px 0 10px;
}
.v28-heading>span{font-size:11px;color:#cb7bfa}
.v28-card{
 border:1px solid #653b89;border-radius:17px;overflow:hidden;
 background:linear-gradient(140deg,#241430,#130d23);
 box-shadow:inset 0 1px #ebbdff20,0 3px 13px #0005;
}
.v28-row{
 display:flex;justify-content:space-between;align-items:center;gap:9px;
 padding:13px 11px;border-bottom:1px solid #ffffff15;min-height:67px;
}
.v28-row:last-of-type{border-bottom:0}
.v28-row>div:first-child{flex:1;min-width:0}
.v28-row b{font-size:12.5px;font-weight:820;display:block;color:#f7e7ff;margin-bottom:4px}
.v28-row small{font-size:10px;color:#b8a6c8;line-height:1.4;display:block}
.v28-row button,.v28-row select{
 border:1px solid #9c62c5;border-radius:12px;background:#4d2571;
 color:white;font-size:11px;font-weight:780;min-height:35px;padding:7px 9px;
 white-space:nowrap;min-width:77px;
}
.v28-row select{min-width:100px}
.v28-version{color:#d68bff;font-size:12px}
.v28-subpanel{
 font-size:11px;line-height:1.5;padding:13px;background:#130e20;
 border-bottom:1px solid #644182;color:#d3bfde;
}
.v28-subpanel[hidden]{display:none!important}
.v28-transaction{
 display:flex;align-items:center;justify-content:space-between;
 gap:9px;border-bottom:1px solid #ffffff13;padding:9px 3px;
}
.v28-transaction:last-child{border-bottom:none}
.v28-transaction span{overflow-wrap:anywhere}
.v28-transaction b{color:#ffafa2}
.v28-transaction b.v28-positive{color:#a3f2bd}
.v28-switch{display:inline-flex;align-items:center;cursor:pointer;position:relative}
.v28-switch input{position:absolute;opacity:0;width:1px;height:1px}
.v28-switch span{width:43px;height:25px;border-radius:19px;border:1px solid #754d91;
 background:#31213c;position:relative;transition:.2s}
.v28-switch span:before{content:'';position:absolute;top:2px;left:3px;width:19px;height:19px;
 border-radius:50%;background:#ba9ec8;transition:.2s}
.v28-switch input:checked+span{background:#9338da;border-color:#d881ff}
.v28-switch input:checked+span:before{transform:translateX(16px);background:#fff}
.v28-settings-foot{font-size:10px;line-height:1.5;color:#9986a6;margin:17px 2px 0}
.v28-privacy-info{
 background:#1d132d;color:#ddcce8;border:1px solid #6a4a84;border-radius:12px;
 padding:9px;margin:10px 0;font-size:10px;line-height:1.5;
}
.v28-privacy-info p{margin:5px 0}
.v28-privacy-info button{border:0;background:none;color:#e2a6ff;text-decoration:underline;
 font-weight:750;font-size:10px}
.v28-google-area{
 border-top:1px solid #574568;margin-top:15px;padding:14px 0 3px;
 display:flex;align-items:center;flex-direction:column;gap:8px;
}
.v28-or{font-size:12px;color:#d8b2e8}
.v28-auth-note{max-width:300px;color:#c7b6d1;font-size:10px;line-height:1.4;text-align:center}
.v28-google-button{min-height:41px;display:flex;justify-content:center}
.v28-legal-dialog[hidden]{display:none!important}
body.v28-legal-open{overflow:hidden!important}
.v28-legal-dialog{
 position:fixed;inset:0;z-index:9999;background:#05040dea;
 display:flex;align-items:center;justify-content:center;padding:14px;
 color:#f1e8f9;font-family:Inter,system-ui,Arial,sans-serif;
}
.v28-legal-shell{
 width:min(680px,100%);max-height:min(790px,92dvh);
 display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(145deg,#1b102b,#0b0915);
 border:1px solid #9f5ad1;border-radius:19px;box-shadow:0 0 45px #000c,0 0 18px #ad44e346;
}
.v28-legal-top{
 display:flex;align-items:center;justify-content:space-between;
 padding:14px 16px;border-bottom:1px solid #694d85;gap:12px;
}
.v28-legal-top strong{font-size:14px;color:#fff}
.v28-legal-top button{color:white;border-radius:9px;background:#39204f;border:1px solid #805aab;
 min-width:36px;min-height:35px;font-size:17px}
.v28-legal-body{padding:16px;overflow-y:auto;overscroll-behavior:contain}
.v28-legal-version{font-size:10px;color:#d794fc;letter-spacing:1.2px}
.v28-legal-body h2{font-size:24px;margin:8px 0 14px}
.v28-legal-part{border:1px solid #4f3a65;background:#130e20;border-radius:13px;
 padding:13px 12px;margin-bottom:12px}
.v28-legal-part h3{font-size:14px;margin:0 0 9px}
.v28-legal-part p{font-size:12px;color:#d0c0dd;line-height:1.55;margin:7px 0}
.v28-legal-agree{display:grid;gap:13px;padding:15px 8px}
.v28-legal-agree[hidden]{display:none!important}
.v28-legal-agree label{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.4}
.v28-legal-agree label input{height:18px;width:18px;flex:0 0 18px;accent-color:#bb59ee}
.v28-legal-agree small{font-size:10px;color:#b9a8c5}
.v28-legal-msg{font-size:11px;color:#ffa0d4;min-height:15px;margin:5px 0}
.v28-legal-footer{padding:11px 16px;border-top:1px solid #563774;background:#120d1d}
.v28-legal-footer button{border:1px solid #dda3f7;border-radius:12px;color:white;
 background:linear-gradient(110deg,#8b2bd5,#cb48be);padding:12px 18px;font-size:14px;font-weight:850;width:100%}
.v28-legal-footer button[hidden]{display:none!important}
body.v24-ui.v27-ui .v24-hero{isolation:isolate}
body.v24-ui.v27-ui .v24-hero:after{display:none!important}
body.v24-ui.v27-ui .v24-hero:before{
 background:linear-gradient(90deg,#0b071cf4 0%,#150825b0 39%,transparent 92%)!important;
 z-index:1!important;
}
body.v24-ui.v27-ui .v24-hero-copy{z-index:3!important;position:relative}
body.v24-ui.v27-ui .v28-hero-photo{
 position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
 object-position:center;display:block;z-index:0;opacity:1;
 transition:opacity 250ms ease;filter:saturate(1.12) contrast(1.06);
}
body.v24-ui.v27-ui .v24-hero .v24-hero-dots{display:none!important}
.v28-slide-controls{
 position:absolute;z-index:4;left:10px;right:10px;bottom:7px;
 display:flex;align-items:center;justify-content:space-between;
 pointer-events:none;
}
.v28-slide-controls>button{
 width:27px;height:27px;border-radius:50%;border:1px solid #d290ffb8;
 background:#170b2bb6;color:#fff;font-size:23px;line-height:1;display:grid;place-items:center;
 pointer-events:auto;box-shadow:0 0 9px #a34bcd66;
}
.v28-slide-dots{display:flex;gap:6px;pointer-events:auto;align-items:center}
.v28-slide-dots>button{border:0;background:#ccabdb7c;border-radius:20px;
 padding:0;width:6px;height:6px;min-height:6px;min-width:6px}
.v28-slide-dots>button.active{width:19px;background:#ec75fa;box-shadow:0 0 10px #f25cff}
.v28-example-label{position:absolute;right:10px;top:9px;z-index:3;font-size:8px;
 color:#f7e0ff;background:#10082073;border:1px solid #c885df6b;padding:4px 7px;border-radius:17px}
@media(max-width:400px){
 .v28-legal-dialog{padding:7px}
 .v28-legal-body{padding:11px}
 body.v24-ui.v27-ui .v28-archive .library-head{padding:18px 13px}
 .v28-row{padding:11px 9px}
 .v28-row b{font-size:11px}
 .v28-row small{font-size:9px}
 .v28-row button,.v28-row select{min-width:66px;padding:7px 5px;font-size:10px}
 .v28-hero-photo{object-position:60% center}
}
@media(prefers-reduced-motion:reduce){.v28-hero-photo,.v28-switch span{transition:none!important}}

/* Library project cards: match Neon Creator cards even in the legacy project grid. */
body.v24-ui.v27-ui .v28-archive #libraryContent>.project,
body.v24-ui.v27-ui .v28-archive #libraryContent .project{
 border:1px solid #804ab2!important;background:linear-gradient(125deg,#29143d,#110c24 75%)!important;
 box-shadow:inset 0 1px #c676fa2a,0 8px 18px #0006!important;
 border-radius:16px!important;padding:13px!important;
 display:flex;align-items:center;gap:13px;color:#f9ecff;margin-bottom:11px;
 min-width:0;max-width:870px;
}
body.v24-ui.v27-ui .v28-archive #libraryContent .project .poster{
 min-width:70px;width:76px;height:76px;border:1px solid #9f5acc;
 border-radius:12px;background:linear-gradient(155deg,#562283,#29183f);
 box-shadow:inset 0 0 15px #d560f753,0 0 12px #9e35f543;
 display:grid;place-items:center;color:white;font-size:25px;
}
body.v24-ui.v27-ui .v28-archive #libraryContent .project h3{
 font-size:16px;font-weight:850;line-height:1.2;margin:0 0 4px;color:#f9edff;
}
body.v24-ui.v27-ui .v28-archive #libraryContent .project .muted{
 color:#c6b2d5;font-size:11px;margin:0 0 6px;
}
body.v24-ui.v27-ui .v28-archive #libraryContent .project .chip{
 padding:4px 9px;border:1px solid #bd70dd;color:#e7acfb;background:#6d278c61;
 font-size:10px;border-radius:15px;
}
body.v24-ui.v27-ui .v28-archive #libraryContent .project .btn{
 border-radius:12px!important;border:1px solid #d183f3!important;
 background:linear-gradient(110deg,#862abd,#b542cb)!important;color:#fff!important;
 font-size:11px;font-weight:830;box-shadow:0 0 11px #9e31e444;
}
body.v24-ui.v27-ui .v28-archive #libraryContent .project .actions{margin-left:auto}
body.v24-ui.v27-ui .v28-archive #libraryContent .project>div:nth-child(2){flex:1;min-width:0}
body.v24-ui.v27-ui .v28-archive #libraryContent .project>div:nth-child(2) h3{
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
@media(max-width:390px){
 body.v24-ui.v27-ui .v28-archive #libraryContent .project{padding:10px!important;gap:9px}
 body.v24-ui.v27-ui .v28-archive #libraryContent .project .poster{width:54px;min-width:54px;height:68px}
 body.v24-ui.v27-ui .v28-archive #libraryContent .project h3{font-size:13px}
 body.v24-ui.v27-ui .v28-archive #libraryContent .project .btn{padding:7px 8px}
}


/* V28 mobile account dialog: keep login, plans and Google sign-in reachable. */
#accountOverlay .v28-account-scroll-panel {
  box-sizing: border-box !important;
  max-height: calc(100vh - 30px) !important;
  max-height: calc(100dvh - 30px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
#accountOverlay .v28-account-close {
  position: fixed !important;
  top: max(12px, env(safe-area-inset-top)) !important;
  right: max(12px, env(safe-area-inset-right)) !important;
  z-index: 2147480000 !important;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #a96bec;
  border-radius: 50%;
  color: #fff;
  background: #261535;
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 4px 20px #0009;
  cursor: pointer;
}
#accountOverlay .v28-account-close:focus-visible {
  outline: 3px solid #e2afff;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  #accountOverlay {
    box-sizing: border-box !important;
    padding: 12px 10px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  #accountOverlay .v28-account-scroll-panel {
    width: min(100%, 480px) !important;
    max-height: calc(100vh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    margin: auto !important;
  }
}
