:root {
  --cpv-red: #c20f31;
  --cpv-red-dark: #8f0b25;
  --cpv-ink: #172033;
  --cpv-muted: #536176;
  --cpv-line: #ead9de;
  --cpv-bg: #f8f4f5;
  --cpv-shadow: 0 22px 56px rgba(76, 18, 32, .15);
}

.cpv-auth-shell {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0, #f7d8df 0, transparent 30rem),
    linear-gradient(135deg, #fffafa, var(--cpv-bg));
  color: var(--cpv-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.cpv-auth-hero {
  padding: 22px clamp(18px, 4vw, 40px) 20px;
  background: linear-gradient(135deg, var(--cpv-red), var(--cpv-red-dark));
  color: #fff;
  box-shadow: 0 10px 28px rgba(76, 18, 32, .18);
}

.cpv-brand-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  padding: 16px 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 16, 20, .16);
  text-decoration: none;
}

.cpv-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}

.cpv-logo--horizontal {
  max-height: 48px;
  max-width: min(252px, 68vw);
}

.cpv-logo--mark {
  display: none;
  max-height: 40px;
  max-width: 72px;
}

.cpv-auth-hero h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.cpv-auth-hero-sub {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: .92rem;
  font-weight: 500;
}

.cpv-workplace {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 12px 0 0;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}

.cpv-workplace p {
  margin: 0;
  min-width: 10rem;
}

.cpv-workplace-label {
  display: block;
  margin: 0 0 2px;
  color: rgba(255, 255, 255, .78);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cpv-workplace strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
}

