﻿:root {
  --arno-bg: #f3f3f1;
  --arno-panel: rgba(255, 255, 255, 0.6);
  --arno-border: rgba(17, 17, 17, 0.12);
  --arno-text: #111111;
  --arno-muted: #393939;
  --arno-accent: #1d1d1d;
  --arno-shadow: 0 20px 40px rgba(17, 17, 17, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--arno-bg);
  color: var(--arno-text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img { display: block; max-width: 100%; }

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.legal-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 16px;
  color: var(--arno-muted);
  font-size: 0.7rem;
}

.legal-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.legal-footer a {
  opacity: 0.7;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.arno-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 243, 241, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--arno-border);
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.arno-header.header-hidden {
  transform: translateY(-100%);
}

.arno-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-wordmark {
  width: min(220px, 34vw);
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--arno-muted);
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: rgba(17, 17, 17, 0.05);
  color: var(--arno-text);
}

.content-card {
  background: var(--arno-panel);
  border: 1px solid var(--arno-border);
  border-radius: 18px;
  box-shadow: var(--arno-shadow);
  padding: 28px;
  margin-top: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--arno-muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0 0 12px;
  color: var(--arno-text);
}

h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 0.95;
}

p {
  margin: 0 0 14px;
  color: var(--arno-muted);
  line-height: 1.6;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--arno-border);
  background: var(--arno-text);
  color: #fff;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button.secondary {
  background: transparent;
  color: var(--arno-text);
}

.button:hover {
  transform: translateY(-1px);
}

.graph-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.graph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.graph-header span {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--arno-text);
}

.simple-graph {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  min-height: 180px;
  padding-top: 12px;
}

.simple-point {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.simple-bar {
  width: 100%;
  min-height: 18px;
  border-radius: 14px 14px 8px 8px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: rgba(17, 17, 17, 0.9);
  font-size: 0.7rem;
  font-weight: 700;
  padding-top: 8px;
}

.simple-point small {
  color: var(--arno-muted);
  font-size: 0.68rem;
  text-align: center;
  display: block;
  max-width: 100%;
  line-height: 1.2;
}

.fancy-progress svg {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.03), rgba(17, 17, 17, 0.01));
}

.axis {
  stroke: rgba(17, 17, 17, 0.3);
  stroke-width: 1.5;
}

.fancy-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--arno-muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-done { background: #111111; }
.dot-active { background: #5b5b5b; }
.dot-pending { background: #b7b7b7; }
.dot-blocked { background: #e1e1e1; }

.info-panel {
  background: #ffffff;
  border: 1px solid var(--arno-border);
  border-radius: 18px;
  padding: 24px;
}

.info-panel ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--arno-muted);
}

.project-progress {
  margin: 20px 0;
}

.project-progress-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--arno-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-progress-heading span:last-child {
  color: var(--arno-text);
  font-weight: 700;
}

.project-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e8e8;
}

.project-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--arno-text);
  transition: width 0.35s ease;
}

.event-browser {
  margin-top: 28px;
}

.section-heading,
.customer-event-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.event-count,
.event-status {
  color: var(--arno-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
}

.customer-event {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--arno-border);
}

.customer-event:first-child {
  border-top: 0;
}

.customer-event-marker {
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.customer-event-content p {
  margin-bottom: 10px;
}

.customer-event-heading h3 {
  margin-bottom: 0;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 10px 0 0;
}

.event-meta div {
  display: flex;
  gap: 6px;
}

.event-meta dt {
  color: var(--arno-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.event-meta dd {
  margin: 0;
  font-size: 0.78rem;
}

.event-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.event-actions form {
  display: block;
}

.event-actions .button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.event-effect-note {
  color: var(--arno-muted);
  font-size: 0.78rem;
  font-style: italic;
}

.event-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  border: 1px solid var(--arno-border);
  padding: 10px 12px;
}

.event-effects legend {
  padding: 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.effect-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
}

.effect-option input[type="hidden"] {
  display: none;
}

.effect-option input[type="checkbox"] {
  width: auto;
}

.effect-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font: inherit;
}

.effect-help {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 1px solid var(--arno-muted);
  border-radius: 50%;
  background: transparent;
  color: var(--arno-muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.effect-help::after {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: min(260px, 70vw);
  padding: 8px 10px;
  border-radius: 4px;
  background: #24343b;
  color: #fff;
  content: attr(data-tooltip);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 3px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms;
  pointer-events: none;
}

.effect-help:hover::after,
.effect-help:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.effect-help:focus-visible {
  outline: 2px solid var(--arno-accent, #187b78);
  outline-offset: 2px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.module-box {
  background: #fff;
  border: 1px solid var(--arno-border);
  border-radius: 16px;
  padding: 20px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--arno-muted);
  font-size: 0.9rem;
}

input,
button,
select {
  font: inherit;
}

input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.15);
  background: rgba(255, 255, 255, 0.8);
  color: var(--arno-text);
}

select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.15);
  background: rgba(255, 255, 255, 0.8);
  color: var(--arno-text);
}

