/* แถบสถานะบรรทัดเดียวแบบหน้าเว็บเดิม ป้ายเตือนสีเหลือง แผงจัดการคอลัมน์ด้านขวา และแถวรายละเอียดระบบ */
.statusbar {
  display: flex; flex: none; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 12px;
  padding: 6px 16px; background: rgba(17, 19, 24, .5); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.status { display: flex; flex: 1 1 520px; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; font-size: 11px; color: var(--text-2); }
.status .code { font-weight: 700; }
.status .dim { color: var(--text-3); }
.status-word { font-weight: 600; }
.status-counts { font-weight: 600; color: var(--text); }
.status .clock time { color: var(--text); font-weight: 600; }
/* ป้ายเตือนและเหตุสีเหลืองอยู่แถวเดียวกับแถบสถานะ บรรทัดเดียว ข้อความยาวตัดด้วย … ชี้เมาส์อ่านเต็ม
 * จองที่ไว้เสมอ ตารางจึงไม่กระโดดขึ้นลงตอนเปลี่ยนกรอบหรือตอนป้ายข้อมูลเก่าขึ้นและหาย (เจ้าของสั่ง 10 พ.ย. D-074) */
.status-alerts {
  flex: 1 1 200px; min-width: 0; min-height: 16px; overflow: hidden; font-size: 12px; line-height: 16px;
  white-space: nowrap; text-overflow: ellipsis;
}
/* ไม่มีข้อความก็มีเส้นฐานตัวอักษรเหมือนตอนมีข้อความ แถบสถานะจึงสูงเท่าเดิมทั้งสองแบบ */
.status-alerts::before { content: "\200b"; }
.status-reasons { color: #fbbf24; }
.banner {
  margin-right: 6px; padding: 0 6px; border: 1px solid rgba(245, 158, 11, .3); border-radius: 4px;
  background: rgba(245, 158, 11, .1); color: var(--amber); font-weight: 600;
}
.banner[hidden] { display: none; }
.status[data-state="live"] .code, .status[data-state="live"] .status-word { color: #34d399; }
.status[data-state="partial"] .code, .status[data-state="partial"] .status-word { color: #fb923c; }
.status[data-state="starting"] .code, .status[data-state="starting"] .status-word { color: #38bdf8; }
.status[data-state="stale"] .code, .status[data-state="stale"] .status-word { color: #fb923c; }
.status[data-state="fault"] .code, .status[data-state="fault"] .status-word { color: #f87171; }

.status-actions { display: flex; flex: none; align-items: center; gap: 6px; }
.small-button, .columns-menu summary {
  padding: 3px 8px; border: 1px solid var(--gs-action-border); border-radius: var(--gs-radius); background: var(--gs-action-bg);
  font-size: 10px; color: var(--text-2); cursor: pointer; list-style: none; white-space: nowrap;
}
.small-button:hover, .columns-menu summary:hover { color: var(--text); border-color: var(--accent); }
.columns-menu summary::-webkit-details-marker { display: none; }
.columns-menu[open] summary { color: var(--accent); border-color: var(--accent); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .4); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 31; display: flex; flex-direction: column; gap: 12px;
  width: min(860px, 60vw); min-width: min(400px, 100vw); padding: 16px; overflow: auto;
  background: var(--bg-base); border-left: 1px solid var(--border-hover); box-shadow: -12px 0 32px rgba(0, 0, 0, .4);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.drawer .search {
  flex: none; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-raised);
}
.columns-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.columns-list label:not(.studio-name) {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-raised); font-size: 13px; cursor: pointer;
}
.columns-list label.locked { color: var(--text-3); cursor: default; }
.columns-list input { accent-color: var(--accent); }
.system-row {
  margin: 0; padding: 6px 16px; font-size: 11px; color: var(--text-2);
  background: rgba(17, 19, 24, .5); border-bottom: 1px solid var(--border);
}
