/* 3C Suite Commercial Design System — Aligned to Approved Retina Mockups 1-4 */
:root {
  --navy-950: #0b172a;
  --navy-900: #0f1e36;
  --navy-800: #182c4d;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --blue-600: #0284c7;
  --blue-700: #0369a1;
  --slate-50: #f8fafc;
  --slate-100: #eef2f6;
  --slate-200: #dbe3ee;
  --slate-300: #cbd5e1;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --amber-bg: #fef3c7;
  --amber-border: #f59e0b;
  --amber-text: #92400e;
  --emerald-bg: #ecfdf5;
  --emerald-text: #065f46;
}

* {
  box-sizing: border-box;
}

html, body, #root {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--slate-900);
  background: var(--slate-100);
  -webkit-font-smoothing: antialiased;
}

.s3c-app-shell, .s3c-public-shell, .s3c-onboarding-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.s3c-onboarding-shell, .s3c-public-shell {
  overflow-y: auto;
}

/* Top Navy Header (#0f1e36) */
.s3c-navy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 6px 14px;
  background: var(--navy-900);
  color: #ffffff;
  border-bottom: 1px solid #1e3a5f;
}

.s3c-navy-left, .s3c-navy-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.s3c-brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.s3c-doc-crumb {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.s3c-doc-crumb-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.s3c-doc-crumb-folder {
  font-size: 11px;
  color: #94a3b8;
}

.s3c-integrity-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.s3c-mode-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
}

.s3c-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: none;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.s3c-mode-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.s3c-mode-tab.active {
  background: #ffffff;
  color: var(--navy-900);
  font-weight: 700;
}

.s3c-density-switcher {
  display: inline-flex;
  background: #091324;
  border: 1px solid #264069;
  border-radius: 6px;
  padding: 2px;
}

.s3c-density-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.s3c-density-btn.active {
  background: #0284c7;
  color: #ffffff;
}

/* Omarchy + Office KeyTip Badges */
.s3c-keytip {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--amber-bg);
  border: 1px solid #fbbf24;
  color: var(--amber-text);
  font-size: 10px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.s3c-keytip-glow {
  box-shadow: 0 0 0 2px #f59e0b;
}

/* Full & Compact Ribbons */
.s3c-ribbon-full {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 8px 14px 5px;
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
}

.s3c-ribbon-group {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 14px;
  border-right: 1px solid var(--slate-200);
}

.s3c-ribbon-group:last-child {
  border-right: none;
}

.s3c-ribbon-group-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.s3c-ribbon-group-caption {
  margin-top: 4px;
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
}

.s3c-ribbon-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-900);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.s3c-ribbon-btn.primary {
  background: #f0fdfa;
  border-color: #5eead4;
  color: #0f766e;
}

.s3c-ribbon-btn:hover:not(:disabled) {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.s3c-ribbon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.s3c-ribbon-btn-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.s3c-ribbon-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
}

.s3c-compact-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.s3c-compact-btn.primary {
  background: #0d9488;
  border-color: #0d9488;
  color: #ffffff;
}

.s3c-unpinned-hint {
  padding: 3px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--slate-200);
  font-size: 11px;
  color: var(--slate-600);
}

.s3c-zen-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 14px;
  background: var(--navy-900);
  color: #ffffff;
  font-size: 12px;
}

.s3c-zen-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.s3c-zen-restore-btn {
  border: 1px solid #38bdf8;
  background: rgba(2, 132, 199, 0.25);
  color: #ffffff;
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 11px;
  cursor: pointer;
}

/* Universal 40px Single-Line Split Input Bar */
.s3c-split-input-bar {
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 10px;
  height: 42px;
  padding: 5px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--slate-300);
}

.s3c-split-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}

.s3c-split-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--slate-600);
  white-space: nowrap;
}

.s3c-split-content {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.s3c-inline-rename-form, .s3c-inline-filter-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.s3c-inline-rename-form input, .s3c-inline-filter-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-900);
  background: transparent;
}

.s3c-mini-btn {
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid #0d9488;
  background: #0d9488;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.s3c-math-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald-bg);
  color: var(--emerald-text);
  border: 1px solid #6ee7b7;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* Telemetry Banner */
.s3c-telemetry-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background: #ecfeff;
  border-bottom: 1px solid #a5f3fc;
  color: #0e7490;
  font-size: 12px;
  font-weight: 600;
}

/* Main 3-Pane Work Surface */
.s3c-work-grid {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.s3c-left-rail {
  width: 256px;
  background: #ffffff;
  border-right: 1px solid var(--slate-200);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.s3c-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--slate-600);
  margin-bottom: 6px;
}