.cpv-console-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  padding: 9px clamp(18px, 4vw, 40px);
  background: #101722;
  color: #f3f6fb;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cpv-console-bar span {
  color: #c5d0e0;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.cpv-audience-badge {
  display: inline-flex;
  margin: 10px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cpv-shell--platform {
  background:
    radial-gradient(circle at 88% 0, #c5d0e0 0, transparent 28rem),
    linear-gradient(160deg, #e8edf4, #d3dce8);
}

.cpv-shell--platform .cpv-auth-hero {
  background: linear-gradient(135deg, #1c2740, #121a2b);
  box-shadow: 0 10px 28px rgba(16, 22, 38, .28);
}

.cpv-shell--platform .cpv-auth-hero-sub {
  color: rgba(237, 243, 255, .78);
}

.cpv-shell--platform .cpv-auth-nav {
  border-top-color: rgba(255, 255, 255, .14);
}

.cpv-shell--platform .cpv-auth-nav button {
  background: var(--cpv-red);
  border-color: var(--cpv-red);
}

.cpv-shell--platform .cpv-auth-card {
  border-color: #c5d0de;
  box-shadow: 0 22px 56px rgba(18, 28, 48, .16);
}

.cpv-shell--company .cpv-audience-badge {
  background: rgba(255, 255, 255, .18);
}

.cpv-shell--company .cpv-auth-hero {
  background: linear-gradient(135deg, var(--cpv-red), var(--cpv-red-dark));
}

.cpv-shell--reception {
  background:
    radial-gradient(circle at 88% 0, #d8e8f4 0, transparent 28rem),
    linear-gradient(160deg, #f5f9fc, #e8eef4);
}

.cpv-shell--reception .cpv-auth-hero {
  background: linear-gradient(135deg, #1f4f7a, #163a5a);
}

.cpv-shell--operation {
  background:
    radial-gradient(circle at 12% 0, #f7d8df 0, transparent 28rem),
    linear-gradient(160deg, #fff5f6, #f3e6e9);
}

.cpv-shell--operation .cpv-auth-hero {
  background: linear-gradient(135deg, #172033, #8f0b25);
}

.cpv-shell--reception .cpv-audience-badge,
.cpv-shell--operation .cpv-audience-badge {
  background: rgba(255, 255, 255, .18);
}

.cpv-auth-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.cpv-auth-nav a,
.cpv-auth-nav a:visited,
.cpv-auth-nav a:hover {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cpv-auth-nav a[aria-current="page"] {
  border-bottom: 2px solid #fff;
  padding-bottom: 2px;
}

.cpv-auth-nav form {
  margin: 0 0 0 auto;
}

.cpv-auth-nav button {
  min-height: auto;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 9px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cpv-auth-card {
  width: min(920px, calc(100% - 32px));
  margin: -18px auto 40px;
  border: 1px solid var(--cpv-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--cpv-shadow);
  overflow: hidden;
}

.cpv-wide {
  width: min(1100px, calc(100% - 32px));
}

.cpv-auth-card-body {
  padding: clamp(22px, 4vw, 34px);
}

.cpv-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 0 0 24px;
}

.cpv-page-actions .cpv-button {
  margin-left: auto;
}

.cpv-page-actions .cpv-button + .cpv-button {
  margin-left: 0;
}

.cpv-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cpv-red-dark);
  font-weight: 700;
  text-decoration: none;
}

.cpv-back::before {
  content: "←";
}

.cpv-auth-card-body h1 {
  margin: 0 0 8px;
  color: var(--cpv-ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.025em;
}

.cpv-auth-card-body h2 {
  margin: 0 0 8px;
  color: var(--cpv-ink);
  font-size: 1.15rem;
  font-weight: 800;
}

.cpv-auth-card-body p {
  margin: 0 0 12px;
  color: var(--cpv-muted);
}

.cpv-auth-card-body > section:not(.cpv-facts):not(.cpv-card) {
  padding: 20px 0;
  border-top: 1px solid var(--cpv-line);
}

.cpv-auth-card-body > section:not(.cpv-facts):not(.cpv-card):first-of-type {
  border-top: 0;
  padding-top: 0;
}

.cpv-account-email {
  color: var(--cpv-ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.cpv-auth-card-body form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.cpv-button,
.cpv-auth-card-body button,
.cpv-auth-card-body .button,
.cpv-auth-card-body a.button,
.cpv-auth-card-body input[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cpv-red), var(--cpv-red-dark));
  color: #fff;
  box-shadow: 0 9px 20px rgba(194, 15, 49, .22);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.cpv-auth-card-body form > button,
.cpv-auth-card-body form > .button,
.cpv-auth-card-body form > input[type=submit] {
  align-self: flex-start;
  margin-top: 4px;
}

.cpv-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

.cpv-cta {
  min-width: 168px;
  padding: 12px 28px;
}

.cpv-button.secondary,
.cpv-auth-card-body button.secondary,
.cpv-auth-card-body .button.secondary,
.cpv-auth-card-body a.button.secondary {
  background: #fff;
  color: var(--cpv-red-dark);
  border: 1px solid var(--cpv-red);
  box-shadow: none;
}

.cpv-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  width: 100%;
  max-width: none;
}

.cpv-form-grid > * {
  min-width: 0;
  max-width: 100%;
}

.cpv-form-grid label {
  margin: 0;
}

.cpv-label {
  display: block;
  line-height: 1.3;
}

legend .cpv-label {
  display: inline;
}

.cpv-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
}

.cpv-form-actions form {
  margin: 0;
}

.cpv-form-actions .cpv-button,
.cpv-form-actions button {
  margin: 0;
  width: auto;
  min-width: 11.25rem;
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  box-sizing: border-box;
}

.cpv-help {
  margin: -4px 0 16px;
  color: var(--cpv-muted);
  font-size: .92rem;
  font-weight: 500;
}

.cpv-secret {
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px dashed var(--cpv-red);
  border-radius: 12px;
  background: #fff8f9;
  color: var(--cpv-ink);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .06em;
  word-break: break-all;
}

.cpv-auth-card-body label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 16px;
  max-width: 480px;
  color: var(--cpv-ink);
  font-weight: 700;
}

.cpv-form-grid label,
.cpv-auth-card-body fieldset label,
.cpv-day-slots label,
.cpv-time-row label {
  max-width: none;
}

.cpv-auth-card-body input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.cpv-auth-card-body select,
.cpv-auth-card-body textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #ccbfc3;
  border-radius: 10px;
  background: #fff;
  color: var(--cpv-ink);
  font: inherit;
  box-sizing: border-box;
  accent-color: var(--cpv-red);
  outline: none;
}

.cpv-auth-card-body select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238f0b25' d='M1.2 1.4 6 6.2l4.8-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.cpv-auth-card-body input[type=date],
.cpv-auth-card-body input[type=time],
.cpv-auth-card-body input[type=datetime-local] {
  min-height: 48px;
  color-scheme: light;
}

.cpv-auth-card-body input[type=date]::-webkit-calendar-picker-indicator,
.cpv-auth-card-body input[type=time]::-webkit-calendar-picker-indicator,
.cpv-auth-card-body input[type=datetime-local]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .7;
}

.cpv-auth-card-body input:focus,
.cpv-auth-card-body input:focus-visible,
.cpv-auth-card-body select:focus,
.cpv-auth-card-body select:focus-visible,
.cpv-auth-card-body textarea:focus,
.cpv-auth-card-body textarea:focus-visible {
  outline: 3px solid rgba(194, 15, 49, .18);
  outline-offset: 0;
  border-color: var(--cpv-red);
  box-shadow: none;
}

.cpv-auth-card-body label:has(> input[type=checkbox]),
.cpv-auth-card-body label:has(> input[type=radio]) {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  max-width: none;
  font-weight: 650;
}

.cpv-day-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cpv-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  align-items: end;
}

.cpv-time-row-title {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--cpv-muted);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cpv-overview-header {
  display: block;
  max-width: 46rem;
  margin-bottom: 16px;
}

.cpv-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
}

.cpv-status-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a9b5f;
  box-shadow: 0 0 0 5px #e6f4ea;
}

.cpv-status p {
  margin: 0;
  color: var(--cpv-ink);
  font-weight: 700;
}

.cpv-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.cpv-actions > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}

.cpv-actions a {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  height: auto;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--cpv-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(76, 18, 32, .08);
  color: var(--cpv-ink);
  overflow-wrap: anywhere;
  text-decoration: none;
}

.cpv-actions a:hover {
  border-color: var(--cpv-red);
}

.cpv-actions strong {
  display: block;
  margin-bottom: 6px;
  color: var(--cpv-red-dark);
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.cpv-actions span {
  flex: 1 1 auto;
  color: var(--cpv-muted);
  font-weight: 400;
}

@media (max-width: 960px) {
  .cpv-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cpv-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cpv-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 16px;
  min-width: 0;
  max-width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--cpv-line);
}

.cpv-list li:last-child {
  border-bottom: 0;
}

.cpv-list strong {
  display: block;
}

.cpv-list li > div > span {
  color: var(--cpv-muted);
}

.cpv-list-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.cpv-staff-actions {
  display: grid;
  grid-template-columns: repeat(3, 11.25rem);
  justify-content: end;
}

.cpv-list-actions form {
  display: flex;
  margin: 0;
}

.cpv-list-action-slot {
  display: block;
  min-height: 40px;
}

.cpv-grid section .cpv-list li,
.cpv-actions .cpv-list li {
  grid-template-columns: minmax(0, 1fr);
}

.cpv-list-actions .cpv-button,
.cpv-list-actions button,
.cpv-list-actions a.button {
  margin: 0;
  width: auto;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  box-sizing: border-box;
  white-space: nowrap;
}

.cpv-staff-actions .cpv-button,
.cpv-staff-actions button,
.cpv-staff-actions a.button {
  width: 100%;
}

.cpv-media-list,
.cpv-media-list li,
.cpv-media-item,
.cpv-media-item > div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.cpv-media-list .cpv-list-actions,
.cpv-media-item .cpv-list-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
}

