/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f9;
  color: #171b21;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #eff2f6;
  --border: #e2e7ee;
  --text: #171b21;
  --text-2: #586272;
  --text-3: #929cab;
  --accent: #1d4ed8;
  --accent-2: #2563eb;
  --accent-soft: #e9f0ff;
  --green: #0f9d58;
  --green-bg: #e6f4ec;
  --red: #d93b3b;
  --red-bg: #fbe9e9;
  --amber: #cf8400;
  --amber-bg: #fbf1de;
  --shadow: 0 1px 2px rgba(23, 40, 77, 0.06), 0 4px 12px rgba(23, 40, 77, 0.05);
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.app-shell[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1e2530;
  --border: #2a323d;
  --text: #e6edf3;
  --text-2: #9aa6b2;
  --text-3: #69737f;
  --accent: #5b91ff;
  --accent-2: #6f9eff;
  --accent-soft: #172741;
  --green: #3fb950;
  --green-bg: #10271a;
  --red: #f06a6a;
  --red-bg: #2c1616;
  --amber: #d9a441;
  --amber-bg: #2a2110;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.topbar {
  height: 62px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 16px;
}

.brand-text span {
  font-size: 10.5px;
  letter-spacing: 0.3px;
  color: var(--text-3);
  font-weight: 700;
}

.segmented {
  display: flex;
  gap: 5px;
  padding: 4px;
  border-radius: 11px;
  background: var(--surface-2);
}

.icon-button,
.hamburger {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
}

.danger-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--red);
}

.danger-icon:hover {
  background: var(--red-bg);
}

.hamburger {
  display: none;
  border: none;
  background: transparent;
  color: var(--text);
}

.layout {
  display: flex;
  min-height: calc(100vh - 62px);
}

.sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 62px;
  width: 250px;
  height: calc(100vh - 62px);
  flex: 0 0 250px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 14px;
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.main {
  flex: 1 1;
  min-width: 0;
  padding: 30px 36px;
  overflow-x: hidden;
}

.content-width {
  max-width: 1080px;
  margin: 0 auto;
}

.channel-page {
  height: calc(100vh - 122px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.channel-page-header,
.channel-source-cards,
.channel-sector-filter,
.channel-pagination {
  flex: 0 0 auto;
}

.channel-sector-filter {
  margin-bottom: 8px;
}

.channel-source-card {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  text-align: left;
}

.channel-source-card strong {
  flex: 0 0 auto;
  font-size: 16px;
}

.channel-sector-toggle-row {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 2px;
  margin-bottom: 8px;
}

.channel-sector-toggle-row .tab {
  min-height: 34px;
}

.channel-table-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.channel-table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.button-reset {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
}

.nav-button[data-active="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.segmented button,
.chip,
.tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
}

.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.segmented button[data-active="true"] {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
}

.tab[data-active="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.tab:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.tab-count {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}

.tab[data-active="true"] .tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: white;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 14px;
  gap: 14px;
  margin: 0 0 26px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.report-card {
  width: 100%;
  padding: 21px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.report-card:hover,
.summary-row:hover {
  border-color: var(--accent);
}

.progress-bars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-row {
  width: 100%;
  display: grid;
  grid-template-columns: 72px 1px minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 15px;
  gap: 15px;
  padding: 15px 17px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.summary-text {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.compact-field {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 12.5px;
}

.sector-picker {
  position: relative;
  min-width: 0;
}

.sector-picker-trigger {
  min-height: 34px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  text-align: left;
  font-size: 12.5px;
}

.sector-picker-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 25;
  width: min(240px, 72vw);
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sector-picker[data-placement="up"] .sector-menu {
  top: auto;
  bottom: calc(100% + 6px);
}

.sector-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  grid-gap: 4px;
  gap: 4px;
}

.sector-option,
.sector-icon-button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}

.sector-option {
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px 9px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
}

.sector-icon-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.sector-option:hover,
.sector-icon-button:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.sector-add {
  margin-top: 4px;
  color: var(--accent);
}

.table {
  overflow: hidden;
}

.table-row,
.table-head {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
}

.table-head {
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 800;
}

.table-row {
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.slide-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.55);
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.25);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-box {
  position: relative;
  width: min(440px, 100%);
  padding: 26px;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.field {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
}

.primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}

.primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.muted {
  color: var(--text-2);
}

.tiny {
  color: var(--text-3);
  font-size: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  font-weight: 700;
}

.quick-login-floating {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 95;
  width: min(240px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid #d1bfff;
  border-radius: 6px;
  background: linear-gradient(135deg, #f3f0ff 0%, #e6deff 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.quick-login-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-login-toggle {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #9b7aff;
  border-radius: 4px;
  background: #fff;
  color: #7c3aed;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.quick-login-title {
  color: #555;
  font-size: 14px;
  font-weight: 900;
}

.quick-login-body {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  margin-top: 8px;
}

.quick-login-info {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  padding: 7px;
  border: 1px solid #4caf50;
  border-radius: 4px;
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
  color: #333;
}

.quick-login-info strong,
.quick-login-info span,
.quick-login-info em {
  font-size: 12px;
  line-height: 1.35;
}

.quick-login-info span {
  padding: 3px 5px;
  border: 1px solid #4caf50;
  border-radius: 3px;
  background: #fff;
  color: #2e7d32;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  word-break: break-all;
}

.quick-login-info em {
  color: #4caf50;
  font-style: normal;
  font-weight: 900;
}

.quick-login-button {
  width: 100%;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  padding: 6px 7px;
  border: 1px solid #1c31cd;
  border-radius: 4px;
  background: #399cff31;
  color: #333;
  text-align: left;
  cursor: pointer;
}

.quick-login-button strong {
  font-size: 13px;
}

.quick-login-button span {
  font-size: 11px;
  color: #555;
}

.quick-login-button:hover:not(:disabled) {
  background: #e9ecef;
}

.quick-login-button:disabled {
  color: #999;
  cursor: not-allowed;
}

@media (max-width: 880px) {
  .hamburger {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  }

  .sidebar[data-open="true"] {
    transform: translateX(0);
  }

  .main {
    padding: 18px;
  }

  .channel-page {
    height: calc(100vh - 98px);
  }

  .stat-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .summary-row {
    grid-template-columns: 1fr;
  }

  .summary-row .divider {
    display: none;
  }
}

