.dcats-nine-tabs { position: sticky; top: 0; z-index: 150; width: 100%; box-sizing: border-box; flex-shrink: 0; padding: 3px 12px 0; background: #dfe7f2; border-bottom: 1px solid #a9b9d0; color: #23334d; }
.dcats-nine-tabs[hidden], .dcats-nine-tabs-hint[hidden] { display: none; }
.dcats-nine-tabs-strip { display: flex; align-items: end; gap: 4px; min-width: 0; }
.dcats-nine-tabs-list { display: flex; align-items: end; gap: 4px; flex: 1; min-width: 0; padding: 0 6px; }
.dcats-nine-tab { position: relative; display: flex; flex: 0 0 auto; align-items: center; max-width: min(270px, 100%); border: 1px solid #becbdd; border-bottom: 0; border-radius: 9px 9px 0 0; background: #eaf0f8; color: #41516b; margin-top: 2px; }
.dcats-nine-tab::before, .dcats-nine-tab::after { content: ""; position: absolute; bottom: 0; width: 6px; height: 6px; pointer-events: none; }
.dcats-nine-tab::before { left: -6px; border-radius: 0 0 6px 0; box-shadow: 3px 0 0 0 #eaf0f8; }
.dcats-nine-tab::after { right: -6px; border-radius: 0 0 0 6px; box-shadow: -3px 0 0 0 #eaf0f8; }
.dcats-nine-tab.is-active { z-index: 1; margin-top: 0; padding-top: 2px; background: #fff; color: #123e77; border-color: #a9b9d0; box-shadow: 0 1px 0 #fff; }
.dcats-nine-tab.is-active::before { box-shadow: 3px 0 0 0 #fff; }
.dcats-nine-tab.is-active::after { box-shadow: -3px 0 0 0 #fff; }
.dcats-nine-tab button { min-height: 28px; border: 0; padding: 4px 10px; background: transparent; color: inherit; font: inherit; font-size: 13px; line-height: 20px; cursor: pointer; }
.dcats-nine-tab [role="tab"] { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1 1 auto; max-width: 224px; white-space: nowrap; text-align: left; cursor: grab; touch-action: none; user-select: none; }
.dcats-nine-tab.is-tab-dragging { opacity: .55; }
.dcats-nine-tab.is-drop-before { box-shadow: inset 3px 0 #176bc0; }
.dcats-nine-tab.is-drop-after { box-shadow: inset -3px 0 #176bc0; }
.dcats-nine-tab-icon { flex: 0 0 16px; width: 16px; font-size: 14px; line-height: 20px; text-align: center; }
.dcats-nine-tab-icon .icon-image { width: 14px; height: 14px; }
.dcats-nine-tab-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcats-nine-tab [aria-selected="true"] { font-weight: 700; }
.dcats-nine-tab .dcats-nine-tab-close { display: flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; padding: 0; border-radius: 50%; font-size: 18px; line-height: 1; }
.dcats-nine-tab-close:hover { background: #d2ddec; }
.dcats-nine-tab button:focus-visible { outline: 3px solid #e58b16; outline-offset: -3px; }
.dcats-nine-tabs-hint, .dcats-nine-tabs-notice { margin: 0; padding: 5px 2px 9px; font-size: 13px; overflow-wrap: anywhere; }
.dcats-nine-tabs-notice:empty { display: none; }
.dcats-nine-tabs-notice:not(:empty) { color: #a32222; }
.dcats-nine-tabs-visible .screen.active .page-header { position: relative; }
.dcats-nine-tabs-visible .screen.active .page-header-left { min-width: 0; max-width: 100%; flex-wrap: wrap; }
body.dcats-nine-tabs-visible { height: auto; min-height: 100%; overflow: visible; }
.dcats-nine-tabs-visible .screen.active .page-header-right { min-width: 0; max-width: 100%; flex-shrink: 1; }
.dcats-nine-tabs-visible .screen.active .page-header-right [id$="-username"] { min-width: 0; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
@media (max-width: 600px) { .dcats-nine-tabs { padding: 3px 6px 0; } .dcats-nine-tabs-strip { gap: 4px; } .dcats-nine-tab { max-width: min(220px, 100%); } .dcats-nine-tab [role="tab"] { max-width: 180px; } }
@media print { .dcats-nine-tabs { display: none !important; } }
.dcats-nine-tab[hidden], .dcats-tab-page-button[hidden], .dcats-tab-page-count[hidden] { display: none; }
.dcats-tab-page-button { flex: 0 0 28px; width: 28px; height: 31px; padding: 0; border: 1px solid #a9b9d0; border-radius: 5px; background: #f6f8fc; color: #23334d; font-size: 20px; cursor: pointer; }
.dcats-tab-page-button:disabled { opacity: .45; cursor: default; }
.dcats-tab-page-count { flex: 0 0 auto; min-width: 30px; text-align: center; font-size: 11px; line-height: 31px; }
#screen-screen-tab-properties { height: 100dvh; min-height: 0; background: #f0f2f5; position: relative; z-index: 500; }
.dcats-tab-properties-title { font-size: 16px; line-height: 1.4; }
.dcats-tab-properties-body { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; gap: 8px; width: min(100%, 620px); margin: 0 auto; padding: 12px 16px; }
.dcats-tab-properties-option { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-weight: 700; font-size: 14px; }
.dcats-tab-properties-option input { width: 20px; height: 20px; flex-shrink: 0; }
.dcats-tab-properties-definitions { margin: 0; border: 1px solid #cbd5df; border-radius: 8px; padding: 4px 10px; background: #fff; }
.dcats-tab-properties-definitions > div { display: grid; grid-template-columns: minmax(76px,.7fr) minmax(0,1.3fr); gap: 10px; padding: 6px 0; font-size: 13px; line-height: 1.5; }
.dcats-tab-properties-definitions dt { font-weight: 700; }
.dcats-tab-properties-definitions dd { margin: 0; overflow-wrap: anywhere; }
.dcats-tab-properties-note, .dcats-tab-properties-status { margin: 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.dcats-tab-properties-status { color: #a32222; }
.dcats-tab-properties-status:empty { display: none; }
.dcats-tab-properties-footer { flex-shrink: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%,620px); margin: 0 auto; padding: 8px 16px 12px; }
.dcats-tab-properties-footer button { min-height: 40px; padding: 6px 10px; font-size: 13px; }