.cpv-auth-card-body input[type=hidden],
input[type=hidden] {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

@media (max-width: 900px) {
  .cpv-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cpv-list li {
    grid-template-columns: minmax(0, 1fr);
  }

  .cpv-staff-actions {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cpv-staff-actions .cpv-button,
  .cpv-staff-actions button,
  .cpv-staff-actions a.button {
    min-width: 0;
  }
}

.cpv-list code,
.cpv-media-meta code,
.cpv-grid section code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cpv-media-item,
.cpv-media-meta {
  min-width: 0;
  max-width: 100%;
}

.cpv-media-meta {
  margin: 8px 0 0;
  color: var(--cpv-muted);
}

.cpv-date-parts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr));
  gap: 8px 12px;
  margin: 0 0 16px;
}

.cpv-inline-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 0 0 16px;
}

.cpv-inline-search label {
  flex: 1 1 220px;
  margin: 0;
}

.cpv-danger-form {
  margin-top: 24px;
}

.cpv-attendance-when {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.cpv-credentials {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.cpv-credentials li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--cpv-line);
}

.cpv-credentials li span {
  display: block;
  color: var(--cpv-muted);
  font-size: .92rem;
}

.cpv-credentials form {
  margin: 0;
}

.cpv-req {
  display: inline;
  color: var(--cpv-red);
  font-weight: 800;
}

