:root {
  --ink: #1d302d;
  --muted: #76827f;
  --green: #24715f;
  --green-deep: #164e42;
  --paper: #f6f8f6;
  --line: #e5ebe6;
  --pale: #edf5ef;
  --white: #fff;
  --gold: #e1d6ac;
  --danger: #9d443d;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #7dbba6;
  outline-offset: 4px;
}
input,
textarea,
select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d9e2dc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #6aa890;
  box-shadow: 0 0 0 3px #24715f13;
}
input::placeholder,
textarea::placeholder {
  color: #9aa6a0;
}
textarea {
  resize: vertical;
  line-height: 1.65;
}
input[readonly] {
  background: #f4f7f4;
  color: #53645c;
  font-size: 12px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1.25px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
  font-weight: 650;
}
small,
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.hidden {
  display: none !important;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--green);
  margin-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -1.5px;
}
.brand-dot {
  margin-left: -10px;
  color: #70aa88;
}
.brand img {
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  padding: 11px 17px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  min-height: 43px;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover:not(:disabled) {
  background: var(--green-deep);
}
.secondary {
  background: white;
  border-color: #d8e3db;
  color: #37594d;
}
.secondary:hover:not(:disabled) {
  background: #f1f6f2;
}
.full {
  width: 100%;
  justify-content: space-between;
}
.text-button {
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
.icon-button {
  border: 0;
  background: transparent;
  color: #6c7c74;
  font-size: 20px;
  padding: 5px 7px;
  border-radius: 6px;
}
.icon-button:hover {
  background: #ebf2ed;
}
.notice {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 12px 21px;
  max-width: min(90vw, 640px);
  background: #1d4e40;
  color: #fff;
  box-shadow: 0 5px 22px #183b3b20;
  border-radius: 9px;
  font-size: 13px;
}
.notice.error {
  background: #8b413b;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  background: #153f37;
  position: relative;
  padding: 43px 56px;
  color: #f6f5e9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.login-story:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 100% 10%, #40735e50, transparent 60%),
    radial-gradient(ellipse at 20% 95%, #3a644330, transparent 55%);
}
.login-story > * {
  position: relative;
}
.brand-light {
  color: white;
}
.brand-light .brand-dot {
  color: var(--gold);
}
.story-content {
  max-width: 500px;
  margin: auto;
  padding: 55px 0;
}
.light-eyebrow {
  color: #aec7b4;
}
.story-content h1 {
  font-size: 49px;
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: -1.9px;
  margin: 20px 0;
}
.story-content > p {
  color: #b1c4b9;
  max-width: 370px;
  font-size: 14px;
  line-height: 1.8;
}
.mail-illustration {
  margin: 37px 0 28px;
  background: #ffffff0c;
  border: 1px solid #ffffff1e;
  border-radius: 12px;
  max-width: 390px;
  padding: 20px 22px 0;
  box-shadow: 0 22px 45px #09271a20;
  transform: rotate(-2deg);
}
.mini-inbox {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #dae4d7;
  margin-bottom: 20px;
}
.mini-dot {
  background: #b2cba4;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.mini-time {
  margin-left: auto;
  color: #8ba897;
  font-size: 9px;
}
.mock-line {
  height: 6px;
  background: #93b4a34a;
  border-radius: 4px;
  margin: 10px 0;
}
.wide {
  width: 83%;
}
.medium {
  width: 58%;
}
.short {
  width: 44%;
}
.reply-illustration {
  margin: 21px -34px -6px 28px;
  padding: 18px;
  background: #f1f4e8;
  border-radius: 9px;
  box-shadow: 0 15px 25px #001c1629;
  transform: rotate(3deg);
}
.reply-top {
  color: #385844;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  margin-bottom: 16px;
}
.sparkle {
  color: #698e6e;
  font-size: 18px;
}
.tiny-pill {
  font-size: 7px;
  letter-spacing: 0.6px;
  color: #648166;
  border: 1px solid #d3dfcd;
  background: #e1e9d6;
  padding: 3px 5px;
  border-radius: 4px;
  margin-left: auto;
}
.reply-illustration .mock-line {
  background: #bccdb971;
}
.story-features {
  display: flex;
  gap: 20px;
  color: #bed1bf;
  font-size: 10px;
  margin-top: 38px;
}
.story-footer {
  color: #8fae9a;
  font-size: 10px;
  letter-spacing: 0.2px;
}
.login-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbf9;
  padding: 45px;
}
.entry-card {
  width: 100%;
  max-width: 365px;
}
.entry-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #e9f0e7;
  color: var(--green);
  font-size: 25px;
  border-radius: 13px;
  margin-bottom: 30px;
}
.entry-card h2 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 10px 0 15px;
}
.entry-card .muted {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 29px;
}
.entry-card input {
  padding: 14px;
}
.entry-card .button {
  margin-top: 18px;
  padding: 14px 16px;
}
.login-footnote {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 22px;
  font-size: 10px;
  color: #92a095;
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-footnote span {
  font-size: 24px;
  color: #7e9b82;
}
.login-alternatives {
  display: flex;
  justify-content: space-between;
  margin-top: 17px;
}
.otp-input {
  font-size: 27px;
  letter-spacing: 12px;
  text-align: center;
}
.form-error {
  font-size: 12px;
  color: var(--danger);
  min-height: 1em;
  margin-top: 16px;
}
.callout {
  padding: 12px 15px;
  font-size: 12px;
  border-radius: 7px;
  margin-bottom: 20px;
}
.warning {
  background: #fbf3dc;
  color: #856d30;
  border: 1px solid #f0e2b9;
}
.app-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 229px;
  flex-shrink: 0;
  padding: 29px 20px 0;
  background: #fff;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  margin: 0 14px 43px;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #a2ada6;
  margin: 0 14px 15px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-item {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #738077;
  font-size: 12px;
  text-align: left;
  font-weight: 500;
}
.nav-item > span {
  width: 19px;
  font-size: 21px;
  line-height: 1;
}
.nav-item:hover {
  background: #f4f7f3;
}
.nav-item.active {
  background: #eaf3ed;
  color: #2c6b50;
  font-weight: 650;
}
.sidebar-bottom {
  margin-top: auto;
}
.safe-note {
  background: #f4f6f0;
  border: 1px solid #e9eee1;
  border-radius: 9px;
  padding: 17px 14px;
  margin-bottom: 20px;
}
.safe-note > span {
  display: block;
  color: #7d9e71;
  margin-bottom: 8px;
}
.safe-note strong {
  font-size: 10px;
}
.safe-note p {
  font-size: 10px;
  color: #8b9787;
  line-height: 1.8;
  margin-top: 6px;
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #f4e9d7;
  color: #927c54;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 650;
}
.account-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.account-copy strong {
  font-size: 10px;
}
.account-copy span {
  font-size: 9px;
  color: #93a095;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account .icon-button {
  margin-left: auto;
}
.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.impersonation-banner {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 39px;
  background: #fff4d6;
  border-bottom: 1px solid #e2d09b;
}
.impersonation-banner p {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.impersonation-banner .button {
  flex: none;
}
.admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.admin-user-row strong,
.admin-user-row small {
  display: block;
  overflow-wrap: anywhere;
}
.admin-user-row .pill {
  margin-top: 6px;
}
@media (max-width: 700px) {
  .impersonation-banner {
    align-items: start;
    flex-direction: column;
    padding: 16px 20px;
  }
  .admin-user-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .admin-user-row .button {
    justify-self: start;
  }
}
.topbar {
  min-height: 75px;
  border-bottom: 1px solid var(--line);
  padding: 0 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #9aa49c;
  background: #ffffff70;
}
.topbar strong {
  color: #5c6e61;
  font-weight: 500;
}
.breadcrumb {
  padding: 0 14px;
  color: #c5cdc4;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.private-space {
  font-size: 9px;
  color: #839282;
}
.private-space:first-letter {
  color: #86a57e;
}
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 8px;
  background: #f1f4ef;
  border: 1px solid #e3e9df;
  border-radius: 5px;
  color: #8b9786;
  white-space: nowrap;
}
.pill.good {
  background: #edf7ef;
  border-color: #dcebdd;
  color: #3f7d51;
}
.pill.warn {
  background: #faf3e2;
  border-color: #eee3c7;
  color: #9d823e;
}
.pill.bad {
  background: #faeeee;
  border-color: #f0dedd;
  color: #a26056;
}
.page-content {
  max-width: 1390px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 39px;
  flex: 1;
}
.page-heading {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 29px;
}
.page-heading .muted {
  margin-top: 12px;
  font-size: 12px;
}
.page-heading .eyebrow {
  margin-bottom: 11px;
}
.page-heading .button {
  align-self: flex-end;
  margin-bottom: 3px;
}
.onboarding {
  padding: 20px;
  background: #edf3e8;
  border: 1px solid #e0e9d8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 26px;
}
.onboarding-icon {
  background: #dce8d2;
  color: #698c50;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.onboarding h3 {
  font-size: 12px;
  color: #3d5d3b;
}
.onboarding p {
  font-size: 11px;
  color: #8a9a7e;
  margin-top: 5px;
}
.onboarding > .button {
  margin-left: auto;
  padding: 9px 12px;
  min-height: 36px;
  font-size: 10px;
  background: #f9fbf6;
  border-color: #d7e2cc;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
}
.stat-card > span {
  color: #8e9a90;
  font-size: 10px;
}
.stat-card strong {
  display: block;
  font-size: 32px;
  font-weight: 550;
  line-height: 1.3;
  margin: 12px 0 10px;
  letter-spacing: -1px;
}
.stat-card small {
  display: block;
  color: #73816e;
  font-size: 9px;
}
.stat-card .stat-date {
  font-size: 21px;
  letter-spacing: -0.6px;
  min-height: 42px;
  display: flex;
  align-items: center;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  min-width: 0;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.card-heading h2 {
  font-size: 14px;
}
.connection-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 0;
  border-bottom: 1px solid #f1f4ee;
}
.connection-row:last-child {
  border: 0;
  padding-bottom: 6px;
}
.connection-row strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.connection-row small {
  display: block;
  color: #73816e;
  font-size: 10px;
  margin-top: 2px;
}
.connection-row > .pill {
  margin-left: auto;
}
.provider-icon {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}
.microsoft-icon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  padding: 8px;
  border: 1px solid #eef0ea;
  border-radius: 8px;
  background: #fff;
}
.microsoft-icon i:nth-child(1) {
  background: #f35325;
}
.microsoft-icon i:nth-child(2) {
  background: #81bc06;
}
.microsoft-icon i:nth-child(3) {
  background: #05a6f0;
}
.microsoft-icon i:nth-child(4) {
  background: #ffba08;
}
.claude-icon {
  display: grid;
  place-items: center;
  background: #fcf1e7;
  color: #bc8261;
  font-size: 32px;
  border-radius: 8px;
}
.approach-card {
  background: #fcfcf8;
}
.approach-card .eyebrow {
  color: #97a17d;
  font-size: 9px;
  margin-bottom: 13px;
}
.approach-card h2 {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 500;
  color: #52674a;
}
.steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #8a9681;
  font-size: 10px;
}
.steps li > span {
  display: grid;
  place-items: center;
  background: #eef2e6;
  color: #869574;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 8px;
}
.empty-state {
  text-align: center;
  padding: 45px 15px;
  color: #73816e;
}
.empty-state h3 {
  font-size: 13px;
  color: #778773;
  margin-top: 13px;
  font-weight: 500;
}
.empty-state p {
  font-size: 11px;
  margin-top: 5px;
}
.empty-icon {
  font-size: 28px;
  color: #c5d2bf;
}
.empty-state.compact {
  padding: 20px 15px 27px;
}
.app-footer {
  padding: 20px 39px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  color: #a7b1a3;
}
.connections-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.provider-card {
  padding: 27px;
}
.provider-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 23px;
  margin-bottom: 24px;
}
.provider-heading p {
  font-size: 10px;
  color: #73816e;
  margin-top: 3px;
}
.provider-heading > .pill {
  margin-left: auto;
}
.provider-heading .large {
  width: 41px;
  height: 41px;
}
.provider-heading h2 {
  font-size: 15px;
}
.settings-form {
  display: grid;
  gap: 20px;
}
.field small,
.callback-block small {
  display: block;
  font-size: 10px;
  color: #73816e;
  line-height: 1.7;
  margin-top: 7px;
}
.optional {
  font-weight: 400;
  font-size: 10px;
  color: #a8afa3;
  margin-left: 5px;
}
.saved-label {
  font-size: 9px;
  font-weight: 500;
  color: #578361;
  margin-left: 8px;
}
.callback-block {
  padding: 16px;
  background: #f6f8f2;
  border-radius: 8px;
  border: 1px solid #e9eee0;
}
.callback-block label {
  font-size: 10px;
  color: #6d7e60;
}
.copy-field {
  display: flex;
  gap: 4px;
  align-items: center;
}
.copy-field input {
  background: #fff;
  border-color: #e2e8dc;
  font-size: 10px;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
  flex-wrap: wrap;
}
.connected-detail {
  margin-top: 20px;
  padding: 13px;
  background: #eff7ef;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: #4f8759;
  border-radius: 8px;
}
.connected-detail .text-button {
  margin-left: auto;
  font-size: 10px;
}
.provider-note {
  display: flex;
  gap: 11px;
  margin-top: 23px;
  padding: 17px;
  border-radius: 8px;
  background: #f9f5ee;
  color: #a99c86;
  font-size: 10px;
  line-height: 1.8;
}
.provider-note > span {
  font-size: 23px;
}
.connection-feedback {
  font-size: 11px;
  color: #4b8055;
  min-height: 1em;
}
.section-description {
  font-size: 11px;
  color: #73816e;
  margin: 9px 0 22px;
  line-height: 1.8;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0;
  padding: 7px 0;
}
.toggle-row strong {
  font-size: 12px;
}
.toggle-row small {
  font-size: 10px;
  color: #73816e;
  display: block;
  font-weight: 400;
  margin-top: 4px;
}
.toggle-row input,
.switch-label input {
  width: 34px;
  height: 19px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}
