/* storage-ux.css (2026-10-21 10차) — storage-ux.js 짝. body.ux-on 일 때만. 이전 값은 각 줄 주석 */

/* Desktop rhythm uses design px (fit.js scales the whole page).
   Share entry and current algorithm use the same sidebar track. */
@media (min-width:900px){
  .ag-storage.ux-on{--storage-rail:282px;--storage-gap:36px}
  .ag-storage.ux-on .wrap{padding-top:104px}
  .ag-storage.ux-on .stHead{display:grid;grid-template-columns:minmax(0,1fr) var(--storage-rail);gap:var(--storage-gap);align-items:center;margin-bottom:24px}
  .ag-storage.ux-on .storageWorkspace{grid-template-columns:minmax(0,1fr) var(--storage-rail);gap:var(--storage-gap)}
  .ag-storage.ux-on .shareTop{width:100%;min-width:0;height:104px;box-sizing:border-box;padding:20px 22px}
  .ag-storage.ux-on .topRow{margin-top:0;padding:0}
  .ag-storage.ux-on .topRow .nowband{width:100%;box-sizing:border-box;padding:22px;gap:16px}
  .ag-storage.ux-on .topRow .nowband h2{font-size:18px;line-height:1.5;margin:10px 0 4px}
  .ag-storage.ux-on .topRow .heroGfx{width:56px;height:56px;flex-basis:56px}
  .ag-storage.ux-on .topRow .heroSub{font-size:12px;line-height:1.6}
  .ag-storage.ux-on .topRow .heroAct .btn{font-size:13px;min-height:40px}
  .ag-storage.ux-on .nowRight summary{font-size:12px;line-height:1.5;padding:8px 0;min-height:34px}
  .ag-storage.ux-on #pinnedSection{padding-bottom:20px;margin-bottom:24px}
  .ag-storage.ux-on .pinShelfHead{gap:8px;margin-bottom:16px;flex-wrap:wrap}
  .ag-storage.ux-on .pinShelfHead .pinTitle{font-size:15px;line-height:1.5}
  .ag-storage.ux-on .pinItem .nm,.ag-storage.ux-on .pinItem .nm button{font-size:15px;line-height:1.5}
  .ag-storage.ux-on .pinItem .thumb{height:120px!important;overflow:hidden}
  .ag-storage.ux-on .pinItem .thumb canvas{width:100%;height:auto!important;aspect-ratio:1;margin-top:-6px;display:block}
  .ag-storage.ux-on .libTabs{margin:0 0 20px;gap:12px}
  .ag-storage.ux-on .libTabs button{height:40px;padding:0 22px;font-size:16px}
  .ag-storage.ux-on .scopeRow{margin-bottom:16px}
  .ag-storage.ux-on .listTools{gap:8px;margin-bottom:20px;align-items:center}
  .ag-storage.ux-on .listTools .search,.ag-storage.ux-on .listTools select,.ag-storage.ux-on .listTools .fbtn,.ag-storage.ux-on .listTools .seg{height:40px;min-height:40px;box-sizing:border-box}
  .ag-storage.ux-on .listTools .seg{display:flex;align-items:center}
  .ag-storage.ux-on .listTools .seg button{font-size:12px;min-height:32px}
  .ag-storage.ux-on #grid:not(.uxRows){gap:20px}
  .ag-storage.ux-on #grid .card{padding:20px}
  .ag-storage.ux-on #grid .card .nm{font-size:16px;line-height:1.5;min-height:48px}
  .ag-storage.ux-on #grid .card .when,.ag-storage.ux-on #grid .card .tg{font-size:12px;line-height:1.5}
  .ag-storage.ux-on #grid .card .thumb{height:134px;flex-basis:134px;overflow:hidden;margin-bottom:16px}
  .ag-storage.ux-on #grid .card .thumb canvas{height:150px;width:150px;margin-top:-8px;display:block}
  .ag-storage.ux-on #grid .card:hover{transform:translateY(-3px)}
  .ag-storage.ux-on .hsHead{margin-bottom:24px}
}
/* Match the existing narrower sidebar track on compact desktops. */
@media (min-width:900px) and (max-width:1200px){
  .ag-storage.ux-on{--storage-rail:248px;--storage-gap:24px}
}

