:root {
  color-scheme: light;
  font-family: "Pretendard", "Inter", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: #182925;
  background: #f6f7f4;
  --ink: #182925;
  --muted: #596b63;
  --line: #dce4dd;
  --surface: #fff;
  --dark: #182723;
  --green: #23614d;
  --green-dark: #194b3c;
  --lime: #d4ea8b;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #6dab74; outline-offset: 3px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px; background: white; }
.brand { width: fit-content; display: inline-flex; align-items: center; gap: 11px; font-size: 20px; text-decoration: none; font-weight: 750; white-space: nowrap; letter-spacing: -.055em; }
.brand b { font-weight: 520; opacity: .8; }
.mark { position: relative; display: inline-block; flex: 0 0 29px; height: 29px; border-radius: 8px; background: var(--lime); color: #244037; }
.mark::before, .mark::after { position: absolute; content: ""; border: 1.5px solid currentColor; width: 10px; height: 10px; transform: rotate(30deg) skew(-8deg); border-radius: 2px; }
.mark::before { top: 7px; left: 7px; }
.mark::after { top: 11px; left: 11px; background: var(--lime); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 8px 14px; border-radius: 8px; border: 1px solid transparent; text-decoration: none; font-weight: 670; font-size: 14px; white-space: nowrap; }
.primary { background: var(--green); color: white; }
.primary:hover { background: var(--green-dark); }
.quiet { background: white; border-color: var(--line); color: var(--ink); }
.quiet:hover { background: #f1f5ef; }
.danger { background: #a22934; color: white; }
.icon-button { background: transparent; color: inherit; border: 0; border-radius: 7px; min-width: 36px; min-height: 36px; font-size: 20px; }
.icon-button:hover { background: #eaf1e9; }
.gate { min-height: 100svh; display: grid; place-items: center; padding: clamp(18px,4vw,65px); }
.gate-shell { display: grid; grid-template-columns: 1fr 1fr; width: min(1120px,100%); min-height: min(670px,85svh); background: white; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.gate-intro { padding: clamp(28px,5vw,78px); display: flex; flex-direction: column; }
.gate-copy { margin: auto 0; padding: 55px 0 44px; }
.gate-copy h1 { font-size: clamp(39px,5vw,70px); line-height: 1.13; letter-spacing: -.087em; margin: 0; font-weight: 810; }
.gate-copy p { color: var(--muted); font-size: 15px; margin: 24px 0 29px; line-height: 1.7; }
.google { background: white; border-color: #cbd5ce; padding: 12px 20px; color: var(--ink); min-height: 50px; }
.google:hover { background: #f2f6ef; border-color: var(--green); }
.google-letter { font-size: 19px; color: #3569c8; font-family: Arial,sans-serif; }
.notice { border-left: 3px solid var(--green); padding-left: 12px; }
.notice.error { border-color: #a22934; color: #a22934; }
.gate-art { position: relative; background: #264537; display: grid; place-items: center; overflow: hidden; min-height: 210px; }
.art-orbit { position: absolute; border: 1px solid #96b39847; border-radius: 50%; width: 105%; aspect-ratio: 1; }
.orbit-one { transform: scale(.85); }
.orbit-two { transform: scale(1.26); }
.art-stack { position: relative; width: clamp(110px,22vw,278px); aspect-ratio: 1.02; }
.art-sheet { position: absolute; inset: 4% 12%; border-radius: 12%; box-shadow: 8px 18px 40px #122a2a40; }
.sheet-back { background: #81af91; transform: rotate(23deg) translate(23%,7%); }
.sheet-middle { background: #b1cd9e; transform: rotate(-22deg) translate(-21%,3%); }
.sheet-front { background: var(--lime); transform: rotate(-6deg); display: flex; flex-direction: column; gap: 9%; padding: 17%; justify-content: center; }
.sheet-front div { width: 45%; aspect-ratio: 1; background: #264537; border-radius: 24%; margin-bottom: 10%; }
.sheet-front span { height: 4%; width: 90%; background: #526e49; border-radius: 12px; }
.sheet-front span:last-child { width: 58%; }
.shell { display: grid; grid-template-columns: 238px minmax(0,1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 13px; padding: 28px 16px 17px; background: var(--dark); color: #f2f7ee; }
.sidebar .brand { margin: 0 8px 30px; }
.account-label { color: #b6c5bb; font-size: 12px; padding-left: 11px; font-weight: 690; }
.sidebar nav { display: grid; gap: 3px; }
.nav-item { text-align: left; display: flex; gap: 12px; align-items: center; border: 0; color: #e6eee7; background: transparent; padding: 9px 11px; min-height: 43px; border-radius: 8px; font-size: 14px; font-weight: 670; }
.nav-item span { min-width: 20px; color: var(--lime); text-align: center; font-size: 19px; }
.nav-item:hover, .nav-item.active { background: #334d41; }
.space-meter { margin-top: auto; padding: 14px 10px; color: #d9e5da; font-size: 11px; }
.space-meter div { display: flex; justify-content: space-between; gap: 5px; }
progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 30px; overflow: hidden; margin-top: 9px; background: #456050; accent-color: var(--lime); }
progress::-webkit-progress-bar { background: #456050; }
progress::-webkit-progress-value { background: var(--lime); }
progress::-moz-progress-bar { background: var(--lime); }
.profile { display: flex; min-height: 60px; align-items: center; gap: 9px; border-top: 1px solid #40564b; padding: 9px 4px 0; }
.avatar { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #d5e5ce; color: #24382d; font-weight: 770; }
.identity { overflow: hidden; display: grid; gap: 3px; font-size: 12px; }
.identity strong, .identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity small { color: #b6c5bb; font-size: 11px; }
.side-logout { margin-left: auto; min-width: 31px; min-height: 31px; border-radius: 6px; border: 0; background: none; color: #e7f0e7; font-size: 20px; }
.side-logout:hover { background: #334d41; }
.workspace { min-width: 0; }
.topbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px clamp(16px,3.4vw,50px); border-bottom: 1px solid var(--line); background: #fff; }
.search { display: flex; align-items: center; gap: 10px; width: min(455px,100%); padding: 0 13px; min-height: 41px; background: #f3f6f2; border: 1px solid #e4ebe3; border-radius: 8px; }
.search span { font-size: 24px; line-height: 1; }
.search input { border: 0; background: transparent; color: var(--ink); width: 100%; padding: 8px 0; font-size: 14px; }
.mobile-toggle { display: none; }
.panel { min-height: calc(100svh - 74px); padding: 25px clamp(16px,3.4vw,50px) 60px; }
.panel.drag-over { background: #e9f3e6; outline: 2px dashed #528c62; outline-offset: -8px; }
.breadcrumbs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; color: var(--muted); min-height: 24px; font-size: 13px; }
.breadcrumbs button { background: transparent; border: 0; border-radius: 3px; color: inherit; padding: 2px 3px; }
.breadcrumbs button:hover { color: var(--green-dark); text-decoration: underline; }
.heading-row, .actions { display: flex; gap: 9px; align-items: center; }
.heading-row { justify-content: space-between; margin: 7px 0 19px; }
.heading-row h1 { font-size: clamp(26px,3.7vw,43px); letter-spacing: -.06em; margin: 0; line-height: 1.15; overflow-wrap: anywhere; }
.file-status { min-height: 18px; margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.table-wrap { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: white; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #e8ede7; }
th { font-size: 12px; color: #485d51; font-weight: 670; background: #f0f4ef; }
tr:last-child td { border-bottom: 0; }
td { font-size: 13px; color: var(--muted); }
td.modified, th.modified { width: 130px; }
td.size, th.size { width: 88px; }
td.row-actions, th.row-actions { width: 105px; text-align: right; white-space: nowrap; }
.item-label { background: none; border: 0; color: var(--ink); font-weight: 670; display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 0; text-align: left; }
.item-label:hover .item-name { text-decoration: underline; }
.item-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-icon { min-width: 31px; min-height: 34px; display: grid; place-items: center; border-radius: 6px; background: #e6eee4; color: #335f48; font-size: 16px; }
.item-icon.file { background: #edf0ef; color: #47635a; }
.favorite { font-size: 19px; }
.favorite.on { color: #826319; }
.empty { display: grid; place-items: center; text-align: center; min-height: 295px; padding: 36px 18px; align-content: center; background: white; border: 1px dashed #cdd9ce; border-radius: 12px; }
.empty-icon { display: grid; place-items: center; width: 65px; height: 65px; font-size: 34px; background: #e8f0e4; border-radius: 19px; color: #42725a; }
.empty strong { margin-top: 16px; font-size: 18px; }
.empty p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.more { margin-top: 15px; }
.uploads { margin-bottom: 13px; background: white; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; }
.upload-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 14px; padding: 12px 0; font-size: 13px; }
.upload-row + .upload-row { border-top: 1px solid var(--line); }
.upload-row progress { grid-column: 1 / -1; margin-top: 0; }
.upload-name { overflow-wrap: anywhere; }
.upload-status { color: var(--muted); }
.upload-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 4px; }
.upload-actions button { min-height: 30px; padding: 4px 7px; font-size: 12px; }
dialog { width: min(510px,calc(100% - 28px)); max-height: 82svh; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); padding: 20px; box-shadow: 0 16px 70px #172c2840; }
dialog::backdrop { background: #1329227a; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dialog-head h2 { margin: 0; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
#dialog-body { display: grid; gap: 10px; }
#dialog-body p { color: var(--muted); margin: 5px 0; font-size: 13px; overflow-wrap: anywhere; }
.dialog-form, .dialog-menu { display: grid; gap: 9px; }
.dialog-form label { font-size: 13px; font-weight: 650; }
.dialog-form input, .dialog-form select, .share-url { width: 100%; background: white; color: var(--ink); border: 1px solid #bccec0; border-radius: 7px; min-height: 40px; padding: 8px 11px; }
.dialog-form .button { justify-self: end; }
.dialog-menu .button { justify-content: flex-start; }
.dialog-list { list-style: none; padding: 0; margin: 0; }
.dialog-list li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; justify-content: space-between; font-size: 13px; overflow-wrap: anywhere; }
.dialog-list li:last-child { border-bottom: 0; }
.preview-image { display: block; width: 100%; max-height: 45svh; object-fit: contain; background: #f2f5ef; border-radius: 8px; }
.toast { position: fixed; z-index: 4; bottom: 20px; right: 20px; max-width: min(390px,calc(100% - 40px)); border-radius: 8px; padding: 12px 17px; background: #223b2e; color: white; font-size: 14px; overflow-wrap: anywhere; box-shadow: 0 8px 30px #172c2840; }
.toast.fail { background: #8a2b35; }
.public { min-height: 100svh; padding: clamp(19px,6vw,68px); }
.public-shell { max-width: 720px; margin: 0 auto; border: 1px solid var(--line); background: white; border-radius: 15px; padding: clamp(20px,5vw,41px); }
.public-shell h1 { margin: 25px 0 13px; font-size: clamp(24px,4vw,39px); overflow-wrap: anywhere; letter-spacing: -.045em; }
.public-shell p { color: var(--muted); }
.public-content { margin-top: 24px; }
.public-content > a:not(.button) { font-size: 13px; }
.public-list { list-style: none; padding: 0; }
.public-list a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .gate-shell { grid-template-columns: 1fr; }
  .gate-art { grid-row: 1; }
  .gate-copy { padding: 35px 0 17px; }
  .shell { grid-template-columns: minmax(0,1fr); }
  .mobile-toggle { display: inline-block; }
  .sidebar { display: none; position: fixed; left: 0; top: 74px; height: calc(100svh - 74px); width: 236px; z-index: 3; box-shadow: 9px 0 30px #152b2360; }
  .sidebar.open { display: flex; }
  .sidebar .brand { margin-bottom: 14px; }
  .topbar { gap: 8px; }
  .topbar .quiet { padding: 7px 9px; }
  td.modified, th.modified { display: none; }
}
@media (max-width: 440px) {
  .heading-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  td.size, th.size { display: none; }
  td.row-actions, th.row-actions { width: 82px; padding-right: 5px; }
  .gate-art { min-height: 165px; }
}