.switch-label {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
  margin: 0;
}
.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 0 15px;
}
.save-bar > span {
  font-size: 11px;
  color: #73816e;
}
.job-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid #eef2ea;
  font-size: 11px;
}
.job-row:last-child {
  border: 0;
}
.job-symbol {
  display: grid;
  place-items: center;
  background: #f3f6ee;
  color: #78916d;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 17px;
  flex-shrink: 0;
}
.job-copy {
  min-width: 0;
  flex: 1;
}
.job-copy strong {
  font-size: 11px;
  font-weight: 550;
}
.job-copy small {
  display: block;
  color: #9da692;
  font-size: 10px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.job-date {
  color: #9aa68f;
  font-size: 10px;
  white-space: nowrap;
}
.message-row {
  display: flex;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid #edf1e8;
  align-items: center;
}
.message-row:last-child {
  border: 0;
}
.message-copy {
  flex: 1;
  min-width: 0;
}
.message-copy strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.message-copy small {
  display: block;
  font-size: 10px;
  color: #929e85;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.message-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.message-actions .text-button {
  font-size: 10px;
}
.memory-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 1.5fr;
  gap: 24px;
  align-items: start;
}
.memory-content,
.memory-sidebar {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.memory-layout .card {
  min-width: 0;
}
.memory-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.memory-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.memory-row-copy {
  min-width: 0;
}
.memory-row-copy strong,
.memory-row-copy small {
  display: block;
  overflow-wrap: anywhere;
}
.topic-children {
  margin-left: 14px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.topic-branch summary {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.topic-branch summary::before {
  content: "▸";
  font-size: 12px;
  color: var(--muted);
}
.topic-branch[open] > summary::before {
  content: "▾";
}
.topic-branch summary .topic-button {
  min-width: 0;
  flex: 1;
}
.contact-branch summary {
  gap: 6px;
  padding: 12px 0;
}
.contact-group-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.contact-branch summary .text-button {
  flex: none;
  padding: 6px;
}
.contact-person {
  overflow-wrap: anywhere;
}
.contact-history {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}
.context-conversation {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.context-conversation summary {
  cursor: pointer;
  overflow-wrap: anywhere;
}
.context-conversation summary small {
  display: block;
  margin-top: 6px;
}
.mail-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.7;
}
.context-answer {
  margin: 14px 0 0;
  padding: 14px;
  border-left: 3px solid var(--brand);
  background: var(--surface);
}
dialog .field {
  margin-top: 16px;
}
dialog textarea {
  width: 100%;
}
@media (max-width: 700px) {
  .memory-row {
    flex-direction: column;
  }
  .memory-layout .card-heading {
    flex-wrap: wrap;
  }
}
.topic-button {
  display: block;
  width: 100%;
  padding: 14px 10px;
  border: 0;
  border-bottom: 1px solid #edf1e8;
  background: white;
  text-align: left;
  border-radius: 6px;
  color: #6d8463;
  font-size: 12px;
}
.topic-button:hover,
.topic-button.active {
  background: #edf5e8;
}
.topic-button small {
  display: block;
  font-size: 10px;
  color: #99a58e;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
dialog {
  width: min(700px, calc(100% - 35px));
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 28px;
  box-shadow: 0 20px 80px #0b271c35;
  color: var(--ink);
}
dialog::backdrop {
  background: #13251c70;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
dialog h2 {
  font-size: 19px;
}
dialog pre {
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 25px 0;
  max-height: 60vh;
  overflow: auto;
  line-height: 1.9;
}
dialog .eyebrow {
  font-size: 9px;
}
.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;
}
@media (min-width: 1500px) {
  .page-content {
    padding-top: 55px;
  }
  .story-content h1 {
    font-size: 60px;
  }
  .login-story {
    padding: 55px 80px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 200px;
    padding-inline: 13px;
  }
  .topbar,
  .page-content {
    padding-left: 26px;
    padding-right: 26px;
  }
  .connections-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-card small {
    font-size: 8px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .onboarding {
    flex-wrap: wrap;
  }
  .onboarding > .button {
    margin-left: 57px;
  }
  .provider-card {
    max-width: 850px;
  }
  .story-content h1 {
    font-size: 42px;
  }
  .login-story {
    padding: 35px;
  }
  .story-features {
    gap: 12px;
  }
  .two-columns {
    gap: 18px;
  }
  .stat-grid {
    gap: 12px;
  }
}
@media (max-width: 800px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: auto;
    padding: 25px;
  }
  .login-story .brand {
    font-size: 24px;
  }
  .story-content {
    padding: 25px 0 10px;
    margin: 0;
    max-width: 100%;
  }
  .story-content h1 {
    font-size: 32px;
    margin: 10px 0;
  }
  .story-content h1 br:nth-child(2) {
    display: none;
  }
  .story-content > p,
  .mail-illustration,
  .story-features,
  .story-footer,
  .story-content > .eyebrow {
    display: none;
  }
  .login-entry {
    padding: 30px 25px 45px;
  }
  .entry-card {
    max-width: 420px;
  }
  .entry-icon {
    display: none;
  }
  .entry-card h2 {
    font-size: 28px;
  }
  .app-layout {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 16px 18px 9px;
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
  .sidebar .brand {
    margin: 0 0 15px;
    font-size: 22px;
  }
  .sidebar .brand img {
    width: 28px;
    height: 28px;
  }
  .workspace-label,
  .safe-note,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
  }
  .nav-item {
    padding: 10px;
    font-size: 10px;
    white-space: nowrap;
    gap: 6px;
  }
  .nav-item > span {
    font-size: 17px;
    width: 16px;
  }
  .topbar {
    min-height: 55px;
    padding: 0 20px;
    font-size: 9px;
  }
  .private-space {
    display: none;
  }
  .page-content {
    padding: 27px 20px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading .muted {
    font-size: 11px;
  }
  .page-heading .button {
    align-self: auto;
    font-size: 11px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card strong {
    font-size: 29px;
  }
  .stat-card small {
    font-size: 9px;
  }
  .stat-card .stat-date {
    font-size: 20px;
  }
  .two-columns,
  .memory-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .card {
    padding: 20px;
  }
  .app-footer {
    padding: 18px 20px;
  }
  .onboarding {
    padding: 16px;
    gap: 12px;
  }
  .onboarding > div:nth-child(2) {
    flex: 1;
    min-width: 170px;
  }
  .onboarding > .button {
    margin-left: 52px;
  }
  .connections-grid {
    gap: 0;
  }
  .provider-heading {
    gap: 10px;
  }
  .provider-heading p {
    font-size: 9px;
  }
  .provider-heading h2 {
    font-size: 14px;
  }
  .provider-heading > .pill {
    font-size: 8px;
  }
  .provider-card {
    padding: 21px;
  }
  .save-bar {
    align-items: flex-end;
  }
  .save-bar > span {
    max-width: 150px;
    font-size: 10px;
  }
  .message-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .message-actions {
    margin-left: auto;
  }
  .job-date {
    display: none;
  }
  .login-entry .muted {
    margin-bottom: 22px;
  }
  .topbar-right {
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.mobile-logout {
  display: none;
}
.connection-feedback.form-error {
  color: var(--danger);
}
@media (max-width: 800px) {
  .mobile-logout {
    display: inline-block;
  }
}
