:root{font-family:system-ui,sans-serif;color:#1d2939;background:#f4f6fa;line-height:1.5}*{box-sizing:border-box}body{margin:0}header{background:#15283e;color:white;padding:1.2rem 4vw;display:flex;justify-content:space-between;gap:1rem}header strong{font-size:1.2rem}header span{color:#c1d0e0}main{max-width:1120px;margin:auto;padding:1.5rem}section{background:white;padding:1.5rem;border:1px solid #d6dfe9;border-radius:10px;margin-bottom:1.5rem}h1,h2{margin:0 0 .7rem}h1{font-size:1.65rem}h2{font-size:1.3rem}p{margin:.5rem 0 1rem}label{display:block;font-weight:600;margin:.75rem 0}input,select,textarea{display:block;font:inherit;width:100%;padding:.65rem;border:1px solid #8799ae;border-radius:5px;margin-top:.3rem}input[type=checkbox]{display:inline;width:auto;margin-right:.5rem}button{font:inherit;background:#1c507c;color:white;border:0;border-radius:5px;padding:.65rem 1rem;cursor:pointer;margin:.4rem .4rem .4rem 0}button:disabled{opacity:.6;cursor:wait}button.danger{background:#8a3229}:focus-visible{outline:3px solid #cc7a00;outline-offset:3px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0 1rem}.heading{display:flex;justify-content:space-between;align-items:start;gap:1rem}fieldset,article,details{border:1px solid #d6dfe9;border-radius:6px;padding:1rem;margin:1rem 0}legend{font-weight:700}article h3{margin-top:0}#notice{white-space:pre-wrap}#notice:empty{display:none}#notice:not(:empty){background:#fff2ce;border:1px solid #a97b1f;padding:1rem;border-radius:6px}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:.6rem;border-bottom:1px solid #d6dfe9}pre{white-space:pre-wrap;overflow-wrap:anywhere}footer{font-size:.9rem;color:#485a70;margin:2rem 0}[hidden]{display:none!important}@media(max-width:700px){.grid{grid-template-columns:1fr}.heading,header{flex-direction:column}main{padding:.8rem}section{padding:1rem}table{font-size:.85rem}}

/* shell das telas internas e wizard de nova campanha */
body>nav{display:flex;flex-wrap:wrap;gap:.25rem .9rem;background:#15283e;padding:.7rem 4vw}body>nav a{color:#dbe6f2;text-decoration:none;font-size:.95rem}body>nav a:hover{text-decoration:underline}header nav a{color:#dbe6f2}header nav a:hover{text-decoration:underline}
#wizard-steps{display:block;margin:.4rem 0 1rem;padding:.55rem .8rem;background:white;border:1px solid #d6dfe9;border-radius:8px;font-size:.92rem;color:#485a70;overflow-wrap:anywhere}
#wizard-step{background:white;border:1px solid #d6dfe9;border-radius:10px;padding:1.2rem 1.5rem;margin-bottom:1rem}#wizard-step h2{margin-top:0}
#wizard-step ul{list-style:none;padding:0;margin:0}#wizard-step li{padding:.35rem 0;border-bottom:1px solid #eef2f7}
#dayparting-grid{overflow-x:auto;white-space:nowrap}#dayparting-grid [role=row]{display:flex}#dayparting-grid input{margin:1px;flex:none}
#wizard-errors:not(:empty){background:#fdecea;border:1px solid #8a3229;border-radius:6px;padding:.8rem 1rem 0.8rem 2rem;list-style:disc}
#wizard-msg:empty{display:none}#review-result{background:#e6f4ea;border:1px solid #2e7d4f;padding:.8rem 1rem;border-radius:6px}
@media(max-width:700px){table{display:block;max-width:100%;overflow-x:auto}body>nav{padding:.6rem .8rem}#wizard-step{padding:.9rem}button{width:100%;margin:.3rem 0}}

/* UX: formulários claros, painel inicial, diálogo e cores de pool (a CSP bloqueia style inline) */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
form.cartao{background:#fff;border:1px solid #d6dfe9;border-radius:10px;padding:1rem 1.25rem;margin:0 0 1.25rem}.cartao h2{font-size:1.1rem;margin-top:0}
.obrig{color:#8a3229;font-weight:700;font-size:.85rem}.opc{color:#485a70;font-weight:400;font-size:.85rem}
.num{text-align:right;font-variant-numeric:tabular-nums}.dica{display:block;color:#485a70;font-size:.88rem;margin:.4rem 0 .7rem}.ajuda{color:#485a70;max-width:60ch}
.erro{display:block;color:#8a3229;font-weight:600;font-size:.9rem}.erro:empty{display:none}
.vazio{color:#485a70}.aviso{background:#fff2ce;border:1px solid #a97b1f;border-radius:6px;padding:.6rem .9rem}
.acoes{display:flex;flex-wrap:wrap;gap:.2rem}
a.botao{display:inline-block;background:#1c507c;color:#fff;text-decoration:none;border-radius:5px;padding:.65rem 1rem;margin:.4rem .4rem .4rem 0}
button.secundario{background:#fff;color:#1c507c;border:1px solid #1c507c}
button.link{background:none;color:#0b4f8a;padding:0 .15rem;margin:0;text-decoration:underline;border-radius:3px}
nav [aria-current=page]{font-weight:700;text-decoration:underline}
.cor{display:inline-block;width:.9rem;height:.9rem;border-radius:50%;vertical-align:-.1rem;border:1px solid #0006;background:#ccd}
.cor-azul{background:#2563eb}.cor-verde{background:#16a34a}.cor-vermelho{background:#dc2626}.cor-laranja{background:#d97706}.cor-roxo{background:#7c3aed}.cor-ciano{background:#0891b2}.cor-rosa{background:#db2777}.cor-cinza{background:#4b5563}
dialog{border:1px solid #8799ae;border-radius:10px;padding:1.2rem 1.5rem;width:min(34rem,92vw);max-height:90vh;overflow:auto;color:#1d2939}
dialog::backdrop{background:rgba(21,40,62,.6)}
dialog h2{margin-top:0}.dlg .campo{margin:.5rem 0}.dlg .campo label{margin:.4rem 0 0}
.dlg-previa{background:#eef4fb;border:1px solid #9db4cc;border-radius:6px;padding:.6rem .9rem;margin:.8rem 0}.dlg-previa ul{margin:.3rem 0 0;padding-left:1.2rem}
.dlg-acoes{display:flex;justify-content:flex-end;gap:.5rem;flex-wrap:wrap}
#home{background:none;border:0;padding:0}
.resumo,.atalhos{list-style:none;padding:0;margin:0 0 1.5rem;display:grid;gap:1rem}
.resumo{grid-template-columns:repeat(4,1fr)}.atalhos{grid-template-columns:repeat(3,1fr)}
.resumo a,.atalhos a{display:flex;flex-direction:column;gap:.2rem;height:100%;background:#fff;border:1px solid #d6dfe9;border-radius:10px;padding:1rem;text-decoration:none;color:#1d2939}
.resumo a:hover,.atalhos a:hover{border-color:#1c507c;box-shadow:0 1px 6px rgba(21,40,62,.15)}
.resumo .valor{font-size:2rem;font-weight:700;line-height:1.1;color:#15283e}.resumo .rotulo{font-weight:600}.resumo .detalhe,.atalhos span{color:#485a70;font-size:.9rem}
.atalhos strong{color:#0b4f8a}
details#modo-antigo{background:#fff}details#modo-antigo>summary{cursor:pointer;font-weight:600}
@media(max-width:900px){.resumo{grid-template-columns:repeat(2,1fr)}.atalhos{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.atalhos{grid-template-columns:1fr}.resumo{grid-template-columns:repeat(2,1fr)}button.link{width:auto}a.botao{display:block;text-align:center}.dlg-acoes{flex-direction:column-reverse}dialog{padding:1rem}}
[data-role="leitura"] [data-write] { display: none !important; }
.viewer-notice { display: none; }
[data-role="leitura"] .viewer-notice { display: block; }