.s3c-folder-list, .s3c-smart-list, .s3c-drawer-list, .s3c-drawer-shares, .s3c-bridge-pills {
  list-style: none;
  margin: 0;
  padding: 0;
}

.s3c-folder-list button, .s3c-smart-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--slate-900);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.s3c-folder-list button.active {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
}

.s3c-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
}
.dot-teal { background: #0d9488; }
.dot-blue { background: #0284c7; }
.dot-amber { background: #d97706; }
.dot-emerald { background: #059669; }
.dot-purple { background: #7c3aed; }
.dot-rose { background: #e11d48; }
.dot-slate { background: #64748b; }

.s3c-count, .s3c-score-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-700);
}

.s3c-mini-tabs button {
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  cursor: pointer;
}

.s3c-mini-tabs button.active {
  background: var(--navy-900);
  color: #ffffff;
}

.s3c-storage-card {
  margin-top: auto;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  font-size: 11.5px;
}

.s3c-storage-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  color: #0d9488;
  margin-bottom: 6px;
}

.s3c-storage-stats > div {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}

/* Center Vault Canvas */
.s3c-center-canvas {
  flex: 1;
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.s3c-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  font-size: 12.5px;
}

.s3c-bulk-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s3c-table-card, .s3c-inspector-card, .s3c-stage-bridge-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.s3c-stage-bridge-card {
  padding: 28px;
}

.s3c-vault-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.s3c-vault-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--slate-200);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-600);
}

.s3c-vault-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.s3c-vault-table tr.selected {
  background: #f0f9ff;
}

.s3c-file-cell-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.s3c-file-cell-main span {
  font-size: 11px;
  color: var(--slate-600);
}

.s3c-engine-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
}

.s3c-ver-pill {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--emerald-bg);
  color: var(--emerald-text);
  font-weight: 700;
  font-size: 11px;
}

.s3c-sha-code {
  font-size: 11px;
  color: #0f766e;
  background: #f0fdfa;
  padding: 2px 6px;
  border-radius: 4px;
}

.s3c-row-actions {
  display: flex;
  gap: 5px;
}

.s3c-row-actions button {
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.s3c-row-actions button:hover {
  background: #f0f9ff;
  border-color: #38bdf8;
}

/* Version Inspector */
.s3c-inspector-card {
  padding: 14px 16px;
}

.s3c-inspector-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.s3c-inspector-head h3 {
  margin: 2px 0 0;
  font-size: 15px;
}

.s3c-inspector-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
}

.s3c-inspector-editor textarea {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  padding: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.s3c-inspector-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 11px;
}

.s3c-version-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
}

.s3c-version-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 11.5px;
}

.s3c-version-list li div {
  display: flex;
  flex-direction: column;
}

/* Right Ambient Context Drawer */
.s3c-context-drawer {
  width: 288px;
  background: #ffffff;
  border-left: 1px solid var(--slate-200);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.s3c-drawer-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #b45309;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--slate-200);
}

.s3c-drawer-mod {
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 9px;
  background: #fcfdfe;
}

.s3c-drawer-mod-head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.s3c-drawer-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: transparent;
  padding: 5px 4px;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

.s3c-trunc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 185px;
}

.s3c-drawer-shares li, .s3c-bridge-pills li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 11.5px;
}

.s3c-drawer-shares li div, .s3c-bridge-pills li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.s3c-drawer-shares li {
  flex-direction: row;
  align-items: center;
}

.s3c-revoke-mini {
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  cursor: pointer;
}

/* Status Footer */
.s3c-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 14px;
  background: var(--navy-900);
  color: #cbd5e1;
  font-size: 11px;
}

.s3c-status-bar code {
  background: #1e293b;
  color: #fde68a;
  padding: 1px 5px;
  border-radius: 3px;
}

/* Onboarding, Auth, Share & Modals */
.s3c-onboarding-main, .s3c-public-main, .s3c-auth-layout {
  max-width: 1040px;
  width: 100%;
  margin: 24px auto;
  padding: 0 20px 40px;
}

.s3c-auth-layout {
  max-width: 500px;
}

.s3c-eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--teal-600);
  margin-bottom: 4px;
}

.s3c-onboarding-hero h1 {
  margin: 4px 0 6px;
  font-size: 24px;
}

.s3c-path-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}

.s3c-path-card {
  text-align: left;
  padding: 18px 20px;
  border-radius: 12px;
  border: 2px solid var(--slate-200);
  background: #ffffff;
  cursor: pointer;
}

.s3c-path-card.selected {
  border-color: var(--teal-600);
  background: #f0fdfa;
}

.s3c-path-card h2 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.s3c-path-card p {
  margin: 0;
  font-size: 13px;
  color: var(--slate-700);
  line-height: 1.45;
}

