@import url('/workspace.css');
@import url('/forms.css');
:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #273b4a;
  background: #f3f5f7;
  font-synthesis: none;
  font-size: 13px;
  --brand: #bb351c;
  --orange: #ed741d;
  --blue: #215e8b;
  --muted: #71818f;
  --line: #e0e5e9;
  --green: #258a5a;
  --red: #bd353a;
  --shadow: 0 2px 8px #18364b09;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #e78a34;
  outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
button {
  border: 0;
}
button.primary,
.primary {
  background: var(--brand);
  color: white;
  border: 1px solid var(--brand);
  border-radius: 3px;
  padding: 9px 17px;
  font-weight: 600;
}
button.secondary,
.secondary {
  background: #fff;
  border: 1px solid #c8d3dc;
  border-radius: 3px;
  color: var(--blue);
  padding: 8px 14px;
}
button.outline {
  background: white;
  color: var(--brand);
  border: 1px solid #d57460;
  border-radius: 3px;
  padding: 8px 15px;
}
button.danger {
  color: #b53237;
  background: #fff0f0;
  border: 1px solid #f2c4c4;
  border-radius: 3px;
  padding: 8px 14px;
}
button.link {
  padding: 5px 3px;
  background: transparent;
  color: var(--blue);
}
button.icon-button {
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: inherit;
  font-size: 19px;
}
button.icon-button:hover {
  background: #ffffff22;
}
small,
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
}
.money {
  font-variant-numeric: tabular-nums;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -50px;
  left: 12px;
  background: #fff;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus-visible {
  top: 4px;
}
.initial-loading {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 65vh;
}
.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #e0c4bb;
  border-top-color: var(--brand);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  background: #eef3f6;
  color: #537085;
}
.badge.success {
  background: #e9f6ef;
  color: #26774e;
}
.badge.warning {
  background: #fff3df;
  color: #996315;
}
.badge.danger {
  background: #ffebeb;
  color: #aa333b;
}
.badge.neutral {
  background: #edf0f4;
  color: #647588;
}
.badge-dot {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.empty-state {
  text-align: center;
  padding: 42px 20px;
  color: var(--muted);
}
.empty-state h3 {
  color: #365468;
  margin: 8px 0;
}
.error-panel {
  border: 1px solid #edc3c5;
  border-left: 3px solid #c44549;
  background: #fff3f3;
  padding: 12px 14px;
  color: #a03137;
  border-radius: 3px;
  margin: 0 0 14px;
  line-height: 1.5;
}
.error-panel strong {
  display: block;
  font-size: 13px;
}
.error-panel code {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: #a16c70;
  overflow-wrap: anywhere;
}
.inline-note {
  padding: 10px 12px;
  border: 1px solid #d9e7f1;
  background: #f3f8fc;
  border-radius: 3px;
  color: #4d6b81;
  font-size: 12px;
  line-height: 1.6;
}
.inline-note.warning {
  background: #fff9ec;
  border-color: #efdfb6;
  color: #8a6d26;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #253e4f;
  color: white;
  border-radius: 6px;
  padding: 12px 22px;
  box-shadow: 0 8px 32px #0002;
  z-index: 100;
  max-width: calc(100vw - 32px);
  line-height: 1.5;
}
.toast[hidden] {
  display: none;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #f4f5f6;
}
.auth-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 950px;
  width: 100%;
  background: #fff;
  box-shadow: 0 16px 65px #283d4f17;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  overflow: hidden;
}
.auth-brand {
  background: linear-gradient(135deg, #b12c1b, #e45b1d 65%, #f08022);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
}
.auth-brand .brand-mark {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
}
.auth-brand h1 {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.8px;
}
.auth-brand p {
  font-size: 14px;
  letter-spacing: 1.5px;
  margin-top: 8px;
  opacity: 0.85;
}
.auth-brand .product-label {
  font-size: 12px;
  letter-spacing: 0;
  margin-top: 44px;
  opacity: 0.8;
}
.auth-form {
  padding: 45px 40px;
}
.auth-form h2 {
  font-size: 21px;
  margin-bottom: 8px;
}
.auth-form > p {
  font-size: 12px;
  color: #7d8992;
  margin-bottom: 25px;
}
.auth-form .field {
  margin-top: 18px;
}
.auth-form .primary {
  margin-top: 22px;
  width: 100%;
  padding: 11px;
}
.auth-footer {
  font-size: 11px;
  color: #9ba4ac;
  margin-top: 22px;
  line-height: 1.7;
}
.auth-footer span {
  display: block;
}
.modal {
  border: 0;
  border-radius: 5px;
  width: min(760px, calc(100vw - 32px));
  padding: 0;
  box-shadow: 0 20px 80px #14212d4d;
  max-height: 90dvh;
  overflow: hidden;
  color: #273b4a;
}
.modal::backdrop {
  background: #1a2d4060;
}
.modal[open] {
  display: flex;
  flex-direction: column;
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}
.modal-heading h2 {
  font-size: 16px;
  color: #244963;
}
.modal-body {
  padding: 20px;
  overflow: auto;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}
.modal-wide {
  width: min(1050px, calc(100vw - 32px));
}
.modal-body pre {
  white-space: pre-wrap;
  font:
    12px/1.7 Arial,
    sans-serif;
}
.dialog-text {
  line-height: 1.8;
  font-size: 13px;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.value-grid dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.value-grid dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.document-view {
  padding: 24px;
  background: #fff;
  line-height: 1.8;
  max-width: 800px;
}
.document-view h1 {
  font:
    24px Georgia,
    serif;
  color: #b23d26;
  border-bottom: 2px solid #c3472d;
  padding-bottom: 18px;
  margin-bottom: 20px;
}
.document-view h2 {
  font-size: 17px;
  margin: 20px 0 10px;
}
.document-view table {
  margin: 18px 0;
}
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.history-list li {
  border-left: 2px solid #dce5eb;
  padding: 0 0 22px 18px;
  position: relative;
  margin-left: 7px;
}
.history-list li:before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d2764d;
  border: 3px solid white;
  position: absolute;
  left: -7px;
  top: 1px;
}
.history-list p {
  margin: 7px 0 5px;
  line-height: 1.5;
}
.history-list small {
  font-size: 10px;
}
.no-wrap {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .auth-panel {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .auth-brand {
    padding: 28px 32px;
  }
  .auth-brand h1 {
    font-size: 28px;
  }
  .auth-brand .product-label {
    margin-top: 20px;
  }
  .auth-brand .brand-mark {
    margin-bottom: 12px;
    width: 32px;
    height: 32px;
  }
  .auth-form {
    padding: 28px 30px;
  }
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
