:root {
  --paper: #f7f8f2;
  --white: #fffefa;
  --ink: #243e36;
  --muted: #68776d;
  --line: #dfe5db;
  --purple: #e1ebe1;
  --purple-dark: #376052;
  --lime: #e6eedb;
  --orange: #f6e7d3;
  --radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid #487a61;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(38px, 4.1vw, 58px);
  line-height: 1.1;
  letter-spacing: -2px;
}
h1 em {
  font-weight: 400;
  color: #6c836b;
}
h2 {
  font-size: 20px;
  font-weight: 560;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
  font-weight: 550;
  line-height: 1.45;
}
p {
  line-height: 1.7;
}
.hidden {
  display: none !important;
}
.small,
.footnote {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.eyebrow {
  font-size: 10px !important;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 16px;
}
.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;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 15px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 14px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 10px;
}
.brand {
  display: flex;
  align-items: center;
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -2px;
}
.brand-mark {
  color: #6d8a64;
  font-size: 42px;
  margin-right: 9px;
  font-weight: 400;
}
.brand-dot {
  color: #a89777;
}
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}
.sidebar {
  border-right: 1px solid var(--line);
  background: #f0f3eb;
  padding: 30px 22px;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.25px;
  margin: 32px 0 26px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot,
.tiny-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #749564;
  display: inline-block;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 10px;
  color: #627166;
  font-size: 13px;
  font-weight: 500;
}
.sidebar nav a > span:first-child {
  font-size: 19px;
  width: 21px;
  text-align: center;
}
.sidebar nav a.active {
  background: #dfe8d9;
  color: #234737;
}
.sidebar nav a:hover {
  background: #e5ecdf;
}
.sidebar nav .nav-count {
  margin-left: auto;
  border-radius: 6px;
  padding: 2px 6px;
  background: #fffefa;
  font-size: 10px;
  min-width: 20px;
  text-align: center;
}
.nav-divider {
  height: 1px;
  background: var(--line);
  margin: 17px 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}