.s3c-path-card-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
}

.s3c-path-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: #0d9488;
  color: #ffffff;
}

.s3c-path-badge.path-b {
  background: #0284c7;
}

.s3c-onboarding-panel, .s3c-auth-card, .s3c-share-card, .s3c-modal-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.s3c-onboarding-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.s3c-domain-input-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--slate-300);
  border-radius: 7px;
  overflow: hidden;
}

.s3c-domain-input-group input {
  border: none !important;
  flex: 1;
}

.s3c-domain-input-group span {
  padding: 8px 12px;
  background: var(--slate-100);
  font-weight: 700;
  font-size: 13px;
}

.s3c-quota-callout {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--emerald-bg);
  border: 1px solid #6ee7b7;
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.s3c-folder-preview-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.s3c-folder-preview-pills span {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  font-size: 12px;
  font-weight: 600;
}

.s3c-bring-world-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}

.s3c-bridge-box {
  border: 1px solid var(--slate-200);
  border-radius: 9px;
  padding: 14px;
  background: #fcfdfe;
}

.s3c-bridge-box h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.s3c-import-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.s3c-staged-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  background: #ffffff;
}

.s3c-staged-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 11.5px;
  border-bottom: 1px solid #f1f5f9;
}

.s3c-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
}

.s3c-field input, .s3c-field select, .s3c-inline-input, .s3c-palette-input {
  padding: 8px 10px;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  font-size: 13px;
  width: 100%;
}

.s3c-btn-primary {
  padding: 9px 16px;
  border-radius: 7px;
  border: none;
  background: linear-gradient(135deg, #0d9488, #0284c7);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.s3c-btn-secondary {
  padding: 7px 12px;
  border-radius: 7px;
  border: 1px solid var(--slate-300);
  background: #ffffff;
  color: var(--slate-900);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.s3c-btn-full { width: 100%; }
.s3c-onboarding-footer { margin-top: 16px; display: flex; justify-content: flex-end; }

.s3c-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
}

.s3c-auth-tabs button {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  font-weight: 700;
  cursor: pointer;
}

.s3c-auth-tabs button.active {
  background: var(--navy-900);
  color: #ffffff;
}

.s3c-demo-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-200);
}

.s3c-demo-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.s3c-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 20px;
}

.s3c-modal-card {
  width: 100%;
  max-width: 540px;
}

.s3c-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.s3c-modal-header h3 { margin: 0; }
.s3c-icon-close { border: none; background: transparent; font-size: 16px; cursor: pointer; }
.s3c-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.s3c-verified-box, .s3c-created-share-box {
  padding: 10px 12px;
  border-radius: 7px;
  background: var(--emerald-bg);
  border: 1px solid #6ee7b7;
  color: var(--emerald-text);
  font-size: 12px;
  margin-bottom: 12px;
}

.s3c-share-url-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.s3c-share-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.s3c-verified-pill-lg {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--emerald-bg);
  border: 1px solid #34d399;
  color: var(--emerald-text);
  font-size: 12px;
  font-weight: 800;
}

.s3c-share-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  margin-bottom: 14px;
  font-size: 12px;
}