.event-editor {
  border: 1px solid var(--arno-border);
  border-radius: 12px;
  padding: 18px;
}

.event-editor legend {
  padding: 0 8px;
  font-weight: 700;
}

.event-row {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--arno-border);
}

.event-row:first-child { padding-top: 0; }
.event-row:last-child { border-bottom: 0; }

.event-dates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.remove-event {
  justify-self: start;
}

button[type="submit"] {
  border: none;
  background: var(--arno-text);
  color: white;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 760px) {
  .arno-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-wordmark {
    width: min(300px, 60vw);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .customer-event-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* Duplicate stylesheet block retained below for now; keep its header values aligned. */
:root {
  --arno-bg: #f3f3f1;
  --arno-panel: rgba(255, 255, 255, 0.6);
  --arno-border: rgba(17, 17, 17, 0.12);
  --arno-text: #111111;
  --arno-muted: #393939;
  --arno-accent: #1d1d1d;
  --arno-shadow: 0 20px 40px rgba(17, 17, 17, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--arno-bg);
  color: var(--arno-text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img { display: block; max-width: 100%; }

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.arno-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 243, 241, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--arno-border);
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.arno-header.header-hidden {
  transform: translateY(-100%);
}

.arno-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-wordmark {
  width: min(220px, 34vw);
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--arno-muted);
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: rgba(17, 17, 17, 0.05);
  color: var(--arno-text);
}

.content-card {
  background: var(--arno-panel);
  border: 1px solid var(--arno-border);
  border-radius: 18px;
  box-shadow: var(--arno-shadow);
  padding: 28px;
  margin-top: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--arno-muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0 0 12px;
  color: var(--arno-text);
}

h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 0.95;
}

p {
  margin: 0 0 14px;
  color: var(--arno-muted);
  line-height: 1.6;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--arno-border);
  background: var(--arno-text);
  color: #fff;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button.secondary {
  background: transparent;
  color: var(--arno-text);
}

.button:hover {
  transform: translateY(-1px);
}

.graph-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.graph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.graph-header span {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--arno-text);
}

.simple-graph {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  min-height: 180px;
  padding-top: 12px;
}

.simple-point {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.simple-bar {
  width: 100%;
  min-height: 18px;
  border-radius: 14px 14px 8px 8px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: rgba(17, 17, 17, 0.9);
  font-size: 0.7rem;
  font-weight: 700;
  padding-top: 8px;
}

.simple-point small {
  color: var(--arno-muted);
  font-size: 0.68rem;
  text-align: center;
  display: block;
  max-width: 100%;
  line-height: 1.2;
}

.fancy-progress svg {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.03), rgba(17, 17, 17, 0.01));
}

.axis {
  stroke: rgba(17, 17, 17, 0.3);
  stroke-width: 1.5;
}

