@font-face {
  font-family: Barlow;
  src: url('./barlow-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('./barlow-semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('./barlow-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #05084b;
  --side: #05084b;
  --blue: #297bff;
  --mint: #00ffb6;
  --active: #164fb4;
  --muted: #505b70;
  --line: #d8dee7;
  --wash: #eef3fc;
  --radius: .55rem;
  font-family: Barlow, "Segoe UI", sans-serif;
  background: #edeeef;
  color: var(--ink);
}
h1, h2 { letter-spacing: -.02em; font-weight: 700; }
button { border-color: #bfcada; border-radius: .35rem; }
button:hover:not(:disabled) { background: var(--wash); }
button.primary { background: var(--ink); border-color: var(--ink); }
button.primary:hover:not(:disabled) { background: var(--active); border-color: var(--active); }
:is(button, a, input, select, textarea):focus-visible { outline-color: var(--blue); }
input, textarea, select { border-color: #aab5c7; border-radius: .35rem; }
input[readonly], .selection, .preview-text { background: #f1f4fa; }
input::placeholder, textarea::placeholder { color: #697489; }

.ub-wordmark img { display: block; width: 8.4rem; max-width: 70%; height: auto; filter: brightness(0) invert(1); }
.ub-wordmark span {
  border-left: 1px solid #73769d;
  padding-left: .65rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--mint);
  overflow-wrap: anywhere;
}
.sidebar { color: white; }
.sidebar .wordmark { border-color: #373961; padding-inline: .35rem; }
.sidebar nav a { color: #e0e6ff; border-radius: .35rem; }
.sidebar nav a:hover, .account button:hover:not(:disabled) { background: #20245d; }
.sidebar nav a[aria-current] { background: var(--mint); color: var(--ink); }
.sidebar :focus-visible { outline-color: var(--mint); outline-offset: -2px; }
.account { border-color: #373961; }
.account small { color: #b5c0da; }
.account button { color: white; }

.auth-page {
  padding: clamp(1rem, 4vw, 3rem);
  background: #edeeef;
}
.auth-card {
  --pad: clamp(1.25rem, 5vw, 2.25rem);
  width: min(100%, 28rem);
  padding: 0 var(--pad) var(--pad);
  border: 0;
  border-radius: .6rem;
  box-shadow: 0 12px 38px #05084b16;
}
.auth-card .ub-wordmark {
  isolation: isolate;
  overflow: hidden;
  position: relative;
  margin: 0 calc(-1 * var(--pad)) .7rem;
  padding: 2.5rem var(--pad);
  min-height: 8.3rem;
  background: var(--ink);
  border-bottom: .25rem solid var(--mint);
  border-radius: .6rem .6rem 0 0;
}
.auth-card .ub-wordmark::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -2.8rem;
  bottom: -2.35rem;
  width: 12rem;
  height: 10rem;
  background: #15367d;
  mask: url('./simbolo.svg') center / contain no-repeat;
}
.auth-card .ub-wordmark img { width: 10.25rem; }
.auth-card h1 { line-height: 1.15; }
.access-roles { gap: .65rem; }
.access-roles button { justify-content: flex-start; padding: .9rem 1rem; gap: .85rem; }
.access-roles button svg { color: var(--active); width: 1.25rem; height: 1.25rem; }
.access-roles button::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border: solid var(--active);
  border-width: 1.5px 1.5px 0 0;
  margin-left: auto;
  transform: rotate(45deg);
}

.page-head { border-bottom: 1px solid #cbd2df; margin-bottom: 1.25rem; }
th { background: #f3f5fa; color: #414e6d; }
td, th { border-bottom-color: #e2e6ed; }
.search > svg, .empty > svg { color: var(--active); }
.avatar { color: #143d86; background: #e2ecff; border-radius: .5rem; }
.tag { background: #e9edf4; color: #46536c; }
.tag.green { background: #d3faed; color: #12533f; }
dialog { box-shadow: 0 20px 65px #05084b38; }
dialog::backdrop { background: #05082e80; }
.column { background: #e5e9f0; border-color: #cfd7e4; }
.stage-dot { background: var(--blue); }
.won .stage-dot { background: #007657; }
.deal span { color: var(--active); }
.thread-row[aria-pressed=true] { background: #e6edfd; box-shadow: inset 3px 0 var(--blue); }
.message-log { background: #eff2f7; }
.bubble { border-color: var(--line); }
.bubble.out { background: #d8f8ec; border-color: #afe7d4; }
.compose-tabs .selected { color: #123d87; border-color: #82a7e8; background: var(--wash); }
.report-totals dd { color: var(--ink); font-weight: 700; }

@media (min-width: 701px) and (max-width: 900px) {
  .sidebar .ub-wordmark { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .sidebar .ub-wordmark img { max-width: 100%; }
  .sidebar .ub-wordmark span { border: 0; padding: 0; }
}
@media (max-width: 700px) {
  .sidebar .wordmark { padding: .35rem 0; }
  .sidebar .ub-wordmark img { width: 6.5rem; }
  .sidebar .ub-wordmark span { font-size: .75rem; }
  .page-head { margin-bottom: .85rem; }
}
