:root {
  font-family: Arial, Helvetica, system-ui, sans-serif;
  color: #172131;
  background: #fff;
  font-synthesis: none;
  --muted: #667085;
  --blue: #1760ef;
  --border: #d0d5dd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 84px;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-size: 24px;
  font-weight: 600;
  color: #172131;
  text-decoration: none;
}
nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
nav a,
nav button {
  font-size: 18px;
  color: #172131;
}
a,
.text-button {
  color: var(--blue);
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
:focus-visible {
  outline: 3px solid #8cb4ff;
  outline-offset: 3px;
}
main {
  width: calc(100% - 48px);
  margin: clamp(64px, 18vh, 180px) auto 64px;
  max-width: 488px;
  font-size: 18px;
}
main:focus {
  outline: none;
}
h1 {
  font-size: 44px;
  line-height: 1.2;
  margin: 0 0 4px;
  letter-spacing: -1px;
}
h2 {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.intro {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 34px;
}
form {
  margin: 0;
}
.field {
  display: block;
  margin-bottom: 28px;
}
.field > label {
  display: block;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
input:not([type="checkbox"]) {
  width: 100%;
  height: 56px;
  border: 1px solid #bfc6d0;
  background: white;
  border-radius: 6px;
  padding: 0 18px;
  color: #172131;
  min-width: 0;
}
input::placeholder {
  color: var(--muted);
}
.password {
  position: relative;
}
.password input {
  padding-right: 90px;
}
.password button {
  position: absolute;
  right: 18px;
  top: 0;
  height: 56px;
}
.text-button {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  line-height: 1.5;
}
.primary,
.secondary {
  border-radius: 6px;
  padding: 14px 24px;
  min-height: 50px;
  line-height: 1.4;
  font-size: 18px;
  font-weight: 600;
}
.primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
}
.secondary {
  border: 1px solid var(--border);
  background: white;
  color: #344054;
}
.submit {
  width: 100%;
  height: 56px;
  margin-top: 4px;
}
.help {
  text-align: center;
  margin: 24px 0 0;
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 16px;
}
.error,
.success {
  font-size: 16px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 6px;
  margin: 0 0 20px;
}
.error {
  color: #a61c20;
  background: #fff1f1;
}
.success {
  color: #176b41;
  background: #edf8f1;
}
[hidden] {
  display: none !important;
}
.account-name {
  margin: 22px 0 0;
  font-weight: 600;
}
.account-email {
  margin: 4px 0 30px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.account-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.wide {
  max-width: 1184px;
  margin-top: clamp(64px, 15.5vh, 164px);
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.wide h1 {
  font-size: 40px;
}
.wide .intro {
  margin: 0;
  line-height: 1.5;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 18px;
}
th,
td {
  text-align: left;
  padding: 24px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
th {
  font-size: 20px;
  font-weight: 600;
}
td.actions {
  display: flex;
  gap: 36px;
  align-items: center;
  min-height: 84px;
}
.table-note {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 24px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin: 4px 0 24px;
}
.checkbox input {
  width: 18px;
  height: 18px;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 560px;
  max-width: calc(100% - 32px);
  padding: 30px;
  color: #172131;
  font-size: 18px;
}
dialog::backdrop {
  background: rgba(17, 24, 39, 0.28);
}
dialog .field > label {
  font-size: 16px;
}
dialog input:not([type="checkbox"]) {
  height: 48px;
}
dialog .intro {
  font-size: 16px;
  margin-bottom: 24px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}
.link-field {
  font-size: 14px;
}
.copy-note {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 640px) {
  header {
    height: 72px;
    padding: 0 20px;
  }
  .brand {
    font-size: 20px;
  }
  nav {
    gap: 18px;
  }
  nav a,
  nav button {
    font-size: 15px;
  }
  main {
    width: calc(100% - 40px);
    margin-top: 56px;
    font-size: 16px;
  }
  h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
  }
  .field > label {
    font-size: 16px;
  }
  .field {
    margin-bottom: 22px;
  }
  input:not([type="checkbox"]),
  .password button,
  .submit {
    height: 48px;
  }
  .primary,
  .secondary {
    font-size: 16px;
    min-height: 48px;
    padding: 12px 18px;
  }
  .wide {
    margin-top: 48px;
  }
  .wide h1 {
    font-size: 32px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 14px;
  }
  .page-heading .primary {
    white-space: nowrap;
    padding: 10px 14px;
  }
  .wide .intro {
    font-size: 15px;
    margin-top: 6px;
  }
  table {
    font-size: 16px;
  }
  th {
    font-size: 16px;
  }
  th,
  td {
    padding: 20px 14px;
  }
  .table-note {
    font-size: 15px;
  }
  dialog {
    padding: 24px;
  }
  dialog h2 {
    font-size: 24px;
  }
  .dialog-actions {
    gap: 10px;
    flex-wrap: wrap;
  }
}
@media (min-width: 641px) {
  main {
    margin-top: clamp(64px, 19vh, 190px);
    font-size: 20px;
  }
  .intro {
    line-height: 1.35;
  }
  .field {
    margin-bottom: 32px;
  }
  .submit {
    margin-top: 0;
  }
  .primary,
  .secondary {
    font-size: 20px;
    padding: 12px 24px;
  }
  .small {
    font-size: 18px;
  }
  .wide {
    margin-top: clamp(64px, 15.5vh, 164px);
  }
  dialog .small,
  dialog .primary,
  dialog .secondary {
    font-size: 16px;
  }
}
nav a {
  text-decoration: none;
}
nav a:hover {
  text-decoration: underline;
}
nav .text-button {
  color: #172131;
  font-size: 18px;
}
.page-heading {
  margin-bottom: 16px;
}
.page-heading .primary {
  font-size: 18px;
  min-height: 48px;
  padding: 10px 22px;
}
table {
  table-layout: fixed;
  min-width: 1020px;
}
th:nth-child(1) {
  width: 17%;
}
th:nth-child(2) {
  width: 23%;
}
th:nth-child(3) {
  width: 17%;
}
th:nth-child(4) {
  width: 17%;
}
th:nth-child(5) {
  width: 26%;
}
td:not(.actions) {
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 641px) {
  table {
    font-size: 20px;
  }
}
@media (max-width: 640px) {
  nav .text-button {
    font-size: 15px;
  }
  .page-heading .primary {
    font-size: 16px;
    padding: 10px 14px;
  }
}

.retry {
  display: block;
  margin-top: 8px;
}
.visually-hidden {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.document-search {display:flex;gap:12px;max-width:680px;margin:32px 0 24px}
.document-scopes {display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--border);padding-bottom:16px}
.document-scopes button {border:0;border-radius:6px;background:#f3f5f8;padding:10px 16px;color:#475467}
.document-scopes button[aria-pressed="true"] {background:#eaf1ff;color:#1251ce}
#list-status {font-size:16px;color:var(--muted)}
.document-list {min-width:720px;font-size:17px}
.document-list th {font-size:16px;color:var(--muted)}
.document-list th:nth-child(1) {width:42%}.document-list th:nth-child(2) {width:20%}.document-list th:nth-child(3) {width:25%}.document-list th:nth-child(4) {width:13%}
.document-list a {text-decoration:none;font-weight:600;color:#172131}.document-list a:hover {color:var(--blue);text-decoration:underline}
#more-documents {margin-top:24px}
.document-page {margin-top:40px;max-width:1200px}
.back-link {display:inline-block;font-size:16px;margin-bottom:26px;text-decoration:none}
.document-title {display:flex;align-items:center;gap:16px}
.document-title input {font-size:32px;font-weight:600;border-color:transparent;padding-left:0;height:64px}
.document-title input:hover:not([readonly]),.document-title input:focus {border-color:var(--border)}
#title-status {font-size:14px;color:var(--muted);white-space:nowrap}
.preview-label {font-size:14px;color:var(--muted);margin:12px 0 28px}
.document-preview {border-top:1px solid #eaecf0;padding-top:24px;min-height:300px;overflow:auto;font-size:16px;line-height:1.6}
.document-preview table {min-width:0;font-size:16px}.document-preview td {padding:12px;white-space:normal;border:1px solid var(--border);overflow:visible}
.document-preview p {min-height:1.6em;margin:8px 0}.document-preview pre {background:#f5f6f8;padding:16px;border-radius:6px}.document-preview figure {margin:12px 0}
@media(max-width:640px){header{gap:10px;padding:0 16px}.brand{font-size:17px}nav{gap:12px}nav a,nav .text-button{font-size:13px}.document-search{gap:8px}.document-title{display:block}.document-title input{font-size:26px}.document-scopes button{font-size:14px;padding:10px}.document-page{margin-top:28px}}
