@font-face {
  font-family: "Filmili Display";
  src: url("/syne-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
.mast .desk-only, #member-nav svg { display: none; }
.in-workspace {
  --rail: 14.75rem;
  --rail-bg: #152038;
  --display: "Filmili Display", -apple-system, BlinkMacSystemFont, sans-serif;
}
.in-workspace .mast {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 3;
  border: 0;
  background: var(--rail-bg);
  color: white;
}
.in-workspace .nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .35rem;
  width: 100%;
  height: 100%;
  padding: 1.45rem 1rem 1rem;
  overflow-y: auto;
}
.in-workspace .nav > .wordmark {
  align-self: flex-start;
  margin: 0 .2rem 1.2rem;
  gap: .58rem;
  font: 700 1.75rem/1 var(--display);
  letter-spacing: -.07em;
}
.in-workspace .desk-only { display: flex; }
.in-workspace .nav .new-generation {
  justify-content: center;
  gap: .45rem;
  margin-bottom: .75rem;
  color: #172447;
  background: #dee5ff;
  border-radius: .4rem;
  font-size: .9rem;
  font-weight: 700;
}
.new-generation span { font-size: 1.2em; }
.in-workspace #member-nav { display: grid; width: 100%; gap: .22rem; }
.in-workspace #member-nav a {
  justify-content: flex-start;
  gap: .7rem;
  padding-inline: .8rem;
  text-decoration: none;
  color: #d7dff2;
  font-weight: 520;
}
.in-workspace #member-nav a:hover, .in-workspace #logout:hover { background: #263650; }
.in-workspace #member-nav a[aria-current="page"] { color: white; background: var(--blue); }
.in-workspace #member-nav svg, .composer-toolbar svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.sidebar-resources {
  justify-content: space-between;
  margin: auto .35rem .3rem;
  border-bottom: 1px solid #37445d;
  gap: .75rem;
}
.sidebar-resources a { gap: .25rem; color: #c2cde3; font-size: .77rem; }
.sidebar-person { align-items: center; gap: .6rem; margin: .4rem .2rem; }
.workspace-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: .85rem;
  color: #182547;
  background: #dce3ff;
}
#workspace-email { overflow-wrap: anywhere; font-size: .8rem; }
.in-workspace #logout {
  color: #ecf0fc;
  background: transparent;
  border: 1px solid #465470;
  font-size: .85rem;
}
.in-workspace main, .in-workspace > .footer { margin-left: var(--rail); }
.in-workspace > .footer {
  width: auto;
  margin-right: 0;
  padding-inline: clamp(1.5rem, 4vw, 4rem);
}
.in-workspace .desk {
  width: 100%;
  max-width: 90rem;
  min-height: 88vh;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 3.8vw, 4.5rem);
}
.desk :is(h1,h2,legend) { font-family: var(--display); }
.desk h1 { font-weight: 700; }
.create-header {
  display: grid;
  grid-template-columns: 1fr minmax(12rem, 30%);
  align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #acb3bd;
}
.create-header h1 {
  font-size: clamp(2.7rem, 4.65vw, 4.55rem);
  line-height: 1.04;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}
