@font-face{font-family:Pretendard;src:url("./fonts/Pretendard.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
*{box-sizing:border-box}body{margin:0;background:#fff6e9;color:#0e2a1d;font:16px Pretendard,"Malgun Gothic",system-ui,sans-serif}
header{background:#fff;padding:10px 0}.wrap{max-width:1250px;margin:auto;padding:0 20px}
.brand{font-size:26px;font-weight:800;display:inline-flex;align-items:center;gap:10px;text-decoration:none}.brand img{object-fit:contain}
a{color:inherit}nav{font-weight:650}.hero,.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px}
.hero{padding:16px 7px;min-height:185px}.hero>.pov-art{width:min(40%,440px)}.hero h1{font-size:clamp(29px,5vw,52px);line-height:1.12;margin:12px 0}
.card,dialog{background:white;border:0;border-radius:16px;padding:20px;box-shadow:0 3px 16px #46301b13}
h2{margin:8px 0;font-size:24px}small{background:#e2f2dd;padding:3px 8px;border-radius:16px;font-size:13px}
.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}button,input,.button{font:inherit;border:1px solid #447054;border-radius:8px;padding:8px 12px;color:inherit;background:white}
button,.button{font-weight:700;cursor:pointer;white-space:nowrap}.button{text-decoration:none;display:inline-block}.primary{background:#17612e;color:white}.danger{color:#a41515;border-color:#a41515}
.notice{border-radius:8px;padding:12px;background:#e7f4df}.table-scroll{overflow:auto;margin:12px 0}
table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:10px;vertical-align:middle}th{background:#e7f3e4;white-space:nowrap}td{border-bottom:1px solid #e7ebe5}
td a{font-weight:700;text-decoration:none}td a:hover{text-decoration:underline}.ellipsis{max-width:95px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drop{display:block;width:100%;background:#eef8eb;border:2px dashed #689475;padding:16px;border-radius:10px;text-align:center}.drop.active{background:#17612e;color:white}.drop img{max-width:80%}.drop p{font-weight:750;font-size:20px}
dialog{width:min(540px,calc(100% - 24px));color:inherit}dialog::backdrop{background:#10261988}
dialog .actions,.login .actions{justify-content:flex-end;margin-top:16px}label{font-weight:700;margin:10px 0;display:block}
#folder-name,#password,progress{width:100%}#file-input{display:block;width:100%;margin:auto}
.login{max-width:540px;padding-top:10vh}.login h1{margin-top:0}button:disabled{opacity:.6;cursor:wait}
#upload-status.busy:before{content:"";display:inline-block;width:15px;height:15px;border:3px solid #a7c9ae;border-top-color:#17612e;border-radius:50%;vertical-align:middle;margin-right:8px;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#upload-status.busy:before{animation:none}}
@media(max-width:640px){.wrap{padding:0 10px}.card{padding:12px}.hero>.pov-art{width:32%}.toolbar{align-items:flex-start;flex-direction:column}th,td{padding:7px}.hero{min-height:125px}}
#admin-password{width:100%}

/* Give item names more emphasis than their metadata. */
tbody td:first-child{font-size:1.125rem;overflow-wrap:anywhere}
body{zoom:var(--screen-scale,1)}
header .wrap{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.screen-size{display:flex;align-items:center;gap:5px;color:#52685c;margin:10px 0 0;padding:4px 0}
.screen-size span{font-size:.875rem;padding:0 4px}
.screen-size button{min-width:36px;padding:5px 8px;border-color:#afbeb1;color:inherit;background:transparent}
.screen-size button[data-screen-size="reset"]{min-width:65px}
.screen-size button:disabled{cursor:default}

.hero nav{color:#56645b;font-size:.9rem}
.hero-title{display:flex;align-items:center;gap:clamp(8px,2vw,20px);flex-wrap:wrap}
.hero-title h1{overflow-wrap:anywhere}
.parent-folder{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 14px;border-radius:999px;background:#dcedd7;color:#15452d;font-weight:700;text-decoration:none;overflow-wrap:anywhere}
.parent-folder:hover{background:#cde5c7}
.parent-folder span{font-size:1.4em;line-height:1}

/* Compact desktop layout with a list that grows with its contents. */
.wrap{max-width:1080px}
.login{max-width:540px}
.hero{padding:12px 7px;min-height:140px}
.hero h1{font-size:clamp(28px,4vw,42px)}
.hero>.pov-art{width:min(38%,300px);max-height:145px}
.table-scroll{overflow-x:auto}
@media(max-width:640px){.hero{min-height:110px}.hero>.pov-art{width:30%}}

.table-scroll{max-height:36rem;overflow:auto}
.table-scroll thead th{position:sticky;top:0;z-index:1}

#trash-confirm{max-width:380px;text-align:center;padding:24px}
#trash-confirm img{display:block;margin:0 auto 10px}
#trash-name{margin:8px 0 18px;color:#526353;overflow-wrap:anywhere}
#trash-confirm .actions{justify-content:center}
#trash-submit{background:#9f381f;border-color:#9f381f;color:white}
.pov-art{position:relative}
.pov-art img{display:block;max-width:100%;max-height:145px;object-fit:contain;margin:0 auto}
.sparkle{display:inline-block;color:#b87906;animation:sparkle 1.9s ease-in-out 2}
.pov-art>.sparkle{position:absolute;right:6%;top:3%;font-size:1.25rem;pointer-events:none}
.upload-art{width:230px;max-width:100%;margin:auto}
.upload-art .soft-edge{mask-image:radial-gradient(ellipse at center,#000 54%,transparent 76%)}
.uploading .sparkle{animation-iteration-count:infinite}
.upload-complete .sparkle{animation:sparkle 1s ease-in-out 2}
@keyframes sparkle{0%,100%{opacity:.9}50%{opacity:.32}}
@media(prefers-reduced-motion:reduce){.sparkle,.uploading .sparkle,.upload-complete .sparkle{animation:none}}

.webhard-address{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.webhard-address span{font-size:.82rem;color:#52685c}
.webhard-address strong{font-size:1.08rem;color:#15452d}

[data-move-file]{cursor:grab;user-select:none}
.move-target>td{background:#d7ead9}


/* Compact type and rows for the shared and administrator views. */
.wrap{max-width:1100px}
.login{max-width:540px}
header{padding:8px 0}
.brand{font-size:22px}
.brand img{width:30px;height:30px}
.hero{min-height:104px;padding:10px 7px}
.hero h1{font-size:clamp(24px,3vw,27px);margin:8px 0}
.hero>.pov-art{width:min(29%,220px)}
.hero .pov-art img{max-height:96px}
.parent-folder{min-height:34px;padding:5px 12px;font-size:14px}
.card{padding:16px}
.card h2{font-size:19px}
.card .toolbar button,.hero button{font-size:15px;min-height:34px;padding:5px 10px}
.card .table-scroll{margin:9px 0;max-height:clamp(280px,calc(100vh - 272px),640px)}
.card th,.card td{padding:4px 9px;font-size:14px}
.card th{height:34px}
.card tbody tr{height:40px}
.card tbody td:first-child{font-size:15px}
.card tbody td:first-child a{font-weight:600}
.card td:not(:first-child){white-space:nowrap}
.card td .actions{gap:6px}
.card td .actions button,.card td .actions .button{font-size:15px;min-height:32px;padding:4px 9px}
.card .drop{min-height:42px;padding:8px 12px;font-size:15px}
@media(max-width:640px){
  .wrap,.card{padding-right:10px;padding-left:10px}
  .hero{min-height:90px}
  .hero .pov-art img{max-height:74px}
  .card td .actions button,.card td .actions .button{min-height:36px}
}

/* Web drag download and compact header. */
.hero{min-height:84px;padding-block:6px;gap:10px}
.hero h1{margin:5px 0}
.hero .pov-art img{max-height:76px}
.card .table-scroll{max-height:clamp(260px,calc(100vh - 300px),640px)}
.download-zone{display:flex;justify-content:space-between;align-items:center;gap:4px 14px;flex-wrap:wrap;margin-top:10px;padding:8px 14px;border:2px dashed #80a9cc;border-radius:10px;background:#edf5fc;color:#183957}
.download-zone[hidden],.download-zone [hidden]{display:none}
.download-zone h2{margin:0;font-size:16px;color:#15538a}
.download-zone p{margin:3px 0 0;font-size:14px;overflow-wrap:anywhere}
.download-options{min-width:0;max-width:100%}
.download-options button{padding:4px 8px;min-height:30px;font-size:14px;border-color:#80a9cc}
#download-zone-status{flex-basis:100%;font-weight:600}
.download-zone.download-active{background:#d4eaff;border-color:#185991}
[data-drag-url]{cursor:grab}
@media(max-width:640px){.hero .pov-art img{max-height:64px}.download-zone{padding-inline:10px}}

.site-version{text-align:right;color:#52685c;font-size:12px;padding-bottom:10px;margin-top:8px}
.room-caption,#page-share-status{font-size:14px;color:#465d50;margin:5px 0}
.page-sharing{margin:6px 0}
.visitor-guide{border:1px dashed #6b9273;border-radius:10px;background:#eef8eb;padding:10px 14px}
.visitor-guide button{border:0;background:transparent;padding:0;text-align:left;white-space:normal}
.visitor-guide p,.retention-note{font-size:13px;color:#405e4c;margin:4px 0 0}
.card .retention-cell{text-align:center;width:1%;white-space:nowrap}
.retention-cell input{width:17px;height:17px;accent-color:#17612e;vertical-align:middle;margin:0}
#new-folder-password,#new-folder-confirm{width:100%}

.site-version{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.site-version button{padding:0;border:0;background:transparent;color:inherit;font:inherit;text-decoration:underline}
.memo-icon{display:inline-block;vertical-align:middle;margin-left:5px;width:24px;height:24px;padding:0;border:0;background:transparent}
.memo-icon::before{content:"";display:block;width:16px;height:18px;margin:auto;background:linear-gradient(135deg,#ffdd65 76%,#d89d21 76%);clip-path:polygon(0 0,100% 0,100% 73%,72% 100%,0 100%);border-radius:2px}
#memo-text{display:block;width:100%;font:inherit;padding:8px;border:1px solid #477153;border-radius:8px;resize:vertical}
#memo-filename{overflow-wrap:anywhere}

.hero{min-height:0;padding:7px 7px 8px}
.hero-copy{min-width:0;flex:1}
.hero .pov-art img{max-height:56px}
.hero .folder-path{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 7px;font-size:13px}
.folder-path a{color:#566d60;overflow-wrap:anywhere}
.folder-path .path-root{color:#10452e;font-size:15px;font-weight:750}
.hero .folder-path h1{font-size:20px;margin:0;overflow-wrap:anywhere}
.hero .room-caption{margin:3px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero .folder-note-edit{min-height:22px;font-size:12px;padding:2px 6px;margin-top:3px}
#folder-note-text{width:100%}
.hero .page-sharing{margin:4px 0 0;gap:6px}
.hero .page-sharing button{min-height:26px;font-size:13px;padding:3px 8px;background:#e6f3e7;color:#23563a}
.hero .page-sharing [data-copy-address]{background:#e8f3ff;color:#214e79;border-color:#7c9ab6}
.hero .page-sharing button:hover{filter:brightness(.93)}
.card .toolbar button{min-height:32px;font-size:14px;padding:4px 8px}
.card td .actions :is(button,.button){min-height:27px;font-size:13px;padding:3px 7px;border-radius:5px;border:1px solid transparent}
.card td .actions :is([data-save-name],button.danger,[data-file-memo]){transition:background-color .15s}
.card td .actions [data-save-name]{background:#edf6ef;color:#1b5236}
.card td .actions [data-save-name]:hover{background:#d5eadb}
.card td .actions button.danger{background:#fbebed;color:#8a2734}
.card td .actions button.danger:hover{background:#f5d7dd}
.card td .actions [data-file-memo]{background:#fff5d9;color:#79500c}
.card td .actions [data-file-memo]:hover{background:#f9e7b3}
.card .folder-upload,.card .download-zone{margin:6px 0 0;padding:7px 12px;border-radius:8px;min-height:44px}
.card .folder-upload{text-align:left;white-space:normal}
.folder-upload strong,.download-zone h2{font-size:15px}
.folder-upload span{display:block;font-size:13px;font-weight:400}
.folder-upload .retention-note{color:inherit}
.card .download-zone{display:grid;grid-template-columns:1fr minmax(0,1fr) 1fr;background:#21496e;color:#fff;border-color:#436789}
.card .download-zone[hidden]{display:none}
.card .download-zone.download-active{background:#163552}
.card .download-zone h2{color:inherit}
.card .download-zone .download-options{justify-self:end}
.card .download-zone #download-destination{font-size:17px;font-weight:700;text-align:center;margin:0}
.card .download-zone #download-zone-status{grid-column:1/-1}
.memo-icon{width:20px;height:20px;margin-left:3px}
.memo-icon::before{width:12px;height:14px}
.memo-unread::before{animation:memo-pulse 1.8s ease-in-out infinite}
@keyframes memo-pulse{50%{opacity:.42}}
@media(prefers-reduced-motion:reduce){.memo-unread::before{animation:none;outline:2px solid #99721b}}
.new-upload td{background:#fff8df}
.new-count,.received-mark{display:inline-block;font-size:12px;font-weight:650;margin-left:5px;padding:2px 6px;border-radius:9px}
.new-count{background:#f9e3a7;color:#614412}
.received-mark{background:#e6f3e7;color:#265139}
@media(max-width:640px){.card .download-zone{grid-template-columns:1fr auto}.card .download-zone #download-destination{grid-column:1/-1;grid-row:2;text-align:left}.hero .pov-art img{max-height:42px}}
