:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1c1c1a;
  --muted: #6e6d68;
  /* Secondary text. Meets 4.5:1 on the page and card backgrounds. */
  --faint: #6e6d68;
  /* Marks and borders only, never text: it stays below 3:1. */
  --deco: #9a9993;
  --line: #e6e5e0;
  --line-strong: #d6d5cf;
  --accent: #2b59c3;
  --accent-hover: #2149a8;
  --page-width: 1040px;
  --page-gutter: 20px;
  --sidebar-width: 224px;
  --ok: #2f8a57;
  --danger: #b4372e;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(28 28 26 / 4%), 0 1px 1px rgb(28 28 26 / 3%);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14.5px/1.55 ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font:
    12.5px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  background: #efeee9;
  padding: 1px 5px;
  border-radius: 4px;
}

/* App shell */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

/* One width for every page, so that header and content line up everywhere. */
.topbar-inner,
main {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  flex: none;
  color: var(--text);
}

/*
 * Signed in: a fixed sidebar with the footer at its bottom. Below 900px the same elements flow as
 * a header, and the links form a row, so that a phone reaches each page with one tap.
 */
.sidebar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 8px;
  padding: 10px var(--page-gutter) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  grid-row: 2;
  grid-column: 1 / -1;
  gap: 2px;
  margin: 0 calc(var(--page-gutter) * -1);
  padding: 0 var(--page-gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  display: flex;
  flex: none;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.nav-icon {
  flex: none;
}

@media (min-width: 900px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: var(--sidebar-width);
    padding: 16px 12px 58px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    overflow-y: auto;
  }

  .sidebar .brand {
    padding: 2px 8px;
  }

  .nav {
    flex: 1;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .nav a {
    min-height: 36px;
    padding: 0 10px;
    border-bottom: 0;
    border-radius: 7px;
  }

  .nav a:hover {
    background: #f1f0ec;
  }

  .nav a[aria-current="page"] {
    background: #eceff8;
    color: var(--accent);
  }

  .has-sidebar main {
    max-width: none;
    margin: 0 0 0 var(--sidebar-width);
    padding-right: max(28px, calc((100vw - var(--sidebar-width) - var(--page-width)) / 2));
    padding-left: max(28px, calc((100vw - var(--sidebar-width) - var(--page-width)) / 2));
  }

  .has-sidebar .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 7;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: var(--sidebar-width);
    padding: 10px 20px 14px;
  }

  .has-sidebar .footer-name,
  .has-sidebar .footer-dot {
    display: none;
  }
}

.user-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 3px 8px 3px 3px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.user-email {
  display: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .user-button {
    border-radius: 8px;
  }

  .user-email {
    display: block;
  }
}

.user-button:hover,
.user-button:focus-visible {
  border-color: var(--line);
  background: #f6f6f3;
}

.chevron {
  font-size: 10px;
}

/* Popover menu: under the account button on a phone, above it in the sidebar. */
.menu {
  inset: auto;
  top: 56px;
  right: var(--page-gutter);
  min-width: 240px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow:
    0 8px 24px rgb(28 28 26 / 10%),
    0 1px 2px rgb(28 28 26 / 6%);
}

@media (min-width: 900px) {
  .menu {
    top: auto;
    right: auto;
    bottom: 104px;
    left: 12px;
    width: 280px;
  }
}

