@font-face {
  font-family: Inter;
  src: url('/assets/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  color: #17243b;
  background: #f4f6fa;
  --ink: #17243b;
  --muted: #526179;
  --navy: #101c34;
  --blue: #244eae;
  --blue-dark: #193d91;
  --border: #e0e6ef;
  --paper: #fff;
  --mist: #f4f6fa;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea { color: inherit; }
button { cursor: pointer; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid #4777e4; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
p { line-height: 1.6; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.7rem, 3vw, 2.18rem); line-height: 1.15; letter-spacing: -.055em; font-weight: 730; }
h2 { font-size: 1.16rem; line-height: 1.3; letter-spacing: -.03em; font-weight: 700; }
h3 { font-size: 1rem; margin: 24px 0 10px; }
.muted { color: var(--muted); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 20; background: white; padding: 10px 15px; border-radius: 6px; }
.icon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 1.25em; font-family: 'Segoe UI Symbol', system-ui, sans-serif; font-size: 1.3em; font-weight: 600; line-height: 1; }

.shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; color: #fff; background: var(--navy); display: flex; flex-direction: column; padding: 31px 17px 18px; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: #fff; width: fit-content; }
.brand:hover { color: #fff; }
.sidebar > .brand { margin: 0 10px 45px; }
.brand-mark { width: 39px; height: 39px; position: relative; flex: 0 0 auto; overflow: hidden; display: inline-block; border-radius: 10px; background: linear-gradient(140deg, #7a9cf8, #426bd0); box-shadow: inset 0 0 0 1px #ffffff38; }
.brand-mark i { position: absolute; display: block; width: 3px; border-radius: 2px; background: #fff; }
.brand-mark i:nth-child(1) { height: 20px; left: 13px; top: 9px; transform: rotate(27deg); }
.brand-mark i:nth-child(2) { height: 20px; right: 13px; top: 9px; transform: rotate(-27deg); }
.brand-mark i:nth-child(3) { width: 13px; height: 3px; left: 13px; top: 22px; }
.wordmark { display: grid; gap: 3px; font-size: .99rem; font-weight: 770; letter-spacing: .045em; }
.wordmark > span { color: #a7bce8; font-size: .6rem; font-weight: 680; letter-spacing: .31em; }
.nav-label { color: #a4b2cb; font-size: .66rem; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; margin: 0 10px 10px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; color: #c9d3e7; padding: 11px 12px; min-height: 44px; font-size: .87rem; font-weight: 540; border-radius: 8px; }
.sidebar nav a:hover, .sidebar nav a:focus-visible { background: #213452; color: #fff; }
.sidebar nav a[aria-current] { background: #253e69; color: #fff; box-shadow: inset 3px 0 #83a8ff; }
.sidebar nav .icon { color: #a9c1f3; }
.sidebar-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 17px 2px 0; border-top: 1px solid #30405a; }
.sidebar-user { display: flex; gap: 9px; min-width: 0; align-items: center; color: #fff; }
.sidebar-user:hover { color: #c8d9ff; }
.sidebar-user > span:last-child { min-width: 0; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: .8rem; }
.sidebar-user small { margin-top: 3px; color: #aab8d1; font-size: .71rem; }
.avatar { width: 35px; height: 35px; display: inline-grid; place-items: center; border-radius: 50%; color: #224281; background: #e5edfc; flex: 0 0 auto; font-size: .73rem; font-weight: 730; }
.sidebar .avatar { color: #d7e5ff; background: #2b4571; }
.logout { width: 36px; height: 36px; background: transparent; color: #b6c6e2; border: 0; border-radius: 7px; }
.logout:hover { background: #273955; color: #fff; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; min-height: 67px; padding: 10px max(24px, 3vw); display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .8rem; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.header-account { display: flex; gap: 9px; align-items: center; color: var(--ink); font-size: .81rem; font-weight: 650; }
.content { width: 100%; max-width: 1512px; padding: 31px max(24px, 3vw) 36px; margin: 0 auto; flex: 1; min-width: 0; }
.footer { display: flex; justify-content: space-between; gap: 10px; padding: 15px max(24px, 3vw) 18px; color: var(--muted); font-size: .74rem; border-top: 1px solid var(--border); }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 23px; }
.page-heading p { color: var(--muted); margin-top: 7px; font-size: .92rem; }
.page-heading > .button { flex-shrink: 0; }
.today { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--border); background: white; border-radius: 8px; white-space: nowrap; font-size: .79rem; color: var(--muted); }
.today .icon { color: var(--blue); }
.back { display: inline-block; margin-bottom: 15px; font-size: .83rem; font-weight: 650; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; min-height: 39px; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; font-size: .82rem; font-weight: 690; line-height: 1.2; text-align: center; }
.button.primary { color: #fff; background: var(--blue); }
.button.primary:hover { color: #fff; background: var(--blue-dark); }
.button.secondary { color: #25457e; background: #fff; border-color: #d7e0ef; }
.button.secondary:hover, .button.subtle:hover { background: #eaf0fd; }
.button.subtle { color: var(--blue-dark); }
.text-link { display: inline-flex; align-items: center; gap: 4px; font-size: .77rem; font-weight: 700; white-space: nowrap; }
.text-link:hover, .strong-link:hover, .back:hover { text-decoration: underline; }
.strong-link { color: var(--ink); font-weight: 650; }

.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 86% 32%, #4472cf 0, transparent 56%), linear-gradient(110deg, #15294b, #204788 100%); color: white; border-radius: var(--radius); min-height: 202px; padding: 24px 29px; display: flex; align-items: center; margin-bottom: 19px; }
.hero-content { position: relative; max-width: 520px; }
.eyebrow { color: #d2e0fc; font-size: .68rem; font-weight: 730; letter-spacing: .16em; text-transform: uppercase; display: inline-block; margin-bottom: 8px; }
.hero h2 { font-size: clamp(1.57rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.055em; }
.hero p { color: #e0eaff; font-size: .88rem; margin-top: 8px; }
.hero-button { background: #fff; color: #1d407a; margin-top: 14px; }
.hero-button:hover { background: #e9f1ff; color: #15346d; }
.hero-lines { position: absolute; width: 360px; height: 270px; right: -25px; top: -25px; transform: rotate(-24deg); pointer-events: none; opacity: .8; }
.hero-lines i { position: absolute; display: block; width: 290px; height: 110px; border: 1px solid #aac5ff71; border-radius: 56px; left: 0; top: 12px; background: linear-gradient(100deg, transparent, #9fbaff20); }
.hero-lines i:nth-child(2) { top: 46px; left: 22px; }
.hero-lines i:nth-child(3) { top: 80px; left: 44px; }
.hero-lines i:nth-child(4) { top: 114px; left: 66px; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 19px; }
.metric { display: flex; align-items: center; gap: 11px; min-height: 82px; padding: 12px; color: var(--ink); background: white; border: 1px solid var(--border); border-radius: 13px; }
.metric:hover, .doc-card:hover { border-color: #aec3ee; }
.metric-icon { flex: 0 0 auto; width: 37px; height: 37px; display: grid; place-items: center; color: #2852a8; background: #eaf0fe; border-radius: 9px; }
.metric:nth-child(2) .metric-icon { color: #24644d; background: #e6f4ed; }
.metric:nth-child(3) .metric-icon { color: #70501e; background: #fbf0dc; }
.metric:nth-child(4) .metric-icon { color: #51408e; background: #efebfb; }
.metric-text { display: grid; gap: 3px; font-size: .74rem; line-height: 1.3; color: var(--muted); }
.metric-text strong { color: var(--ink); font-size: 1.35rem; letter-spacing: -.07em; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 17px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; box-shadow: 0 2px 6px #10244706; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 19px 14px; }
.panel-head p { color: var(--muted); font-size: .77rem; margin-top: 4px; }
.panel-content { padding: clamp(17px, 3vw, 28px); }
.panel-content > h2 { margin-bottom: 8px; }
.empty { padding: 20px; color: var(--muted); font-size: .87rem; }
.panel-content > .empty { padding: 12px 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .83rem; }
thead { color: var(--muted); background: #f7f9fc; font-size: .72rem; }
th, td { padding: 11px 15px; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 19px; }
th:last-child, td:last-child { padding-right: 19px; }
tbody tr { border-top: 1px solid #edf1f7; }
tbody tr:hover { background: #f9fbfe; }
.client-name { display: flex; align-items: center; gap: 9px; color: var(--ink); min-width: 120px; }
.client-avatar { width: 33px; height: 33px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; font-size: .67rem; font-weight: 750; color: #2e5097; background: #e8efff; }
.tone-1 { color: #344c84; background: #e7edf8; }
.tone-2 { color: #25604f; background: #e1f3ed; }
.tone-3 { color: #684897; background: #f0eafa; }
.row-name { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.row-name strong { font-size: .82rem; font-weight: 690; }
.row-name small, .table-note { color: var(--muted); font-size: .71rem; font-weight: 450; }
.table-note { display: block; margin-top: 4px; }
.row-arrow { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #335183; font-size: 1.23rem; }
.row-arrow:hover { background: #edf2fb; }
.status { display: inline-flex; align-items: center; width: fit-content; gap: 5px; border-radius: 30px; padding: 4px 8px; white-space: nowrap; font-size: .69rem; font-weight: 680; color: #4f5c70; background: #eef1f6; }
.status::before, .dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.status::before { content: ''; }
.status.active, .status.done { color: #246247; background: #e5f5ec; }
.status.onboarding, .status.pending { color: #745015; background: #fbf0d9; }
.event-list, .shortcuts { list-style: none; padding: 0 19px 8px; margin: 0; }
.event-list li + li, .shortcuts li + li { border-top: 1px solid #eaf0f6; }
.event-list a, .shortcuts li > a, .shortcut-row { display: flex; gap: 11px; align-items: center; padding: 10px 0; color: var(--ink); }
.event-list a:hover strong, .shortcuts li > a:hover strong, .drive-title:hover strong { text-decoration: underline; }
.event-list .row-name, .shortcuts .row-name { flex: 1; }
.date-tile { flex: 0 0 auto; display: grid; place-items: center; padding: 5px 4px; width: 41px; min-height: 43px; border-radius: 8px; color: #2a4d8c; background: #edf2fe; line-height: 1.1; }
.date-tile strong { font-size: .9rem; }
.date-tile small { font-size: .63rem; }
.event-arrow { color: var(--blue); font-size: 1.2rem; }
.distribution { padding: 1px 19px 15px; }
.distribution ul { padding: 0; margin: 0; list-style: none; }
.distribution li { display: flex; align-items: center; gap: 9px; margin-top: 11px; font-size: .8rem; }
.distribution li strong { width: 2ch; text-align: right; }
.distribution li > span:nth-child(2) { min-width: 74px; }
.dot.active { color: #345fb7; }
.dot.onboarding { color: #876427; }
.dot.archived { color: #66748c; }
.part { width: 100%; height: 8px; flex: 1; min-width: 25px; border: 0; border-radius: 8px; color: #345fb7; background: #e9eef6; }
.part.onboarding { color: #c29950; }
.part.archived { color: #8794ab; }
.part::-webkit-progress-bar { background: #e9eef6; border-radius: 8px; }
.part::-webkit-progress-value { background: currentColor; border-radius: 8px; }
.part::-moz-progress-bar { background: currentColor; border-radius: 8px; }

.filters { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; padding: 15px 19px; }
.search-field { display: flex; align-items: center; gap: 8px; border: 1px solid #cdd7e8; border-radius: 8px; padding: 0 9px; min-height: 39px; flex: 1; min-width: min(230px, 100%); color: var(--muted); }
.search-field:focus-within { outline: 2px solid #4777e4; outline-offset: 1px; }
.search-field input { border: 0; padding: 8px 2px; min-width: 0; width: 100%; outline: none; font-size: .84rem; background: transparent; }
select, .field input, .field textarea { border: 1px solid #cdd7e8; background: white; border-radius: 8px; min-height: 40px; padding: 9px 10px; font-size: .87rem; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 13px 19px; font-size: .82rem; }
.detail-status { padding: 16px 19px 0; }
.tabs { display: flex; overflow: auto; gap: 16px; padding: 0 19px; border-bottom: 1px solid var(--border); }
.tabs a { white-space: nowrap; padding: 13px 1px 10px; border-bottom: 3px solid transparent; font-size: .82rem; font-weight: 650; color: var(--muted); }
.tabs a:hover, .tabs a[aria-current] { color: var(--blue-dark); }
.tabs a[aria-current] { border-color: var(--blue); }
.document-tabs { margin: 0 0 16px; padding: 0 2px; }
.info-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 20px; margin: 0; }
.info-grid dt { font-size: .76rem; color: var(--muted); margin-bottom: 4px; }
.info-grid dd { margin: 0; font-size: .89rem; font-weight: 650; overflow-wrap: anywhere; }
.document-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.doc-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; }
.doc-card h2 a { color: var(--ink); }
.doc-card p { color: var(--muted); font-size: .82rem; margin-bottom: 5px; }
.doc-card .text-link { margin-top: auto; }
.doc-category { color: var(--blue-dark); font-size: .72rem; font-weight: 680; }
.article-summary { color: var(--muted); margin-bottom: 15px; }
.article-link { margin-top: 17px; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .89rem; line-height: 1.65; }
.drive-search { margin-bottom: 16px; }
.notice, .alert, .success { margin-bottom: 16px; padding: 10px 13px; color: #2f4d75; background: #eaf1ff; border: 1px solid #d5e2fb; border-radius: 8px; font-size: .84rem; }
.alert { color: #8c2525; background: #fff1f0; border-color: #f2cecb; }
.success { color: #236449; background: #e9f7ef; border-color: #cceadd; }

.calendar-panel { overflow: hidden; margin-bottom: 16px; }
.calendar-heading h2 { text-transform: capitalize; }
.calendar-nav { display: flex; gap: 5px; }
.calendar-nav .button { padding: 7px 10px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.weekday { text-align: center; font-size: .73rem; font-weight: 680; padding: 9px 1px; color: var(--muted); background: #f4f7fb; }
.calendar-cell { min-height: 88px; padding: 6px; border-top: 1px solid #e6ebf4; border-right: 1px solid #e6ebf4; }
.calendar-cell:nth-child(7n) { border-right: 0; }
.calendar-cell.outside { background: #f6f8fc; }
.calendar-cell time { display: grid; place-items: center; width: 22px; height: 22px; font-size: .75rem; font-weight: 650; margin-bottom: 3px; }
.current-day { background: #f3f7ff; }
.current-day time { border-radius: 50%; color: white; background: var(--blue); }
.calendar-event, .calendar-more { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 4px; margin-top: 3px; border-radius: 4px; font-size: .68rem; font-weight: 630; color: #24467f; background: #e8efff; }
.calendar-event.completed { color: #2b634c; background: #e6f5ee; }
.calendar-event:hover { text-decoration: underline; }
.calendar-more { background: transparent; }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.form-stack { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field span { font-size: .81rem; font-weight: 680; }
.field input, .field textarea, .field select { width: 100%; }
.field textarea { resize: vertical; }
.field.wide { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.account-form { max-width: 535px; }
.account-form > .muted { font-size: .83rem; }
.generic-message { max-width: 720px; margin: 10vh auto; }

.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.login-art { color: white; background: radial-gradient(ellipse at 90% 44%, #345fa9 0, transparent 68%), linear-gradient(145deg,#101d35,#193661); display: flex; flex-direction: column; justify-content: space-between; min-height: 500px; padding: clamp(28px,5.3vw,76px); position: relative; overflow: hidden; isolation: isolate; }
.login-art::before, .login-art::after { content: ''; position: absolute; z-index: -1; width: 70%; height: 23%; right: -12%; top: 43%; border: 1px solid #8eaff277; background: linear-gradient(90deg, transparent, #c0d0ff22); border-radius: 999px; transform: rotate(-28deg); }
.login-art::after { top: 52%; right: -20%; }
.login-intro { max-width: 475px; }
.login-intro h2 { font-size: clamp(2.4rem,5vw,4.6rem); font-weight: 690; letter-spacing: -.07em; line-height: .99; }
.login-intro p { margin-top: 17px; color: #d8e6ff; max-width: 28ch; }
.login-footer { color: #d6e3fc; font-size: .8rem; display: flex; align-items: center; gap: 8px; }
.online { width: 7px; height: 7px; border-radius: 50%; background: #8fbbff; }
.login-main { display: grid; place-items: center; padding: 30px; background: white; }
.login-card { width: 100%; max-width: 390px; }
.login-card > p.muted { margin-top: 8px; margin-bottom: 18px; }
.login-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 12px; background: #edf2fd; color: #28468e; margin-bottom: 14px; }
.login-button { margin-top: 4px; width: 100%; min-height: 43px; }
.login-help { margin-top: 16px; color: var(--muted); font-size: .8rem; }

@media (max-width: 1120px) {
  .shell { grid-template-columns: 195px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .sidebar nav a { gap: 8px; }
  .metric { gap: 8px; padding: 10px; }
  .metric-icon { width: 33px; height: 33px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); }
}
@media (max-width: 920px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .shell { display: block; }
  .sidebar { position: relative; height: auto; padding: 13px 15px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 11px; }
  .sidebar > .brand { margin: 0; }
  .sidebar .nav-label, .sidebar .sidebar-user { display: none; }
  .sidebar nav { grid-row: 2; grid-column: 1 / -1; display: flex; overflow-x: auto; gap: 4px; padding: 3px; }
  .sidebar nav a { min-height: 36px; padding: 8px 9px; white-space: nowrap; font-size: .77rem; }
  .sidebar nav a[aria-current] { box-shadow: inset 0 -2px #83a8ff; }
  .sidebar-bottom { grid-row: 1; grid-column: 2; border: 0; padding: 0; margin: 0; }
  .topbar { min-height: 48px; padding: 6px 15px; }
  .breadcrumb { font-size: .75rem; }
  .header-account { font-size: .75rem; }
  .header-account .avatar { width: 28px; height: 28px; }
  .content { padding: 19px 15px 24px; }
  .footer { padding: 12px 15px; }
  .hero { padding: 20px; min-height: 175px; }
  .hero-lines { opacity: .34; right: -155px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 15px; }
  .info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .calendar-cell { padding: 3px; min-height: 53px; }
  .calendar-cell time { width: 18px; height: 18px; }
  .calendar-event { font-size: 0; height: 5px; margin: 2px; background: #527bc6; }
  .calendar-event.completed { background: #47866c; }
  .calendar-more { font-size: .58rem; }
  .login-layout { display: block; }
  .login-art { min-height: auto; padding: 20px; }
  .login-intro, .login-footer { display: none; }
  .login-main { min-height: calc(100vh - 79px); padding: 25px; }
}
@media (max-width: 425px) {
  .document-grid, .form-grid { grid-template-columns: 1fr; }
  .metrics { gap: 7px; }
  .metric { min-height: 66px; }
  .metric-text { font-size: .67rem; }
  .panel-head { padding-inline: 13px; }
  .text-link { font-size: .71rem; }
  th, td, th:first-child, td:first-child, th:last-child, td:last-child { padding-inline: 9px; }
  .event-list, .shortcuts, .distribution { padding-inline: 13px; }
}
