:root {
  --ink: #101418;
  --muted: #768391;
  --line: #d9dee3;
  --soft: #f7f8f9;
  --dark: #11171b;
  --blue: #318de9;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
body.modal-open { overflow: hidden; }

.site-header {
  height: 51px;
  padding: 0 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand, .header-actions, .login, .download-browser, .owner, .share-summary, .summary-actions, .file-name { display: flex; align-items: center; }
.brand { gap: 8px; font-family: Inter, Arial, sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -.6px; }
.brand__logo { width: 140px; }
.header-actions { gap: 17px; font-family: Inter, Arial, sans-serif; }
.download-browser { gap: 8px; padding: 8px 18px; border-radius: 22px; background: var(--dark); color: #fff; font-size: 14px; }
.login { gap: 8px; font-size: 14px; }
.avatar { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.avatar--header { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; background: linear-gradient(145deg, #54b3ff, #98cfff); font-family: Inter, Arial, sans-serif; font-weight: 600; }

.page-shell { padding: 22px 26px 16px; }
.share-card { min-height: calc(100vh - 140px); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.share-card__top { position: relative; padding: 17px 24px 20px; }
.owner { gap: 8px; color: #606c7a; font-size: 13px; font-weight: 600; }
.owner .avatar { width: 24px; height: 24px; }
.share-summary { gap: 11px; margin-top: 15px; }
.folder-icon { width: 30px; height: 28px; flex: 0 0 auto; }
.folder-icon--large { width: 39px; height: 38px; }
.summary-copy h1 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.summary-copy p { display: flex; gap: 8px; margin: 0; font-size: 12px; }
.summary-copy p span { color: #687a8b; }
.summary-actions { position: absolute; right: 24px; bottom: 26px; gap: 10px; }
.button { height: 37px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 700; transition: transform .15s ease, opacity .15s ease; }
.button:hover { transform: translateY(-1px); opacity: .88; }
.button--light { background: #fff; color: #26323b; }
.button--dark { min-width: 153px; border-color: var(--dark); background: var(--dark); color: #fff; }
.icon { width: 16px; height: 16px; display: inline-block; position: relative; }
.icon-download::before { content: ''; position: absolute; left: 6px; top: 1px; width: 4px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.icon-download::after { content: ''; position: absolute; inset: 1px 1px 0; border: 1.6px solid currentColor; border-top: 0; border-radius: 0 0 3px 3px; clip-path: polygon(0 55%, 35% 55%, 35% 0, 65% 0, 65% 55%, 100% 55%, 100% 100%, 0 100%); }
.icon-add { width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; line-height: 11px; text-align: center; }

.file-panel { border-top: 1px solid var(--line); padding: 15px 24px; }
.file-panel__title { margin-bottom: 32px; }
.file-table { font-size: 13px; }
.file-row { display: grid; grid-template-columns: minmax(360px, 1fr) 128px 200px; align-items: center; column-gap: 0; }
.file-row--head { color: #202b33; }
.file-row--head > div:not(:first-child) { padding-left: 0; }
.file-row--item { min-height: 57px; }
.file-name { gap: 10px; min-width: 0; }
.file-name > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkbox { width: 15px; height: 15px; margin: 0 1px 0 10px; border: 1px solid #d6dee5; border-radius: 3px; flex: 0 0 auto; }
.file-date { color: #9aa8b5; }
.site-footer { height: 51px; display: flex; align-items: center; justify-content: center; gap: 35px; border-top: 1px solid var(--line); font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 25px; padding: 10px 16px; border-radius: 7px; background: var(--dark); color: #fff; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.modal-backdrop[hidden] { display: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .8); }
.login-modal { position: relative; width: min(100%, 408px); min-height: 617px; padding: 33px 32px 22px; border-radius: 16px; background: #fff; color: #10131a; font-family: Inter, Arial, sans-serif; box-shadow: 0 14px 45px rgba(0, 0, 0, .18); }
.login-modal h2 { margin: 0 0 31px; text-align: center; font-size: 32px; line-height: 1; letter-spacing: -.6px; }
.modal-close { position: absolute; top: 17px; right: 24px; border: 0; padding: 0; background: transparent; color: #b9b9b9; font-size: 25px; line-height: 1; cursor: pointer; }
.login-tabs { height: 51px; display: flex; align-items: center; padding: 5px; border: 1px solid #d9e0e5; border-radius: 10px; background: #f5f7f8; }
.login-tab { height: 39px; flex: 1; border: 0; border-radius: 10px; background: transparent; color: #20242a; cursor: pointer; font-size: 14px; }
.login-tab.is-active { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.login-form { display: grid; gap: 16px; margin-top: 31px; }
.login-form input { width: 100%; height: 48px; padding: 0 20px; border: 1px solid #d8e0e6; border-radius: 11px; outline: 0; color: #1a2027; font: inherit; font-size: 14px; }
.login-form input::placeholder { color: #b0b9c1; }
.login-form input:focus { border-color: #8dbce3; box-shadow: 0 0 0 3px rgba(49,141,233,.1); }
.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.password-toggle { position: absolute; top: 0; right: 12px; height: 48px; border: 0; background: transparent; color: #d1d9df; cursor: pointer; font-size: 17px; transform: rotate(25deg); }
.login-submit { height: 49px; margin-top: 8px; border: 0; border-radius: 11px; background: #11161a; color: #fff; cursor: pointer; font-size: 18px; font-weight: 700; }
.or-divider { display: flex; align-items: center; gap: 13px; margin: 28px 0 18px; color: #91a0ad; font-size: 12px; }
.or-divider::before, .or-divider::after { content: ''; height: 1px; flex: 1; background: #dbe1e5; }
.fb-login, .google-login { width: 100%; height: 49px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #d8e0e6; border-radius: 10px; background: #fff; color: #24272c; cursor: pointer; font-size: 16px; }
.google-mark { font-family: Arial, sans-serif; font-size: 23px; font-weight: 700; color: #4285f4; text-shadow: 1px 0 #ea4335, 0 1px #34a853; }
.account-links { margin: 19px 0 0; text-align: center; color: #9cabb7; font-size: 12px; }
.account-links a { color: #1683eb; }
.account-links i, .modal-footer i { display: inline-block; width: 1px; height: 12px; margin: 0 10px -2px; background: #dbe1e5; }
.modal-footer { position: absolute; right: 32px; bottom: 25px; left: 32px; padding-top: 27px; border-top: 1px solid #dbe1e5; text-align: center; color: #aab6bf; font-size: 12px; }

@media (max-width: 680px) {
  .site-header { height: auto; min-height: 58px; padding: 10px 16px; }
  .brand { font-size: 19px; }
  .header-actions { gap: 10px; }
  .download-browser { gap: 0;padding: 8px 10px; font-size: 0; }
  .download-browser .icon { width: 18px; height: 18px; }
  .login > span:last-child { display: none; }
  .page-shell { padding: 14px 12px; }
  .share-card { min-height: calc(100vh - 145px); }
  .share-card__top { padding: 16px; }
  .summary-actions { position: static; margin-top: 18px; }
  .button { flex: 1; padding: 0 12px; }
  .file-panel { padding: 15px 16px; }
  .file-panel__title { margin-bottom: 18px; }
  .file-row { display: block; }
  .file-row--head { display: none; }
  .file-row--item { padding: 12px 0; border-top: 1px solid #eef0f2; }
  .file-row--item .file-name { margin-bottom: 10px; }
  .file-size, .file-date { display: flex; justify-content: space-between; margin-left: 35px; font-size: 12px; }
  .file-size::before, .file-date::before { content: attr(data-label); color: #7d8993; }
  .file-size { color: #9aa8b5; margin-bottom: 7px; }
  .site-footer { gap: 20px; font-size: 11px; }
  .modal-backdrop { padding: 0; }
  .login-modal { min-height: min(312px, 100vh); padding: 32px 32px 20px; border-radius: 16px; }
}