.s3c-share-meta-grid > div { display: flex; flex-direction: column; gap: 3px; }
.s3c-share-preview { border: 1px solid var(--slate-200); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.s3c-share-preview-head { display: flex; justify-content: space-between; padding: 8px 12px; background: #f8fafc; font-size: 11px; font-weight: 700; }
.s3c-share-preview pre { margin: 0; padding: 14px; white-space: pre-wrap; font-size: 12.5px; }

.s3c-tenant-bar { display: flex; align-items: center; gap: 6px; }
.s3c-tenant-chip { font-size: 11.5px; color: #e2e8f0; font-weight: 600; }
.s3c-signout-btn { border: 1px solid #334155; background: #1e293b; color: #e2e8f0; border-radius: 5px; font-size: 11px; padding: 4px 8px; cursor: pointer; }
.s3c-alert-error { padding: 10px 12px; border-radius: 7px; background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; font-size: 12.5px; margin-bottom: 12px; }
.s3c-alert-ok { padding: 10px 12px; border-radius: 7px; background: var(--emerald-bg); border: 1px solid #6ee7b7; color: var(--emerald-text); font-size: 12.5px; margin-bottom: 12px; }
.s3c-palette-list { list-style: none; margin: 10px 0 0; padding: 0; }
.s3c-palette-list button { width: 100%; text-align: left; padding: 8px 10px; border: none; border-bottom: 1px solid #f1f5f9; background: transparent; cursor: pointer; font-size: 13px; }
.s3c-palette-list button:hover { background: #f0f9ff; }
.s3c-link-btn { border: none; background: transparent; color: var(--blue-600); font-weight: 700; font-size: 11px; cursor: pointer; }

.s3c-mode-tab { white-space: nowrap; padding: 6px 8px; font-size: 11.5px; }
.s3c-compact-btn { white-space: nowrap; }
.s3c-vault-table td, .s3c-vault-table th { white-space: nowrap; }
.s3c-engine-pill, .s3c-ver-pill, .s3c-sha-code, .s3c-row-actions, .s3c-row-actions button { white-space: nowrap; }
.s3c-share-url-row input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid #6ee7b7;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  background: #ffffff;
  color: #064e3b;
}

.s3c-navy-bar { gap: 8px; padding: 6px 10px; }
.s3c-navy-left, .s3c-navy-right { gap: 7px; min-width: 0; }
.s3c-doc-crumb-title, .s3c-doc-crumb-folder { max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s3c-mode-tabs { gap: 2px; }
.s3c-mode-tab { padding: 5px 6px; font-size: 11px; gap: 4px; }
.s3c-tenant-chip { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s3c-density-btn { padding: 4px 6px; font-size: 10.5px; white-space: nowrap; }
.s3c-left-rail { width: 228px; flex-shrink: 0; }
.s3c-context-drawer { width: 258px; flex-shrink: 0; }
.s3c-center-canvas { min-width: 0; padding: 12px; }
.s3c-table-card { overflow-x: auto; }
.s3c-vault-table th, .s3c-vault-table td { padding: 8px 8px; font-size: 12px; }
.s3c-verified-box { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* Dual Collapsible Sidebars (Alt+[ Left / Alt+] Right) */
.s3c-rail-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--slate-200);
}

.s3c-rail-caption {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--teal-600);
}

.s3c-sidebar-collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-700);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.s3c-sidebar-collapse-btn:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.s3c-section-toggle {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 10.8px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--slate-700);
  cursor: pointer;
  text-align: left;
}

.s3c-keytip-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.s3c-collapsed-rail {
  width: 52px;
  flex-shrink: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
}

.s3c-collapsed-left {
  border-right: 1px solid var(--slate-200);
}

.s3c-collapsed-right {
  border-left: 1px solid var(--slate-200);
}

.s3c-rail-expand-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  border-radius: 6px;
  padding: 5px 3px;
  width: 44px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.s3c-rail-expand-btn .s3c-keytip {
  font-size: 8.5px;
  padding: 1px 3px;
  white-space: nowrap;
}

.s3c-rail-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: var(--slate-50);
  font-size: 15px;
  cursor: pointer;
}

.s3c-rail-icon-btn:hover, .s3c-rail-expand-btn:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

/* Right-Drawer Pinned Search Card */
.s3c-drawer-search-card {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.s3c-drawer-search-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.s3c-search-scope-tabs {
  display: flex;
  gap: 4px;
}

.s3c-search-scope-tabs button {
  flex: 1;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  color: var(--slate-700);
  border-radius: 5px;
  padding: 3px 5px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.s3c-search-scope-tabs button.active {
  background: #eff6ff;
  border-color: #38bdf8;
  color: #0369a1;
}

.s3c-drawer-search-input-box {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 6px;
}

.s3c-drawer-search-input-box:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.16);
}

.s3c-drawer-search-input-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 12px;
  color: var(--slate-900);
  background: transparent;
}

.s3c-search-icon {
  font-size: 12px;
}

.s3c-clear-inline-btn {
  border: none;
  background: var(--slate-100);
  color: var(--slate-600);
  border-radius: 999px;
  width: 18px;
  height: 18px;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.s3c-drawer-search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--slate-600);
}

.s3c-drawer-scope-note {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--slate-600);
  line-height: 1.35;
}

/* Vault View Switcher & Kind Filter Bar */
.s3c-vault-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 9px;
}

.s3c-vault-view-left, .s3c-vault-view-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.s3c-vault-heading {
  font-size: 13px;
  color: var(--slate-900);
  margin-right: 4px;
}

.s3c-kind-pills {
  display: inline-flex;
  gap: 4px;
}

.s3c-kind-pill {
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-700);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.s3c-kind-pill.active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.s3c-view-switcher, .s3c-size-toggle {
  display: inline-flex;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 7px;
  padding: 2px;
}

