[hidden] { display: none !important; }

.coverage, .admin { --ink: #221a1c; --muted: #62595c; --line: #e8dddf; --red: #cc0b20; color: var(--ink); }
.coverage { position: relative; z-index: 15; padding: 0 20px 18px; background: #0c0809; }
.coverage-box, .panel { background: white; border: 1px solid var(--line); border-radius: 8px; }
.coverage-box { max-width: 1180px; margin: auto; padding: 16px 20px; box-shadow: 0 12px 24px #2b0c181a; }
.coverage-row, .coverage-cep { display: flex; align-items: center; gap: 12px; }
.coverage-copy { flex: 1; }
.coverage-copy h2 { font-size: 18px; font-weight: 800; margin: 0; }
.coverage-copy p { color: var(--muted); margin: 3px 0 0; }
.coverage-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 8px; background: #fce4e6; color: var(--red); }
.coverage-icon svg { width: 22px; height: 22px; }
#addressToggle, #coverageContact { color: var(--red); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
#addressToggle { margin-left: 4px; }
.coverage-cep input { width: 220px; }
.coverage-address { margin-top: 16px; display: grid; align-items: end; grid-template-columns: 2fr 1fr 1fr 65px auto; gap: 10px; }
#coverageResult { margin: 14px 0 4px; font-weight: 700; }
.coverage input, .admin input, .admin select, .admin textarea { box-sizing: border-box; min-width: 0; min-height: 44px; border: 1px solid var(--line); background: #f9f6f7; border-radius: 8px; padding: 8px 12px; color: var(--ink); font: inherit; }
.coverage label, .admin label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.coverage label input, .admin label input, .admin label select, .admin label textarea { width: 100%; }
.service-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid transparent; border-radius: 8px; padding: 8px 17px; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; }
.service-button { background: var(--red); color: white; }
.service-button:hover { background: #a5091a; }
.secondary-button { background: white; border-color: var(--line); color: var(--ink); }
.secondary-button:hover { background: #fce9ec; }
.coverage :focus-visible, .admin :focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.coverage button:disabled, .admin button:disabled { opacity: .65; cursor: wait; }

.admin { margin: 0; background: #f5f2f3; font: 15px/1.5 Inter, system-ui, sans-serif; }
.admin *, .admin *::before, .admin *::after { box-sizing: border-box; }
.admin h1, .admin h2, .admin p { margin: 0; }
.admin h1 { font-size: 24px; }
.admin h2 { font-size: 19px; }
.admin header { background: #171012; color: white; }
.admin-bar, .admin main { width: min(1140px, calc(100% - 32px)); margin: auto; }
.admin-bar { min-height: 64px; display: flex; align-items: center; flex-wrap: wrap; padding: 8px 0; gap: 8px; }
.admin-bar img { width: 40px; height: 40px; border-radius: 6px; }
.admin-bar strong { margin-right: auto; }
.admin main { padding: 24px 0 48px; }
.panel { padding: 20px; margin-bottom: 16px; }
.login-panel { max-width: 420px; margin: 36px auto; }
.login-panel form { display: grid; gap: 12px; margin-top: 16px; }
.password-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); box-shadow: 0 24px 70px #17090b55; }
.password-dialog::backdrop { background: #14090cd9; }
.password-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.password-dialog form { display: grid; gap: 12px; margin-top: 16px; }
.admin .tabs { display: flex; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { font: inherit; font-weight: 700; cursor: pointer; padding: 10px 14px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); }
.tabs [aria-pressed="true"] { color: var(--red); border-bottom-color: var(--red); }
.area-types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.area-types button { min-height: 42px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.area-types button:hover { border-color: var(--red); }
.area-types button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.tabs span { margin-left: 4px; padding: 1px 7px; border-radius: 8px; background: #fce4e6; color: var(--red); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metrics strong { display: block; font-size: 24px; line-height: 1.2; }
.metrics span, .admin .muted { color: var(--muted); }
.admin-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.admin-form .wide { grid-column: span 2; }
.admin-status { margin: 0 0 12px !important; color: #9b1024; font-weight: 650; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters input { flex: 1; min-width: min(230px, 100%); }
.table-scroll { overflow-x: auto; }
.admin table { width: 100%; min-width: 680px; border-collapse: collapse; }
.admin th, .admin td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.admin th { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.admin .empty { text-align: center; color: var(--muted); }

@media (max-width: 800px) {
  .coverage-row { flex-wrap: wrap; }
  .coverage-cep { flex-basis: 100%; }
  .coverage-cep input { flex: 1; width: auto; }
  .coverage-address, .admin-form, .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .coverage { padding-inline: 12px; }
  .coverage-box, .panel { padding: 14px; }
  .coverage-cep { gap: 8px; }
  .coverage-cep .service-button { padding-inline: 12px; }
  .coverage-address .service-button { grid-column: 1 / -1; }
}
