:root { color-scheme: light; --ink:#202124; --muted:#727784; --line:#e9ebef; --blue:#2364dc; --surface:#f7f9fc; }
html,body { margin:0!important; min-height:100%!important; background:var(--surface)!important; }
body > :not(#drive-app) { display:none!important; }
#drive-app, #drive-app * { box-sizing:border-box; }
#drive-app [hidden] { display:none!important; }
#drive-app { position:fixed; inset:0; z-index:100; display:grid; grid-template-columns:244px minmax(0,1fr); grid-template-rows:88px minmax(0,1fr); overflow:hidden; color:var(--ink); background:var(--surface); font:14px/1.55 'Segoe UI','Malgun Gothic',sans-serif; letter-spacing:-.25px; }
#drive-app button, #drive-app input { font:inherit; }
#drive-app button { cursor:pointer; }
#drive-app button:disabled { opacity:.4; cursor:default; }
#drive-app button:focus-visible,#drive-app a:focus-visible,#drive-app input:focus-visible { outline:3px solid #a8c7fa; outline-offset:3px; }
#drive-app svg { display:block; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.d-brand { grid-column:1; grid-row:1; display:flex; align-items:center; gap:11px; padding:0 25px; font-size:20px; font-weight:650; letter-spacing:-.8px; }
.d-mark { display:grid; place-items:center; width:36px; height:38px; border-radius:11px; color:white; background:linear-gradient(140deg,#5b89ee,#3665ce); }
.d-mark svg { width:24px!important; height:24px!important; }
.d-top { grid-column:2; display:flex; align-items:center; gap:22px; min-width:0; padding:0 30px 0 8px; }
.d-search { display:flex; align-items:center; gap:13px; padding:0 19px; width:min(700px,100%); height:48px; background:#eaf0f8; border-radius:26px; color:#596577; }
.d-search input { background:transparent; border:0; outline:none!important; width:100%; min-width:0; color:var(--ink); padding:0; box-shadow:none; }
.d-search input::placeholder { color:#7b8493; }
.d-avatar { margin-left:auto; display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; border-radius:50%; background:#dce8ff; color:#345caa; font-size:14px; font-weight:650; flex-shrink:0; }
.d-side { grid-column:1; grid-row:2; display:flex; flex-direction:column; padding:8px 15px 24px; min-height:0; }
.d-new { display:flex; align-items:center; justify-content:center; gap:12px; align-self:flex-start; margin:0 0 30px 9px; padding:16px 22px; color:#253b59; background:#fff; border:1px solid #edf0f5; border-radius:17px; box-shadow:0 2px 4px #23304d0b; font-weight:650!important; }
.d-new:hover { background:#edf3ff; }
.d-nav { display:flex; align-items:center; gap:14px; width:100%; padding:13px 19px; border:0; border-radius:25px; color:#315a9b; background:#e1ebfc; font-weight:650!important; text-align:left; }
.d-sidebar-label { margin:30px 20px 12px; color:#969da9; font-size:11px; font-weight:700; letter-spacing:1.2px; }
.d-workspace { padding:0 20px; display:flex; align-items:center; gap:11px; color:#707886; font-size:13px; overflow-wrap:anywhere; }
.d-workspace svg { color:#919aaa; width:17px!important; }
.d-side-bottom { margin-top:auto; padding:25px 18px 0; }
.d-connection { display:flex; align-items:center; gap:8px; color:#737d8b; font-size:12px; }
.d-dot { width:6px; height:6px; background:#39a477; border-radius:50%; }
.d-side-bottom p { margin:7px 0 0 14px; font-size:11px; line-height:1.8; color:#9aa2af; }
.d-main { grid-column:2; grid-row:2; min-width:0; min-height:0; display:flex; flex-direction:column; background:#fff; margin:0 20px 20px 0; border-radius:23px; overflow:hidden; }
.d-heading { padding:31px 34px 0; display:flex; align-items:flex-start; gap:20px; }
.d-heading h1 { margin:0; font-size:26px; line-height:1.4; font-weight:550; letter-spacing:-1px; overflow-wrap:anywhere; }
.d-heading p { color:#8a919d; margin:6px 0 0; font-size:12px; }
.d-heading-actions { margin-left:auto; display:flex; align-items:center; gap:9px; padding-top:1px; }
.d-button { display:inline-flex; justify-content:center; align-items:center; gap:8px; min-height:38px; padding:9px 15px; border:1px solid #e2e6ec; background:#fff; border-radius:9px; color:#525c6b; white-space:nowrap; }
.d-button:hover { background:#f5f8fc; }
.d-button.primary { background:var(--blue); color:white; border-color:var(--blue); }
.d-button.primary:hover { background:#1957c6; }
.d-button.danger { color:#c64747; }
.d-button svg { width:16px!important; height:16px!important; }
.d-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:23px 34px 18px; color:#9298a3; }
.d-breadcrumb button { border:0; background:none; color:#7b8493; padding:4px 0; max-width:100%; overflow-wrap:anywhere; text-align:left; }
.d-breadcrumb button:last-of-type { color:#424b59; font-weight:600; }
.d-breadcrumb svg { width:14px!important; height:14px!important; }
.d-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:0 34px; padding:12px 0 16px; min-height:62px; border-top:1px solid var(--line); }
.d-toolbar-label { font-size:12px; color:#8b939f; margin-right:auto; }
.d-live { display:inline-flex; align-items:center; gap:6px; padding:4px 9px; border-radius:6px; color:#6f8a7c; background:#f2f8f4; font-size:11px; }
.d-live .d-dot { width:5px; height:5px; }
.d-icon-button { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border:0; border-radius:7px; background:transparent; color:#7d8797; }
.d-icon-button:hover { background:#f0f4fa; color:#3e5b8b; }
.d-body { flex:1; min-height:0; overflow:auto; padding:0 34px 24px; }
.d-table { border-collapse:collapse; width:100%; table-layout:fixed; font-size:13px; margin:0; }
.d-table th { color:#969da8; font-size:11px; font-weight:500; text-align:left; background:#fafbfd; border-top:1px solid var(--line); border-bottom:1px solid var(--line); height:44px; padding:10px 12px; }
.d-table td { padding:16px 12px; border-bottom:1px solid #f0f2f6; color:#7d8592; line-height:1.7; vertical-align:middle; }
.d-table .d-check { width:36px; padding-left:12px; padding-right:5px; }
.d-table .d-type { width:100px; }
.d-table .d-date { width:160px; }
.d-table .d-size { width:95px; }
.d-table .d-more { width:45px; padding:5px; }
.d-table tr:hover td { background:#f8faff; }
.d-table tr.is-selected td { background:#edf3ff; }
#drive-app input[type=checkbox] { width:15px; height:15px; accent-color:#3b72d7; margin:0; vertical-align:middle; }
.d-file { display:flex; gap:13px; align-items:center; min-width:0; border:0; padding:0; background:none; text-align:left; color:#344155; width:100%; font-size:13px; }
.d-file-name { overflow-wrap:anywhere; word-break:break-word; min-width:0; }
.d-locked { display:block; margin-top:4px; font-size:10px; color:#aa8560; font-weight:400; }
.d-file-icon { display:flex; align-items:center; justify-content:center; width:31px; height:36px; flex-shrink:0; color:#7e9ee1; }
.d-file-icon.folder { color:#8dabe4; }
.d-file-icon.folder svg { fill:#e4edff; }
.d-file-icon.pdf { color:#da7776; }
.d-file-icon.image { color:#8e7bc5; }
.d-file-icon.sheet { color:#68a28c; }
.d-file-icon.doc { color:#6c99da; }
.d-file-icon svg { width:25px!important; height:25px!important; }
.d-empty { display:flex; min-height:300px; height:100%; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:45px 25px 65px; }
.d-empty-icon { position:relative; display:grid; place-items:center; width:106px; height:92px; background:#f2f6fd; border-radius:28px; margin-bottom:22px; color:#97b2e7; }
.d-empty-icon svg { width:50px!important; height:50px!important; fill:#e4edff; stroke-width:1.2!important; }
.d-empty h2 { font-size:17px; font-weight:550; color:#576375; margin:0 0 8px; }
.d-empty p { color:#a0a7b2; font-size:12px; line-height:1.9; margin:0; }
.d-footer { border-top:1px solid #f1f3f7; padding:13px 34px; font-size:11px; color:#a0a7b2; display:flex; gap:12px; justify-content:space-between; }
.d-progress { color:#3562aa; background:#eff5ff; padding:12px 20px; margin:0 34px 18px; border-radius:9px; display:flex; align-items:center; gap:12px; }
.d-progress progress { width:130px; margin-left:auto; accent-color:#4077df; }
.d-toast { position:fixed; bottom:32px; left:50%; transform:translateX(-50%); z-index:1005; max-width:calc(100vw - 40px); color:#fff; background:#34445b; padding:13px 22px; border-radius:10px; box-shadow:0 6px 30px #101c3433; font-size:13px; }
#drive-app dialog { border:0; padding:0; border-radius:18px; background:#fff; color:var(--ink); width:min(430px,calc(100vw - 32px)); box-shadow:0 20px 90px #172b4b30; max-height:90dvh; overflow:auto; }
#drive-app dialog::backdrop { background:#182b4c55; backdrop-filter:blur(3px); }
.d-modal { padding:27px; }
.d-modal h2 { font-size:19px; font-weight:600; margin:0 0 20px; }
.d-modal p { color:#7b8595; font-size:13px; line-height:1.8; overflow-wrap:anywhere; }
.d-modal input { width:100%; padding:12px 14px; border:1px solid #dce3ed; border-radius:9px; color:#344155; background:#fff; box-shadow:none; }
.d-modal label { display:block; font-size:12px; color:#7b8595; margin-bottom:7px; }
.d-modal-actions { margin-top:24px; display:flex; justify-content:flex-end; gap:8px; }
.d-preview { width:min(1000px,calc(100vw - 32px))!important; }
.d-preview-head { display:flex; align-items:center; padding:17px 20px; gap:14px; border-bottom:1px solid var(--line); }
.d-preview-head strong { font-size:14px; font-weight:550; overflow-wrap:anywhere; min-width:0; margin-right:auto; }
.d-preview-body { min-height:250px; max-height:72dvh; overflow:auto; padding:24px; }
.d-preview-body img { display:block; max-width:100%; max-height:65dvh; margin:auto; object-fit:contain; }
.d-preview-body iframe { border:0; width:100%; height:65dvh; }
.d-preview-body pre { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; font:13px/1.9 Consolas,'Malgun Gothic',monospace; }
.d-preview-body textarea { box-sizing:border-box; width:100%; min-height:50dvh; border:1px solid #e0e5ee; border-radius:9px; padding:16px; font:13px/1.8 Consolas,'Malgun Gothic',monospace; resize:vertical; background:#fcfdff; color:#344155; }
.d-login-area { position:fixed; inset:0; background:#f5f8fd; display:flex; align-items:center; justify-content:center; padding:20px; }
.d-login { background:#fff; width:410px; max-width:100%; padding:43px 39px 36px; border:1px solid #e9edf5; border-radius:23px; box-shadow:0 15px 70px #28446b08; }
.d-login .d-mark { width:48px; height:48px; margin-bottom:25px; border-radius:15px; }
.d-login h1 { margin:0 0 7px; font-size:25px; font-weight:600; letter-spacing:-1px; }
.d-login p { margin:0 0 30px; font-size:13px; color:#929aa6; }
.d-login label { display:block; font-size:12px; color:#7f8998; margin:20px 0 8px; }
.d-login input { width:100%; padding:13px 14px; border:1px solid #e0e5ee; border-radius:9px; background:#fff; color:#344155; box-shadow:none; }
.d-login .d-button { width:100%; padding:13px; margin-top:28px; }
.d-login-note { font-size:11px; color:#a0a7b2; text-align:center; margin-top:24px; }
.d-dropdown { position:fixed; z-index:1003; background:white; border:1px solid #e6ebf3; border-radius:10px; padding:5px; width:160px; box-shadow:0 8px 30px #253a5b1c; }
.d-dropdown button { width:100%; display:flex; align-items:center; gap:11px; border:0; background:#fff; color:#536175; padding:10px 11px; border-radius:6px; text-align:left; }
.d-dropdown button:hover { background:#f0f5ff; }
.d-dropdown button svg { width:16px!important; height:16px!important; }
.d-drag::after { content:'파일을 놓으면 업로드됩니다'; position:fixed; inset:16px; z-index:1006; border:2px dashed #6a99ed; background:#f2f7fff0; border-radius:22px; color:#416eae; display:grid; place-items:center; font-size:22px; pointer-events:none; }
.d-menu-mobile { display:none; }
@media (max-width:1050px) {
  #drive-app { grid-template-columns:205px minmax(0,1fr); }
  .d-brand { font-size:17px; padding:0 21px; }
  .d-main { margin-right:14px; }
  .d-heading,.d-breadcrumb { padding-left:25px; padding-right:25px; }
  .d-toolbar { margin:0 25px; }
  .d-body { padding:0 25px 24px; }
  .d-table .d-type { display:none; }
  .d-table .d-date { width:130px; }
}
@media (max-width:720px) {
  #drive-app { grid-template-columns:1fr; grid-template-rows:72px minmax(0,1fr); }
  .d-brand { display:none; }
  .d-side { display:none; }
  .d-top { grid-column:1; padding:0 17px; gap:12px; }
  .d-search { height:43px; padding:0 15px; }
  .d-avatar { width:31px; height:31px; }
  .d-main { grid-column:1; margin:0 9px 9px; border-radius:18px; }
  .d-heading { padding:24px 20px 0; flex-wrap:wrap; gap:15px; }
  .d-heading h1 { font-size:23px; }
  .d-heading-actions { gap:6px; }
  .d-heading-actions .d-button { font-size:12px!important; padding:8px 11px; }
  .d-breadcrumb { padding:17px 20px 12px; font-size:12px; }
  .d-toolbar { margin:0 20px; padding:9px 0; gap:6px; }
  .d-toolbar .d-button { padding:7px 10px; font-size:11px!important; min-height:32px; }
  .d-body { padding:0 13px 18px; }
  .d-table td { padding:13px 7px; font-size:12px; }
  .d-table th { padding:9px 7px; }
  .d-table .d-check { width:28px; padding-left:7px; }
  .d-table .d-date { display:none; }
  .d-table .d-size { width:70px; }
  .d-table .d-more { width:32px; }
  .d-file { gap:7px; font-size:12px!important; }
  .d-file-icon { width:25px; }
  .d-file-icon svg { width:22px!important; height:22px!important; }
  .d-footer { padding:12px 20px; font-size:10px; }
  .d-footer span:last-child { display:none; }
  .d-empty { min-height:270px; }
  .d-progress { margin:0 20px 12px; font-size:11px; }
  .d-progress progress { width:65px; }
}
