.dps {
	--dps-bordo: #39493C;
	--dps-bordo-esc: #2E392C;
	--dps-ouro: #B5AB86;
	--dps-ouro-tx: #39493C;
	--dps-tinta: #232B22;
	--dps-pedra: #5A6558;
	--dps-borda: #6F7A6C;
	--dps-suave: #D9D2B8;
	--dps-papel: #FFFEF9;
	--dps-oliva: #2F6F3F;
	--dps-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	max-width: 860px;
	margin: 0 auto;
	padding: 8px 0 32px;
	color: var(--dps-tinta);
	font-size: 1.0625rem;
	line-height: 1.5;
	box-sizing: border-box;
}
.dps *, .dps *::before, .dps *::after { box-sizing: border-box; }
.dps :where(a, button, input, select):focus-visible { outline: 3px solid var(--dps-ouro-tx); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.dps-h { margin: 0; font-family: var(--dps-serif); font-weight: 600; font-size: 1.75rem; line-height: 1.2; color: var(--dps-bordo); }
.dps-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--dps-ouro); }
.dps-quem { margin: 0; color: var(--dps-pedra); }
.dps-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--dps-bordo); text-decoration: underline; }

/* Entrada */
.dps-caixa { background: var(--dps-papel); border: 1px solid var(--dps-suave); border-top: 3px solid var(--dps-ouro); border-radius: 6px; padding: 24px; margin: 18px 0; }
.dps-login { max-width: 440px; margin-left: auto; margin-right: auto; }
.dps-login .dps-h { margin-bottom: 8px; }
.dps-login form p { margin: 0 0 18px; }
.dps-login label { display: block; margin-bottom: 6px; font-weight: 600; }
.dps-login input[type=text], .dps-login input[type=password] { width: 100%; min-height: 56px; padding: 12px 14px; font: inherit; color: var(--dps-tinta); background: #fff; border: 1.5px solid var(--dps-borda); border-radius: 6px; }
.dps-login .login-remember label { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; font-weight: 400; line-height: 1.4; cursor: pointer; }
.dps-login .login-remember input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--dps-bordo); }
.dps-login input[type=submit], .dps-botao, .dps-filtro button { min-height: 56px; padding: 12px 22px; font: inherit; font-weight: 600; color: #fff; background: var(--dps-bordo); border: 0; border-radius: 6px; cursor: pointer; }
.dps-login input[type=submit] { width: 100%; }
.dps-login input[type=submit]:hover, .dps-botao:hover { background: var(--dps-bordo-esc); }
.dps-erro { padding: 10px 12px; font-weight: 600; color: #8a1c1c; background: #fdeaea; border-left: 4px solid #8a1c1c; border-radius: 4px; }

/* Semana e números */
.dps-filtro { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.dps-filtro label { font-weight: 600; }
.dps-filtro select { min-height: 48px; padding: 8px 12px; font: inherit; color: var(--dps-tinta); background: var(--dps-papel); border: 1.5px solid var(--dps-borda); border-radius: 6px; max-width: 100%; }
.dps-cards { display: grid; grid-template-columns: repeat(3, 1fr); margin: 8px 0 0; }
.dps-card { padding: 4px 8px; text-align: center; }
.dps-card + .dps-card { border-left: 1px solid var(--dps-ouro); }
.dps-card strong { display: block; font-family: var(--dps-serif); font-size: 2.5rem; font-weight: 600; line-height: 1.1; color: var(--dps-bordo); font-variant-numeric: tabular-nums; }
.dps-card span { display: block; font-size: .95rem; color: var(--dps-pedra); }
.dps-prog { height: 6px; margin: 14px 0 6px; background: var(--dps-suave); border-radius: 3px; overflow: hidden; }
.dps-prog-barra { height: 100%; background: var(--dps-oliva); transition: width .3s; }
.dps-fim { margin: 10px 0; padding: 12px 14px; font-weight: 600; color: var(--dps-oliva); background: #E1EEDF; border-left: 4px solid var(--dps-oliva); border-radius: 4px; }
.dps-fim[hidden] { display: none; }
.dps-nota { margin: 6px 0; color: var(--dps-pedra); }

.dps-previa { margin: 16px 0; padding: 12px 16px; background: #EFE6CF; border-left: 3px solid var(--dps-ouro); border-radius: 4px; }
.dps-previa-titulo { display: block; margin-bottom: 4px; font-size: .95rem; font-weight: 600; color: var(--dps-ouro-tx); }
.dps-previa .dp-previa-texto { color: var(--dps-tinta); }

.dps-proximo { margin: 16px 0; }
.dps-proximo .dps-botao { width: 100%; min-height: 60px; font-size: 1.1875rem; }
.dps-msg { display: block; min-height: 1.5em; margin-top: 8px; font-weight: 600; color: var(--dps-oliva); }

/* Lista */
.dps-tabela { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dps-tabela th { padding: 8px 10px; text-align: left; font-size: .95rem; font-weight: 600; color: var(--dps-pedra); border-bottom: 1.5px solid var(--dps-ouro); }
.dps-tabela td { padding: 12px 10px; vertical-align: middle; border-bottom: 1px solid var(--dps-suave); }
.dps .dp-row.is-enviado .dps-nome { color: var(--dps-pedra); }
.dps .dp-row.is-enviado .dps-nome strong { font-weight: 500; }
.dps .dp-quando { display: block; font-size: .9rem; color: var(--dps-pedra); }
.dps .dp-badge { display: inline-block; padding: 2px 10px; font-size: .95rem; border-radius: 4px; }
.dps .dp-badge--ok { color: var(--dps-oliva); font-weight: 600; background: #E1EEDF; }
.dps .dp-badge--ok::before { content: "✓ "; }
.dps .dp-badge--pend { color: var(--dps-pedra); background: transparent; padding-left: 0; }
.dps .dp-badge--aviso { color: #8a1c1c; font-weight: 600; background: #fdeaea; }

.dps .dp-enviar { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 16px; font-weight: 600; color: var(--dps-bordo) !important; text-decoration: none; background: transparent; border: 1.5px solid var(--dps-bordo); border-radius: 6px; }
.dps .dp-enviar:hover { background: #EFE6CF; }
.dps tr.is-proximo .dp-enviar { color: #fff !important; background: var(--dps-bordo); }
.dps tr.is-proximo .dp-enviar:hover { background: var(--dps-bordo-esc); }
.dps .dp-reabrir, .dps .dp-desfazer { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font: inherit; color: var(--dps-bordo); background: none; border: 0; text-decoration: underline; cursor: pointer; }

@media (max-width: 640px) {
	.dps { font-size: 1.0625rem; }
	.dps-tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.dps-tabela, .dps-tabela tbody, .dps-tabela tr, .dps-tabela td { display: block; width: 100%; }
	.dps-tabela tr { padding: 12px 14px; margin-bottom: 12px; background: var(--dps-papel); border: 1px solid var(--dps-suave); border-radius: 6px; }
	.dps-tabela tr.is-proximo { border-color: var(--dps-bordo); border-width: 1.5px; }
	.dps-tabela td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 3px 0; border: 0; }
	.dps-tabela td::before { content: attr(data-rotulo); font-size: .95rem; color: var(--dps-pedra); flex: none; }
	.dps-tabela td.dps-nome { font-size: 1.1875rem; }
	.dps-tabela td.dp-acao { display: block; padding-top: 10px; }
	.dps-tabela td.dp-acao::before { display: none; }
	.dps .dp-enviar { display: flex; width: 100%; min-height: 52px; }
	.dps-proximo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 244, 228, .97); border-top: 1px solid var(--dps-ouro); }
	.dps-proximo .dps-botao { min-height: 56px; }
	.dps.dps-lista { padding-bottom: 130px; }
	.dps-proximo .dps-msg { margin-top: 4px; }
	.dps-card strong { font-size: 2.125rem; }
}
@media (prefers-reduced-motion: reduce) { .dps-prog-barra { transition: none; } }
