.traffic-main-panel[hidden] { display: none !important; }
.traffic-main-panel { min-width: 0; max-width: 100%; }
.traffic-report-panel,
.traffic-manage-panel { display: grid; gap: clamp(12px, 1.2vw, 18px); }

.traffic-manage-filters {
  display: grid;
  grid-template-columns: 1.15fr 1.05fr auto .9fr minmax(170px, .85fr) auto;
  align-items: end;
  gap: 10px;
  min-width: 0;
}
.traffic-manage-field,
.traffic-manage-search { min-width: 0; }
.traffic-manage-field { display: grid; gap: 5px; }
.traffic-manage-field > span { color: #475467; font-size: 10px; font-weight: 700; }
.traffic-manage-field select,
.traffic-manage-search input,
.traffic-manage-export,
.traffic-manage-add-group,
.traffic-manage-edit-group {
  width: 100%;
  min-width: 0;
  min-height: 35px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  color: #13294b;
  font-size: 11px;
  outline: none;
}
.traffic-manage-field select { padding: 6px 9px; }
.traffic-manage-field select:focus,
.traffic-manage-search input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.traffic-manage-search { position: relative; display: flex; align-items: center; }
.traffic-manage-search svg { position: absolute; left: 10px; width: 14px; height: 14px; fill: none; stroke: #98a2b3; stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.traffic-manage-search input { padding: 7px 9px 7px 31px; }
.traffic-manage-export {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.traffic-manage-export:hover { border-color: #b9c7dc; background: #f8fafc; }
.traffic-manage-export svg { width: 16px; height: 16px; fill: none; stroke: #2563eb; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.traffic-manage-group-actions { display: flex; align-items: stretch; gap: 6px; min-width: 0; }
.traffic-manage-add-group,
.traffic-manage-edit-group {
  display: inline-flex;
  width: auto;
  min-width: 78px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 11px;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.traffic-manage-add-group span { font-size: 17px; font-weight: 500; line-height: .8; }
.traffic-manage-add-group:hover { color: #fff; background: #2563eb; }
.traffic-manage-edit-group { min-width: 84px; gap: 5px; border-color: #d8dee8; color: #475467; }
.traffic-manage-edit-group svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.traffic-manage-edit-group:not(:disabled):hover { border-color: #94a3b8; color: #13294b; background: #f8fafc; }
.traffic-manage-edit-group:disabled { color: #98a2b3; background: #f8fafc; cursor: not-allowed; opacity: .65; }

.traffic-manage-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.traffic-manage-kpi {
  display: flex;
  min-width: 0;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(19, 41, 75, .045);
}
.traffic-manage-kpi > div { min-width: 0; }
.traffic-manage-kpi span { display: block; overflow: hidden; color: #475467; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.traffic-manage-kpi strong { display: inline-block; margin-top: 6px; color: #13294b; font-size: 22px; line-height: 1; letter-spacing: -.03em; }
.traffic-manage-kpi em { margin-left: 7px; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.traffic-manage-kpi em.up { color: #0f9d58; }
.traffic-manage-kpi em.down { color: #dc2626; }
.traffic-manage-kpi em.warning { color: #f97316; }
.traffic-manage-kpi i { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 8px; }
.traffic-manage-kpi i.blue { color: #2563eb; background: #edf3ff; }
.traffic-manage-kpi i.orange { color: #f97316; background: #fff2e8; }
.traffic-manage-kpi i.slate { color: #64748b; background: #f1f5f9; }
.traffic-manage-kpi i svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.traffic-manage-list { min-width: 0; overflow: hidden; border: 1px solid #e6eaf0; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px rgba(19, 41, 75, .035); }
.traffic-manage-list-head { padding: 11px 12px 9px; }
.traffic-manage-list-head h2 { margin: 0; color: #13294b; font-size: 13px; }
.traffic-manage-list-head p { margin: 3px 0 0; color: #64748b; font-size: 10px; }
.traffic-manage-table-wrap { width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; }
.traffic-manage-table { width: 100%; min-width: 1300px; border-collapse: collapse; table-layout: fixed; }
.traffic-manage-table th,
.traffic-manage-table td { padding: 8px 9px; border-top: 1px solid #e8edf3; border-right: 1px solid #edf1f5; color: #344054; font-size: 10px; line-height: 1.3; vertical-align: middle; }
.traffic-manage-table th:last-child,
.traffic-manage-table td:last-child { border-right: 0; }
.traffic-manage-table th { color: #475467; background: #f8fafc; font-size: 9px; font-weight: 800; text-align: left; white-space: nowrap; }
.traffic-manage-table th:has([data-traffic-manage-sort]) { user-select: none; }
.traffic-manage-table th:has([data-traffic-manage-sort]):hover { color: #2563eb; background: #f2f6ff; }
.traffic-manage-month-head { display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.traffic-manage-sort { position: relative; z-index: 1; display: inline-grid; flex: 0 0 auto; width: 22px; height: 24px; place-items: center; padding: 0; border: 0; border-radius: 5px; color: #98a2b3; background: transparent; cursor: pointer; pointer-events: auto; touch-action: manipulation; vertical-align: middle; }
.traffic-manage-sort:hover { color: #2563eb; background: #eaf1ff; }
.traffic-manage-sort:focus-visible { outline: 0; color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, .2); }
.traffic-manage-sort svg { width: 11px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.traffic-manage-sort.is-asc .sort-down,
.traffic-manage-sort.is-desc .sort-up { opacity: .28; }
.traffic-manage-sort.is-asc .sort-up,
.traffic-manage-sort.is-desc .sort-down { stroke: #2563eb; stroke-width: 2.2; }
.traffic-manage-table tbody tr:hover td { background: #fbfdff; }
.traffic-manage-table th:nth-child(1), .traffic-manage-table td:nth-child(1) { width: 36px; text-align: center; }
.traffic-manage-table th:nth-child(2), .traffic-manage-table td:nth-child(2) { width: 40px; text-align: center; }
.traffic-manage-table th:nth-child(3), .traffic-manage-table td:nth-child(3) { width: 170px; }
.traffic-manage-table th:nth-child(4), .traffic-manage-table td:nth-child(4) { width: 220px; }
.traffic-manage-table th:nth-child(5), .traffic-manage-table td:nth-child(5) { width: 180px; }
.traffic-manage-table th:nth-child(6), .traffic-manage-table td:nth-child(6) { width: 60px; text-align: center; }
.traffic-manage-table th:nth-child(7), .traffic-manage-table td:nth-child(7) { width: 72px; text-align: center; }
.traffic-manage-table th:nth-child(8), .traffic-manage-table td:nth-child(8) { width: 54px; text-align: center; }
.traffic-manage-table th:nth-child(9), .traffic-manage-table td:nth-child(9),
.traffic-manage-table th:nth-child(10), .traffic-manage-table td:nth-child(10),
.traffic-manage-table th:nth-child(11), .traffic-manage-table td:nth-child(11),
.traffic-manage-table th:nth-child(12), .traffic-manage-table td:nth-child(12) { width: 66px; text-align: center; }
.traffic-manage-table th:nth-child(13), .traffic-manage-table td:nth-child(13) { width: 90px; text-align: center; }
.traffic-manage-table th:nth-child(14), .traffic-manage-table td:nth-child(14) { width: 150px; text-align: center; }
.traffic-manage-table th:nth-child(15), .traffic-manage-table td:nth-child(15) { width: 76px; text-align: center; }
.traffic-manage-select-cell input { width: 15px; height: 15px; margin: 0; accent-color: #2563eb; cursor: pointer; }
.traffic-manage-table.is-selecting-rows,
.traffic-manage-table.is-selecting-rows * { user-select: none; }
.traffic-manage-table.is-selecting-rows .traffic-manage-select-cell { background: #f2f6ff; }
.traffic-gsc-row-button { display: inline-grid; width: 29px; height: 29px; place-items: center; padding: 0; border: 1px solid #cfe0ff; border-radius: 7px; color: #2563eb; background: #f3f7ff; cursor: pointer; }
.traffic-gsc-row-button:hover { color: #fff; background: #2563eb; }
.traffic-gsc-row-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.traffic-optimize-button { box-sizing: border-box; display: inline-flex; min-width: 74px; align-items: center; justify-content: center; gap: 5px; margin: 0 auto; padding: 6px 8px; border: 1px solid #fdba74; border-radius: 7px; color: #c2410c; background: linear-gradient(180deg, #fffaf5 0%, #fff1e6 100%); box-shadow: 0 1px 2px rgba(194, 65, 12, .08); font-size: 9px; font-weight: 800; line-height: 1; white-space: nowrap; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease; }
.traffic-optimize-button::before { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #f97316; box-shadow: 0 0 0 2px rgba(249, 115, 22, .14); content: ''; }
.traffic-optimize-button:hover { border-color: #f97316; color: #9a3412; background: #ffedd5; box-shadow: 0 3px 8px rgba(194, 65, 12, .14); transform: translateY(-1px); }
.traffic-optimize-button:focus-visible { outline: 2px solid rgba(249, 115, 22, .45); outline-offset: 2px; }
.traffic-optimize-dialog { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 14px; color: #344054; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, .25); }
.traffic-optimize-dialog::backdrop { background: rgba(15, 23, 42, .48); backdrop-filter: blur(2px); }
.traffic-optimize-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px 15px; border-bottom: 1px solid #e8edf3; }
.traffic-optimize-dialog-head small { color: #ea580c; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.traffic-optimize-dialog-head h2 { margin: 4px 0 0; color: #13294b; font-size: 18px; }
.traffic-optimize-dialog-head button { width: 34px; height: 34px; border: 0; border-radius: 8px; color: #64748b; background: #f1f5f9; font-size: 22px; cursor: pointer; }
.traffic-optimize-dialog-body { padding: 17px 22px; }
.traffic-optimize-dialog-url { margin: 0 0 12px; overflow: hidden; color: #64748b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.traffic-optimize-dialog-note { padding: 13px 14px; border: 1px solid #fed7aa; border-radius: 9px; color: #7c2d12; background: #fff7ed; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.traffic-optimize-dialog-actions { display: flex; justify-content: flex-end; padding: 0 22px 18px; }
.traffic-optimize-dialog-actions button { padding: 8px 15px; border: 0; border-radius: 7px; color: #fff; background: #13294b; font-size: 11px; font-weight: 800; cursor: pointer; }
.traffic-gsc-dialog { width: min(960px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 32px)); padding: 0; border: 0; border-radius: 14px; color: #344054; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, .25); }
.traffic-gsc-dialog::backdrop { background: rgba(15, 23, 42, .48); backdrop-filter: blur(2px); }
.traffic-gsc-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px 16px; border-bottom: 1px solid #e8edf3; }
.traffic-gsc-dialog-head small { color: #2563eb; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.traffic-gsc-dialog-head h2 { margin: 4px 0 3px; color: #13294b; font-size: 20px; }
.traffic-gsc-dialog-head p { max-width: 780px; margin: 0; overflow: hidden; color: #64748b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.traffic-gsc-dialog-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.traffic-gsc-dialog-head button { height: 34px; border: 0; border-radius: 8px; color: #64748b; background: #f1f5f9; cursor: pointer; }
.traffic-gsc-dialog-head .traffic-gsc-close { width: 34px; font-size: 22px; }
.traffic-gsc-dialog-head .traffic-gsc-note-button { display: inline-flex; width: auto; align-items: center; gap: 6px; padding: 0 11px; color: #2563eb; background: #eff6ff; font-size: 11px; font-weight: 800; }
.traffic-gsc-note-button:hover, .traffic-gsc-note-button[aria-expanded="true"] { color: #fff; background: #2563eb; }
.traffic-gsc-note-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.traffic-gsc-note-box { padding: 14px 22px; border-bottom: 1px solid #e8edf3; background: #f8fafc; }
.traffic-gsc-note-box[hidden] { display: none; }
.traffic-gsc-note-box label { display: block; margin-bottom: 6px; color: #344054; font-size: 11px; font-weight: 800; }
.traffic-gsc-note-box textarea { box-sizing: border-box; width: 100%; resize: vertical; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 8px; outline: none; color: #344054; background: #fff; font: inherit; font-size: 12px; }
.traffic-gsc-note-box textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.traffic-gsc-note-box > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 9px; }
.traffic-gsc-note-box button { padding: 7px 12px; border: 1px solid #d0d5dd; border-radius: 7px; color: #344054; background: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.traffic-gsc-note-box button.is-primary { border-color: #13294b; color: #fff; background: #13294b; }
.traffic-gsc-note-box button:disabled { opacity: .55; cursor: wait; }
.traffic-gsc-note-error { min-height: 15px; margin: 4px 0 0; color: #b42318; font-size: 10px; }
.traffic-gsc-dialog-body { min-height: 220px; padding: 16px 22px 22px; overflow: auto; }
.traffic-gsc-loading, .traffic-gsc-error { display: grid; min-height: 180px; place-items: center; color: #64748b; font-size: 13px; }
.traffic-gsc-error { color: #b42318; }
.traffic-gsc-summary { margin-bottom: 10px; color: #64748b; font-size: 11px; }
.traffic-gsc-table-wrap { overflow: auto; border: 1px solid #e8edf3; border-radius: 9px; }
.traffic-gsc-table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; }
.traffic-gsc-table-wrap th, .traffic-gsc-table-wrap td { padding: 9px 10px; border-bottom: 1px solid #edf1f5; text-align: right; font-size: 11px; }
.traffic-gsc-table-wrap th { color: #475467; background: #f8fafc; font-size: 10px; white-space: nowrap; }
.traffic-gsc-table-wrap th small { display: block; margin-top: 2px; color: #98a2b3; font-size: 8px; }
.traffic-gsc-table-wrap th:nth-child(2), .traffic-gsc-table-wrap td:nth-child(2) { width: 44%; text-align: left; }
.traffic-gsc-table-wrap th:first-child, .traffic-gsc-table-wrap td:first-child { width: 42px; text-align: center; }
.traffic-gsc-table-wrap tbody tr:hover td { background: #fbfdff; }
.traffic-gsc-keyword-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.traffic-gsc-keyword-head > button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #cfe0ff; border-radius: 6px; color: #2563eb; background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }
.traffic-gsc-keyword-head > button:hover { color: #fff; background: #2563eb; }
.traffic-gsc-keyword-head > button:disabled { opacity: .45; cursor: default; color: #98a2b3; background: #f8fafc; border-color: #e2e8f0; }
.traffic-gsc-keyword-head svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  .traffic-gsc-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .traffic-gsc-dialog-head { padding: 16px; }
  .traffic-gsc-dialog-body { padding: 12px; }
}
.traffic-manage-url { display: inline-flex; max-width: 100%; align-items: center; gap: 4px; color: #2563eb; font-weight: 700; text-decoration: none; }
.traffic-manage-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.traffic-manage-url svg { flex: 0 0 auto; width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.traffic-manage-meta { overflow: hidden; color: #64748b; text-overflow: ellipsis; white-space: nowrap; }
.traffic-manage-status { display: inline-flex; min-width: 36px; justify-content: center; padding: 3px 6px; border-radius: 999px; font-size: 9px; font-weight: 900; }
.traffic-manage-status.ok { color: #087443; background: #e4f6eb; }
.traffic-manage-status.redirect { color: #b45309; background: #fff1d6; }
.traffic-manage-status.error { color: #dc2626; background: #fee9e8; }
.traffic-manage-status.unknown { color: #64748b; background: #f1f5f9; }
.traffic-manage-change { font-size: 9px; font-weight: 800; white-space: nowrap; }
.traffic-manage-change.up { color: #0f9d58; }
.traffic-manage-change.down { color: #dc2626; }
.traffic-manage-actions { display: inline-flex; align-items: center; gap: 4px; }
.traffic-manage-action { display: grid; width: 25px; height: 25px; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.traffic-manage-action.edit { color: #2563eb; }
.traffic-manage-action.delete { color: #ef4444; }
.traffic-manage-action:hover { background: #f1f5f9; }
.traffic-manage-action svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.traffic-manage-empty { padding: 28px !important; color: #64748b !important; text-align: center !important; }

.traffic-manage-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid #e6eaf0; }
.traffic-manage-footer > span { color: #475467; font-size: 10px; }
.traffic-manage-footer > select { min-height: 30px; padding: 4px 26px 4px 8px; border: 1px solid #d8dee8; border-radius: 7px; color: #344054; background: #fff; font-size: 10px; font-weight: 700; }
.traffic-manage-pagination { display: inline-flex; align-items: center; gap: 5px; }
.traffic-manage-page { display: grid; min-width: 28px; height: 28px; place-items: center; padding: 0 7px; border: 1px solid #dce3ec; border-radius: 7px; color: #475467; background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.traffic-manage-page.active { color: #fff; background: #2563eb; border-color: #2563eb; }
.traffic-manage-page:disabled { opacity: .38; cursor: not-allowed; }
.traffic-manage-page-gap { display: inline-grid; min-width: 24px; place-items: center; color: #64748b; font-size: 11px; }
.traffic-manage-feedback { min-height: 0; margin: -8px 0 0; color: #0f766e; font-size: 10px; font-weight: 700; }
.traffic-manage-feedback:empty { display: none; }

.traffic-manage-dialog { width: min(500px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 12px; color: #172033; background: #fff; box-shadow: 0 24px 80px rgba(15, 23, 42, .25); }
.traffic-manage-dialog::backdrop { background: rgba(15, 23, 42, .38); backdrop-filter: blur(2px); }
.traffic-manage-dialog form { display: grid; gap: 11px; padding: 16px; }
.traffic-manage-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid #e6eaf0; }
.traffic-manage-dialog-head h2 { margin: 0; color: #13294b; font-size: 16px; }
.traffic-manage-dialog-head button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; color: #64748b; background: #f8fafc; font-size: 18px; cursor: pointer; }
.traffic-manage-dialog label { display: grid; gap: 5px; color: #475467; font-size: 10px; font-weight: 700; }
.traffic-manage-dialog input,
.traffic-manage-dialog select { min-width: 0; min-height: 36px; padding: 7px 9px; border: 1px solid #d8dee8; border-radius: 8px; color: #172033; background: #fff; font-size: 11px; outline: none; }
.traffic-manage-dialog input[readonly] { color: #64748b; background: #f8fafc; }
.traffic-manage-dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.traffic-manage-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.traffic-manage-dialog-actions button { min-height: 34px; padding: 7px 12px; border-radius: 8px; font-size: 11px; font-weight: 800; cursor: pointer; }
.traffic-manage-dialog-actions button:disabled { opacity: .62; cursor: wait; }
.traffic-manage-cancel { border: 1px solid #d8dee8; color: #475467; background: #fff; }
.traffic-manage-save { border: 1px solid #13294b; color: #fff; background: #13294b; }
.traffic-group-dialog { width: min(480px, calc(100vw - 32px)); }
.traffic-group-dialog-intro { margin: -3px 0 3px; color: #64748b; font-size: 11px; line-height: 1.45; }
.traffic-group-fields { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 10px; }
.traffic-group-dialog-note { display: flex; align-items: center; gap: 8px; margin: 1px 0; padding: 9px 10px; border: 1px solid #bfdbfe; border-radius: 8px; color: #1e40af; background: #eff6ff; font-size: 10px; line-height: 1.4; }
.traffic-group-dialog-note span { display: inline-grid; flex: 0 0 16px; width: 16px; height: 16px; place-items: center; border: 1px solid #2563eb; border-radius: 50%; font-size: 10px; font-weight: 800; }
.traffic-group-dialog-error { margin: 0; color: #dc2626; font-size: 10px; font-weight: 700; line-height: 1.4; }
.traffic-group-dialog-error:empty { display: none; }

@container traffic-page (max-width: 1100px) {
  .traffic-manage-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .traffic-manage-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .traffic-manage-export,
  .traffic-manage-group-actions { width: 100%; }
  .traffic-manage-group-actions button { flex: 1; }
}
@container traffic-page (max-width: 760px) {
  .traffic-manage-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .traffic-manage-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .traffic-manage-footer { grid-template-columns: 1fr auto; }
  .traffic-manage-pagination { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
}
@container traffic-page (max-width: 520px) {
  .traffic-manage-filters,
  .traffic-manage-kpis { grid-template-columns: 1fr; }
  .traffic-manage-footer { display: flex; align-items: flex-start; flex-direction: column; }
  .traffic-manage-pagination { max-width: 100%; overflow-x: auto; justify-content: flex-start; }
  .traffic-manage-dialog-grid,
  .traffic-group-fields { grid-template-columns: 1fr; }
}

@media (max-width: 1199px) {
  .traffic-manage-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .traffic-manage-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .traffic-manage-export,
  .traffic-manage-group-actions { width: 100%; }
  .traffic-manage-group-actions button { flex: 1; }
}
@media (max-width: 760px) {
  .traffic-manage-filters,
  .traffic-manage-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .traffic-manage-filters,
  .traffic-manage-kpis { grid-template-columns: 1fr; }
  .traffic-group-fields { grid-template-columns: 1fr; }
}
