/* Berlin Patten Ebling — black slate, brushed silver, white. */
:root {
  --ink: #17171a;
  --muted: #5d6168;
  --paper: #f3f3f4;
  --panel: #ffffff;
  --line: #dedfe3;
  --line-strong: #c9cbd0;
  --brand: #151517;
  --brand-hover: #303035;
  --silver: #c4c6ca;
  --silver-dim: #9a9da3;
  --silver-sheen: linear-gradient(135deg, #f5f5f5 0%, #c9c9c9 45%, #878787 100%);
  --focus: #6d7178;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 8px 24px rgb(0 0 0 / 0.05);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shared-lines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}
.phone-section {
  margin-top: 28px;
}
.phone-section h2 {
  font-size: 19px;
  margin: 0 0 12px;
}
#line-search {
  display: block;
  width: min(100%, 550px);
  margin-top: 10px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.topbar {
  min-height: 72px;
  position: relative;
  background:
    radial-gradient(90% 170% at 10% -50%, rgb(255 255 255 / 0.1), transparent 60%),
    radial-gradient(70% 150% at 92% 150%, rgb(255 255 255 / 0.06), transparent 60%),
    linear-gradient(180deg, #1e1e21, #0c0c0e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4.7%;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.14);
}
.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, #5f6165, #f2f2f2 50%, #5f6165);
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 0;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
}
.brand-emblem {
  display: none;
  height: 42px;
  width: 42px;
}
.brand-name {
  border-left: 1px solid rgb(255 255 255 / 0.24);
  padding-left: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--silver);
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav > span {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--silver-dim);
}
.nav-btn,
.text-btn {
  border: 0;
  background: none;
  padding: 8px 0;
  color: var(--brand);
}
.text-btn {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.text-btn:hover {
  text-decoration-color: currentColor;
}
.topbar .nav-btn,
.topbar .text-btn {
  color: #cfd0d4;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
}
.topbar .nav-btn:hover,
.topbar .text-btn:hover {
  color: #fff;
}
.topbar .nav-btn.active {
  color: #fff;
  border-bottom-color: var(--silver);
}
.topbar :focus-visible {
  outline-color: #e9e9eb;
}
.primary {
  background: linear-gradient(180deg, #2a2a2e, var(--brand));
  color: #fff;
  border: 1px solid var(--brand);
  border-radius: 7px;
  padding: 12px 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 1px 2px rgb(0 0 0 / 0.2);
  transition: background 0.15s, box-shadow 0.15s;
}
.primary:hover {
  background: linear-gradient(180deg, #3a3a40, var(--brand-hover));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 3px 10px rgb(0 0 0 / 0.22);
}
.secondary {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 11px 16px;
  color: var(--ink);
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
.secondary:hover {
  background: #ececee;
  border-color: #a9acb2;
}
main {
  min-height: calc(100vh - 177px);
  max-width: 1200px;
  margin: auto;
  padding: 36px 4% 56px;
}
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 9px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--silver-sheen);
  box-shadow: 0 0 0 1px #8f9299;
  display: inline-block;
}
h1 {
  font-weight: 700;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}
h1 em {
  font-weight: 400;
  color: #8b8e94;
}
p {
  line-height: 1.6;
}
.hero p.description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
#my-work-location:empty {
  display: none;
}
.office-prefixes {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}
.office-prefixes strong,
.office-prefixes b {
  color: var(--ink);
}
.office-prefixes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.office-prefixes li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 7px;
}
.office-prefixes li b {
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.my-strip {
  background: linear-gradient(180deg, #fff, #f1f1f3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  box-shadow: var(--shadow);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.my-strip p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.my-strip strong {
  font-size: 14px;
}
.my-strip button {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 11px 15px;
  min-height: 44px;
  font-weight: 600;
}
.my-strip button:hover {
  background: var(--brand-hover);
}
.search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}
.searchbox {
  position: relative;
  flex: 1;
}
.searchbox > span {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 23px;
  pointer-events: none;
  color: var(--brand);
}
.searchbox input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 13px 13px 13px 46px;
  font-size: 16px;
  color: var(--ink);
}
select,
input,
textarea {
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}
.search-row select {
  width: 200px;
}
.results-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
}
.results-top strong {
  color: var(--ink);
  font-weight: 600;
}
.results-top button {
  font-size: 12px;
}
.directory-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.table-head,
.person-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 12px 20px;
}
.with-admin .table-head,
.with-admin .person-row {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr) 54px;
}
.table-head {
  background: #ececee;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
.person-row {
  min-height: 75px;
  border-top: 1px solid var(--line);
}
.person-row:hover {
  background: #f7f7f8;
}
.person-ident {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.person-ident > div {
  min-width: 0;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2c2c30, #111113);
  color: #dcdde0;
  box-shadow: inset 0 0 0 1.5px #8f9299;
  letter-spacing: 0.4px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}
.person-name {
  font-size: 15px;
  font-weight: 650;
  display: block;
}
.person-email {
  display: inline-block;
  color: var(--brand);
  font-size: 12px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.subline {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.location {
  font-size: 14px;
  font-weight: 550;
}
.phone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.call-number {
  color: var(--brand);
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-underline-offset: 3px;
}
.copy-ext {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--brand);
}
.copy-ext:hover {
  background: #ececee;
}
.row-actions {
  justify-self: end;
}
.edit-btn {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 9px;
  font-size: 12px;
  background: #fff;
  color: var(--brand);
}
.empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}
.empty h2 {
  color: var(--ink);
  font: 28px var(--serif);
  margin: 0 0 8px;
}
footer {
  border-top: 1px solid var(--line);
  margin: 0 4.7%;
  height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #84878d;
  font-size: 10px;
  letter-spacing: 0.4px;
}
.signin {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 90px;
  align-items: center;
  max-width: 1100px;
  margin: 60px auto;
}
.signin h1 {
  font-size: 65px;
  line-height: 1.06;
}
.signin .description {
  max-width: 400px;
  color: var(--muted);
}
.signin-card {
  border: 1px solid var(--line);
  padding: 34px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.signin-card h2 {
  font: 28px var(--serif);
  margin: 0 0 8px;
}
.signin-card p {
  font-size: 12px;
  color: var(--muted);
}
.signin-card label {
  font-size: 12px;
  display: block;
  margin: 15px 0 7px;
}
.signin-card input {
  width: 100%;
}
.signin-card .primary {
  width: 100%;
  margin-top: 20px;
}
.signin-card .secondary {
  width: 100%;
}
.microsoft-signin {
  width: min(100%, 440px);
  margin: 24px auto 0;
}
.microsoft-signin h1 {
  font-size: 28px;
}
#reception-login select {
  display: block;
  width: 100%;
}
#manage-reception {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
#manage-reception summary {
  cursor: pointer;
}
#manage-reception summary {
  font-weight: 600;
}
.reception-enrollment {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
#reception-code-result input {
  min-width: 0;
  flex: 1;
}
.or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  margin: 22px 0;
}
.or:before,
.or:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.signin-links {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  font-size: 11px;
}
.form-error {
  color: #a03d30 !important;
  min-height: 20px;
  font-size: 12px;
}
.signin-art {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}
.art-box {
  border-top: 1px solid var(--line-strong);
  padding: 17px 0;
  flex: 1;
  font-size: 12px;
}
.art-box strong {
  font: 28px var(--serif);
  display: block;
  margin-bottom: 8px;
}
.preview-banner {
  background: #e9e9eb;
  color: #43464b;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 12px;
  margin-bottom: 28px;
}
.group-card {
  background: white;
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 500px;
}
.group-card :is(h2, h3) {
  font: 26px var(--serif);
  margin: 0 0 12px;
}
.group-card p {
  color: var(--muted);
  font-size: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  width: min(610px, calc(100vw - 28px));
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 24px 90px rgb(0 0 0 / 0.3);
}
dialog::backdrop {
  background: rgb(8 8 10 / 0.62);
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}
.dialog-top h2 {
  font: 650 24px var(--sans);
  margin: 0;
  letter-spacing: -0.5px;
}
.dialog-top .eyebrow {
  margin-bottom: 9px;
}
.icon-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field-grid label {
  min-width: 0;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-grid .full {
  grid-column: 1/-1;
}
.field-grid small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.temporary-editor {
  width: min(455px, calc(100vw - 28px));
}
.temporary-fields {
  display: grid;
  gap: 16px;
}
#profile-form [hidden] {
  display: none;
}
.temporary-editor label,
.temporary-editor input,
.temporary-editor select {
  font-size: 16px;
}
.temporary-editor input,
.temporary-editor select {
  width: 100%;
}
.temporary-editor .field-grid small {
  font-size: 12px;
}
.form-section {
  border-top: 1px solid var(--line);
  padding-top: 21px;
  margin-top: 23px;
}
.form-section h3 {
  font-size: 13px;
  margin: 0 0 15px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 16px;
}
.dialog-actions .text-btn {
  margin-right: auto;
}
.admin-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
}
#admin-content summary {
  cursor: pointer;
}
#admin-content .field-grid > button {
  align-self: end;
  justify-self: start;
}
#admin-content p {
  color: var(--muted);
  font-size: 12px;
}
#admin-content textarea {
  width: 100%;
  height: 170px;
  font-family: monospace;
  font-size: 11px;
}
#admin-content h3 {
  font-size: 14px;
}
.audit-row {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
}
.audit-row small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.invite-result {
  padding: 14px;
  background: #efeff1;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 13px 22px;
  border-radius: 7px;
  box-shadow: 0 6px 20px #0002;
  font-size: 13px;
  display: none;
  z-index: 5;
}
.loading {
  padding: 60px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 900px) {
  .brand-name {
    display: none;
  }
  .signin {
    gap: 35px;
    grid-template-columns: 1fr 400px;
  }
  .signin h1 {
    font-size: 50px;
  }
  nav {
    gap: 18px;
  }
  nav > span {
    display: none;
  }
}
@media (max-width: 760px) {
  .topbar {
    min-height: 64px;
    gap: 8px;
    padding: 8px 16px;
  }
  .primary {
    gap: 9px;
  }
  nav {
    gap: 6px 13px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav-btn,
  nav .text-btn {
    font-size: 12px;
  }
  main {
    padding: 25px 16px 40px;
  }
  .my-strip {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
    gap: 10px;
  }
  .my-strip button {
    width: 100%;
  }
  .search-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .searchbox {
    flex-basis: 100%;
  }
  .search-row select {
    width: 100%;
  }
  .directory-table {
    background: none;
    border: 0;
    border-radius: 0;
  }
  .table-head {
    display: none;
  }
  .person-row,
  .with-admin .person-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px 14px;
    gap: 9px;
    position: relative;
    margin-bottom: 8px;
    align-items: start;
  }
  .person-ident {
    grid-column: 1 / -1;
  }
  .with-admin .person-ident {
    padding-right: 0;
  }
  .person-row .row-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    position: static;
  }
  .person-row .phone-col {
    justify-self: end;
    text-align: right;
  }
  .phone-actions {
    justify-content: flex-end;
  }
  .signin {
    display: block;
    margin: 15px auto;
    max-width: 440px;
  }
  .signin h1 {
    font-size: 49px;
  }
  .signin-art {
    display: none;
  }
  .signin-card {
    padding: 25px;
    margin-top: 35px;
  }
  .signin .description {
    font-size: 13px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field-grid .full {
    grid-column: 1;
  }
  .dialog-top h2 {
    font-size: 25px;
  }
  .dialog-actions {
    gap: 10px;
  }
  .dialog-actions button {
    font-size: 12px;
  }
  footer {
    height: 70px;
    margin: 0 20px;
    font-size: 9px;
  }
  .results-top {
    margin-top: 18px;
  }
  .results-top > span:last-child {
    font-size: 10px;
  }
  dialog {
    padding: 22px;
  }
  .brand-name {
    display: none;
  }
}

