:root {
  --bg: #f7f8fc;
  --panel: #ffffff;
  --text: #080d27;
  --muted: #5f6475;
  --line: #cfd3dd;
  --soft-line: #e8eaf1;
  --navy: #080d27;
  --navy-2: #111735;
  --soft: #f1f3f8;
  --success: #0f7a4f;
  --warning: #ad6b00;
  --danger: #a32929;
  --focus: rgba(8, 13, 39, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(247,248,252,0) 280px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header,
.app-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.app-shell.narrow {
  width: min(760px, calc(100% - 32px));
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
}

.brand {
  text-decoration: none;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .16em;
}

.privacy-note,
.site-footer,
.small-copy,
.field small {
  color: var(--muted);
  font-size: .9rem;
}

.hero {
  padding: 58px 0 28px;
  max-width: 760px;
}

.hero.compact {
  padding-top: 42px;
  padding-bottom: 18px;
}

.folder-hero {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.eyebrow,
.result-label,
.mode-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: .92;
  letter-spacing: -.075em;
}

.hero.compact h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.preserve-lines {
  white-space: pre-wrap;
}

.workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.workspace.single {
  display: block;
}

.mode-switch {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
}

.mode-button {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.mode-button:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}

.mode-button.is-active {
  background: var(--panel);
  border-color: var(--navy);
  box-shadow: inset 4px 0 0 var(--navy);
}

.mode-button strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.14rem;
}

.mode-button span:last-child {
  display: block;
  color: var(--muted);
  font-size: .92rem;
}

.tool-panel,
.download-card {
  background: var(--panel);
  border: 1px solid var(--line);
}

.tool-section {
  display: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: clamp(22px, 4vw, 42px);
}

.tool-section.is-active {
  display: grid;
}

.section-intro {
  max-width: 680px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--soft-line);
}

.section-intro p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.stacked-form {
  display: grid;
  gap: 16px;
}

.form-grid,
.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.mini-label {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.field-hero input {
  font-size: 1.15rem;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px var(--focus);
}

.dropzone {
  min-height: 230px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 28px;
  border: 1.5px dashed var(--line);
  background: var(--soft);
  text-align: center;
  transition: border-color .18s ease, background .18s ease;
}

.dropzone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: var(--navy);
  background: #fff;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 1.6rem;
  font-weight: 700;
}

.drop-title {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.035em;
}

.drop-help,
.file-name {
  display: block;
  color: var(--muted);
}

.file-name {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--soft-line);
  font-size: .92rem;
}

.action-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.action-line .small-copy {
  margin: 0;
}

.button {
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--navy);
  border-radius: 0;
  padding: 12px 18px;
  background: transparent;
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  transition: background .18s ease, color .18s ease, opacity .18s ease, transform .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  background: var(--navy);
  color: #fff;
}

.button-outline {
  background: #fff;
}

.button-danger {
  border-color: var(--danger);
  color: var(--danger);
}

.progress-wrap {
  display: grid;
  gap: 8px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .88rem;
}

progress {
  width: 100%;
  height: 10px;
  accent-color: var(--navy);
}

.status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.status.success { color: var(--success); }
.status.error { color: var(--danger); }

.result {
  margin-top: 4px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--navy);
  background: #fff;
}

.result h2 {
  margin-bottom: 16px;
}

.link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 14px;
}

.link-box input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.meta-list div {
  padding-top: 12px;
  border-top: 1px solid var(--soft-line);
}

.meta-list dt {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.meta-list dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.download-card {
  padding: clamp(22px, 4vw, 42px);
}

.download-card h2 {
  overflow-wrap: anywhere;
}

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

.file-list {
  display: grid;
  gap: 0;
}

.file-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--soft-line);
}

.file-row:first-child {
  padding-top: 0;
}

.file-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.file-main h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.file-main p {
  margin-bottom: 0;
}

.file-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.file-preview {
  width: 112px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
  text-decoration: none;
}

.file-preview img,
.file-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-preview-document {
  color: var(--muted);
  font-size: .8rem;
}

