:root {
  color-scheme:light;
  --ink:#142c4d;
  --muted:#52647d;
  --teal:#244f85;
  --paper:#ffffff;
  --ground:#f1f5fb;
  --line:#dce5f0;
  --soft:#eaf0f9;
  --warn:#344f76;
  --navy:#102646;
  --blue-gradient:linear-gradient(135deg,#244f85,#122d52);
  --card-radius:18px;
  --card-shadow:0 3px 12px #10264609,0 12px 30px #10264606;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:15px;
  line-height:1.55;
  color:var(--ink);
  background:var(--ground);
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,input,textarea,select {
  font:inherit;
}
button,a,input,textarea {
  touch-action:manipulation;
}
button,a {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:progress;
  opacity:.55;
}
a {
  color:var(--teal);
  text-underline-offset:3px;
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid #6b89b3;
  outline-offset:3px;
}
[hidden] {
  display:none!important;
}
.workspace {
  display:grid;
  grid-template-columns:258px minmax(0,1fr);
  min-height:100vh;
}
.sidebar {
  position:sticky;
  top:0;
  height:100vh;
  padding:38px 23px 23px;
  background:#e3e8ee;
  display:flex;
  flex-direction:column;
  border-right:1px solid var(--line);
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--ink);
  font-size:22px;
  font-weight:650;
  letter-spacing:-.6px;
}
.brand-mark {
  font-family:Georgia,serif;
  font-size:43px;
  line-height:1;
  color:var(--teal);
}
.brand-caption {
  display:block;
  font-size:10px;
  font-weight:450;
  letter-spacing:.1px;
  margin-top:1px;
  color:var(--muted);
}
.new-assignment {
  margin:37px 0 28px;
  padding:10px 14px;
  text-decoration:none;
  color:var(--ink);
  border:1px solid #bcc7d6;
  border-radius:5px;
  background:#eff1f5;
  font-size:13px;
  font-weight:600;
}
.new-assignment span {
  margin-right:6px;
}
.eyebrow {
  text-transform:uppercase;
  letter-spacing:1.7px;
  font-size:10px;
  font-weight:700;
  color:var(--teal);
  margin:0 0 15px;
}
.sidebar-label {
  color:var(--muted);
  margin-bottom:11px;
}
.sidebar nav {
  overflow:auto;
  flex:1;
  min-height:40px;
}
.assignment-link {
  display:block;
  padding:11px 10px;
  margin:0 -2px 5px;
  text-decoration:none;
  border-radius:5px;
  color:var(--ink);
  font-size:12px;
  border-left:2px solid transparent;
  overflow-wrap:anywhere;
}
.assignment-link:hover {
  background:#dbe1e9;
}
.assignment-link[aria-current=page] {
  background:#d9dfe7;
  border-left-color:var(--teal);
}
.assignment-link strong {
  display:block;
  font-weight:600;
}
.assignment-link small {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:4px;
}
.empty-sidebar {
  font-size:12px;
  color:var(--muted);
  padding:6px 0;
}
.sidebar-footer {
  font-size:10px;
  color:var(--muted);
  padding-top:24px;
  display:flex;
  align-items:flex-start;
  gap:7px;
}
.runtime-dot {
  flex:none;
  width:6px;
  height:6px;
  border-radius:100%;
  background:#97a8bf;
  margin-top:5px;
}
.runtime-dot.ready {
  background:var(--teal);
}
.runtime-dot.unavailable {
  background:var(--muted);
}
main {
  min-width:0;
  padding:60px 7.2vw 70px;
  max-width:1540px;
  width:100%;
}
.new-view {
  max-width:900px;
  margin:auto;
}
.intro {
  max-width:650px;
  margin-bottom:32px;
}
h1,h2,h3,p {
  overflow-wrap:anywhere;
}
h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  font-size:52px;
  line-height:1.12;
  letter-spacing:-1.8px;
  margin:0 0 21px;
}
h2 {
  font-family:Georgia,"Times New Roman",serif;
  font-size:28px;
  font-weight:400;
  line-height:1.25;
  letter-spacing:-.5px;
  margin:0 0 18px;
}
h3 {
  font-size:15px;
  font-weight:650;
  margin:22px 0 9px;
}
.lede {
  color:var(--muted);
  font-size:15px;
  max-width:570px;
  line-height:1.7;
}
.new-view form {
  padding:29px 33px;
  background:var(--paper);
  border:1px solid var(--line);
  box-shadow:0 8px 30px #232c3804;
}
label {
  font-size:12px;
  font-weight:650;
  display:block;
  margin:0 0 8px;
}
input:not([type=file]):not([type=checkbox]),textarea {
  width:100%;
  border:1px solid #c7d0dc;
  background:#fbfcfe;
  border-radius:4px;
  color:var(--ink);
  padding:11px 12px;
  outline:none;
}
textarea {
  resize:vertical;
  min-height:80px;
  font-size:13px;
  line-height:1.65;
}
input::placeholder,textarea::placeholder {
  color:#8296b3;
}
input:focus,textarea:focus {
  border-color:var(--teal);
  box-shadow:0 0 0 2px #1d3b6510;
}
#title {
  margin-bottom:23px;
}
#instruction {
  margin-bottom:24px;
}
.source-inputs {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:21px;
  margin-bottom:23px;
}
.upload-area {
  padding-top:20px;
  border-top:1px solid var(--line);
}
.hint {
  font-size:11px;
  color:var(--muted);
  line-height:1.6;
  margin:6px 0 12px;
}
.upload-area input {
  font-size:12px;
  max-width:100%;
  color:var(--muted);
}
input::file-selector-button {
  border:1px solid #c2ccda;
  border-radius:4px;
  padding:8px 12px;
  background:#ebeef2;
  color:var(--ink);
  cursor:pointer;
  margin-right:12px;
}
.selected-files {
  list-style:none;
  padding:0;
  margin:14px 0 0;
  font-size:12px;
}
.selected-files li {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:7px 0;
  border-top:1px solid #e5e9ef;
}
.selected-files li>span {
  overflow-wrap:anywhere;
}
.form-actions,.actions {
  display:flex;
  align-items:center;
  gap:17px;
  flex-wrap:wrap;
  margin-top:24px;
}
button.primary {
  border:1px solid var(--teal);
  color:#fff;
  background:var(--teal);
  font-weight:550;
  border-radius:4px;
  padding:11px 18px;
  font-size:12px;
  letter-spacing:.1px;
}
.primary span {
  margin-left:20px;
}
button.primary:hover {
  background:#172f51;
}
button.secondary {
  border:1px solid #c0cad9;
  background:#fbfcfe;
  color:var(--ink);
  border-radius:4px;
  padding:9px 13px;
  font-size:12px;
}
.text-button {
  background:none;
  border:0;
  color:var(--teal);
  padding:5px 0;
  font-size:12px;
  text-decoration:underline;
  text-underline-offset:4px;
}
.icon-button {
  background:transparent;
  border:0;
  color:var(--muted);
  font-size:23px;
  line-height:1;
  padding:8px;
}
.remove-file {
  font-size:11px;
  color:var(--muted);
  border:0;
  background:none;
  padding:3px 5px;
}
.skip-link {
  position:fixed;
  top:-60px;
  left:20px;
  z-index:10;
  background:#fff;
  padding:10px;
}
.skip-link:focus {
  top:12px;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
#notice {
  padding:12px 16px;
  margin-bottom:22px;
  color:var(--muted);
  font-size:13px;
  white-space:pre-wrap;
}
.detail-heading {
  padding-bottom:25px;
  border-bottom:1px solid var(--line);
}
.detail-heading h1 {
  font-size:38px;
  letter-spacing:-1px;
  max-width:780px;
  margin-bottom:16px;
}
.detail-meta {
  display:flex;
  gap:15px;
  align-items:center;
  flex-wrap:wrap;
  font-size:11px;
  color:var(--muted);
}
.status {
  font-size:10px;
  font-weight:650;
  color:var(--teal);
  background:var(--soft);
  padding:4px 9px;
  border-radius:3px;
}
.status.error {
  color:var(--ink);
  background:var(--ground);
}
.status.working::before {
  content:"";
  display:inline-block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--teal);
  margin-right:7px;
  animation:pulse 1.8s infinite;
}
.brief {
  margin:17px 0 0;
  font-size:12px;
  color:var(--muted);
}
.brief summary {
  cursor:pointer;
  display:inline-block;
}
.brief p {
  max-width:790px;
  white-space:pre-wrap;
  color:var(--ink);
}
.saved-correction {
  padding:14px 18px;
  margin:16px 0;
  border-left:2px solid #a1b0c5;
  background:#ebeef3;
}
.saved-instruction {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:12px;
  margin:8px 0 14px;
}
.work-paper {
  background:var(--paper);
  border:1px solid var(--line);
  padding:29px 34px;
  max-width:1000px;
}
.work-paper p {
  font-size:13px;
  line-height:1.8;
  white-space:pre-wrap;
}
.plan-steps {
  padding-left:22px;
  font-size:13px;
  line-height:1.7;
}
.plan-steps li {
  padding:6px 0 6px 5px;
}
.coverage-warning {
  font-size:12px;
  color:var(--muted);
  margin:10px 0;
}
.working-state {
  padding:38px 0;
  font-size:13px;
  color:var(--muted);
}
.working-state strong {
  display:block;
  color:var(--ink);
  font-weight:500;
  font-family:Georgia,serif;
  font-size:26px;
  margin-bottom:9px;
}
.working-state p {
  max-width:650px;
}
.findings {
  list-style:none;
  padding:0;
  margin:0;
  counter-reset:finding;
}
.finding {
  position:relative;
  padding:19px 0 20px 37px;
  border-bottom:1px solid #dde2ea;
  counter-increment:finding;
}
.finding::before {
  content:counter(finding,decimal-leading-zero);
  position:absolute;
  left:0;
  top:24px;
  font-family:Georgia,serif;
  color:#8296b2;
  font-size:14px;
}
.finding p {
  margin:0 0 10px;
}
.uncertain-label {
  font-size:9px;
  font-weight:650;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--warn);
  margin-bottom:8px;
}
.citation {
  font-size:10px;
  color:var(--teal);
  background:#ebeef3;
  border:1px solid #d7dee7;
  border-radius:3px;
  padding:4px 7px;
  max-width:100%;
  overflow-wrap:anywhere;
  text-align:left;
}
.followup {
  font-size:13px;
  white-space:pre-wrap;
  line-height:1.85;
  padding:20px 23px;
  background:#eff2f7;
  border-left:2px solid #a1b0c5;
}
.suggestions {
  font-size:13px;
  line-height:1.7;
  padding-left:21px;
}
.suggestions li {
  margin:8px 0;
}
.document-toolbar {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:17px;
}
.version-note {
  font-size:11px;
  color:var(--muted);
}
.source-list {
  list-style:none;
  padding:0;
  margin:18px 0;
}
.source-row {
  padding:15px 0;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
}
.source-row button {
  border:0;
  padding:0;
  background:none;
  color:var(--ink);
  text-align:left;
  font-size:13px;
  font-weight:600;
  overflow-wrap:anywhere;
}
.source-row small {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:5px;
}
.source-row .unreadable {
  color:var(--muted);
  max-width:550px;
  white-space:pre-wrap;
  font-size:12px;
}
.source-tag {
  flex:none;
  color:var(--teal);
  font-size:10px;
}
.source-tag.warning {
  color:var(--muted);
}
.event-list {
  list-style:none;
  padding:0;
  margin:0;
}
.event {
  padding:14px 0 14px 18px;
  border-left:1px solid #c5cedb;
  position:relative;
  font-size:12px;
}
.event::before {
  content:"";
  width:5px;
  height:5px;
  position:absolute;
  left:-3px;
  top:22px;
  border-radius:50%;
  background:#8195b2;
}
.event small {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-bottom:5px;
}
.event p {
  margin:5px 0;
  color:var(--muted);
  white-space:pre-wrap;
}
.run-heading {
  font-size:12px;
  font-weight:650;
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin:24px 0 12px;
}
.empty-state {
  font-size:13px;
  color:var(--muted);
  padding:24px 0;
}
.context-line {
  font-size:11px;
  color:var(--muted);
  margin-top:17px;
}
dialog {
  border:1px solid var(--line);
  padding:0;
  background:var(--paper);
  width:min(1060px,92vw);
  max-height:88vh;
  color:var(--ink);
  box-shadow:0 25px 100px #11233b22;
}
dialog::backdrop {
  background:#11223a70;
  backdrop-filter:blur(3px);
}
.dialog-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:24px 28px 16px;
  border-bottom:1px solid var(--line);
  gap:20px;
}
.dialog-heading h2 {
  font-size:22px;
  margin:0;
}
.dialog-heading .eyebrow {
  margin-bottom:7px;
}
.source-line {
  display:grid;
  grid-template-columns:43px minmax(0,1fr);
  padding:4px 8px;
  font-size:12px;
  line-height:1.7;
}
.source-line-number {
  color:#8498b3;
  text-align:right;
  padding-right:15px;
  font-variant-numeric:tabular-nums;
  user-select:none;
}
.source-line-content {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
.source-line.highlight {
  background:#d4e0f0;
  border-left:2px solid #6382ad;
}
.coverage-detail {
  font-size:12px;
  white-space:pre-wrap;
  padding:12px 0;
  color:var(--muted);
}
@keyframes pulse {
  50% {
    opacity:.3;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    animation:none!important;
    scroll-behavior:auto!important;
  }
}
@media(min-width:1450px) {
  main {
    padding-left:110px;
    padding-right:110px;
  }
}
@media(max-width:1050px) {
  .workspace {
    grid-template-columns:215px minmax(0,1fr);
  }
  .sidebar {
    padding:28px 17px;
  }
  main {
    padding:42px 35px 60px;
  }
  .new-view form,.work-paper {
    padding:25px;
  }
  h1 {
    font-size:45px;
  }
}
@media(max-width:750px) {
  .workspace {
    display:block;
  }
  .sidebar {
    position:relative;
    width:100%;
    height:auto;
    padding:17px 22px;
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .brand {
    font-size:19px;
  }
  .brand-mark {
    font-size:32px;
  }
  .brand-caption {
    font-size:9px;
  }
  .new-assignment {
    margin:0;
    align-self:center;
    padding:8px 10px;
  }
  .sidebar-label {
    display:none;
  }
  .sidebar nav {
    grid-column:1/-1;
    display:flex;
    max-height:110px;
    gap:9px;
  }
  .assignment-link {
    min-width:170px;
    max-width:230px;
    flex:0 0 auto;
  }
  .empty-sidebar {
    display:none;
  }
  .sidebar-footer {
    grid-column:1/-1;
    padding:0;
    font-size:10px;
  }
  main {
    padding:31px 22px 50px;
  }
  h1 {
    font-size:42px;
  }
  .intro {
    margin-bottom:25px;
  }
  .new-view form,.work-paper {
    padding:23px 20px;
  }
  .source-inputs {
    grid-template-columns:1fr;
    gap:19px;
  }
  .detail-heading h1 {
    font-size:32px;
  }
  .dialog-heading {
    padding:18px;
  }
  .source-line {
    grid-template-columns:33px minmax(0,1fr);
    padding:4px 3px;
  }
  .source-line-number {
    padding-right:9px;
  }
  .document-toolbar {
    gap:8px;
  }
  .finding {
    padding-left:29px;
  }
  .followup {
    padding:15px;
  }
  .form-actions {
    gap:13px;
  }
  .source-row {
    gap:8px;
  }
}

/* The workspace navigation stays available inside every assignment. */
#workspace-nav {
  flex:none;
  display:grid;
  gap:4px;
  margin:32px 0 14px;
  overflow:visible;
}
#workspace-nav a {
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:5px;
  color:var(--muted);
  font-size:13px;
  text-decoration:none;
}
#workspace-nav a span {
  width:18px;
  text-align:center;
  font-size:18px;
}
#workspace-nav a:hover,
#workspace-nav a[aria-current=page] {
  background:#d9dfe7;
  color:var(--ink);
}
#workspace-nav a[aria-current=page] {
  font-weight:650;
}
.sidebar .new-assignment {
  margin:4px 0 30px;
}
@media(max-width:750px) {
  #workspace-nav {
    display:flex;
    flex-wrap:wrap;
    margin:5px 0 0;
    max-height:none;
    gap:4px;
  }
  #workspace-nav a {
    padding:7px 9px;
    font-size:12px;
    gap:6px;
  }
  #workspace-nav a span { font-size:15px; width:auto; }
  .sidebar .new-assignment { margin:0; font-size:11px; }
  .sidebar #assignment-list:empty { display:none; }
}

.finding a.citation { display: inline; padding: 0 2px; margin-right: 3px; font-size: inherit; background: transparent; border: 0; text-decoration: underline; white-space: normal; }.citation[aria-current] { outline: 2px solid var(--teal); }.citation:focus-visible { outline: 2px solid var(--teal); }

.finding-source-context { display: block; font-size: 12px; margin-bottom: 8px; }.finding-source-context a { margin-right: 8px; }

.chat-add-context { display: inline-flex; align-items: center; flex: none; border: 1px solid #2563eb; border-radius: 5px; padding: 3px 7px; background: #2563eb; color: white; font-size: 11px; line-height: 1.4; white-space: nowrap; }
button.chat-add-context:hover:not(:disabled) { background: #1d4ed8; }
button.chat-add-context:disabled { cursor: default; }
.chat-context { min-width: 0; }
.workspace-chat .home-delegation > .chat-context { grid-column: 1 / -1; }
.workspace-chat .home-delegation:has(> .chat-context:not([hidden])) .home-delegation-bottom { grid-row: auto; }
.chat-context-chips { display: flex; flex-wrap: wrap; gap: 5px; max-height: 100px; overflow: auto; }
.chat-context-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 7px; background: #edf3ff; border: 1px solid #c4d6fa; border-radius: 6px; font-size: 12px; }
.chat-context-chip > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-context-kind { color: var(--muted); font-size: 10px; white-space: nowrap; }
.chat-context-chip button { border: 0; padding: 0 3px; background: transparent; color: var(--ink); }
.chat-context-coverage { margin: 5px 0; max-height: 90px; overflow: auto; font-size: 11px; }
.chat-context-picker { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 9px; margin-top: 5px; }
.chat-context-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-context-title { font-size: 12px; font-weight: 650; }
.chat-context-picker p { font-size: 11px; margin: 5px 0; }
.chat-context-results { max-height: 200px; overflow: auto; }
.chat-context-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; gap: 2px 8px; padding: 7px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--ink); text-align: left; }
.chat-context-result[aria-selected=true] { border-color: #9ab9f5; background: #edf3ff; }
.chat-context-result strong, .chat-context-result > .hint { grid-column: 1; overflow-wrap: anywhere; font-size: 11px; }
.chat-context-result .chat-add-context { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.chat-context-sources { margin: 7px 0; font-size: 12px; }
.chat-context-sources > button { display: block; overflow-wrap: anywhere; }
.folder-explorer-location-row { display: flex; align-items: center; gap: .25rem; }
.folder-explorer-location-row .location { flex: 1; min-width: 0; }
.folder-explorer-context { display: block; margin: 4px 0 0 26px; }
.document-context-action { margin-bottom: 6px; }
