:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#172438;background:#f4f6fa;font-synthesis:none;--ink:#172438;--muted:#758398;--line:#e4e9f1;--gold:#dda757;--navy:#152337;--green:#168960;--red:#d55256;--shadow:0 12px 38px rgba(24,42,67,.09)}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}a{color:inherit}input,select,textarea{border:1px solid #dbe2eb;border-radius:11px;padding:12px 13px;background:#fff;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#d9a151;box-shadow:0 0 0 3px #e8b76b33}textarea{resize:vertical;min-height:90px}button:focus-visible{outline:3px solid #d6a751;outline-offset:3px}.loading{display:grid;place-items:center;height:100vh;color:var(--muted)}.login{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-hero{background:radial-gradient(ellipse at 15% 10%,#354c66 0,transparent 44%),linear-gradient(140deg,#17283e,#0e1828);display:flex;flex-direction:column;justify-content:space-between;padding:52px 66px;color:#fff;overflow:hidden;position:relative}.login-hero:after{content:"";position:absolute;width:420px;height:420px;border:1px solid #ffffff20;border-radius:50%;right:-180px;top:22%}.login-hero h1{font-family:Georgia,serif;font-weight:500;line-height:1.12;font-size:clamp(44px,5vw,77px);letter-spacing:-1px;z-index:1;margin:60px 0 22px}.login-hero h1 em{font-style:normal;color:#e5ba75}.login-hero p{max-width:490px;color:#b1c0d1;line-height:1.7;font-size:17px;z-index:1}.login-hero .footnote{color:#8c9aab;font-size:13px;z-index:1}.brand{display:flex;align-items:center;gap:12px;font-weight:760;letter-spacing:.08em;font-size:12px}.brand-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#dba855;color:#152337;font-weight:900;font-size:20px}.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:30px}.login-card{width:min(100%,410px)}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:.16em;color:#b58a4a;font-weight:900}.login-card h2{font-family:Georgia,serif;font-size:38px;margin:15px 0 12px;font-weight:500}.muted{color:var(--muted)}.login-card .muted{line-height:1.6}.form-field{display:flex;flex-direction:column;gap:8px;margin:19px 0}.form-field label{font-weight:700;font-size:13px}.form-field input{width:100%;height:48px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:11px;background:white;color:var(--ink);padding:10px 14px;font-weight:700;transition:background .15s,transform .15s;white-space:nowrap}.btn:hover{background:#f5f7fa}.btn:active{transform:scale(.98)}.btn.primary{background:#182b44;color:#fff;border-color:#182b44}.btn.primary:hover{background:#263f61}.btn.gold{background:var(--gold);border-color:var(--gold);color:#172438}.btn.ghost{background:transparent;border-color:#ffffff25;color:#fff}.btn.small{padding:7px 11px;font-size:12px;border-radius:9px}.btn.wide{width:100%;height:49px}.btn.danger{color:#b12b38;border-color:#f1cdd1}.app-shell{min-height:100vh}.topbar{height:76px;background:#152337;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:20px;position:sticky;top:0;z-index:20;box-shadow:0 3px 10px #0b122019}.topbar .brand{font-size:13px;letter-spacing:.1em}.top-actions{display:flex;align-items:center;gap:17px}.topnav{display:flex;gap:3px;background:#ffffff12;border-radius:12px;padding:4px}.navitem{border:0;background:none;color:#bac5d3;padding:10px 14px;border-radius:9px;font-size:13px;font-weight:700}.navitem.active{background:#fff;color:#132339}.user-label{font-size:12px;color:#aab7c8;text-align:right}.user-label b{display:block;color:#fff;font-size:13px}.page{max-width:1560px;padding:37px 36px 72px;margin:0 auto}.intro{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:27px}.intro h1{font-family:Georgia,serif;font-weight:500;letter-spacing:-.03em;font-size:35px;margin:9px 0 6px}.section-hint{color:var(--muted);font-size:14px;margin:4px 0}.intro-stats{display:flex;gap:14px}.stat-mini{background:white;padding:12px 18px;border:1px solid var(--line);border-radius:14px;min-width:115px}.stat-mini b{display:block;font-size:23px}.stat-mini small{color:var(--muted)}.filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}.search{min-width:210px;max-width:380px;flex:1}.filters select{max-width:210px}.segment{display:flex;background:#e8edf4;border-radius:11px;padding:4px;gap:2px}.segment button{border:0;background:transparent;border-radius:8px;padding:9px 12px;color:#728197;font-weight:750;font-size:12px}.segment button.active{background:white;color:#15243a;box-shadow:0 1px 5px #17263b14}.statusline{display:flex;justify-content:space-between;align-items:center;margin:12px 0 18px;font-size:13px;color:var(--muted);gap:10px}.chips{display:flex;gap:7px;overflow:auto;scrollbar-width:none}.chip{white-space:nowrap;border:1px solid #e0e6ef;border-radius:30px;background:#fff;padding:7px 12px;font-size:12px;font-weight:700;color:#5e6c80}.chip.active{background:#182b44;border-color:#182b44;color:#fff}.grid-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.magnet-card{background:#fff;border-radius:18px;border:1px solid #e6eaf1;overflow:hidden;box-shadow:0 4px 12px #22344c06;transition:box-shadow .18s,transform .18s;min-width:0}.magnet-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}.magnet-visual{position:relative;background:#f3f0ea;aspect-ratio:1/1;display:grid;place-items:center;overflow:hidden;cursor:pointer;padding:8px}.magnet-visual img{width:100%;height:100%;object-fit:contain;display:block;mix-blend-mode:normal}.magnet-visual .mark{position:absolute;top:9px;left:9px;font-size:10px;font-weight:800;padding:6px 8px;border-radius:30px;background:#ffffffed;color:#6b7a8c;box-shadow:0 1px 5px #0001}.magnet-visual .mark.good{background:#dcf6e9;color:#167b54}.magnet-visual .mark.bad{background:#ffe8e9;color:#be4850}.magnet-visual .flag-mark{position:absolute;top:9px;right:9px;background:#fff3d8;border-radius:50%;padding:5px 7px;font-size:14px;color:#a86c08}.magnet-meta{padding:14px 13px 12px}.magnet-code{font-size:12px;font-weight:800;letter-spacing:.03em}.magnet-sub{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin:6px 0 11px}.magnet-btns{display:flex;align-items:center;gap:7px}.vote-btn{flex:1;min-height:36px;border:1px solid #e0e5ed;background:#f9fafc;border-radius:9px;color:#748195;font-size:18px}.vote-btn.like.active{color:#13865f;background:#e0f5eb;border-color:#b8e5d1}.vote-btn.dislike.active{color:#c8454d;background:#ffeced;border-color:#f1c5c9}.vote-btn.like:hover{color:var(--green)}.vote-btn.dislike:hover{color:var(--red)}.comment-btn{border:1px solid #e0e5ed;border-radius:9px;background:#fff;min-height:36px;padding:0 9px;font-size:13px;color:#65758d}.pagination{display:flex;justify-content:center;align-items:center;gap:15px;margin-top:30px}.pagination span{color:var(--muted);font-size:13px}.empty{padding:80px 15px;text-align:center;color:var(--muted);border:1px dashed #cbd4df;border-radius:18px;background:#fff}.empty strong{display:block;color:#26354a;margin-bottom:12px;font-size:19px}.shorts-bg{background:#0f1929;border-radius:22px;min-height:650px;color:#fff;position:relative;overflow:hidden;display:flex;justify-content:center;align-items:center;padding:22px;gap:18px}.short-rail{display:flex;flex-direction:column;gap:9px}.rail-btn{border:1px solid #ffffff25;background:#ffffff15;color:#fff;border-radius:13px;width:52px;height:52px;font-size:22px}.short-card{width:min(470px,100%);height:min(690px,calc(100dvh - 185px));min-height:500px;display:flex;flex-direction:column;position:relative;background:#fff;border-radius:20px;overflow:hidden;color:var(--ink)}.short-img-wrap{flex:1;min-height:0;background:#f0ede7;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:12px}.short-img-wrap img{width:100%;height:100%;object-fit:contain}.short-bottom{padding:18px 18px 15px;background:#fff}.short-topline{display:flex;justify-content:space-between;align-items:center;gap:8px}.short-bottom h2{font-size:18px;margin:4px 0 3px}.short-bottom p{color:var(--muted);font-size:12px;margin:0 0 13px}.short-bottom .btn-row{display:flex;gap:8px}.short-bottom .btn-row button{flex:1}.short-navigator{display:flex;flex-direction:column;align-items:center;gap:10px}.short-counter{font-size:13px;color:#bfc8d5}.hintkeys{font-size:12px;color:#8998ac;line-height:1.7;text-align:center;max-width:195px}.mobile-short-nav{display:none}.modal-backdrop{position:fixed;inset:0;background:#080f1bc4;z-index:60;display:flex;align-items:center;justify-content:center;padding:20px}.detail-modal{width:min(980px,100%);max-height:min(850px,94dvh);background:#fff;border-radius:21px;overflow:hidden;display:grid;grid-template-columns:1fr 1fr;box-shadow:0 25px 100px #0005}.detail-photo{background:#f4f0e8;display:flex;align-items:center;justify-content:center;min-height:480px;padding:20px;position:relative}.detail-photo img{max-width:100%;max-height:75vh;object-fit:contain}.close-modal{position:absolute;top:15px;right:15px;border:0;border-radius:50%;background:#fff;color:#20334b;box-shadow:0 2px 10px #0002;font-size:20px;width:37px;height:37px}.detail-right{padding:28px;display:flex;flex-direction:column;min-height:0;overflow-y:auto}.detail-right h2{font-size:23px;margin:8px 0}.detail-votes{display:flex;gap:9px;margin:13px 0;flex-wrap:wrap}.detail-votes .btn{flex:1}.comment-feed{display:flex;flex-direction:column;gap:11px;max-height:250px;overflow-y:auto;min-height:70px;padding-right:4px}.comment-entry{border:1px solid var(--line);background:#f9fafc;border-radius:12px;padding:11px 13px;font-size:13px;line-height:1.55;overflow-wrap:anywhere}.comment-entry small{color:var(--muted);font-size:11px}.comment-entry strong{margin-right:8px}.comment-entry p{white-space:pre-wrap;margin:6px 0 0}.comment-entry button{float:right;border:0;background:none;color:#ba575c}.detail-right .comment-form{display:flex;flex-direction:column;gap:8px;margin-top:12px}.detail-right .comment-form textarea{width:100%}.small-line{font-size:12px;color:var(--muted)}.review-tags{display:flex;gap:6px;flex-wrap:wrap;margin:7px 0}.review-tag{padding:4px 8px;border-radius:8px;font-size:11px;background:#e9eef6;color:#5b687c}.review-tag.pos{background:#dff5e9;color:#137956}.review-tag.neg{background:#ffe6e8;color:#b53a44}.overview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0}.overview-card{background:#fff;border-radius:17px;border:1px solid var(--line);padding:22px}.overview-card span{font-size:12px;color:var(--muted)}.overview-card b{display:block;font-size:31px;margin-top:8px}.overview-card .help{font-size:11px;color:var(--muted);margin-top:8px}.admin-cols{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.panel{background:white;border-radius:18px;border:1px solid var(--line);padding:24px;margin-bottom:18px}.panel h3{margin:0 0 8px;font-size:17px}.panel p{font-size:13px;color:var(--muted);line-height:1.65}.barline{display:flex;align-items:center;justify-content:space-between;font-size:13px;gap:10px;margin-top:20px}.progress{height:9px;background:#e9edf3;border-radius:100px;overflow:hidden;margin-top:9px;display:flex}.progress .yes{background:#21a475}.progress .no{background:#d95a61}.import-file{margin:10px 0 13px;width:100%}.admin-form{display:flex;flex-direction:column;gap:9px;margin-top:16px}.admin-form input{width:100%}#toast{position:fixed;z-index:100;bottom:24px;left:50%;transform:translate(-50%,120px);opacity:0;pointer-events:none;background:#17253b;color:#fff;padding:13px 18px;border-radius:12px;box-shadow:var(--shadow);transition:transform .2s,opacity .2s;max-width:min(90vw,520px);font-size:13px;text-align:center}#toast.show{transform:translate(-50%,0);opacity:1}hr{border:0;border-top:1px solid var(--line);margin:20px 0}.helpkeys kbd{font-family:inherit;background:#ffffff18;padding:2px 6px;border-radius:4px}.username-btn{border:0;background:transparent;color:#cbd4df;font-size:12px;padding:4px 0}.progress-note{font-size:12px;color:#8694a6;margin-top:8px}@media(max-width:1150px){.grid-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.intro h1{font-size:30px}.topbar{padding:0 20px}.page{padding:30px 20px 60px}}@media(max-width:840px){.login{grid-template-columns:1fr}.login-hero{padding:24px;min-height:240px}.login-hero h1{font-size:40px;margin:34px 0 8px}.login-hero p{font-size:14px}.login-hero .footnote{display:none}.login-form-wrap{padding:36px 24px}.topbar{height:auto;min-height:74px;padding:12px 16px;flex-wrap:wrap}.topnav{order:3;width:100%;justify-content:space-around}.navitem{flex:1}.top-actions{margin-left:auto}.grid-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.admin-cols{grid-template-columns:1fr}.intro{align-items:start}.overview-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.page{padding:24px 12px 60px}.topbar .brand{font-size:11px}.brand-icon{width:31px;height:31px;border-radius:10px}.user-label{display:none}.intro h1{font-size:27px}.intro-stats{display:none}.filters{gap:7px}.filters .search{min-width:100%;max-width:none}.filters select{flex:1;max-width:unset;font-size:12px;padding:10px}.segment{flex:1}.segment button{flex:1;padding:8px}.chips{width:100%}.grid-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.magnet-meta{padding:10px}.magnet-visual{padding:5px}.magnet-code{font-size:11px}.magnet-sub{font-size:10px}.vote-btn{min-height:34px}.comment-btn{font-size:12px;padding:0 6px}.statusline{font-size:11px}.shorts-bg{border-radius:16px;padding:10px 6px;min-height:0}.short-card{height:calc(100dvh - 255px);min-height:430px;border-radius:14px}.short-bottom{padding:13px}.short-navigator{display:none}.mobile-short-nav{display:flex;justify-content:center;gap:12px;margin:15px 0}.mobile-short-nav .btn{flex:1}.detail-modal{display:flex;flex-direction:column;height:94dvh;max-height:none;border-radius:15px}.detail-photo{min-height:0;height:34%;padding:8px;flex-shrink:0}.detail-photo img{max-height:100%;max-width:100%}.detail-right{padding:15px;flex:1}.modal-backdrop{padding:8px}.detail-right h2{font-size:18px}.overview-grid{gap:9px}.overview-card{padding:16px}.overview-card b{font-size:24px}.panel{padding:18px}.intro .btn{font-size:12px;padding:9px}.pagination{gap:8px}.pagination .btn{font-size:12px;padding:8px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* В режиме Shorts акцент на фотографии; фильтры остаются доступными в галерее. */
.in-shorts .intro{display:none}
.in-shorts .page{padding-top:16px;padding-bottom:12px}
.in-shorts .statusline{display:none}
.in-shorts .filters{margin-bottom:12px}
.in-shorts .shorts-bg{min-height:0;height:calc(100dvh - 168px)}
.in-shorts .short-card{height:calc(100dvh - 202px);min-height:0}
@media(max-width:560px){
 .in-shorts .filters{display:none}
 .in-shorts .page{padding:8px 6px 10px}
 .in-shorts .shorts-bg{height:calc(100dvh - 131px);padding:7px 6px;border-radius:12px}
 .in-shorts .short-card{height:calc(100dvh - 148px);min-height:0}
 .in-shorts .short-bottom{padding:10px}
 .in-shorts .short-bottom h2{font-size:16px}
 .in-shorts .short-bottom p{margin:0 0 9px}
 .in-shorts .mobile-short-nav{display:none}
 .in-shorts .pagination{display:none}
}
