/* CCO Consultores — workspace. Shared components remain in styles.css. */
:root {
  --navy: #0c3457; --navy-dark: #092640; --teal: #007b9e;
  --ink: #173750; --muted: #5b7083; --line: #dce5ec;
  --bg: #edf2f6; --pale: #edf7fb; --nav-width: 208px;
  color: var(--ink);
}
body { font-size: 14px; }
body.nav-collapsed { --nav-width: 72px; }
.sidebar {
  width: var(--nav-width); padding: 26px 14px 18px;
  background: linear-gradient(170deg, #092640, #0a3c59 72%, #07516a);
}
.cco-brand { display: block; padding: 0 14px; color: white; text-decoration: none; }
.cco-wordmark { display: block; font-size: 35px; font-weight: 700; letter-spacing: 1px; line-height: 1; }
.cco-brand-sub { display: block; font-size: 10px; letter-spacing: 2.7px; margin-top: 9px; line-height: 1.4; }
.sidebar-toggle { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid #ffffff24; border-radius: 6px; background: #ffffff06; color: #c6dfec; padding: 9px 12px; font-size: 12px; margin-top: 28px; }
.sidebar-toggle:hover { background: #ffffff13; color: white; }
.sidebar-toggle svg { width: 18px; height: 18px; }
.workspace-label { font-size: 10px; letter-spacing: 1.25px; margin: 28px 12px 12px; color: #a7c3d7; }
.nav-item { padding: 12px; font-size: 14px; gap: 11px; color: #d2e3ef; min-height: 44px; }
.nav-item.active { color: white; background: #ffffff13; box-shadow: inset 3px 0 #64c4df; }
.nav-count { background: #ffffff14; color: #c9e5f0; font-size: 12px; }
.campaign { padding: 13px 10px; font-size: 12px; border-color: #ffffff24; gap: 8px; margin-bottom: 16px; }
.campaign small { color: #a8c8dc; font-size: 11px; }
.campaign-dot { background: #78d2e5; }
.sidebar-return { display: flex; align-items: center; gap: 10px; padding: 18px 12px 0; margin-top: 12px; border-top: 1px solid #ffffff22; color: #c5ddea; font-size: 12px; text-decoration: none; }
.sidebar-return:hover { color: white; }
.sidebar-return svg { width: 16px; transform: rotate(180deg); }
.nav-collapsed .sidebar { padding-inline: 10px; }
.nav-collapsed .cco-brand { padding: 0; text-align: center; }
.nav-collapsed .cco-wordmark { font-size: 24px; letter-spacing: 0; }
.nav-collapsed .cco-brand-sub, .nav-collapsed .workspace-label, .nav-collapsed .sidebar-toggle span, .nav-collapsed .nav-item span, .nav-collapsed .campaign, .nav-collapsed .sidebar-return span { display: none; }
.nav-collapsed .sidebar-toggle, .nav-collapsed .nav-item, .nav-collapsed .sidebar-return { justify-content: center; padding-inline: 0; }
.nav-collapsed nav { margin-top: 20px; }
.app { margin-left: var(--nav-width); min-width: 0; }
.topbar { height: 56px; padding: 0 26px; }
.breadcrumbs { font-size: 12px; color: #637b8f; gap: 12px; }
.breadcrumbs strong { color: #214860; font-weight: 600; }
.topbar-right { gap: 22px; }
.demo-pill { font-size: 11px; background: #f0f6fa; border-color: #dce8ef; color: #4c6b82; border-radius: 20px; padding: 5px 10px; }
.demo-pill span { background: #4387a1; }
.profile { font-size: 12px; }
.profile small { font-size: 10px; color: #607c90; }
.profile-avatar { width: 32px; height: 32px; color: #145679; background: #e6f1f8; border-color: #cfe2ed; }
main { height: calc(100dvh - 56px); min-height: 540px; padding: 23px 24px 10px; }
.page-heading { margin-bottom: 19px; gap: 16px; flex-shrink: 0; }
.eyebrow { font-size: 10px; letter-spacing: 1.6px; color: #536f85; }
.page-heading h1 { font-size: 26px; margin: 4px 0 6px; font-weight: 650; letter-spacing: -.6px; color: #143a58; }
.page-heading p { font-size: 13px; color: #5d7488; }
.btn { font-size: 13px; height: 40px; border-radius: 6px; padding-inline: 14px; }
.primary { background: #007b9e; border-color: #007b9e; }
.primary:hover { background: #006682; border-color: #006682; }
.secondary { border-color: #cddbe5; color: #36576d; }
.secondary:hover { background: #eef4f8; }
.new-btn { height: 42px; padding-inline: 18px; box-shadow: 0 2px 4px #00385316; }
.subtle { height: 36px; font-size: 12px; color: #45647b; }
.subtle:hover { background: #e0eaf1; }
.workspace-toolbar { flex-shrink: 0; gap: 12px; margin-bottom: 14px; min-height: 40px; }
.view-switch { border: 1px solid #d6e1e9; background: #e2eaf0; padding: 3px; border-radius: 7px; }
.view-switch button { font-size: 12px; padding: 7px 11px; gap: 7px; color: #516a7e; white-space: nowrap; }
.view-switch button.chosen { color: #0b5374; box-shadow: 0 1px 4px #1e496018; }
.view-switch svg { width: 16px; height: 16px; }
.file-actions { gap: 5px; }
.work-area { --list-width: 340px; grid-template-columns: var(--list-width) 18px minmax(0,1fr); gap: 0; min-width: 0; }
.records-panel, .editor-panel { border: 1px solid #d4e0e9; border-radius: 9px; box-shadow: 0 2px 5px #193a5210; min-width: 0; }
.panel-heading { flex-shrink: 0; padding: 14px 16px 12px; gap: 0; min-height: 76px; }
.panel-heading h2 { font-size: 14px; color: #24465f; flex: 1; gap: 7px; }
.panel-heading h2 span { background: #eaf1f6; color: #4c718c; font-size: 11px; min-width: 22px; text-align: center; }
.panel-controls { display: flex; align-items: center; gap: 2px; }
.small-label { flex-basis: 100%; font-size: 11px; color: #657f93; margin-top: 2px; }
.icon-btn { width: 32px; height: 32px; color: #5a778d; }
.icon-btn:hover { color: #0b5879; background: #e8f2f8; }
.search-box { flex-shrink: 0; margin-inline: 16px; height: 40px; border-color: #ccdae5; background: #fbfdfe; border-radius: 6px; }
.search-box input { font-size: 13px; color: #21465e; }
.search-box kbd { color: #6b8396; font-size: 11px; border-color: #d8e3eb; }
.search-box:focus-within { border-color: #1689af; box-shadow: 0 0 0 3px #007b9e18; }
.list-tools { font-size: 11px; padding: 12px 16px; color: #5e778b; gap: 4px; }
.list-tools select { font-size: 12px; color: #31546c; max-width: 158px; min-width: 0; padding: 4px 0; }
.list-tools select:focus-visible { outline: 2px solid #1689af; outline-offset: 2px; }
.list-tools>span { font-size: 10px; }
.records-content { scrollbar-width: thin; scrollbar-color: #c7d6e0 transparent; }
.record-row { padding: 17px 16px; border-bottom-color: #e5edf3; }
.record-row:hover { background: #f5f9fc; }
.record-row.selected { background: #edf7fc; box-shadow: inset 3px 0 #0082aa; }
.row-top { gap: 11px; }
.row-avatar, .row-avatar.sage, .row-avatar.sand { width: 36px; height: 38px; border-radius: 6px; font-size: 12px; color: #39718f; background: #e6eff5; }
.record-row.selected .row-avatar { background: #d7ecf6; color: #166385; }
.row-person { min-width: 0; }
.row-person strong { font-size: 13px; color: #214964; font-weight: 600; }
.row-person small { font-size: 11px; color: #658094; margin-top: 3px; }
.row-job { font-size: 12px; color: #607b90; }
.row-date { font-size: 11px; color: #607b90; }
.row-num { color: #6a8395; }
.row-bottom { margin-top: 12px; font-size: 11px; gap: 8px; color: #647f92; }
.status { font-size: 10px; padding: 3px 7px; border-radius: 4px; }
.status.pass { background: #eaf6ef; color: #256b4f; }
.status.fail { background: #fff3df; color: #855b17; }
.status.pending { background: #edf1f5; color: #52677b; }
.list-footer { flex-shrink: 0; padding: 11px 14px; font-size: 11px; color: #607a8e; background: #f8fbfd; }
.list-footer svg { width: 14px; height: 14px; }
.panel-divider { display: flex; align-items: center; justify-content: center; cursor: col-resize; touch-action: none; border-radius: 6px; }
.panel-divider span { width: 4px; height: 40px; border-radius: 4px; background: #c3d3df; }
.panel-divider:hover span, .panel-divider:focus-visible span, .resizing-panels .panel-divider span { background: #0084aa; }
.panel-divider:focus-visible { outline: 2px solid #0084aa; outline-offset: -4px; background: #dcecf5; }
.resizing-panels, .resizing-panels * { cursor: col-resize !important; user-select: none !important; }
.editor-panel-bar { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding: 7px 16px; border-bottom: 1px solid var(--line); background: #f8fbfd; min-height: 43px; }
.editor-panel-bar>span { display: flex; gap: 7px; align-items: center; font-size: 11px; font-weight: 600; color: #55758b; }
.editor-panel-bar>span svg { width: 15px; height: 15px; }
.editor-panel-bar .text-button { padding: 5px 8px; font-size: 11px; }
.editor-panel form { height: auto; flex: 1; }
.editor-heading { padding: 17px 23px; gap: 14px; min-height: 96px; flex-shrink: 0; background: #fff; }
.record-photo { width: 48px; height: 54px; border-radius: 7px; font-size: 18px; background: #eaf4fa; border-color: #d6e5f0; color: #267b9c; }
.record-overline { font-size: 10px; letter-spacing: 1.2px; color: #617c90; }
.editor-heading h2 { font-size: 19px; color: #153e5b; font-weight: 600; margin-top: 2px; }
.photo-link { color: #447995; font-size: 11px; padding-top: 5px; }
.photo-link svg { width: 13px; height: 13px; }
.form-scroll { padding: 20px 24px; scroll-behavior: auto; scrollbar-gutter: stable; scrollbar-color: #c3d5e1 transparent; }
.form-section { margin: 0; padding: 0; }
.form-section+.form-section { padding-top: 18px; margin-top: 20px; border-top: 1px solid #e2eaf0; }
.section-heading { margin-bottom: 0; cursor: pointer; list-style: none; gap: 9px; min-height: 29px; border-radius: 4px; }
.section-heading::-webkit-details-marker { display: none; }
.section-heading:focus-visible { outline: 2px solid #1689af; outline-offset: 4px; }
.section-heading:hover h3 { color: #007597; }
.section-heading h3 { font-size: 13px; color: #34536b; }
.section-chevron { width: 16px; height: 16px; margin-left: auto; color: #70899c; transform: rotate(-90deg); }
.form-section[open] .section-chevron { transform: rotate(0); }
.section-body { padding-top: 15px; }
.step-number { width: 24px; height: 24px; font-size: 11px; color: #3e718e; background: #edf5fa; border-color: #dae9f3; }
.required-note { font-size: 10px; color: #637b8e; }
.required-note+.section-chevron { margin-left: 4px; }
.form-grid { gap: 15px 18px; }
.form-grid label, .text-label, .textarea-heading label { color: #48667d; font-size: 12px; font-weight: 600; }
.required { color: #587c94; }
.form-grid input { height: 42px; border-radius: 5px; font-size: 14px; padding: 10px 12px; color: #173e5b; border-color: #cbdbe6; margin-top: 6px; }
input::placeholder, textarea::placeholder { color: #798fa0; }
.form-grid input:focus, textarea:focus { border-color: #1689af; box-shadow: 0 0 0 3px #007b9e18; }
.result-options { gap: 10px; }
.result-option { font-size: 13px; min-height: 43px; padding: 10px 12px; gap: 8px; color: #5e7385; border-color: #d4e0e8; }
.result-option.pending:has(input:checked) { background: #eff5fa; border-color: #8aaac1; color: #42667f; }
.result-option.pass:has(input:checked) { background: #ecf7ef; color: #2c6f51; border-color: #84b49b; }
.result-option.fail:has(input:checked) { background: #fff6e6; color: #895e1c; border-color: #c9a565; }
.field-hint { font-size: 11px; color: #637d90; margin-top: 7px; }
textarea { border-color: #cbdbe6; border-radius: 5px; font-size: 14px; line-height: 1.85; color: #24475f; padding: 12px 14px; }
.text-label { margin-bottom: 8px; }
.textarea-heading { margin-top: 22px; margin-bottom: 8px; }
.text-button { font-size: 12px; color: #126f91; gap: 6px; border-radius: 4px; }
.text-button:hover { color: #064967; background: #edf6fb; }
.text-button svg { width: 15px; height: 15px; }
#admissions { min-height: 260px; }
.text-footer { font-size: 10px; color: #667e91; margin-top: 8px; }
.record-meta { margin-top: 22px; font-size: 11px; color: #647d90; }
.record-meta svg { width: 14px; height: 14px; }
.editor-footer { padding: 13px 20px; gap: 12px; background: #fcfdff; box-shadow: 0 -4px 12px #143d5604; flex-wrap: wrap; }
.save-state { font-size: 11px; color: #497466; gap: 6px; }
.save-state svg { width: 15px; height: 15px; }
.save-state.dirty { color: #936615; }
.editor-actions { margin-left: auto; gap: 8px; }
.editor-actions .btn { height: 39px; font-size: 12px; padding-inline: 13px; }
.form-error { font-size: 13px; }
.prototype-note { padding-top: 10px; font-size: 10px; color: #5c768a; }
.developer-credit { text-align: center; font-size: 10px; color: #657f93; margin-top: 3px; }
.developer-credit strong { font-weight: 600; }
.table-mode .panel-divider, .table-mode #collapseList { display: none; }
.table-mode .records-panel { display: flex; }
.table-mode .panel-heading { min-height: 72px; }
.table-mode .search-box { width: min(460px,calc(100% - 32px)); max-width: none; }
.data-table { font-size: 13px; }
.data-table th { font-size: 11px; padding: 14px 16px; color: #5a7589; background: #f3f7fa; }
.data-table td { padding: 16px; color: #496b82; }
.data-table .table-person { color: #244a65; }
.table-open { font-size: 12px; }
.work-area.editor-focus { grid-template-columns: minmax(0,1fr); }
.editor-focus .records-panel, .editor-focus .panel-divider { display: none; }
.editor-focus .editor-panel { display: flex; }
.editor-focus .form-scroll { padding-inline: max(28px,calc((100% - 1040px)/2)); }
.editor-focus .form-grid { grid-template-columns: 1.5fr 1fr 1fr; }
.editor-focus .form-grid label:first-child { grid-column: 1; }
.editor-focus .form-grid label:last-child { grid-column: 1/-1; }
.editor-focus .editor-heading { padding-inline: 28px; }
.trash-row strong { font-size: 13px; }
.trash-row small { font-size: 11px; }
.restore-btn { height: 34px; font-size: 12px; }
.toast { background: #0b3a58; border-color: #1f5575; font-size: 13px; }
.toast>svg { color: #a3dceb; }
.toast button:not(.icon-btn) { color: #bce9ff; }
.text-modal { width: min(1120px,calc(100vw - 48px)); max-width: none; padding: 24px 30px; }
.text-modal .modal-description { font-size: 13px; color: #5d768a; }
#largeText { height: 60dvh; font-size: 16px; line-height: 1.9; padding: 22px 26px; }
.text-modal .modal-head h2 { color: #153e5b; }
@media (min-width: 1600px) {
  main { padding-inline: 32px; }
  .editor-heading { padding-block: 20px; }
  .form-scroll { padding: 24px 30px; }
}
@media (max-width: 1200px) {
  :root { --nav-width: 180px; }
  main { padding: 18px 18px 9px; }
  .topbar { padding-inline: 20px; }
  .sidebar { padding-inline: 12px; }
  .cco-brand { padding-inline: 10px; }
  .cco-wordmark { font-size: 31px; }
  .layout-reset span { display: none; }
  .layout-reset { padding-inline: 8px; }
  .workspace-toolbar { gap: 8px; }
  .file-actions { gap: 0; }
  .form-scroll { padding: 18px 20px; }
  .editor-heading { padding-inline: 20px; }
  .result-option { padding-inline: 9px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  :root { --nav-width: 72px; }
  .sidebar { padding-inline: 10px; }
  .cco-brand { padding: 0; text-align: center; }
  .cco-wordmark { font-size: 24px; letter-spacing: 0; }
  .cco-brand-sub, .workspace-label, .sidebar-toggle, .nav-item span, .campaign, .sidebar-return span { display: none; }
  .sidebar nav { margin-top: 36px; }
  .nav-item, .sidebar-return { justify-content: center; padding-inline: 0; }
}
@media (max-width: 900px) {
  :root, body.nav-collapsed { --nav-width: 60px; }
  .sidebar, .nav-collapsed .sidebar { width: 60px; padding: 21px 7px 15px; }
  .cco-brand, .nav-collapsed .cco-brand { padding: 0; text-align: center; }
  .cco-wordmark, .nav-collapsed .cco-wordmark { font-size: 22px; letter-spacing: 0; }
  .cco-brand-sub, .workspace-label, .sidebar-toggle, .nav-item span, .campaign, .sidebar-return span { display: none; }
  .sidebar nav, .nav-collapsed .sidebar nav { margin-top: 32px; }
  .nav-item, .sidebar-return { justify-content: center; padding-inline: 0; }
  .app { margin-left: 60px; }
  .topbar { padding-inline: 18px; }
  main { min-height: 540px; padding: 18px 16px 10px; }
  .page-heading h1 { font-size: 24px; }
  .workspace-toolbar { flex-wrap: wrap; gap: 8px; }
  .view-switch { display: flex; }
  .file-actions { margin-left: auto; }
  .view-switch button { padding: 6px 9px; }
  .view-switch svg { display: none; }
  .work-area, .work-area.editor-focus { display: block; }
  .panel-divider { display: none; }
  .records-panel { height: 100%; display: flex; }
  .editor-panel { display: none; height: 100%; }
  .work-area.show-editor .records-panel { display: none; }
  .work-area.show-editor .editor-panel { display: flex; }
  .work-area.table-mode .records-panel { display: flex; }
  .work-area.table-mode .editor-panel { display: none; }
  .mobile-back { display: inline-flex; }
  .editor-panel-bar { padding-inline: 14px; }
  #editorFocus, #collapseEditor { display: none; }
  .editor-panel-bar>span { font-size: 12px; }
  .editor-heading, .editor-focus .editor-heading { padding: 16px; gap: 12px; }
  .form-scroll, .editor-focus .form-scroll { padding: 18px 22px; }
  .editor-focus .form-grid { grid-template-columns: 1fr 1fr; }
  .editor-focus .form-grid label:first-child { grid-column: 1/-1; }
  .record-row { padding: 18px; }
  .row-person strong { font-size: 14px; }
  .row-bottom { font-size: 12px; }
  .status { font-size: 11px; }
  .editor-footer { padding: 12px 16px; }
  .prototype-note { font-size: 10px; }
}
@media (max-width: 600px) {
  :root, body.nav-collapsed { --nav-width: 0px; }
  .sidebar, .nav-collapsed .sidebar { position: static; width: 100%; height: 53px; padding: 0 12px; flex-direction: row; align-items: center; gap: 20px; }
  .cco-wordmark, .nav-collapsed .cco-wordmark { font-size: 22px; }
  .sidebar nav, .nav-collapsed .sidebar nav { display: flex; gap: 4px; margin: 0; }
  .nav-item { width: 37px; min-height: 37px; height: 37px; margin: 0; padding: 0; }
  .sidebar-bottom { margin: 0 0 0 auto; display: flex; align-items: center; gap: 4px; }
  .sidebar-return, .nav-collapsed .sidebar-return { border: 0; margin: 0; padding: 8px; }
  .app { margin-left: 0; }
  .topbar { height: 43px; padding-inline: 14px; }
  .breadcrumbs { display: none; }
  .topbar-right { width: 100%; justify-content: space-between; gap: 10px; }
  .demo-pill { font-size: 10px; }
  .profile-avatar { width: 27px; height: 27px; }
  .profile { font-size: 11px; }
  .profile small { display: none; }
  main { height: calc(100dvh - 96px); min-height: 510px; padding: 15px 10px 8px; }
  .page-heading { align-items: center; gap: 8px; margin-bottom: 13px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.1px; }
  .page-heading h1 { font-size: 20px; margin: 4px 0 0; }
  .page-heading p { display: none; }
  .new-btn { height: 37px; padding: 0 10px; font-size: 11px; gap: 4px; }
  .new-btn svg { width: 14px; }
  .workspace-toolbar { gap: 5px; margin-bottom: 10px; }
  .view-switch { width: 100%; }
  .view-switch button { flex: 1; justify-content: center; font-size: 11px; padding-inline: 5px; }
  .file-actions { width: 100%; justify-content: flex-end; }
  .file-actions .subtle { height: 31px; font-size: 11px; padding: 0 8px; }
  .layout-reset { margin-right: auto; }
  .layout-reset span { display: inline; }
  .editor-panel-bar { padding: 8px 12px; min-height: 33px; }
  .editor-heading, .editor-focus .editor-heading { padding: 13px 10px; gap: 9px; min-height: 84px; }
  .record-photo { width: 36px; height: 42px; font-size: 14px; }
  .editor-heading h2 { font-size: 16px; }
  .record-overline { font-size: 9px; }
  .photo-link { font-size: 10px; }
  .mobile-back { width: 27px; }
  .form-scroll, .editor-focus .form-scroll { padding: 16px 14px; }
  .form-grid, .editor-focus .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-grid input, textarea { font-size: 16px; }
  .section-heading h3 { font-size: 12px; }
  .required-note { font-size: 9px; }
  .step-number { width: 22px; height: 22px; }
  .result-options { grid-template-columns: 1fr; gap: 7px; }
  .result-option { font-size: 14px; min-height: 42px; }
  .editor-footer { padding: 10px 12px; gap: 8px; }
  .save-state { width: 100%; font-size: 10px; }
  .editor-actions { width: 100%; }
  .editor-actions .btn { font-size: 12px; height: 38px; }
  .editor-actions .primary { flex: 1; }
  .text-footer { font-size: 10px; flex-wrap: wrap; }
  .prototype-note { font-size: 9px; padding-top: 7px; line-height: 1.4; }
  .developer-credit { font-size: 9px; }
  .text-modal { width: calc(100vw - 20px); padding: 18px; }
  #largeText { height: 53dvh; padding: 14px; font-size: 16px; }
  .text-modal .modal-footer { gap: 10px; flex-wrap: wrap; }
}
@media (max-height: 740px) and (min-width: 901px) {
  main { padding-top: 15px; }
  .page-heading { margin-bottom: 13px; }
  .page-heading p { display: none; }
  .editor-heading { min-height: 83px; padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Application status is available on demand, separate from the form. */
.session-info{display:inline-flex;align-items:center;gap:7px;border:1px solid #dce8ef;background:#f0f6fa;color:#4c6b82;border-radius:20px;padding:6px 11px;font-size:11px;cursor:pointer}
.session-info svg{width:14px;height:14px}.session-info:hover{background:#e5f0f7;color:#195777}
.developer-credit{padding-top:9px}
