/* 어랍쇼 웹하드 화면 모양. 시안(웹하드_시안.html)에서 옮김. 폰 폭(640px 이하)은 맨 아래 */
/* 레이아웃: 위쪽 시안 고르기 줄 → 아래 무대(게스트 PC 창 / 게스트 폰 360px 틀 / 관리자 창). 허브 관리자와 같은 종이색·먹색·빨강 한 점. */
:root {
  --paper: #f6f5f1; --card: #ffffff; --ink: #1b1b19; --muted: #7d7b74; --faint: #a9a7a0;
  --line: #e3e0d8; --chip: #efede7; --accent: #e8452c; --ok: #2f7d4f; --stage: #e9e7e1;
  --sel: #dce8f5; --hover: #f1f4f8; --folder: #e9b949; --folder-edge: #c99a2e;
  --sans: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #1d1d1b; --card: #262624; --ink: #ecebe6; --muted: #a3a19a; --faint: #75736d;
  --line: #3a3935; --chip: #31302d; --accent: #ff6a4d; --ok: #6fbf8e; --stage: #141413; --sel: #2b3f55; --hover: #2c2f33; --folder: #d6a73f; --folder-edge: #a77f26; color-scheme: dark; } }
:root[data-theme="dark"] {
  --paper: #1d1d1b; --card: #262624; --ink: #ecebe6; --muted: #a3a19a; --faint: #75736d;
  --line: #3a3935; --chip: #31302d; --accent: #ff6a4d; --ok: #6fbf8e; --stage: #141413; --sel: #2b3f55; --hover: #2c2f33; --folder: #d6a73f; --folder-edge: #a77f26; color-scheme: dark; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); font-family: var(--sans); font-size: 14px; word-break: keep-all; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: 13px; }
button:hover { border-color: var(--faint); }
button.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
button.ghost { border-color: transparent; background: none; color: var(--muted); }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input, select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--card); font-size: 14px; width: 100%; }
.num { font-variant-numeric: tabular-nums; }

/* 시안 고르기 */