.private-note {
  display: flex;
  gap: 10px;
  padding: 15px 0;
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
}
.private-note > span {
  font-size: 25px;
}
.private-note strong {
  font-size: 11px;
  font-weight: 600;
}
.private-note p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.quiet {
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 9px 0;
  min-height: 36px;
}
.quiet:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.danger {
  color: #a34f3d;
}
.mobile-only {
  display: none;
}
main {
  min-width: 0;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  padding: 0 44px;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pill,
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.15px;
  border-radius: 6px;
  padding: 5px 8px;
  background: #edf0e8;
  line-height: 1.4;
  white-space: nowrap;
}
.pill {
  border: 1px solid var(--line);
  background: transparent;
}
.pill.demo {
  background: var(--orange);
  border-color: #eddbc1;
}
.page {
  max-width: 1300px;
  padding: 43px 44px 45px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.page-heading p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 18px;
  font-size: 13px;
  max-width: 530px;
}
.page-number {
  font-size: 9px;
  color: #829083;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.heading-note {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding: 0 6px 7px;
  font-family: Georgia, serif;
  color: #7b8973;
  line-height: 1.5;
  font-style: italic;
  font-size: 16px;
}
.sparkle {
  font-size: 57px;
  color: #a9b49a;
  font-style: normal;
}
.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}
.overview:empty {
  display: none;
}
.overview-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 12px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f1f4eb;
  min-width: 0;
}
.overview-card:hover {
  border-color: #9bac93;
  background: #eaf0e2;
}
.overview-card strong {
  font-size: 13px;
  font-weight: 550;
}
.overview-card .overview-count {
  grid-row: 1/3;
  grid-column: 2;
  font-family: Georgia, serif;
  font-size: 29px;
  color: #4f7058;
}
.overview-card small {
  font-size: 11px;
  color: var(--muted);
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
}
.capture-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(245px, 1fr);
  gap: 20px;
}
.card-label {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-label .small {
  margin-left: auto;
  letter-spacing: 0;
}
.compose {
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 14px #243e3604;
  padding: 27px;
}
.compose textarea {
  background: transparent;
  border: 0;
  resize: vertical;
  min-height: 172px;
  padding: 24px 0 20px;
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1.5;
  flex: 1;
}
.compose textarea::placeholder {
  color: #9aab99;
}
.compose textarea:focus-visible {
  outline-offset: 6px;
}
.compose-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.compose-bottom > div {
  font-size: 11px;
  color: var(--muted);
}
.keyboard-hint {
  display: block;
  font-size: 10px;
  margin-top: 6px;
  color: #849180;
}
.primary {
  background: #264f42;
  color: #fffef6;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 13px 19px;
  font-size: 12px;
  font-weight: 550;
  display: inline-flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  min-height: 44px;
}
.primary:hover {
  background: #35674f;
}
.voice-card {
  position: relative;
  overflow: hidden;
  background: #284f43;
  border-color: #284f43;
  color: #fffef3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.voice-card .card-label {
  align-self: stretch;
  justify-content: space-between;
  color: #c7d9c6;
}
.record-button {
  display: grid;
  place-items: center;
  margin: 31px 0 25px;
  border-radius: 50%;
  width: 66px;
  height: 66px;
  background: #e1eaca;
  color: #294e3f;
  box-shadow:
    0 0 0 10px #ffffff08,
    0 0 0 22px #ffffff04;
}
.record-button:hover {
  background: #edf3dd;
}
.record-button.recording {
  background: #f4b69c;
  box-shadow: 0 0 0 10px #f4b69c20;
}
.voice-card h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.5px;
}
.voice-card p {
  font-size: 12px;
  color: #c7d6c8;
  max-width: 245px;
  margin: 10px 0;
}
.file-label {
  display: inline-block;
  position: relative;
  color: var(--purple-dark);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 12px;
  padding: 8px 0;
}
.file-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.file-label:focus-within {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 3px;
}
.voice-card .file-label {
  color: #d1dfc9;
  margin-top: auto;
  font-size: 11px;
}
.capture-import {
  margin-top: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f1f4eb;
}
.capture-import > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 17px 21px;
  font-size: 12px;
  font-weight: 500;
}
.capture-import > summary::-webkit-details-marker {
  display: none;
}
.capture-import > summary > span:first-child > span {
  margin-right: 8px;
  color: #718768;
}
.capture-import[open] > summary {
  border-bottom: 1px solid var(--line);
}
.capture-import .inbox-extras {
  padding: 18px;
  margin: 0;
}
.capture-import .card {
  border-radius: 12px;
}
.capture-status {
  font-size: 10px;
  text-align: right;
  margin-top: 10px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 35px 0 18px;
}
.section-heading .eyebrow {
  font-size: 9px !important;
  margin-bottom: 8px;
  letter-spacing: 1.5px;
}
.count {
  font-size: 10px;
  background: #e9ede2;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--muted);
  vertical-align: middle;
  margin-left: 5px;
}
.library-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.search-field {
  position: relative;
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
}
.search-field > span {
  position: absolute;
  left: 14px;
  font-size: 24px;
  color: #82917c;
}
.search-field input {
  padding-left: 40px;
  margin: 0;
}
.library-toolbar select {
  width: auto;
  min-width: 155px;
  margin: 0;
}
.results-label {
  margin-bottom: 15px;
  font-size: 11px;
}
.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.note {
  padding: 23px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 16px;
}
.note:hover {
  border-color: #b8c6b0;
}
.note .date {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.note h3 {
  margin-bottom: 10px;
  line-height: 1.5;
  font-size: 17px;
  letter-spacing: -0.25px;
}
.note p {
  font-size: 12px;
  color: #667367;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.note-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
}
.note-actions button {
  font-size: 11px;
}
.note .note-actions {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  gap: 10px 18px;
}
.note .note-actions .danger {
  margin-left: auto;
}
.badge.ready,
.badge.completed,
.badge.active {
  background: #e7efdc;
  color: #4d663a;
}
.badge.failed,
.badge.cancelled {
  background: #f8e4dc;
  color: #994b35;
}
.badge.queued,
.badge.pending,
.badge.running,
.badge.processing {
  background: #e8eadd;
  color: #657043;
}
.badge.due {
  background: var(--orange);
  color: #874529;
}
.badge.scheduled,
.badge.approved {
  background: var(--lime);
}
.badge.paused {
  background: var(--orange);
}
.empty {
  border: 1px dashed #cbd7c2;
  border-radius: var(--radius);
  padding: 42px 30px;
  text-align: center;
  color: var(--muted);
  grid-column: 1/-1;
  background: #f1f4eb;
}
.empty .empty-symbol {
  display: block;
  font-size: 30px;
  color: #8b9e7b;
  margin-bottom: 15px;
}
.empty h3 {
  color: #4c6750;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 9px;
}
.empty p {
  font-size: 12px;
  max-width: 390px;
  margin: auto;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 15px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  background: var(--white);
  border: 1px solid #dce3d6;
  border-radius: 9px;
  padding: 12px;
  margin-top: 8px;
  color: var(--ink);
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #899485;
}
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.65;
}
.form-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 400;
}
.check input {
  width: auto;
  margin: 0;
  accent-color: var(--purple-dark);
}
.form-bottom .check {
  margin: 0;
}
.inline-form {
  display: flex;
  gap: 12px;
  align-items: center;
}
.inline-form input {
  margin: 0;
}
.inline-form button {
  white-space: nowrap;
}
.search-label {
  margin: 25px 0 0;
  color: var(--muted);
}
.search-label input {
  max-width: none;
}
.footnote {
  margin-top: 25px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.two-columns h2 {
  margin-bottom: 20px;
}
.two-columns button {
  margin-top: 12px;
}
.callout {
  display: flex;
  gap: 18px;
  background: #eaf0e1;
  border: 1px solid #dde7d4;
  border-radius: 13px;
  padding: 20px 23px;
  margin-bottom: 24px;
}
.callout > span {
  font-size: 24px;
}
.callout strong {
  font-size: 13px;
  font-weight: 550;
}
.callout p {
  font-size: 12px;
  color: #68785f;
  margin-top: 5px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.row > div {
  min-width: 0;
}
.row p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.row h3 {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.row > .quiet {
  white-space: normal;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 18px 0;
}
legend {
  font-size: 12px;
  margin-bottom: 10px;
}
#capability-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
}
.answer-text {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 14px;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.answer-question {
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1.4;
}
.sources {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 11px;
}
.sources p {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.error {
  color: #a04a36 !important;
}
.notice {
  margin: 20px 44px 0;
  background: #eaf0e1;
  border: 1px solid #cadaba;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
}
.notice.error {
  background: #f8e9e0;
  border-color: #edd3c4;
}
.token-value {
  display: block;
  overflow-wrap: anywhere;
  background: #edf0e7;
  padding: 16px;
  margin: 15px 0;
  border-radius: 8px;
  user-select: all;
}
details > summary {
  cursor: pointer;
  font-size: 12px;
  padding: 6px 0;
}
details p {
  margin-top: 12px;
}
#audit {
  font-size: 11px;
  line-height: 2;
  color: var(--muted);
  margin-top: 12px;
  max-height: 280px;
  overflow: auto;
}
footer {
  margin: 0 44px;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  color: #84907b;
  font-size: 9px;
  letter-spacing: 1.5px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
footer span {
  letter-spacing: 0;
  font-family: Georgia, serif;
  font-size: 12px;
}
.login-shell {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100dvh;
}
.login-art {
  background: #e7eddf;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: '';
  position: absolute;
  bottom: -170px;
  right: -150px;
  width: 470px;
  height: 470px;
  border: 1px solid #bfceb2;
  border-radius: 50%;
  box-shadow:
    0 0 0 40px #dce5d340,
    0 0 0 85px #dce5d330;
  pointer-events: none;
}
.login-art .brand {
  position: absolute;
  top: 30px;
  left: 55px;
}
.login-art h1 {
  font-size: clamp(46px, 5vw, 70px);
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}
.login-art > p:not(.eyebrow) {
  color: #718264;
  font-size: 15px;
}
.login-form {
  align-self: center;
  justify-self: center;
  padding: 55px;
  max-width: 570px;
  width: 100%;
}
.login-form h2 {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
.login-form > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 27px;
}
.login-form .primary {
  width: 100%;
  margin: 10px 0 20px;
}
.orbit {
  display: flex;
  gap: 10px;
  margin-top: 40px;
}
.orbit span {
  border: 1px solid #bccaaf;
  border-radius: 30px;
  padding: 9px 17px;
  font-family: Georgia, serif;
  color: #668052;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  padding: 30px;
  width: min(550px, 92vw);
  max-height: 88dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #173d3266;
  backdrop-filter: blur(3px);
}
dialog textarea {
  margin-top: 20px;
  min-height: 160px;
}
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 15px 0;
}
.comparison > div {
  background: #edf0e8;
  padding: 14px;
  border-radius: 8px;
  font-size: 12px;
  white-space: pre-wrap;
  line-height: 1.7;
  min-width: 0;
}
.comparison strong {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.ai-connection-card {
  margin-bottom: 24px;
}
.ai-connection-card > p {
  margin-top: 15px;
}
.ai-connection-card details {
  margin-top: 22px;
}
#codex-status {
  font-size: 13px;
}
#codex-login {
  background: var(--paper);
  padding: 18px;
  margin-top: 16px;
  border-radius: 10px;
}
#codex-model-form {
  margin-top: 20px;
  max-width: 420px;
}
#codex-model-form > .quiet {
  margin-left: 12px;
}
.vault-settings {
  margin-bottom: 24px;
}
.vault-path {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  margin: 12px 0;
  padding: 12px;
  background: #edf0e8;
  border-radius: 8px;
}
.vault-settings form {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}
.vault-settings form label {
  flex: 1;
  min-width: 200px;
}
.vault-settings .file-label {
  padding: 10px 0;
}
.knowledge-heading {
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.knowledge-heading:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.knowledge-preview {
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.knowledge-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.8;
  max-height: 55vh;
  overflow: auto;
}
#knowledge-dialog {
  width: min(760px, 92vw);
}
#vault-conflicts .comparison {
  align-items: start;
}
.inbox-extras {
  margin-top: 20px;
  margin-bottom: 24px;
}
.inbox-extras h2 {
  margin-bottom: 14px;
}
.inbox-extras .small {
  margin-top: 12px;
}
.citation {
  display: inline;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--purple);
  color: var(--purple-dark);
  font-size: 11px;
  overflow-wrap: anywhere;
}
#detail-dialog {
  width: min(740px, 92vw);
}
#detail-body {
  margin-top: 20px;
}
#detail-body .card {
  margin-top: 15px;
}
#proposals p,
#reminders p,
#workflows p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  margin-top: 12px;
}
#restore-dialog p {
  margin: 16px 0;
}
#search-info {
  max-width: 600px;
}
#backups .row {
  flex-wrap: wrap;
}
.collection-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0 15px;
}
.filter-chip,
.prompt-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  min-height: 38px;
}
.filter-chip[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffefa;
}
.filter-chip:hover,
.prompt-chip:hover {
  border-color: #91a185;
}
.ask-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.prompt-chip {
  background: #edf1e6;
  font-size: 11px;
}
.new-memory > summary {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 18px;
  background: var(--white);
  font-weight: 550;
}
.new-memory[open] > summary {
  margin-bottom: 16px;
}
.note details {
  margin-top: 10px;
}
.note details .small {
  font-size: 11px;
}
@media (min-width: 1600px) {
  .page {
    padding-top: 55px;
  }
  .capture-grid {
    grid-template-columns: 2fr 1fr;
  }
  .compose textarea {
    min-height: 195px;
  }
}
@media (max-width: 1150px) {
  .app {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding: 26px 16px;
  }
  .page {
    padding: 34px 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .page-number,
  .heading-note {
    display: none;
  }
  .capture-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(210px, 1fr);
  }
  .compose {
    padding: 23px;
  }
  .compose textarea {
    font-size: 22px;
  }
  .keyboard-hint {
    display: none;
  }
  .overview-card {
    padding: 15px;
  }
  .overview-card small {
    font-size: 10px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 45px;
  }
  .login-form {
    padding: 35px;
  }
  .form-bottom .primary {
    margin-left: auto;
  }
}
@media (max-width: 820px) {
  .app {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 12px;
  }
  .sidebar nav a {
    font-size: 12px;
    padding: 10px;
    gap: 8px;
  }
  .page {
    padding: 30px 23px;
  }
  .capture-grid {
    grid-template-columns: 1fr;
  }
  .voice-card {
    display: grid;
    grid-template-columns: 70px 1fr;
    text-align: left;
    column-gap: 22px;
    padding: 24px;
  }
  .voice-card .card-label {
    grid-column: 1/-1;
    margin-bottom: 10px;
  }
  .record-button {
    grid-column: 1;
    grid-row: 2/5;
    margin: 15px 0;
    width: 60px;
    height: 60px;
  }
  .voice-card h3,
  .voice-card p,
  .voice-card .file-label {
    grid-column: 2;
  }
  .voice-card p {
    margin: 5px 0;
    max-width: none;
  }
  .voice-card p br {
    display: none;
  }
  .voice-card .file-label {
    margin-top: 0;
  }
  .overview {
    gap: 8px;
  }
  .overview-card {
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .overview-card .overview-count {
    order: -1;
    font-size: 26px;
  }
  .overview-card strong {
    font-size: 11px;
  }
  .note-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 23px;
  }
}
@media (max-width: 620px) {
  .app {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    padding: 12px 18px 9px;
    z-index: 10;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: #f0f3ebf5;
    backdrop-filter: blur(12px);
    overflow: visible;
  }
  .sidebar > .brand {
    font-size: 29px;
    line-height: 1;
  }
  .brand-mark {
    font-size: 32px;
  }
  .workspace-label,
  .sidebar-bottom,
  .nav-divider {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 5px;
    margin-top: 13px;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }
  .sidebar nav a {
    flex-shrink: 0;
    font-size: 11px;
    padding: 9px 12px;
    min-height: 38px;
    gap: 5px;
  }
  .sidebar nav a > span:first-child {
    display: none;
  }
  .sidebar nav .nav-count {
    font-size: 9px;
    padding: 1px 4px;
    min-width: 16px;
  }
  .topbar {
    height: auto;
    min-height: 48px;
    padding: 9px 19px;
    flex-wrap: wrap;
    font-size: 10px;
    gap: 6px;
  }
  .topbar > div {
    gap: 6px;
    flex-wrap: wrap;
  }
  .pill {
    font-size: 9px;
    padding: 4px 6px;
  }
  .mobile-only {
    display: inline-block;
  }
  .topbar #lock-top {
    min-height: 30px;
    padding: 4px 6px;
  }
  .page {
    padding: 28px 19px 35px;
    overflow-wrap: anywhere;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  h1 {
    font-size: 39px;
    letter-spacing: -1.6px;
  }
  .page-heading p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.7;
    margin-top: 15px;
  }
  .eyebrow {
    font-size: 9px !important;
    letter-spacing: 1.2px;
    margin-bottom: 13px;
  }
  .overview {
    margin-bottom: 19px;
  }
  .overview-card small {
    line-height: 1.5;
  }
  .card {
    padding: 21px;
  }
  .compose textarea {
    min-height: 150px;
    font-size: 22px;
  }
  .compose-bottom > div {
    font-size: 10px;
    max-width: 145px;
  }
  .voice-card {
    padding: 21px;
    column-gap: 20px;
  }
  .voice-card h3 {
    font-size: 23px;
  }
  .capture-import > summary {
    padding: 16px;
    font-size: 11px;
  }
  .capture-import > summary > .small {
    font-size: 10px;
    max-width: 110px;
    text-align: right;
  }
  .capture-import .inbox-extras {
    padding: 12px;
  }
  .capture-status {
    text-align: left;
    line-height: 1.6;
  }
  .library-toolbar {
    gap: 9px;
  }
  .library-toolbar select {
    min-width: 125px;
    max-width: 145px;
    font-size: 12px;
  }
  .library-toolbar input {
    font-size: 13px;
  }
  .search-field input {
    padding-left: 32px;
  }
  .search-field > span {
    left: 10px;
  }
  .note-grid,
  .two-columns,
  .comparison {
    grid-template-columns: 1fr;
  }
  .section-heading {
    gap: 10px;
    flex-wrap: wrap;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .row > .badge {
    flex-shrink: 0;
  }
  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 100px 28px 40px;
  }
  .login-art .brand {
    top: 25px;
    left: 28px;
  }
  .login-art h1 {
    font-size: 47px;
  }
  .login-art .orbit {
    display: none;
  }
  .login-art:after {
    width: 240px;
    height: 240px;
  }
  .login-form {
    padding: 38px 28px;
    max-width: none;
  }
  .login-form h2 {
    font-size: 30px;
  }
  .notice {
    margin: 14px 19px 0;
  }
  footer {
    margin: 0 19px;
    font-size: 8px;
  }
  .form-bottom {
    align-items: flex-start;
  }
  .form-bottom .primary {
    margin-left: 0;
  }
  .file-label {
    padding: 12px 0;
  }
  .vault-settings form {
    display: block;
  }
  .vault-settings form button {
    margin-bottom: 14px;
  }
  .callout {
    padding: 17px;
    gap: 12px;
  }
  .callout > span {
    font-size: 21px;
  }
  .callout p {
    font-size: 11px;
  }
  .filter-chip {
    font-size: 11px;
    padding: 10px 12px;
  }
  .ask-prompts {
    gap: 7px;
  }
  .prompt-chip {
    font-size: 10px;
    padding: 10px;
  }
  .note-actions button {
    min-height: 40px;
  }
  .note .note-actions {
    gap: 6px 14px;
  }
  dialog {
    padding: 23px;
  }
  #capability-options {
    grid-template-columns: 1fr;
  }
  #breadcrumb {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media (max-width: 620px) {
  #mobile-menu {
    position: absolute;
    top: 11px;
    right: 19px;
    font-size: 11px;
    min-height: 34px;
    padding: 6px 9px;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }
  .sidebar nav a {
    justify-content: center;
    padding: 9px 4px;
    font-size: 10px;
    min-width: 0;
  }
  .sidebar:not(.nav-open) nav a[data-page='agents'],
  .sidebar:not(.nav-open) nav a[data-page='review'],
  .sidebar:not(.nav-open) nav a[data-page='access'],
  .sidebar:not(.nav-open) nav a[data-page='learning'] {
    display: none;
  }
  .sidebar nav .nav-count {
    margin-left: 0;
  }
}
#advanced-dialog {
  width: min(850px, 94vw);
}
#advanced-body {
  margin-top: 22px;
}
.report-body {
  white-space: pre-wrap;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.timeline-item {
  border-left: 3px solid #9cb18a;
}
.timeline-item .small {
  margin-bottom: 10px;
}
.account-resource {
  padding: 9px;
  border-bottom: 1px solid var(--line);
}
#report-sources {
  min-height: 120px;
}
#reports-list .row h3 {
  font-size: 18px;
}
#accounts-list .card > p {
  margin-top: 10px;
}
#care-sources .card {
  margin: 16px 0;
}
#page-studio .card > h2,
#page-notifications .card > h2 {
  margin-bottom: 20px;
}
#account-setup details {
  margin-top: 18px;
}
#account-setup code {
  overflow-wrap: anywhere;
}
#project-detail {
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
#project-item-form label {
  flex: 1;
}
.report-sources {
  margin: 20px 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.report-sources a {
  display: block;
  margin: 8px 0;
  color: var(--purple-dark);
  text-decoration: underline;
  overflow-wrap: anywhere;
}
@media (max-width: 620px) {
  .sidebar:not(.nav-open) nav a[data-page='projects'],
  .sidebar:not(.nav-open) nav a[data-page='timeline'],
  .sidebar:not(.nav-open) nav a[data-page='studio'],
  .sidebar:not(.nav-open) nav a[data-page='notifications'],
  .sidebar:not(.nav-open) nav a[data-page='connections'],
  .sidebar:not(.nav-open) nav a[data-page='routines'] {
    display: none;
  }
  .sidebar.nav-open nav {
    max-height: 40vh;
    overflow: auto;
  }
  .sidebar nav a {
    white-space: normal;
    text-align: center;
  }
  .inline-form {
    align-items: stretch;
  }
}

/* Daily controls retain the workspace's restrained visual language. */
.pair-qr {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 24px auto;
  background: white;
  padding: 12px;
  border-radius: 12px;
}
.scope-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.pause-panel {
  border-left: 4px solid var(--green, #244d43);
}
#operational-alerts {
  margin: 20px 0;
}
#permission-overview .card {
  overflow-wrap: anywhere;
}
#permission-checks {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

@media (max-width: 620px) {
  .sidebar:not(.nav-open) nav a[data-page='control'] {
    display: none;
  }
}
