:root {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #16191f;
  background: #eef1f5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.topbar {
  height: 54px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; background: #fff; border-bottom: 1px solid #d8dde5;
  position: sticky; top: 0; z-index: 10;
}
.brand { font-size: 18px; font-weight: 650; }
.toolbar { display: flex; gap: 8px; }
.shell {
  width: min(1500px, calc(100% - 24px)); margin: 12px auto 24px;
  background: #fff; border: 1px solid #d9dee6; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(20, 30, 50, .05);
}
.statusline, .pagerbar {
  min-height: 42px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; background: #f7f8fa; color: #606875; font-size: 13px;
}
.statusline { border-bottom: 1px solid #e3e7ed; }
.pagerbar { border-top: 1px solid #e3e7ed; }
#collectorText { text-align: right; }
.tablewrap { overflow-x: auto; min-height: 560px; background: #aaa; }
table { width: 100%; border-collapse: collapse; background: #fff; table-layout: fixed; }
th, td { padding: 8px 10px; border-bottom: 1px solid #e1e5eb; text-align: left; vertical-align: middle; }
th { background: #f4f6f8; font-size: 13px; font-weight: 650; position: sticky; top: 0; z-index: 2; }
td { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 34px; }
tbody tr:nth-child(even) { background: #fafbfc; }
tbody tr:hover { background: #eef5ff; }
.timecol { width: 145px; }
.channelcol { width: 190px; }
.linkcol { width: 44px; text-align: center; }
.titlelink { color: #171a20; text-decoration: none; }
.titlelink:hover { text-decoration: underline; }
.openlink { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; color: #1683ff; text-decoration: none; font-size: 17px; }
.btn {
  border: 1px solid #cfd5dd; background: #fff; color: #252a31; border-radius: 6px;
  padding: 7px 12px; font: inherit; cursor: pointer;
}
.btn:hover:not(:disabled) { background: #f3f6fa; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: #1677e8; border-color: #1677e8; color: #fff; }
.pager { display: flex; gap: 10px; align-items: center; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.34); display: grid; place-items: center; z-index: 30; }
.modal.hidden { display: none; }
.modal-card { width: min(460px, calc(100% - 24px)); background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.22); padding: 20px; display: grid; gap: 14px; }
.modal-title { font-size: 19px; font-weight: 650; margin-bottom: 2px; }
.modal-card label { display: flex; align-items: center; gap: 9px; }
.modal-card .field { justify-content: space-between; }
.modal-card input[type="number"] { width: 130px; padding: 6px 8px; border: 1px solid #cfd5dd; border-radius: 5px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
@media (max-width: 720px) {
  .shell { width: 100%; margin: 0; border-left: 0; border-right: 0; border-radius: 0; }
  .channelcol { width: 145px; }
  .timecol { width: 130px; }
  .statusline { align-items: flex-start; flex-direction: column; }
  #collectorText { text-align: left; }
}
