/* Collection-first layout. The library and its tools form one reading column. */
.ag-storage{--tx2:#a8adb4;--tx3:#828991}
.ag-storage .wrap{max-width:1440px;padding:112px 48px 64px}
.ag-storage .stHead{align-items:center;margin:0 0 44px;gap:24px}
.ag-storage .stTitle .ag-kicker{font-size:12px;letter-spacing:.15em;color:#8b929b;margin-bottom:16px}
.titleLine{display:flex;align-items:center;gap:14px}
.titleLine h1{font-size:36px;line-height:1.25;letter-spacing:-.045em;font-weight:600}
.storageIntro{margin:12px 0 0;font-size:14px;line-height:1.65;color:var(--tx2)}
.ag-storage .stGuide{position:relative;max-width:none;align-self:center}
.ag-storage .stGuide summary{margin:0;display:grid;place-items:center;width:28px;height:28px;border:.5px dashed #686e77;border-radius:50%;font-size:13px;cursor:pointer;list-style:none;color:#b5bac1}
.ag-storage .stGuide summary::after{display:none}
.ag-storage .stGuide summary:hover,.ag-storage .stGuide details[open] summary{color:#fff;border-color:#ddd;background:#202327}
.ag-storage .gSteps{display:block;top:42px;left:-150px;right:auto;width:360px;max-width:calc(100vw*var(--fk,1) - 40px);padding:24px;background:#16191d;border:1px solid #454a52;border-radius:16px;box-shadow:0 20px 70px #000b}
.gSteps strong{font-size:15px;font-weight:600}.gSteps p{font-size:13px;line-height:1.6;color:var(--tx2);margin:8px 0 20px}
.gSteps ol{padding:0;margin:0;list-style:none;display:grid;gap:16px}
.gSteps li{grid-template-columns:62px 1fr;gap:12px;font-size:13px}
.ag-storage .shareTop{height:44px;background:#15181b;border:1px solid #393e45;color:#e1e4e8;font-size:13px;padding:0 16px;font-weight:500}
.ag-storage .shareTop:hover{background:#23272c}.ag-storage .shareTop .nw{background:#233c30;color:#a1e4b9;box-shadow:none;font-size:11px}
.storageWorkspace{display:grid;grid-template-columns:minmax(0,1fr) 282px;gap:36px;align-items:start}
.ag-storage .topRow{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:28px;padding-left:28px;border-left:1px solid #23262b;min-width:0}
.ag-storage .listSec{grid-column:1;grid-row:1;margin:0;min-width:0}
/* 2026-10-07 — 목록 탭 = EXPLORE CATEGORY/KEYWORD 알약 묶음과 같은 모양 (밑줄 탭 폐기). 글자만 한국어라 Pretendard */
.ag-storage .scopeRow{margin:0 0 20px;border-bottom:0}
/* 10-07 2차 영서: 묶음(한 테두리 안 3칸) → EXPLORE CATEGORY/KEYWORD처럼 알약 하나씩 따로 떨어뜨림 */
.ag-storage .scopeTabs{gap:10px;width:auto;padding:0;border-radius:0;border:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.ag-storage .scopeTabs .mtab{position:relative;display:flex;align-items:center;gap:7px;height:38px;min-height:0;box-sizing:border-box;padding:0 20px;
  border:.5px solid rgba(255,255,255,.6);border-radius:999px;
  background:linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)),rgba(255,255,255,.15);-webkit-backdrop-filter:blur(17px);backdrop-filter:blur(17px);
  font:600 13.5px var(--font-body);letter-spacing:-.01em;color:#cfcfcf;transition:color .15s,background .2s,border-color .2s}
.ag-storage .scopeTabs .mtab:hover{background:linear-gradient(rgba(0,0,0,.3),rgba(0,0,0,.3)),rgba(255,255,255,.2);color:#fff;border-color:#fff}
.ag-storage .scopeTabs .mtab.on{background:rgba(255,255,255,.8);border-color:transparent;color:#000}
.ag-storage .scopeTabs .mtab.on::after{display:none}
.ag-storage .scopeTabs .mtab .c{font:600 11px var(--font-body);opacity:1;color:inherit;background:none;padding:0;border-radius:0;opacity:.5}
.ag-storage .scopeTabs .mtab.on .c{opacity:.45}
.ag-storage .listTools{display:flex;gap:8px;margin:0 0 20px;flex-wrap:wrap}
.ag-storage .listTools .search{order:-1;margin:0 auto 0 0;flex:1;max-width:320px;min-width:170px;border:1px solid #2d3239;background:#101316;border-radius:10px;min-height:40px;padding:0 12px}
.ag-storage .listTools .search input{width:100%;font-size:13px}
.ag-storage .listTools select,.ag-storage .listTools .fbtn{font-size:12px;min-height:40px;border-radius:8px;background:#15181c}
.ag-storage .listTools .cnt{display:none}
.ag-storage .listTools .seg{border-radius:8px;min-height:40px;background:#111418}
.ag-storage .listTools .seg button{border-radius:6px;padding:0 10px;font-size:12px;min-height:34px}
.ag-storage .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ag-storage .card{display:flex;flex-direction:column;align-items:stretch;padding:18px;gap:0;background:#111418;border:1px solid #252a30;border-radius:16px;min-width:0}
.ag-storage .grid .card::before{opacity:.32;background:radial-gradient(180px 150px at 50% 0,var(--g1),transparent 90%)}
.ag-storage .card:hover{background:#191d22;border-color:#56616b;transform:translateY(-3px)}
.ag-storage .card .thumb{width:118px;height:118px;flex:0 0 118px;align-self:center;margin:2px 0 16px}
.ag-storage .card .body{position:static;display:flex;flex-direction:column}
.ag-storage .card .nm{font-size:15px;line-height:1.45;padding:0;min-height:44px;letter-spacing:-.025em}
.ag-storage .card .detail-trigger{min-height:44px}
.ag-storage .card .when{font-size:11px;color:#949ca6;margin-top:6px}
.ag-storage .card .top1{font-size:12px;gap:6px;margin-top:14px;min-height:20px}
.ag-storage .card .top1 .pc{font-size:12px;width:auto;color:#cbd0d7}
.ag-storage .card .top1 .more{display:none}
.ag-storage .card .tags{margin-top:8px;gap:5px;height:23px;overflow:hidden;flex-wrap:wrap;min-height:23px}
.ag-storage .card .tg{font-size:11px;background:none;padding:0;color:#939ba6;border:0}
.ag-storage .card .tg+.tg::before{content:'·';margin-right:5px;color:#59616c}
.ag-storage .card .pin{top:10px;right:10px;width:36px;height:36px;background:none;opacity:.5}
.ag-storage .card .pin.on{opacity:1;color:white;background:#ffffff09}
.ag-storage .card .pin:hover{opacity:1;background:#ffffff18}
.ag-storage .card .acts{position:relative;right:auto;bottom:auto;opacity:1;transform:none;display:flex;gap:8px;margin:16px 0 0;border-top:1px solid #ffffff0d;padding-top:12px}
.ag-storage .card .acts button{flex:1;min-height:34px;padding:6px 8px;border-radius:7px;background:#ffffff06;border:0;font-size:12px;color:#c2c8d0;backdrop-filter:none}
.ag-storage .card .acts button:hover{background:#e7eaed;color:#101215}
.ag-storage .topRow .nowband{border:0;border-radius:0;padding:0;background:none;gap:16px;overflow:visible}
.ag-storage .topRow .nowband::before{display:none}
.ag-storage .topRow .nowTop{align-items:flex-start;gap:12px;width:100%}
.ag-storage .topRow .heroGfx{width:52px;height:52px;flex:0 0 52px;margin:0;order:2}
.ag-storage .topRow .heroInfo{flex:1;min-width:0}
.ag-storage .topRow .nowLbl{gap:7px;font-size:12px;letter-spacing:0;color:#abb2ba;flex-wrap:wrap}
.ag-storage .topRow .nowLbl .dot{width:5px;height:5px;box-shadow:none;flex-shrink:0}
.ag-storage .topRow .nowLbl .unsaved{border:0;background:none;padding:0;font-size:10px;color:#c4a46d}
.ag-storage .topRow .nowband h2{font-size:17px;line-height:1.5;margin:12px 0 6px;word-break:keep-all}
.ag-storage .topRow .heroSub,.ag-storage .topRow .linkbtn{font-size:11px;color:#939ca7}
.ag-storage .topRow .nowRight{padding:0;border:0;width:100%;order:3}
.ag-storage .nowRight summary{font-size:12px;color:#9ea7b1;cursor:pointer;min-height:36px;padding-block:10px}
.ag-storage .nowRight[open] summary{margin-bottom:8px}
.ag-storage .topRow .heroAct{width:100%;margin-top:0;grid-template-columns:1fr auto;gap:8px}
.ag-storage .topRow .heroAct .btn{min-height:42px;border-radius:9px;padding:8px 12px;font-size:12px}
.ag-storage .topRow .heroAct .btn:not(.pri){padding:8px 12px;border-color:#353b43}
.ag-storage .pinPanel{display:block;border-top:1px solid #292e35;padding-top:22px}
.ag-storage .pinPanel .secHead{cursor:pointer;display:flex;gap:8px;list-style:none;margin-bottom:14px;min-height:32px}
.pinPanel summary::-webkit-details-marker{display:none}.pinTitle{font-size:13px;font-weight:600}.pinChevron{margin-left:auto;color:#858f9b;transition:transform .2s}.pinPanel[open] .pinChevron{transform:rotate(180deg)}
.ag-storage .pinPanel .cnt{font-size:11px;color:#87919d}
.ag-storage .pinPanel .pinWall{display:flex;flex-direction:column;gap:6px;align-items:stretch}
.ag-storage .pinPanel .pinItem{display:grid;grid-template-columns:42px minmax(0,1fr);gap:0 10px;padding:8px 28px 8px 0;align-items:center;border-radius:8px;min-height:58px;text-align:left}
.ag-storage .pinPanel .pinItem:hover{background:#ffffff06}
.ag-storage .pinPanel .pinItem .thumb{width:42px;height:42px;grid-column:1;grid-row:1;margin:0}
.ag-storage .pinPanel .pinItem .nm{grid-column:2;grid-row:1;font-size:12px;margin:0;line-height:1.5}
.ag-storage .pinPanel .pinItem .detail-trigger{text-align:left;min-height:36px}
.ag-storage .pinPanel .mini3{display:none}
.ag-storage .pinPanel .pinItem .unpin{top:14px;right:0;width:28px;height:28px;opacity:.45;background:none}
.pinHint{font-size:11px;line-height:1.6;color:#87919d;margin:16px 0 0}
.ag-storage .pinEmpty{border:.5px dashed #414851;min-height:60px;background:none;width:100%}
.ag-storage button:focus-visible,.ag-storage summary:focus-visible,.ag-storage a:focus-visible{outline:2px solid #b5d9c2;outline-offset:4px}
@media(min-width:1600px){.ag-storage .wrap{padding-inline:32px}}
@media(max-width:1200px){.ag-storage .wrap{padding-inline:32px}.storageWorkspace{gap:24px;grid-template-columns:minmax(0,1fr) 248px}.ag-storage .topRow{padding-left:20px}.ag-storage .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ag-storage .listTools .seg{margin-left:auto}}
@media(max-width:1000px){
 .ag-storage .wrap{padding:96px 24px 48px}.ag-storage .stHead{margin-bottom:28px}
 .storageWorkspace{display:flex;flex-direction:column;gap:24px}.ag-storage .topRow{display:flex;width:100%;border:0;padding:0;gap:12px}.ag-storage .listSec{width:100%}
 .ag-storage .topRow .nowband{padding:18px 20px;background:#111418;border:1px solid #2b3037;border-radius:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 24px}
 .ag-storage .topRow .heroGfx{order:0;width:48px;height:48px;flex-basis:48px}.ag-storage .topRow .nowTop{align-items:center}.ag-storage .topRow .nowband h2{font-size:15px;margin:5px 0 0}.ag-storage .heroSub{display:none}
 .ag-storage .topRow .heroAct{grid-column:2;grid-row:1}.ag-storage .topRow .nowRight{grid-column:1/-1;grid-row:2}.ag-storage .nowRight summary{min-height:28px;padding:4px 0}
 .ag-storage .pinPanel{border:0;padding:0}.ag-storage .pinPanel .secHead{margin:0;padding:4px 0}.ag-storage .pinPanel .pinWall{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px}
 .ag-storage .grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ag-storage .card{padding:16px}
}
@media(max-width:700px){
 .ag-storage .wrap{padding:90px 20px 40px}.titleLine h1{font-size:28px}.ag-storage .stTitle .ag-kicker{font-size:10px;margin-bottom:12px}.storageIntro{font-size:12px;max-width:240px;line-height:1.7}
 .ag-storage .stHead{gap:12px;align-items:flex-start;position:relative}.ag-storage .shareTop{font-size:11px;height:36px;padding:0 10px;gap:5px;margin-top:27px;white-space:nowrap}.ag-storage .shareTop .nw{font-size:10px;padding:0 5px;min-width:18px;height:18px}
 .titleLine{gap:8px}.ag-storage .stGuide summary{width:24px;height:24px}.ag-storage .gSteps{position:absolute;left:auto;right:-100px;width:320px;padding:20px}
 .ag-storage .topRow .nowband{padding:14px;gap:10px;grid-template-columns:minmax(0,1fr)}.ag-storage .topRow .heroAct{grid-column:1;grid-row:2}.ag-storage .topRow .nowRight{grid-row:3}.ag-storage .topRow .heroGfx{width:42px;height:42px;flex-basis:42px}
 .ag-storage .topRow .nowLbl{font-size:11px}.ag-storage .topRow .nowband h2{font-size:14px}.ag-storage .topRow .heroAct .btn{min-height:38px}
 .ag-storage .scopeTabs{gap:0;width:100%}.ag-storage .scopeTabs .mtab{flex:1;justify-content:center;font-size:12.5px;padding:0 8px}.ag-storage .scopeTabs .mtab .c{font-size:10.5px}
 .ag-storage .listTools .search{flex-basis:100%;max-width:none;order:-1}.ag-storage .listTools{gap:8px}.ag-storage .listTools .seg{margin-left:auto}
 .ag-storage .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ag-storage .card{padding:12px;border-radius:12px}.ag-storage .card .thumb{width:92px;height:92px;flex-basis:92px;margin:4px 0 10px}
 .ag-storage .card .nm{font-size:13px;min-height:40px}.ag-storage .card .detail-trigger{min-height:40px}.ag-storage .card .top1{font-size:11px;gap:4px}.ag-storage .card .top1 .pc{font-size:11px}.ag-storage .card .when{font-size:10px}.ag-storage .card .tg{font-size:10px}.ag-storage .card .pin{top:4px;right:4px;width:32px;height:32px}.ag-storage .card .pin svg{width:14px;height:14px}.ag-storage .card .acts{gap:4px;margin-top:10px;padding-top:10px}.ag-storage .card .acts button{padding:6px 2px;font-size:11px;min-height:36px}
}
@media(prefers-reduced-motion:reduce){.ag-storage .card{transition:none}.ag-storage .card:hover{transform:none}}
@media(max-width:700px){
 .ag-storage .stHead{display:block}
 .ag-storage .stHead .shareTop{position:absolute;right:0;top:-6px;margin:0;height:32px}
 .ag-storage .gSteps{position:fixed;left:20px;right:20px;top:174px;width:auto;max-width:none;max-height:calc(100dvh*var(--fk,1) - 200px);overflow:auto;z-index:70}
}

/* ─── 고정한 알고리즘 — 목록 맨 위 가로 5칸 (2026-09-22) ───
   예전 상단 5칸 배치로 되돌리되 카드 프레임은 없음. 원형 핵 썸네일 + 이름 + 상위 태그만.
   목록 카드(#111418 박스)와 층을 나누려고 배경·테두리를 전혀 두지 않는다 */
.ag-storage .pinShelf{margin:0 0 40px}
.pinShelfHead{display:flex;align-items:baseline;gap:8px;margin:0 0 14px}
.pinShelf .pinTitle{font-size:13px;font-weight:600;color:#e6e9ec}
.pinShelf .cnt{font-size:11px;color:#87919d}
.pinShelf .pinHint{margin:0 0 0 auto;font-size:11px;color:#6f7782}
.ag-storage .pinShelf .pinWall{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;flex-wrap:nowrap}
.ag-storage .pinShelf .pinItem,.ag-storage .pinShelf .pinEmpty{min-width:0;max-width:none;width:100%;padding:6px 4px 8px;border:0;border-radius:0;background:none;min-height:0}
.ag-storage .pinShelf .pinItem:hover{background:none}
.ag-storage .pinShelf .pinItem .thumb,.ag-storage .pinShelf .pinEmpty .slot{width:min(132px,100%);height:auto;aspect-ratio:1}
.ag-storage .pinShelf .pinItem .nm{font-size:13px;font-weight:500;line-height:1.45;margin-top:10px;letter-spacing:-.02em;color:#e6e9ec}
.ag-storage .pinShelf .pinItem .detail-trigger{min-height:0;text-align:center}
.ag-storage .pinShelf .mini3{margin-top:4px;gap:6px;flex-wrap:nowrap;max-width:100%;overflow:hidden}
.ag-storage .pinShelf .mini3 .t{border:0;padding:0;font-size:11px;color:#8b939d;min-width:0;overflow:hidden;text-overflow:ellipsis}
.ag-storage .pinShelf .mini3 .t:nth-child(n+3){display:none}
.ag-storage .pinShelf .pinItem .unpin{top:4px;right:calc(50% - min(66px,50%) - 4px);width:26px;height:26px;background:rgba(0,0,0,.6);opacity:0;border:0}
.ag-storage .pinShelf .pinItem:hover .unpin,.ag-storage .pinShelf .pinItem:focus-within .unpin{opacity:.8}
.ag-storage .pinShelf .pinEmpty{color:#6f7782;font-size:11px}
.ag-storage .pinShelf .pinEmpty .slot{border:.5px dashed rgba(255,255,255,.1);font-size:16px;color:#5b626c}
.ag-storage .pinShelf .pinEmpty:hover .slot{border-color:rgba(255,255,255,.26);color:#a8adb4}
.ag-storage .pinShelf .pinEmpty .lb{margin-top:10px}
@media(max-width:1000px){.ag-storage .pinShelf{margin-bottom:28px}}
@media(max-width:700px){
 .ag-storage .pinShelf .pinWall{display:flex;overflow-x:auto;gap:4px;scroll-snap-type:x mandatory;scroll-padding-inline:20px;margin:0 -20px;padding:0 20px;scrollbar-width:none}
 .ag-storage .pinShelf .pinWall::-webkit-scrollbar{display:none}
 .ag-storage .pinShelf .pinItem,.ag-storage .pinShelf .pinEmpty{flex:0 0 96px;scroll-snap-align:start}
 .ag-storage .pinShelf .pinItem .nm{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.ag-storage .pinShelf .mini3{display:none}
 .pinShelf .pinHint{display:none}
 .ag-storage .pinShelf .pinItem .unpin{opacity:.8;right:0}
}

/* ─── 지금 적용 중 — 스크롤해도 따라온다 (2026-09-22) ───
   데스크톱 2열(>1000px)에서만. 고정 내비 72px + 여백 24px 아래에 붙는다.
   창이 낮아 사이드바가 화면보다 길면 사이드바 안에서 스크롤 */
@media(min-width:1001px){
 .ag-storage .topRow{position:sticky;top:96px;max-height:calc(100dvh*var(--fk,1) - 120px);overflow-y:auto;scrollbar-width:none;padding-top:6px;padding-right:8px;padding-bottom:6px;margin-top:-6px}
 .ag-storage .topRow::-webkit-scrollbar{display:none}
}