[data-cpv-staff-form] [hidden] {
  display: none !important;
}

.cpv-flash {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #e6f4ea;
  color: #1f5c38;
  font-weight: 650;
}

.cpv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 16px;
  align-items: stretch;
  margin: 16px 0 0;
}

.cpv-grid > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.cpv-grid-forms {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.cpv-auth-card-body .cpv-grid section,
.cpv-grid section,
.cpv-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--cpv-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(76, 18, 32, .08);
}

.cpv-grid section h2,
.cpv-card h2 {
  margin: 0;
}

.cpv-grid section p,
.cpv-card p {
  margin: 0;
  flex: 1 1 auto;
}

.cpv-grid section .cpv-button,
.cpv-grid section .button,
.cpv-card .cpv-button,
.cpv-card .button {
  margin: 4px 0 0;
  align-self: flex-start;
}

.cpv-suggest {
  position: relative;
  grid-column: 1 / -1;
}

.cpv-suggest-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--cpv-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(76, 18, 32, .08);
}

.cpv-suggest-list button {
  display: block;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cpv-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cpv-suggest-list button:hover,
.cpv-suggest-list button:focus {
  background: #f8e6ea;
}

.cpv-auth-card-body form > button {
  margin: 8px 0 20px;
}

.cpv-facts,
.cpv-auth-card-body section.cpv-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 22px;
  padding: 20px 22px;
  border: 1px solid var(--cpv-line);
  border-radius: 14px;
  background: #fff;
  box-sizing: border-box;
}

.cpv-facts > *,
.cpv-facts-copy {
  min-width: 0;
}

.cpv-facts h2,
.cpv-auth-card-body .cpv-facts h2 {
  margin: 0;
}

.cpv-facts p,
.cpv-auth-card-body .cpv-facts p {
  margin: 0;
  color: #5b6573;
}

.cpv-field-hint {
  margin: 4px 0 0;
  color: #5b6573;
  font-size: 0.92rem;
}

.cpv-facts-copy {
  display: grid;
  gap: 8px;
}

.cpv-facts-action {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
}

.cpv-facts-action .cpv-button,
.cpv-facts-action .button,
.cpv-auth-card-body .cpv-facts .cpv-button,
.cpv-auth-card-body .cpv-facts .button {
  margin: 0;
  justify-self: end;
  align-self: center;
}

.cpv-facts dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.cpv-facts dl > div {
  display: grid;
  grid-template-columns: minmax(12rem, 34%) minmax(0, 1fr);
  gap: 8px 28px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--cpv-line);
}

.cpv-facts dl > div:first-child {
  padding-top: 4px;
}

.cpv-facts dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cpv-facts dt,
.cpv-facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cpv-facts dt {
  color: #5b6573;
  font-weight: 700;
}

.cpv-facts dd {
  font-weight: 650;
}

.cpv-auth-card-body p a:not(.cpv-button):not(.button),
.cpv-auth-card-body li a:not(.cpv-button):not(.button),
.cpv-auth-card-body table a:not(.cpv-button):not(.button),
.cpv-auth-card-body nav a:not(.cpv-button):not(.button) {
  color: var(--cpv-red-dark);
  font-weight: 700;
  text-decoration: none;
}

.cpv-auth-card-body fieldset {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--cpv-line);
  border-radius: 12px;
}

.cpv-auth-card-body legend {
  padding: 0 6px;
  color: var(--cpv-ink);
  font-weight: 800;
}

.cpv-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f8e6ea;
  color: var(--cpv-red-dark);
  font-size: .85rem;
  font-weight: 700;
}

.cpv-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff1f0;
  color: #9b1c1c;
  font-weight: 650;
  line-height: 1.45;
}