.s3c-view-switcher button, .s3c-size-toggle button {
  border: none;
  background: transparent;
  color: var(--slate-700);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.s3c-view-switcher button.active, .s3c-size-toggle button.active {
  background: #ffffff;
  color: var(--navy-900);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.s3c-matching-folders-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #0369a1;
}

.s3c-folder-match-chip {
  border: 1px solid #7dd3fc;
  background: #ffffff;
  color: #0369a1;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Details Row Mini Thumbnail */
.s3c-file-row-lead {
  display: flex;
  align-items: center;
  gap: 9px;
}

.s3c-mini-row-thumb {
  width: 44px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  flex-shrink: 0;
}

/* Visual Thumbnail Gallery View (Medium & Large) */
.s3c-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 12px;
}

.s3c-thumb-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
}

.s3c-thumb-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.s3c-thumb-card:hover {
  border-color: #7dd3fc;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.s3c-thumb-card.selected {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.s3c-thumb-stage {
  position: relative;
  height: 146px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.s3c-thumb-grid-lg .s3c-thumb-stage {
  height: 188px;
}

.s3c-thumb-stage.photo {
  background: #0f172a;
}

.s3c-thumb-stage img {
  width: 100%;
  height: 100%;
  display: block;
}

.s3c-thumb-stage img.fit-cover {
  object-fit: cover;
}

.s3c-thumb-stage img.fit-contain {
  object-fit: contain;
}

.s3c-thumb-check {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--slate-300);
  border-radius: 5px;
  padding: 2px 4px;
  display: inline-flex;
  cursor: pointer;
}

.s3c-thumb-badge-right {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 30, 54, 0.84);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.s3c-thumb-meta {
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.s3c-thumb-name {
  font-size: 12.5px;
  color: var(--slate-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s3c-thumb-sub {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--slate-600);
}

.s3c-thumb-actions {
  display: flex;
  gap: 5px;
  margin-top: 3px;
}

.s3c-thumb-actions button {
  flex: 1;
  padding: 4px 6px;
  border-radius: 5px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.s3c-thumb-actions button:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
}

/* Compact Tiles View */
.s3c-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 10px;
}

.s3c-tile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: 9px;
  cursor: pointer;
}

.s3c-tile-card.selected {
  border-color: #0284c7;
  background: #f0f9ff;
}

.s3c-tile-thumb {
  width: 72px;
  height: 48px;
  border-radius: 5px;
  border: 1px solid var(--slate-200);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--slate-100);
}

.s3c-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s3c-tile-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.s3c-tile-info strong {
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s3c-tile-info span {
  font-size: 11px;
  color: var(--slate-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s3c-tile-actions {
  display: flex;
  gap: 4px;
}

.s3c-tile-actions button {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  cursor: pointer;
}

.s3c-empty-vault-card {
  padding: 28px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed var(--slate-300);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--slate-600);
}

.s3c-inspector-binary-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: var(--slate-50);
}

.s3c-inspector-binary-preview img {
  width: 128px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--slate-300);
}

.s3c-inspector-binary-preview p {
  margin: 4px 0;
  font-size: 12px;
  color: var(--slate-600);
}


/* ============================================================================
   Stage 2: Human Shoulder-Tap Banner, Multi-Alarm Flash, Split Meeting Packet,
   Unified Planner on Top & Hard-Time Calendar Views (Aligned to Mockup 2b)
   ============================================================================ */

.s3c-center-split-stage {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.s3c-center-split-stage > .s3c-center-canvas {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

/* Global Perimeter Screen Flash Ring for Multi-Alarms */
@keyframes s3cScreenFlashPulse {
  0%, 100% {
    box-shadow: inset 0 0 0 4px rgba(245, 158, 11, 0.92), inset 0 0 36px rgba(20, 184, 166, 0.35);
  }
  50% {
    box-shadow: inset 0 0 0 7px rgba(225, 29, 72, 0.9), inset 0 0 54px rgba(245, 158, 11, 0.45);
  }
}

.s3c-screen-flash-ring {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 95;
  animation: s3cScreenFlashPulse 1.15s ease-in-out infinite;
}

.s3c-interrupt-stack {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 30;
}

/* Human Shoulder-Tap Appointment Reminder Banner (Mockup 2b) */
.s3c-shoulder-tap-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 14px;
  background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
  border-bottom: 1.5px solid #f59e0b;
  color: #78350f;
  font-size: 12.5px;
}

.s3c-shoulder-tap-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  line-height: 1.35;
}

.s3c-shoulder-icon {
  font-size: 14px;
}

.s3c-shoulder-event-summary {
  font-weight: 700;
  color: #78350f;
}

.s3c-shoulder-files-inline {
  color: #92400e;
}

.s3c-shoulder-file-link {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #78350f;
  text-decoration: underline;
  cursor: pointer;
}

.s3c-shoulder-file-link:hover {
  color: #0f172a;
}

