:root {
  color-scheme: light;
  --ink: #152522;
  --muted: #76827f;
  --line: #e7ece9;
  --accent: #188475;
  --accent-dark: #126c60;
  --mint: #e9f5f1;
  --canvas: #f5f7f6;
  --white: #fff;
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(212, 237, 228, .47), transparent 31rem),
    var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.page-shell { width: min(100% - 48px, 1080px); margin: 0 auto; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: #fff; }
.brand-mark svg { width: 28px; height: 28px; }
.brand-name { font-size: 13px; font-weight: 800; letter-spacing: .075em; }
.brand-name span { margin-left: 7px; color: #97a29f; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.account-actions { display: inline-flex; align-items: center; gap: 10px; }
.mode-badge { display: inline-flex; align-items: center; gap: 8px; color: #64716d; font-size: 11px; font-weight: 650; }
.account-button { min-height: 34px; padding: 0 12px; border: 1px solid #dce7e1; border-radius: 9px; background: #fff; color: #52635c; cursor: pointer; font-size: 10px; font-weight: 700; }
.account-button:hover { border-color: #a9cabe; background: #f8fbf9; color: var(--accent-dark); }
.status-dot, .footer-dot { width: 7px; height: 7px; border-radius: 50%; background: #36a484; box-shadow: 0 0 0 3px #e5f3ed; }

main { padding: 50px 0 84px; }
.intro { margin: 0 auto 37px; text-align: center; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 16px; color: #798985; font-size: 10px; font-weight: 750; letter-spacing: .19em; }
.eyebrow-line { width: 18px; height: 1px; background: #81b7a8; }
h1, h2, h3, p { margin-top: 0; }
.intro h1 { margin-bottom: 13px; font-size: clamp(38px, 5vw, 54px); line-height: 1.15; letter-spacing: -.065em; font-weight: 780; }
.intro h1 span { color: var(--accent); }
.intro p { margin-bottom: 0; color: #75817d; font-size: 15px; line-height: 1.75; }
.mobile-break { display: none; }

.transfer-card { width: min(100%, 568px); margin: 0 auto; overflow: hidden; border: 1px solid rgba(224, 232, 228, .9); border-radius: 19px; background: var(--white); box-shadow: 0 18px 55px rgba(47, 74, 65, .085), 0 2px 7px rgba(47, 74, 65, .035); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 7px; border-bottom: 1px solid var(--line); background: #fbfcfb; }
.tabs.guest-only { grid-template-columns: 1fr; }
.tab { position: relative; display: flex; height: 47px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; background: transparent; color: #7b8783; cursor: pointer; font-size: 13px; font-weight: 670; transition: background .15s ease, color .15s ease; }
.tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: var(--accent); }
.tab.is-active { background: #e9f5f1; color: #176e60; }
.panel { padding: 27px 29px 0; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.panel-heading h2, .result-view h2 { margin-bottom: 6px; font-size: 18px; line-height: 1.35; letter-spacing: -.04em; font-weight: 730; }
.panel-heading p, .result-description { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.limit-chip { flex: none; padding: 7px 9px; border: 1px solid #e7efeb; border-radius: 8px; background: #fbfdfc; color: #62716c; font-size: 10px; font-weight: 700; }

.dropzone { width: 100%; min-height: 157px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #c8d8d1; border-radius: 13px; background: #fbfdfc; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.dropzone:hover, .dropzone.is-dragging { border-color: var(--accent); background: #f3faf7; }
.dropzone.is-dragging { transform: scale(.995); }
.upload-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 11px; border-radius: 13px; background: #edf7f3; color: var(--accent); }
.upload-icon svg { width: 28px; height: 28px; }
.drop-title { color: #34433e; font-size: 13px; font-weight: 680; }
.drop-subtitle { margin-top: 6px; color: #9aa5a1; font-size: 11px; }
.drop-subtitle span { color: var(--accent); font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.selected-files { margin-top: 16px; }
.file-list-heading, .file-total { display: flex; align-items: center; justify-content: space-between; }
.file-list-heading { margin-bottom: 8px; color: #52615c; font-size: 11px; font-weight: 700; }
.text-button { padding: 3px 0; border: 0; background: none; color: #85918d; cursor: pointer; font-size: 10px; }
.text-button:hover { color: #b44c4c; }
.file-list, .download-list { max-height: 166px; overflow: auto; margin: 0; padding: 0; list-style: none; }
.file-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 0; border-top: 1px solid #f0f3f1; }
.file-type-icon { width: 29px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 7px; background: #f1f5f3; color: #79928a; }
.file-type-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.file-row-info { min-width: 0; flex: 1; }
.file-row-name { display: block; overflow: hidden; color: #3e4b47; font-size: 11px; font-weight: 630; text-overflow: ellipsis; white-space: nowrap; }
.file-row-size { display: block; margin-top: 3px; color: #9aa49f; font-size: 10px; }
.remove-file { width: 25px; height: 25px; flex: none; border: 0; border-radius: 7px; background: transparent; color: #9ba5a1; cursor: pointer; font-size: 18px; line-height: 1; }
.remove-file:hover { background: #fff2f0; color: #bd6055; }
.file-total { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); color: #84908b; font-size: 10px; }
.file-total strong { color: #4e5b56; font-size: 11px; }

.primary-button, .secondary-button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 720; transition: background .15s ease, box-shadow .15s ease, transform .15s ease; }
.primary-button { width: 100%; margin-top: 19px; padding: 0 17px; border: 1px solid var(--accent); background: var(--accent); color: #fff; box-shadow: 0 4px 10px rgba(24, 132, 117, .14); }
.primary-button:hover:not(:disabled) { border-color: var(--accent-dark); background: var(--accent-dark); box-shadow: 0 5px 13px rgba(24, 108, 96, .21); }
.primary-button:active:not(:disabled), .secondary-button:active { transform: translateY(1px); }
.primary-button:disabled { border-color: #bed2cb; background: #bed2cb; box-shadow: none; cursor: not-allowed; }
.primary-button svg, .secondary-button svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.primary-button > span { flex: 1; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; color: #98a29e; font-size: 10px; }
.privacy-note svg, .expiry-note svg { width: 14px; height: 14px; flex: none; fill: none; stroke: #8ba69b; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.form-error { margin: 10px 0 0; color: #b34745; font-size: 11px; line-height: 1.5; }
.upload-progress { margin-top: 17px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 7px; color: #66736e; font-size: 10px; }
.progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: #edf1ef; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .18s ease; }

.result-view { padding: 13px 0 0; text-align: center; }
.success-mark { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 16px; background: #e8f5ef; color: #26856e; }
.success-mark svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.result-kicker { margin-bottom: 6px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.result-view h2 { margin-bottom: 5px; }
.result-description { font-size: 11px; }
.code-display { display: flex; align-items: center; justify-content: center; gap: 11px; margin: 21px 0 18px; color: #1d3933; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 33px; font-weight: 760; letter-spacing: .11em; }
.code-display .code-divider { color: #b6c6c0; font-size: 24px; font-weight: 400; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.result-actions .primary-button, .result-actions .secondary-button { min-height: 42px; margin: 0; font-size: 11px; }
.result-actions .primary-button > span { flex: initial; }
.secondary-button { padding: 0 12px; border: 1px solid #e2eae6; background: #fff; color: #54635d; }
.secondary-button:hover { background: #f7faf8; }
.expiry-note { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 15px; color: #8d9994; font-size: 10px; }
.new-transfer { margin: 16px 0 4px; padding: 6px 8px; border: 0; background: transparent; color: #71807a; cursor: pointer; font-size: 11px; font-weight: 650; }
.new-transfer:hover { color: var(--accent); }

.receive-heading { margin-bottom: 19px; }
.code-form { display: grid; grid-template-columns: 1fr 130px; gap: 9px; }
.code-form input { width: 100%; min-width: 0; height: 47px; padding: 0 14px; border: 1px solid #dfe8e3; border-radius: 10px; outline: none; background: #fbfdfc; color: #253732; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; transition: border .15s ease, box-shadow .15s ease; }
.code-form input::placeholder { color: #c2ccc7; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.code-form input:focus { border-color: #78b8a4; box-shadow: 0 0 0 3px rgba(48, 153, 124, .1); }
.code-form .primary-button { min-height: 47px; margin: 0; padding: 0 12px; }
.download-result { margin-top: 20px; padding: 17px; border: 1px solid #e5ece8; border-radius: 12px; background: #fcfdfc; }
.download-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.download-icon { width: 37px; height: 37px; flex: none; display: grid; place-items: center; border-radius: 11px; background: #eaf5f1; color: var(--accent); }
.download-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.download-heading h3 { margin-bottom: 3px; font-size: 12px; font-weight: 720; }
.download-heading p { margin-bottom: 0; color: #87928d; font-size: 10px; }
.download-list { max-height: 139px; padding: 0 1px; }
.download-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #edf1ef; color: #4d5b56; font-size: 10px; }
.download-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-row span:last-child { flex: none; color: #919d98; }
.visibility-settings { margin-top: 17px; padding: 13px 14px 7px; border: 1px solid #e5ece8; border-radius: 11px; background: #fbfdfc; text-align: left; }
.visibility-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; margin-bottom: 8px; }
.visibility-heading strong { color: #4b5a54; font-size: 10px; }
.visibility-heading span { color: #8d9994; font-size: 9px; }
.visibility-toggle { min-width: 57px; flex: none; padding: 5px 8px; border: 1px solid #e0e8e3; border-radius: 7px; background: #fff; color: #77847e; cursor: pointer; font-size: 9px; font-weight: 700; }
.visibility-toggle.is-public { border-color: #b9ded1; background: #eaf6f0; color: #23785f; }
.visibility-toggle:disabled { cursor: wait; opacity: .6; }
.download-row .visibility-toggle { color: #77847e; }
.download-row .visibility-toggle.is-public { color: #23785f; }
.admin-dialog { width: min(100% - 32px, 390px); padding: 0; overflow: visible; border: 1px solid #e2eae5; border-radius: 17px; background: #fff; color: var(--ink); box-shadow: 0 24px 90px rgba(22, 48, 39, .24); }
.admin-dialog::backdrop { background: rgba(20, 36, 31, .42); backdrop-filter: blur(3px); }
.admin-dialog form { padding: 25px 26px 24px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dialog-eyebrow { color: #79958b; font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.dialog-heading h2 { margin: 5px 0 0; font-size: 19px; letter-spacing: -.04em; }
.dialog-close { width: 28px; height: 28px; border: 0; border-radius: 8px; background: #f3f6f4; color: #73817a; cursor: pointer; font-size: 19px; line-height: 1; }
.dialog-description { margin: 11px 0 18px; color: #85918c; font-size: 11px; line-height: 1.5; }
.admin-dialog label { display: block; margin: 13px 0 6px; color: #56655f; font-size: 10px; font-weight: 700; }
.admin-dialog input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #dfe8e3; border-radius: 9px; outline: none; background: #fbfdfc; color: #253732; font-size: 12px; }
.admin-dialog input:focus { border-color: #78b8a4; box-shadow: 0 0 0 3px rgba(48, 153, 124, .1); }
.admin-dialog .primary-button { margin-top: 17px; }
.download-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; padding-top: 12px; border-top: 1px solid #e9eeeb; color: #939e99; font-size: 9px; }
.download-button { width: auto; min-width: 134px; min-height: 37px; margin: 0; padding: 0 12px; font-size: 10px; }
.download-button > span { flex: initial; }
.receive-tip { display: flex; align-items: center; gap: 7px; margin: 17px 0 0; color: #9aa49f; font-size: 10px; line-height: 1.5; }
.tip-icon { width: 14px; height: 14px; flex: none; display: grid; place-items: center; border: 1px solid #aab8b1; border-radius: 50%; color: #8c9b94; font-family: serif; font-size: 9px; font-weight: 700; }

.card-footer { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 23px; padding: 0 29px; border-top: 1px solid #edf1ef; background: #fcfdfc; color: #98a29e; font-size: 9px; }
.card-footer > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.card-footer .footer-dot { width: 6px; height: 6px; box-shadow: 0 0 0 2px #e5f3ed; }
.card-footer strong { color: #65736d; font-weight: 700; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 25px; color: #a1aaa6; font-size: 9px; }
.toast { position: fixed; z-index: 10; right: 22px; bottom: 22px; max-width: calc(100% - 44px); padding: 12px 16px; transform: translateY(12px); border: 1px solid #dfeae4; border-radius: 10px; background: #fff; box-shadow: 0 8px 30px rgba(35, 66, 55, .14); color: #38534a; font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }

@media (max-width: 620px) {
  .page-shell { width: min(100% - 32px, 460px); }
  .topbar { height: 69px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-name { font-size: 11px; }
  .brand-name span { font-size: 8px; }
  .account-actions { gap: 7px; }
  .mode-badge { font-size: 9px; }
  .account-button { min-height: 31px; padding: 0 9px; font-size: 9px; }
  main { padding: 42px 0 56px; }
  .intro { margin-bottom: 27px; }
  .eyebrow { margin-bottom: 13px; font-size: 9px; }
  .intro h1 { font-size: clamp(37px, 10vw, 47px); }
  .intro p { font-size: 13px; }
  .mobile-break { display: initial; }
  .transfer-card { border-radius: 16px; }
  .tabs { padding: 6px; }
  .tab { height: 43px; font-size: 12px; }
  .panel { padding: 23px 20px 0; }
  .panel-heading { gap: 9px; }
  .panel-heading h2, .result-view h2 { font-size: 16px; }
  .panel-heading p { font-size: 11px; }
  .limit-chip { padding: 6px 7px; font-size: 9px; }
  .dropzone { min-height: 147px; }
  .card-footer { min-height: 45px; padding: 0 20px; font-size: 8px; }
  .page-footer { flex-direction: column; align-items: center; padding-top: 17px; text-align: center; }
}

@media (max-width: 390px) {
  .page-shell { width: calc(100% - 24px); }
  .brand-name span { display: none; }
  .account-actions { gap: 5px; }
  .mode-badge { gap: 6px; font-size: 8px; }
  .account-button { padding: 0 7px; font-size: 8px; }
  .panel { padding-right: 16px; padding-left: 16px; }
  .card-footer { padding-right: 16px; padding-left: 16px; }
  .code-form { grid-template-columns: 1fr 105px; gap: 7px; }
  .code-form input { padding: 0 10px; font-size: 14px; }
  .code-form .primary-button { padding: 0 9px; font-size: 10px; }
  .download-result { padding: 13px; }
  .download-footer { align-items: flex-end; }
  .download-button { min-width: 123px; }
  .code-display { font-size: 28px; }
}
