:root {
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: #061b36;
  --navy: #051a36;
  --ink: #101b2d;
  --muted: #566273;
  --line: #e1e6ec;
  --mist: #f4f6f9;
  --green: #20c969;
  --deep-green: #13633b;
  --green-wash: #e7f7ee;
  --red: #a93337;
  --max: 1160px;
  background: white;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
a { color: inherit; }
:focus-visible { outline: 3px solid #148e55; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.042em; font-weight: 650; }
img { max-width: 100%; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 5; transform: translateY(-150%); padding: 10px 16px; background: white; }
.skip:focus { transform: translateY(0); }
.wrap { max-width: calc(var(--max) + 80px); margin: auto; padding-inline: 40px; }
.header { border-bottom: 1px solid var(--line); background: white; }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { position: relative; flex: 0 0 auto; display: block; width: 174px; height: 44px; overflow: hidden; }
.brand img { position: absolute; width: 202px; max-width: none; left: -19px; top: -25px; }
.header-right, .profile, .toolbar, .actions, .eyebrow, .back { display: flex; align-items: center; gap: 12px; }
.header-right { gap: 22px; }
.profile { font-size: 13px; font-weight: 570; }
.avatar { display: grid; place-items: center; height: 33px; width: 33px; border-radius: 50%; background: var(--mist); color: var(--navy); font-size: 11px; font-weight: 700; }
.environment { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.environment::before, .dot { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; flex: 0 0 auto; }
.button, .ghost, .text-btn { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 650; text-decoration: none; line-height: 1.15; }
.button { border-radius: 999px; min-height: 43px; padding: 10px 17px; background: var(--navy); color: white; white-space: nowrap; border: 1px solid transparent; }
.button:hover { background: #143658; }
.button.accent { background: var(--green); color: #062719; }
.button.accent:hover { background: #31d67b; }
.button.outline { background: white; border-color: #ced6e0; color: var(--navy); }
.button.outline:hover { background: var(--mist); }
.ghost { min-height: 38px; padding: 8px 11px; border-radius: 11px; background: transparent; color: var(--navy); }
.ghost:hover, .row-link:hover { background: var(--mist); }
.text-btn { padding: 6px 0; background: transparent; color: var(--deep-green); text-align: left; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-btn.danger { color: var(--red); }
.muted { color: var(--muted); }
.login { display: grid; grid-template-columns: minmax(300px, .86fr) minmax(360px, 1.14fr); gap: clamp(38px, 8vw, 110px); align-items: center; padding-top: clamp(36px, 7vh, 86px); padding-bottom: 60px; min-height: calc(100svh - 73px); }
.login-copy { max-width: 405px; width: 100%; }
.login h1 { font-size: clamp(45px, 5.2vw, 72px); max-width: 440px; line-height: 1; margin-bottom: 16px; }
.login-copy > p { max-width: 33ch; color: var(--muted); font-size: 16px; margin-bottom: 28px; }
.login form { display: grid; gap: 15px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 620; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #cfd7e0; border-radius: 11px; background: white; color: var(--ink); font-size: 15px; }
input::placeholder, textarea::placeholder { color: #687383; }
textarea { resize: vertical; min-height: 118px; }
input[type="file"] { min-height: 52px; }
.secret { position: relative; }
.secret input { padding-right: 54px; }
.secret button { position: absolute; top: 2px; right: 5px; }
.login form > .text-btn { justify-self: end; }
.login form > .button { min-height: 47px; margin-top: 2px; }
.demo-actions { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.demo-actions p { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.demo-actions .actions { flex-wrap: wrap; }
.hero-art { position: relative; border-radius: 28px; background: #f1f4f8; min-height: 550px; overflow: hidden; display: grid; align-items: center; justify-items: center; isolation: isolate; }
.hero-art::before, .hero-art::after { position: absolute; content: ""; width: 510px; aspect-ratio: 1; border-radius: 50%; border: 1px solid #dce4ed; inset: auto -210px -237px auto; z-index: -1; }
.hero-art::after { width: 585px; inset: auto -248px -275px auto; border-color: #d6e8e0; }
.hero-art img { mix-blend-mode: multiply; width: 93%; height: auto; object-fit: contain; }
.hero-caption { position: absolute; bottom: 29px; left: 32px; display: flex; align-items: center; gap: 10px; color: #39495e; font-size: 13px; }
.hero-caption .icon { color: var(--deep-green); }
.workspace { padding-block: 42px 70px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.page-head h1 { font-size: clamp(43px, 5vw, 66px); }
.page-head p { color: var(--muted); margin-top: 9px; font-size: 15px; }
.page-head .actions:empty { display: none; }
.page-head .actions { flex-wrap: wrap; justify-content: flex-end; padding-bottom: 5px; }
.eyebrow { margin-bottom: 12px; gap: 7px; font-size: 13px; font-weight: 600; color: var(--deep-green); }
.directory { background: var(--mist); border-radius: 28px; padding: 18px; }
.toolbar { justify-content: space-between; padding: 3px 3px 16px; gap: 14px; }
.search { position: relative; max-width: 365px; width: 100%; }
.search > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #596a7c; }
.search input { padding-left: 41px; border-color: #dbe1e9; border-radius: 999px; min-height: 42px; font-size: 14px; }
.tabs { display: inline-flex; align-items: center; gap: 3px; border-radius: 999px; background: #e9edf2; padding: 3px; flex-shrink: 0; }
.tabs button { padding: 8px 12px; font-size: 13px; line-height: 1.2; font-weight: 600; border: 0; border-radius: inherit; color: var(--muted); background: transparent; }
.tabs button[aria-pressed="true"] { color: var(--navy); background: white; }
.table-wrap { background: white; border: 1px solid #e7ebf1; border-radius: 17px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 19px; font-weight: 650; font-size: 12px; color: #536174; background: #fcfcfd; white-space: nowrap; }
td { padding: 14px 19px; border-top: 1px solid #edf0f4; color: #415068; font-size: 14px; vertical-align: middle; }
td:last-child { text-align: right; }
td strong { color: var(--ink); font-size: 14px; font-weight: 650; }
.identity { display: flex; align-items: center; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.identity small, .doc-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.tile { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; background: #eef1f6; color: var(--navy); font-size: 12px; font-weight: 750; }
.tile.sage { background: #e9f7ef; color: #186440; }
.tile.sand { background: #f7f0e3; color: #644b2c; }
.tile.blue { background: #eaf1fa; color: #244c7a; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 620; line-height: 1.2; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8592a3; flex: 0 0 auto; }
.status.active { color: var(--deep-green); }
.status.active::before { background: #159753; }
.status.pending { color: #74551c; }
.status.pending::before { background: #ad7a1c; }
.row-link { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--navy); padding: 9px; border-radius: 11px; min-width: 38px; }
.directory-footer { display: flex; justify-content: space-between; padding: 14px 5px 0; color: var(--muted); font-size: 12px; gap: 10px; }
.back { margin-bottom: 17px; font-size: 14px; }
.customer { display: flex; align-items: center; gap: 15px; }
.customer .tile { width: 57px; height: 57px; border-radius: 17px; font-size: 17px; }
.grid { display: grid; grid-template-columns: 242px minmax(0, 1fr); gap: 23px; align-items: start; }
.periods { padding: 19px; background: var(--mist); border-radius: 23px; }
.periods h2, .file-head h2 { font-size: 22px; }
.periods h2 { margin-bottom: 14px; }
.period-list { display: grid; gap: 4px; }
.period-list button, .folder-list button { display: flex; align-items: center; gap: 9px; text-align: left; color: var(--navy); font-weight: 650; border: 1px solid transparent; background: transparent; border-radius: 11px; padding: 9px 10px; font-size: 13px; }
.period-list button:hover, .folder-list button:hover { background: var(--mist); }
.period-list button[aria-pressed="true"] { background: white; border-color: #dce4eb; }
.period-list button[aria-pressed="true"] .icon { color: var(--deep-green); }
.periods > .text-btn { margin-top: 10px; }
.folder-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 19px; }
.folder-list button { background: #f7f8fa; border-color: var(--line); padding: 9px 13px; }
.folder-list button[aria-pressed="true"] { color: #105c36; background: var(--green-wash); border-color: #cbebd8; }
.file-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 13px; margin-bottom: 12px; }
.file-head .actions { flex-wrap: wrap; }
.files .tile { height: 35px; width: 35px; border-radius: 11px; }
.files td { padding-top: 11px; padding-bottom: 11px; }
.files .actions { justify-content: flex-end; flex-wrap: wrap; gap: 7px 13px; }
.empty { text-align: center; padding: 42px 20px; color: var(--muted); font-size: 15px; }
.empty strong { color: var(--ink); display: block; margin-bottom: 5px; }
.notice { padding: 13px 16px; border-radius: 13px; background: var(--mist); font-size: 14px; color: #35465d; margin-bottom: 16px; overflow-wrap: anywhere; }
.notice.error { background: #fdf0ef; color: var(--red); }
dialog { border: 1px solid var(--line); border-radius: 24px; color: var(--navy); padding: 24px; width: min(520px, calc(100vw - 30px)); max-height: calc(100dvh - 36px); }
dialog::backdrop { background: #03152b62; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.dialog-head h2 { font-size: 28px; padding-top: 4px; }
dialog form { display: grid; gap: 13px; }
dialog .actions { justify-content: flex-end; margin-top: 7px; flex-wrap: wrap; }
dialog .notice { margin-bottom: 0; }
.access-list { list-style: none; padding: 0; margin: 0 0 18px; }
.access-list li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; overflow-wrap: anywhere; font-size: 13px; }
.note-preview { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.preview-image { display: block; max-height: 65vh; margin: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 10; width: max-content; max-width: calc(100vw - 34px); padding: 11px 17px; border-radius: 13px; background: var(--navy); color: #fff; font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 980px) {
  .wrap { padding-inline: 28px; }
  .login { gap: 46px; }
  .hero-art { min-height: 515px; }
  th, td { padding-inline: 13px; }
  .grid { grid-template-columns: 195px minmax(0, 1fr); gap: 17px; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 19px; }
  .header-inner { height: 63px; }
  .header-right { gap: 8px; }
  .profile > span:last-child { display: none; }
  .login { display: block; padding-block: 36px; }
  .login-copy { max-width: 440px; margin: auto; }
  .hero-art { display: none; }
  .workspace { padding-block: 30px 44px; }
  .page-head { margin-bottom: 21px; }
  .page-head .actions { padding: 0; }
  .page-head h1 { font-size: clamp(33px, 8vw, 47px); }
  .customer .tile { display: none; }
  .grid { display: block; }
  .periods { padding: 14px; margin-bottom: 16px; border-radius: 16px; }
  .periods h2 { margin-bottom: 7px; font-size: 18px; }
  .period-list { display: flex; flex-wrap: wrap; }
  .directory { padding: 10px; border-radius: 17px; }
  .directory th, .directory td { padding-inline: 9px; }
  .directory th:nth-child(2), .directory td:nth-child(2) { display: none; }
  .directory td strong { font-size: 13px; }
  .directory .identity { gap: 7px; }
  .directory .tile { width: 33px; height: 33px; }
  .files th, .files td { padding-inline: 9px; }
}
@media (max-width: 510px) {
  .brand { width: 142px; height: 36px; }
  .brand img { width: 168px; top: -21px; left: -15px; }
  .environment { font-size: 11px; }
  .header .profile { display: none; }
  .page-head:has(.customer) { align-items: start; flex-direction: column; }
  .toolbar { align-items: start; flex-direction: column; }
  .search { max-width: none; }
  .status { gap: 5px; font-size: 11px; }
  .files .tile { display: none; }
  .files td .text-btn { padding: 6px 2px; }
}
