@layer reset, theme, layout, components, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, ul, ol { margin: 0; }
  button, input, select { font: inherit; }
  button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  button:disabled { cursor: wait; opacity: .58; }
  a { color: inherit; text-underline-offset: 3px; }
  [hidden] { display: none !important; }
  :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
}
@layer theme {
  :root { --paper: #f0f1e6; --card: #f7f8ef; --ink: #0a0a0a; --body: #1a1a1a;
    --muted: #4d4d4d; --rule: #d9d9d9; --accent: #ff2200; --error: #a51c09;
    --success: #225936; --sans: Arial, Helvetica, system-ui, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
  body { background: var(--paper); color: var(--body); font-family: var(--sans);
    font-size: 15px; line-height: 1.45; min-height: 100vh; }
  h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.12; }
  h1 { font-size: 34px; letter-spacing: -1px; }
  h2 { font-size: 24px; letter-spacing: -.4px; }
  h3 { font-size: 18px; }
  .eyebrow, .metadata { font-family: var(--mono); font-size: 12px; line-height: 1.5; }
  .eyebrow { letter-spacing: 1.2px; margin-bottom: 12px; }
  .metadata, .muted, .field-help, .section-description { color: var(--muted); }
  .field-help { font-size: 13px; line-height: 1.5; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .skip-link { position: fixed; top: -100px; left: 16px; background: var(--card);
    padding: 12px; z-index: 100; }
  .skip-link:focus { top: 8px; }
}
@layer layout {
  .app-header { min-height: 76px; background: var(--ink); color: var(--paper);
    display: flex; align-items: center; gap: 28px; padding: 16px 32px; }
  .brand { display: flex; align-items: center; gap: 18px; text-decoration: none; flex-shrink: 0; }
  .brand img { display: block; width: 144px; height: 24px; filter: invert(1); }
  .product-label { font: 12px var(--mono); letter-spacing: 1.7px; padding-left: 18px;
    border-left: 1px solid #707068; }
  .header-scope { display: flex; flex-direction: column; min-width: 0; padding-left: 12px; }
  .header-scope span { color: #c6c7bf; font-size: 12px; }
  .header-scope strong { font-size: 14px; font-weight: 500; }
  .header-scope strong, .header-scope span { overflow-wrap: anywhere; }
  .header-link { border: 0; background: transparent; color: var(--paper);
    text-decoration: none; font-size: 13px; min-height: 44px; display: inline-flex;
    align-items: center; gap: 12px; padding: 0 4px; white-space: nowrap; }
  .header-link:hover { text-decoration: underline; }
  .app-header :focus-visible { outline-color: var(--paper); }
  .account { margin-left: auto; display: flex; align-items: center; gap: 24px; }
  .account-email { font-family: var(--mono); font-size: 12px; }
  .header-note { margin-left: auto; font: 11px var(--mono); letter-spacing: 1.4px; }
  .local-banner { background: #f6dcbf; border-bottom: 1px solid var(--ink); padding: 8px 32px;
    font-size: 12px; display: flex; justify-content: space-between; gap: 12px; }
  .app-footer { display: flex; justify-content: space-between; gap: 20px;
    font: 11px var(--mono); letter-spacing: .4px; padding: 24px 32px;
    border-top: 1px solid var(--rule); color: var(--muted); }
  .signin-layout { max-width: 1220px; margin: auto; min-height: calc(100vh - 145px);
    display: grid; grid-template-columns: 1fr 440px; gap: 100px; align-items: center;
    padding: 72px 48px; }
  .signin-intro h1 { font-size: clamp(48px, 5vw, 72px); letter-spacing: -3px; line-height: 1.02; }
  .intro-copy { max-width: 400px; font-size: 18px; line-height: 1.6; margin-top: 28px; }
  .intro-rule { width: 64px; height: 4px; background: var(--accent); margin: 36px 0 18px; }
  .signin-card { background: var(--card); padding: 36px; border: 1px solid var(--ink); }
  .signin-card h2 { font-size: 30px; margin-bottom: 18px; }
  .signin-card p { margin-bottom: 20px; }
  .signin-card form .button { margin-top: 24px; }
  .signin-card .field-help { margin-top: 10px; }
  .signin-help { font-size: 12px; color: var(--muted); padding-top: 24px;
    border-top: 1px solid var(--rule); margin: 30px 0 0 !important; overflow-wrap: anywhere; }
  .engagement-page { max-width: 1180px; min-height: calc(100vh - 145px); margin: auto; padding: 64px 40px; }
  .section-description { margin-top: 16px; }
  .engagement-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; margin-top: 40px; }
  .engagement-card { background: var(--card); border: 1px solid var(--ink); padding: 28px;
    text-decoration: none; display: flex; flex-direction: column; min-height: 190px; }
  .engagement-card h2 { margin: 14px 0 32px; overflow-wrap: anywhere; }
  .engagement-card:hover { box-shadow: 4px 4px 0 var(--ink); }
  .engagement-open { display: flex; justify-content: space-between; font-size: 13px; margin-top: auto; }
  .workspace { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 145px); }
  .folder-panel { border-right: 1px solid var(--rule); padding: 28px 16px; }
  .workspace-content { padding: 28px 36px 48px; min-width: 0; }
  .workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .workspace-heading .eyebrow { margin-bottom: 8px; }
  .workspace-heading h1 { font-size: 30px; overflow-wrap: anywhere; }
  .workspace-navigation { display: flex; align-items: center; justify-content: space-between;
    gap: 20px; border-bottom: 1px solid var(--ink); margin: 28px 0 24px; }
  .files-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
  .breadcrumb-row, .toolbar-actions { display: flex; align-items: center; gap: 8px; }
  .breadcrumb-row { min-width: 0; }
  #breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
  .filter-row { display: flex; align-items: center; gap: 24px; margin: 22px 0 16px; }
  .search-label { margin: 0; width: min(460px, 100%); }
  .file-surface { border: 1px solid var(--ink); background: var(--card); }
  .file-surface.drag-over { outline: 4px solid var(--accent); outline-offset: 3px; }
  .folder-guide { border: 1px solid var(--ink); background: var(--card); padding: 24px; margin-bottom: 28px; }
  .guide-heading { display: flex; justify-content: space-between; align-items: start; gap: 32px; }
  .guide-heading h2 { font-size: 26px; letter-spacing: -.6px; }
  .guide-heading .eyebrow { margin-bottom: 8px; }
  .guide-heading > p { max-width: 380px; color: var(--muted); font-size: 13px; }
  .upload-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid var(--ink); }
  .upload-steps li { display: flex; align-items: start; gap: 12px; padding: 18px 12px 0 0; }
  .step-number { font: 13px var(--mono); background: var(--accent); padding: 4px 6px; color: var(--ink); }
  .upload-steps strong { font-size: 13px; display: block; margin-bottom: 4px; }
  .upload-steps div > span { display: block; font-size: 12px; color: var(--muted); }
  .guide-tree { border: 1px solid var(--rule); background: var(--paper); padding: 18px 20px; }
  .guide-root { display: flex; align-items: center; gap: 10px; font-size: 13px; }
  .guide-root > span:first-child, .folder-symbol { font-size: 24px; line-height: 1; }
  .guide-root .metadata { margin-left: auto; }
  .guide-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 0 12px; border-left: 1px solid #939489; }
  .guide-category { display: flex; align-items: start; gap: 10px; padding: 14px 12px 6px 20px; border-top: 1px solid #939489; }
  .guide-category strong { font-size: 14px; }
  .guide-category p { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
  .guide-example { font: 11px/1.8 var(--mono); color: var(--muted); overflow-wrap: anywhere; display: block; }
  .guide-note { font-size: 12px; color: var(--muted); margin-top: 16px; line-height: 1.6; }
  .table-scroll { overflow-x: auto; }
  .page-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
  .has-uploads .workspace-content { padding-bottom: 280px; }
  .mobile-only { display: none; }
}
@layer components {
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 18px;
    min-height: 44px; padding: 10px 16px; border: 1px solid var(--ink); text-decoration: none;
    font-size: 13px; font-weight: 600; background: var(--card); color: var(--ink); }
  .button.primary { background: var(--accent); }
  .button.primary:hover { background: #e82000; }
  .button.secondary:hover { background: #e6e7da; }
  .button.danger { color: var(--error); border-color: var(--error); }
  .full-width { width: 100%; justify-content: space-between; }
  .text-button { border: 0; background: transparent; text-decoration: underline;
    text-underline-offset: 3px; padding: 10px 0; min-height: 44px; font-size: 13px; color: var(--body); }
  .icon-button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent;
    flex-shrink: 0; font-size: 24px; line-height: 1; color: inherit; }
  label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 8px; }
  input:not([type=checkbox]), select { display: block; width: 100%; background: var(--card);
    border: 1px solid var(--ink); border-radius: 0; min-height: 46px; padding: 10px 12px; color: var(--body); }
  input::placeholder { color: #66675e; opacity: 1; }
  input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; }
  .checkbox-label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; white-space: nowrap; }
  .otp-input { font-family: var(--mono); font-size: 30px; letter-spacing: 8px; }
  .form-message { padding: 14px; background: var(--paper); border-left: 3px solid var(--ink); font-size: 13px; }
  .form-error { color: var(--error); background: #fbe8dc; border-left: 3px solid var(--error); padding: 12px;
    font-size: 13px; margin: 16px 0; }
  .resend-panel { border-top: 1px solid var(--rule); margin-top: 24px; padding-top: 16px; }
  .resend-panel summary { font-size: 13px; cursor: pointer; min-height: 44px; }
  .change-email { margin-top: 6px; }
  .panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 20px; }
  .panel-heading h2 { font-size: 14px; font-weight: 600; }
  .folder-root { display: flex; align-items: center; gap: 10px; padding: 10px;
    width: 100%; min-height: 44px; background: transparent; border: 0; text-align: left; font-size: 13px; }
  .folder-root.selected, .folder-name.selected { background: var(--ink); color: var(--paper); }
  .folder-tree, .folder-tree ul { list-style: none; padding: 0; }
  .folder-tree { margin-top: 8px; font-size: 13px; }
  .folder-tree ul { margin-left: 16px; border-left: 1px solid var(--rule); }
  .folder-line { display: flex; align-items: center; min-height: 44px; }
  .folder-toggle { min-width: 24px; min-height: 44px; border: 0; background: transparent; padding: 0; }
  .folder-name { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent;
    text-align: left; font-size: 13px; padding: 6px; overflow-wrap: anywhere; }
  .folder-manage { min-width: 28px; min-height: 44px; border: 0; background: transparent; }
  .folder-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 32px 8px; }
  .tab-list { display: flex; gap: 28px; }
  .tab { background: transparent; border: 0; border-bottom: 3px solid transparent;
    min-height: 44px; padding: 8px 0 14px; font-weight: 500; }
  .tab.active { border-color: var(--accent); font-weight: 600; }
  .breadcrumb { min-height: 44px; border: 0; background: transparent; font-size: 13px;
    text-decoration: underline; text-underline-offset: 3px; padding: 4px; overflow-wrap: anywhere; }
  .list-message { font-size: 13px; padding: 14px 16px; color: var(--muted); }
  .file-table, .access-table { border-collapse: collapse; width: 100%; font-size: 13px; text-align: left; }
  .file-table thead { background: var(--body); color: var(--paper); }
  .file-table th { font-size: 11px; font-weight: 500; padding: 12px 16px; white-space: nowrap; }
  .file-table td { border-bottom: 1px solid var(--rule); padding: 10px 16px; vertical-align: middle; }
  .file-table tbody tr:hover { background: var(--paper); }
  .file-table td:first-child { width: 35%; }
  .file-name { border: 0; background: transparent; text-align: left; color: var(--body);
    min-height: 44px; padding: 2px 0; width: 100%; overflow-wrap: anywhere; font-weight: 500; }
  .file-name:hover { text-decoration: underline; text-underline-offset: 3px; }
  .file-size, .file-date { font: 12px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .uploader { overflow-wrap: anywhere; }
  .status { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #86877e;
    padding: 4px 7px; font-size: 11px; white-space: nowrap; line-height: 1.2; }
  .status.received { color: var(--success); border-color: #7b947f; }
  .status.failed, .status.rejected { color: var(--error); border-color: #ae6253; }
  .status.archived { color: var(--muted); }
  .empty-state { padding: 48px 24px; text-align: center; }
  .empty-state h2 { font-size: 22px; margin-bottom: 12px; }
  .empty-state p { color: var(--muted); max-width: 400px; margin: 0 auto 24px; }
  .empty-mark { font-size: 42px; display: block; margin-bottom: 16px; }
  .drop-hint { border-top: 1px solid var(--rule); color: var(--muted); font-size: 12px; padding: 12px 16px; }
  .activity-heading { display: flex; justify-content: space-between; align-items: center; }
  .activity-heading h2 { font-size: 20px; }
  .activity-list { list-style: none; padding: 0; }
  .activity-list li { padding: 20px 0; border-bottom: 1px solid var(--rule); display: flex;
    align-items: start; justify-content: space-between; gap: 24px; }
  .activity-list .metadata { flex-shrink: 0; }
  .notice { position: fixed; bottom: 24px; left: 24px; max-width: 480px; z-index: 50;
    background: var(--ink); color: var(--paper); border-left: 4px solid var(--accent);
    display: flex; align-items: center; gap: 16px; padding: 14px 16px; font-size: 13px; }
  .notice button { background: transparent; border: 0; color: inherit; width: 44px; height: 44px; font-size: 24px; }
  .notice :focus-visible { outline-color: var(--paper); }
  .upload-tray { position: fixed; right: 24px; bottom: 24px; width: 420px; z-index: 20;
    border: 1px solid var(--ink); background: var(--card); box-shadow: 5px 5px 0 #0a0a0a24; }
  .tray-heading { display: flex; align-items: center; gap: 16px; background: var(--ink);
    color: var(--paper); border: 0; padding: 16px; width: 100%; text-align: left; min-height: 52px; font-weight: 600; }
  .tray-heading .metadata { color: #d0d1c8; margin-left: auto; }
  .tray-heading :focus-visible, .tray-heading:focus-visible { outline-color: var(--paper); }
  #tray-body { max-height: min(400px, 45vh); overflow: auto; }
  .tray-note { font-size: 11px; padding: 12px 16px; color: var(--muted); border-bottom: 1px solid var(--rule); }
  .upload-list { list-style: none; padding: 0; }
  .upload-item { padding: 14px 16px; border-bottom: 1px solid var(--rule); }
  .upload-item-header { display: flex; align-items: start; gap: 12px; justify-content: space-between; }
  .upload-item-name { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
  .upload-destination, .upload-error { font-size: 11px; overflow-wrap: anywhere; margin-top: 6px; color: var(--muted); }
  .upload-error { color: var(--error); }
  .upload-progress { width: 100%; height: 4px; display: block; margin: 12px 0 0; accent-color: var(--accent); }
  .upload-controls { display: flex; gap: 20px; margin-top: 4px; }
  .upload-controls .text-button { font-size: 12px; }
  .tray-clear { margin: 0 16px; }
  dialog { border: 1px solid var(--ink); color: var(--body); background: var(--card);
    padding: 28px; width: min(480px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow: auto; }
  dialog::backdrop { background: #0a0a0a60; }
  .dialog-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; }
  .dialog-heading h2 { overflow-wrap: anywhere; }
  .dialog-actions { display: flex; justify-content: end; gap: 12px; margin-top: 28px; }
  .drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: 480px; max-width: 100%; border-width: 0 0 0 1px; padding: 28px; }
  .detail-summary { margin: 0 0 28px; }
  .detail-facts { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px 12px; margin: 28px 0; }
  .detail-facts dt { font-size: 12px; color: var(--muted); }
  .detail-facts dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
  .detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
  .technical-details { margin-top: 28px; border-top: 1px solid var(--rule); padding-top: 20px; }
  .technical-details summary { font-size: 12px; min-height: 44px; cursor: pointer; }
  .technical-details pre { background: var(--paper); padding: 12px; font: 11px/1.6 var(--mono);
    overflow-wrap: anywhere; white-space: pre-wrap; }
  .access-dialog { width: min(760px, calc(100% - 32px)); }
  .review-dialog { width: min(880px, calc(100% - 32px)); }
  .review-summary { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0; margin-top: 8px; border-bottom: 1px solid var(--ink); }
  .review-root-name { font-size: 18px; overflow-wrap: anywhere; }
  .review-summary .status { margin-left: auto; }
  #review-errors ul { padding-left: 18px; margin-top: 10px; }
  #review-errors li { margin: 6px 0; overflow-wrap: anywhere; }
  .review-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
  .review-category { border-left: 3px solid var(--accent); padding: 4px 12px; }
  .review-category strong, .review-category .metadata { display: block; }
  .review-category strong { font-size: 13px; margin-bottom: 4px; }
  .review-tree-panel { border: 1px solid var(--rule); padding: 16px; background: var(--paper); }
  .review-tree-panel h3 { font-size: 13px; margin-bottom: 12px; }
  .review-tree { max-height: 250px; overflow: auto; }
  .review-tree, .review-tree ul { list-style: none; padding: 0; }
  .review-tree ul { margin-left: 16px; border-left: 1px solid var(--rule); padding-left: 12px; }
  .review-tree-line { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; font: 12px var(--mono); overflow-wrap: anywhere; }
  .review-tree-line > span:nth-child(2) { min-width: 0; }
  .review-tree-line .metadata { margin-left: auto; font-size: 10px; white-space: nowrap; }
  .tree-symbol { flex-shrink: 0; }
  .empty-category-ack { display: flex; align-items: start; gap: 10px; padding: 12px; background: var(--paper); font-size: 12px; line-height: 1.6; }
  .empty-category-ack input { margin-top: 2px; }
  .review-help { margin-top: 16px; }
  .access-table th, .access-table td { padding: 12px 8px; border-bottom: 1px solid var(--rule); font-size: 12px; overflow-wrap: anywhere; }
  .access-table th { font-weight: 600; }
  .invite-form, .engagement-form { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--ink); }
  .invite-form > .button, .engagement-form > .button { margin-top: 20px; }
  .form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .folder-overlay { position: fixed; inset: 0; background: #0a0a0a60; z-index: 25; }
}
@layer responsive {
  .has-uploads .workspace-content { padding-bottom: 460px; }
  @media (max-width: 1150px) {
    .app-header { gap: 20px; padding: 16px 24px; }
    .account-email { display: none; }
    .workspace-content { padding: 28px 24px 40px; }
    .guide-heading { gap: 20px; }
    .guide-heading > p { max-width: 300px; }
    .files-toolbar { flex-wrap: wrap; }
    .toolbar-actions { margin-left: auto; }
    .file-table th, .file-table td { padding-left: 12px; padding-right: 12px; }
    .signin-layout { gap: 48px; padding-left: 32px; padding-right: 32px; }
  }
  @media (max-width: 759px) {
    h1 { font-size: 28px; }
    .app-header { min-height: 68px; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
    .brand { gap: 12px; }
    .brand img { width: 112px; height: 19px; }
    .product-label { font-size: 10px; letter-spacing: 1.3px; padding-left: 12px; }
    .header-scope { order: 5; width: auto; flex-basis: calc(100% - 156px); padding: 10px 0 0; border-top: 1px solid #47473e; }
    .app-header > .header-link { order: 6; margin-left: auto; font-size: 12px; align-self: end; }
    .account { gap: 0; margin-left: auto; }
    .header-note { display: none; }
    .local-banner { padding: 8px 16px; flex-wrap: wrap; }
    .app-footer { padding: 20px 16px; font-size: 10px; }
    .signin-layout { display: block; padding: 36px 20px 48px; min-height: 0; }
    .signin-intro h1 { font-size: 44px; letter-spacing: -2px; }
    .intro-copy { font-size: 15px; margin-top: 20px; }
    .intro-rule { margin: 24px 0 16px; }
    .signin-intro { margin-bottom: 32px; }
    .signin-card { padding: 24px; }
    .signin-card h2 { font-size: 26px; }
    .engagement-page { padding: 36px 20px; }
    .engagement-grid { grid-template-columns: 1fr; margin-top: 28px; }
    .workspace { display: block; }
    .workspace-content { padding: 24px 16px 36px; }
    .folder-guide { padding: 18px 16px; }
    .guide-heading { display: block; }
    .guide-heading h2 { font-size: 24px; }
    .guide-heading > p { margin-top: 14px; max-width: none; }
    .upload-steps { grid-template-columns: 1fr; gap: 14px; padding-top: 16px; margin: 20px 0; }
    .upload-steps li { padding: 0; align-items: center; }
    .upload-steps strong { margin-bottom: 2px; }
    .guide-tree { padding: 14px 12px; }
    .guide-root { flex-wrap: wrap; gap: 8px; }
    .guide-root strong { max-width: calc(100% - 36px); }
    .guide-root .metadata { margin-left: 30px; width: 100%; }
    .guide-branches { grid-template-columns: 1fr; margin-left: 8px; }
    .guide-category { padding-left: 12px; }
    .guide-category + .guide-category { margin-top: 16px; }
    .review-dialog { padding: 20px 16px; }
    .review-summary { gap: 10px; }
    .review-summary .status { margin-left: 0; }
    .review-categories { grid-template-columns: 1fr; gap: 12px; }
    .review-tree-panel { padding: 12px 10px; }
    .review-tree ul { margin-left: 6px; padding-left: 8px; }
    .review-tree-line { font-size: 11px; }
    .review-dialog .dialog-actions { flex-direction: column-reverse; }
    .has-uploads .workspace-content { padding-bottom: 120px; }
    .has-uploads.tray-expanded .workspace-content { padding-bottom: calc(45vh + 110px); }
    .workspace-heading { align-items: start; gap: 16px; }
    .workspace-heading h1 { font-size: 25px; }
    .workspace-heading > .button { font-size: 12px; padding: 8px; }
    .workspace-navigation { gap: 8px; margin-top: 24px; align-items: start; flex-wrap: wrap; }
    #timezone { font-size: 10px; padding: 8px 0; }
    .mobile-only { display: inline-flex; align-items: center; justify-content: center; }
    .folder-panel { position: fixed; inset: 0 auto 0 0; width: min(320px, 90vw); z-index: 30;
      background: var(--card); transform: translateX(-105%); overflow: auto; }
    .folder-panel.open { transform: translateX(0); }
    .files-toolbar { display: block; }
    .toolbar-actions { display: flex; justify-content: space-between; gap: 6px; margin-top: 12px; }
    .toolbar-actions .button { padding: 8px 10px; font-size: 12px; gap: 8px; }
    .filter-row { flex-wrap: wrap; gap: 10px 20px; margin-top: 16px; }
    .search-label { width: 100%; }
    .filter-row > .text-button { margin-left: auto; }
    .file-table th:nth-child(3), .file-table td:nth-child(3),
    .file-table th:nth-child(4), .file-table td:nth-child(4) { display: none; }
    .file-table td:first-child { width: 55%; }
    .file-table th, .file-table td { padding: 10px 8px; }
    .file-size { font-size: 10px; }
    .status { font-size: 10px; padding: 4px; }
    .drop-hint { font-size: 11px; }
    .empty-state { padding: 36px 20px; }
    .upload-tray { width: calc(100% - 24px); right: 12px; bottom: 12px; }
    .notice { left: 12px; bottom: 12px; max-width: calc(100% - 24px); z-index: 50; }
    .drawer { padding: 24px 20px; width: 100%; }
    .detail-facts { grid-template-columns: 100px minmax(0, 1fr); }
    .activity-list li { display: block; }
    .activity-list .metadata { display: block; margin-top: 8px; }
    .form-pair { grid-template-columns: 1fr; gap: 0; }
    .dialog-actions { gap: 8px; }
    .access-table th, .access-table td { padding: 10px 4px; font-size: 11px; }
  }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
}