.s3c-shoulder-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.s3c-shoulder-primary-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #b45309;
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(120, 53, 15, 0.25);
}

.s3c-shoulder-primary-btn:hover {
  background: #92400e;
}

.s3c-shoulder-outline-btn {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #d97706;
  background: #ffffff;
  color: #78350f;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.s3c-shoulder-outline-btn:hover {
  background: #fffbeb;
}

/* Active Multi-Alarm Firing Banner */
.s3c-alarm-fire-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 14px;
  background: linear-gradient(90deg, #ecfdf5 0%, #d1fae5 100%);
  border-bottom: 1.5px solid #10b981;
  color: #064e3b;
  font-size: 12.5px;
}

.s3c-alarm-fire-banner.flash-active {
  background: linear-gradient(90deg, #fef2f2 0%, #fde68a 50%, #ecfdf5 100%);
  border-bottom-color: #e11d48;
  color: #881337;
}

.s3c-alarm-fire-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.s3c-alarm-fire-label {
  font-weight: 800;
  font-size: 13px;
}

.s3c-alarm-mode-pills {
  display: inline-flex;
  gap: 5px;
}

.s3c-alarm-chip {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  font-size: 10.5px;
  font-weight: 700;
}

.s3c-alarm-dismiss-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  background: #0f172a;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

/* Side-by-Side Split-Screen Meeting Files Viewer */
.s3c-split-files-pane {
  width: 43%;
  min-width: 340px;
  max-width: 520px;
  background: #ffffff;
  border-left: 2px solid var(--teal-600);
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: -6px 0 18px rgba(15, 23, 42, 0.06);
}

.s3c-split-pane-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #f0fdfa;
  border-bottom: 1px solid #99f6e4;
}

.s3c-split-pane-header h3 {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--navy-900);
}

.s3c-split-close-btn {
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid var(--slate-300);
  background: #ffffff;
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.s3c-split-file-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  overflow-x: auto;
}

.s3c-split-file-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  color: var(--slate-700);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  max-width: 210px;
}

.s3c-split-file-tab.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.s3c-split-file-tab small {
  opacity: 0.78;
  font-size: 10px;
}

.s3c-split-pane-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  background: #f8fafc;
}

.s3c-split-meta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--slate-600);
  margin-bottom: 10px;
}

.s3c-verified-mini {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--emerald-bg);
  border: 1px solid #6ee7b7;
  color: var(--emerald-text);
  font-weight: 700;
  font-size: 10.5px;
}

.s3c-split-sheet-wrap {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  overflow-x: auto;
}

.s3c-split-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.s3c-split-sheet-table th {
  text-align: left;
  padding: 7px 9px;
  background: #f1f5f9;
  border-bottom: 1.5px solid var(--slate-300);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 800;
}

.s3c-split-sheet-table td {
  padding: 7px 9px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--slate-900);
}

.s3c-split-sheet-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.s3c-split-doc-paper {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.s3c-split-doc-paper p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--slate-900);
}

.s3c-split-doc-lead {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px !important;
  font-weight: 700;
  color: var(--navy-900) !important;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--slate-200);
}

.s3c-split-image-stage, .s3c-split-pdf-thumb {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  margin-bottom: 10px;
}

.s3c-split-image-stage img, .s3c-split-pdf-thumb img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 6px;
}

.s3c-split-pane-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
}

/* Calendar & Unified Planner Primary Workspace */
.s3c-cal-workspace {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.s3c-planner-top-deck {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-top: 3px solid var(--teal-600);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.s3c-planner-deck-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.s3c-planner-deck-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.s3c-planner-drag-hint {
  font-size: 11.5px;
  color: var(--slate-600);
}

.s3c-planner-quick-form {
  display: flex;
  gap: 7px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.s3c-planner-task-input {
  flex: 1;
  min-width: 210px;
  padding: 6px 10px;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  font-size: 12.5px;
}

.s3c-planner-quick-form select {
  padding: 6px 8px;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  font-size: 12px;
  background: var(--slate-50);
  max-width: 190px;
}

.s3c-planner-cards-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.s3c-planner-card {
  background: #fcfdfe;
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--teal-600);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  cursor: grab;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.s3c-planner-card:hover {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.s3c-planner-card.prio-high {
  border-left-color: #d97706;
  background: #fffdf7;
}

.s3c-planner-card.prio-medium {
  border-left-color: #0d9488;
}

.s3c-planner-card.prio-low {
  border-left-color: #0284c7;
}

.s3c-planner-card.is-done {
  opacity: 0.62;
  cursor: default;
}

.s3c-planner-card.is-done .s3c-planner-card-title {
  text-decoration: line-through;
}

.s3c-planner-card.is-dragging {
  opacity: 0.48;
  border-style: dashed;
}

.s3c-planner-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.s3c-planner-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.s3c-prio-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.s3c-prio-pill.prio-high {
  background: #fef3c7;
  color: #92400e;
}

.s3c-prio-pill.prio-medium {
  background: #ccfbf1;
  color: #115e59;
}

.s3c-prio-pill.prio-low {
  background: #e0f2fe;
  color: #075985;
}

.s3c-duration-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--slate-600);
}

.s3c-task-del-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  padding: 0 2px;
}

.s3c-task-del-btn:hover {
  color: #dc2626;
}

.s3c-planner-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.32;
}

