:root {
  color-scheme: light;
  --ink: #192331;
  --muted: #526174;
  --paper: #f5f7fa;
  --line: #d6dde7;
  --accent: #284f94;
  --serif: Georgia,"Times New Roman",serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.52 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
.btn {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #3669b4;
  outline-offset: 3px;
}
button:disabled {
  opacity: .55;
  cursor: wait;
}
.skip {
  position: absolute;
  left: -100vw;
}
.skip:focus {
  position: fixed;
  top: 0;
  left: 0;
  background: white;
  z-index: 20;
}
.frame {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: 226px minmax(0,1fr);
  min-height: 100dvh;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  position: sticky;
  height: 100dvh;
  top: 0;
  display: flex;
  flex-direction: column;
}
.brand {
  font: 700 34px/.95 var(--serif);
  letter-spacing: -.085em;
  text-decoration: none;
}
.brand i {
  font-weight: 400;
}
.sidebar > .brand {
  margin: 0 10px 45px;
}
.navlink {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.navlink[aria-current=page] {
  background: #e4ecfa;
  color: var(--ink);
}
.navlink svg,
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar .account {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.workspace {
  max-width: 1160px;
  width: 100%;
  padding: 40px clamp(20px,4vw,58px) 72px;
}
.mobilebar,
.tabs {
  display: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font: 500 clamp(40px,5vw,66px)/1.03 var(--serif);
  letter-spacing: -.055em;
}
h2 {
  font: 500 30px/1.12 var(--serif);
  letter-spacing: -.035em;
}
h3 {
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -.03em;
}
.pagehead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.sub,
.meta,
small {
  color: var(--muted);
}
.pagehead .sub {
  margin-top: 7px;
}
.btn,
.chip,
.plain,
.tabs a,
.close {
  border: 0;
  text-decoration: none;
  background: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #f1f4f9;
  border: 1px solid #d4dce8;
  font-weight: 650;
  border-radius: 12px;
  padding: 10px 15px;
  min-height: 44px;
  font-size: 14px;
}
.btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn.danger {
  color: #903332;
  background: #fbefea;
  border-color: #e8c4b7;
}
.plain {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.filters {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow: auto;
  margin-bottom: 20px;
  padding: 3px 0 6px;
}
.chip {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 7px 12px;
  font-size: 13px;
  background: #ffffff;
}
.chip[aria-pressed=true] {
  background: #284f94;
  color: white;
}
.search {
  min-width: 0;
}
.search input,
form input,
select,
textarea,
.input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #bec9d8;
  background: #ffffff;
  border-radius: 10px;
  font-size: 16px;
}
.search {
  max-width: 280px;
}
label {
  display: block;
  font-weight: 650;
  margin: 14px 0 5px;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
  align-items: start;
}
.card,
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #ffffff;
  box-shadow: 0 5px 16px #17294409;
}
.card {
  overflow: hidden;
}
.post {
  padding: 18px 20px;
}
.byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.byline strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.badge {
  font-size: 11px;
  font-weight: 700;
  background: #edf1f6;
  color: #415263;
  border-radius: 15px;
  padding: 3px 8px;
}
.brandmark {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: #222831;
  color: white;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}
.brandmark.youtube {
  background: #a43c34;
}
.brandmark.podcast,
.brandmark.spotify {
  background: #326450;
}
.brandmark.substack {
  background: #af542b;
}
.post h3 {
  margin-top: 12px;
}
.excerpt {
  margin: 11px 0 7px;
  color: #263547;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.read {
  color: #2d518a;
  font-size: 13px;
  font-weight: 650;
}
.actionblock {
  padding: 17px 20px;
  background-color: #eaf1fc;
  background-image: repeating-linear-gradient(135deg,transparent 0
    11px,#4d72aa0a 11px 12px);
  border-top: 1px solid #d7e2f3;
}
.actionblock h3 {
  margin: 7px 0 4px;
}
.actionblock p {
  font-size: 14px;
}
.label {
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 750;
  color: #395888;
}
.deliver {
  display: block;
  padding-top: 9px;
  font-size: 13px;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 17px;
  border-top: 1px solid var(--line);
  gap: 5px;
}
.tool {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 14px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background: none;
  border: 0;
  text-decoration: none;
  padding: 5px;
}
.tool svg {
  width: 17px;
  height: 17px;
}
.tool[aria-pressed=true] {
  color: #284f94;
}
.tool[data-do="save"][aria-pressed="true"] .icon {
  fill: currentColor;
}
.panel {
  padding: 22px;
  margin: 0 0 16px;
}
.panel p,
.panel .row {
  margin-top: 9px;
}
.panel form {
  max-width: 660px;
}
.panel .btn {
  margin-top: 6px;
}
.panel small {
  display: block;
}
.flow {
  max-width: 760px;
}
.storytext {
  white-space: pre-line;
  overflow-wrap: anywhere;
  font: 18px/1.62 var(--serif);
  margin: 16px 0;
}
.storytext + audio {
  width: 100%;
}
.panel .meta {
  font-size: 13px;
}
.statusline {
  font-size: 13px;
  color: var(--muted);
}
.error {
  color: #873d29;
}
.empty {
  padding: 38px 25px;
  text-align: center;
  background: #edf2f9;
  border: 1px dashed #c3cede;
  border-radius: 18px;
}
.empty p {
  margin: 9px 0 16px;
}
.entry {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.entry:last-child {
  border: 0;
}
.entry strong,
.entry small {
  display: block;
  overflow-wrap: anywhere;
}
.entry .tool {
  flex: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  background: #e5ebf6;
  color: #435473;
  padding: 3px 10px;
  font-size: 12px;
}
.auth {
  max-width: 830px;
  margin: clamp(12px,8vh,84px) auto;
  padding: 22px;
}
.auth .brand {
  display: inline-block;
  margin-bottom: 32px;
}
.authbox {
  background: #1d3150;
  color: #f7f9fc;
  border-radius: 26px;
  padding: clamp(24px,6vw,66px);
  background-image: radial-gradient(ellipse at 108% 0%,#7199cf66,transparent
    58%);
}
.authbox h1 {
  max-width: 13ch;
}
.authbox p {
  color: #e0e8f6;
  max-width: 42ch;
  margin: 18px 0 25px;
}
.authbox .primary {
  background: #e8eeff;
  color: #23385a;
}
.authbox .secondary {
  background: transparent;
  color: white;
  border-color: #8094b4;
}
.authfoot {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 20px 3px;
}
.authfoot .plain {
  font-size: 14px;
}
.plan {
  max-width: 820px;
  margin: auto;
  padding: 45px 24px 90px;
}
.plan > a:first-child {
  font: 700 32px var(--serif);
}
.plan h1 {
  margin: 42px 0 8px;
}
.plan .lede {
  font: 23px/1.4 var(--serif);
}
.plan h2 {
  margin: 36px 0 12px;
}
.plan dt {
  font-weight: 700;
  margin-top: 16px;
}
.plan dd {
  margin: 3px 0;
}
.plan li,
.plan p + p {
  margin-top: 10px;
}
dialog {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  border-radius: 20px;
  max-width: min(540px,95vw);
  width: 100%;
  max-height: 90dvh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 25px;
}
dialog::backdrop {
  background: #15203185;
}
.close {
  float: right;
  font-size: 25px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #edf1f7;
}
dialog h2 {
  margin: 3px 45px 14px 0;
}
dialog .row {
  margin-top: 14px;
}
#status {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #1c2b42;
  color: #fff;
  border-radius: 12px;
  max-width: 90vw;
  padding: 10px 18px;
  box-shadow: 0 4px 20px #0002;
}
#status:empty {
  display: none;
}
.prepared {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hidden {
  display: none!important;
}
@media (max-width:980px) {
  .frame {
    grid-template-columns: 172px minmax(0,1fr);
  }
  .sidebar {
    padding: 24px 10px;
  }
  .workspace {
    padding: 28px 20px;
  }
  .grid {
    gap: 12px;
  }
  .post,
  .actionblock {
    padding: 16px;
  }
}
@media (max-width:730px) {
  .frame {
    height: 100dvh;
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: minmax(0,1fr) auto;
    overflow: hidden;
  }
  .frame > .workspace {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding-bottom: 20px;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    padding: 12px 16px calc(88px + env(safe-area-inset-bottom));
  }
  .mobilebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }
  .mobilebar .brand {
    font-size: 27px;
  }
  .tabs {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    background: #fffffff5;
    border-top: 1px solid var(--line);
    padding: 5px 4px max(6px,env(safe-area-inset-bottom));
    backdrop-filter: blur(12px);
  }
  .tabs a {
    display: grid;
    place-items: center;
    min-width: 0;
    grid-template-rows: 19px auto;
    align-content: center;
    gap: 2px;
    color: var(--muted);
    font: 600 11px/1.3 Arial;
    padding: 4px;
  }
  .tabs a[aria-current=page] {
    color: #244d93;
    background: #eaf0fc;
    border-radius: 10px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .pagehead {
    margin-bottom: 13px;
  }
  .pagehead h1 {
    font-size: 40px;
  }
  .pagehead .sub {
    font-size: 14px;
  }
  .feedhead {
    align-items: start;
    flex-wrap: wrap;
  }
  .search {
    width: 100%;
    max-width: 100%;
  }
  .filters {
    margin-bottom: 10px;
  }
  .card {
    border-radius: 17px;
  }
  .post,
  .actionblock {
    padding: 15px 16px;
  }
  .excerpt {
    font-size: 16px;
  }
  .panel {
    padding: 17px;
  }
  .tabs .icon {
    width: 19px;
    height: 19px;
  }
  #status {
    bottom: 80px;
  }
  .entry {
    flex-wrap: wrap;
  }
  .auth {
    margin: 4vh auto;
  }
  .authbox .row {
    align-items: stretch;
  }
  .authbox .btn {
    flex: 1 1 auto;
  }
  .plan {
    padding-top: 25px;
  }
}
.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: #e7ecf4;
}
.cover {
  width: 88px;
  height: 55px;
  object-fit: cover;
  border-radius: 9px;
  float: right;
  margin: 12px 0 8px 12px;
}
.post::after {
  display: block;
  clear: both;
  content: '';
}
.pagehead > .btn {
  white-space: nowrap;
  flex: none;
}
.panel details {
  margin-top: 12px;
}
.panel summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
}
.product-screens {
  display: grid;
  grid-template-columns: minmax(0,2.6fr) minmax(0,1fr);
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}
.product-screens figure {
  margin: 0;
}
.product-screens img {
  display: block;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 7px 24px #25355012;
}
.product-screens figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
}
.agent-run {
  background: #f4f7fc;
  border-top: 1px solid #d6dfec;
  padding: 15px 18px;
  overflow-wrap: anywhere;
}
.run-head,
.connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.run-state {
  background: #e4ecfa;
  color: #334b71;
  border-radius: 99px;
  padding: 4px 10px;
  font-size: .8rem;
  font-weight: 650;
}
.run-note {
  margin: 10px 0;
  font-size: .92rem;
}
.agent-run summary {
  cursor: pointer;
  font-weight: 650;
}
.run-result {
  white-space: pre-wrap;
  line-height: 1.55;
  margin-top: 12px;
}
.connection {
  padding: 10px 0;
  border-bottom: 1px solid #dbe2eb;
}
.connection small {
  display: block;
  color: #526174;
}
#send-agent {
  width: 100%;
  margin: 14px 0;
}
#send-connection details {
  margin-top: 12px;
}
main.preview {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 36px);
}
.preview > .btn {
  margin-top: 18px;
}

