:root {
  --accent: #2563eb;
  --bg: #f1f5f9;
  --surface: #fff;
  --text: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --soft: #94a3b8;
  --line: #e2e8f0;
  --input: #cbd5e1;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --info-bg: #eff6ff;
  --shadow-card: 0 4px 20px rgba(15, 23, 42, .05);
  --shadow-menu: 0 10px 30px rgba(15, 23, 42, .14);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--body);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

button:disabled {
  cursor: not-allowed !important;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

@keyframes barmove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 28px 0;
  }
}

.app-main {
  min-height: 100vh;
}

.product-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav-left,
.nav-right,
.nav-brand,
.nav-tabs,
.account-trigger {
  display: flex;
  align-items: center;
}

.nav-left {
  min-width: 0;
  gap: 18px;
}

.nav-brand {
  gap: 9px;
  flex-shrink: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.brand-text {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-tabs {
  min-width: 0;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-tab {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-tab:hover {
  background: #f1f5f9;
}

.nav-tab.is-active {
  background: var(--info-bg);
  color: var(--accent);
}

.nav-right {
  gap: 12px;
  flex-shrink: 0;
}

.nav-capacity {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.nav-capacity span {
  display: block;
  color: var(--soft);
  font-size: 10px;
  line-height: 1.15;
}

.nav-capacity strong {
  display: block;
  color: var(--body);
  font-size: 12px;
  line-height: 1.15;
}

.nav-capacity em {
  color: #cbd5e1;
  font-style: normal;
  font-weight: 400;
}

.mini-bar,
.usage-bar {
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 999px;
}

.mini-bar {
  width: 56px;
  height: 6px;
}

.mini-bar i,
.usage-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width .3s ease;
}

.mini-bar i.danger,
.usage-bar i.danger {
  background: var(--danger);
}

.usage-bar i.warn {
  background: var(--warning);
}

.account-menu {
  position: relative;
}

.account-trigger {
  gap: 8px;
  padding: 6px 4px;
  background: transparent;
  color: var(--body);
  cursor: pointer;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #e0e7ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 700;
}

.account-email {
  max-width: 220px;
  overflow: hidden;
  color: var(--body);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  color: var(--soft);
  font-size: 10px;
}

.account-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 150px;
  margin-top: 4px;
  padding: 6px;
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-menu);
}

.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown {
  display: block;
}

.dropdown-form {
  margin: 0;
}

.dropdown-item {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: 7px;
  background: transparent;
  color: var(--body);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover,
.dropdown-item.is-active {
  background: #f1f5f9;
}

.dropdown-item.danger {
  color: var(--danger);
}

.dropdown-item.danger:hover {
  background: #fef2f2;
}

.page-shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 22px 48px;
}

.page-upload {
  max-width: 900px;
}

.page-admin {
  max-width: 1000px;
}

.page-narrow {
  max-width: 520px;
}

.page-heading {
  margin-bottom: 18px;
}

.page-heading.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-heading h1 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.heading-actions,
.upload-actions,
.form-actions,
.editor-actions,
.preset-row,
.row-actions,
.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost,
.btn-copy,
.op-btn,
.preset-row button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.btn-primary {
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-copy:hover {
  filter: brightness(.93);
}

.btn-primary:disabled,
.op-btn:disabled {
  background: #f8fafc;
  border-color: var(--line);
  color: #cbd5e1;
}

.btn-lg {
  width: 100%;
  min-height: 44px;
}

.btn-ghost {
  padding: 0 13px;
  background: #fff;
  border: 1px solid var(--input);
  color: var(--body);
}

.btn-ghost:hover {
  background: #f8fafc;
}

.btn-copy {
  padding: 0 13px;
  background: var(--accent);
  color: #fff;
}

.btn-copy.copied {
  background: var(--success);
}

.op-btn {
  min-height: 30px;
  padding: 0 10px;
  background: transparent;
  border-radius: 7px;
  color: #475569;
  font-size: 12px;
  white-space: nowrap;
}

a.op-btn {
  text-decoration: none;
}

.op-btn:hover,
.op-btn.quota {
  background: #f1f5f9;
}

.op-btn.quota {
  color: var(--accent);
}

.op-btn.danger {
  color: var(--danger);
}

.op-btn.danger:hover {
  background: #fef2f2;
}

.op-btn.enable {
  border: 1px solid #bbf7d0;
  color: var(--success);
}

.row-actions form,
.card-action-row form,
.card-action-grid form {
  margin: 0;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
}

.notice strong {
  color: inherit;
  font-weight: 700;
}

.notice small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
}

.notice-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.notice-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.notice-success .notice-icon {
  background: var(--success);
}

.notice-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.notice-danger .notice-icon {
  background: var(--danger);
}

.notice-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.notice-warning .notice-icon {
  background: #d97706;
}

.notice-info,
.share-banner {
  background: var(--info-bg);
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.notice-info .notice-icon {
  background: var(--accent);
}

.panel,
.data-panel,
.upload-list-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pad-lg {
  padding: 26px;
}

.data-panel {
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.file-table {
  table-layout: fixed;
}

.file-col-name {
  width: auto;
}

.file-col-size {
  width: 100px;
}

.file-col-uploaded {
  width: 150px;
}

.file-col-downloads {
  width: 110px;
}

.file-col-actions {
  width: 150px;
}

.data-table th {
  padding: 12px 14px;
  background: #f8fafc;
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 14px;
  border-top: 1px solid #f1f5f9;
  color: var(--body);
  font-size: 13px;
  vertical-align: middle;
}

.wrap-cell,
.wrap-cell strong,
.identity-cell strong {
  white-space: normal;
  word-break: break-word;
}

.muted {
  color: var(--muted);
}

.danger-text {
  color: var(--danger) !important;
}

.fw-600 {
  font-weight: 600;
}

.mono,
code,
.token-chip {
  font-family: ui-monospace, Menlo, monospace;
}

.file-name-cell,
.identity-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-primary-cell {
  min-width: 0;
}

.file-primary-row {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.file-primary-content {
  min-width: 0;
  flex: 1;
}

.file-primary-content > strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-share-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.file-share-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.file-share-meta b {
  color: #475569;
  font-weight: 600;
}

.file-name-cell strong,
.file-name-cell small,
.identity-cell small {
  display: block;
}

.file-name-cell small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.file-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #64748b;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: ui-monospace, Menlo, monospace;
}

.file-icon.zip { background: #f59e0b; }
.file-icon.pdf { background: #ef4444; }
.file-icon.img { background: #8b5cf6; }
.file-icon.ppt { background: #f97316; }
.file-icon.mp4 { background: #ec4899; }
.file-icon.iso { background: #0ea5e9; }
.file-icon.xls { background: #22c55e; }
.file-icon.doc { background: #3b82f6; }
.file-icon.other { background: #64748b; }

.token-chip {
  min-height: 30px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  overflow: hidden;
  background: var(--info-bg);
  border: 0;
  border-radius: 7px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.token-chip.compact {
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid #bfdbfe;
  font-size: 11px;
}

.pill,
.self-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.pill.info {
  background: var(--info-bg);
  color: var(--accent);
}

.pill.muted {
  background: #f1f5f9;
  color: var(--muted);
}

.pill.success {
  background: #f0fdf4;
  color: var(--success);
}

.pill.danger {
  background: #fef2f2;
  color: var(--danger);
}

.pill.admin {
  background: #eef2ff;
  color: #4338ca;
}

.self-badge {
  margin-top: 4px;
  border: 1px solid #bfdbfe;
  color: var(--accent);
}

.share-banner {
  margin-bottom: 18px;
  padding: 15px 17px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
}

.share-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.share-banner-head strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1d4ed8;
  font-size: 13px;
}

.share-banner-head strong span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
}

.share-banner-head button {
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.copy-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.copy-line code {
  min-width: 220px;
  min-height: 40px;
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1e40af;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-meta {
  display: flex;
  gap: 18px;
  margin-top: 11px;
  flex-wrap: wrap;
  color: #3b82f6;
  font-size: 12px;
}

.share-meta b {
  color: #1e40af;
}

.share-editor,
.inline-editor {
  display: grid;
  grid-template-columns: auto 110px auto auto minmax(160px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
}

.share-editor label,
.inline-editor label,
.form-stack label {
  margin: 0 0 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.share-editor .check-row,
.inline-editor label {
  margin: 0;
}

.ui-input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  background: #fff;
  border: 1px solid var(--input);
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.ui-input.compact {
  height: 36px;
  font-size: 13px;
}

.ui-input:focus,
.code-input-lg:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.preset-row button {
  min-height: 34px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.preset-row button:hover {
  background: var(--info-bg);
  border-color: #bfdbfe;
  color: var(--accent);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
}

.check-row.inline {
  white-space: nowrap;
}

.check-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.card-grid {
  display: grid;
  gap: 12px;
}

.data-card,
.empty-card,
.share-card,
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.data-card {
  min-width: 0;
  padding: 14px;
}

.file-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-info,
.usage-block {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  background: #f8fafc;
  border-radius: 10px;
}

.share-info div,
.usage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.share-info span,
.usage-head span {
  color: var(--muted);
  font-size: 12px;
}

.share-info strong,
.usage-head strong {
  color: var(--body);
  font-size: 12px;
  font-weight: 700;
  word-break: break-word;
}

.compact-share-info {
  gap: 7px;
}

.compact-share-info .share-copy-row {
  align-items: center;
}

.compact-share-info .share-detail-row {
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.compact-share-info .share-detail-row span {
  color: var(--muted);
}

.copy-link-btn {
  min-height: 24px;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.copy-link-btn:hover {
  color: #1d4ed8;
}

.card-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.card-action-row .op-btn,
.card-action-row form,
.card-action-row form .op-btn {
  width: 100%;
}

.card-editor {
  grid-template-columns: 1fr;
  border-top: 1px dashed var(--line);
  border-radius: 0;
  padding: 12px 0 0;
  background: transparent;
}

.usage-cell {
  min-width: 150px;
}

.usage-head em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}

.usage-bar {
  width: 100%;
  height: 6px;
  margin-top: 7px;
}

.capacity-card {
  width: min(100%, 260px);
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 34px 18px;
  background: #fff;
  border: 2px dashed var(--input);
  border-radius: 14px;
  text-align: center;
}

.upload-drop.is-dragging {
  border-color: var(--accent);
  background: var(--info-bg);
}

.upload-icon,
.share-lock {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--info-bg);
  color: var(--accent);
  font-size: 26px;
}

.upload-drop h2,
.upload-list-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.upload-drop p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.upload-list-panel {
  overflow: hidden;
}

.upload-list-panel header {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}

.upload-queue {
  display: flex;
  flex-direction: column;
}

.empty-row {
  padding: 18px;
  color: var(--soft);
  font-size: 13px;
  text-align: center;
}

.upload-task {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 15px 17px;
  border-top: 1px solid #f1f5f9;
}

.upload-task:first-child {
  border-top: 0;
}

.upload-task .file-icon {
  width: 40px;
  height: 40px;
}

.task-main {
  min-width: 0;
}

.task-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.task-title strong {
  color: var(--text);
  font-size: 13px;
  word-break: break-word;
}

.status-badge {
  padding: 2px 9px;
  border-radius: 20px;
  background: #f8fafc;
  color: var(--soft);
  font-size: 11px;
  font-weight: 600;
}

.upload-task[data-status="uploading"] .status-badge {
  background: var(--info-bg);
  color: var(--accent);
}

.upload-task[data-status="paused"] .status-badge {
  background: #f1f5f9;
  color: var(--muted);
}

.upload-task[data-status="done"] .status-badge {
  background: #f0fdf4;
  color: var(--success);
}

.upload-task[data-status="error"] .status-badge {
  background: #fef2f2;
  color: var(--danger);
}

.progress-line {
  height: 7px;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 8px;
}

.progress-line i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 8px;
  background: var(--accent);
  transition: width .5s ease;
}

.upload-task[data-status="uploading"] .progress-line i {
  background: repeating-linear-gradient(45deg, var(--accent), var(--accent) 8px, rgba(255,255,255,.25) 8px, rgba(255,255,255,.25) 16px);
  background-size: 22px 22px;
  animation: barmove .6s linear infinite;
}

.upload-task[data-status="done"] .progress-line i {
  background: var(--success);
}

.upload-task[data-status="error"] .progress-line i {
  background: #ef4444;
}

.task-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  word-break: break-word;
}

.task-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-percent {
  color: var(--body);
  font-size: 13px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.validation-summary,
.field-error,
.text-danger,
.field-validation-error {
  color: var(--danger);
  font-size: 12px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.label-row label {
  margin: 0;
}

.label-row a {
  color: var(--accent);
  font-size: 12px;
}

.auth-shell,
.center-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-wrap {
  width: 100%;
  max-width: 400px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.auth-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 16px;
}

.auth-card {
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.auth-card h1 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
}

.auth-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.auth-footnote {
  margin-top: 18px;
  color: var(--soft);
  font-size: 12px;
  text-align: center;
}

.auth-error {
  margin-bottom: 18px;
}

.empty-card {
  padding: 42px 24px;
  text-align: center;
}

.empty-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: var(--soft);
  font-size: 22px;
}

.empty-icon.danger {
  background: #fef2f2;
  color: var(--danger);
}

.empty-card h1,
.empty-card h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.empty-card p {
  max-width: 420px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 13px;
}

.access-card {
  width: min(100%, 420px);
}

.share-card {
  width: min(100%, 440px);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.share-lock {
  margin-bottom: 18px;
}

.share-lock.muted {
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--soft);
}

.share-card h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  word-break: break-word;
}

.share-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.code-input-lg {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--input);
  border-radius: 10px;
  color: var(--text);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .3em;
  text-align: center;
  text-transform: uppercase;
  outline: none;
}

.code-input-lg.is-invalid {
  border-color: #fca5a5;
}

.btn-download {
  min-height: 46px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

.share-success {
  margin: 16px 0 0;
}

.reason-box {
  padding: 14px;
  background: #f8fafc;
  border-radius: 10px;
  color: var(--muted);
  text-align: left;
}

.reason-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--body);
  font-size: 13px;
}

.reason-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.error-page {
  max-width: 520px;
  text-align: center;
}

.error-code {
  color: #e2e8f0;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
}

.error-page h1 {
  margin: 8px 0 8px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.error-page p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.request-id {
  margin-top: 22px;
  color: var(--soft);
  font-size: 12px;
}

.reset-banner {
  align-items: flex-start;
}

.reset-body {
  flex: 1;
  min-width: 0;
}

.reset-body small {
  display: block;
  margin-top: 8px;
  color: #3b82f6;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.user-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.card-action-grid .op-btn,
.card-action-grid form,
.card-action-grid form .op-btn {
  width: 100%;
  min-height: 38px;
}

.inline-editor {
  grid-template-columns: minmax(180px, 1fr) 120px auto auto;
}

.quota-card-editor {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.desktop-only {
  display: block;
}

.mobile-tablet-only {
  display: none;
}

@media (max-width: 1024px) {
  .desktop-only {
    display: none;
  }

  .mobile-tablet-only {
    display: grid;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .product-nav {
    align-items: center;
    padding: 0 10px;
    gap: 8px;
  }

  .brand-text,
  .nav-capacity,
  .account-email,
  .chevron {
    display: none;
  }

  .nav-left {
    gap: 8px;
  }

  .nav-tabs {
    gap: 3px;
  }

  .nav-tab {
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }

  .page-shell {
    padding: 20px 14px 36px;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .heading-actions,
  .heading-actions .btn-primary,
  .heading-actions .btn-ghost,
  .upload-actions,
  .upload-actions .btn-primary,
  .upload-actions .btn-ghost {
    width: 100%;
  }

  .capacity-card {
    width: 100%;
  }

  .share-editor,
  .inline-editor {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .card-action-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .upload-task {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .task-side {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .copy-line code {
    min-width: 0;
    width: 100%;
    flex-basis: 100%;
  }

  .copy-line .btn-copy {
    width: 100%;
  }

  .auth-shell,
  .center-shell {
    padding: 28px 14px;
  }

  .auth-card,
  .share-card {
    padding: 24px;
  }
}