/* Compact directory and focused editing tabs. */
.simple-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.simple-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--muted); font-size: 13px; padding: 12px 0; white-space: nowrap; }
.simple-tabs button[aria-selected="true"] { border-bottom-color: var(--brand); color: var(--ink); font-weight: 650; }
.simple-tabs button:focus-visible { outline-offset: -3px; }
.directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
#my-work-location { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.directory-heading button { font-size: 13px; white-space: nowrap; padding: 11px 16px; }
.role-filters { display: flex; gap: 8px; overflow-x: auto; padding: 3px 3px 8px; margin: 0 -3px 6px; }
.role-filters button { flex-shrink: 0; padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.role-filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: white; }
.status-badge { display: inline-flex; padding: 4px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; background: #eaf2ed; color: #286044; margin-bottom: 6px; }
.status-wfh { background: #e9f1fa; color: #285e87; }
.status-pto { background: #f4edfc; color: #795098; }
.status-ooo { background: #fff1da; color: #946012; }
.return-label { display: block; font-size: 12px; font-weight: 400; line-height: 1.5; }
.person-row { padding-top: 14px; padding-bottom: 14px; align-items: center; }
.person-location, .phone-col { min-width: 0; overflow-wrap: anywhere; }
.coverage-contact .subline { margin-bottom: 2px; }
.personal-contact { margin-top: 5px; display: flex; gap: 7px; align-items: baseline; flex-wrap: wrap; }
.personal-contact .call-number { font-size: 13px; font-weight: 400; }
.upcoming-note { margin-top: 6px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.availability-note { margin-top: 5px; font-size: 11px; color: var(--muted); }
.availability-note p { margin: 5px 0 0; }
.availability-note summary { cursor: pointer; }
.row-actions { display: flex; justify-content: flex-end; }
.contact-warning { color: #9d4718 !important; font-size: 12px; }
.temporary-editor { width: min(600px, calc(100vw - 28px)); padding: 26px; }
.temporary-editor .dialog-top h2 { font-family: var(--sans); font-size: 22px; }
.editor-mode-tabs { margin-top: 12px; }
.case-tabs { gap: 26px; }
.availability-section { margin-top: 18px; }
.temporary-editor .field-grid label { font-size: 13px; }
.temporary-editor input, .temporary-editor select, .temporary-editor textarea { font-size: 14px; min-width: 0; }
.temporary-editor textarea { width: 100%; min-height: 60px; margin: 6px 0 0; resize: vertical; }
.temporary-editor .field-grid small, .field-hint { font-size: 11px; line-height: 1.5; color: var(--muted); }
.field-hint { margin: 9px 0 0; }
#coverage-note-field { font-size: 12px; color: var(--muted); }
#coverage-note-field summary { cursor: pointer; }
#coverage-note-field label { margin-top: 8px; }
.temporary-editor .dialog-actions { padding-top: 18px; margin-top: 22px; border-top: 1px solid var(--line); align-items: center; }
.temporary-editor .dialog-actions .text-btn { font-size: 12px; }
#admin-content [hidden] { display: none; }
#admin-content > [role="tabpanel"] { padding-top: 3px; }
.manage-tabs { margin-top: 10px; }
@media (max-width: 760px) {
  .directory-heading { align-items: flex-start; gap: 12px; }
  .directory-heading h1 { font-size: 30px; }
  .directory-heading button { padding: 10px; font-size: 12px; }
  .simple-tabs { gap: 20px; }
  .simple-tabs button { font-size: 12px; }
  .temporary-editor { padding: 20px; }
  .temporary-editor .field-grid { gap: 14px; }
  .temporary-editor input, .temporary-editor select { font-size: 16px; }
  .with-admin .person-row, .person-row { grid-template-columns: 1fr; padding: 16px; gap: 10px; }
  .person-row .phone-col { text-align: left; justify-self: stretch; }
  .person-row .phone-actions { justify-content: flex-start; }
  .person-row .row-actions { justify-self: end; padding: 0; }
  .topbar { gap: 10px; }
  #navigation { gap: 12px; }
}
.re-coverage-editor summary, .re-coverage-details summary { cursor: pointer; }
.re-coverage-editor[open] summary { margin-bottom: .65rem; }
.re-coverage-editor .field-grid { margin: .75rem 0; }
.re-coverage-details { margin-top: .65rem; font-size: .88rem; }
.re-coverage-list { display: grid; gap: .8rem; padding-top: .7rem; }
.re-coverage-contact { display: grid; gap: .2rem; }
.re-coverage-contact > strong { font-size: .78rem; color: var(--muted); }

.saved-periods summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.saved-period-list { margin-top: 10px; max-height: 12rem; overflow-y: auto; }
.saved-period { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.saved-period span { display: block; margin-top: 3px; color: var(--muted); }
.period-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 13px; }
.upcoming-period { margin-top: 8px; }

.saved-periods h3 { font-size: 14px; margin: 0; }
.saved-period-actions, .period-actions { display: flex; align-items: center; gap: 14px; }
.saved-period-actions { flex-shrink: 0; }
.period-actions { margin-top: 18px; flex-wrap: wrap; }
.period-actions .field-hint { margin: 0; }
#contact-section > summary { cursor: pointer; font-size: 13px; color: var(--muted); }
#contact-section[open] > summary { margin-bottom: 14px; }

.period-coverage { display: block; font-size: 11px; margin-top: 5px; color: var(--muted); }
.saved-period .saved-period-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 150px; }
#period-coverage-hint { margin: 0 0 14px; }

/* Brand finish: slate header on every width, silver hairlines, calmer fields. */
h1 { color: var(--ink); }
.signin-card { border-top: 3px solid var(--brand); }
.searchbox input:focus, select:focus, input:focus, textarea:focus { border-color: var(--focus); }
.searchbox input { box-shadow: var(--shadow); border-color: var(--line-strong); }
.searchbox > span { color: var(--muted); }
.person-email { color: #3d4046; text-underline-offset: 3px; }
.call-number { color: var(--ink); text-decoration-color: var(--line-strong); }
.call-number:hover, .person-email:hover { text-decoration-color: currentColor; }
.edit-btn { color: var(--ink); border-color: var(--line-strong); }
.edit-btn:hover { background: #ececee; }
.office-prefixes li { border-color: var(--line); }
.eyebrow { color: var(--muted); }
.role-filters button[aria-pressed="true"] { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14); }
.my-strip button { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14); }
#toast { background: var(--brand); box-shadow: 0 8px 28px rgb(0 0 0 / 0.3); border: 1px solid #3a3a3f; }
dialog { border-top: 3px solid var(--brand); }
footer { border-top-color: var(--line-strong); }
footer span:first-child { letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; }
@media (max-width: 760px) {
  .brand { padding: 9px 0; }
  .brand-logo { display: none; }
  .brand-emblem { display: block; }
  .topbar .nav-btn, .topbar .text-btn { padding: 6px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
