:root {
  color-scheme: light;
  font: 16px/1.55 Inter, system-ui, "Segoe UI", sans-serif;
  color: #0b2029;
  background: #f4f7f8;
  --navy: #071b24;
  --navy-light: #0b2934;
  --cyan: #11b8c8;
  --teal: #006d7b;
  --line: #dce6e9;
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { max-width: 1080px; margin: auto; padding-inline: 24px; }
header { background: var(--navy); color: #fff; border-bottom: 1px solid #25434d; }
.top, nav, .brand, .header-actions, .report-heading { display: flex; align-items: center; gap: 12px; }
.top { justify-content: space-between; min-height: 76px; flex-wrap: wrap; padding-block: 10px; }
a { color: var(--teal); }
.brand { font-weight: 800; text-decoration: none; color: inherit; line-height: 1.2; }
.brand small { display: block; color: #c6d9de; font-size: .62rem; letter-spacing: .33em; margin-top: 4px; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 40px; background: #fff; border-radius: 9px; }
nav { flex-wrap: wrap; gap: 4px; }
nav a { text-decoration: none; color: inherit; padding: 7px 10px; border-radius: 8px; }
nav a:hover { background: #183943; }
nav a[aria-current] { background: #163942; color: #60e0eb; font-weight: 700; }
.languages { border: 1px solid #31505a; border-radius: 10px; padding: 2px; }
.languages a { font-size: .78rem; padding: 4px 7px; }
main { padding-bottom: 48px; }
.intro {
  margin-block: 30px 20px; padding: clamp(22px, 5vw, 42px); border-radius: 16px;
  color: #fff; background: url("pcb-background.svg") right center / auto 100% no-repeat, linear-gradient(120deg, var(--navy), var(--navy-light));
  border-bottom: 4px solid var(--cyan);
}
.intro p { color: #d2dfe3; margin-bottom: 0; }
.intro .eyebrow { font-size: .75rem; letter-spacing: .18em; font-weight: 750; color: #72e6ee; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.045em; margin: 8px 0 12px; }
h2 { font-size: 1.18rem; margin: 0 0 14px; }
p { margin: 0 0 12px; color: #465b63; }
.identity { font-size: .86rem; }
.card { background: #fff; padding: 24px; border: 1px solid var(--line); border-radius: 14px; }
.columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 20px; align-items: start; }
form { display: grid; gap: 16px; justify-items: start; }
label, legend { font-weight: 650; }
form > label, fieldset, .pair { width: 100%; }
input, select, textarea, button { font: inherit; }
input:not([type=radio]), select, textarea {
  width: 100%; display: block; margin-top: 5px; padding: 9px 11px; color: inherit;
  background: #fff; border: 1px solid #aebfba; border-radius: 8px;
}
textarea { resize: vertical; }
fieldset { margin: 0; min-width: 0; padding: 10px 14px 14px; border: 1px solid var(--line); border-radius: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 16px; }
input[type=radio] { accent-color: var(--teal); }
.hours { margin-top: 12px; }
.hours input { max-width: 150px; }
small, .day-help { color: #465b63; }
.day-help { display: none; margin: 10px 0 0; }
fieldset:has(input[value=day]:checked) .hours { display: none; }
fieldset:has(input[value=day]:checked) .day-help { display: block; }
button, .button { border: 1px solid transparent; border-radius: 999px; background: var(--cyan); color: var(--navy); font-weight: 750; padding: 9px 15px; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: #68dbe5; }
.secondary { border-color: var(--teal); color: var(--teal); background: #fff; }
.secondary:hover { background: #e5f6f8; }
header .secondary { border-color: #44636d; background: transparent; color: #fff; font-size: .88rem; }
header .secondary:hover { background: #183943; }
:focus-visible { outline: 3px solid #207eaa; outline-offset: 2px; }
.pair, .filters, .metrics { display: grid; gap: 14px; }
.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filters { grid-template-columns: 2fr 1fr auto; align-items: end; }
.filters label { width: 100%; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block: 18px; }
.metrics span, .metrics strong { display: block; }
.metrics strong { font-size: 1.6rem; color: var(--teal); overflow-wrap: anywhere; }
.metrics .card { border-top: 3px solid var(--cyan); }
.rate-settings { margin-bottom: 18px; }
.rate-settings summary { cursor: pointer; font-weight: 700; color: var(--teal); }
.rate-form { grid-template-columns: minmax(0, 200px) auto; justify-content: start; align-items: end; margin-top: 14px; }
.rate-form small { grid-column: 1 / -1; }
.report-heading { flex-wrap: wrap; justify-content: space-between; margin-bottom: 12px; }
.report-heading h2 { margin: 0; overflow-wrap: anywhere; }
.alert { padding: 12px 16px; background: #dff3e9; border-radius: 8px; color: #145741; }
.error { background: #fce9e8; color: #8a2323; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td:first-child, td:nth-child(2) { white-space: nowrap; }
.work-description { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 150px; }
.entry-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.edit-entry { display: inline-block; font-size: .88rem; padding: 4px 10px; }
@media (max-width: 650px) {
  .shell { padding-inline: 16px; }
  .columns, .filters, .metrics, .rate-form { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .intro { margin-top: 28px; }
}
.account { max-width: 520px; }
