.fs-app {
  --fs-bg: #f4f6f8;
  --fs-panel: #ffffff;
  --fs-soft: #edf3f5;
  --fs-ink: #10202a;
  --fs-muted: #5f6f79;
  --fs-line: #d3dde3;
  --fs-blue: #2563eb;
  --fs-green: #15803d;
  --fs-orange: #f97316;
  --fs-red: #b42318;
  --fs-amber: #b45309;
  --fs-slate: #334155;
  --fs-shadow: 0 20px 48px rgba(15, 23, 42, .14);
  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: 900;
  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: 900;
  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: 800;
}

.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: 900;
}

.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: 900;
}

.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: 900;
  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: 900;
  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: 900;
}

.fs-label.full {
  grid-column: 1 / -1;
}

.fs-required {
  color: var(--fs-orange);
}

.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: 800;
}

.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: 900;
  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: 900;
}

.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 {
  color: var(--fs-red);
  background: #fff0ed;
}

.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: 900;
  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: 900;
  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: 800;
  color: var(--fs-orange);
  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 > span {
  display: block;
  margin-bottom: 6px;
  color: #52637a;
  font-size: 12px;
  font-weight: 800;
  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; }
}
