:root { color-scheme: light; font-family: system-ui, sans-serif; color: #163434; background: #f4f7f5; font-size: 14px; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 960px; margin: 0 auto; padding: 0 24px 32px; }
header { position: relative; padding: 16px 0; margin-bottom: 20px; border-bottom: 1px solid #d6e3dd; }
.brand { color: #08776b; letter-spacing: .15em; font-size: 12px; font-weight: 700; margin: 0 0 4px; }
h1 { font-size: 22px; line-height: 1.3; margin: 0; font-weight: 650; }
h2 { font-size: 18px; line-height: 1.4; margin: 0 0 12px; font-weight: 650; }
h3 { font-size: 16px; line-height: 1.4; margin: 20px 0 10px; font-weight: 650; }
p { line-height: 1.5; margin: 10px 0; }
header > p:last-of-type { color: #44615a; margin-bottom: 0; padding-right: 96px; }
#logout { position: absolute; top: 22px; right: 0; }
form, section { background: white; padding: 16px; border: 1px solid #d6e3dd; border-radius: 6px; margin-top: 16px; }
section > form { border: 0; border-radius: 0; padding: 0; margin-top: 16px; }
#password-login { border: 0; padding: 0; margin-top: 16px; }
#password-auth { max-width: 500px; margin: 28px auto 0; padding: 20px; }
#password-completion h3 { margin-top: 0; font-size: 18px; }
label { display: block; font-weight: 600; line-height: 1.5; margin-bottom: 12px; }
input, select, textarea { width: 100%; min-height: 36px; padding: 7px 10px; margin-top: 4px; border: 1px solid #9eb6ad; border-radius: 4px; font: inherit; line-height: 20px; color: inherit; background: white; }
textarea { min-height: 88px; resize: vertical; }
input, select, textarea { font-weight: 400; }
input[type="checkbox"] { width: 16px; min-height: 16px; height: 16px; margin: 3px 8px 0 0; flex: 0 0 16px; accent-color: #08776b; }
label:has(input[type="checkbox"]) { display: flex; align-items: flex-start; font-weight: 400; }
input[type="file"] { padding: 6px; height: auto; }
button { background: #08776b; color: white; border: 1px solid #08776b; border-radius: 4px; min-height: 36px; padding: 7px 12px; font: inherit; line-height: 20px; font-weight: 600; cursor: pointer; }
button:hover { box-shadow: inset 0 0 0 1px currentColor; }
button:disabled { opacity: .55; cursor: wait; }
a { color: #08776b; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #38b5a1; outline-offset: 2px; }
.secondary, #logout, #preview-mailbox, #new-colleague, #disconnect-source, #remove-colleague, #documents button { background: white; color: #08776b; border-color: #9eb6ad; }
.auth-actions, .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.auth-actions button { font-weight: 400; }
.fields, .dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.account-field { max-width: 180px; }
fieldset { margin: 12px 0; padding: 12px; border: 1px solid #d6e3dd; border-radius: 4px; min-width: 0; }
legend { padding: 0 4px; font-weight: 600; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; line-height: 1.5; overflow-wrap: anywhere; }
.reference, #test-notice, #password-signin > p { color: #44615a; }
.reference { font-size: 13px; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
p:empty:not([role]):not([aria-live]), pre:empty { display: none; }
#documents { padding: 0; list-style: none; }
#documents li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 0; border-bottom: 1px solid #d6e3dd; margin: 0; }
#documents label { margin: 0; min-width: 0; flex: 1 1 240px; }
#documents button { font-size: 13px; flex: 0 0 auto; }
#colleague-users { display: grid; margin-bottom: 12px; }
#colleague-users button { text-align: left; background: white; color: #163434; border-color: #d6e3dd; border-radius: 0; overflow-wrap: anywhere; }
#connection-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid #d6e3dd; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #d6e3dd; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  main { padding: 0 16px 24px; }
  header { padding-top: 14px; }
  header > p:last-of-type { padding-right: 0; }
  form, section { padding: 14px; }
  #password-auth { padding: 16px; margin-top: 20px; }
  .fields, .dates { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .auth-actions { align-items: stretch; flex-direction: column; }
  button, input, select { min-height: 38px; }
  input[type="checkbox"] { min-height: 16px; }
  #logout { top: 18px; }
  h1 { padding-right: 90px; }
}
