:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK KR", "Noto Sans KR", Arial, sans-serif;
  color: #24262b;
  background: #fbfbfc;
  font-synthesis: none;
  --ink: #24262b;
  --muted: #686c75;
  --line: #e5e6ea;
  --accent: #c83c35;
  --accent-hover: #af302b;
  --success: #18704e;
}
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; min-height: 100dvh; display: flex; flex-direction: column; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button, input, select, a { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
button { color: inherit; }
button, input, select { border-radius: 6px; }
svg { width: 20px; height: 20px; stroke-width: 1.7; flex-shrink: 0; }
h1, h2, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
h2 { font-size: 17px; line-height: 1.5; font-weight: 650; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.6; }
.site-header { min-height: 88px; padding: 0 40px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 750; white-space: nowrap; }
.brand > svg { width: 29px; height: 29px; color: var(--accent); stroke-width: 2.2; }
.header-right { display: flex; align-items: center; gap: 20px; min-width: 0; }
.connection { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; min-width: 0; }
.connection svg { width: 16px; height: 16px; }
.connection span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; flex-shrink: 0; }
.icon-button:hover { background: #f0f1f4; }
.icon-button:disabled { opacity: .45; }
.button { min-height: 46px; padding: 11px 17px; display: inline-flex; gap: 9px; align-items: center; justify-content: center; border: 1px solid transparent; font-size: 14px; font-weight: 600; line-height: 1.5; border-radius: 6px; }
.button svg { width: 18px; height: 18px; }
.primary { color: #fff; background: var(--accent); }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.primary:disabled { background: #e7e8ec; color: #737782; }
.secondary { background: #fff; border-color: #d5d7dc; }
.secondary:hover { background: #f3f4f6; }
.danger { background: #b32d32; color: #fff; }
.danger:hover { background: #972128; }
.full-width { width: 100%; }
.button-end { margin-left: auto; }
.text-button { border: 0; background: none; padding: 9px 0; min-height: 44px; font-size: 12px; color: var(--muted); }
.text-button:hover { color: var(--ink); }
.workspace { width: min(1080px, 100%); margin: 0 auto; padding: 55px 40px 72px; display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 64px; flex: 1; align-content: start; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-kicker { display: block; font-size: 10px; font-weight: 650; color: var(--muted); margin-bottom: 8px; }
.section-symbol { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #8b8f97; }
.section-symbol svg { width: 25px; height: 25px; }
.dropzone { min-height: 268px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border: 1px dashed #c9ccd4; border-radius: 6px; padding: 28px 16px; text-align: center; transition: border-color 150ms ease, background-color 150ms ease; }
.dropzone.dragging { border-color: var(--accent); background: #fff4f3; }
.dropzone.busy { opacity: .6; }
.upload-symbol { color: var(--accent); margin-bottom: 17px; }
.upload-symbol svg { width: 30px; height: 30px; }
.dropzone h2 { font-size: 17px; margin-bottom: 5px; }
.dropzone .button { margin-top: 22px; }
.selection { margin-top: 16px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.list-heading > span { display: flex; align-items: baseline; gap: 10px; }
.list-heading strong { font-weight: 600; }
.selected-files, .recent-shares { list-style: none; margin: 0; padding: 0; }
.selected-files { max-height: 280px; overflow-y: auto; }
.selected-file { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.file-thumb { width: 44px; height: 48px; display: flex; align-items: center; justify-content: center; background: #eef0f4; border-radius: 4px; flex-shrink: 0; overflow: hidden; color: #737989; }
.file-thumb img, .recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-information { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.file-name { display: block; font-size: 13px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; min-width: 0; }
.file-size { font-size: 12px; }
.upload-options { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.upload-options label { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.upload-options label svg { width: 16px; height: 16px; }
select { border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; padding: 9px 32px 9px 11px; min-height: 40px; }
.error-message { color: #b02730; background: #fff0f1; font-size: 13px; line-height: 1.6; border-radius: 4px; padding: 12px; overflow-wrap: anywhere; margin: 8px 0 16px; }
.upload-progress { padding: 4px 0 16px; }
.upload-progress > div { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
progress { display: block; width: 100%; height: 5px; appearance: none; border: 0; border-radius: 4px; overflow: hidden; background: #e9eaef; }
progress::-webkit-progress-bar { background: #e9eaef; }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.upload-progress .text-button { display: block; margin-left: auto; }
.recent-section { border-left: 1px solid var(--line); padding-left: 28px; min-width: 0; }
.recent-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin-bottom: 24px; }
.recent-heading h2 { font-size: 15px; display: flex; align-items: center; gap: 9px; }
.count { font-size: 11px; font-weight: 550; color: var(--muted); }
.recent-heading .icon-button svg { width: 16px; height: 16px; }
.empty-state { padding: 58px 0; text-align: center; color: var(--muted); }
.empty-state svg { width: 26px; height: 26px; color: #a0a4ae; margin-bottom: 13px; }
.empty-state p { font-size: 12px; }
.recent-share { border-bottom: 1px solid var(--line); padding: 16px 0 10px; }
.recent-share:first-child { padding-top: 0; }
.recent-main { display: flex; align-items: flex-start; gap: 10px; border-radius: 4px; }
.recent-main:hover .file-name { text-decoration: underline; text-underline-offset: 3px; }
.recent-thumb { width: 38px; height: 42px; border-radius: 3px; background: #edf0f5; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #747c8a; }
.recent-information { flex: 1; min-width: 0; }
.recent-description { display: block; font-size: 11px; margin-top: 4px; }
.recent-arrow { width: 14px; height: 14px; margin-top: 3px; color: #9398a2; }
.recent-bottom { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 4px; }
.recent-expiry { font-size: 11px; }
.recent-bottom > div { display: flex; }
.recent-bottom .icon-button { width: 40px; }
.recent-bottom .icon-button svg { width: 15px; height: 15px; }
.upload-result { padding: 28px 0 16px; }
.success-symbol { width: 48px; height: 48px; border-radius: 50%; background: #e5f3ec; color: var(--success); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.upload-result h2 { font-size: 23px; margin-bottom: 8px; }
.link-field { display: flex; align-items: center; border: 1px solid #d4d9dd; border-radius: 6px; padding: 4px; background: #fff; margin-top: 28px; }
.link-field input { min-width: 0; width: 100%; border: 0; background: transparent; padding: 8px 10px; font-size: 13px; color: var(--ink); height: 44px; }
.expiry-line { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.expiry-line svg { width: 14px; height: 14px; }
.upload-result > .expiry-line { margin-top: 12px; }
.result-actions { margin-top: 32px; display: flex; gap: 10px; }
.result-actions > * { flex: 1; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 40px; color: #737782; font-size: 10px; border-top: 1px solid var(--line); }
#footer-status { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.loading-view { flex: 1; min-height: 400px; display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.spinner { width: 18px; height: 18px; border: 2px solid #dddfe5; border-top-color: var(--accent); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-view { width: min(380px, 100%); margin: 68px auto 88px; padding: 0 24px; flex: 1; }
.login-heading { margin-bottom: 32px; }
.login-heading .section-symbol { justify-content: flex-start; margin-bottom: 12px; color: var(--accent); }
.login-heading h1 { font-size: 26px; }
.login-form label { font-size: 13px; font-weight: 550; display: block; margin-bottom: 9px; }
.password-field { display: flex; align-items: center; padding: 2px; background: #fff; border: 1px solid #cdd0d7; border-radius: 6px; }
.password-field input { border: 0; background: transparent; padding: 10px; min-width: 0; width: 100%; height: 44px; }
.password-field .icon-button svg { width: 17px; height: 17px; }
.login-form > .button { width: 100%; margin-top: 20px; }
.share-view { width: min(1080px, 100%); margin: 0 auto; padding: 55px 40px 64px; flex: 1; }
.share-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.share-heading .muted { margin-top: 9px; }
.share-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 20px 0; margin-top: 32px; font-size: 12px; color: var(--muted); }
.shared-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.shared-file { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; min-width: 0; }
.shared-preview { aspect-ratio: 4 / 3; display: flex; justify-content: center; align-items: center; background: #eef0f4; color: #828997; overflow: hidden; }
.shared-preview > svg { width: 40px; height: 40px; stroke-width: 1.3; }
.shared-preview > a { width: 100%; height: 100%; display: flex; }
.shared-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shared-file-info { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; }
.shared-file h2 { font-size: 13px; }
.shared-file-info .icon-button { color: var(--accent); }
.unavailable-view { width: min(480px, 100%); padding: 0 24px; margin: 80px auto; flex: 1; }
.unavailable-view .section-symbol { color: var(--muted); justify-content: flex-start; margin-bottom: 16px; }
.unavailable-view h1 { font-size: 25px; margin-bottom: 12px; }
.unavailable-view .button { margin-top: 28px; }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); display: flex; align-items: center; gap: 9px; background: #252a30; color: #fff; font-size: 13px; border-radius: 6px; padding: 13px 18px; z-index: 10; box-shadow: 0 5px 15px #0002; }
.toast svg { width: 17px; height: 17px; color: #95deb7; }
.clipboard-helper { position: fixed; top: 0; left: -9999px; }
dialog { width: min(380px, calc(100% - 32px)); background: #fff; border: 0; border-radius: 8px; padding: 28px; color: var(--ink); box-shadow: 0 12px 45px #0003; }
dialog::backdrop { background: #20242c77; }
dialog h2 { margin-bottom: 12px; font-size: 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 28px; }
@media (min-width: 1440px) { .site-header, .site-footer { padding-left: 64px; padding-right: 64px; } .workspace, .share-view { padding-top: 72px; } }
@media (max-width: 800px) {
  .site-header { min-height: 74px; padding: 0 24px; }
  .workspace { padding: 36px 24px 48px; gap: 32px; grid-template-columns: minmax(0, 1fr) 240px; }
  .recent-section { padding-left: 20px; }
  .share-view { padding: 36px 24px 48px; }
  .shared-files { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .site-footer { padding: 20px 24px; }
  .connection span { max-width: 170px; }
}
@media (max-width: 640px) {
  .site-header { min-height: 70px; padding: 0 20px; gap: 8px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand > svg { width: 25px; height: 25px; }
  .header-right { gap: 6px; }
  .connection { gap: 5px; }
  .connection span { max-width: 110px; font-size: 10px; }
  .connection svg { width: 14px; height: 14px; }
  .header-right .icon-button { width: 36px; }
  .workspace { display: flex; flex-direction: column; padding: 32px 20px 48px; gap: 42px; }
  h1 { font-size: 25px; }
  .section-heading { margin-bottom: 24px; }
  .dropzone { min-height: 244px; }
  .recent-section { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .recent-heading { margin-bottom: 16px; }
  .empty-state { padding: 32px 0; }
  .share-view { padding: 32px 20px 48px; }
  .share-heading { align-items: flex-start; flex-direction: column; gap: 24px; }
  .share-heading .button { width: 100%; }
  .share-meta { margin-top: 24px; gap: 9px; align-items: flex-start; flex-direction: column; }
  .shared-files { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shared-file-info { padding: 10px; gap: 2px; align-items: flex-start; flex-wrap: wrap; }
  .shared-file-info .file-information { flex-basis: calc(100% - 46px); }
  .shared-file-info .icon-button { width: 36px; }
  .shared-file-info .file-name { font-size: 12px; }
  .site-footer { padding: 20px; }
  .login-view { margin-top: 48px; }
}
@media (max-width: 360px) { .connection { display: none; } .shared-files { grid-template-columns: minmax(0, 1fr); } .result-actions { flex-wrap: wrap; } .result-actions > * { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }
