:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #172643;
  background: #f5f7fb;
  font-weight: 400;
  --ink: #172643;
  --muted: #52637c;
  --border: #dfe6ef;
  --blue: #214aab;
  --blue-dark: #17367f;
  --blue-bg: #eaf0fc;
  --white: #fff;
  --radius: 15px;
  --shadow: 0 2px 5px #182f5c08;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: var(--blue); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #587ef0; outline-offset: 3px; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; vertical-align: middle; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.025em; }
p { line-height: 1.56; }
.shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--border); padding: 24px 16px 18px; z-index: 3; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); padding: 1px 7px; white-space: nowrap; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: #214aab; border-radius: 13px; }
.brand-mark svg { width: 24px; height: 24px; }
.brand strong { font-size: 1rem; letter-spacing: -.025em; }
small { display: block; color: var(--muted); font-size: .83rem; line-height: 1.4; }
.brand small { margin-top: 3px; }
.navigation { display: grid; gap: 5px; margin-top: 39px; }
.navigation a, .data-button { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 9px; color: #475875; text-decoration: none; font-size: .92rem; font-weight: 560; }
.navigation a:hover, .data-button:hover { background: #f3f6fa; }
.navigation a[aria-current="page"] { background: #e9effc; color: var(--blue-dark); font-weight: 720; }
.sidebar-bottom { margin-top: auto; }
.data-button { border: 0; background: transparent; width: 100%; text-align: left; }
.profile { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 17px 8px 0; border-top: 1px solid var(--border); }
.profile strong { display: block; font-size: .93rem; }
.avatar { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #e6edfc; color: var(--blue-dark); font-weight: 740; }
.main { min-width: 0; }
.topbar { min-height: 72px; padding: 12px 34px; background: #fff; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.breadcrumbs { display: flex; gap: 11px; align-items: center; color: var(--muted); font-size: .9rem; }
.breadcrumbs strong { color: var(--ink); }
.slash { color: #8b9ab0; }
.mobile { display: none !important; }
#content { max-width: 1490px; margin: 0 auto; padding: 29px 34px 40px; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 29px; min-height: 159px; overflow: hidden; border: 1px solid #d5e1fc; border-radius: 18px; background: linear-gradient(106deg, #f0f5ff 20%, #dde8fe 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; right: 7%; top: -95px; border: 1px solid #c5d5f6; border-radius: 50%; box-shadow: 0 0 0 24px #cfdefa78, 0 0 0 47px #cfdefa52; pointer-events: none; }
.hero h1 { font-size: clamp(1.85rem, 3.25vw, 2.8rem); font-weight: 750; line-height: 1.12; letter-spacing: -.058em; }
.hero p { margin-top: 9px; color: #405579; max-width: 510px; }
.hero-date { display: flex; align-items: center; flex: none; gap: 11px; border: 1px solid #fff; background: #ffffffae; border-radius: 12px; padding: 12px 15px; }
.hero-date strong { display: block; font-size: 1rem; margin-top: 2px; }
.hero-date > span:first-child { color: var(--blue); }
.panel, .metric { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.alert { display: flex; gap: 13px; align-items: center; padding: 13px 16px; border: 1px solid #eec787; background: #fff8ed; color: #603611; border-radius: 12px; margin-top: 16px; }
.alert > span:first-child { color: #a45a18; display: grid; place-items: center; width: 35px; height: 35px; flex: none; background: #ffedd0; border-radius: 9px; }
.alert div { flex: 1; }
.alert p { font-size: .89rem; color: #704c2b; margin-top: 3px; }
.alert a { color: #774516; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin: 17px 0; }
.metric { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px; text-decoration: none; color: var(--ink); }
.metric:hover { border-color: #acbfe9; }
.metric strong { display: block; line-height: 1; font-size: 1.48rem; letter-spacing: -.05em; margin-bottom: 5px; }
.metric small { overflow-wrap: anywhere; font-size: .86rem; }
.tile { display: grid; place-items: center; flex: none; width: 39px; height: 39px; border-radius: 10px; color: #214aab; background: #e9effd; }
.tile.teal { background: #e6f4f2; color: #00675f; }
.tile.purple { background: #f0ebfa; color: #634499; }
.tile.amber { background: #fff0d8; color: #8f540c; }
.columns { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(260px,1fr); gap: 17px; }
.panel-header { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 19px 19px 15px; }
.panel-header h2 { font-size: 1.18rem; }
.panel-header a { white-space: nowrap; font-size: .86rem; font-weight: 680; text-decoration: none; }
.panel-header a:hover, .text-link:hover { text-decoration: underline; }
.rows { display: grid; padding: 0 19px 6px; }
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px solid #e8edf4; color: var(--ink); text-decoration: none; }
.row .tile { width: 37px; height: 37px; }
.row-body { min-width: 0; flex: 1; }
.row-title { display: block; font-weight: 690; font-size: .96rem; overflow-wrap: anywhere; }
.row p { color: var(--muted); font-size: .9rem; margin-top: 4px; overflow-wrap: anywhere; }
a.row:hover .row-title { color: var(--blue); }
.chevron { color: #7890bb; display: inline-flex; }
.doc-link { color: var(--blue); font-weight: 680; font-size: .9rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 1px 0 22px; gap: 14px; }
.section-head h1 { font-size: clamp(1.85rem, 3vw, 2.35rem); }
.section-head p { margin-top: 5px; color: var(--muted); }
.stack { display: grid; gap: 14px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 260px; }
.search > span { position: absolute; left: 12px; top: 11px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 39px; }
input:not([type="checkbox"]), textarea, select { width: 100%; border: 1px solid #c5d1e1; background: white; color: var(--ink); border-radius: 9px; padding: 10px 11px; }
textarea { min-height: 92px; resize: vertical; }
.search input { padding-left: 39px; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352637c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.filters select { flex: 0 1 190px; }
.button, .icon-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; text-decoration: none; border: 1px solid #cbd6e7; color: var(--blue-dark); background: #fff; font-weight: 675; border-radius: 9px; padding: 9px 14px; font-size: .9rem; line-height: 1.45; }
.button:hover, .icon-button:hover { background: #f0f4fd; }
.button.primary { background: var(--blue); color: white; border-color: var(--blue); }
.button.primary:hover { background: var(--blue-dark); }
.button svg { width: 17px; height: 17px; }
.icon-button { padding: 8px; }
.text-link { color: var(--blue); font-size: .9rem; font-weight: 680; text-decoration: none; }
.pill { display: inline-flex; align-items: center; align-self: flex-start; border-radius: 50px; padding: 4px 9px; font-size: .82rem; font-weight: 690; color: var(--blue-dark); background: #eaf0fc; }
.pill.priority { background: #fff0d8; color: #774516; }
.pill.done { background: #e4f4eb; color: #1f6445; }
.pill.neutral { background: #edf1f6; color: #475875; }
.task-row { display: flex; align-items: flex-start; gap: 10px; }
.task-row > div { flex: 1; min-width: 0; }
.task-row input { accent-color: var(--blue); margin: 3px 0 0; width: 18px; height: 18px; flex: none; }
.task-row label { cursor: pointer; font-weight: 680; font-size: .94rem; }
.task-row .pill { margin: 7px 0 0; }
.task-row p { margin-top: 4px; }
.card { padding: 18px 20px; }
.card h2 { font-size: 1.14rem; }
.card h3 { font-size: 1.04rem; }
.card p { margin: 9px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.card .pill { margin-bottom: 8px; }
.card ul { padding-left: 1.25rem; margin: 10px 0 0; line-height: 1.65; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; align-items: center; }
.empty { border: 1px dashed #bccbe2; background: #f8faff; border-radius: 13px; padding: 22px; }
.empty p { margin-top: 5px; color: var(--muted); }
.empty .button { margin-top: 13px; }
.panel .empty { margin: 2px 19px 18px; padding: 14px; }
.meta { color: var(--muted); font-size: .875rem; margin-top: 4px; }
.back { display: inline-block; margin-bottom: 14px; }
#dialog { border: 1px solid #d7e0ee; border-radius: 16px; width: min(94vw, 530px); max-height: 92dvh; overflow: auto; box-shadow: 0 22px 75px #14274d3b; padding: 21px; color: var(--ink); }
#dialog::backdrop { background: #101f38a6; }
.dialog-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.dialog-title-row h2 { font-size: 1.35rem; }
.dialog-options { display: grid; gap: 8px; }
.dialog-option { justify-content: flex-start; width: 100%; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 15px; }
form .field { display: grid; gap: 5px; margin-bottom: 12px; font-size: .92rem; font-weight: 620; }
form .field input, form .field textarea { font-weight: 400; }
.help { font-size: .91rem; color: var(--muted); margin-bottom: 11px; }
.form-error { color: #9d2d2d; margin-top: 9px; }
.invite-form { margin-top: 14px; }
.studies { margin-top: 14px; }
.study { border-top: 1px solid #e8edf4; }
.study summary { display: flex; gap: 12px; align-items: center; padding: 13px 0; cursor: pointer; list-style: none; }
.study summary::-webkit-details-marker { display: none; }
.study summary:hover .row-title { color: var(--blue); }
.study[open] summary .chevron { transform: rotate(90deg); }
.study .tile { width: 37px; height: 37px; }
.report { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .9rem; line-height: 1.6; color: var(--ink); background: #f8faff; border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px; margin: 0 0 10px; }
.study .meta { margin: 0 0 14px; }
.invite-form .dialog-actions { justify-content: flex-start; margin-top: 4px; }
.toast { position: fixed; z-index: 9; right: 22px; bottom: 22px; max-width: min(390px, calc(100vw - 44px)); background: #172643; color: #fff; border-radius: 12px; box-shadow: 0 4px 24px #1b2c5733; padding: 12px 16px; }
@media (max-width: 1050px) {
  .shell { grid-template-columns: 208px minmax(0, 1fr); }
  #content, .topbar { padding-left: 21px; padding-right: 21px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .columns { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(252px, 86vw); transform: translateX(-110%); visibility: hidden; }
  .sidebar.open { visibility: visible; transform: none; box-shadow: 0 0 0 100vw #15224252; }
  .mobile { display: inline-flex !important; }
  .topbar { min-height: 59px; gap: 8px; padding: 9px 12px; }
  .breadcrumbs { gap: 8px; }
  .breadcrumbs > span { display: none; }
  #content { padding: 16px 12px 26px; }
  .hero { padding: 19px 15px; min-height: 135px; }
  .hero-date { display: none; }
  .alert { align-items: flex-start; flex-wrap: wrap; }
  .alert a { margin-left: 48px; }
  .metric { padding: 11px 9px; gap: 8px; }
  .metric .tile { width: 34px; height: 34px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .card { padding: 15px; }
}