.create-header .intro { margin: 1rem 0 0; font-size: 1.02rem; }
.desk-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  border-radius: .32rem;
  background: var(--ink) url("/workspace-cover.webp") center 43% / cover;
}
.desk-cover span { height: 83%; aspect-ratio: 9 / 16; margin-left: 18%; border: 1px solid #ffffffe0; }
.workflow-picker {
  width: 100%;
  min-width: 0;
  margin: 1.7rem 0 1.1rem;
  padding: 0;
  border: 0;
}
.workflow-picker legend, .recent-area h2 {
  padding: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -.05em;
}
#workflow-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .5rem;
  margin-top: .7rem;
}
.content .workflow-choice {
  position: relative;
  display: grid;
  align-content: start;
  margin: 0;
  padding: .5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: .4rem;
  cursor: pointer;
}
.workflow-choice:hover { border-color: #838eb8; }
.workflow-choice:has(:checked) {
  border-color: var(--blue);
  background: #e3e8ff;
  box-shadow: inset 0 -3px var(--blue);
}
.workflow-choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.workflow-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.workflow-choice svg {
  width: 100%;
  height: clamp(2.8rem, 5.2vw, 4.65rem);
  border-radius: 3px;
  background: #efeee7;
  color: #58647e;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workflow-choice:has(:checked) svg { background: #cdd6fc; }
.workflow-choice strong { margin-top: .45rem; }
.workflow-choice small { margin-bottom: .3rem; font-size: .78rem; font-weight: 400; line-height: 1.32; }
.source-composer {
  background: var(--card);
  border: 1px solid #a5aec6;
  border-radius: .55rem;
  overflow: hidden;
}
.source-composer:focus-within, .source-composer.dragging { border-color: var(--blue); box-shadow: 0 0 0 2px #354bcf22; }
.source-composer > div:not(.composer-toolbar) { padding: 1rem; }
.source-composer :is(#topic-input, #url-input, #file-input) label { font-weight: 650; }
#topic-input { border-bottom: 1px solid var(--line); }
.source-composer input:not([type="file"]) {
  border: 0;
  width: 100%;
  min-height: 2.65rem;
  padding: .4rem .2rem;
  background: transparent;
}
.source-composer input[type="file"] { min-height: 44px; }
.auto-upload { padding: .75rem 1rem; border-top: 1px solid var(--line); }
.auto-upload summary { cursor: pointer; font-weight: 650; }
.auto-upload label, .auto-upload select { display: block; margin-top: .5rem; }
.auto-upload select { max-width: 100%; }
.auto-upload .text-link { display: inline-block; margin-block: .5rem; }
.composer-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .55rem .75rem;
  border-top: 1px solid var(--line);
  background: #f6f5ee;
}
.composer-toolbar .seg { display: flex; margin: 0; padding: 0; gap: .4rem; border: 0; }
.composer-toolbar .seg button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  border: 1px solid #c7ccda;
  border-radius: .4rem;
  font-size: .83rem;
}
.composer-toolbar .seg [aria-pressed="true"] { color: #23378d; background: #e2e7ff; border-color: #abb9f1; }
#create-usage { display: block; margin: .55rem .15rem 0; }
#create-gate { margin-top: 1.5rem; }
.recent-area { margin: 2.5rem 0 1rem; padding-top: 1.1rem; border-top: 1px solid #acb3bd; }
.recent-area .section-head { margin-bottom: .7rem; }
.recent-area .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; }
#recent-list { grid-template-columns: repeat(auto-fill,minmax(min(100%, 13rem), 1fr)); }
#recent-list .job { align-items: flex-start; flex-direction: column-reverse; justify-content: space-between; min-height: 7.75rem; }
#recent-list .job h3 { overflow-wrap: anywhere; font-size: 1rem; line-height: 1.3; }
#recent-list .job p { margin-top: .4rem; font-size: .8rem; }
#recent-list .status { font-size: .76rem; }
.recent-empty { grid-column: 1/-1; padding: 1.2rem; border: 1px dashed var(--line); border-radius: .4rem; color: var(--muted); }
.desk .job .status { text-transform: capitalize; }
.job-progress {
  display: grid;
  gap: .95rem;
  max-width: 50rem;
  margin: 1.5rem 0;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.job-progress-heading, .job-progress-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem 1.25rem;
}
.job-progress-heading h2 { font-size: clamp(1.1rem, 2.4vw, 1.45rem); line-height: 1.2; }
#job-percent { color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; }
#job-progress-bar {
  display: block;
  appearance: none;
  width: 100%;
  height: .65rem;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  background: #e1e5ed;
  color: var(--blue);
}
#job-progress-bar::-webkit-progress-bar { background: transparent; }
#job-progress-bar::-webkit-progress-value { border-radius: inherit; background: var(--blue); }
#job-progress-bar::-moz-progress-bar { border-radius: inherit; background: var(--blue); }
#job-progress-bar:indeterminate {
  background: repeating-linear-gradient(110deg, #cdd4f5 0 8px, #e4e8fa 8px 16px);
}
#job-progress-bar:indeterminate::-moz-progress-bar { background: transparent; }
.job-progress-summary { flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
#job-eta { font-weight: 600; color: var(--ink); }
@media (forced-colors: active) {
  #job-progress-bar { appearance: auto; }
}
@media (max-width: 1050px) and (min-width: 841px) {
  .in-workspace { --rail: 12rem; }
  .in-workspace .desk { padding-inline: 1.6rem; }
}
@media (max-width: 840px) {
  .in-workspace .mast { position: static; width: 100%; }
  .in-workspace .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 3.6rem;
    padding: .4rem 1rem;
    overflow: visible;
  }
  .in-workspace .nav > .wordmark { align-self: center; margin: 0; font-size: 1.55rem; }
  .in-workspace .desk-only { display: none; }
  .in-workspace #member-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 4;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    gap: 0;
    padding: 0 0 env(safe-area-inset-bottom);
    background: var(--card);
    border-top: 1px solid var(--line);
  }
  .in-workspace #member-nav a {
    flex-direction: column;
    justify-content: center;
    gap: .15rem;
    min-height: 3.5rem;
    border-top: 2px solid transparent;
    border-radius: 0;
    padding: .25rem 0;
    color: var(--muted);
    font-size: .72rem;
  }
  .in-workspace #member-nav a:is(:hover,[aria-current="page"]) { color: var(--blue); background: #edf0ff; border-top-color: var(--blue); }
  .in-workspace main, .in-workspace > .footer { margin-left: 0; }
  .in-workspace > .footer { margin-bottom: calc(3.5rem + env(safe-area-inset-bottom)); padding-inline: 1rem; }
  .in-workspace .desk { min-height: 72vh; }
}
@media (max-width: 650px) {
  .create-header { display: block; padding-bottom: 1.5rem; }
  .create-header h1 { font-size: clamp(2.2rem, 8.8vw, 3.3rem); }
  .create-header .intro { margin-top: .75rem; }
  .desk-cover { display: none; }
  .in-workspace .desk { padding: 1.6rem 1rem; }
  #workflow-options {
    display: flex;
    overflow-x: auto;
    padding: .28rem .2rem .4rem;
    margin: .4rem -.2rem 0;
    scroll-snap-type: x proximity;
  }
  .workflow-choice { flex: 0 0 8.45rem; scroll-snap-align: start; }
  .composer-toolbar { padding: .65rem; }
  .composer-toolbar .seg { width: auto; flex-wrap: wrap; }
  .composer-toolbar .seg button { flex: auto; }
  .recent-area { margin-top: 1.65rem; }
  #recent-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .composer-toolbar .seg, #create-submit { width: 100%; }
}