.fancy-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--arno-muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-done { background: #111111; }
.dot-active { background: #5b5b5b; }
.dot-pending { background: #b7b7b7; }
.dot-blocked { background: #e1e1e1; }

.info-panel {
  background: #ffffff;
  border: 1px solid var(--arno-border);
  border-radius: 18px;
  padding: 24px;
}

.info-panel ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--arno-muted);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.module-box {
  background: #fff;
  border: 1px solid var(--arno-border);
  border-radius: 16px;
  padding: 20px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--arno-muted);
  font-size: 0.9rem;
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.15);
  background: rgba(255, 255, 255, 0.8);
  color: var(--arno-text);
}

button[type="submit"] {
  border: none;
  background: var(--arno-text);
  color: white;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 760px) {
  .arno-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-wordmark {
    width: min(300px, 60vw);
  }

  .hero {
    grid-template-columns: 1fr;
  }
}

/* Keep the header compact even while legacy duplicate styles are present below. */
.arno-header {
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.arno-header.header-hidden {
  transform: translateY(-100%);
}

.arno-header-inner {
  padding: 10px 24px;
}

.brand-wordmark {
  width: min(220px, 34vw);
}

.simple-bar-done { background: #2b292a; color: #f8f7f6; }
.simple-bar-active { background: #d0fa94; }
.simple-bar-pending { background: #dbd7d2; }
.simple-bar-blocked { background: #e9e7e4; }

/* Staff: flash messages */
.flash-messages {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.flash {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--arno-border);
  font-size: 0.9rem;
}

.flash.success { background: #eefbdc; }
.flash.error { background: #fde6dc; }

/* Staff: sectioned project form */
.project-form {
  gap: 16px;
}

.form-section {
  border: 1px solid var(--arno-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.form-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.form-section > summary::-webkit-details-marker { display: none; }

.form-section > summary::before {
  content: "▸";
  margin-right: 10px;
  transition: transform 0.15s ease;
}

.form-section[open] > summary::before { transform: rotate(90deg); }

.form-section-title { flex: 1; }

.form-section-state {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1efed;
  color: var(--arno-muted);
}

.form-section-state.is-complete { background: #d0fa94; color: #2b292a; }

.form-section-body {
  display: grid;
  gap: 18px;
  padding: 4px 20px 20px;
}

.form-field {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-label {
  font-weight: 600;
  color: var(--arno-text);
}

.remind-consequences > summary {
  font-size: 0.85rem;
  font-weight: 400;
}

.form-label abbr {
  text-decoration: none;
  color: #f49773;
}

.form-help {
  font-size: 0.8rem;
  color: var(--arno-muted);
  line-height: 1.45;
}

.form-help a { text-decoration: underline; }

.form-choice-group { gap: 8px; }

.form-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.form-choice input { width: auto; }
.form-choice.is-disabled { opacity: 0.45; }

.mail-list {
  display: grid;
  gap: 8px;
}

.mail-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.mail-row:has(.mail-remove[hidden]) {
  grid-template-columns: 1fr;
}

.mail-remove,
.mail-add {
  border: 1px solid var(--arno-border);
  background: transparent;
  color: var(--arno-text);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.mail-remove {
  width: 46px;
  height: 46px;
  font-size: 1.2rem;
}

.mail-add {
  justify-self: start;
  padding: 8px 14px;
}

.staff-project-overview .project-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.staff-project-overview .project-card {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #c8ceca;
  border-radius: 8px;
}

.staff-project-overview .project-card[data-project-status="inactive"] {
  background: #DBD7D2;
}

.staff-project-overview .project-card[data-project-status="active"] {
  border: 3px solid #D0FA94;
}

.staff-project-overview .project-card h2 {
  margin: 6px 0 10px;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.staff-project-overview .project-card p {
  overflow-wrap: anywhere;
}

.staff-project-overview .project-card dl {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin: 16px 0 0;
}

.staff-project-overview .project-card dt {
  color: var(--arno-muted);
  font-size: 0.8rem;
}

.staff-project-overview .project-card dd {
  margin: 4px 0 0;
  font-weight: 600;
}

.staff-project-overview .button-row {
  align-items: center;
  gap: 10px;
}

.staff-project-overview .button-row form {
  display: flex;
  margin: 0;
}

.staff-project-overview .button {
  border-radius: 6px;
  max-width: 100%;
}

.staff-project-overview .button.secondary {
  border: 1px solid var(--arno-border);
}

.staff-project-overview .project-view {
  background: #D0FA94;
  border-color: #D0FA94;
  color: #111111;
}

.staff-project-overview .project-delete {
  background: #F49773;
  border-color: #F49773;
  color: #111111;
}

/* Staff: customer access panel */
.access-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px dashed var(--arno-border);
  border-radius: 12px;
}

.access-panel form { display: block; }

.access-status {
  margin: 0;
  font-size: 0.85rem;
}

.access-panel .button-row { margin-top: 10px; }

.button.button-reset,
button.button-reset[type="submit"] {
  background: #f49773;
  border-color: #f49773;
  color: #2b292a;
}

.button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.cv .cv-view-switch {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 10px max(24px, calc((100% - 1180px) / 2));
  color: var(--view-switch-color);
  background: transparent;
  font-size: 0.72rem;
  line-height: 1.5;
}

.cv .cv-view-switch details {
  width: fit-content;
  max-width: 100%;
}

.cv .cv-view-switch summary {
  width: fit-content;
  cursor: pointer;
  opacity: 0.65;
}

.cv .cv-view-switch summary:hover,
.cv .cv-view-switch summary:focus-visible {
  opacity: 1;
}

.cv .cv-view-switch details nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
}

.cv .cv-footer-info,
.cv .cv-footer-info nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.cv .cv-view-switch a {
  color: inherit;
  opacity: 0.7;
  text-decoration: none;
}

.cv .cv-view-switch a:hover,
.cv .cv-view-switch a:focus-visible,
.cv .cv-view-switch a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Customer: upload status dialog (per-view styling lives in css/views/*.css) */
.cv .cv-upload-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}

.cv .cv-dialog-body {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 28px;
}

.cv .cv-upload-dialog h2,
.cv .cv-upload-dialog p {
  margin: 0;
  color: inherit;
}

.cv .cv-dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: block;
}

.cv .cv-dialog-close button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}

.cv .cv-dialog-close button:hover,
.cv .cv-dialog-close button:focus-visible { opacity: 1; }

.cv .cv-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 8px;
}

.cv .cv-dialog-actions form { display: block; }

.cv .cv-btn.cv-action-pending {
  cursor: progress;
  opacity: 0.72;
}

.cv .cv-btn.cv-action-pending::before {
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.55em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: cv-action-spin 700ms linear infinite;
}

.cv .cv-action-status:not([hidden]) {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.4;
}

@keyframes cv-action-spin {
  to { transform: rotate(360deg); }
}

.cv .cv-dialog-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cv .cv-link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cv-d { --view-switch-color: #dbd7d2; }
.cv-i { --view-switch-color: #6f6a67; }
.cv-s { --view-switch-color: #7a7471; }
.cv-c { --view-switch-color: #2b292a; }

