.rpd-app {
  --rpd-primary: #005c91;
  --rpd-primary-hover: #0076b8;
  --rpd-secondary: #fab325;
  --rpd-secondary-hover: #ffc44f;
  --rpd-background: #090a0b;
  --rpd-surface: #191b1e;
  --rpd-surface-soft: #25282d;
  --rpd-border: #3a3e44;
  --rpd-text: #f5f7f8;
  --rpd-muted: #b4bbc0;
  --rpd-danger: #ff7373;
  color: var(--rpd-text);
  color-scheme: dark;
  font-family: inherit;
  line-height: 1.55;
  max-width: 920px;
  margin: 0 auto;
}
.rpd-app * { box-sizing: border-box; }
.rpd-app h2, .rpd-app h3 { color: var(--rpd-text); margin-top: 0; }
.rpd-topbar, .rpd-project-head, .rpd-entry-head, .rpd-actions, .rpd-meta, .rpd-comments-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rpd-topbar { justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--rpd-border); }
.rpd-brand { font-weight: 700; }
.rpd-link { color: var(--rpd-secondary); font-weight: 600; }
.rpd-link:hover { color: var(--rpd-secondary-hover); }
.rpd-project-head { justify-content: space-between; align-items: end; margin: 26px 0 20px; }
.rpd-project-head h2 { margin: 4px 0; }
.rpd-project-tools { display: grid; justify-items: end; gap: 9px; }
.rpd-eyebrow { display: block; color: var(--rpd-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.rpd-muted { color: var(--rpd-muted); }
.rpd-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.rpd-summary > div { background: var(--rpd-surface-soft); border: 1px solid var(--rpd-border); border-radius: 10px; padding: 14px; }
.rpd-summary span, .rpd-summary strong { display: block; }
.rpd-summary span { color: var(--rpd-muted); font-size: 13px; }
.rpd-summary strong { margin-top: 4px; }
.rpd-app .rpd-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--rpd-secondary);
  border-radius: 5px;
  background: var(--rpd-secondary);
  color: #111315;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
}
.rpd-app .rpd-button:hover { border-color: var(--rpd-secondary-hover); background: var(--rpd-secondary-hover); color: #111315; }
.rpd-app .rpd-button:disabled { cursor: wait; opacity: .72; }
.rpd-app .rpd-button:focus-visible { outline: 3px solid var(--rpd-secondary); outline-offset: 3px; }
.rpd-app .rpd-button-primary { background: var(--rpd-primary); border-color: var(--rpd-primary); color: #fff; }
.rpd-app .rpd-button-primary:hover { background: var(--rpd-primary-hover); border-color: var(--rpd-primary-hover); color: #fff; }
.rpd-app .rpd-button-primary:focus-visible { outline-color: var(--rpd-primary-hover); }
.rpd-app .rpd-button-danger { border-color: var(--rpd-danger); background: transparent; color: var(--rpd-danger); }
.rpd-app .rpd-button-danger:hover { border-color: var(--rpd-danger); background: var(--rpd-danger); color: #111315; }
.rpd-entry-form { display: none; margin: 18px 0 24px; padding: 18px; border: 1px solid var(--rpd-border); border-radius: 12px; background: var(--rpd-surface); }
.rpd-entry-form.is-open { display: block; }
.rpd-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.rpd-wide { grid-column: 1 / -1; }
.rpd-field { display: grid; gap: 6px; font-weight: 600; }
.rpd-field input, .rpd-field textarea, .rpd-field select, .rpd-project-head select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--rpd-border);
  border-radius: 8px;
  padding: 9px 11px;
  background: var(--rpd-background);
  color: var(--rpd-text);
  font: inherit;
}
.rpd-field input::placeholder, .rpd-field textarea::placeholder { color: #8f979d; opacity: 1; }
.rpd-field input:focus, .rpd-field textarea:focus, .rpd-field select:focus, .rpd-project-head select:focus {
  border-color: var(--rpd-secondary);
  outline: 2px solid color-mix(in srgb, var(--rpd-secondary) 40%, transparent);
  outline-offset: 1px;
}
.rpd-field textarea { min-height: 120px; resize: vertical; }
.rpd-time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rpd-upload { display: grid; gap: 6px; padding: 18px; border: 1px dashed var(--rpd-secondary); border-radius: 10px; background: var(--rpd-background); cursor: pointer; }
.rpd-upload > span { color: var(--rpd-secondary); font-weight: 700; }
.rpd-upload input { width: 100%; }
.rpd-upload small { color: var(--rpd-muted); }
.rpd-worker-picker { border: 1px solid var(--rpd-border); border-radius: 8px; background: var(--rpd-background); }
.rpd-worker-picker summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 9px 11px; cursor: pointer; list-style: none; }
.rpd-worker-picker summary::-webkit-details-marker { display: none; }
.rpd-worker-picker summary::after { content: '▾'; color: var(--rpd-secondary); }
.rpd-worker-picker[open] summary::after { content: '▴'; }
.rpd-worker-options { display: grid; gap: 8px; padding: 4px 12px 12px; border-top: 1px solid var(--rpd-border); }
.rpd-worker-options label { display: flex; align-items: center; gap: 8px; min-height: 36px; font-weight: 400; }
.rpd-worker-options input { width: auto; min-height: 0; }
.rpd-worker-times { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--rpd-secondary); border-radius: 10px; background: var(--rpd-background); }
.rpd-worker-times[hidden], .rpd-general-time[hidden], .rpd-general-commute[hidden], .rpd-worker-time-row[hidden] { display: none; }
.rpd-worker-time-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(220px, 1fr); gap: 14px; align-items: end; padding-top: 10px; border-top: 1px solid var(--rpd-border); }
.rpd-worker-time-row > span { align-self: center; color: var(--rpd-secondary); font-weight: 700; }
.rpd-commute-field { display: grid; gap: 7px; color: var(--rpd-text); font-weight: 600; }
.rpd-commute-field small { color: var(--rpd-muted); font-weight: 400; }
.rpd-commute-control { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(190px, auto); gap: 14px; align-items: center; }
.rpd-commute-range { width: 100%; accent-color: var(--rpd-secondary); cursor: pointer; }
.rpd-commute-output { min-width: 190px; padding: 8px 10px; border: 1px solid var(--rpd-border); border-radius: 8px; background: var(--rpd-background); color: var(--rpd-secondary); font-weight: 700; text-align: center; }
.rpd-worker-time-row .rpd-commute-field { grid-column: 1 / -1; }
.rpd-actions { margin-top: 14px; }
.rpd-timeline { display: grid; gap: 14px; margin-top: 22px; }
.rpd-day { display: flex; align-items: center; gap: 12px; color: var(--rpd-muted); }
.rpd-day::after { content: ''; height: 1px; background: var(--rpd-border); flex: 1; }
.rpd-entry { border: 1px solid var(--rpd-border); border-radius: 12px; padding: 18px; background: var(--rpd-surface); }
.rpd-entry-head { justify-content: space-between; }
.rpd-entry-head h3 { margin-bottom: 0; }
.rpd-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--rpd-secondary); color: #111315; font-size: 13px; font-weight: 700; }
.rpd-content { margin: 14px 0; }
.rpd-meta { color: var(--rpd-muted); font-size: 13px; }
.rpd-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.rpd-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.rpd-existing-images { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.rpd-existing-images label { display: grid; gap: 5px; }
.rpd-existing-images img { width: 100%; height: auto; border-radius: 6px; }
.rpd-comments { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rpd-border); }
.rpd-comments-head { justify-content: space-between; }
.rpd-comment { margin-top: 10px; padding: 12px; border: 1px solid var(--rpd-border); border-radius: 8px; background: var(--rpd-surface-soft); }
.rpd-comment strong { font-size: 13px; }
.rpd-comment p:last-child { margin-bottom: 0; }
.rpd-comment-form { display: none; gap: 12px; margin-top: 14px; }
.rpd-comment-form.is-open { display: grid; }
.rpd-comment-toggle { margin-top: 12px; }
.rpd-delete-form { margin: 0; }
.rpd-notice { padding: 12px 14px; margin-bottom: 16px; border-radius: 8px; }
.rpd-notice-success { border: 1px solid var(--rpd-secondary); background: var(--rpd-surface-soft); color: var(--rpd-secondary); }
.rpd-notice-error { border: 1px solid var(--rpd-danger); background: var(--rpd-surface-soft); color: var(--rpd-danger); }
.rpd-empty { padding: 22px; border: 1px solid var(--rpd-border); border-radius: 10px; background: var(--rpd-surface); text-align: center; }
.rpd-login { max-width: 480px; }
.rpd-login-card { padding: 24px; border: 1px solid var(--rpd-border); border-radius: 12px; background: var(--rpd-surface); }
.rpd-login-card form { display: grid; gap: 14px; }
.rpd-customer-accordions { display: grid; gap: 12px; margin-top: 22px; }
.rpd-accordion { border: 1px solid var(--rpd-border); border-radius: 10px; background: var(--rpd-surface); overflow: hidden; }
.rpd-accordion > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 16px; color: var(--rpd-text); font-weight: 700; cursor: pointer; list-style: none; }
.rpd-accordion > summary::-webkit-details-marker { display: none; }
.rpd-accordion > summary::after { content: '+'; color: var(--rpd-secondary); font-size: 22px; line-height: 1; }
.rpd-accordion[open] > summary::after { content: '−'; }
.rpd-accordion > summary:hover { background: var(--rpd-surface-soft); }
.rpd-accordion-meta { color: var(--rpd-muted); font-size: 13px; font-weight: 400; }
.rpd-accordion-content { display: grid; gap: 12px; padding: 0 14px 14px; }
.rpd-month-accordion > summary { background: var(--rpd-surface-soft); }
.rpd-month-accordion > .rpd-accordion-content { padding-top: 12px; }
.rpd-day-accordion .rpd-entry { margin: 0; }
@media (max-width: 600px) {
  .rpd-project-head, .rpd-form-grid { grid-template-columns: 1fr; display: grid; }
  .rpd-summary { grid-template-columns: 1fr 1fr; }
  .rpd-summary > div:last-child { grid-column: 1 / -1; }
  .rpd-wide { grid-column: auto; }
  .rpd-project-tools { justify-items: stretch; }
  .rpd-entry-form, .rpd-entry { padding: 14px; }
  .rpd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rpd-existing-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rpd-worker-time-row { grid-template-columns: 1fr; }
  .rpd-commute-control { grid-template-columns: 1fr; gap: 7px; }
  .rpd-commute-output { width: 100%; min-width: 0; }
  .rpd-accordion > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .rpd-accordion-meta { grid-column: 1 / -1; grid-row: 2; }
  .rpd-accordion > summary::after { grid-column: 2; grid-row: 1 / 3; }
  .rpd-app .rpd-entry-form .rpd-button-primary,
  .rpd-app .rpd-comment-form .rpd-button-primary,
  .rpd-app .rpd-login-card .rpd-button-primary { width: 100%; }
}