.s3c-planner-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  flex-wrap: wrap;
}

.s3c-task-file-chip {
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s3c-task-block-btn {
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid #0d9488;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.s3c-task-block-btn:hover {
  background: #0d9488;
  color: #ffffff;
}

.s3c-task-scheduled-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.s3c-blocked-chip {
  padding: 2px 6px;
  border-radius: 5px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  font-size: 10.5px;
  font-weight: 700;
}

.s3c-task-mini-btn {
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--slate-300);
  background: #ffffff;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.s3c-planner-empty {
  padding: 10px;
  font-size: 12px;
  color: var(--slate-600);
}

/* Calendar Toolbar & Grids */
.s3c-cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 9px;
  padding: 8px 12px;
}

.s3c-cal-nav-left, .s3c-cal-nav-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.s3c-cal-heading {
  margin: 0 0 0 6px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--navy-900);
}

.s3c-week-grid-wrap {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  overflow: hidden;
}

.s3c-week-header-row {
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(0, 1fr));
  background: #f8fafc;
  border-bottom: 1.5px solid var(--slate-200);
}

.s3c-time-gutter-head {
  padding: 8px 6px;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--slate-600);
  text-align: center;
  border-right: 1px solid var(--slate-200);
}

.s3c-week-day-head {
  padding: 6px 8px;
  text-align: center;
  border-right: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.s3c-week-day-head.is-today {
  background: #f0fdfa;
  color: #0f766e;
}

.s3c-week-dow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-600);
}

.s3c-week-dom {
  font-size: 13.5px;
  font-weight: 800;
}

.s3c-week-day-head.is-today .s3c-week-dom {
  background: var(--teal-600);
  color: #ffffff;
  padding: 1px 7px;
  border-radius: 999px;
}

.s3c-week-hour-row {
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(0, 1fr));
  min-height: 52px;
  border-bottom: 1px solid #f1f5f9;
}

.s3c-time-gutter-cell {
  padding: 6px 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--slate-600);
  text-align: right;
  background: #fcfdfe;
  border-right: 1px solid var(--slate-200);
  white-space: nowrap;
}

.s3c-week-slot-cell {
  padding: 3px 4px;
  border-right: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  min-width: 0;
  transition: background 0.1s ease;
}

.s3c-week-slot-cell:hover {
  background: #f8fafc;
}

.s3c-week-slot-cell.today-col {
  background: rgba(240, 253, 250, 0.45);
}

.s3c-week-slot-cell.drop-ready {
  background: rgba(236, 253, 245, 0.35);
}

.s3c-week-slot-cell.drop-hover,
.s3c-day-hour-row.drop-hover,
.s3c-month-cell.drop-hover {
  background: #ccfbf1 !important;
  outline: 2px dashed #0d9488;
  outline-offset: -2px;
}

/* Color-Coded Calendar Event Blocks */
.s3c-cal-event-block {
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 3.5px solid #d97706;
  background: #fef3c7;
  color: #78350f;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.s3c-cal-event-block.tag-teal {
  background: #ccfbf1;
  border-left-color: #0d9488;
  color: #115e59;
}

.s3c-cal-event-block.tag-blue {
  background: #e0f2fe;
  border-left-color: #0284c7;
  color: #0c4a6e;
}

.s3c-cal-event-block.tag-purple {
  background: #f3e8ff;
  border-left-color: #7c3aed;
  color: #4c1d95;
}

.s3c-cal-event-block.tag-emerald {
  background: #d1fae5;
  border-left-color: #059669;
  color: #064e3b;
}

.s3c-cal-event-block.tag-rose {
  background: #ffe4e6;
  border-left-color: #e11d48;
  color: #881337;
}

.s3c-cal-event-block.tag-slate {
  background: #e2e8f0;
  border-left-color: #475569;
  color: #0f172a;
}

.s3c-ev-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
}

