@font-face {
  font-family: Manrope;
  src: url("../duo-fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #281b38;
  --muted: #62556f;
  --primary: #5427b6;
  --wash: #f6f2fb;
  --line: #e0d7ea;
  --white: #fff;
  --ok: #285c47;
  --warn: #872b2b;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--wash);
  font-size: 15px;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--primary); font-weight: 750; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a279ef; outline-offset: 3px; }
.frame { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.bar { background: #251638; color: var(--white); }
.bar-inner { min-height: 68px; display: flex; align-items: center; gap: 34px; justify-content: space-between; }
.brand { color: var(--white); font-weight: 800; letter-spacing: -.03em; font-size: 1.17rem; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand span { width: 28px; height: 16px; background: radial-gradient(circle at 8px 8px,#ff9974 0 7px,transparent 7.2px),radial-gradient(circle at 20px 8px,#a779ff 0 7px,transparent 7.2px); }
.bar nav, .account { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.bar nav a, .account .plain { color: #f3eaff; font-size: .91rem; }
.account span { color: #d1bddf; font-size: .86rem; overflow-wrap: anywhere; }
.canvas { padding-block: 34px 70px; }
.heading { display: flex; gap: 20px; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; }
.heading.compact { align-items: center; margin-bottom: 16px; }
.heading h2, .heading h3 { margin: 0; }
h1 { margin: 0; font-size: clamp(2rem,4vw,3.5rem); line-height: 1.11; letter-spacing: -.065em; font-weight: 800; overflow-wrap: anywhere; }
h2 { font-size: 1.3rem; margin: 0 0 16px; letter-spacing: -.028em; }
h3 { font-size: 1.01rem; }
p { line-height: 1.55; }
.label { margin: 0 0 7px; color: var(--primary); font-size: .77rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.back { display: inline-block; margin-bottom: 18px; }
.panel, .metrics > div { border: 1px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: 0 6px 19px #281b3808; }
.panel { padding: 22px; margin-bottom: 20px; min-width: 0; }
.narrow { max-width: 645px; margin-top: 20px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metrics > div { padding: 18px 20px; display: grid; gap: 4px; }
.metrics span { color: var(--muted); font-size: .88rem; font-weight: 750; }
.metrics strong { font-size: 2rem; font-weight: 800; }
.actions, .inline-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.actions input[type=search] { width: min(248px, 100%); }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; padding: 9px 15px; min-height: 40px; border-radius: 9px; font-size: .9rem; font-weight: 800; background: var(--primary); color: var(--white); text-decoration: none; }
.button:hover { filter: brightness(.92); }
.button.secondary { color: var(--primary); background: #f3eafb; border-color: #dbcbef; }
.plain { border: 0; padding: 2px 0; background: none; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; font-weight: 750; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .92rem; }
th, td { padding: 12px 10px; border-bottom: 1px solid #ebe5f1; vertical-align: top; }
th { color: var(--muted); background: #fbf8fe; font-size: .79rem; white-space: nowrap; }
td:first-child { overflow-wrap: anywhere; }
td small { display: block; margin-block: 4px; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; background: #f2eafd; color: #593488; border-radius: 25px; padding: 4px 9px; font-size: .79rem; font-weight: 750; }
.ok-text { color: var(--ok); font-weight: 800; }
.muted, small { color: var(--muted); }
.split, .tiles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.tile { display: flex; justify-content: space-between; align-items: flex-start; text-decoration: none; color: var(--ink); }
.tile h2 { margin: 0; }
.tile p { margin-bottom: 0; }
.tile span { color: var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 20px; max-width: 950px; }
.wide { grid-column: 1 / -1; }
.stack, .form-grid p { display: grid; gap: 7px; }
.form-grid p, .stack p { margin: 0; }
.stack p { display: grid; gap: 5px; }
label, summary { font-weight: 750; }
input:not([type=checkbox]), textarea, select { min-width: 0; max-width: 100%; border: 1px solid #cbbfd7; padding: 9px 10px; border-radius: 7px; background: white; color: var(--ink); }
input[type=checkbox] { width: 17px; height: 17px; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
details > form { margin-top: 11px; }
summary { cursor: pointer; }
.task { border-top: 1px solid var(--line); padding: 14px 0; }
.task p { margin: 6px 0; overflow-wrap: anywhere; }
.task details { margin-top: 10px; }
.jump { display: flex; flex-wrap: wrap; gap: 15px; margin: 18px 0; }
.notice, .messages li { border: 1px solid var(--line); background: #f0e7fc; padding: 12px 16px; border-radius: 10px; margin-bottom: 15px; }
.messages { padding: 0; list-style: none; }
.messages li.error, .errorlist { color: var(--warn); }
.messages li.success { border-color: #bbd9c6; background: #eef9f3; color: var(--ok); }
.activity { padding: 0; list-style: none; font-size: .88rem; }
.activity li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.activity time, .activity span { color: var(--muted); margin-right: 8px; }
.login { max-width: 440px; margin: 7vh auto; padding: 28px; }
.login form { gap: 16px; margin-top: 22px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 3; padding: 12px; background: white; }
@media (max-width: 780px) {
  .frame { width: calc(100% - 26px); }
  .bar-inner, .heading { flex-wrap: wrap; align-items: center; gap: 12px; padding-block: 10px; }
  .account span { display: none; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .split, .tiles, .form-grid { grid-template-columns: minmax(0,1fr); }
  .panel, .metrics > div { padding: 14px; }
  .table-wrap table { min-width: 620px; }
  .table-wrap.portal-docs table { min-width: 0; font-size: .84rem; }
  .portal-docs th, .portal-docs td { padding-inline: 6px; }
}