.excerpt.full-short{display:block;-webkit-line-clamp:unset;overflow:visible}
.generation{margin:0;padding:10px 15px;background:#edf2f9;color:#465972;font-size:.85rem}

@media(max-width:660px){.pagehead:has(.feed-links){align-items:flex-start;flex-direction:column;gap:10px}.feed-links{flex-wrap:wrap}}

.setup-flow{width:min(520px,calc(100% - 40px));margin:5vh auto}.setup-flow section{margin-top:10vh}
.setup-flow p{margin:12px 0;color:var(--muted)}.setup-flow ul{padding:0;margin:28px 0;list-style:none}
.setup-flow li{display:flex;gap:16px;align-items:baseline;justify-content:space-between;padding:14px 0;border-top:1px solid var(--line,#d4dce8)}
.setup-flow li span{font-size:14px;text-align:right;color:var(--muted)}

.shelf-head, .shelf-identity, .shelf-shortcuts, .shelf-shortcuts a {display:flex;align-items:center}
.shelf-head {justify-content:space-between;gap:12px;margin-bottom:14px}
.shelf-head h1 {font:680 clamp(28px,3vw,40px)/1.1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.05em}
.shelf-identity {gap:12px;min-width:0}
.shelf-identity .brand {display:none}
.shelf-shortcuts {gap:4px}
.shelf-shortcuts a {min-height:44px;justify-content:center;border:0;background:transparent;color:var(--ink);text-decoration:none}
.shelf-shortcuts a {gap:7px;padding:0 9px;font-size:14px;font-weight:600}
.shelf-shortcuts .icon {width:18px;height:18px}
.shelf-shortcuts a:hover {background:#e8eef7;border-radius:9px}
.shelf-controls {display:flex;align-items:stretch;gap:8px;margin:0 0 16px}
.shelf-search {position:relative;flex:1;min-width:0}
.shelf-search .icon {position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--muted);pointer-events:none}
.shelf-search input,.shelf-controls select {border:1px solid var(--line);border-radius:11px;background:white;min-height:44px}
.shelf-search input {width:100%;padding:8px 10px 8px 36px}
.shelf-controls select {width:auto;max-width:43%;padding:8px;font-weight:600;font-size:14px}
@media(max-width:730px) {
  .shelf-head {margin-bottom:7px}
  .shelf-head h1 {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .shelf-identity {align-items:start;flex-direction:column;gap:2px}
  .shelf-identity .brand {display:block;font-size:26px}
  .shelf-controls {margin-bottom:12px}
  .tabs a {min-height:44px}
}

.byline {align-items:flex-start}
.byline .avatar {flex:none}
.avatar.initials {display:grid;place-items:center;color:#475a73;font:650 10px/1 system-ui}
.byline>strong {align-self:center;min-width:0}
.origin-badges {display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:3px;margin-left:auto;align-self:flex-start}
.origin-badges .badge {display:inline-flex;flex:none;align-items:center;gap:4px;white-space:nowrap;color:#526071;background:#f0f2f5;font-weight:600}
.origin-badges .icon {width:12px;height:12px;stroke-width:1.8}
.post-foot {display:flex;align-items:baseline;gap:12px;justify-content:space-between;flex-wrap:wrap}
.post-date {color:var(--muted);font-size:12px}
.post-foot .read {margin-left:auto}
.reader-source {padding:clamp(16px,3vw,27px)}
.reader-byline {display:flex;align-items:center;gap:8px}
.reader-byline .byline {flex:1;min-width:0;align-items:center}
.back-chevron {width:44px;height:44px;display:grid;place-items:center;flex:none;border:1px solid var(--line);border-radius:50%;color:var(--ink);text-decoration:none}
.back-chevron:hover {background:#edf2fa}
.back-chevron .icon {width:17px;height:17px}
.reader-source h1:not(.sr-only) {font-size:clamp(26px,4vw,42px);margin:18px 0 0}
.reader-source .storytext {font-family:inherit;font-size:clamp(16px,1.7vw,19px);line-height:1.55;white-space:pre-wrap;margin:18px 0}
.reader-source .post-foot {border-top:1px solid var(--line);padding-top:11px}
.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.workspace-bar {display:flex;align-items:center;justify-content:flex-end;margin-bottom:8px}
.workspace-bar .brand {display:none}
.profile-link,.shelf-shortcuts .profile-link {display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;background:#eaf0f8;color:#334e76}
.profile-link .icon {width:20px;height:20px}
@media(max-width:730px){
  .workspace-bar {justify-content:space-between}
  .workspace-bar .brand {display:block;font-size:26px}
}

.source-context{margin:12px 0;padding:10px 14px;border-inline-start:3px solid currentColor;background:rgba(110,125,150,.07);border-radius:4px}
.source-context a{font-size:.83rem;font-weight:650}.source-context p{margin:4px 0}
.source-image{display:block;margin:10px 0}.source-image img{display:block;max-width:100%;max-height:340px;border-radius:10px;object-fit:contain}

.session-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:4px 12px;margin:8px 0;padding:14px 16px;color:inherit;text-decoration:none;overflow-wrap:anywhere}
.session-row:hover,.session-row:focus-visible{border-color:#7488a9}
.session-row .run-state{white-space:nowrap}
.session-row small{grid-column:1 / -1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.session-link{display:inline-block;margin-top:8px}

.session-row>strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

.prep-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}

@media(max-width:400px){.tabs a[href$="#feed"]{font-size:10px;padding-inline:0}}
