:root { color-scheme: light; }
body { background: #f5f7fb; color: #25324b; }
.page-padding { padding-right: 4%; padding-left: 4%; }
.topbar { background: #fff; border-bottom: 1px solid #e3e8f0; padding: 20px 0; }
.brand { color: #25324b; font-size: 20px; font-weight: 700; text-decoration: none; }
.brand span { font-size: 13px; font-weight: 400; color: #697586; margin-left: 16px; }
h1 { font-size: 30px; font-weight: 650; letter-spacing: -.6px; }
.card { border-color: #e1e7ef; border-radius: 14px; box-shadow: 0 3px 14px #25324b05; }
.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; background: #fafbfd; border-color: #e1e7ef; border-radius: 0 0 14px 14px !important; }
.section-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.section-heading h2 { font-size: 19px; font-weight: 650; margin: 0; }
.step-number, .steps span { display: inline-flex; align-items: center; justify-content: center; background: #eaf1ff; color: #0d6efd; border-radius: 50%; font-weight: 700; flex-shrink: 0; width: 30px; height: 30px; font-size: 14px; }
.steps { display: flex; gap: 30px; list-style: none; padding: 0; color: #566279; font-size: 14px; }
.steps li { display: flex; align-items: center; gap: 10px; }
.steps span { width: 24px; height: 24px; background: #e7ecf4; color: #566279; font-size: 12px; }
.alert { border: 0; border-radius: 10px; font-size: 14px; padding: 13px 18px; }
.phone-tile { border: 1px solid #e1e7ef; border-radius: 10px; background: #fbfcfe; padding: 18px 20px; }
.phone-label { display: block; font-size: 13px; color: #697586; margin-bottom: 6px; }
.phone { display: inline-block; font-size: clamp(23px, 2vw, 32px); font-weight: 650; letter-spacing: -.5px; text-decoration: none; }
.phone:hover { text-decoration: underline; }
.phone[aria-disabled="true"] { color: #697586; text-decoration: none; }
.phone-status { display: block; font-size: 12px; color: #697586; margin-top: 6px; }
.phone-tile:has(.phone-status[data-mine="true"]) { background: #f1f8f5; border-color: #bcddcb; }
.phone-status[data-mine="true"] { color: #226643; }
.form-label { font-size: 14px; font-weight: 500; }
.form-control, .form-select { min-height: 44px; border-color: #d9e0e9; }
.btn { font-size: 14px; padding: 10px 16px; border-radius: 8px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.badge { font-weight: 500; padding: 7px 10px; }
.empty-state { padding: 25px 15px; text-align: center; color: #697586; border: 1px dashed #d9e0e9; border-radius: 10px; font-size: 14px; }
.empty-state span { display: block; font-size: 13px; margin-top: 6px; }
.click-item { border: 1px solid #e1e7ef; border-radius: 10px; padding: 16px; margin-top: 12px; }
.click-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.click-number { font-weight: 650; font-size: 16px; }
.click-description { font-size: 13px; color: #697586; margin: 8px 0 12px; }
.click-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.click-note { font-size: 12px; margin: 10px 0 0; color: #697586; }
.click-details { font-size: 12px; color: #697586; margin-top: 12px; overflow-wrap: anywhere; }
.click-details summary, .history summary { cursor: pointer; }
.click-details p { margin: 8px 0 0; }
.click-details a { display: inline-block; margin-top: 8px; }
.history { margin-top: 16px; font-size: 14px; color: #566279; }
.technical > summary { padding: 20px 24px; cursor: pointer; font-size: 14px; font-weight: 600; }
.technical > summary span { font-size: 13px; font-weight: 400; color: #697586; margin-left: 14px; }
.visitor-data { display: grid; grid-template-columns: 95px 1fr; gap: 8px 12px; font-size: 13px; }
.visitor-data dt { font-weight: 500; color: #697586; }
.visitor-data dd { margin: 0; overflow-wrap: anywhere; }
.pool-item { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; border-bottom: 1px solid #edf0f5; padding: 10px 0; font-size: 13px; }
.pool-item small { display: block; color: #697586; }
.event-list { font-size: 12px; line-height: 1.8; color: #697586; padding-left: 18px; margin: 0; }
:focus-visible { outline: 3px solid #8bb9ff; outline-offset: 3px; }
@media (max-width: 575px) {
  .page-padding { padding-left: 16px; padding-right: 16px; }
  .topbar { padding: 15px 0; }
  .brand { font-size: 18px; }
  .brand span { display: block; font-size: 11px; margin: 2px 0 0; }
  #connection { font-size: 11px; white-space: normal; text-align: center; max-width: 150px; }
  h1 { font-size: 26px; }
  .steps { flex-direction: column; gap: 10px; }
  .card-body { padding: 20px; }
  .card-footer { padding: 16px 20px; }
  .phone-tile { padding: 16px; }
  .phone { font-size: 25px; }
  .technical > summary { padding: 20px; }
  .technical > summary span { display: block; margin: 5px 0 0; }
  .visitor-data { grid-template-columns: 1fr; gap: 2px; }
  .visitor-data dd { margin-bottom: 8px; }
  .click-actions .btn { flex: 1 1 auto; }
}

.pool-table { table-layout: fixed; font-size: 13px; }
.pool-table th:first-child { width: 37%; }
.pool-table th:nth-child(2) { width: 43%; }
.pool-table th:last-child { width: 20%; }
.pool-table th { color: #697586; font-size: 12px; font-weight: 500; }
.pool-table td { padding: 7px 8px; vertical-align: middle; border-color: #edf0f5; }
.pool-table .pool-mine td { background: #edf5ff; }
.pool-number { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pool-owner { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #697586; font-size: 12px; }
.pool-time { font-variant-numeric: tabular-nums; font-size: 12px; }
.pool-free { color: #226643; font-size: 12px; }
@media (max-width: 575px) {
  .pool-table { font-size: 11px; }
  .pool-table td { padding: 8px 3px; }
  .pool-table th { padding: 8px 3px; font-size: 11px; }
  .pool-table th:first-child { width: 45%; }
  .pool-table th:nth-child(2) { width: 32%; }
  .pool-table th:last-child { width: 23%; }
  .pool-owner, .pool-free, .pool-time { font-size: 11px; }
}
