.fs-app {
  --fs-bg:var(--fsg-canvas);
  --fs-panel:var(--fsg-surface);
  --fs-soft:var(--fsg-surface-2);
  --fs-ink:var(--fsg-text);
  --fs-muted:var(--fsg-text-muted);
  --fs-line:var(--fsg-line);
  --fs-blue:var(--fsg-text);
  --fs-green:var(--fsg-success);
  --fs-orange:var(--fsg-orange);
  --fs-red:var(--fsg-danger);
  --fs-amber:var(--fsg-warning-ink);
  --fs-slate:var(--fsg-text);
  --fs-shadow:var(--fsg-shadow-2);
  width: min(1800px, 100%);
  margin: 0 auto 48px;
  color: var(--fs-ink);
  font: 14px/1.45 Inter, Segoe UI, Arial, sans-serif;
}

.fs-app * {
  box-sizing: border-box;
}

.fs-app button,
.fs-app input,
.fs-app select,
.fs-app textarea {
  font: inherit;
}

.fs-shell {
  min-height: calc(100vh - 130px);
  overflow: hidden;
  background: var(--fs-bg);
  border: 1px solid var(--fs-line);
  border-radius: 8px;
  box-shadow: var(--fs-shadow);
}

.fs-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #fff, #eef4f7);
  border-bottom: 1px solid var(--fs-line);
}

.fs-kicker {
  margin: 0 0 4px;
  color: #9a3412;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.fs-header h1 {
  margin: 0;
  color: var(--fs-ink);
  font-size: 28px;
  letter-spacing: 0;
}

.fs-header p {
  max-width: 840px;
  margin: 6px 0 0;
  color: var(--fs-muted);
}

.fs-site-panel,
.fs-card,
.fs-bucket-card,
.fs-share-card {
  background: var(--fs-panel);
  border: 1px solid var(--fs-line);
  border-radius: 8px;
}

.fs-site-panel {
  padding: 12px;
}

.fs-site-panel b,
.fs-site-panel span {
  display: block;
}

.fs-site-panel span {
  margin-top: 4px;
  color: var(--fs-muted);
  font-size: 12px;
}

.fs-tabs {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  background: var(--fs-line);
  border-bottom: 1px solid var(--fs-line);
}

.fs-tab {
  min-height: 44px;
  padding: 10px 15px;
  color: var(--fs-muted);
  background: #f9fbfc;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.fs-tab.active {
  color: #fff;
  background: var(--fs-orange);
}

.fs-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--fs-line);
  border-bottom: 1px solid var(--fs-line);
}

.fs-metric {
  padding: 13px 15px;
  background: #fff;
}

.fs-metric b {
  display: block;
  color: var(--fs-ink);
  font-size: 25px;
}

.fs-metric span {
  display: block;
  margin-top: 2px;
  color: var(--fs-muted);
  font-size: 12px;
  font-weight: 700;
}

.fs-body {
  padding: 16px;
}

.fs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.fs-card {
  padding: 16px;
}

.fs-card h2 {
  margin: 0 0 5px;
  color: var(--fs-ink);
  font-size: 21px;
}

.fs-card p {
  margin: 4px 0 0;
  color: var(--fs-muted);
}

.fs-profile {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.fs-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--fs-slate);
  background: #e5e7eb;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
}

.fs-panel-title,
.fs-folder-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.fs-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fs-shortcut {
  display: grid;
  gap: 8px;
  min-height: 94px;
  padding: 12px;
  color: var(--fs-ink);
  background: #fff;
  border: 1px solid var(--fs-line);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

.fs-shortcut:hover {
  border-color: var(--fs-blue);
  background: #eff6ff;
}

.fs-shortcut span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto;
  color: var(--fs-blue);
  background: #eef4ff;
  border: 1px solid #d6e4ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.fs-shortcut b {
  font-size: 13px;
}

.fs-folder-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
}

.fs-folder-nav {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--fs-line);
  border-radius: 8px;
}