.s3c-ev-title {
  font-size: 11.5px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s3c-ev-loc {
  font-size: 10px;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s3c-ev-split-pill {
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  font-size: 9.5px;
  font-weight: 800;
  cursor: pointer;
}

/* Day View & Month View */
.s3c-day-focus-layout {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  overflow: hidden;
}

.s3c-day-hour-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  min-height: 54px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.s3c-day-hour-content {
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.s3c-cal-event-block.day-wide {
  padding: 8px 12px;
}

.s3c-ev-wide-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.s3c-cal-event-block.day-wide p {
  margin: 3px 0 0;
  font-size: 11.5px;
}

.s3c-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  overflow: hidden;
}

.s3c-month-dow-head {
  padding: 7px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  background: #f8fafc;
  border-bottom: 1px solid var(--slate-200);
}

.s3c-month-cell {
  min-height: 86px;
  padding: 6px;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.s3c-month-cell.muted-month {
  background: #f8fafc;
  opacity: 0.6;
}

.s3c-month-cell.is-today {
  background: #f0fdfa;
}

.s3c-month-cell-num {
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.s3c-month-cell-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.s3c-month-pill {
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 10.5px;
  font-weight: 700;
  background: #fef3c7;
  color: #78350f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.s3c-month-pill.tag-teal { background: #ccfbf1; color: #115e59; }
.s3c-month-pill.tag-blue { background: #e0f2fe; color: #0c4a6e; }
.s3c-month-pill.tag-purple { background: #f3e8ff; color: #4c1d95; }
.s3c-month-pill.tag-emerald { background: #d1fae5; color: #064e3b; }

/* Event Modal Vault File Picker */
.s3c-event-modal {
  max-width: 640px;
}

.s3c-event-modal textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  font-family: inherit;
  font-size: 12.5px;
}

.s3c-vault-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 145px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--slate-200);
  border-radius: 7px;
  background: var(--slate-50);
}

.s3c-vault-pick-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 5px;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.s3c-vault-pick-item.checked {
  border-color: var(--teal-600);
  background: #f0fdfa;
}

.s3c-btn-danger {
  padding: 7px 12px;
  border-radius: 7px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-right: auto;
}

/* Right Context Drawer: Appointments & Multi-Alarm Clock Cards (Mockup 2b) */
.s3c-drawer-appt-list,
.s3c-drawer-alarm-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.s3c-drawer-appt-list li {
  border: 1px solid var(--slate-200);
  border-radius: 7px;
  background: #ffffff;
  padding: 6px 8px;
}

.s3c-drawer-appt-list li.imminent {
  background: #fffbeb;
  border-color: #fcd34d;
  border-left: 3.5px solid #f59e0b;
}

.s3c-drawer-appt-main {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.s3c-drawer-appt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}

.s3c-drawer-appt-top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s3c-appt-badge {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.s3c-appt-badge.warm {
  background: #fef3c7;
  color: #b45309;
}

.s3c-drawer-appt-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--slate-600);
}

.s3c-appt-split-chip {
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--navy-900);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.s3c-green-link {
  color: #059669 !important;
}

.s3c-drawer-alarm-list li {
  border: 1px solid var(--slate-200);
  border-radius: 7px;
  padding: 6px 8px;
  background: #ffffff;
}

.s3c-drawer-alarm-list li.armed {
  background: #ecfdf5;
  border-color: #a7f3d0;
  border-left: 3.5px solid #10b981;
}

.s3c-drawer-alarm-list li.disarmed {
  opacity: 0.65;
}

.s3c-alarm-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.s3c-alarm-toggle-label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 11.5px;
  cursor: pointer;
}

.s3c-alarm-mini-btns {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.s3c-alarm-ring-btn {
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #6ee7b7;
  background: #ffffff;
  color: #065f46;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.s3c-alarm-del-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
}

.s3c-alarm-row-flags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #065f46;
}

.s3c-drawer-empty-row {
  padding: 8px;
  font-size: 11.5px;
  color: var(--slate-600);
  text-align: center;
}

.s3c-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.s3c-alarm-options-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}

.s3c-alarm-options-box label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}


/* Stage 2 Visual Polish: Crisp Checkboxes, Auto-Centered Time-Grid Viewport & Navy Breathing Room */
.s3c-field input[type="checkbox"],
.s3c-field input[type="radio"],
.s3c-vault-pick-item input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  padding: 0 !important;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--teal-600);
}

.s3c-vault-pick-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s3c-week-body-scroll,
.s3c-day-timeline {
  max-height: 410px;
  overflow-y: auto;
}

.s3c-week-hour-row {
  min-height: 48px;
}

.s3c-integrity-pill {
  white-space: nowrap;
  flex-shrink: 0;
}

.s3c-doc-crumb {
  min-width: 0;
  max-width: 165px;
}
