.data-workspace {
  width: min(1040px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) 0 88px;
}

.data-intro { max-width: 840px; }
.data-intro h1 {
  margin: 14px 0 18px;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.05em;
}
.data-intro > p:last-of-type { max-width: 700px; color: var(--muted); line-height: 1.8; }
.space-facts, .export-facts {
  margin: 38px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.space-facts div, .export-facts div { min-width: 0; padding: 20px 18px 20px 0; }
.space-facts div + div, .export-facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.space-facts dt, .export-facts dt { color: var(--quiet); font-size: 10px; }
.space-facts dd, .export-facts dd { margin: 8px 0 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }

.data-workspace > .notice { width: 100%; margin-top: 28px; }
.export-panel { margin-top: 64px; padding-top: 28px; border-top: 2px solid var(--ink); }
.export-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.export-heading h2 { margin: 9px 0 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -.035em; }
.export-scope { max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.export-status { margin-top: 34px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #f7f5ef; }
.status-topline { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.status-symbol { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--brand); }
.status-symbol.danger { background: var(--danger); }
.status-symbol.quiet { color: var(--muted); background: var(--line); }
.status-topline div { display: grid; gap: 4px; }
.status-topline strong { font-size: 14px; }
.status-topline small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.status-percent { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.export-status > .progress-track { margin-top: 18px; }
.export-facts { margin-top: 22px; }
.export-actions { margin-top: 22px; display: flex; justify-content: flex-end; }
.data-note { max-width: 760px; margin-top: 34px; }

.source-panel { margin-top: 72px; }
.source-list { margin-top: 30px; border-top: 1px solid var(--line); }
.source-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.source-row h3 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.source-row p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.source-actions { display: flex; gap: 16px; }
.source-actions button { border: 0; padding: 6px 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; }
.source-actions button:hover:not(:disabled) { color: var(--ink); }
.source-actions .delete-source:hover:not(:disabled) { color: var(--danger); }
.source-actions button:disabled { opacity: .4; cursor: not-allowed; }
.source-empty { margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.lifecycle-status { margin-top: 24px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-left: 3px solid var(--brand); background: var(--brand-pale); }
.lifecycle-status strong { font-size: 13px; }
.lifecycle-status p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.lifecycle-actions { display: flex; align-items: center; gap: 14px; }

.delete-dialog { width: min(560px, calc(100% - 32px)); margin: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: 0 30px 90px rgba(31, 41, 38, .18); }
.delete-dialog::backdrop { background: rgba(31, 41, 38, .44); backdrop-filter: blur(2px); }
.delete-dialog form { padding: 30px; display: grid; gap: 18px; }
.delete-dialog h2 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -.035em; }
.delete-dialog form > p:not(.eyebrow):not(.form-error) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.cascade-option { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--ink); font-size: 12px; line-height: 1.65; }
.cascade-option input { width: 16px; height: 16px; margin: 2px 0 0; }
.dialog-note { font-size: 10px !important; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.danger-action { min-height: 42px; border: 0; border-radius: 8px; padding: 10px 16px; color: white; background: var(--danger); cursor: pointer; font-size: 12px; font-weight: 650; }
.danger-action:disabled { opacity: .45; cursor: not-allowed; }
.danger-zone { margin-top: 72px; border-top-color: var(--danger); }
.danger-zone h2 { max-width: 720px; }
.danger-outline { min-height: 42px; border: 1px solid var(--danger); border-radius: 8px; padding: 10px 16px; color: var(--danger); background: transparent; cursor: pointer; font-size: 12px; font-weight: 650; white-space: nowrap; }
.danger-outline:hover:not(:disabled) { color: white; background: var(--danger); }
.danger-outline:disabled { opacity: .4; cursor: not-allowed; }
.confirm-name { display: grid; gap: 8px; color: var(--muted); font-size: 11px; }
.confirm-name strong { color: var(--ink); overflow-wrap: anywhere; font-family: var(--serif); font-size: 15px; }
.confirm-name input { width: 100%; min-height: 42px; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 11px; color: var(--ink); background: white; font: inherit; font-size: 13px; }
.confirm-name input:focus { outline: 2px solid color-mix(in srgb, var(--brand) 30%, transparent); border-color: var(--brand); }
.deleting-progress { width: min(420px, 100%); height: 4px; margin-top: 26px; overflow: hidden; background: var(--line); }
.deleting-progress span { display: block; width: 1%; height: 100%; background: var(--danger); transition: width 260ms ease; }
#deletingProgressText { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }

@media (max-width: 680px) {
  .data-workspace { width: min(100% - 36px, 1040px); padding-top: 40px; }
  .data-intro h1 { font-size: 38px; }
  .export-heading { display: grid; align-items: stretch; }
  .export-heading .primary-action { width: 100%; }
  .space-facts, .export-facts { grid-template-columns: 1fr; }
  .space-facts div, .space-facts div + div, .export-facts div, .export-facts div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .space-facts div:last-child, .export-facts div:last-child { border-bottom: 0; }
  .status-topline { grid-template-columns: 30px minmax(0, 1fr); }
  .status-percent { grid-column: 2; }
  .export-actions .secondary-action { width: 100%; }
  .source-row { grid-template-columns: 1fr; gap: 12px; }
  .source-actions { justify-content: flex-start; }
  .lifecycle-status { align-items: stretch; flex-direction: column; }
  .lifecycle-status .secondary-action { width: 100%; }
  .lifecycle-actions { align-items: stretch; flex-direction: column-reverse; }
  .delete-dialog form { padding: 24px 20px; }
  .danger-zone .danger-outline { width: 100%; }
  .space-delete-dialog .dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .space-delete-dialog .dialog-actions .danger-action { width: 100%; }
}