.preview-mark {
  display: block;
  padding: 6px 8px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-weight: 900;
  letter-spacing: .08em;
}

.preview-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 7px;
  background: rgba(255,255,255,.92);
  font-size: .72rem;
  font-weight: 800;
}

.empty-state {
  margin: 0;
  padding: 32px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer {
  padding: 26px 0 42px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 38px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .mode-switch {
    position: static;
    grid-template-columns: 1fr;
  }

  .form-grid,
  .controls {
    grid-template-columns: 1fr;
  }

  .action-line,
  .folder-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }

  .file-row {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .file-preview {
    width: 84px;
  }

  .file-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header,
  .app-shell {
    width: min(100% - 24px, 1040px);
  }

  h1 {
    font-size: clamp(2.35rem, 15vw, 3.8rem);
  }

  .tool-section,
  .download-card {
    padding: 18px;
  }

  .dropzone {
    min-height: 190px;
    padding: 20px;
  }

  .link-box {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

/* UX minimal version */
:root {
  --ux-accent: #5638ee;
  --ux-accent-dark: #452bd0;
  --ux-bg: #f7f7fa;
  --ux-text: #111116;
  --ux-muted: #73737f;
  --ux-border: #e3e3e9;
  --ux-soft: #fafafe;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body { background: var(--ux-bg); color: var(--ux-text); }
.minimal-header { width: min(760px, calc(100% - 32px)); padding: 22px 0 8px; }
.simple-shell { width: min(760px, calc(100% - 32px)); margin: 34px auto 0; }
.simple-card { background: #fff; border: 1px solid var(--ux-border); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 50px rgba(20,20,40,.06); }
.simple-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; background: #f2f2f6; border-bottom: 1px solid var(--ux-border); }
.simple-tab { min-height: 48px; border: 0; border-radius: 13px; background: transparent; color: var(--ux-muted); font-weight: 800; }
.simple-tab.is-active { background: #fff; color: var(--ux-text); box-shadow: 0 1px 4px rgba(20,20,40,.08); }
.simple-panel { display: none; padding: clamp(24px, 6vw, 52px); }
.simple-panel.is-active { display: block; }
.simple-heading { margin-bottom: 28px; text-align: center; }
.simple-heading h1 { margin: 0 0 9px; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1; letter-spacing: -.055em; }
.simple-heading p { margin: 0; color: var(--ux-muted); font-size: 1.02rem; }
.simple-form { display: grid; gap: 16px; }
.simple-dropzone { min-height: 300px; border: 1.5px dashed #a9a1ee; border-radius: 18px; background: #fbfaff; cursor: pointer; }
.simple-dropzone:hover, .simple-dropzone.is-dragging { border-color: var(--ux-accent); background: #f7f5ff; }
.simple-dropzone.is-uploading { pointer-events: none; opacity: .72; }
.simple-dropzone .upload-icon { width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--ux-accent); color: #fff; }
.simple-dropzone .drop-title { font-size: 1.3rem; }
.simple-dropzone .drop-help { color: var(--ux-accent); font-weight: 750; }
.simple-dropzone .file-name { border: 0; padding-top: 2px; font-size: .88rem; }
.advanced-options { border-top: 1px solid var(--ux-border); padding-top: 2px; }
.advanced-options summary, .owner-link-details summary { padding: 12px 0; color: var(--ux-muted); cursor: pointer; font-size: .9rem; font-weight: 750; }
.advanced-options summary:hover, .owner-link-details summary:hover { color: var(--ux-text); }
.advanced-grid { display: grid; grid-template-columns: 1fr 180px; gap: 14px; padding: 8px 0 6px; }
.advanced-wide { grid-column: 1 / -1; }
.field input, .field textarea, .field select, .copy-row input { border-radius: 12px; border-color: var(--ux-border); }
.field-large input { min-height: 58px; font-size: 1.1rem; }
.full-button { width: 100%; min-height: 54px; border-radius: 12px; border-color: var(--ux-accent); background: var(--ux-accent); }
.full-button:hover, .copy-row .button-primary:hover { background: var(--ux-accent-dark); }
.tiny-note { margin: 0; color: var(--ux-muted); font-size: .82rem; text-align: center; }
.simple-result { padding: 18px 0 4px; text-align: center; }
.simple-result h2 { margin: 12px 0 6px; font-size: 1.8rem; }
.simple-result > p { margin-bottom: 22px; color: var(--ux-muted); }
.success-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto; border-radius: 50%; background: #eaf7ef; color: #16944f; font-size: 1.7rem; font-weight: 900; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; text-align: left; }
.copy-row input { min-width: 0; background: #fafafa; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .83rem; }
.copy-row .button { border-radius: 12px; border-color: var(--ux-accent); background: var(--ux-accent); color: #fff; }
.secondary-copy-row .button { background: #fff; color: var(--ux-text); border-color: var(--ux-border); }
.owner-link-details { margin-top: 18px; text-align: left; border-top: 1px solid var(--ux-border); }
.owner-link-details .tiny-note { margin-bottom: 10px; text-align: left; }
.compact-actions { justify-content: center; align-items: center; }
.compact-actions .button { border-radius: 12px; }
.text-button { border: 0; background: none; padding: 10px; color: var(--ux-muted); font-weight: 750; }
.text-button:hover { color: var(--ux-text); }
.danger-text:hover { color: var(--danger); }
.simple-footnote { margin: 18px 0 40px; color: var(--ux-muted); text-align: center; font-size: .85rem; }
.request-shell { max-width: 680px; }
.request-card { padding: clamp(24px, 6vw, 52px); }
.request-heading { margin-bottom: 26px; }
.request-heading .eyebrow { color: var(--ux-accent); }
.request-heading h1 { font-size: clamp(2rem, 6vw, 3rem); overflow-wrap: anywhere; }
.request-dropzone { min-height: 290px; }
.request-meta-line { margin-top: 18px; color: var(--ux-muted); text-align: center; font-size: .8rem; }
.sender-details { margin-top: 0; }
.upload-success-state { padding: 42px 0 28px; text-align: center; }
.upload-success-state h2 { margin: 14px 0 6px; }
.upload-success-state p { color: var(--ux-muted); }

/* So folder and download views visually match the simplified version. */
.tool-panel, .download-card { border-color: var(--ux-border); border-radius: 18px; overflow: hidden; box-shadow: 0 12px 36px rgba(20,20,40,.05); }
.download-card { padding: clamp(24px, 5vw, 40px); }
.folder-hero h1, .hero.compact h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.button { border-radius: 12px; }
.button-primary { background: var(--ux-accent); border-color: var(--ux-accent); }

@media (max-width: 620px) {
  .privacy-note { display: none; }
  .minimal-header { padding-top: 18px; }
  .simple-shell { margin-top: 18px; width: min(100% - 20px, 760px); }
  .simple-panel, .request-card { padding: 24px 18px; }
  .simple-dropzone { min-height: 245px; }
  .advanced-grid { grid-template-columns: 1fr; }
  .advanced-wide { grid-column: auto; }
  .copy-row { grid-template-columns: 1fr; }
  .copy-row .button { width: 100%; }
  .simple-tabs { gap: 2px; }
}

/* Refined private upload folder */
.folder-page {
  background: #f7f7fb;
  color: #17171c;
}

.folder-site-header {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #ececf2;
}

.folder-private-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1efff;
  color: #5b3df5;
  font-size: .78rem;
  font-weight: 800;
}

.folder-shell {
  width: min(100% - 32px, 980px);
  margin: 54px auto 80px;
}

.folder-topbar {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.folder-heading-wrap {
  min-width: 0;
}

.folder-heading-wrap .eyebrow {
  margin-bottom: 8px;
  color: #5b3df5;
}

.folder-heading-wrap h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 3.55rem);
  line-height: .98;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}

.folder-intro {
  margin: 14px 0 0;
  max-width: 680px;
  color: #696974;
  font-size: 1rem;
  line-height: 1.6;
}

.folder-refresh {
  appearance: none;
  border: 1px solid #e0e0e7;
  background: #fff;
  color: #262630;
  border-radius: 12px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20,20,40,.04);
}

.folder-refresh:hover { border-color: #c9c9d4; }
.folder-refresh.is-loading span:first-child { animation: folder-spin .8s linear infinite; }
@keyframes folder-spin { to { transform: rotate(360deg); } }

.folder-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e8e8ef;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(20,20,40,.035);
}

.folder-count {
  min-width: 74px;
  min-height: 74px;
  padding: 10px;
  border-radius: 16px;
  background: #5b3df5;
  color: #fff;
  display: grid;
  place-content: center;
  text-align: center;
}

.folder-count strong {
  font-size: 1.55rem;
  line-height: 1;
}

.folder-count span {
  margin-top: 3px;
  font-size: .7rem;
  font-weight: 700;
  opacity: .82;
}

.folder-summary-copy p {
  margin: 0;
  color: #777783;
  font-size: .86rem;
}

.folder-summary-copy p:first-child {
  margin-bottom: 5px;
  color: #24242c;
  font-weight: 800;
}

.folder-files {
  background: #fff;
  border: 1px solid #e8e8ef;
  border-radius: 20px;
  padding: 10px 20px 20px;
  box-shadow: 0 12px 36px rgba(20,20,40,.04);
}

.folder-list-header {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #eeeeF3;
}

.folder-list-header h2 {
  margin: 0;
  font-size: .95rem;
}

.folder-list-header span {
  color: #858590;
  font-size: .78rem;
  font-weight: 700;
}

.folder-file-list {
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.folder-file-card {
  display: grid;
  grid-template-columns: 72px minmax(0,1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: background .16s ease, border-color .16s ease, opacity .16s ease;
}

.folder-file-card:hover {
  background: #fafaff;
  border-color: #eeeeF4;
}

.folder-file-card.is-deleting { opacity: .42; pointer-events: none; }

.folder-file-preview {
  width: 72px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
  background: #f1f1f6;
  text-decoration: none;
}

.folder-file-preview img,
.folder-file-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.folder-file-preview-generic {
  background: linear-gradient(145deg, #f0edff, #f8f7ff);
  color: #5b3df5;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.folder-preview-label {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 5px;
  border-radius: 5px;
  background: rgba(20,20,26,.82);
  color: #fff;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.folder-file-info { min-width: 0; }

.folder-file-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.folder-file-title-row h3 {
  margin: 0;
  min-width: 0;
  font-size: .98rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-file-size {
  flex: 0 0 auto;
  color: #9696a0;
  font-size: .72rem;
  font-weight: 700;
}

.folder-file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
  color: #858590;
  font-size: .76rem;
}

.folder-file-message {
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #f6f6f9;
  color: #5f5f69;
  font-size: .78rem;
  line-height: 1.4;
}

.folder-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.folder-download-button {
  min-width: 76px;
  min-height: 40px;
  padding: 0 14px;
}

.folder-delete-button {
  appearance: none;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #9b9ba5;
  padding: 0 8px;
  border-radius: 10px;
  font: inherit;
  font-size: .76rem;
  font-weight: 750;
  cursor: pointer;
}

.folder-delete-button:hover {
  background: #fff0f0;
  color: #b42c2c;
}

.folder-empty-state {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 40px 20px;
}

.folder-empty-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #f0edff;
  color: #5b3df5;
  font-size: 1.4rem;
  font-weight: 800;
}

.folder-empty-state h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.folder-empty-state p {
  max-width: 420px;
  margin: 0;
  color: #858590;
  line-height: 1.55;
}

.folder-error-state .folder-empty-icon {
  background: #fff0f0;
  color: #b42c2c;
}

@media (max-width: 700px) {
  .folder-shell { width: min(100% - 20px, 980px); margin-top: 30px; }
  .folder-topbar { align-items: flex-end; }
  .folder-refresh span:last-child { display: none; }
  .folder-summary { padding: 14px; }
  .folder-count { min-width: 64px; min-height: 64px; }
  .folder-files { padding: 8px 10px 12px; }
  .folder-file-card { grid-template-columns: 58px minmax(0,1fr); gap: 12px; padding: 10px 8px; }
  .folder-file-preview { width: 58px; height: 52px; }
  .folder-file-actions { grid-column: 2; justify-content: flex-start; margin-top: -2px; }
  .folder-download-button { min-height: 36px; }
  .folder-delete-button { min-height: 36px; }
  .folder-file-title-row { display: block; }
  .folder-file-title-row h3 { white-space: normal; }
  .folder-file-size { display: inline-block; margin-top: 3px; }
}


/* Modtag filer: mail er standardvalget */
.mail-default-card {
  border: 1px solid var(--border, #e5e5ea);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  display: grid;
  gap: 10px;
}
.mail-default-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}
.mail-default-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #5b3df5;
}
.mail-default-field { margin: 0; }
.mail-default-field.is-disabled { opacity: .48; }
.mail-default-card .tiny-note { margin: -2px 0 0; }

/* Del en fil: kopiér eller send linket direkte på mail */
.share-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  text-align: left;
}
.share-link-row > input {
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--ux-border);
  background: #fafafa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .83rem;
}
.share-link-actions {
  display: flex;
  gap: 8px;
}
.share-link-actions .button {
  border-radius: 12px;
  white-space: nowrap;
}
.share-link-actions .button-primary {
  border-color: var(--ux-accent);
  background: var(--ux-accent);
}
.share-email-form {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--ux-border);
  border-radius: 14px;
  background: #fafafa;
  text-align: left;
}
.share-email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.share-email-row input,
.share-email-row .button {
  border-radius: 12px;
}
.share-email-form .status {
  margin-top: 8px;
  min-height: 0;
  font-size: .86rem;
}
@media (max-width: 700px) {
  .share-link-row { grid-template-columns: 1fr; }
  .share-link-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .share-link-actions .button { width: 100%; }
}
@media (max-width: 520px) {
  .share-email-row { grid-template-columns: 1fr; }
  .share-email-row .button { width: 100%; }
}

/* Bevar den kompakte top på den private upload-mappe */
.folder-page .folder-site-header {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: 26px 0 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
}
.folder-page .folder-private-pill {
  min-height: 28px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #777783;
  font-size: .76rem;
  font-weight: 750;
}
.folder-page .folder-shell { margin-top: 34px; }
@media (max-width: 640px) {
  .folder-page .folder-site-header {
    width: min(100% - 24px, 980px);
    padding-top: 20px;
  }
  .folder-page .folder-shell { margin-top: 26px; }
}


/* Share email: optional CC */
.share-email-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.share-email-form[hidden] { display: none; }
.share-email-form .field { margin: 0; }
.share-email-form .field > span { display: block; margin-bottom: 6px; }
.share-email-form .field small { font-weight: 500; color: #8a8a94; }
.share-email-form input { width: 100%; min-height: 46px; border-radius: 12px; }
.share-email-send { min-height: 46px; white-space: nowrap; }
.share-email-form .status { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .share-email-form { grid-template-columns: 1fr; }
  .share-email-send { width: 100%; }
}

/* Explicit upload consent */
.upload-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 2px 4px;
  padding: 12px 14px;
  border: 1px solid #e7e5ef;
  border-radius: 12px;
  background: #faf9ff;
  color: #55515f;
  font-size: .84rem;
  line-height: 1.45;
  cursor: pointer;
}
.upload-consent input,
.copy-to-me-toggle input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--ux-accent);
}

/* Share email: user-facing copy instead of CC */
.share-email-form {
  grid-template-columns: minmax(0, 1fr) auto;
}
.copy-to-me-toggle {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #55515f;
  font-size: .92rem;
  font-weight: 650;
  cursor: pointer;
}
.share-copy-email-field {
  grid-column: 1 / 2;
}
.share-copy-email-field[hidden] { display: none; }
@media (max-width: 760px) {
  .share-email-form { grid-template-columns: 1fr; }
  .share-copy-email-field { grid-column: 1; }
}