/* 웹하드 공통 머리 */
.wh-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.wh-brand { font-weight: 800; letter-spacing: .18em; font-size: 13px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.wh-brand .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); position: relative; }
.wh-brand .dot::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); top: 4px; left: 4px; }
.wh-brand small { font-weight: 500; letter-spacing: .12em; color: var(--muted); }
.wh-head .room-name { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wh-head .room-name b { color: var(--ink); }
.wh-foot { align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* 게스트 로그인 */
.login { display: grid; place-items: center; padding: 64px 20px 72px; }
.login-card { width: 100%; max-width: 340px; display: grid; gap: 12px; }
.login-card h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; text-wrap: balance; }
.login-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-card label { font-size: 12px; font-weight: 600; color: var(--muted); }
.msg { min-height: 1.3em; font-size: 12px; color: var(--accent); }

/* 게스트 방 */


/* 관리자 */
.adm-top { display: flex; align-items: center; gap: 10px 22px; padding: 11px 22px; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
.adm-top .crumb { color: var(--muted); white-space: nowrap; }
.adm-top .crumb a { color: var(--muted); text-decoration: none; }
.adm-top .crumb a:hover { color: var(--ink); text-decoration: underline; }
.adm-top .crumb b { color: var(--ink); font-weight: 700; }
.adm-top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.adm-top nav button { background: none; border: 0; color: var(--muted); padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.adm-top nav button:hover { color: var(--ink); }
.adm-top nav button[aria-current="true"] { background: var(--ink); color: var(--paper); }
.adm-top nav button .n { background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 1px 6px; margin-left: 4px; }
.adm-top .use { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.adm-top .use .meter { display: inline-block; width: 70px; height: 4px; border-radius: 4px; background: var(--line); vertical-align: middle; margin: 0 6px; overflow: hidden; }
.adm-top .use .meter i { display: block; height: 100%; width: 1%; background: var(--ink); }
.adm-top .home { font-size: 12px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.adm-top .home:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 1000px) { .adm-top .use { display: none; } .adm-top .home { margin-left: auto; } } /* 좁으면 사용량은 설정 탭에서 */
@media (max-width: 640px) {
  .adm-top { gap: 8px 12px; padding: 10px 12px; }
  .adm-top .home { margin-left: auto; }
  .adm-top nav { order: 5; flex-wrap: nowrap; overflow-x: auto; width: 100%; margin: 0 -4px; }
  .adm-top nav button { flex: none; padding: 6px 10px; }
}
.adm { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 560px; }
.adm aside { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.adm aside .lab { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--faint); padding: 8px 8px 4px; }
.adm aside button.item { text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; font-weight: 500; }
.adm aside button.item small { grid-column: 1; color: var(--faint); font-size: 11px; font-weight: 400; }
.adm aside button.item[aria-current="true"] { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.adm aside button.item .n { grid-row: 1 / span 2; grid-column: 2; align-self: center; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.adm aside button.item.locked { color: var(--faint); }
.adm aside .add { margin: 6px 8px 0; }
.adm main { padding: 20px 24px 28px; min-width: 0; display: grid; gap: 18px; align-content: start; }
.adm h2 { margin: 0; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm h2 .badge { font-size: 11px; }
.sec { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; gap: 12px; min-width: 0; }
.sec h4 { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.field .with { display: flex; gap: 6px; }
.field .with button { flex: none; }
.copyline { display: flex; align-items: center; gap: 8px; background: var(--chip); border-radius: 8px; padding: 8px 10px; font-size: 13px; min-width: 0; }
.copyline code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.copyline button { padding: 4px 10px; font-size: 12px; flex: none; }
.perm { width: 100%; border-collapse: collapse; font-size: 13px; }
.perm th { text-align: left; font-size: 11px; color: var(--faint); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.perm td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.perm tr:last-child td { border-bottom: 0; }
.perm td.c { text-align: center; width: 64px; }
.perm input { width: 16px; height: 16px; accent-color: var(--ink); }
.tblwrap { overflow-x: auto; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; padding: 0; border: 0; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--card); top: 2px; left: 2px; transition: left .15s; }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { left: 16px; }
.uplist { list-style: none; margin: 0; padding: 0; display: grid; }
.uplist li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.uplist li:last-child { border-bottom: 0; }
.uplist small { color: var(--faint); font-size: 11px; }
.uplist .when { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--muted); font-size: 12px; }
.pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--chip); color: var(--muted); white-space: nowrap; }
.pill.on { color: var(--ok); }
.pill.off { color: var(--accent); }
.danger { color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; }

/* 탐색기형 손님 화면(2026-10-10 사용자 요청: 웹하드·탐색기에 익숙한 손님이 바로 쓰게) */
.ex { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; min-height: 520px; background: var(--card); font-size: 13px; }
.ex-tool { display: flex; align-items: center; gap: 2px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: var(--paper); flex-wrap: wrap; }
.ex-tool button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: none; padding: 6px 10px; border-radius: 4px; font-weight: 500; font-size: 13px; }
.ex-tool button:hover:not(:disabled) { background: var(--chip); border-color: var(--line); }
.ex-tool button:disabled { color: var(--faint); cursor: not-allowed; }
.ex-tool button:disabled svg { opacity: .4; }
.ex-tool svg { width: 16px; height: 16px; flex: none; }
.ex-tool .vsep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.ex-tool .find { margin-left: auto; width: 180px; padding: 5px 9px; font-size: 12px; border-radius: 4px; }
.ex-addr { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.ex-addr > button { border: 0; background: none; width: 28px; height: 28px; padding: 0; border-radius: 4px; display: grid; place-items: center; color: var(--muted); }
.ex-addr > button:hover:not(:disabled) { background: var(--chip); color: var(--ink); }
.ex-addr > button:disabled { color: var(--line); cursor: default; }
.ex-addr > button svg { width: 16px; height: 16px; }
.ex-path { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; background: var(--card); overflow-x: auto; white-space: nowrap; }
.ex-path button { border: 0; background: none; padding: 2px 5px; border-radius: 3px; font-weight: 400; font-size: 13px; }
.ex-path button:hover { background: var(--chip); }
.ex-path span { color: var(--faint); }
.ex-treebtn { display: none !important; }
.ex-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 0; }
.ex-tree { border-right: 1px solid var(--line); padding: 8px 4px; overflow: auto; background: var(--card); }
.ex-tree .lab { font-size: 11px; color: var(--faint); padding: 8px 10px 4px; }
.ex-tree button { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; border-radius: 3px; padding: 5px 8px; font-weight: 400; font-size: 13px; text-align: left; white-space: nowrap; }
.ex-tree button:hover { background: var(--chip); }
.ex-tree button[aria-current="true"] { background: var(--sel); }
.ex-tree button em { font-style: normal; font-size: 10.5px; color: var(--muted); margin-left: auto; padding-left: 8px; }
.ex-tree button span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ex-main { overflow: auto; position: relative; min-height: 280px; }
.ex-main.over { outline: 2px dashed var(--accent); outline-offset: -6px; background: var(--paper); }
.ex-list { width: 100%; border-collapse: collapse; font-size: 13px; }
.ex-list th { position: sticky; top: 0; background: var(--card); text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; }
.ex-list th:hover { background: var(--chip); }
.ex-list th.r, .ex-list td.r { text-align: right; }
.ex-list td { padding: 5px 8px; white-space: nowrap; }
.ex-list tbody tr { cursor: default; }
.ex-list tbody tr:hover td { background: var(--hover); }
.ex-list tbody tr.sel td { background: var(--sel); }
.ex-list td.nm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ex-list td.nm b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.ex-list td.nm small { display: none; }
.ex-list .ck { width: 30px; }
.ex-list input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--ink); margin: 0; }
.ex-list .nm input[type=text] { padding: 2px 6px; font-size: 13px; border-radius: 2px; width: 220px; }
.ex-list .new { color: var(--accent); font-weight: 700; font-size: 10px; }
.ex-list .dim { color: var(--muted); }
.ic { width: 18px; height: 18px; flex: none; }
.ex-empty { padding: 48px 16px; text-align: center; color: var(--faint); line-height: 1.7; }
.ex-xfer { border-top: 1px solid var(--line); background: var(--paper); padding: 8px 12px; display: grid; gap: 6px; }
.ex-xfer h5 { margin: 0; font-size: 12px; font-weight: 600; }
.ex-xfer .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-size: 12px; }
.ex-xfer .row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-status { display: flex; gap: 16px; padding: 5px 12px; border-top: 1px solid var(--line); background: var(--paper); font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.ex-status .perm-note { margin-left: auto; }
.ex-menu { position: fixed; z-index: 20; min-width: 160px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 18px #00000026; padding: 4px; display: grid; }
.ex-menu button { border: 0; background: none; text-align: left; padding: 7px 12px; border-radius: 4px; font-weight: 400; font-size: 13px; }
.ex-menu button:hover:not(:disabled) { background: var(--sel); }
.ex-menu button:disabled { color: var(--faint); }
.ex-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }


/* 확장자별 아이콘 색(띠) · 썸네일 · 큰 아이콘 보기 */
:root { --ft-pdf: #d6453d; --ft-img: #2f8f6a; --ft-doc: #2f6fd0; --ft-hwp: #1f9bb8; --ft-ai: #e07a1f; --ft-psd: #3a6fd8; --ft-zip: #8a6b3a; --ft-vid: #7d4fc4; --ft-snd: #c2477f; --ft-xls: #2e8a43; --ft-ppt: #d0632f; --ft-etc: #8b8a84; }
.thumb { width: 18px; height: 18px; flex: none; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.ex-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; padding: 10px; }
.tile { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 6px 8px; border-radius: 6px; border: 1px solid transparent; cursor: default; text-align: center; min-width: 0; }
.tile:hover { background: var(--hover); }
.tile.sel { background: var(--sel); border-color: color-mix(in srgb, var(--ink) 15%, transparent); }
.tile.hl { background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.tile .big { width: 72px; height: 72px; display: grid; place-items: center; }
.tile .big .ic, .tile .big svg { width: 60px; height: 60px; }
.tile .big img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.tile b { font-weight: 400; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile small { font-size: 11px; color: var(--faint); }
.tile input[type=checkbox] { position: absolute; top: 6px; left: 6px; width: 14px; height: 14px; margin: 0; accent-color: var(--ink); opacity: 0; }
.tile:hover input, .tile.sel input { opacity: 1; }
.ex-tool .viewsw { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-left: 6px; }
.ex-tool .viewsw button { border: 0; border-radius: 0; padding: 5px 8px; }
.ex-tool .viewsw button[aria-pressed="true"] { background: var(--chip); }
.pv-back { position: fixed; inset: 0; background: #000000b3; display: grid; place-items: center; padding: 16px; z-index: 40; }
.pv { max-width: min(860px, 100%); display: grid; gap: 10px; justify-items: center; }
.pv img { max-width: 100%; max-height: 70vh; border-radius: 6px; background: #fff; }
.pv .bar2 { display: flex; gap: 8px; align-items: center; color: #fff; font-size: 13px; flex-wrap: wrap; justify-content: center; }
.pv .bar2 span { opacity: .85; }

td .memo, .ex-list .memo { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
/* 한 줄 공지 */
.notice { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 6%, var(--paper)); font-size: 12.5px; min-width: 0; }
.notice .nt-tag { flex: none; font-size: 10.5px; font-weight: 700; color: var(--accent); }
.notice .nt-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ex { display: flex; flex-direction: column; }
.ex > .ex-body { flex: 1; }
.ex-sec { padding: 10px 14px 0; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.ex-pins { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 8px; padding: 8px 14px 12px; border-bottom: 1px solid var(--line); }
.pin { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 6px 10px; border: 1px solid transparent; border-radius: 8px; background: none; text-align: center; cursor: pointer; min-width: 0; color: var(--ink); }
.pin:hover { background: var(--hover); }
.pin-ic svg { width: 64px; height: 64px; }
.pin b { font-size: 12.5px; font-weight: 600; word-break: keep-all; }
.pin small { font-size: 11px; color: var(--muted); }
.pin-new { position: absolute; top: 6px; right: 8px; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 8px; }
.pin-tome { border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.pin-tome.over { background: color-mix(in srgb, var(--accent) 12%, var(--card)); border-color: var(--accent); }
.pin .ph-only { display: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* 2026-10-11 고친 구조: 입장 비번 → 첫 화면(내려받기 전용 + 게스트 폴더 목록) → 내 폴더 비번 → 내 폴더 */
.ex-list tbody tr.hl td { background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.ex-list tbody tr.hl:hover td { background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.ex-list tbody tr.hl.sel td { background: var(--sel); }
.ex-list td.nm b.hlname { font-weight: 700; }
.tag { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--chip); color: var(--muted); white-space: nowrap; }
.tag.red { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.tag.gone { color: var(--muted); }
.ex-tool button.make { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ex-tool button.make:hover { background: var(--ink); opacity: .9; }
.ex-tool button.make svg { opacity: 1; }
.lockic { width: 12px; height: 12px; color: var(--faint); flex: none; }
.usage { display: inline-flex; align-items: center; gap: 6px; }
.usage .meter { width: 60px; height: 4px; border-radius: 4px; background: var(--chip); overflow: hidden; display: inline-block; }
.usage .meter i { display: block; height: 100%; background: var(--ink); }
.dlg-back { position: fixed; inset: 0; background: #0000004d; display: grid; place-items: center; padding: 16px; z-index: 30; }
.dlg { width: 100%; max-width: 360px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 12px; box-shadow: 0 12px 32px #00000033; }
.dlg h3 { margin: 0; font-size: 16px; font-weight: 700; text-wrap: balance; }
.dlg p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.dlg label { font-size: 12px; font-weight: 600; color: var(--muted); }
.dlg .row2 { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.dlg .rules { font-size: 12px; color: var(--muted); background: var(--chip); border-radius: 8px; padding: 10px 12px; line-height: 1.7; margin: 0; }
.perm tr.unseen td { background: color-mix(in srgb, var(--accent) 5%, var(--card)); }
.perm td .sub { display: block; font-size: 11px; color: var(--faint); }
.perm.files-adm td { white-space: nowrap; }
.perm.files-adm td.fn { white-space: normal; min-width: 180px; }
.big-meter { height: 8px; border-radius: 8px; background: var(--chip); overflow: hidden; position: relative; }
.big-meter i { display: block; height: 100%; background: var(--ink); }
.big-meter b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--accent); }
.meter-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); flex-wrap: wrap; gap: 4px 12px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); font-size: 12px; margin: 0; line-height: 1.6; }

/* 공통 작은 것들 */
.tabs { display: flex; gap: 4px; background: var(--chip); padding: 3px; border-radius: 10px; }
.tabs button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; color: var(--muted); }
.tabs button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px #0000001a; }
.empty { padding: 28px 16px; color: var(--faint); text-align: center; font-size: 13px; }
#app { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ex { flex: 1; min-height: 520px; }
.wh-foot a, .wh-foot button { color: var(--ink); text-decoration: none; font-size: 13px; background: none; border: 0; padding: 0; font-weight: 400; }
.wh-foot .sep { color: var(--faint); }
.wh-foot .common { display: inline-flex; align-items: center; gap: 8px; }
.wh-foot .keep { color: var(--muted); }
.adm-badge { font-size: 11px; font-weight: 700; color: #fff; background: var(--ok); border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.wh-head .room-name + .adm-badge { margin-left: 0; }
.loading { padding: 64px 16px; text-align: center; color: var(--muted); }
.ex-list td.nm .lockic { margin-left: -4px; }
.ex-list tbody tr.gone td { color: var(--faint); }
.ex-main .ex-empty b { color: var(--ink); }
.xfer-err { color: var(--accent); }
.bar { grid-column: 1 / -1; height: 4px; background: var(--chip); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); width: 0; transition: width .25s; }
.privacy { max-width: 720px; margin: 0 auto; padding: 32px 20px 48px; line-height: 1.75; font-size: 14px; }
.privacy h1 { font-size: 22px; margin: 0 0 6px; }
.privacy h2 { font-size: 15px; margin: 28px 0 6px; }
.privacy p, .privacy li { color: var(--ink); }
.privacy .muted { font-size: 13px; }
.adm-login { max-width: 420px; margin: 80px auto; padding: 24px; text-align: center; display: grid; gap: 14px; }
.adm-login a.primary { display: inline-block; background: var(--ink); color: var(--paper); border-radius: 8px; padding: 10px 16px; text-decoration: none; font-weight: 600; }

@media (max-width: 640px) {
  .wh-head { padding: 12px 14px; gap: 6px; }
  .wh-head .bm span, .wh-head .adm-badge span { display: none; }
  .wh-brand { letter-spacing: .12em; }
  .wh-head .ghost { padding: 4px 8px; }
  .wh-brand small { display: none; }
  .login { padding: 40px 16px 48px; }
  .wh-foot { padding: 12px 14px; }
  .ex-tool { padding: 4px 6px; justify-content: space-between; }
  .ex-tool button { flex-direction: column; gap: 2px; font-size: 10.5px; padding: 5px 6px; }
  .ex-tool .vsep, .ex-tool .find, .ex-tool .wide { display: none; }
  .ex-treebtn { display: grid !important; }
  .ex-body { grid-template-columns: 1fr; position: relative; }
  .ex-tree { position: absolute; inset: 0 30% 0 0; z-index: 3; box-shadow: 4px 0 16px #00000026; }
  .ex-tree[data-open="false"] { display: none; }
  .ex-list thead { display: none; }
  .ex-list .c-kind, .ex-list .c-date, .ex-list .c-size { display: none; }
  .ex-list td { padding: 8px; }
  .ex-list td.nm { align-items: center; }
  .ex-list td.nm b { display: block; }
  .ex-list td.nm small { display: block; color: var(--faint); font-size: 11px; }
  .ex-list td.nm > div { min-width: 0; display: grid; }
  .ex-status .perm-note { margin-left: 0; }
  .ex-tool .viewsw { display: none; }
  .pin-new { top: 2px; right: 2px; }
  .ex-pins { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 6px 8px 10px; }
  .ex-sec { padding: 8px 10px 0; }
  .pin { padding: 8px 2px; }
  .pin-ic svg { width: 48px; height: 48px; }
  .pin b { font-size: 11.5px; }
  .pin small { font-size: 10.5px; }
  .pin .pc-only { display: none; }
  .pin .ph-only { display: inline; }
  .wh-foot { font-size: 12px; }
}
@media (max-width: 760px) {
  .adm { grid-template-columns: 1fr; }
  .adm aside { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; }
  .adm aside .lab { width: 100%; }
  .adm main { padding: 16px; }
}
.wh-foot [data-arapshow-bros]:empty + .bros-sep { display: none; }
/* 비번을 잊었어요 · 문의하기 */
.forgot { width: 100%; margin-top: 4px; font-size: 13px; }
.dlg .forgot { margin-top: 12px; border: 1px solid var(--line); }
/* 내 폴더 북마크 단추: 작게 */
.wh-head .bm { padding: 4px 8px; font-size: 13px; white-space: nowrap; }
/* 입구 안심 문구 */
.login-card .trust { font-size: 12px; color: var(--faint); }
.login-card .trust a { color: var(--muted); text-decoration: underline; }
/* 관리자: 게스트 폴더 만들어 주기 · 선물 링크 QR */
.adm aside .g-new { width: 100%; margin-bottom: 10px; }
.gift-qr { display: grid; place-items: center; min-height: 240px; margin: 6px 0 10px; background: #fff; border-radius: 10px; text-align: center; }
.gift-qr img { width: min(260px, 70vw); height: auto; image-rendering: pixelated; }
.gift-btns { display: flex; gap: 8px; margin: 10px 0 6px; flex-wrap: wrap; }
.gift-btns button { flex: 1; min-width: 140px; }
.dlg .copyline code { word-break: break-all; }
/* 내 폴더 주소 미리보기(칸 아래) */
.slug-hint { display: block; margin: 4px 0 2px; font-size: 12px; color: var(--muted); word-break: break-all; }
.slug-hint b { color: var(--ink); }
label small { font-weight: 400; color: var(--muted); margin-left: 4px; }
/* 관리자: 게스트 폴더 만들기 두 가지 */
.make-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.make-two button { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; padding: 14px; height: auto; white-space: normal; word-break: keep-all; }
.make-two button b { font-size: 14px; }
.make-two button small { font-size: 12px; opacity: .8; font-weight: 400; line-height: 1.5; }
@media (max-width: 420px) { .make-two { grid-template-columns: 1fr; } }
/* 내 폴더 주소 줄(헤더 아래) */
.addr-bar { display: flex; align-items: center; gap: 8px; padding: 5px 18px; font-size: 12px; color: var(--muted); background: var(--chip); border-bottom: 1px solid var(--line); min-width: 0; }
.addr-bar b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 640px) { .addr-bar { padding: 5px 12px; } }
/* 사용설명서 창 */
.guide { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: g; }
.guide li { counter-increment: g; display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.guide li::before { content: counter(g); width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.guide li b:first-child { display: block; color: var(--ink); font-size: 14px; }
.guide-foot { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
/* 관리 첫 화면(한눈에) */
.dash-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-stat { display: flex; align-items: baseline; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--ink); }
button.dash-stat:hover { border-color: var(--ink); }
.dash-stat { text-align: left; }
.dash-stat .ph-br { display: none; }
.dash-stat b { font-size: 16px; font-weight: 800; }
.dash-stat small { color: var(--muted); font-size: 12px; }
.dash-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-col { display: grid; gap: 18px; min-width: 0; }
.sec h4 small { font-weight: 500; color: var(--faint); margin-left: 6px; letter-spacing: 0; }
.sec h4 .link { float: right; background: none; border: 0; padding: 0; font-size: 12px; color: var(--muted); font-weight: 500; text-decoration: underline; }
.dash-use, .dash-log, .dash-note { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dash-use button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; background: none; border: 0; padding: 7px 4px; border-radius: 6px; font-weight: 500; text-align: left; }
.dash-use button:hover { background: var(--chip); }
.dash-use .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-use .num { font-size: 12px; color: var(--muted); }
.dash-use small { grid-column: 1 / -1; font-size: 11.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-use i { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--chip); overflow: hidden; margin-top: 2px; }
.dash-use i b { display: block; height: 100%; background: var(--ink); }
.dash-use .st { font-style: normal; font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.dash-use .st.wait { background: var(--chip); color: var(--muted); }
.dash-use .st.lock { background: var(--accent); color: #fff; }
.dash-note li { font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.dash-note li:last-child { border-bottom: 0; }
.dash-note .to { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--chip); border-radius: 99px; padding: 1px 7px; margin-right: 6px; vertical-align: 1px; }
.dash-log li { display: grid; grid-template-columns: 76px auto minmax(0, 1fr); gap: 8px; font-size: 12.5px; padding: 5px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.dash-log li:last-child { border-bottom: 0; }
.dash-log .num { color: var(--faint); font-size: 11.5px; }
.dash-log b { font-weight: 600; white-space: nowrap; max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.dash-log li > span:last-child { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .dash-two { grid-template-columns: 1fr; }
  .dash-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .dash-stat { flex-direction: column; align-items: flex-start; gap: 0; border-radius: 10px; padding: 7px 10px; font-size: 11.5px; line-height: 1.35; }
  .dash-stat small { display: block; font-size: 11px; }
  .dash-stat .ph-br { display: inline; }
}