.cpv-table-wrap {
  overflow: auto;
  margin: 16px 0;
}

.cpv-table {
  width: 100%;
  border-collapse: collapse;
}

.cpv-table th,
.cpv-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--cpv-line);
  overflow-wrap: anywhere;
}

.cpv-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  gap: 16px;
}

.cpv-slots > * {
  min-width: 0;
  max-width: 100%;
}

.cpv-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.cpv-check input {
  width: auto;
  min-height: auto;
  margin: 3px 0 0;
  flex: none;
}

.cpv-choices label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cpv-line);
  font-weight: 650;
}

.cpv-choices label:last-child {
  border-bottom: 0;
}

.cpv-auth-card-body input[type=checkbox],
.cpv-auth-card-body input[type=radio] {
  width: auto;
  min-height: auto;
  margin: 3px 0 0;
}

.cpv-auth-card-body textarea {
  width: 100%;
  min-height: 140px;
}

.cpv-inline-forms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cpv-inline-forms form {
  margin: 0;
}

.cpv-kiosk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 16px;
  align-items: stretch;
  margin: 18px 0 8px;
}

.cpv-kiosk-grid > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.cpv-kiosk-grid form {
  display: flex;
  flex-direction: column;
  margin: 0;
  gap: 0;
}

.cpv-kiosk-person,
.cpv-kiosk-grid button.cpv-kiosk-person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  min-height: 92px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--cpv-line);
  border-radius: 14px;
  background: #fff;
  color: var(--cpv-ink);
  box-shadow: none;
  overflow-wrap: anywhere;
  text-align: left;
  text-decoration: none;
}

.cpv-kiosk-person:hover,
.cpv-kiosk-grid button.cpv-kiosk-person:hover {
  border-color: var(--cpv-red);
}

.cpv-kiosk-grid form > button.cpv-kiosk-person {
  align-self: stretch;
  margin: 0;
}