.menu form {
  margin: 0;
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.menu-email {
  font-weight: 600;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-item {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.menu-item:hover {
  background: #f1f0ec;
  text-decoration: none;
}

.menu-separator {
  height: 1px;
  margin: 6px 0;
  background: var(--line);
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e9e8e3;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

main {
  padding-top: 36px;
  padding-bottom: 64px;
}

/* Sections */

.section + .section {
  margin-top: 40px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.015em;
}

h1 {
  font-size: 22px;
  font-weight: 600;
}

h2 {
  font-size: 16px;
  font-weight: 600;
}

.lead {
  margin: 4px 0 0;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

/* Lists and cards */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.list > li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.list > li + li {
  border-top: 1px solid var(--line);
}

.list form {
  margin: 0;
}

.item-main {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-meta {
  color: var(--muted);
  font-size: 13px;
}

.item-meta.error {
  color: var(--danger);
}

.item-meta.warning {
  width: fit-content;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fbf3e2;
  color: #7a5410;
}

.item-meta.warning a {
  color: inherit;
  text-decoration: underline;
}

.provider-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--deco);
}

.status.ok::before {
  background: var(--ok);
}

.status.error::before {
  background: var(--danger);
}

.empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
}

.empty strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

/* Buttons */

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.button:hover {
  background: #f6f6f3;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-hover);
}

.link-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.link-button:hover {
  color: var(--text);
  text-decoration: underline;
}

.link-button.danger:hover {
  color: var(--danger);
}

/* Destructive actions that should not compete with the status next to them. */
.link-button.quiet {
  color: var(--faint);
  font-size: 13px;
}

.link-button.quiet:hover,
.link-button.danger {
  color: var(--danger);
}

.list summary.link-button {
  font-size: 13px;
}

/* A one-button form next to a link in a table cell. */
.inline-form {
  display: inline;
  margin: 0 12px 0 0;
}

/* The destructive action of a page: filled, so that it differs from Cancel by more than text. */
.button.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.button.danger:hover {
  background: #982c24;
}

/* Sign-in and messages */

.center {
  max-width: 400px;
  margin: 64px auto 0;
  text-align: center;
}

.center .card {
  padding: 32px 28px;
}

.center h1 {
  margin-bottom: 6px;
}

.center .actions {
  flex-direction: column;
  margin-top: 24px;
}

.center .lead + .lead {
  margin-top: 10px;
}

.center .button {
  justify-content: center;
  height: 40px;
}

/* Confirmations carry lists and consequences: they read from the left. */
.center .card.confirm {
  text-align: left;
}

.card.confirm ul {
  margin: 12px 0;
  padding-left: 20px;
}

.fineprint {
  margin-top: 16px;
  color: var(--faint);
  font-size: 12.5px;
}

/* Setup checklist */

.check {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.check.ok {
  background: #e3f1e8;
  color: var(--ok);
}

.check.missing {
  background: #f6e4e2;
  color: var(--danger);
}

/* Tables */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}

.table tr:last-child td {
  border-bottom: 0;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: #efeee9;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.badge.ok {
  background: #e3f1e8;
  color: var(--ok);
}

.badge.admin {
  background: #e7edfb;
  color: var(--accent);
}

.badge.repeat {
  margin-left: 8px;
}

.badge.error {
  margin-left: 8px;
  background: #fdf1f0;
  color: var(--danger);
}

@media (max-width: 560px) {
  .list > li {
    flex-wrap: wrap;
  }
}

/* Language switch */

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  font-size: 13px;
}

.segmented {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f1f0ec;
}

.segment {
  min-width: 34px;
  padding: 2px 8px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.03em;
}

.segment:hover {
  color: var(--text);
  text-decoration: none;
}

.segment.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

/* Forms and notices */

.button.small {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 18px;
}

.form label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.form select,
.form input[type="number"] {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.form .check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
  color: var(--text);
  font-weight: 400;
}

.form .actions {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.notice {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.notice.info {
  background: #e7edfb;
  color: #1f3f8a;
}

.operator-notice {
  margin-top: 14px;
}

.operator-notice p {
  margin: 4px 0;
}

.notice.error {
  background: #f6e4e2;
  color: #8a2a23;
}

@media (max-width: 560px) {
  .form {
    grid-template-columns: 1fr;
  }
}

/* Footer and long-form text */

.footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 24px 20px 40px;
  color: var(--faint);
  font-size: 12.5px;
}

.footer a {
  color: var(--muted);
}

.prose {
  max-width: 64ch;
}

.prose h2 {
  margin: 28px 0 8px;
}

.prose li {
  margin: 4px 0;
}

.item-meta.paused {
  color: var(--faint);
}

/* Calendar editor */

.segmented.views .segment,
.section-head .segmented .segment {
  padding: 4px 12px;
  font-size: 13px;
  letter-spacing: 0;
}

.account-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.group-card {
  padding: 14px 16px;
  margin-bottom: 12px;
}

.group-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.group-row strong {
  margin-right: 4px;
}

.member {
  padding: 3px 11px 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}

.member:hover {
  border-color: var(--deco);
}

.member.out {
  border-style: dashed;
  color: var(--faint);
}

.member.out .account-name {
  font-weight: 500;
}

.member.out svg {
  opacity: 0.45;
}

.group-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

details.source {
  margin-bottom: 10px;
}

.source-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.source-head::-webkit-details-marker {
  display: none;
}

.source-head:hover {
  background: #fbfbfa;
}

.source-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.source-title {
  font-weight: 600;
}

.chevron {
  color: var(--faint);
  font-size: 18px;
  transition: transform 0.15s;
}

details[open] > .source-head .chevron {
  transform: rotate(90deg);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px 1px 7px;
  border-radius: 999px;
  background: #f3f2ef;
  color: var(--muted);
  font-size: 12.5px;
}

.pill .account-name {
  font-weight: 500;
}

.pill b {
  margin-left: 3px;
  color: var(--text);
  font-weight: 600;
}

.pill.exception {
  background: #eef2fb;
}

/* Target rows: name, detail level and colour; under them the preview and the working hours. */
.dest {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 8px 14px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.dest-extra {
  display: grid;
  grid-column: 2 / 4;
  gap: 4px;
}

.dest-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.dest-line.faint {
  color: var(--faint);
  font-size: 12px;
}

.dest-line .link-button {
  font-size: 12px;
}

.dest-tag {
  color: var(--faint);
  font-size: 12px;
}

/* The detail level as one segmented control. */
.dest .choices {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-self: start;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.dest .choice {
  padding: 5px 12px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

.dest .choice:first-of-type {
  border-left: 0;
}

.dest .choice:hover:not(:disabled) {
  background: #f3f2ef;
}

.dest .choice.on,
.dest .choice.on:hover:not(:disabled) {
  background: var(--text);
  color: #fff;
}

.dest-name {
  font-size: 14px;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.choice {
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}

.choice:hover:not(:disabled) {
  border-color: var(--deco);
  color: var(--text);
}

.choice.on {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.choice:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.ev {
  display: inline-flex;
  gap: 6px;
  padding: 1px 8px;
  border-radius: 6px;
  background: #eef2fb;
  color: var(--text);
}

.ev.none {
  background: #f3f2ef;
  color: var(--faint);
}

.cap-note {
  justify-self: start;
  padding: 4px 9px;
  border-radius: 7px;
  background: #fbf3e2;
  color: #9a6a12;
  font-size: 12.5px;
}

details.more {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  background: #fbfbfa;
  color: var(--muted);
  font-size: 13px;
}

details.more summary {
  cursor: pointer;
}

.more-form {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--text);
}

.more-form label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.more-form .button {
  justify-self: start;
  margin-top: 4px;
}

.matrix {
  width: 100%;
  padding: 8px;
  border-spacing: 6px;
  border-collapse: separate;
}

.matrix th {
  padding: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.matrix th.col {
  text-align: center;
}

.matrix .cell {
  border-radius: 8px;
  text-align: center;
}

.matrix .cell a {
  display: block;
  padding: 12px 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.matrix .cell small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.matrix .self {
  background: repeating-linear-gradient(45deg, #f4f3f0, #f4f3f0 6px, #efeee9 6px, #efeee9 12px);
}

/* On the darker levels the secondary line takes the text colour, to stay readable. */
.matrix .level-title small,
.matrix .level-full small {
  color: var(--text);
}

.level-off {
  background: #f3f2ef;
}

.level-off a {
  color: var(--faint) !important;
}

.level-busy {
  background: #d3def6;
}

.level-title {
  background: #a9bfed;
}

.level-full {
  background: #7b9ce0;
}

.matrix-hint {
  margin: 0;
  padding: 0 14px 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.card.others {
  margin-top: 18px;
  padding: 14px 16px 4px;
}

.card.others .list li {
  padding-left: 0;
  padding-right: 0;
}

.editor-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 13.5px;
}

@media (max-width: 560px) {
  .dest {
    grid-template-columns: 1fr;
  }

  .dest-extra {
    grid-column: 1;
  }

  .palette.color-row {
    right: auto;
    left: 0;
  }
}

/* Account names */

.account-email {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 400;
}

details.rename {
  position: relative;
}

details.rename summary {
  list-style: none;
  cursor: pointer;
}

details.rename summary::-webkit-details-marker {
  display: none;
}

.rename-form {
  position: absolute;
  z-index: 10;
  right: 0;
  top: 28px;
  display: grid;
  gap: 6px;
  width: 320px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(28 28 26 / 10%);
}

.rename-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}

.rename-form input {
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font: inherit;
  font-weight: 400;
}

.rename-form .fineprint {
  margin: 0;
  text-align: left;
}

.rename-form .button {
  justify-self: start;
}

.rename-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.rename-actions .link-button {
  font-size: 12.5px;
}

/* Editor polish */

.dest-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  min-width: 0;
}

/* A long name ends in an ellipsis and stays complete in the tooltip. */
.dest-account {
  flex: 1 1 0;
  min-width: 0;
}

.dest-account .account-name {
  display: flex;
}

.dest-account .account-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dest-tag {
  flex-basis: 100%;
  padding-left: 18px;
}

.dest-to {
  color: var(--faint);
  font-size: 12.5px;
}

.pill-arrow {
  margin-right: 4px;
  color: var(--faint);
}

.pill.exception {
  background: #e3eaf9;
  box-shadow: inset 0 0 0 1px #c9d6f2;
}

.group-text {
  text-wrap: pretty;
}

.editor-foot .link-button {
  line-height: inherit;
}

.editor-foot form {
  display: flex;
}

.plain-link {
  color: var(--text);
}

.plain-link:hover {
  text-decoration: underline;
}

/* Editor edit state */

details.source.dirty {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #eef2fb;
}

.page-bar {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(28 28 26 / 12%);
  font-size: 14px;
}

.page-bar[hidden] {
  display: none;
}

.edit-count {
  margin-right: auto;
  font-weight: 600;
}

.page-bar.saving {
  opacity: 0.6;
  pointer-events: none;
}

.matrix .cell.pending {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.matrix .cell.pending small {
  color: #1c3f91;
}

.pill.pending {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.preview-result {
  margin-left: 8px;
  color: var(--muted);
}

.preview-result.error {
  color: var(--danger);
}

.choice.on:hover:not(:disabled) {
  border-color: var(--text);
  color: #fff;
}

/* Editor with overview column */

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}

.overview {
  position: sticky;
  top: 16px;
  padding: 12px 8px 4px;
}

.overview-title {
  margin: 0 8px 4px;
  font-size: 13px;
  color: var(--muted);
}

.overview .matrix {
  padding: 0;
  border-spacing: 4px;
}

.overview .matrix th {
  font-size: 12px;
}

.overview .matrix .cell a {
  padding: 8px 4px;
  font-size: 12px;
}

.overview .matrix .cell small {
  font-size: 10.5px;
}

.overview .matrix-hint {
  padding: 4px 8px 8px;
  font-size: 12px;
}

/* The overview needs 330px beside a usable editor; the sidebar takes its share of the width. */
@media (max-width: 1179px) {
  .editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .overview {
    position: static;
  }
}

.caps-org {
  margin: 0;
  padding: 12px 16px 4px;
  color: var(--muted);
  font-size: 13.5px;
}

.caps-how {
  margin-top: 8px;
  text-align: left;
}

.compare-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
}

.compare-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 16px;
}

.compare-list li + li {
  border-top: 1px solid var(--line);
}

/* Settings for all calendars */

.settings-card {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding: 14px 16px;
}

.settings-head {
  display: grid;
  gap: 2px;
}

.settings-head .group-text {
  margin: 0;
}

.settings-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 4px 0;
}

.settings-label {
  min-width: 70px;
  color: var(--muted);
  font-size: 13.5px;
}

.choice-radio {
  position: relative;
  cursor: pointer;
}

.choice-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-radio input:checked + .choice {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.choice-radio input:focus-visible + .choice {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.js .nojs-only {
  display: none;
}

/* Phones */

@media (max-width: 560px) {
  /* The account menu aligns with the header padding. */
  :root {
    --page-gutter: 12px;
  }

  .nav-icon {
    display: none;
  }

  main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-head {
    flex-wrap: wrap;
  }

  .table td {
    overflow-wrap: anywhere;
  }

  /* A row per card instead of a table wider than the phone. */
  .table.stack thead {
    display: none;
  }

  .table.stack tr {
    display: block;
    padding: 8px 16px;
    border-bottom: 1px solid var(--line);
  }

  .table.stack tbody tr:last-child {
    border-bottom: 0;
  }

  .table.stack td {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    padding: 3px 0;
    border: 0;
  }

  .table.stack td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12.5px;
  }

  .table.stack td:not([data-label]) {
    display: flex;
    gap: 16px;
  }

  .table.stack td:not([data-label])::before {
    content: none;
  }

  .list li {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .list li .item-main {
    flex: 1 1 calc(100% - 52px);
  }

  .item-title {
    white-space: normal;
  }

  .account-email {
    display: block;
    margin-left: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .list li .status {
    margin-left: 46px;
  }

  .ev {
    display: inline;
    padding: 2px 6px;
    line-height: 1.7;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .list li .status {
    flex-basis: calc(100% - 46px);
  }

  .list li details.rename {
    margin-left: 46px;
  }

  .page-bar {
    bottom: 8px;
    gap: 10px;
    padding: 8px 10px 8px 14px;
  }
}

/* Switches */

.switch-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.switch-text {
  display: grid;
  flex: 1;
  gap: 2px;
}

.switch-title {
  font-weight: 600;
  font-size: 14px;
}

.switch-hint {
  color: var(--muted);
  font-size: 13px;
  text-wrap: pretty;
}

input[role="switch"] {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  margin: 0;
  border-radius: 999px;
  background: var(--line-strong);
  appearance: none;
  cursor: pointer;
  transition: background 0.15s;
}

input[role="switch"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(28 28 26 / 25%);
  transition: transform 0.15s;
}

input[role="switch"]:checked {
  background: var(--text);
}

input[role="switch"]:checked::after {
  transform: translateX(16px);
}

input[role="switch"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Source calendars */

.cal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cal-chip {
  font-size: 13px;
}

.member.pending {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #eef2fb;
}

.none-chosen {
  padding: 8px 16px;
}

/* Reconnect notice */

.reconnect-notice {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.reconnect-notice p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #ecdcb4;
  border-radius: 10px;
  background: #fdf8ec;
  color: var(--text);
  font-size: 14px;
}

.reconnect-notice p span {
  flex: 1 1 260px;
}

a.status.error {
  text-decoration: underline;
}

/* Text and colour settings */

.settings-field {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.settings-group {
  margin: 10px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settings-group + .settings-field {
  border-top: 0;
  padding-top: 4px;
}

/* Single entries of a comma list: entries and the text field share one box. */
.tokens {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: 420px;
  margin-top: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}

.tokens:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.token {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-left: 8px;
  border-radius: 6px;
  background: #eef2fb;
  font-size: 13px;
}

.token button {
  min-width: 26px;
  height: 26px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.token button:hover {
  color: var(--danger);
}

.settings-field input[type="text"],
.only-edit input[type="text"] {
  max-width: 360px;
  margin-top: 4px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  font: inherit;
}

.settings-field .tokens input[type="text"],
.only-edit .tokens input[type="text"] {
  flex: 1 1 180px;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 4px;
  border: 0;
  outline: 0;
}

.color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.color-choice {
  position: relative;
  cursor: pointer;
}

.color-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-dot {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0%);
}

.color-choice input:checked + .color-dot {
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--text);
}

.color-choice input:checked + .color-dot::after {
  content: "✕";
  display: grid;
  place-items: center;
  height: 100%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.color-choice input:focus-visible + .color-dot {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* First steps and quick start */

.first-steps {
  padding: 18px 20px;
}

.first-steps h2 {
  margin: 0 0 8px;
}

.first-steps ol {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted);
}

.first-steps li {
  padding: 3px 0;
}

.first-steps li.done {
  color: var(--faint);
  text-decoration: line-through;
}

.section .first-steps {
  margin-bottom: 14px;
}

.quick-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-color: var(--accent);
}

.quick-start > div {
  flex: 1 1 320px;
}

.quick-start .group-text {
  margin-top: 4px;
}

/* Many accounts */

.pills.collapsed .pill.grouped {
  display: none;
}

.pills:not(.collapsed) .pill.summary {
  display: none;
}

.matrix-scroll {
  overflow-x: auto;
}

.matrix.compact {
  border-spacing: 3px;
}

.matrix.compact .cell {
  position: relative;
  width: 24px;
  height: 24px;
}

.matrix.compact .cell a {
  height: 24px;
  padding: 0;
  font-size: 0;
}

.matrix.compact .cell small {
  display: none;
}

.matrix.compact th.col {
  height: 92px;
  padding: 2px 0;
  vertical-align: bottom;
}

.matrix.compact th.col .account-name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  white-space: nowrap;
}

.matrix.compact th:not(.col) .account-name {
  font-size: 12px;
  white-space: nowrap;
}

.matrix.compact .cell.exception::after,
.legend-exception::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--text);
}

.matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 6px 8px 0;
  color: var(--muted);
  font-size: 12px;
}

.matrix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.matrix-legend i {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-exception {
  background: #d3def6;
}

/* Account colours: a mark next to the name, a ring around the logo, a hatched example. Colour
   marks the account only; levels and states keep their own blue scale and text. */

.account-name .mark {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 3px;
  background: var(--c, var(--deco));
}

.member.out .mark {
  opacity: 0.45;
}

details.source > .source-head .provider-icon,
.provider-icon.tinted {
  border-color: transparent;
  box-shadow: inset 0 0 0 2px var(--c, var(--line));
}

.ev:not(.none) {
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 55%, var(--surface));
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--c, var(--accent)) 22%, var(--surface)) 0 5px,
    color-mix(in srgb, var(--c, var(--accent)) 8%, var(--surface)) 5px 10px
  );
}

/* A Google event colour fills the example the way Google fills the event. */
.ev.filled:not(.none) {
  border-color: var(--fill);
  background: var(--fill);
  color: #fff;
}

/* Picks colours to keep: a chosen one shows a tick, not the cross of the skip filter. */
.color-row.pick .color-choice input:checked + .color-dot::after {
  content: "✓";
}

.color-row.pick .color-dot.none {
  border: 1px solid var(--line-strong);
  background: linear-gradient(
    135deg,
    var(--surface) calc(50% - 1px),
    var(--deco) calc(50% - 1px) calc(50% + 1px),
    var(--surface) calc(50% + 1px)
  );
}

.color-row.pick .color-choice input:checked + .color-dot.none::after {
  content: "";
}

.color-row.pick .color-choice.auto .color-dot {
  width: auto;
  padding: 0 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
}

.color-row.pick .color-choice.auto input:checked + .color-dot {
  border-style: solid;
  color: var(--text);
}

.color-row.pick .color-choice.auto input:checked + .color-dot::after {
  content: none;
}

.account-colors {
  display: grid;
  gap: 4px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.account-colors legend {
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.account-colors .color-row {
  margin-top: 2px;
}

/* Working hours of an account: weekdays, a time range and its time zone. */

.account-hours {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.account-hours legend {
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.weekday-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
}

.rename-form .weekday {
  display: inline-block;
  position: relative;
  font-weight: 400;
  cursor: pointer;
}

.weekday input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.weekday span {
  display: inline-block;
  min-width: 36px;
  padding: 6px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  text-align: center;
}

.weekday input:checked + span {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.weekday input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.rename-form .hours-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 400;
}

.rename-form .hours-switch input[role="switch"] {
  padding: 0;
  border: 0;
}

/* Fields of working hours that are switched off would only look like they count. */
.account-hours:has(input[name="workHoursOn"]:not(:checked)) .hours-fields {
  display: none;
}

.hours-fields {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.hours-apply {
  display: grid;
  gap: 2px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.hours-apply-title {
  font-size: 13px;
  font-weight: 600;
}

.rename-form .hours-apply-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  font-weight: 400;
}

.work-time {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 6px 8px;
}

.rename-form .work-time label:not(.work-midnight),
.rename-form .work-zone-field {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.rename-form .work-zone {
  width: 100%;
}

.rename-form .work-time input[type="time"],
.rename-form .work-zone {
  padding: 3px 6px;
  font-size: 13px;
}

.rename-form .work-midnight {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.rename-form .work-midnight input {
  padding: 0;
}

.work-time input[type="time"]:disabled {
  color: var(--faint);
  background: var(--bg);
}

/* Rows of a source card: a label on the left, the content on the right. */

.src-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px 14px;
  align-items: baseline;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}

.src-row.faint {
  display: block;
  color: var(--faint);
  font-size: 12.5px;
}

.src-key {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 560px) {
  .src-row {
    grid-template-columns: 84px 1fr;
  }
}

.src-hint {
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 12px;
}

/* The buffer of a source: a summary line that opens the two fields. */

.buffer-edit > summary,
.only-edit > summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  list-style: none;
  cursor: pointer;
}

.buffer-edit > summary::-webkit-details-marker,
.only-edit > summary::-webkit-details-marker {
  display: none;
}

.buffer-summary {
  font-size: 14px;
}

.edit-link {
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.buffer-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
}

.buffer-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.buffer-field input {
  width: 64px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
}

.source-buffer .button {
  margin-top: 8px;
}

.source-buffer.pending .buffer-summary {
  color: var(--accent);
}

.source-buffer.pending .buffer-field input {
  border-color: var(--accent);
  color: var(--accent);
}

/* Colour of the copies: one swatch that opens the palette, or an Outlook category. */

details.swatch {
  position: relative;
}

details.swatch > summary {
  list-style: none;
}

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

.swatch-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.swatch-button:hover {
  border-color: var(--deco);
}

.swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.swatch-dot.none {
  border: 1px solid var(--line-strong);
  background: linear-gradient(
    135deg,
    var(--surface) calc(50% - 1px),
    var(--deco) calc(50% - 1px) calc(50% + 1px),
    var(--surface) calc(50% + 1px)
  );
}

.palette.color-row {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(6, 22px);
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(28 28 26 / 10%);
}

.palette .color-dot {
  width: 22px;
  height: 22px;
}

.category-field {
  width: 130px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}

.dest.pending .swatch-button,
.dest.pending .category-field {
  border-color: var(--accent);
}

/* Working hours of a direction: one checkbox, or a link to set them. */

.hours-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dest.pending .hours-check {
  color: var(--accent);
}

/* The opt-in list of a direction: a summary line that opens its field. */

.only-edit {
  flex: 1 1 100%;
  min-width: 0;
}

.only-field {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.quiet-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.js .dest-details {
  display: none;
}

/* The overview is narrow: there the colour mark stands for the account, without the logo. */
.matrix .account-name svg {
  display: none;
}

/* Long names stop after two lines and stay complete in the tooltip. */
.matrix .account-label {
  display: -webkit-box;
  max-width: 56px;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.matrix.compact .account-label {
  max-width: 110px;
}

@media (max-width: 560px) {
  /* The settings of an account open in the row: a popover would end at the edge of the screen. */
  .list li details.rename {
    flex-basis: 100%;
    margin-left: 0;
  }

  .list li details.rename > summary {
    margin-left: 46px;
  }

  .rename-form {
    position: static;
    width: auto;
    margin-top: 8px;
    box-shadow: none;
  }

  /* Thumbs: every control reaches 44px, through padding and not through larger text. */
  .button,
  .button.small,
  .member,
  .menu-item,
  .segment,
  .link-button,
  .quiet-link,
  .list summary.link-button,
  .swatch-button,
  .category-field,
  .hours-check,
  .buffer-edit > summary,
  .only-edit > summary,
  .token button,
  .table td .inline-form .link-button,
  .table td a.link-button {
    min-height: 44px;
  }

  .link-button,
  .quiet-link,
  .segment,
  .list summary.link-button,
  .hours-check {
    display: inline-flex;
    align-items: center;
  }

  .segment {
    justify-content: center;
    min-width: 44px;
  }

  .dest .choices {
    display: flex;
    justify-self: stretch;
  }

  .dest .choice {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 0 6px;
  }

  .dest-account {
    flex: none;
    max-width: 100%;
  }

  .dest-tag {
    flex-basis: auto;
    padding-left: 0;
  }

  .color-row {
    gap: 0;
    margin-left: -10px;
  }

  .color-choice {
    padding: 10px;
  }

  .weekday span {
    min-width: 40px;
    padding: 12px 4px;
  }

  .choice-radio .choice {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .rename-form input:not([type="checkbox"], [type="radio"]),
  .settings-field input[type="text"],
  .buffer-field input,
  .user-button {
    min-height: 44px;
  }

  .footer {
    align-items: center;
  }

  .footer a {
    padding: 12px 4px;
  }
}

/* Provider error pages: left-aligned, with a request that can be copied. */

.center.wide {
  max-width: 520px;
}

.error-card {
  text-align: left;
}

.error-card .request {
  margin-top: 20px;
}

.error-card .request h2 {
  margin-bottom: 8px;
}

.request-text {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font:
    12.5px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  resize: vertical;
}

.error-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin: 20px 0 0;
}

.error-facts dt {
  color: var(--muted);
}

.error-facts dd {
  margin: 0;
}

.error-card .actions {
  flex-direction: row;
}

.notice-lines {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}
