.tab-number {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tab-number[data-number="2"] { background: #0f766e; }
.tab-number[data-number="3"] { background: #b45309; }
.tab-number[data-number="4"] { background: #7c3aed; }
.tab-number[data-number="5"] { background: #be185d; }
.tab-number[data-number="6"] { background: #0369a1; }
.page-tabs .tab-button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 6px 9px;
  padding: 11px 8px;
  text-align: left;
}
.tab-label { min-width: 0; line-height: 1.5; }
.tab-status-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid #f4cc84;
  border-radius: 4px;
  background: #fff3d6;
  color: #854a0e;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.tab-status-badge[hidden] { display: none; }
.page-tabs .tab-status-badge { grid-column: 2; }
.tab-status-badge[data-status="development"] { background: #e8efff; border-color: #bbd0ff; color: #224eaa; }
.tab-status-badge[data-status="testing"] { background: #f1eaff; border-color: #d7c4fc; color: #6b36ad; }
.tab-status-badge[data-status="maintenance"] { background: #fce9ed; border-color: #f6c5d0; color: #a42b4c; }
.page-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.page-title-row .tab-status-badge { font-size: 12px; }
.tab-status-notice { margin: 8px 0 0; color: #854a0e; font-size: 12px; }
.tab-status-notice button { padding: 2px 6px; margin-left: 6px; color: #854a0e; background: #fff3d6; border: 1px solid #f4cc84; border-radius: 4px; }
.tab-status-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 80px #14243b33;
}
.tab-status-dialog::backdrop { background: #14243b80; }
.tab-status-dialog h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.tab-status-dialog p { margin: 16px 0 24px; line-height: 1.8; }
.tab-status-dialog form { display: flex; justify-content: flex-end; }
.tab-status-dialog button:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.tab-status-panel { margin-bottom: 22px; padding: 18px 22px; }
.tab-status-panel h2 { margin: 0; font-size: 18px; }
.tab-status-panel p { margin: 6px 0 16px; color: #667085; line-height: 1.7; }
.tab-status-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; margin: 0; padding: 0; border: 0; min-width: 0; }
.tab-status-setting { display: grid; gap: 8px; min-width: 0; }
.tab-status-setting-title { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.tab-status-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tab-status-panel .cr-notice { margin: 14px 0 0; }
@media (max-width: 980px) {
  .page-tabs { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .tab-status-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tab-status-fields { grid-template-columns: minmax(0, 1fr); }
  .tab-status-panel { padding: 16px; }
}