.cpv-kiosk-person strong {
  display: block;
  margin-bottom: 6px;
  color: var(--cpv-red-dark);
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.cpv-kiosk-person span {
  color: var(--cpv-muted);
  font-weight: 500;
}

.cpv-kiosk-pin input {
  font-size: 1.4rem;
  letter-spacing: .2em;
  text-align: center;
}

@media (max-width: 640px) {
  .cpv-logo--horizontal {
    display: none;
  }

  .cpv-logo--mark {
    display: block;
  }

  .cpv-brand-plate {
    padding: 12px 16px;
  }

  .cpv-auth-nav form {
    width: 100%;
    margin-left: 0;
  }

  .cpv-page-actions .cpv-button,
  .cpv-credentials .button {
    width: 100%;
  }

  .cpv-list li,
  .cpv-grid section .cpv-list li,
  .cpv-actions .cpv-list li {
    grid-template-columns: minmax(0, 1fr);
  }

  .cpv-list-actions,
  .cpv-staff-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .cpv-list-action-slot {
    display: none;
  }

  .cpv-list-actions .cpv-button,
  .cpv-list-actions button,
  .cpv-list-actions a.button {
    min-width: 0;
  }

  .cpv-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cpv-credentials li {
    flex-direction: column;
    align-items: flex-start;
  }

  .cpv-time-row {
    grid-template-columns: 1fr;
  }

  .cpv-facts dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cpv-facts-action {
    grid-template-columns: 1fr;
  }

  .cpv-actions {
    grid-template-columns: 1fr;
  }

  .cpv-facts-action .cpv-button,
  .cpv-facts-action .button,
  .cpv-auth-card-body .cpv-facts .cpv-button,
  .cpv-auth-card-body .cpv-facts .button {
    justify-self: stretch;
    width: 100%;
  }
}

.cpv-auth-card,
.cpv-auth-card-body,
.cpv-grid section,
.cpv-facts,
.cpv-card {
  min-width: 0;
  max-width: 100%;
}

.cpv-auth-card-body .cpv-grid section,
.cpv-grid section {
  overflow-x: visible;
}

.cpv-auth-card-body .cpv-facts .cpv-facts-stamp,
.cpv-facts-stamp,
.cpv-search-summary {
  margin: 12px 0 0;
  color: var(--cpv-muted);
  font-size: .92rem;
  font-weight: 500;
}

.cpv-search-group {
  margin: 22px 0 0;
}

.cpv-search-group h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cpv-legal-footer {
  margin-top: auto;
  padding: 18px clamp(16px, 4vw, 32px) 20px;
  text-align: center;
}

.cpv-legal-footer + .cpv-legal-footer {
  display: none;
}

.cpv-legal-footer p {
  margin: 0 auto;
  max-width: 46rem;
  color: #8a93a3;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: .01em;
}

.cpv-shell--reception .cpv-legal-footer p,
.cpv-shell--operation .cpv-legal-footer p,
.cpv-shell--platform .cpv-legal-footer p {
  color: #7d8796;
}

html.cpv-kiosk-pending .cpv-auth-hero,
html.cpv-kiosk-pending .cpv-legal-footer,
html.cpv-kiosk-pending .cpv-console-bar,
body.cpv-kiosk-lock .cpv-auth-hero,
body.cpv-kiosk-lock .cpv-legal-footer,
body.cpv-kiosk-lock .cpv-console-bar {
  display: none !important;
}

html.cpv-kiosk-pending,
html.cpv-kiosk-pending body,
body.cpv-kiosk-lock {
  overflow: hidden;
}

html.cpv-kiosk-pending .cpv-kiosk-stage,
.cpv-kiosk-stage.cpv-kiosk-open {
  position: fixed;
  inset: 0;
  z-index: 80;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 20px clamp(16px, 4vw, 36px);
  border: 0;
  border-radius: 0;
  background: var(--cpv-bg);
  box-shadow: none;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

html.cpv-kiosk-pending .cpv-auth-card,
body.cpv-kiosk-lock .cpv-auth-card {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

html.cpv-kiosk-pending .cpv-kiosk-scroll,
.cpv-kiosk-stage.cpv-kiosk-open .cpv-kiosk-scroll,
.cpv-kiosk-stage:fullscreen .cpv-kiosk-scroll,
.cpv-kiosk-stage:-webkit-full-screen .cpv-kiosk-scroll {
  max-height: none;
  height: calc(100% - 56px);
}

.cpv-kiosk-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: clamp(22px, 4vw, 34px) clamp(22px, 4vw, 34px) 0;
}

html.cpv-kiosk-pending .cpv-kiosk-toolbar,
.cpv-kiosk-stage.cpv-kiosk-open .cpv-kiosk-toolbar,
.cpv-kiosk-stage:fullscreen .cpv-kiosk-toolbar,
.cpv-kiosk-stage:-webkit-full-screen .cpv-kiosk-toolbar {
  padding: 0 0 12px;
}

.cpv-kiosk-toolbar .cpv-button {
  margin-top: 0;
}

.cpv-kiosk-stage .cpv-auth-card-body {
  padding-top: 12px;
}

html.cpv-kiosk-pending .cpv-kiosk-stage .cpv-auth-card-body,
.cpv-kiosk-stage.cpv-kiosk-open .cpv-auth-card-body,
.cpv-kiosk-stage:fullscreen .cpv-auth-card-body,
.cpv-kiosk-stage:-webkit-full-screen .cpv-auth-card-body {
  padding: 0;
}

.cpv-kiosk-scroll {
  max-height: min(70vh, 44rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-right: 4px;
}

.cpv-kiosk-stage:fullscreen,
.cpv-kiosk-stage:-webkit-full-screen {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 20px clamp(16px, 4vw, 36px);
  background: var(--cpv-bg);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.cpv-kiosk-stage:fullscreen .cpv-kiosk-scroll,
.cpv-kiosk-stage:-webkit-full-screen .cpv-kiosk-scroll {
  max-height: none;
  height: calc(100% - 56px);
}

@media print {
  .cpv-auth-hero,
  .cpv-kiosk-toolbar,
  .cpv-page-actions,
  .cpv-search-filters,
  .cpv-auth-nav {
    display: none !important;
  }

  .cpv-legal-footer p {
    color: #536176;
  }

  .cpv-kiosk-scroll {
    max-height: none;
    overflow: visible;
  }
}

.cpv-platform-head,
.cpv-platform-section-head,
.cpv-platform-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.cpv-platform-head {
  margin: 0 0 22px;
}

.cpv-platform-head-copy {
  min-width: min(100%, 280px);
  flex: 1 1 16rem;
}

.cpv-platform-head-copy p {
  margin: 6px 0 0;
}

.cpv-platform-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0;
}

.cpv-auth-card-body .cpv-platform-head-copy p {
  margin: 6px 0 0;
}

.cpv-auth-card-body .cpv-platform-meta p,
.cpv-platform-meta .cpv-mark,
.cpv-platform-meta .cpv-platform-updated,
.cpv-auth-card-body .cpv-platform-meta .cpv-button {
  margin: 0;
  line-height: 1.2;
}

.cpv-platform-kpis,
.cpv-platform-company-grid,
.cpv-platform-infra-grid,
.cpv-platform-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}

.cpv-platform-company-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.cpv-platform-kpi,
.cpv-platform-company,
.cpv-platform-panel,
.cpv-platform-chip {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #c5d0de;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 28, 48, .06);
}

.cpv-platform-kpi span,
.cpv-platform-company header span,
.cpv-platform-updated {
  color: var(--cpv-muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cpv-platform-kpi strong,
.cpv-meter-value {
  display: block;
  margin-top: 6px;
  color: var(--cpv-ink);
  font-size: 1.7rem;
  font-weight: 800;
}

.cpv-platform-kpi-split {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.cpv-platform-kpi-split li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: var(--cpv-muted);
  font-size: .92rem;
  font-weight: 600;
}

.cpv-platform-kpi-split strong {
  display: inline;
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.cpv-platform-company header,
.cpv-platform-company ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.cpv-platform-company h3 {
  margin: 10px 0 4px;
}

.cpv-platform-company ul {
  display: grid;
  margin: 12px 0;
  padding: 0;
  list-style: none;
  gap: 4px;
}

.cpv-platform-company li,
.cpv-platform-panel p {
  margin: 0;
  color: var(--cpv-muted);
}

.cpv-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cpv-mark span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.cpv-mark--ok { color: #1f7a4d; }
.cpv-mark--alerta { color: #b58114; }
.cpv-mark--critico { color: var(--cpv-red); }
.cpv-mark--inativa { color: #6b7787; }

.cpv-meter {
  height: 10px;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf5;
}

.cpv-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1c2740, var(--cpv-red));
}

.cpv-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  margin: 8px 0 0;
}

.cpv-spark span {
  flex: 1;
  min-width: 4px;
  background: #1c2740;
  border-radius: 2px 2px 0 0;
}

.cpv-platform-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cpv-platform-tools label {
  min-width: min(100%, 220px);
}

.cpv-platform-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 720px) {
  .cpv-platform-head,
  .cpv-platform-section-head,
  .cpv-platform-meta,
  .cpv-platform-tools {
    align-items: stretch;
  }

  .cpv-platform-meta .cpv-button {
    width: auto;
    justify-self: start;
    align-self: flex-start;
  }

  .cpv-platform-company-grid,
  .cpv-platform-kpis,
  .cpv-platform-infra-grid {
    grid-template-columns: 1fr;
  }
}

.cpv-actions > .cpv-desk-tools-title,
.cpv-actions > .cpv-desk-tools,
#cpv-live-board {
  grid-column: 1 / -1;
}

.cpv-desk-tools-title {
  margin: 8px 0 0;
  font-size: 1.05rem;
}

.cpv-desk-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cpv-desk-tools a {
  padding: 14px;
}

#cpv-live-board {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--cpv-line);
  border-radius: 14px;
  background: #fff;
}

.cpv-floor-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cpv-floor-list li {
  padding: 10px 0;
  border-top: 1px solid var(--cpv-line);
}

.cpv-ficha {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--cpv-line);
  border-radius: 14px;
  background: #fff;
}

.cpv-pet-sheet {
  display: grid;
  gap: 10px;
}

.cpv-pet-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(12rem, 16rem);
  gap: 10px;
  align-items: center;
}

.cpv-inline-add {
  margin-top: 18px;
}

@media (max-width: 960px) {
  .cpv-desk-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .cpv-desk-tools,
  .cpv-pet-row {
    grid-template-columns: 1fr;
  }
}