/* ── 핀 ── */
.ux-on .uxPinHint{font-size:11.5px;color:#87919d;margin-left:6px}
.ux-on .pinEmpty .slot{border-color:rgba(255,255,255,.34)!important;color:rgba(255,255,255,.7)!important}
.ux-on .pinEmpty .lb{color:#a3abb5!important}
.ux-on .pinEmpty:hover .slot{border-color:rgba(255,255,255,.7)!important;color:#fff!important}

/* ── 카드 태그: 무드는 뒤로 흐리게 ── */
.ux-on .card .tags .md{opacity:.55}

/* ── 목록 보기 ── */
.ux-on #grid.uxRows{display:flex;flex-direction:column;gap:0}
.uxRowHd,.uxRow{display:grid;grid-template-columns:48px minmax(180px,1.1fr) minmax(220px,1.4fr) 92px 132px;align-items:center;gap:14px}
.uxRowHd{padding:0 14px 8px;font-size:11px;color:#7e8792;border-bottom:.5px solid rgba(255,255,255,.12)}
.uxRowHd span:nth-child(4){text-align:right}
.uxRow{padding:9px 14px;border-bottom:.5px solid rgba(255,255,255,.07);cursor:pointer;border-radius:10px;transition:background .15s}
.uxRow:hover,.uxRow:focus-visible{background:rgba(255,255,255,.045);outline:none}
.uxRow.cur .nm::after{content:'지금 적용 중';margin-left:8px;font-size:10.5px;font-weight:500;color:#7FD6A2}
.uxRow .th{width:40px;height:40px;display:grid;place-items:center}
.uxRow .th canvas{width:40px!important;height:40px!important}
.uxRow .nmc{display:flex;flex-direction:column;gap:3px;min-width:0}
.uxRow .nm{font-size:14px;font-weight:600;color:#eef0f2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.uxRow .nmc small{font-size:11.5px;color:#8b939d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.uxRow .mix{display:flex;flex-direction:column;gap:6px;min-width:0}
.uxStrip{display:flex;height:5px;border-radius:3px;overflow:hidden;gap:1px;max-width:260px}
.uxStrip i{display:block;height:100%}
.uxRow .lbs{display:flex;gap:12px;font-size:12px;color:#b9c0c8;white-space:nowrap;overflow:hidden}
.uxRow .lbs span{display:inline-flex;align-items:center;gap:5px}
.uxRow .lbs i{width:6px;height:6px;border-radius:50%}
.uxRow .lbs b{font-weight:600;color:#eef0f2}
.uxRow .sim{text-align:right;font-size:12px;color:#8b939d}
.uxRow .sim b{font-size:15px;color:#eef0f2;font-weight:600;margin-right:1px}
.uxRow .acts{display:flex;gap:6px;justify-content:flex-end;align-items:center}
.uxRow .acts .mini{min-height:34px!important;padding:0 14px;font-size:12.5px!important;color:#fff;border:1px solid rgba(255,255,255,.32);border-radius:999px;background:none;cursor:pointer}
.uxRow .acts .mini:hover{background:rgba(255,255,255,.92);color:#0a0a0a}
.uxPin,.uxPinSp{width:34px;height:34px;flex:0 0 34px}
.uxPin{border-radius:50%;border:1px solid rgba(255,255,255,.14);background:none;display:grid;place-items:center;cursor:pointer;opacity:.55}
.uxPin.on,.uxPin:hover{opacity:1}

/* ── 빈 결과 ── */
.uxEmA{display:flex;gap:8px;justify-content:center;margin-top:16px;flex-wrap:wrap}

/* ── 상세 머리 ── */
.ux-on .mIcons #dShare,.ux-on .mIcons #dCopy,.ux-on .mIcons #dDel,.ux-on .mIcons .mIconGap{display:none!important}
.uxPub{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;font-size:10.5px;color:#9aa2ac;border:.5px solid rgba(255,255,255,.2);vertical-align:1px}
.uxPub.on{color:#7FD6A2;border-color:rgba(127,214,162,.45)}
.uxSubNote{margin:-6px 0 12px 19px;font-size:11px;color:#7e8792}
.uxTagNote{width:100%;margin-top:6px;font-size:11px;color:#7e8792}

/* ── 상세 아래 버튼 ── */
.uxMoreW{position:relative;display:inline-flex}
.uxMoreB{min-width:48px;font-size:18px!important;letter-spacing:1px}
#uxMoreMenu{position:absolute;right:0;bottom:calc(100% + 8px);min-width:180px;padding:6px;border-radius:14px;background:#141619;border:.5px solid rgba(255,255,255,.16);
  box-shadow:0 12px 40px rgba(0,0,0,.55);display:flex;flex-direction:column;z-index:20}
#uxMoreMenu button{text-align:left;padding:11px 12px;border-radius:9px;background:none;border:0;color:#e6e9ec;font:inherit;font-size:13px;cursor:pointer}
#uxMoreMenu button:hover,#uxMoreMenu button:focus-visible{background:rgba(255,255,255,.07);outline:none}
#uxMoreMenu button.dgr{color:#F0A69F}
/* 비교·미리보기 탭: 적용 하나만 */
.ux-on .modal.ux-compare .mFoot>:not(#dApply),.ux-on .modal.ux-feed .mFoot>:not(#dApply){display:none!important}

/* ── 되돌리기 바 ── */
#uxUndo{position:fixed;left:50%;bottom:44px;transform:translate(-50%,12px);z-index:230;display:flex;align-items:center;gap:16px;padding:12px 14px 12px 18px;
  border-radius:999px;background:#17191c;border:.5px solid rgba(255,255,255,.18);color:#e6e9ec;font-size:13px;opacity:0;transition:opacity .2s,transform .2s;box-shadow:0 10px 30px rgba(0,0,0,.5)}
#uxUndo.on{opacity:1;transform:translate(-50%,0)}
#uxUndo button{padding:7px 14px;border-radius:999px;border:0;background:rgba(255,255,255,.92);color:#0a0a0a;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}

/* ── 보내기 시트 ── */
.uxShSeg{display:flex;gap:4px;padding:3px;border-radius:999px;background:rgba(255,255,255,.04);border:.5px solid rgba(255,255,255,.12);margin:4px 0 18px;width:max-content}
.uxShSeg button{padding:8px 14px;border-radius:999px;border:0;background:none;color:#9aa2ac;font:inherit;font-size:12.5px;cursor:pointer;min-height:36px}
.uxShSeg button.on{background:rgba(255,255,255,.92);color:#0a0a0a;font-weight:600}
.uxLink{padding:4px 0 6px}
.uxLink p{margin:0 0 4px;font-size:12.5px;color:#b9c0c8}
.uxLink .btn{margin-top:14px}
.shCard.uxLinkMode .lb,.shCard.uxLinkMode #shFr,.shCard.uxLinkMode #shMsg,.shCard.uxLinkMode #shGo,.shCard.uxLinkMode #shWhy,.shCard.uxLinkMode #shLink{display:none!important}
.uxKw{display:inline}
.uxKw summary{display:inline;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255,255,255,.3)}
.uxKw div{display:flex;flex-wrap:wrap;gap:4px 10px;margin:6px 0 2px 10px}
.uxKw div span{display:inline-flex;align-items:center;gap:4px;color:#b9c0c8}
.uxKw div i{width:5px;height:5px;border-radius:50%}
.ux-on .mMeta .mRow .k{white-space:nowrap}
/* 10-23 갈래 → 세부 분류로 길어져 칸 밖으로 넘쳤다 — 값은 ' · ' 에서만 줄바꿈 */
.ux-on .mMeta .mRow .v{white-space:normal}
.ux-on .mMeta .mRow .uxNw{white-space:nowrap}
.ux-on #shDim #shLink{display:none!important}

/* Desktop collection: readable metadata, native buttons, and stable row actions. */
@media (min-width:900px){
  .ux-on .uxPinHint{font-size:12px;color:#aab2bb}
  .ux-on .uxRowHd{font-size:12px;color:#aab2bb;padding-bottom:12px}
  .ux-on .uxRow{padding:12px 14px;min-height:72px;box-sizing:border-box}
  .ux-on .uxRow:hover,.ux-on .uxRow:focus-within{background:rgba(255,255,255,.055)}
  .ux-on .uxRow .nm{font-size:15px;line-height:1.5}
  .ux-on .uxRowOpen{display:block;max-width:100%;width:fit-content;min-height:32px;padding:0;border:0;border-radius:4px;background:none;font-family:inherit;text-align:left;cursor:pointer}
  .ux-on .uxRow .nmc small{font-size:12px;color:#aab2bb;line-height:1.5}
  .ux-on .uxRow .lbs{flex-wrap:wrap;gap:4px 10px;overflow:visible;line-height:1.5}
  .ux-on .uxRow .lbs span{white-space:nowrap}
  .ux-on .uxRow .sim{font-variant-numeric:tabular-nums}
  .ux-on .uxRow .acts .mini{min-height:40px!important;font-size:13px!important}
  .ux-on .uxPin,.ux-on .uxPinSp{width:40px;height:40px;flex-basis:40px}
  .ux-on .uxPin{opacity:.8;border-color:rgba(255,255,255,.25)}
  .ux-on .uxPin.on{opacity:1;background:rgba(255,255,255,.09)}
  .ux-on .listTools button,.ux-on .listTools select{min-height:40px}
  .ux-on .listTools input{font-size:13px}
  .ux-on :is(.uxRow button,.listTools button,.listTools select,.listTools input):focus-visible,
  #cmpLab :is(button,input):focus-visible{outline:2px solid #e5e9ee;outline-offset:3px}
  #cmpLab .lbSeg button{height:36px;font-size:13px;color:#b9c0c8}
  #cmpLab .lbSeg button.on{color:#08090a}
  #cmpLab .lbQ{margin-left:auto}
  #cmpLab .lbQ input{height:42px;width:230px;font-size:14px;border:1px solid #343941}
  #cmpLab .lbNm{font-size:14px;line-height:1.5}
  #cmpLab .lbSim{font-size:12px;color:#aab2bb}
  #cmpLab .lbPin.on{transform:none}
  #cmpLab .lbPin:hover{transform:none}
}
.lbEmpty{grid-column:1/-1;text-align:center;padding:48px 24px;color:#b9c0c8;font-size:14px}
.lbEmpty button{margin-top:12px;min-height:40px;padding:0 18px;border:1px solid #626a75;border-radius:999px;background:none;color:#eef0f2;font:inherit;cursor:pointer}

/* 11-01 6차 — 영서: 핀 '4 / 5' 없앰 · 탭 밑 회색 줄이 끊겨 보임 → 회색 줄 없애고 고른 탭 흰 밑줄만 */
.ag-storage.ux-on #pinCnt{display:none}
.ag-storage.ux-on .uxPinHint{margin-left:10px}
.ag-storage.ux-on .scopeRow{border-bottom:0!important}
#pinTxSw{position:fixed;left:16px;bottom:16px;z-index:2147482980;display:flex;align-items:center;gap:2px;padding:3px;border-radius:16px;border:.5px solid rgba(255,255,255,.3);background:rgba(0,0,0,.6);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-family:Pretendard,sans-serif}
#pinTxSw span{padding:0 6px 0 10px;font-size:11px;color:#6b6b6b;white-space:nowrap}
#pinTxSw button{height:26px;min-width:26px;padding:0 9px;border-radius:999px;border:0;background:none;cursor:pointer;font:600 11.5px Pretendard,sans-serif;color:#8d8d8d}
#pinTxSw button:hover{color:#fff}
#pinTxSw button[aria-pressed=true]{background:rgba(255,255,255,.85);color:#000}
.ag-storage.ux-on #grid .card .when.uxOne{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
