.cr-body { background: #f3f5f9; color: #18202f; font-size: 14px; }
.cr-body button, .cr-body input, .cr-body select, .cr-body textarea { font: inherit; }
.cr-body button:disabled { cursor: not-allowed; opacity: .5; }
.cr-body :focus-visible { outline: 3px solid #97baff; outline-offset: 3px; }
.cr-shell { max-width: 1500px; margin: 0 auto; padding: 0 40px 32px; }
.cr-header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #dee4ee; }
.cr-brand, .cr-header-actions, .cr-title-row, .cr-dialog-head, .cr-section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cr-brand { justify-content: flex-start; gap: 12px; }
.cr-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #1463ff; color: #fff; font-size: 15px; font-weight: 800; }
.cr-brand strong { display: block; font-size: 16px; letter-spacing: -.2px; }
.cr-brand div > span { display: block; color: #667085; font-size: 12px; margin-top: 3px; }
.cr-back { color: #475467; text-decoration: none; white-space: nowrap; }
.cr-back:hover { color: #1463ff; }
.cr-identity { border-left: 1px solid #d6dce8; padding-left: 16px; color: #475467; overflow-wrap: anywhere; }
.cr-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 15px; border: 1px solid #d6dce8; border-radius: 6px; background: #fff; color: #344054; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.cr-button:hover:not(:disabled) { border-color: #9cbcff; background: #f5f8ff; color: #1454cc; }
.cr-button-primary { border-color: #1463ff; background: #1463ff; color: #fff; }
.cr-button-primary:hover:not(:disabled) { border-color: #094de0; background: #094de0; color: #fff; }
.cr-button-danger { border-color: #f0c5c1; background: #fff; color: #b42318; }
.cr-button-danger:hover:not(:disabled) { border-color: #d7665e; background: #fff2f0; color: #b42318; }
.cr-button-quiet { background: transparent; border-color: transparent; padding: 8px 4px; color: #667085; }
.cr-button-small { min-height: 32px; padding: 5px 11px; font-size: 12px; }
.cr-title-row { align-items: flex-start; padding: 30px 0 22px; }
.cr-title-row > .cr-button { margin-top: 20px; }
.cr-title-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-shrink: 0; }
.cr-kicker { color: #667085; font-size: 11px; letter-spacing: 1.2px; font-weight: 700; }
.cr-body h1 { font-size: 28px; line-height: 1.35; margin: 6px 0 9px; letter-spacing: -.6px; }
.cr-subtitle { margin: 0; color: #667085; font-size: 13px; line-height: 1.8; }
.cr-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.cr-stat { padding: 17px 20px; border: 1px solid #e0e5ee; border-radius: 8px; background: #fff; }
.cr-stat-label { color: #667085; font-size: 12px; }
.cr-stat strong { display: block; margin-top: 9px; font-size: 27px; line-height: 1.1; font-variant-numeric: tabular-nums; font-weight: 700; }
.cr-stat[data-tone="blue"] strong { color: #1463ff; }
.cr-stat[data-tone="amber"] strong { color: #a96b0c; }
.cr-panel { overflow: hidden; border: 1px solid #e0e5ee; border-radius: 9px; background: #fff; }
.cr-toolbar { display: flex; align-items: center; gap: 16px; padding: 20px 22px 12px; }
.cr-search { flex: 1; max-width: 530px; }
.cr-body input, .cr-body textarea, .cr-body select { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #d6dce8; border-radius: 6px; color: #18202f; background: #fff; font-weight: 400; }
.cr-body input::placeholder, .cr-body textarea::placeholder { color: #98a2b3; }
.cr-body textarea { resize: vertical; line-height: 1.6; }
.cr-body input:disabled, .cr-body textarea:disabled { background: #f5f6f9; color: #667085; }
.cr-filter { display: flex; align-items: center; gap: 10px; margin-left: auto; color: #667085; font-size: 13px; font-weight: 400; }
.cr-filter select { width: 130px; }
.cr-list-meta { display: flex; justify-content: space-between; gap: 12px; padding: 0 22px 15px; color: #667085; font-size: 12px; }
.cr-table-wrap { overflow-x: auto; }
.cr-table { width: 100%; min-width: 850px; border-collapse: collapse; table-layout: auto; }
.cr-table th { padding: 12px 16px; background: #f8f9fc; color: #667085; text-align: left; font-size: 12px; font-weight: 500; white-space: nowrap; }
.cr-table td { padding: 15px 16px; border-top: 1px solid #eef0f5; border-bottom: 0; font-size: 13px; vertical-align: middle; line-height: 1.55; overflow-wrap: anywhere; max-width: 260px; }
.cr-table th:first-child, .cr-table td:first-child { padding-left: 22px; }
.cr-table th:last-child, .cr-table td:last-child { padding-right: 22px; text-align: right; }
.cr-table tbody tr:hover { background: #fafcff; }
.cr-cell-title { display: block; font-weight: 700; color: #25344c; }
.cr-cell-subtitle { display: block; margin-top: 3px; color: #667085; font-size: 12px; }
.cr-cell-muted { color: #667085; }
.cr-cell-date { white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
.cr-row-open { padding: 6px 0 6px 10px; background: none; border: 0; color: #1463ff; font-size: 13px; white-space: nowrap; }
.cr-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; background: #f0f2f6; color: #667085; font-size: 12px; font-weight: 500; white-space: nowrap; }
.cr-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cr-status[data-status="pending"] { color: #946200; background: #fff6df; }
.cr-status[data-status="approved"], .cr-status[data-status="published"] { color: #16803c; background: #edf8f0; }
.cr-status[data-status="deleted"] { color: #a5443a; background: #fff0ed; }
.cr-effective-hint { display: block; margin-top: 5px; color: #16803c; font-size: 11px; white-space: nowrap; }
.cr-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid #e9edf3; color: #667085; font-size: 12px; }
.cr-pagination > div { display: flex; align-items: center; gap: 14px; }
.cr-list-state { padding: 55px 22px; text-align: center; color: #667085; line-height: 1.9; }
.cr-list-state strong { display: block; color: #344054; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.cr-list-state .cr-button { margin-top: 16px; }
.cr-footnote { color: #7b8496; font-size: 12px; line-height: 1.8; margin: 15px 1px 0; }
.cr-notice { border: 1px solid #bed2fa; border-radius: 6px; background: #eff5ff; color: #27589e; padding: 11px 14px; margin-bottom: 18px; line-height: 1.7; font-size: 13px; }
.cr-notice-error { border-color: #f0c5c1; background: #fff5f3; color: #a53a31; }
.cr-gate { max-width: 450px; margin: 76px auto 30px; background: #fff; border: 1px solid #dfe5ef; border-radius: 12px; padding: 34px; box-shadow: 0 12px 35px #243a5c08; }
.cr-gate-heading p { color: #667085; font-size: 13px; line-height: 1.9; margin: 0 0 22px; }
.cr-gate-status { color: #667085; font-size: 13px; line-height: 1.9; margin: 12px 0 20px; }
.cr-login-form { display: grid; gap: 17px; }
.cr-body label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; }
.cr-body .cr-filter { display: flex; font-weight: 400; }
.cr-helper { font-size: 12px; font-weight: 400; line-height: 1.8; color: #667085; }
.cr-login-form > .cr-helper { margin: 0; text-align: center; }
.cr-error { color: #b42318; font-size: 13px; margin: 0; line-height: 1.7; }
.cr-dialog { width: min(800px, calc(100vw - 32px)); max-height: min(90vh, 960px); padding: 0; border: 1px solid #d6dce8; border-radius: 12px; color: #18202f; background: #fff; box-shadow: 0 25px 100px #17284740; overflow-y: auto; }
.cr-dialog::backdrop { background: #17243880; backdrop-filter: blur(2px); }
.cr-detail-dialog { width: min(1440px, calc(100vw - 32px)); }
.cr-detail-layout { display: grid; grid-template-columns: minmax(400px, .9fr) minmax(0, 1.1fr); align-items: start; }
.cr-detail-layout > .cr-dialog-content { min-width: 0; }
.cr-drawing-panel { min-width: 0; padding: 22px; border-left: 1px solid #e8ecf3; background: #f8faff; position: sticky; top: 0; }
.cr-drawing-panel label { margin-bottom: 12px; }
.cr-drawing-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cr-drawing-tools label { display: flex; align-items: center; gap: 6px; margin: 0 0 0 auto; }
.cr-drawing-tools select { width: auto; margin: 0; padding: 5px 8px; }
.cr-drawing-viewer { height: min(58vh, 630px); min-height: 300px; border: 1px solid #d6dce8; border-radius: 6px; overflow: auto; background: #e6e9ef; }
.cr-drawing-viewer img { display: block; width: 100%; max-width: none; height: auto; }
.cr-drawing-open { display: inline-block; margin-top: 12px; color: #1463ff; font-size: 12px; }
.cr-drawing-help { margin-bottom: 0; }
@media (max-width: 1050px) {
  .cr-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .cr-drawing-panel { position: static; border-left: 0; border-top: 1px solid #e8ecf3; }
}
.cr-dialog-head { padding: 22px 26px 18px; border-bottom: 1px solid #e8ecf3; }
.cr-dialog h2 { font-size: 21px; margin: 4px 0 0; overflow-wrap: anywhere; }
.cr-dialog h3 { font-size: 14px; margin: 0; }
.cr-icon-button { flex: 0 0 32px; height: 32px; border: 0; border-radius: 5px; background: #f3f5f9; color: #667085; font-size: 24px !important; line-height: 1; }
.cr-dialog-content { padding: 22px 26px; }
.cr-detail-identity { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: start; margin-bottom: 20px; }
.cr-version-context { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; margin-bottom: 20px; border: 1px solid #cbdaf2; border-radius: 6px; background: #f3f7ff; color: #475467; font-size: 12px; line-height: 1.8; }
.cr-version-context .cr-button { flex-shrink: 0; }
.cr-detail-field { min-width: 0; overflow-wrap: anywhere; }
.cr-detail-field span { display: block; font-size: 12px; color: #667085; margin-bottom: 7px; }
.cr-detail-field strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.7; }
.cr-detail-meta { display: grid; grid-template-columns: 85px 1fr 85px 1fr; gap: 9px 12px; padding: 15px; margin: 0 0 24px; background: #f7f9fc; border-radius: 6px; font-size: 12px; line-height: 1.7; }
.cr-detail-meta dt { color: #667085; }
.cr-detail-meta dd { margin: 0; overflow-wrap: anywhere; }
.cr-edit-form { display: grid; gap: 15px; }
.cr-edit-grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: 20px; }
.cr-edit-grid label { align-content: start; }
.cr-edit-form > p { margin: 0; }
.cr-label-optional { font-size: 12px; color: #667085; font-weight: 400; }
.cr-edit-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.cr-history-section { margin-top: 26px; border-top: 1px solid #e8ecf3; padding-top: 21px; }
.cr-section-title { margin-bottom: 14px; }
.cr-history-item { border: 1px solid #e1e6ef; border-radius: 6px; margin-top: 10px; }
.cr-history-item summary { display: flex; align-items: center; gap: 10px; padding: 13px; cursor: pointer; font-size: 12px; flex-wrap: wrap; }
.cr-history-item summary::before { content: "▸"; color: #7b8496; }
.cr-history-item[open] summary::before { content: "▾"; }
.cr-history-item summary > .cr-helper { margin-left: auto; }
.cr-history-content { padding: 0 15px 15px; font-size: 12px; line-height: 1.85; color: #667085; overflow-wrap: anywhere; }
.cr-history-content p { margin: 6px 0; }
.cr-history-content ol { margin: 10px 0 0; padding-left: 19px; }
.cr-history-content li { margin-top: 10px; }
.cr-history-content li strong { color: #344054; font-weight: 600; }
.cr-audit-detail { display: block; font-size: 12px; }
.cr-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 26px; border-top: 1px solid #e8ecf3; background: #fbfcfe; border-radius: 0 0 12px 12px; }
.cr-action-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.cr-confirm-dialog { width: min(470px, calc(100vw - 32px)); }
.cr-confirm-dialog h2 { font-size: 18px; margin: 0; }
.cr-confirm-dialog .cr-dialog-footer { justify-content: flex-end; }
.cr-confirm-text { margin: 0; line-height: 1.9; color: #475467; font-size: 14px; }
.cr-confirm-rule { padding: 12px; background: #f3f6fb; border-radius: 6px; line-height: 1.8; overflow-wrap: anywhere; font-size: 13px; margin: 15px 0 0; }
.cr-import-dialog { width: min(940px, calc(100vw - 32px)); }
.cr-import-file-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cr-import-file-row > div { min-width: 0; } .cr-import-file-row strong { overflow-wrap: anywhere; font-size: 14px; } .cr-import-file-row p { margin: 5px 0 0; }
.cr-import-file-row > .cr-button { flex-shrink: 0; }
.cr-import-loading { padding: 22px 14px; margin: 0 0 18px; border: 1px solid #dbe5f6; border-radius: 6px; background: #f5f8ff; color: #475467; font-size: 13px; text-align: center; line-height: 1.8; }
.cr-import-summary { margin: 0 0 14px; color: #475467; line-height: 1.85; font-size: 13px; }
.cr-import-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.cr-import-stats .cr-stat { padding: 13px 16px; background: #fbfcfe; } .cr-import-stats .cr-stat strong { font-size: 23px; }
.cr-import-table-wrap { max-height: 320px; overflow: auto; border: 1px solid #e1e6ef; border-radius: 6px; }
.cr-import-table { min-width: 700px; } .cr-import-table th { position: sticky; top: 0; z-index: 1; } .cr-import-table td { padding-top: 12px; padding-bottom: 12px; white-space: normal; }
.cr-import-table td:last-child, .cr-import-table th:last-child { text-align: left; max-width: 260px; }
.cr-import-status[data-import-status="new"] { color: #16803c; background: #edf8f0; }
.cr-import-status[data-import-status="conflict"] { color: #946200; background: #fff6df; }
.cr-import-policy { padding: 14px 16px; margin-top: 18px; background: #f6f8fb; border-radius: 6px; color: #667085; line-height: 1.85; font-size: 12px; }
.cr-import-policy strong { color: #344054; font-size: 13px; } .cr-import-policy p { margin: 6px 0 0; }
.cr-import-footer > .cr-helper { max-width: 460px; }
.cr-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) { .cr-shell { padding: 0 22px 24px; } .cr-stats { gap: 9px; } .cr-stat { padding: 15px; } .cr-identity { max-width: 200px; font-size: 12px; } .cr-title-row { flex-wrap: wrap; } .cr-title-actions { margin-top: 0; } }
@media (max-width: 640px) {
  .cr-shell { padding: 0 14px 20px; }
  .cr-header { min-height: 76px; gap: 12px; flex-wrap: wrap; padding: 17px 0; }
  .cr-brand-mark { width: 33px; height: 33px; } .cr-brand { gap: 8px; } .cr-brand strong { font-size: 14px; }
  .cr-header-actions { gap: 10px; flex-wrap: wrap; font-size: 12px; } .cr-identity { border: 0; padding-left: 0; }
  .cr-title-row { padding: 23px 0 18px; gap: 12px; } .cr-title-row > .cr-button { margin-top: 19px; padding: 7px 10px; font-size: 12px; }
  .cr-title-actions { justify-content: flex-start; width: 100%; } .cr-title-actions .cr-button { padding: 7px 11px; font-size: 12px; }
  .cr-body h1 { font-size: 23px; } .cr-subtitle { font-size: 12px; }
  .cr-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 17px; } .cr-stat { padding: 13px; } .cr-stat strong { font-size: 23px; }
  .cr-toolbar { padding: 15px 14px 12px; flex-wrap: wrap; gap: 10px; } .cr-search { flex: 1 1 100%; max-width: none; } .cr-body .cr-filter { margin-left: 0; width: 100%; } .cr-filter select { flex: 1; }
  .cr-list-meta { padding: 0 14px 12px; flex-wrap: wrap; } .cr-pagination { padding: 12px 14px; gap: 8px; flex-wrap: wrap; } .cr-pagination > div { gap: 10px; }
  .cr-gate { margin: 34px auto 20px; padding: 25px; }
  .cr-dialog-head, .cr-dialog-content, .cr-dialog-footer { padding: 18px; } .cr-dialog { width: calc(100vw - 20px); max-height: 92vh; }
  .cr-detail-identity { grid-template-columns: 1fr 1fr; gap: 12px; } .cr-detail-identity > .cr-status { justify-self: start; }
  .cr-version-context { flex-wrap: wrap; }
  .cr-detail-meta { grid-template-columns: 75px 1fr; gap: 8px; padding: 12px; } .cr-edit-grid { grid-template-columns: 1fr; gap: 16px; }
  .cr-dialog-footer { align-items: flex-start; flex-direction: column; gap: 10px; } .cr-action-buttons { justify-content: flex-start; } .cr-confirm-dialog .cr-dialog-footer { flex-direction: row; }
  .cr-edit-actions { align-items: flex-start; } .cr-edit-actions > .cr-button { flex-shrink: 0; } .cr-history-item summary > .cr-helper { margin-left: 0; width: 100%; padding-left: 16px; }
  .cr-import-file-row { flex-wrap: wrap; gap: 10px; } .cr-import-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cr-import-footer .cr-action-buttons { width: 100%; } .cr-import-footer .cr-action-buttons .cr-button { flex: 1; }
}

/* The directory stays available while details are edited in the workbench. */
.cr-shell { max-width: 2000px; padding: 0 28px 28px; }
.cr-header { min-height: 72px; }
.cr-title-row { padding: 22px 0 16px; }
.cr-title-row h1 { font-size: 24px; }
.cr-title-actions { margin-top: 8px; }
.cr-stats { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 18px; }
.cr-stat { display: flex; align-items: baseline; gap: 10px; border: 0; background: transparent; padding: 0; }
.cr-stat strong { margin: 0; font-size: 20px; }
.cr-import-stats .cr-stat { display: block; }
.cr-import-stats .cr-stat strong { margin-top: 9px; }
.cr-management-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 18px; align-items: start; }
.cr-directory { position: sticky; top: 16px; min-width: 0; }
.cr-directory-nav { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid #e8ecf3; background: #fafbfe; }
.cr-directory-nav a, .cr-directory-nav button { flex: 1; padding: 10px 6px; border-radius: 6px; color: #667085; text-align: center; text-decoration: none; font-weight: 600; white-space: nowrap; font-size: 12px; border: 0; background: transparent; cursor: pointer; }
.cr-directory-nav a:hover { background: #edf3fe; color: #1454cc; }
.cr-directory-nav [aria-current="page"] { background: #e8f0ff; color: #1454cc; }
.cr-rules-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cr-rules-nav button:hover { background: #edf3fe; color: #1454cc; }
.cr-activity-dialog { width: min(850px, calc(100vw - 20px)); }
.cr-activity-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.cr-activity-filters input { width: auto; }
.cr-activity-summary { margin: 18px 0 12px; font-size: 13px; font-weight: 600; }
.cr-activity-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr); gap: 20px; padding: 16px 0; border-top: 1px solid #e1e6ef; overflow-wrap: anywhere; }
.cr-activity-account h3 { font-size: 14px; }
.cr-activity-account p { margin: 6px 0 0; font-size: 13px; }
.cr-activity-usage { display: grid; gap: 8px; align-content: start; }
.cr-activity-group { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; font-size: 12px; }
.cr-activity-group strong { color: #475467; white-space: nowrap; }
.cr-activity-group ul { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.cr-activity-group li { padding: 2px 7px; background: #f3f6fb; border-radius: 4px; }
@media (max-width: 540px) {
  .cr-activity-row { grid-template-columns: 1fr; gap: 10px; }
}
.cr-directory-heading { margin: 18px 16px 0; font-size: 15px; }
.cr-directory .cr-toolbar { display: grid; gap: 10px; padding: 13px 14px 10px; }
.cr-directory .cr-search { max-width: none; }
.cr-directory input { font-size: 12px; }
.cr-directory .cr-filter { margin: 0; justify-content: space-between; width: 100%; }
.cr-directory .cr-filter select { flex: 0 1 150px; min-height: 34px; padding: 6px 9px; }
.cr-directory .cr-list-meta { display: grid; gap: 6px; padding: 0 14px 12px; font-size: 11px; }
.cr-directory-scroll { overflow: auto; max-height: max(310px, calc(100dvh - 510px)); overscroll-behavior: contain; scrollbar-gutter: stable; }
.cr-directory-items { display: grid; }
.cr-directory-item { display: block; width: 100%; padding: 14px 15px; border: 0; border-top: 1px solid #edf0f5; border-left: 3px solid transparent; border-radius: 0; background: #fff; text-align: left; color: #344054; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
.cr-directory-item:hover { background: #f7faff; }
.cr-directory-item[aria-pressed="true"] { background: #edf4ff; border-left-color: #1463ff; }
.cr-directory-item-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cr-directory-item-heading strong { font-size: 13px; min-width: 0; }
.cr-directory-item-heading .cr-status { font-size: 10px; flex-shrink: 0; padding: 2px 5px; }
.cr-directory-item-name { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; }
.cr-directory-item-meta { display: block; margin-top: 8px; color: #7b8496; font-size: 11px; }
.cr-directory .cr-pagination { padding: 12px; flex-direction: column; gap: 8px; }
.cr-directory .cr-pagination > div { width: 100%; justify-content: space-between; }
.cr-directory .cr-list-state { padding: 35px 16px; font-size: 12px; }
.cr-workbench { min-width: 0; border: 1px solid #e0e5ee; border-radius: 9px; background: #fff; overflow: clip; }
.cr-workbench .tab-status-panel { border: 0; margin: 0; padding: 24px; min-height: 560px; }
.cr-workbench-detail { min-width: 0; scroll-margin-top: 14px; }
.cr-workbench h2 { font-size: 22px; margin: 4px 0 0; overflow-wrap: anywhere; }
.cr-workbench h3 { margin: 0; font-size: 14px; }
.cr-workbench .cr-dialog-head { padding: 20px 22px 16px; }
.cr-workbench .cr-detail-layout { grid-template-columns: minmax(330px, .85fr) minmax(0, 1.15fr); }
.cr-workbench .cr-dialog-content { padding: 20px 22px; }
.cr-workbench .cr-detail-meta { grid-template-columns: 70px minmax(0, 1fr); padding: 12px; gap: 7px 10px; }
.cr-workbench .cr-edit-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cr-workbench .cr-detail-identity { grid-template-columns: 1fr auto; gap: 12px; }
.cr-workbench .cr-detail-identity > .cr-detail-field:nth-child(2) { grid-column: 1; }
.cr-workbench .cr-detail-identity > .cr-status { grid-column: 2; grid-row: 1; }
.cr-workbench .cr-drawing-panel { position: sticky; top: 16px; padding: 20px; border-top: 0; border-left: 1px solid #e8ecf3; min-height: 640px; }
.cr-workbench .cr-drawing-viewer { height: min(62vh, 780px); }
.cr-workbench .cr-dialog-footer { position: sticky; bottom: 0; padding: 15px 22px; border-radius: 0; flex-wrap: wrap; z-index: 1; }
.cr-workbench-empty { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 560px; padding: 40px; text-align: center; }
.cr-workbench-empty h2 { margin-top: 12px; font-size: 21px; }
.cr-workbench-empty p { max-width: 400px; color: #667085; line-height: 1.9; }
.cr-unsaved { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; background: #fff6df; border-bottom: 1px solid #f0d99c; color: #7a540b; }
.cr-unsaved p { margin: 5px 0 0; font-size: 12px; }
@media (max-width: 1250px) {
  .cr-management-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 14px; }
  .cr-workbench .cr-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .cr-workbench .cr-drawing-panel { position: static; border-left: 0; border-top: 1px solid #e8ecf3; min-height: 0; }
  .cr-workbench .cr-detail-meta { grid-template-columns: 70px minmax(0, 1fr) 70px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cr-shell { padding: 0 14px 20px; }
  .cr-management-layout { grid-template-columns: minmax(0, 1fr); }
  .cr-directory { position: static; }
  .cr-directory-scroll { max-height: 280px; }
  .cr-directory .cr-pagination { flex-direction: row; flex-wrap: wrap; }
  .cr-directory .cr-pagination > div { width: auto; gap: 14px; }
  .cr-stats { gap: 12px 20px; }
  .cr-stat strong { font-size: 18px; }
  .cr-workbench .cr-detail-meta { grid-template-columns: 70px minmax(0, 1fr); }
  .cr-workbench .cr-dialog-head, .cr-workbench .cr-dialog-content, .cr-workbench .cr-drawing-panel, .cr-workbench .cr-dialog-footer { padding: 16px; }
  .cr-workbench-empty { min-height: 280px; padding: 28px; }
  .cr-unsaved { flex-direction: column; align-items: flex-start; padding: 16px; }
  .cr-workbench .cr-edit-actions { flex-wrap: wrap; }
}