.fs-folder-nav-item {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  color: var(--fs-muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.fs-folder-nav-item.active,
.fs-folder-nav-item:hover {
  color: var(--fs-ink);
  background: var(--fs-soft);
}

.fs-folder-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--fs-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.fs-folder-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-folder-link:hover {
  color: var(--fs-blue);
}

.fs-buckets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fs-bucket-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 14px;
}

.fs-bucket-card h3 {
  margin: 0;
  color: var(--fs-ink);
  font-size: 19px;
}

.fs-bucket-card p {
  min-height: 48px;
}

.fs-bucket-card.controlled {
  border-color: #f5c283;
  background: #fffaf2;
}

.fs-bucket-card.restricted {
  color: #6b7280;
  background: #f3f4f6;
  border-style: dashed;
}

.fs-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.fs-label {
  display: grid;
  gap: 5px;
  color: var(--fs-ink);
  font-size: 12px;
  font-weight: 700;
}

.fs-label.full {
  grid-column: 1 / -1;
}

.fs-required {
  color:var(--fsg-orange-ink);
}

.fs-input,
.fs-select,
.fs-textarea {
  width: 100%;
  min-width: 0;
  color: var(--fs-ink);
  background: #fff;
  border: 1px solid var(--fs-line);
  border-radius: 6px;
  padding: 10px 11px;
  outline: 0;
}

.fs-input:focus,
.fs-select:focus,
.fs-textarea:focus {
  border-color: var(--fs-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.fs-textarea {
  min-height: 106px;
  resize: vertical;
}

.fs-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fs-check {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  background: var(--fs-soft);
  border: 1px solid var(--fs-line);
  border-radius: 6px;
  font-weight: 700;
}

.fs-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.fs-button {
  min-height: 39px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 12px;
  color: #fff;
  background: var(--fs-orange);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.fs-button.secondary {
  color: var(--fs-ink);
  background: #fff;
  border-color: var(--fs-line);
}

.fs-button.green {
  background: var(--fs-green);
}

.fs-button.orange {
  background: var(--fs-orange);
}

.fs-button.red {
  background: var(--fs-red);
}

.fs-button:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.fs-split {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(390px, 1.02fr);
  gap: 16px;
}

.fs-list,
.fs-rule-list {
  display: grid;
  gap: 9px;
}

.fs-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 11px;
  color: var(--fs-ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--fs-line);
  border-radius: 8px;
  cursor: pointer;
}

.fs-list-row:hover,
.fs-list-row.active {
  border-color: var(--fs-blue);
  background: #eff6ff;
}

.fs-list-row b,
.fs-list-row span,
.fs-list-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-list-row small {
  margin-top: 3px;
  color: var(--fs-muted);
}

.fs-status,
.fs-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  color: var(--fs-muted);
  background: #eef2f7;
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.fs-status.internal,
.fs-status.company-only,
.fs-status.active,
.fs-status.approved {
  color: var(--fs-blue);
  background: #e8f1ff;
}

.fs-status.external,
.fs-status.customer-exchange,
.fs-status.pending {
  color: var(--fs-amber);
  background: #fff7ed;
}

.fs-status.itar-cui,
.fs-status.controlled,
.fs-status.cui,
.fs-status.itar,
.fs-status.expiring,
.fs-status.expired {
  color: var(--fs-red);
  background: #fff0ed;
}

.fs-request-section {
  margin-top: 16px;
}

.fs-request-section + .fs-request-section {
  padding-top: 14px;
  border-top: 1px solid var(--fs-line);
}

.fs-request-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.fs-request-section-head h3 {
  margin: 0;
}

.fs-request-section-head span {
  min-width: 28px;
  padding: 4px 8px;
  color: var(--fs-blue);
  background: #e8f1ff;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
}

.fs-empty.compact {
  padding: 12px;
}

.fs-status.closed,
.fs-status.revoked,
.fs-status.complete {
  color: var(--fs-green);
  background: #eaf7ef;
}

.fs-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fs-line);
}

.fs-detail-head h2 {
  margin: 6px 0 0;
}

.fs-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.fs-info,
.fs-rule {
  padding: 10px;
  background: #f8fbfc;
  border: 1px solid var(--fs-line);
  border-radius: 8px;
}

.fs-info span,
.fs-rule span {
  display: block;
  color: var(--fs-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fs-info b,
.fs-rule b {
  display: block;
  margin-top: 3px;
}

.fs-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--fs-line);
  border-radius: 8px;
}

.fs-table {
  width: 100%;
  border-collapse: collapse;
}

.fs-table th,
.fs-table td {
  padding: 10px 11px;
  color: var(--fs-ink);
  border-bottom: 1px solid var(--fs-line);
  text-align: left;
  white-space: nowrap;
}

.fs-table th {
  color: var(--fs-muted);
  background: var(--fs-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* OneFSG V8.4.15 - eight-column workspace table contract. */
.fs-folder-table {
  table-layout: fixed;
  min-width: 1120px;
}

.fs-folder-table th:nth-child(1) { width: 26%; }
.fs-folder-table th:nth-child(2) { width: 6%; text-align: center; }
.fs-folder-table th:nth-child(3) { width: 10%; }
.fs-folder-table th:nth-child(4) { width: 12%; }
.fs-folder-table th:nth-child(5) { width: 8%; }
.fs-folder-table th:nth-child(6) { width: 12%; }
.fs-folder-table th:nth-child(7) { width: 16%; }
.fs-folder-table th:nth-child(8) { width: 10%; }

.fs-folder-table td:nth-child(2) {
  text-align: center;
}

.fs-folder-table td {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-folder-creator span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-folder-scope {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .fs-folder-table {
    min-width: 1050px;
  }
}

.fs-empty {
  padding: 16px;
  color: var(--fs-muted);
  background: #fff;
  border: 1px solid var(--fs-line);
  border-radius: 8px;
}

.fs-lock {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
}

.fs-lock b {
  color: var(--fs-red);
  font-size: 18px;
}

@media (max-width: 1180px) {
  .fs-header,
  .fs-grid,
  .fs-split,
  .fs-folder-layout {
    grid-template-columns: 1fr;
  }

  .fs-metrics,
  .fs-buckets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .fs-body {
    padding: 12px;
  }

  .fs-header h1 {
    font-size: 24px;
  }

  .fs-metrics,
  .fs-form,
  .fs-check-grid,
  .fs-info-grid,
  .fs-buckets,
  .fs-shortcuts {
    grid-template-columns: 1fr;
  }

  .fs-list-row,
  .fs-detail-head,
  .fs-panel-title,
  .fs-folder-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fs-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fs-button {
    width: 100%;
    padding-right: 7px;
    padding-left: 7px;
    white-space: normal;
  }
}

/* V8.4.10 workflow completion: make the selected folder a clear workspace. */
.fs-folder-workspace {
  border: 2px solid rgba(255, 107, 0, 0.28);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}
.fs-folder-workspace-bar,
.fs-folder-files-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fs-folder-workspace-bar {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fs-line);
}
.fs-folder-files-head {
  margin-top: 18px;
}
.fs-folder-files-head h3,
.fs-folder-files-head p {
  margin: 0;
}
.fs-folder-files-head p {
  margin-top: 4px;
  color: var(--fs-muted);
}
.fs-folder-open-label {
  display: inline-block;
  margin-left: 0;
  font-size: 11px;
  font-weight: 700;
  color:var(--fsg-orange-ink);
  text-transform: uppercase;
  letter-spacing: .04em;
}
@media (max-width: 760px) {
  .fs-folder-workspace-bar,
  .fs-folder-files-head {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* V8.4.10.1 workflow completion */
.fs-inline-guidance{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--fs-line);border-left:4px solid var(--fs-orange);border-radius:8px;background:var(--fs-soft);color:var(--fs-ink)}
.fs-inline-guidance span{color:var(--fs-muted);font-size:13px;line-height:1.45}
.fs-button.compact{display:inline-flex;width:auto;padding:6px 10px;font-size:12px;text-decoration:none}
.fs-muted{color:var(--fs-muted)}
.fs-folder-workspace .fs-table-wrap{max-height:420px}

/* V8.4.17.7.22: keep long file names, identities, dates, and actions in their own columns. */
.fs-file-workspace-table {
  table-layout: fixed;
  min-width: 940px;
}
.fs-file-workspace-table th:nth-child(1) { width: 22%; }
.fs-file-workspace-table th:nth-child(2) { width: 8%; }
.fs-file-workspace-table th:nth-child(3) { width: 23%; }
.fs-file-workspace-table th:nth-child(4) { width: 16%; }
.fs-file-workspace-table th:nth-child(5) { width: 10%; }
.fs-file-workspace-table th:nth-child(6) { width: 21%; }
.fs-file-workspace-table td {
  min-width: 0;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.fs-file-workspace-table td:nth-child(2),
.fs-file-workspace-table td:nth-child(4),
.fs-file-workspace-table td:nth-child(5) {
  white-space: nowrap;
}
.fs-file-workspace-table .fs-file-link {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.fs-file-workspace-table .fs-actions.compact {
  align-items: flex-start;
}

/* V8.4.10.2.2 file view + site integrity */
.fs-file-link{color:inherit;text-decoration:underline;text-underline-offset:2px;font-weight:700}.fs-file-link:hover{text-decoration-thickness:2px}.fs-actions.compact{display:flex;gap:6px;align-items:center;flex-wrap:wrap}

/* V8.4.12 secure recipient link and site-context completion */
.fs-site-static {
  display: block;
  min-width: 250px;
  padding: 10px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 7px;
  background: #fff;
  color: #132238;
}
.fs-request-link-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d7dee8;
  border-radius: 9px;
  background: #f7f9fc;
}
.fs-request-link-panel h3 { margin: 0 0 8px; }
.fs-request-link-panel p { overflow-wrap: anywhere; }
.fs-request-link-panel details code { margin-bottom: 10px; }
.fs-request-link-panel > span {
  display: block;
  margin-bottom: 6px;
  color: #52637a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.fs-request-link-panel code {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  background: #fff;
  color: #132238;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.fs-request-link-panel small {
  display: block;
  margin-top: 8px;
  color: #607086;
  line-height: 1.45;
}

/* OneFSG V8.4.13 - governed file lifecycle */
.fs-actions.compact { margin-top: 0; gap: 6px; }
.fs-button.compact { min-height: 31px; padding: 6px 9px; font-size: 12px; }
.fs-lifecycle-note { margin: 14px 0 18px; padding: 12px 14px; color: #7c2d12; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; }
.fs-section-heading { margin: 18px 0 9px; color: var(--fs-ink); font-size: 17px; }
.fs-cell-note { display: block; margin-top: 3px; color: var(--fs-muted); }
.fs-reason-cell { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.fs-file-link { color: var(--fs-blue); text-decoration: none; }
.fs-file-link:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .fs-reason-cell { max-width: 220px; }
}


/* V8.4.15 runtime parity and request workflow */
.fs-runtime-ok { padding: 4px 14px; font-size: 11px; color: #64748b; text-align: right; }
.fs-runtime-warning { margin: 0 14px 10px; padding: 10px 12px; border: 1px solid #f59e0b; background: #fff7ed; color: #7c2d12; border-radius: 8px; }
.fs-request-create { margin-bottom: 14px; }
.fs-request-form { margin-top: 14px; }
.fs-request-form textarea { min-height: 96px; }
@media (max-width: 720px) {
  .fs-runtime-ok { text-align: left; }
  .fs-request-form { grid-template-columns: 1fr; }
}

/* Keep long filenames and uploader addresses inside their own columns. */
.fs-app .fs-exchange-files { table-layout: fixed; min-width: 540px; }
.fs-app .fs-exchange-files th:nth-child(1) { width: 24%; }
.fs-app .fs-exchange-files th:nth-child(2) { width: 8%; }
.fs-app .fs-exchange-files th:nth-child(3) { width: 28%; }
.fs-app .fs-exchange-files th:nth-child(4) { width: 13%; }
.fs-app .fs-exchange-files th:nth-child(5) { width: 27%; }
.fs-app .fs-exchange-files td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.fs-app .fs-exchange-files .fs-actions { flex-wrap: wrap; }
.fs-app .fs-info b, .fs-app .fs-recipient-row > span { min-width: 0; overflow-wrap: anywhere; }
.fs-app .fs-recipient-row { flex-wrap: wrap; gap: 12px; }
.fs-app .fs-send-feedback { flex-basis: 100%; padding: 12px; border: 1px solid #b8cad8; border-radius: 8px; background: #eef5fa; color: #18364c; overflow-wrap: anywhere; line-height: 1.5; }

.fs-app .fs-recipient-activity { width: 100%; flex-basis: 100%; min-width: 0; }
.fs-app .fs-recipient-activity:empty { display: none; }
.fs-app .fs-activity-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.fs-app .fs-activity-events { padding-left: 20px; max-height: 320px; overflow: auto; }
.fs-app .fs-activity-events li { padding: 8px 0; overflow-wrap: anywhere; }
.fs-app .fs-activity-events time { display: block; color: var(--fs-muted); font-size: 12px; }
@media(max-width:600px) { .fs-app .fs-activity-summary { grid-template-columns: 1fr; } }

.fs-app .fs-recipient-row { display: flex; align-items: flex-start; }
.fs-app .fs-recipient-row > span { flex: 1 1 230px; }
.fs-app .fs-recipient-email { flex: 1 1 100%; min-width: 0; }
.fs-app .fs-recipient-email:empty { display: none; }
.fs-app .fs-recipient-email .fs-send-feedback { margin-top: 10px; }
.fs-app .fs-recipient-activity small { white-space: normal; overflow: visible; text-overflow: clip; max-width: none; }

/* .83: keep the next sharing step visible above folder details. */
.fs-workflow-next{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;margin:16px 0;border:1px solid var(--fsg-border,#d1dce5);border-left:4px solid #ff7410;border-radius:8px;background:#fff8f0;overflow-wrap:anywhere}
.fs-workflow-next p{margin:6px 0 0}
.fs-workflow-next .fs-button{flex-shrink:0}
[data-recipient-section]{scroll-margin-top:90px}
@media(max-width:600px){.fs-workflow-next{align-items:stretch;flex-direction:column}.fs-workflow-next .fs-button{white-space:normal}}

/* Compact File Share summaries; secondary information remains keyboard accessible. */
.fs-app .fs-secondary-details { margin-top:16px; border-top:1px solid var(--fs-line,#d7e0e6); padding-top:12px; }
.fs-app .fs-secondary-details > summary { cursor:pointer; font-weight:700; padding:8px 0; }
.fs-app .fs-secondary-details > summary:focus-visible { outline:2px solid #1677d2; outline-offset:3px; }
.fs-app .fs-request-files { min-width:0; width:100%; }
.fs-app .fs-request-files th:nth-child(1) { width:48%; }
.fs-app .fs-request-files th:nth-child(2) { width:24%; }
.fs-app .fs-request-files th:nth-child(3) { width:28%; }
.fs-app .fs-request-files td { white-space:normal; overflow-wrap:anywhere; }
.fs-app .fs-file-meta { display:block; font-weight:400; margin-top:6px; overflow-wrap:anywhere; }
@media(max-width:600px) {
 .fs-app .fs-request-files thead { display:none; }
 .fs-app .fs-request-files tbody,.fs-app .fs-request-files tr,.fs-app .fs-request-files td { display:block; width:100%; }
 .fs-app .fs-request-files tr { border-bottom:1px solid #d7e0e6; padding:8px 0; }
 .fs-app .fs-request-files td { border:0; padding:6px 12px; }
}

.fs-app .fs-card { min-width:0; }

/* Keep incoming requests visible until a user starts a new request. */
.fs-app .fs-request-create > summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.fs-app .fs-request-create > summary:focus-visible { outline: 2px solid #b94700; outline-offset: 4px; }
.fs-app .fs-request-create[open] > summary { margin-bottom: 12px; }

.fs-app .fs-request-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(140px,.6fr); gap:12px; margin:16px 0 10px; }
.fs-app .fs-request-filters label { display:flex; flex-direction:column; gap:6px; min-width:0; font-weight:600; }
.fs-app .fs-request-filter-summary { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.fs-app .fs-request-filter-summary [data-request-count] { color:var(--fs-muted); font-size:13px; }
@media(max-width:680px) { .fs-app .fs-request-filters { grid-template-columns:1fr; } }

/* File Share home: distinct tasks and a compact recent-folder list. */
.fs-app .fs-form > .onefsg-required-note { grid-column:1 / -1; }
.fs-app .fs-metrics[hidden] { display:none!important; }
.fs-app .fs-audit-filters { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:18px 0; }
.fs-app .fs-audit-filters > label { display:grid; gap:6px; flex:1 1 200px; min-width:0; }
.fs-app .fs-audit-list { list-style:none; padding:0; margin:12px 0; }
.fs-app .fs-audit-entry { border-top:1px solid var(--fs-line); padding:16px 0; overflow-wrap:anywhere; }
.fs-app .fs-audit-heading { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 20px; }
.fs-app .fs-audit-heading time,.fs-app .fs-audit-note { color:var(--fs-muted); font-size:12px; }
.fs-app .fs-audit-entry p { margin:8px 0; }
.fs-app .fs-audit-entry summary { cursor:pointer; width:fit-content; color:var(--fs-ink); }
.fs-app .fs-audit-entry dl { display:grid; grid-template-columns:110px minmax(0,1fr); gap:8px 14px; background:#f7f9fb; padding:12px; border-radius:8px; }
.fs-app .fs-audit-entry dt { font-weight:700; }
.fs-app .fs-audit-entry dd { margin:0; white-space:pre-wrap; }
@media(max-width:600px) {
  .fs-app .fs-audit-filters { display:grid; grid-template-columns:minmax(0,1fr); }
  .fs-app .fs-audit-entry dl { grid-template-columns:minmax(0,1fr); }
}
.fs-app .fs-home { display:grid; gap:16px; }
.fs-app .fs-home-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:18px; }
.fs-app .fs-home-action { display:flex; flex-direction:column; align-items:flex-start; padding:18px; border:1px solid var(--fs-line); border-radius:10px; min-width:0; }
.fs-app .fs-home-action h3 { margin:0; }
.fs-app .fs-home-action p { flex:1; }
.fs-app .fs-home-action .fs-button { margin-top:10px; }
.fs-app .fs-home-recent .fs-recent-folder-table { table-layout:fixed; width:100%; min-width:0; }
.fs-app .fs-home-recent th:first-child { width:44%; }
.fs-app .fs-home-recent th:nth-child(2) { width:10%; }
.fs-app .fs-home-recent th:nth-child(3) { width:26%; }
.fs-app .fs-home-recent th:nth-child(4) { width:20%; }
.fs-app .fs-home-recent td { vertical-align:top; overflow-wrap:anywhere; }
.fs-app .fs-home-recent td small { display:block; margin-top:5px; }
.fs-app .fs-home-recent .fs-folder-name { white-space:normal; overflow-wrap:anywhere; }
@media(max-width:760px) {
  .fs-app .fs-home-actions { grid-template-columns:1fr; }
  .fs-app .fs-home-action .fs-button { width:100%; }
  .fs-app .fs-home-recent .fs-recent-folder-table,
  .fs-app .fs-home-recent tbody,
  .fs-app .fs-home-recent tr,
  .fs-app .fs-home-recent td { display:block; width:100%; min-width:0; }
  .fs-app .fs-home-recent thead { display:none; }
  .fs-app .fs-home-recent tr { padding:10px 0; border-bottom:1px solid var(--fs-line); }
  .fs-app .fs-home-recent td { padding:7px 12px; border:0; }
  .fs-app .fs-home-recent td::before { content:attr(data-label); display:block; font-size:11px; font-weight:700; color:var(--fs-muted); margin-bottom:3px; }
}

/* Optional audit dates stay secondary to search and activity. */
.fs-audit-dates { flex: 1 0 100%; min-width: 0; }
.fs-audit-dates summary { cursor: pointer; }
.fs-audit-date-fields { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 6px; max-width: 560px; }
.fs-audit-update { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
.fs-audit-date-fields input { min-width: 0; max-width: 100%; }

/* Search changes only the folder list; open work stays mounted. */
.fs-app .fs-folder-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(150px,.7fr); gap:12px; margin:18px 0 10px; }
.fs-app .fs-folder-filters label { display:grid; gap:6px; min-width:0; font-weight:600; }
.fs-app .fs-folder-filter-summary { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.fs-app [data-folder-count], .fs-app .fs-folder-selection-note { color:var(--fs-muted); font-size:13px; }
.fs-app .fs-folder-selection-note { overflow-wrap:anywhere; border-left:3px solid #b94700; padding:8px 12px; }
.fs-app .fs-folder-selection-note[hidden] { display:none!important; }
@media(max-width:680px) { .fs-app .fs-folder-filters { grid-template-columns:1fr; } }

/* .119: scoped rules win over the shared table decoration, including long type names. */
html.fsg-ui .fs-app table.fs-exchange-files { table-layout:fixed; min-width:640px; }
html.fsg-ui .fs-app table.fs-exchange-files > :is(thead,tbody) > tr > :is(th,td) {
  white-space:normal; overflow-wrap:anywhere; word-break:normal; vertical-align:top;
}
html.fsg-ui .fs-app table.fs-exchange-files th:nth-child(1) { width:25%; }
html.fsg-ui .fs-app table.fs-exchange-files th:nth-child(2) { width:14%; }
html.fsg-ui .fs-app table.fs-exchange-files th:nth-child(3) { width:25%; }
html.fsg-ui .fs-app table.fs-exchange-files th:nth-child(4) { width:12%; }
html.fsg-ui .fs-app table.fs-exchange-files th:nth-child(5) { width:24%; }
.fs-app .fs-recipient-edit-help { margin:8px 0; font-size:13px; }
.fs-app [data-recipient-summary] { min-width:0; }
.fs-app [data-recipient-error] { color:#a12616; overflow-wrap:anywhere; }
@media(min-width:1181px) { .fs-app .fs-metrics { grid-template-columns:none; grid-auto-columns:minmax(0,1fr); grid-auto-flow:column; } }

/* Independent File Share workspace review, based on deployed .395. */
@media screen {
  .fs-app .fs-lane-layout { align-items: start; }
  .fs-app .fs-lane-detail { container-type: inline-size; }
  .fs-app .fs-file-review { margin-top: 18px; min-width: 0; }
  .fs-app .fs-file-review > h3 { margin: 0 0 12px; font-size: 17px; }
  .fs-app .fs-file-review-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
  .fs-app .fs-file-review-toolbar > label { flex: 1 1 240px; min-width: 0; }
  .fs-app .fs-file-review-toolbar > button { flex: 0 0 auto; width: auto; }
  .fs-app [data-lane-file-count] { margin: 10px 0 12px; font-size: 13px; color: var(--fs-muted); }
  .fs-app .fs-file-review-caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fs-app .fs-exchange-files .fs-status { white-space: nowrap; overflow-wrap: normal; word-break: normal; flex-shrink: 0; }
  .fs-app .fs-exchange-files .fs-actions.compact { gap: 8px; }
  .fs-app .fs-exchange-files .fs-button.compact { min-height: 36px; align-items: center; justify-content: center; padding: 7px 10px; }
  .fs-app .fs-exchange-files [data-recycle-file] { color: var(--fs-red); background: #fff; border-color: var(--fs-line); }
  .fs-app .fs-exchange-files [data-recycle-file]:hover { border-color: var(--fs-red); background: #fff5f3; }
  .fs-app .fs-lane-detail .fs-recipient-row > span > b,
  .fs-app .fs-lane-detail .fs-recipient-row > span > small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  .fs-app .fs-lane-detail input[type="file"] { max-width: 100%; min-width: 0; }
  .fs-app .fs-lane-detail .fs-detail-head > div,
  .fs-app .fs-lane-detail .fs-workflow-next > div { min-width: 0; overflow-wrap: anywhere; }
  .fs-app .fs-file-review :is(button,input,a):focus-visible { outline: 2px solid #9a3e00; outline-offset: 3px; }
}
@media screen and (min-width: 1181px) {
  .fs-app .fs-lane-layout { grid-template-columns: minmax(260px, .36fr) minmax(0, 1fr); }
  .fs-app .fs-lane-layout > .fs-card:first-child .fs-list-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fs-app .fs-lane-layout > .fs-card:first-child .fs-list-row > span:last-child { display: flex; flex-wrap: wrap; gap: 5px; }
  .fs-app .fs-lane-layout > .fs-card:first-child .fs-list-row b { white-space: normal; overflow-wrap: anywhere; }
}
@container (max-width: 900px) {
  @media screen {
    html.fsg-ui .fs-app table.fs-exchange-files,
    .fs-app table.fs-exchange-files { display: block; width: 100%; min-width: 0; table-layout: auto; }
    .fs-app .fs-exchange-files thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .fs-app .fs-exchange-files tbody { display: block; width: 100%; }
    .fs-app .fs-exchange-files tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "file file" "type status" "by by" "actions actions"; padding: 14px; gap: 12px 16px; border-bottom: 1px solid var(--fs-line); }
    .fs-app .fs-exchange-files tr:last-child { border-bottom: 0; }
    html.fsg-ui .fs-app table.fs-exchange-files > tbody > tr > td,
    .fs-app .fs-exchange-files td { display: block; width: auto; min-width: 0; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
    .fs-app .fs-exchange-files td:nth-child(1) { grid-area: file; font-weight: 700; }
    .fs-app .fs-exchange-files td:nth-child(2) { grid-area: type; }
    .fs-app .fs-exchange-files td:nth-child(3) { grid-area: by; }
    .fs-app .fs-exchange-files td:nth-child(4) { grid-area: status; }
    .fs-app .fs-exchange-files td:nth-child(5) { grid-area: actions; padding-top: 12px; border-top: 1px solid var(--fs-line); }
    .fs-app .fs-exchange-files td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--fs-muted); font-size: 11px; font-weight: 600; letter-spacing: .03em; }
    .fs-app .fs-exchange-files td:nth-child(5)::before { display: none; }
    .fs-app .fs-exchange-files .fs-file-empty { display: block; }
    .fs-app .fs-exchange-files .fs-file-empty td { font-weight: 400; }
    .fs-app .fs-exchange-files .fs-file-empty td::before { display: none; }
    .fs-app .fs-exchange-files .fs-button.compact { min-height: 40px; }
    .fs-app .fs-exchange-files [data-recycle-file] { margin-left: auto; }
    .fs-app .fs-file-review > .fs-table-wrap { overflow: visible; }
    .fs-app .fs-lane-detail .fs-detail-head { flex-wrap: wrap; }
  }
}
@container (max-width: 420px) {
  @media screen {
    .fs-app .fs-exchange-files [data-recycle-file] { margin-left: 0; flex-basis: 100%; }
    .fs-app .fs-exchange-files .fs-button.compact { min-height: 44px; }
    .fs-app .fs-lane-detail .fs-workflow-next { flex-direction: column; align-items: stretch; }
    .fs-app .fs-lane-detail .fs-workflow-next .fs-button { white-space: normal; }
  }
}
@media print {
  .fs-file-review-toolbar, [data-lane-file-count], .fs-file-review > h3 { display: none; }
}
