:root {
  color-scheme: light dark;
  --paper: #f8f5ef;
  --surface: #fffdf9;
  --ink: #29231f;
  --muted: #62584e;
  --line: #d9d0c4;
  --accent: #8c5038;
  --soft: #eee5d8;
  --error: #a12720;
  font:
    16px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
input,
select {
  min-height: 44px;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border-radius: 7px;
  border: 1px solid var(--line);
  padding: 9px 15px;
  font-weight: 600;
  background: var(--surface);
  color: var(--ink);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:hover {
  background: var(--soft);
}
.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.primary:hover {
  background: #703c28;
}
.quiet {
  background: transparent;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
input,
select {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
}
input {
  caret-color: var(--accent);
}
::selection {
  background: #dfbea8;
  color: #29231f;
}
[hidden] {
  display: none !important;
}
.masthead,
main,
footer {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.8px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  gap: 15px;
  align-items: baseline;
}
.brand span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-actions select {
  font-size: 14px;
}
#review-form {
  display: grid;
  gap: 0.65rem;
  max-width: 26rem;
}
#review-form label:not(:first-child),
#review-form button {
  margin-top: 0.65rem;
}
.login {
  max-width: 640px;
  margin: 84px auto 100px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 650;
  color: var(--accent);
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(30px, 4vw, 45px);
  letter-spacing: -1.1px;
  line-height: 1.12;
  margin: 0 0 22px;
  font-weight: 650;
}
h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 12px;
}
.login > p:not(.eyebrow) {
  max-width: 540px;
}
.login .primary {
  margin-top: 18px;
}
.small {
  font-size: 14px;
  color: var(--muted);
}
.privacy-note {
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding-top: 24px;
}
.privacy-note p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 44px 0 36px;
}
.page-heading h1 {
  font-size: 34px;
  margin-bottom: 0;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.filter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  font-size: 14px;
}
.filter select {
  min-width: 180px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
th {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 20px 10px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th:first-child,
td:first-child {
  padding-left: 0;
}
td:last-child {
  padding-right: 0;
}
.participant-name {
  display: block;
  font-weight: 650;
  font-size: 16px;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.row-actions button {
  font-size: 13px;
  padding: 8px 11px;
  min-height: 44px;
}
.subtext {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.status {
  font-weight: 600;
}
.device-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.device-list li {
  margin-bottom: 8px;
}
.device-list button {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  text-decoration: underline;
  font-weight: 400;
  min-height: 44px;
  font-size: 12px;
  color: var(--muted);
}
.contract {
  background: var(--soft);
  padding: 26px 24px;
  align-self: start;
  border-radius: 8px;
}
.contract h2 {
  font-size: 17px;
}
.capacity {
  font-size: 26px;
  letter-spacing: -0.7px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  margin: 15px 0 5px;
}
.contract #term,
.contract #contract-state {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0;
}
.contract hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.contract ol {
  padding-left: 20px;
  font-size: 14px;
}
.contract li {
  padding-left: 3px;
  margin-bottom: 10px;
}
.empty {
  padding: 40px 0;
  max-width: 460px;
}
.empty p {
  color: var(--muted);
}
.colleagues {
  max-width: 760px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.colleagues ul,
.activity ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.colleagues li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.activity {
  max-width: 760px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 14px;
}
.activity summary {
  cursor: pointer;
  padding: 14px 0;
}
.activity li {
  padding: 8px 0;
}
.notice {
  padding: 14px 18px;
  background: var(--soft);
  border-radius: 6px;
  margin: 24px 0;
}
.notice.error,
#dialog-error {
  color: var(--error);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-block: 25px;
  margin-top: 70px;
  font-size: 13px;
  color: var(--muted);
}
dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  width: min(470px, calc(100% - 32px));
  box-shadow: 0 18px 60px #0003;
}
dialog::backdrop {
  background: #211c1866;
}
dialog h2 {
  font-size: 24px;
}
#dialog-intro {
  font-size: 14px;
  color: var(--muted);
}
#dialog-fields label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 18px 0 6px;
}
#dialog-fields input,
#dialog-fields textarea {
  width: 100%;
}
#dialog-fields input[readonly] {
  font-size: 13px;
}
#dialog-fields textarea {
  min-height: 180px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--paper);
  resize: vertical;
}
#dialog-error {
  font-size: 14px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 24px;
  top: -80px;
  z-index: 3;
  background: var(--surface);
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
@media (max-width: 1000px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .contract {
    max-width: none;
    display: block;
  }
  .contract ol {
    max-width: 540px;
  }
  .contract .small {
    max-width: 600px;
  }
}
@media (max-width: 600px) {
  .masthead,
  main,
  footer {
    width: calc(100% - 32px);
  }
  .masthead {
    gap: 10px;
    padding-block: 18px;
  }
  .brand {
    font-size: 23px;
    display: block;
  }
  .brand span {
    display: block;
    font-size: 12px;
  }
  .header-actions {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .header-actions select {
    max-width: 125px;
  }
  .login {
    margin: 52px auto 64px;
  }
  .page-heading {
    margin: 32px 0;
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .section-heading h2 {
    padding-top: 10px;
    width: 100%;
    margin-bottom: 0;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  td {
    padding: 5px 0;
    border: 0;
  }
  td[data-label]::before {
    content: attr(data-label) ': ';
    color: var(--muted);
  }
  td:first-child {
    margin-bottom: 8px;
  }
  .row-actions {
    margin-top: 12px;
  }
  .device-list {
    display: inline-block;
    vertical-align: top;
  }
  .contract {
    padding: 24px;
  }
  .colleagues {
    margin-top: 32px;
  }
  .notice {
    margin-top: 16px;
  }
  footer {
    margin-top: 48px;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #211e1b;
    --surface: #2b2723;
    --ink: #f3eee6;
    --muted: #c2b6a8;
    --line: #50473e;
    --accent: #dfad8c;
    --soft: #332d27;
    --error: #ffaaa1;
  }
  .primary {
    background: #dfad8c;
    color: #211e1b;
    border-color: #dfad8c;
  }
  .primary:hover {
    background: #eec2a4;
  }
  .privacy-note {
    border-color: var(--line);
  }
}
